diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-12-01 04:01:11 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-12-01 04:07:01 -0800 |
commit | 92f402a7e03f5d747bc9a09c8da2f61cc539ac33 (patch) | |
tree | 831eaab49a06b7a8953cd3fa5085ff09e9fc8eea /bfd/elfxx-x86.c | |
parent | 1cc75e929ff4e99b3bef4ca0e93250d5b1b126c9 (diff) | |
download | gdb-92f402a7e03f5d747bc9a09c8da2f61cc539ac33.zip gdb-92f402a7e03f5d747bc9a09c8da2f61cc539ac33.tar.gz gdb-92f402a7e03f5d747bc9a09c8da2f61cc539ac33.tar.bz2 |
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.
Diffstat (limited to 'bfd/elfxx-x86.c')
-rw-r--r-- | bfd/elfxx-x86.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c index ecb8b9d..3899c13 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; |