grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix support for recent versions of GNU ld


From: Pavel Roskin
Subject: [PATCH] Fix support for recent versions of GNU ld
Date: Mon, 29 Oct 2007 22:54:08 -0400
User-agent: StGIT/0.13

* aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Strip section
.note.gnu.build-id created by the recent versions of GNU ld.
It causes the test fail.
* genmk.rb: Strip .note.gnu.build-id in strip and objcopy calls.
---

 ChangeLog                |    7 ++++
 aclocal.m4               |    2 +
 conf/common.mk           |   74 +++++++++++++++++++++++-----------------------
 conf/i386-efi.mk         |   14 ++++-----
 conf/i386-pc.mk          |   50 ++++++++++++++++---------------
 conf/powerpc-ieee1275.mk |   16 +++++-----
 conf/sparc64-ieee1275.mk |   62 +++++++++++++++++++--------------------
 configure                |    2 +
 genmk.rb                 |    4 +-
 9 files changed, 119 insertions(+), 112 deletions(-)


diff --git a/ChangeLog b/ChangeLog
index 86ae086..13fa98d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-29  Pavel Roskin  <address@hidden>
+
+       * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Strip section
+       .note.gnu.build-id created by the recent versions of GNU ld.
+       It causes the test fail.
+       * genmk.rb: Strip .note.gnu.build-id in strip and objcopy calls.
+
 2007-10-27  Robert Millan  <address@hidden>
 
        * include/grub/types.h (ULONG_MAX): Define macro.
diff --git a/aclocal.m4 b/aclocal.m4
index 706c3ef..0d74167 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -61,7 +61,7 @@ for link_addr in 2000 8000 7C00; do
   else
     AC_MSG_ERROR([${CC-cc} cannot link at address $link_addr])
   fi
-  if AC_TRY_COMMAND([${OBJCOPY-objcopy} -O binary conftest.exec conftest]); 
then :
+  if AC_TRY_COMMAND([${OBJCOPY-objcopy} -O binary -R .note.gnu.build-id 
conftest.exec conftest]); then :
   else
     AC_MSG_ERROR([${OBJCOPY-objcopy} cannot create binary files])
   fi
diff --git a/conf/common.mk b/conf/common.mk
index 43bae6c..3ee0b89 100644
--- a/conf/common.mk
+++ b/conf/common.mk
@@ -96,7 +96,7 @@ UNDSYMFILES += und-fshelp.lst
 fshelp.mod: pre-fshelp.o mod-fshelp.o
        -rm -f $@
        $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-fshelp.o: $(fshelp_mod_DEPENDENCIES) fshelp_mod-fs_fshelp.o
        -rm -f $@
@@ -148,7 +148,7 @@ UNDSYMFILES += und-fat.lst
 fat.mod: pre-fat.o mod-fat.o
        -rm -f $@
        $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-fat.o: $(fat_mod_DEPENDENCIES) fat_mod-fs_fat.o
        -rm -f $@
@@ -200,7 +200,7 @@ UNDSYMFILES += und-ufs.lst
 ufs.mod: pre-ufs.o mod-ufs.o
        -rm -f $@
        $(TARGET_CC) $(ufs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-ufs.o: $(ufs_mod_DEPENDENCIES) ufs_mod-fs_ufs.o
        -rm -f $@
@@ -252,7 +252,7 @@ UNDSYMFILES += und-ext2.lst
 ext2.mod: pre-ext2.o mod-ext2.o
        -rm -f $@
        $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-ext2.o: $(ext2_mod_DEPENDENCIES) ext2_mod-fs_ext2.o
        -rm -f $@
@@ -304,7 +304,7 @@ UNDSYMFILES += und-ntfs.lst
 ntfs.mod: pre-ntfs.o mod-ntfs.o
        -rm -f $@
        $(TARGET_CC) $(ntfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-ntfs.o: $(ntfs_mod_DEPENDENCIES) ntfs_mod-fs_ntfs.o
        -rm -f $@
@@ -356,7 +356,7 @@ UNDSYMFILES += und-minix.lst
 minix.mod: pre-minix.o mod-minix.o
        -rm -f $@
        $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-minix.o: $(minix_mod_DEPENDENCIES) minix_mod-fs_minix.o
        -rm -f $@
@@ -408,7 +408,7 @@ UNDSYMFILES += und-hfs.lst
 hfs.mod: pre-hfs.o mod-hfs.o
        -rm -f $@
        $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-hfs.o: $(hfs_mod_DEPENDENCIES) hfs_mod-fs_hfs.o
        -rm -f $@
@@ -460,7 +460,7 @@ UNDSYMFILES += und-jfs.lst
 jfs.mod: pre-jfs.o mod-jfs.o
        -rm -f $@
        $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-jfs.o: $(jfs_mod_DEPENDENCIES) jfs_mod-fs_jfs.o
        -rm -f $@
@@ -512,7 +512,7 @@ UNDSYMFILES += und-iso9660.lst
 iso9660.mod: pre-iso9660.o mod-iso9660.o
        -rm -f $@
        $(TARGET_CC) $(iso9660_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-iso9660.o: $(iso9660_mod_DEPENDENCIES) iso9660_mod-fs_iso9660.o
        -rm -f $@
@@ -564,7 +564,7 @@ UNDSYMFILES += und-xfs.lst
 xfs.mod: pre-xfs.o mod-xfs.o
        -rm -f $@
        $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-xfs.o: $(xfs_mod_DEPENDENCIES) xfs_mod-fs_xfs.o
        -rm -f $@
@@ -616,7 +616,7 @@ UNDSYMFILES += und-affs.lst
 affs.mod: pre-affs.o mod-affs.o
        -rm -f $@
        $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-affs.o: $(affs_mod_DEPENDENCIES) affs_mod-fs_affs.o
        -rm -f $@
@@ -668,7 +668,7 @@ UNDSYMFILES += und-sfs.lst
 sfs.mod: pre-sfs.o mod-sfs.o
        -rm -f $@
        $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-sfs.o: $(sfs_mod_DEPENDENCIES) sfs_mod-fs_sfs.o
        -rm -f $@
@@ -720,7 +720,7 @@ UNDSYMFILES += und-hfsplus.lst
 hfsplus.mod: pre-hfsplus.o mod-hfsplus.o
        -rm -f $@
        $(TARGET_CC) $(hfsplus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-hfsplus.o: $(hfsplus_mod_DEPENDENCIES) hfsplus_mod-fs_hfsplus.o
        -rm -f $@
@@ -775,7 +775,7 @@ UNDSYMFILES += und-amiga.lst
 amiga.mod: pre-amiga.o mod-amiga.o
        -rm -f $@
        $(TARGET_CC) $(amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-amiga.o: $(amiga_mod_DEPENDENCIES) amiga_mod-partmap_amiga.o
        -rm -f $@
@@ -827,7 +827,7 @@ UNDSYMFILES += und-apple.lst
 apple.mod: pre-apple.o mod-apple.o
        -rm -f $@
        $(TARGET_CC) $(apple_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-apple.o: $(apple_mod_DEPENDENCIES) apple_mod-partmap_apple.o
        -rm -f $@
@@ -879,7 +879,7 @@ UNDSYMFILES += und-pc.lst
 pc.mod: pre-pc.o mod-pc.o
        -rm -f $@
        $(TARGET_CC) $(pc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-pc.o: $(pc_mod_DEPENDENCIES) pc_mod-partmap_pc.o
        -rm -f $@
@@ -931,7 +931,7 @@ UNDSYMFILES += und-sun.lst
 sun.mod: pre-sun.o mod-sun.o
        -rm -f $@
        $(TARGET_CC) $(sun_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-sun.o: $(sun_mod_DEPENDENCIES) sun_mod-partmap_sun.o
        -rm -f $@
@@ -983,7 +983,7 @@ UNDSYMFILES += und-acorn.lst
 acorn.mod: pre-acorn.o mod-acorn.o
        -rm -f $@
        $(TARGET_CC) $(acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-acorn.o: $(acorn_mod_DEPENDENCIES) acorn_mod-partmap_acorn.o
        -rm -f $@
@@ -1035,7 +1035,7 @@ UNDSYMFILES += und-gpt.lst
 gpt.mod: pre-gpt.o mod-gpt.o
        -rm -f $@
        $(TARGET_CC) $(gpt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-gpt.o: $(gpt_mod_DEPENDENCIES) gpt_mod-partmap_gpt.o
        -rm -f $@
@@ -1091,7 +1091,7 @@ UNDSYMFILES += und-raid.lst
 raid.mod: pre-raid.o mod-raid.o
        -rm -f $@
        $(TARGET_CC) $(raid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-raid.o: $(raid_mod_DEPENDENCIES) raid_mod-disk_raid.o
        -rm -f $@
@@ -1143,7 +1143,7 @@ UNDSYMFILES += und-lvm.lst
 lvm.mod: pre-lvm.o mod-lvm.o
        -rm -f $@
        $(TARGET_CC) $(lvm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-lvm.o: $(lvm_mod_DEPENDENCIES) lvm_mod-disk_lvm.o
        -rm -f $@
@@ -1201,7 +1201,7 @@ UNDSYMFILES += und-hello.lst
 hello.mod: pre-hello.o mod-hello.o
        -rm -f $@
        $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-hello.o: $(hello_mod_DEPENDENCIES) hello_mod-hello_hello.o
        -rm -f $@
@@ -1253,7 +1253,7 @@ UNDSYMFILES += und-boot.lst
 boot.mod: pre-boot.o mod-boot.o
        -rm -f $@
        $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-boot.o: $(boot_mod_DEPENDENCIES) boot_mod-commands_boot.o
        -rm -f $@
@@ -1305,7 +1305,7 @@ UNDSYMFILES += und-terminal.lst
 terminal.mod: pre-terminal.o mod-terminal.o
        -rm -f $@
        $(TARGET_CC) $(terminal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-terminal.o: $(terminal_mod_DEPENDENCIES) terminal_mod-commands_terminal.o
        -rm -f $@
@@ -1357,7 +1357,7 @@ UNDSYMFILES += und-ls.lst
 ls.mod: pre-ls.o mod-ls.o
        -rm -f $@
        $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-ls.o: $(ls_mod_DEPENDENCIES) ls_mod-commands_ls.o
        -rm -f $@
@@ -1409,7 +1409,7 @@ UNDSYMFILES += und-cmp.lst
 cmp.mod: pre-cmp.o mod-cmp.o
        -rm -f $@
        $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-cmp.o: $(cmp_mod_DEPENDENCIES) cmp_mod-commands_cmp.o
        -rm -f $@
@@ -1461,7 +1461,7 @@ UNDSYMFILES += und-cat.lst
 cat.mod: pre-cat.o mod-cat.o
        -rm -f $@
        $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-cat.o: $(cat_mod_DEPENDENCIES) cat_mod-commands_cat.o
        -rm -f $@
@@ -1518,7 +1518,7 @@ UNDSYMFILES += und-help.lst
 help.mod: pre-help.o mod-help.o
        -rm -f $@
        $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-help.o: $(help_mod_DEPENDENCIES) help_mod-commands_help.o
        -rm -f $@
@@ -1570,7 +1570,7 @@ UNDSYMFILES += und-font.lst
 font.mod: pre-font.o mod-font.o
        -rm -f $@
        $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-font.o: $(font_mod_DEPENDENCIES) font_mod-font_manager.o
        -rm -f $@
@@ -1622,7 +1622,7 @@ UNDSYMFILES += und-search.lst
 search.mod: pre-search.o mod-search.o
        -rm -f $@
        $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-search.o: $(search_mod_DEPENDENCIES) search_mod-commands_search.o
        -rm -f $@
@@ -1674,7 +1674,7 @@ UNDSYMFILES += und-test.lst
 test.mod: pre-test.o mod-test.o
        -rm -f $@
        $(TARGET_CC) $(test_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-test.o: $(test_mod_DEPENDENCIES) test_mod-commands_test.o
        -rm -f $@
@@ -1726,7 +1726,7 @@ UNDSYMFILES += und-loopback.lst
 loopback.mod: pre-loopback.o mod-loopback.o
        -rm -f $@
        $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-loopback.o: $(loopback_mod_DEPENDENCIES) loopback_mod-disk_loopback.o
        -rm -f $@
@@ -1778,7 +1778,7 @@ UNDSYMFILES += und-configfile.lst
 configfile.mod: pre-configfile.o mod-configfile.o
        -rm -f $@
        $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o 
$@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-configfile.o: $(configfile_mod_DEPENDENCIES) 
configfile_mod-commands_configfile.o
        -rm -f $@
@@ -1830,7 +1830,7 @@ UNDSYMFILES += und-terminfo.lst
 terminfo.mod: pre-terminfo.o mod-terminfo.o
        -rm -f $@
        $(TARGET_CC) $(terminfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-terminfo.o: $(terminfo_mod_DEPENDENCIES) terminfo_mod-term_terminfo.o 
terminfo_mod-term_tparm.o
        -rm -f $@
@@ -1897,7 +1897,7 @@ UNDSYMFILES += und-blocklist.lst
 blocklist.mod: pre-blocklist.o mod-blocklist.o
        -rm -f $@
        $(TARGET_CC) $(blocklist_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-blocklist.o: $(blocklist_mod_DEPENDENCIES) 
blocklist_mod-commands_blocklist.o
        -rm -f $@
@@ -1952,7 +1952,7 @@ UNDSYMFILES += und-elf.lst
 elf.mod: pre-elf.o mod-elf.o
        -rm -f $@
        $(TARGET_CC) $(elf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-elf.o: $(elf_mod_DEPENDENCIES) elf_mod-kern_elf.o
        -rm -f $@
@@ -2004,7 +2004,7 @@ UNDSYMFILES += und-gzio.lst
 gzio.mod: pre-gzio.o mod-gzio.o
        -rm -f $@
        $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-gzio.o: $(gzio_mod_DEPENDENCIES) gzio_mod-io_gzio.o
        -rm -f $@
diff --git a/conf/i386-efi.mk b/conf/i386-efi.mk
index d089985..3afb6da 100644
--- a/conf/i386-efi.mk
+++ b/conf/i386-efi.mk
@@ -265,7 +265,7 @@ UNDSYMFILES += und-kernel.lst
 kernel.mod: pre-kernel.o mod-kernel.o
        -rm -f $@
        $(TARGET_CC) $(kernel_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-kernel.o: $(kernel_mod_DEPENDENCIES) kernel_mod-kern_i386_efi_startup.o 
kernel_mod-kern_main.o kernel_mod-kern_device.o kernel_mod-kern_disk.o 
kernel_mod-kern_dl.o kernel_mod-kern_file.o kernel_mod-kern_fs.o 
kernel_mod-kern_err.o kernel_mod-kern_misc.o kernel_mod-kern_mm.o 
kernel_mod-kern_loader.o kernel_mod-kern_rescue.o kernel_mod-kern_term.o 
kernel_mod-kern_i386_dl.o kernel_mod-kern_i386_efi_init.o 
kernel_mod-kern_parser.o kernel_mod-kern_partition.o kernel_mod-kern_env.o 
kernel_mod-symlist.o kernel_mod-kern_efi_efi.o kernel_mod-kern_efi_init.o 
kernel_mod-kern_efi_mm.o kernel_mod-term_efi_console.o 
kernel_mod-disk_efi_efidisk.o
        -rm -f $@
@@ -682,7 +682,7 @@ UNDSYMFILES += und-normal.lst
 normal.mod: pre-normal.o mod-normal.o
        -rm -f $@
        $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-normal.o: $(normal_mod_DEPENDENCIES) normal_mod-normal_arg.o 
normal_mod-normal_cmdline.o normal_mod-normal_command.o 
normal_mod-normal_completion.o normal_mod-normal_execute.o 
normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o 
normal_mod-normal_menu.o normal_mod-normal_menu_entry.o 
normal_mod-normal_misc.o normal_mod-grub_script_tab.o 
normal_mod-normal_script.o normal_mod-normal_i386_setjmp.o
        -rm -f $@
@@ -930,7 +930,7 @@ UNDSYMFILES += und-_chain.lst
 _chain.mod: pre-_chain.o mod-_chain.o
        -rm -f $@
        $(TARGET_CC) $(_chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-_chain.o: $(_chain_mod_DEPENDENCIES) _chain_mod-loader_efi_chainloader.o
        -rm -f $@
@@ -982,7 +982,7 @@ UNDSYMFILES += und-chain.lst
 chain.mod: pre-chain.o mod-chain.o
        -rm -f $@
        $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-chain.o: $(chain_mod_DEPENDENCIES) 
chain_mod-loader_efi_chainloader_normal.o
        -rm -f $@
@@ -1034,7 +1034,7 @@ UNDSYMFILES += und-_linux.lst
 _linux.mod: pre-_linux.o mod-_linux.o
        -rm -f $@
        $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-_linux.o: $(_linux_mod_DEPENDENCIES) _linux_mod-loader_i386_efi_linux.o
        -rm -f $@
@@ -1086,7 +1086,7 @@ UNDSYMFILES += und-linux.lst
 linux.mod: pre-linux.o mod-linux.o
        -rm -f $@
        $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-linux.o: $(linux_mod_DEPENDENCIES) linux_mod-loader_i386_efi_linux_normal.o
        -rm -f $@
@@ -1138,7 +1138,7 @@ UNDSYMFILES += und-cpuid.lst
 cpuid.mod: pre-cpuid.o mod-cpuid.o
        -rm -f $@
        $(TARGET_CC) $(cpuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-cpuid.o: $(cpuid_mod_DEPENDENCIES) cpuid_mod-commands_i386_cpuid.o
        -rm -f $@
diff --git a/conf/i386-pc.mk b/conf/i386-pc.mk
index 032fbdb..6b7f880 100644
--- a/conf/i386-pc.mk
+++ b/conf/i386-pc.mk
@@ -13,7 +13,7 @@ CLEANFILES += boot.img boot.exec boot_img-boot_i386_pc_boot.o
 MOSTLYCLEANFILES += boot_img-boot_i386_pc_boot.d
 
 boot.img: boot.exec
-       $(OBJCOPY) -O binary -R .note -R .comment $< $@
+       $(OBJCOPY) -O binary -R .note -R .note.gnu.build-id -R .comment $< $@
 
 boot.exec: boot_img-boot_i386_pc_boot.o
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(boot_img_LDFLAGS)
@@ -31,7 +31,7 @@ CLEANFILES += pxeboot.img pxeboot.exec 
pxeboot_img-boot_i386_pc_pxeboot.o
 MOSTLYCLEANFILES += pxeboot_img-boot_i386_pc_pxeboot.d
 
 pxeboot.img: pxeboot.exec
-       $(OBJCOPY) -O binary -R .note -R .comment $< $@
+       $(OBJCOPY) -O binary -R .note -R .note.gnu.build-id -R .comment $< $@
 
 pxeboot.exec: pxeboot_img-boot_i386_pc_pxeboot.o
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(pxeboot_img_LDFLAGS)
@@ -49,7 +49,7 @@ CLEANFILES += diskboot.img diskboot.exec 
diskboot_img-boot_i386_pc_diskboot.o
 MOSTLYCLEANFILES += diskboot_img-boot_i386_pc_diskboot.d
 
 diskboot.img: diskboot.exec
-       $(OBJCOPY) -O binary -R .note -R .comment $< $@
+       $(OBJCOPY) -O binary -R .note -R .note.gnu.build-id -R .comment $< $@
 
 diskboot.exec: diskboot_img-boot_i386_pc_diskboot.o
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(diskboot_img_LDFLAGS)
@@ -73,7 +73,7 @@ CLEANFILES += kernel.img kernel.exec 
kernel_img-kern_i386_pc_startup.o kernel_im
 MOSTLYCLEANFILES += kernel_img-kern_i386_pc_startup.d kernel_img-kern_main.d 
kernel_img-kern_device.d kernel_img-kern_disk.d kernel_img-kern_dl.d 
kernel_img-kern_file.d kernel_img-kern_fs.d kernel_img-kern_err.d 
kernel_img-kern_misc.d kernel_img-kern_mm.d kernel_img-kern_loader.d 
kernel_img-kern_rescue.d kernel_img-kern_term.d kernel_img-kern_i386_dl.d 
kernel_img-kern_i386_pc_init.d kernel_img-kern_parser.d 
kernel_img-kern_partition.d kernel_img-kern_env.d 
kernel_img-term_i386_pc_console.d kernel_img-symlist.d
 
 kernel.img: kernel.exec
-       $(OBJCOPY) -O binary -R .note -R .comment $< $@
+       $(OBJCOPY) -O binary -R .note -R .note.gnu.build-id -R .comment $< $@
 
 kernel.exec: kernel_img-kern_i386_pc_startup.o kernel_img-kern_main.o 
kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o 
kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o 
kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_loader.o 
kernel_img-kern_rescue.o kernel_img-kern_term.o kernel_img-kern_i386_dl.o 
kernel_img-kern_i386_pc_init.o kernel_img-kern_parser.o 
kernel_img-kern_partition.o kernel_img-kern_env.o 
kernel_img-term_i386_pc_console.o kernel_img-symlist.o
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(kernel_img_LDFLAGS)
@@ -874,7 +874,7 @@ UNDSYMFILES += und-biosdisk.lst
 biosdisk.mod: pre-biosdisk.o mod-biosdisk.o
        -rm -f $@
        $(TARGET_CC) $(biosdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-biosdisk.o: $(biosdisk_mod_DEPENDENCIES) 
biosdisk_mod-disk_i386_pc_biosdisk.o
        -rm -f $@
@@ -926,7 +926,7 @@ UNDSYMFILES += und-_chain.lst
 _chain.mod: pre-_chain.o mod-_chain.o
        -rm -f $@
        $(TARGET_CC) $(_chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-_chain.o: $(_chain_mod_DEPENDENCIES) 
_chain_mod-loader_i386_pc_chainloader.o
        -rm -f $@
@@ -978,7 +978,7 @@ UNDSYMFILES += und-chain.lst
 chain.mod: pre-chain.o mod-chain.o
        -rm -f $@
        $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-chain.o: $(chain_mod_DEPENDENCIES) 
chain_mod-loader_i386_pc_chainloader_normal.o
        -rm -f $@
@@ -1030,7 +1030,7 @@ UNDSYMFILES += und-_linux.lst
 _linux.mod: pre-_linux.o mod-_linux.o
        -rm -f $@
        $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-_linux.o: $(_linux_mod_DEPENDENCIES) _linux_mod-loader_i386_pc_linux.o
        -rm -f $@
@@ -1082,7 +1082,7 @@ UNDSYMFILES += und-linux.lst
 linux.mod: pre-linux.o mod-linux.o
        -rm -f $@
        $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-linux.o: $(linux_mod_DEPENDENCIES) linux_mod-loader_i386_pc_linux_normal.o
        -rm -f $@
@@ -1139,7 +1139,7 @@ UNDSYMFILES += und-normal.lst
 normal.mod: pre-normal.o mod-normal.o
        -rm -f $@
        $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-normal.o: $(normal_mod_DEPENDENCIES) normal_mod-normal_arg.o 
normal_mod-normal_cmdline.o normal_mod-normal_command.o 
normal_mod-normal_completion.o normal_mod-normal_execute.o 
normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o 
normal_mod-normal_menu.o normal_mod-normal_menu_entry.o 
normal_mod-normal_misc.o normal_mod-grub_script_tab.o 
normal_mod-normal_script.o normal_mod-normal_i386_setjmp.o
        -rm -f $@
@@ -1387,7 +1387,7 @@ UNDSYMFILES += und-reboot.lst
 reboot.mod: pre-reboot.o mod-reboot.o
        -rm -f $@
        $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-reboot.o: $(reboot_mod_DEPENDENCIES) reboot_mod-commands_i386_pc_reboot.o
        -rm -f $@
@@ -1439,7 +1439,7 @@ UNDSYMFILES += und-halt.lst
 halt.mod: pre-halt.o mod-halt.o
        -rm -f $@
        $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-halt.o: $(halt_mod_DEPENDENCIES) halt_mod-commands_i386_pc_halt.o
        -rm -f $@
@@ -1491,7 +1491,7 @@ UNDSYMFILES += und-serial.lst
 serial.mod: pre-serial.o mod-serial.o
        -rm -f $@
        $(TARGET_CC) $(serial_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-serial.o: $(serial_mod_DEPENDENCIES) serial_mod-term_i386_pc_serial.o
        -rm -f $@
@@ -1546,7 +1546,7 @@ UNDSYMFILES += und-_multiboot.lst
 _multiboot.mod: pre-_multiboot.o mod-_multiboot.o
        -rm -f $@
        $(TARGET_CC) $(_multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o 
$@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-_multiboot.o: $(_multiboot_mod_DEPENDENCIES) 
_multiboot_mod-loader_i386_pc_multiboot.o 
_multiboot_mod-loader_i386_pc_multiboot2.o _multiboot_mod-loader_multiboot2.o 
_multiboot_mod-loader_multiboot_loader.o
        -rm -f $@
@@ -1643,7 +1643,7 @@ UNDSYMFILES += und-multiboot.lst
 multiboot.mod: pre-multiboot.o mod-multiboot.o
        -rm -f $@
        $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-multiboot.o: $(multiboot_mod_DEPENDENCIES) 
multiboot_mod-loader_multiboot_loader_normal.o
        -rm -f $@
@@ -1696,7 +1696,7 @@ UNDSYMFILES += und-vbe.lst
 vbe.mod: pre-vbe.o mod-vbe.o
        -rm -f $@
        $(TARGET_CC) $(vbe_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-vbe.o: $(vbe_mod_DEPENDENCIES) vbe_mod-video_i386_pc_vbe.o 
vbe_mod-video_i386_pc_vbeblit.o vbe_mod-video_i386_pc_vbefill.o 
vbe_mod-video_i386_pc_vbeutil.o
        -rm -f $@
@@ -1793,7 +1793,7 @@ UNDSYMFILES += und-vbeinfo.lst
 vbeinfo.mod: pre-vbeinfo.o mod-vbeinfo.o
        -rm -f $@
        $(TARGET_CC) $(vbeinfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-vbeinfo.o: $(vbeinfo_mod_DEPENDENCIES) 
vbeinfo_mod-commands_i386_pc_vbeinfo.o
        -rm -f $@
@@ -1845,7 +1845,7 @@ UNDSYMFILES += und-vbetest.lst
 vbetest.mod: pre-vbetest.o mod-vbetest.o
        -rm -f $@
        $(TARGET_CC) $(vbetest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-vbetest.o: $(vbetest_mod_DEPENDENCIES) 
vbetest_mod-commands_i386_pc_vbetest.o
        -rm -f $@
@@ -1897,7 +1897,7 @@ UNDSYMFILES += und-play.lst
 play.mod: pre-play.o mod-play.o
        -rm -f $@
        $(TARGET_CC) $(play_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-play.o: $(play_mod_DEPENDENCIES) play_mod-commands_i386_pc_play.o
        -rm -f $@
@@ -1949,7 +1949,7 @@ UNDSYMFILES += und-video.lst
 video.mod: pre-video.o mod-video.o
        -rm -f $@
        $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-video.o: $(video_mod_DEPENDENCIES) video_mod-video_video.o
        -rm -f $@
@@ -2001,7 +2001,7 @@ UNDSYMFILES += und-gfxterm.lst
 gfxterm.mod: pre-gfxterm.o mod-gfxterm.o
        -rm -f $@
        $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-gfxterm.o: $(gfxterm_mod_DEPENDENCIES) gfxterm_mod-term_gfxterm.o
        -rm -f $@
@@ -2053,7 +2053,7 @@ UNDSYMFILES += und-videotest.lst
 videotest.mod: pre-videotest.o mod-videotest.o
        -rm -f $@
        $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-videotest.o: $(videotest_mod_DEPENDENCIES) 
videotest_mod-commands_videotest.o
        -rm -f $@
@@ -2105,7 +2105,7 @@ UNDSYMFILES += und-bitmap.lst
 bitmap.mod: pre-bitmap.o mod-bitmap.o
        -rm -f $@
        $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-bitmap.o: $(bitmap_mod_DEPENDENCIES) bitmap_mod-video_bitmap.o
        -rm -f $@
@@ -2157,7 +2157,7 @@ UNDSYMFILES += und-tga.lst
 tga.mod: pre-tga.o mod-tga.o
        -rm -f $@
        $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-tga.o: $(tga_mod_DEPENDENCIES) tga_mod-video_readers_tga.o
        -rm -f $@
@@ -2209,7 +2209,7 @@ UNDSYMFILES += und-cpuid.lst
 cpuid.mod: pre-cpuid.o mod-cpuid.o
        -rm -f $@
        $(TARGET_CC) $(cpuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-cpuid.o: $(cpuid_mod_DEPENDENCIES) cpuid_mod-commands_i386_cpuid.o
        -rm -f $@
diff --git a/conf/powerpc-ieee1275.mk b/conf/powerpc-ieee1275.mk
index bce2992..e0e3e96 100644
--- a/conf/powerpc-ieee1275.mk
+++ b/conf/powerpc-ieee1275.mk
@@ -674,7 +674,7 @@ UNDSYMFILES += und-_linux.lst
 _linux.mod: pre-_linux.o mod-_linux.o
        -rm -f $@
        $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-_linux.o: $(_linux_mod_DEPENDENCIES) 
_linux_mod-loader_powerpc_ieee1275_linux.o
        -rm -f $@
@@ -726,7 +726,7 @@ UNDSYMFILES += und-linux.lst
 linux.mod: pre-linux.o mod-linux.o
        -rm -f $@
        $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-linux.o: $(linux_mod_DEPENDENCIES) 
linux_mod-loader_powerpc_ieee1275_linux_normal.o
        -rm -f $@
@@ -783,7 +783,7 @@ UNDSYMFILES += und-normal.lst
 normal.mod: pre-normal.o mod-normal.o
        -rm -f $@
        $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-normal.o: $(normal_mod_DEPENDENCIES) normal_mod-normal_arg.o 
normal_mod-normal_cmdline.o normal_mod-normal_command.o 
normal_mod-normal_completion.o normal_mod-normal_execute.o 
normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o 
normal_mod-normal_menu.o normal_mod-normal_menu_entry.o 
normal_mod-normal_misc.o normal_mod-grub_script_tab.o 
normal_mod-normal_script.o normal_mod-normal_powerpc_setjmp.o
        -rm -f $@
@@ -1031,7 +1031,7 @@ UNDSYMFILES += und-suspend.lst
 suspend.mod: pre-suspend.o mod-suspend.o
        -rm -f $@
        $(TARGET_CC) $(suspend_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-suspend.o: $(suspend_mod_DEPENDENCIES) 
suspend_mod-commands_ieee1275_suspend.o
        -rm -f $@
@@ -1083,7 +1083,7 @@ UNDSYMFILES += und-reboot.lst
 reboot.mod: pre-reboot.o mod-reboot.o
        -rm -f $@
        $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-reboot.o: $(reboot_mod_DEPENDENCIES) reboot_mod-commands_ieee1275_reboot.o
        -rm -f $@
@@ -1135,7 +1135,7 @@ UNDSYMFILES += und-halt.lst
 halt.mod: pre-halt.o mod-halt.o
        -rm -f $@
        $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-halt.o: $(halt_mod_DEPENDENCIES) halt_mod-commands_ieee1275_halt.o
        -rm -f $@
@@ -1189,7 +1189,7 @@ UNDSYMFILES += und-_multiboot.lst
 _multiboot.mod: pre-_multiboot.o mod-_multiboot.o
        -rm -f $@
        $(TARGET_CC) $(_multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o 
$@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-_multiboot.o: $(_multiboot_mod_DEPENDENCIES) 
_multiboot_mod-loader_powerpc_ieee1275_multiboot2.o 
_multiboot_mod-loader_multiboot2.o _multiboot_mod-loader_multiboot_loader.o
        -rm -f $@
@@ -1271,7 +1271,7 @@ UNDSYMFILES += und-multiboot.lst
 multiboot.mod: pre-multiboot.o mod-multiboot.o
        -rm -f $@
        $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-multiboot.o: $(multiboot_mod_DEPENDENCIES) 
multiboot_mod-loader_multiboot_loader_normal.o
        -rm -f $@
diff --git a/conf/sparc64-ieee1275.mk b/conf/sparc64-ieee1275.mk
index 1d98b1c..eac55f4 100644
--- a/conf/sparc64-ieee1275.mk
+++ b/conf/sparc64-ieee1275.mk
@@ -196,7 +196,7 @@ UNDSYMFILES += und-fshelp.lst
 fshelp.mod: pre-fshelp.o mod-fshelp.o
        -rm -f $@
        $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-fshelp.o: $(fshelp_mod_DEPENDENCIES) fshelp_mod-fs_fshelp.o
        -rm -f $@
@@ -248,7 +248,7 @@ UNDSYMFILES += und-fat.lst
 fat.mod: pre-fat.o mod-fat.o
        -rm -f $@
        $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-fat.o: $(fat_mod_DEPENDENCIES) fat_mod-fs_fat.o
        -rm -f $@
@@ -300,7 +300,7 @@ UNDSYMFILES += und-ext2.lst
 ext2.mod: pre-ext2.o mod-ext2.o
        -rm -f $@
        $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-ext2.o: $(ext2_mod_DEPENDENCIES) ext2_mod-fs_ext2.o
        -rm -f $@
@@ -352,7 +352,7 @@ UNDSYMFILES += und-ufs.lst
 ufs.mod: pre-ufs.o mod-ufs.o
        -rm -f $@
        $(TARGET_CC) $(ufs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-ufs.o: $(ufs_mod_DEPENDENCIES) ufs_mod-fs_ufs.o
        -rm -f $@
@@ -404,7 +404,7 @@ UNDSYMFILES += und-minix.lst
 minix.mod: pre-minix.o mod-minix.o
        -rm -f $@
        $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-minix.o: $(minix_mod_DEPENDENCIES) minix_mod-fs_minix.o
        -rm -f $@
@@ -456,7 +456,7 @@ UNDSYMFILES += und-hfs.lst
 hfs.mod: pre-hfs.o mod-hfs.o
        -rm -f $@
        $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-hfs.o: $(hfs_mod_DEPENDENCIES) hfs_mod-fs_hfs.o
        -rm -f $@
@@ -508,7 +508,7 @@ UNDSYMFILES += und-jfs.lst
 jfs.mod: pre-jfs.o mod-jfs.o
        -rm -f $@
        $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-jfs.o: $(jfs_mod_DEPENDENCIES) jfs_mod-fs_jfs.o
        -rm -f $@
@@ -565,7 +565,7 @@ UNDSYMFILES += und-xfs.lst
 xfs.mod: pre-xfs.o mod-xfs.o
        -rm -f $@
        $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-xfs.o: $(xfs_mod_DEPENDENCIES) xfs_mod-fs_xfs.o
        -rm -f $@
@@ -617,7 +617,7 @@ UNDSYMFILES += und-affs.lst
 affs.mod: pre-affs.o mod-affs.o
        -rm -f $@
        $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-affs.o: $(affs_mod_DEPENDENCIES) affs_mod-fs_affs.o
        -rm -f $@
@@ -669,7 +669,7 @@ UNDSYMFILES += und-sfs.lst
 sfs.mod: pre-sfs.o mod-sfs.o
        -rm -f $@
        $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-sfs.o: $(sfs_mod_DEPENDENCIES) sfs_mod-fs_sfs.o
        -rm -f $@
@@ -737,7 +737,7 @@ UNDSYMFILES += und-normal.lst
 normal.mod: pre-normal.o mod-normal.o
        -rm -f $@
        $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-normal.o: $(normal_mod_DEPENDENCIES) normal_mod-normal_arg.o 
normal_mod-normal_cmdline.o normal_mod-normal_command.o 
normal_mod-normal_completion.o normal_mod-normal_execute.o 
normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o 
normal_mod-normal_menu.o normal_mod-normal_menu_entry.o 
normal_mod-normal_misc.o normal_mod-normal_script.o 
normal_mod-normal_sparc64_setjmp.o normal_mod-grub_script_tab.o
        -rm -f $@
@@ -985,7 +985,7 @@ UNDSYMFILES += und-hello.lst
 hello.mod: pre-hello.o mod-hello.o
        -rm -f $@
        $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-hello.o: $(hello_mod_DEPENDENCIES) hello_mod-hello_hello.o
        -rm -f $@
@@ -1037,7 +1037,7 @@ UNDSYMFILES += und-boot.lst
 boot.mod: pre-boot.o mod-boot.o
        -rm -f $@
        $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-boot.o: $(boot_mod_DEPENDENCIES) boot_mod-commands_boot.o
        -rm -f $@
@@ -1089,7 +1089,7 @@ UNDSYMFILES += und-terminal.lst
 terminal.mod: pre-terminal.o mod-terminal.o
        -rm -f $@
        $(TARGET_CC) $(terminal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-terminal.o: $(terminal_mod_DEPENDENCIES) terminal_mod-commands_terminal.o
        -rm -f $@
@@ -1141,7 +1141,7 @@ UNDSYMFILES += und-ls.lst
 ls.mod: pre-ls.o mod-ls.o
        -rm -f $@
        $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-ls.o: $(ls_mod_DEPENDENCIES) ls_mod-commands_ls.o
        -rm -f $@
@@ -1193,7 +1193,7 @@ UNDSYMFILES += und-cmp.lst
 cmp.mod: pre-cmp.o mod-cmp.o
        -rm -f $@
        $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-cmp.o: $(cmp_mod_DEPENDENCIES) cmp_mod-commands_cmp.o
        -rm -f $@
@@ -1245,7 +1245,7 @@ UNDSYMFILES += und-cat.lst
 cat.mod: pre-cat.o mod-cat.o
        -rm -f $@
        $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-cat.o: $(cat_mod_DEPENDENCIES) cat_mod-commands_cat.o
        -rm -f $@
@@ -1297,7 +1297,7 @@ UNDSYMFILES += und-font.lst
 font.mod: pre-font.o mod-font.o
        -rm -f $@
        $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-font.o: $(font_mod_DEPENDENCIES) font_mod-font_manager.o
        -rm -f $@
@@ -1349,7 +1349,7 @@ UNDSYMFILES += und-amiga.lst
 amiga.mod: pre-amiga.o mod-amiga.o
        -rm -f $@
        $(TARGET_CC) $(amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-amiga.o: $(amiga_mod_DEPENDENCIES) amiga_mod-partmap_amiga.o
        -rm -f $@
@@ -1401,7 +1401,7 @@ UNDSYMFILES += und-apple.lst
 apple.mod: pre-apple.o mod-apple.o
        -rm -f $@
        $(TARGET_CC) $(apple_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-apple.o: $(apple_mod_DEPENDENCIES) apple_mod-partmap_apple.o
        -rm -f $@
@@ -1453,7 +1453,7 @@ UNDSYMFILES += und-pc.lst
 pc.mod: pre-pc.o mod-pc.o
        -rm -f $@
        $(TARGET_CC) $(pc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-pc.o: $(pc_mod_DEPENDENCIES) pc_mod-partmap_pc.o
        -rm -f $@
@@ -1505,7 +1505,7 @@ UNDSYMFILES += und-sun.lst
 sun.mod: pre-sun.o mod-sun.o
        -rm -f $@
        $(TARGET_CC) $(sun_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-sun.o: $(sun_mod_DEPENDENCIES) sun_mod-partmap_sun.o
        -rm -f $@
@@ -1557,7 +1557,7 @@ UNDSYMFILES += und-acorn.lst
 acorn.mod: pre-acorn.o mod-acorn.o
        -rm -f $@
        $(TARGET_CC) $(acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-acorn.o: $(acorn_mod_DEPENDENCIES) acorn_mod-partmap_acorn.o
        -rm -f $@
@@ -1608,7 +1608,7 @@ UNDSYMFILES += und-loopback.lst
 loopback.mod: pre-loopback.o mod-loopback.o
        -rm -f $@
        $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ 
$^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-loopback.o: $(loopback_mod_DEPENDENCIES) loopback_mod-disk_loopback.o
        -rm -f $@
@@ -1660,7 +1660,7 @@ UNDSYMFILES += und-suspend.lst
 suspend.mod: pre-suspend.o mod-suspend.o
        -rm -f $@
        $(TARGET_CC) $(suspend_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-suspend.o: $(suspend_mod_DEPENDENCIES) 
suspend_mod-commands_ieee1275_suspend.o
        -rm -f $@
@@ -1712,7 +1712,7 @@ UNDSYMFILES += und-reboot.lst
 reboot.mod: pre-reboot.o mod-reboot.o
        -rm -f $@
        $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-reboot.o: $(reboot_mod_DEPENDENCIES) reboot_mod-commands_ieee1275_reboot.o
        -rm -f $@
@@ -1764,7 +1764,7 @@ UNDSYMFILES += und-halt.lst
 halt.mod: pre-halt.o mod-halt.o
        -rm -f $@
        $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-halt.o: $(halt_mod_DEPENDENCIES) halt_mod-commands_ieee1275_halt.o
        -rm -f $@
@@ -1816,7 +1816,7 @@ UNDSYMFILES += und-help.lst
 help.mod: pre-help.o mod-help.o
        -rm -f $@
        $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-help.o: $(help_mod_DEPENDENCIES) help_mod-commands_help.o
        -rm -f $@
@@ -1878,7 +1878,7 @@ UNDSYMFILES += und-configfile.lst
 configfile.mod: pre-configfile.o mod-configfile.o
        -rm -f $@
        $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o 
$@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-configfile.o: $(configfile_mod_DEPENDENCIES) 
configfile_mod-commands_configfile.o
        -rm -f $@
@@ -1930,7 +1930,7 @@ UNDSYMFILES += und-search.lst
 search.mod: pre-search.o mod-search.o
        -rm -f $@
        $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-search.o: $(search_mod_DEPENDENCIES) search_mod-commands_search.o
        -rm -f $@
@@ -1982,7 +1982,7 @@ UNDSYMFILES += und-gzio.lst
 gzio.mod: pre-gzio.o mod-gzio.o
        -rm -f $@
        $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 pre-gzio.o: $(gzio_mod_DEPENDENCIES) gzio_mod-io_gzio.o
        -rm -f $@
diff --git a/configure b/configure
index 1971471..dc75ebd 100755
--- a/configure
+++ b/configure
@@ -6046,7 +6046,7 @@ for link_addr in 2000 8000 7C00; do
 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
    { (exit 1); exit 1; }; }
   fi
-  if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
+  if { ac_try='${OBJCOPY-objcopy} -O binary -R .note.gnu.build-id 
conftest.exec conftest'
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   (eval $ac_try) 2>&5
   ac_status=$?
diff --git a/genmk.rb b/genmk.rb
index 25deddb..d0a0c67 100644
--- a/genmk.rb
+++ b/genmk.rb
@@ -57,7 +57,7 @@ class Image
 MOSTLYCLEANFILES += #{deps_str}
 
 address@hidden: #{exe}
-       $(OBJCOPY) -O binary -R .note -R .comment $< $@
+       $(OBJCOPY) -O binary -R .note -R .note.gnu.build-id -R .comment $< $@
 
 #{exe}: #{objs_str}
        $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(#{prefix}_LDFLAGS)
@@ -115,7 +115,7 @@ UNDSYMFILES += #{undsym}
 address@hidden: #{pre_obj} #{mod_obj}
        -rm -f $@
        $(TARGET_CC) $(#{prefix}_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.comment $@
+       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R 
.note.gnu.build-id -R .comment $@
 
 #{pre_obj}: $(#{prefix}_DEPENDENCIES) #{objs_str}
        -rm -f $@




reply via email to

[Prev in Thread] Current Thread [Next in Thread]