mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2017-12-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elfxx-x86.c (_bfd_x86_elf_readonly_dynrelocs): Print symbol
|
||||||
|
for map file output.
|
||||||
|
|
||||||
2017-12-01 Alan Modra <amodra@gmail.com>
|
2017-12-01 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elf32-hppa.c (maybe_set_textrel): Print symbol for map file output.
|
* elf32-hppa.c (maybe_set_textrel): Print symbol for map file output.
|
||||||
|
@ -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"),
|
info->callbacks->einfo (_("%P: %B: warning: relocation against `%s' in readonly section `%A'\n"),
|
||||||
p->sec->owner, h->root.root.string,
|
p->sec->owner, h->root.root.string,
|
||||||
p->sec);
|
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. */
|
/* Not an error, just cut short the traversal. */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user