+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.
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 \
-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