* grub-core/genmod.sh.in: Strip before converting to ELF as strip

may not work with ELF.
This commit is contained in:
Vladimir Serbinenko 2013-12-16 13:18:48 +01:00
parent 4f979ccbf1
commit 23d2abc33c
2 changed files with 8 additions and 3 deletions

View file

@ -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>
Use unix functions for temporary files and special files on cygwin.

View file

@ -53,9 +53,6 @@ if test x@TARGET_APPLE_LINKER@ != x1; then
fi
rm -f $t1 $t2
if ! test -z "${TARGET_OBJ2ELF}"; then
"${TARGET_OBJ2ELF}" $tmpfile || exit 1
fi
if test x@platform@ != xemu; then
@TARGET_STRIP@ --strip-unneeded \
-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 -R .comment $tmpfile || exit 1
fi
if ! test -z "${TARGET_OBJ2ELF}"; then
"${TARGET_OBJ2ELF}" $tmpfile || exit 1
fi
else
tmpfile2=${outfile}.tmp2
t1=${outfile}.t1.c