From: H.J. Lu Date: Fri, 1 Dec 2017 12:01:11 +0000 (-0800) Subject: x86: Print dynreloc in readonly section for map file output X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92f402a7e03f5d747bc9a09c8da2f61cc539ac33;p=binutils-gdb.git x86: Print dynreloc in readonly section for map file output This fixed: FAIL: DT_TEXTREL map file warning on Linux/x86. * elfxx-x86.c (_bfd_x86_elf_readonly_dynrelocs): Print dynamic relocation in readonly section for map file output. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ae289706673..95fb5cdf2bb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-12-01 H.J. Lu + + * elfxx-x86.c (_bfd_x86_elf_readonly_dynrelocs): Print symbol + for map file output. + 2017-12-01 Alan Modra * elf32-hppa.c (maybe_set_textrel): Print symbol for map file output. diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c index ecb8b9dd106..3899c137dcf 100644 --- a/bfd/elfxx-x86.c +++ b/bfd/elfxx-x86.c @@ -551,6 +551,11 @@ _bfd_x86_elf_readonly_dynrelocs (struct elf_link_hash_entry *h, info->callbacks->einfo (_("%P: %B: warning: relocation against `%s' in readonly section `%A'\n"), p->sec->owner, h->root.root.string, p->sec); + else + /* xgettext:c-format */ + info->callbacks->minfo + (_("%B: dynamic relocation against `%T' in read-only section `%A'\n"), + p->sec->owner, h->root.root.string, p->sec); /* Not an error, just cut short the traversal. */ return FALSE;