This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix 5025, discarded .note.gnu.build-id
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Sat, 15 Sep 2007 15:50:43 +0930
- Subject: Fix 5025, discarded .note.gnu.build-id
PR ld/5025
* emultempl/elf32.em (write_build_id_section): Correct test for
"missing" .note.gnu.build-id. Downgrade error to a warning if
it has been discarded.
Index: ld/emultempl/elf32.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
retrieving revision 1.186
diff -u -p -r1.186 elf32.em
--- ld/emultempl/elf32.em 17 Aug 2007 13:50:48 -0000 1.186
+++ ld/emultempl/elf32.em 15 Sep 2007 03:39:19 -0000
@@ -936,10 +936,11 @@ gld${EMULATION_NAME}_write_build_id_sect
Elf_External_Note *e_note;
asec = info->sec;
- if (asec->output_section == NULL)
+ if (bfd_is_abs_section (asec->output_section))
{
- einfo (_("%P: .note.gnu.build-id section missing"));
- return FALSE;
+ einfo (_("%P: warning: .note.gnu.build-id section discarded,"
+ " --build-id ignored.\n"));
+ return TRUE;
}
i_shdr = &elf_section_data (asec->output_section)->this_hdr;
--
Alan Modra
Australia Development Lab, IBM