* grub-core/genmod.sh.in: Strip before converting to ELF as strip
may not work with ELF.
This commit is contained in:
parent
4f979ccbf1
commit
23d2abc33c
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/genmod.sh.in: Strip before converting to ELF as strip
|
||||||
|
may not work with ELF.
|
||||||
|
|
||||||
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Use unix functions for temporary files and special files on cygwin.
|
Use unix functions for temporary files and special files on cygwin.
|
||||||
|
|
|
@ -53,9 +53,6 @@ if test x@TARGET_APPLE_LINKER@ != x1; then
|
||||||
fi
|
fi
|
||||||
rm -f $t1 $t2
|
rm -f $t1 $t2
|
||||||
|
|
||||||
if ! test -z "${TARGET_OBJ2ELF}"; then
|
|
||||||
"${TARGET_OBJ2ELF}" $tmpfile || exit 1
|
|
||||||
fi
|
|
||||||
if test x@platform@ != xemu; then
|
if test x@platform@ != xemu; then
|
||||||
@TARGET_STRIP@ --strip-unneeded \
|
@TARGET_STRIP@ --strip-unneeded \
|
||||||
-K grub_mod_init -K grub_mod_fini \
|
-K grub_mod_init -K grub_mod_fini \
|
||||||
|
@ -63,6 +60,9 @@ if test x@TARGET_APPLE_LINKER@ != x1; then
|
||||||
-R .note.gnu.gold-version -R .note.GNU-stack \
|
-R .note.gnu.gold-version -R .note.GNU-stack \
|
||||||
-R .note -R .comment $tmpfile || exit 1
|
-R .note -R .comment $tmpfile || exit 1
|
||||||
fi
|
fi
|
||||||
|
if ! test -z "${TARGET_OBJ2ELF}"; then
|
||||||
|
"${TARGET_OBJ2ELF}" $tmpfile || exit 1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
tmpfile2=${outfile}.tmp2
|
tmpfile2=${outfile}.tmp2
|
||||||
t1=${outfile}.t1.c
|
t1=${outfile}.t1.c
|
||||||
|
|
Loading…
Add table
Reference in a new issue