From 83e4970bb760a819e490875923d71a427f399976 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 15 Sep 2007 06:21:06 +0000 Subject: [PATCH 1/1] 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. --- ld/ChangeLog | 7 +++++++ ld/emultempl/elf32.em | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 2ffe3976dc..d426fe1828 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2007-09-15 Alan Modra + + 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. + 2007-09-08 Alan Modra * ldwrite.c (build_link_order ): Correct diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 88381407cc..775458c618 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -936,10 +936,11 @@ gld${EMULATION_NAME}_write_build_id_section (bfd *abfd) 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; -- 2.34.1