aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-tilepro.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-05 06:01:18 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-05 06:01:30 -0700
commit007873f54e41eaef2f7a89b8adbb63a563d98b65 (patch)
tree6052f58ea15e7e9d226c225e432ed24fcb341017 /bfd/elf32-tilepro.c
parentea8fae9fe75706235ac49c507f1c5e039f4b4e1e (diff)
downloadgdb-007873f54e41eaef2f7a89b8adbb63a563d98b65.zip
gdb-007873f54e41eaef2f7a89b8adbb63a563d98b65.tar.gz
gdb-007873f54e41eaef2f7a89b8adbb63a563d98b65.tar.bz2
tile: Dump dynamic relocation info to the map file
Dump dynamic relocation info to the map file when generating dynamic relocation in read-only section relocations if -Map is used. * elf32-tilepro.c (readonly_dynrelocs): Dump dynamic relocation in read-only section with minfo. (tilepro_elf_size_dynamic_sections): Likewise. * elfxx-tilegx.c (readonly_dynrelocs): Likewise. (tilegx_elf_size_dynamic_sections): Likewise.
Diffstat (limited to 'bfd/elf32-tilepro.c')
-rw-r--r--bfd/elf32-tilepro.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c
index 13b9bb1..75a7de5 100644
--- a/bfd/elf32-tilepro.c
+++ b/bfd/elf32-tilepro.c
@@ -2407,6 +2407,9 @@ readonly_dynrelocs (struct elf_link_hash_entry *h, void *inf)
info->flags |= DF_TEXTREL;
+ info->callbacks->minfo (_("%B: dynamic relocation in read-only section `%A'\n"),
+ p->sec->owner, p->sec);
+
/* Not an error, just cut short the traversal. */
return FALSE;
}
@@ -2496,7 +2499,12 @@ tilepro_elf_size_dynamic_sections (bfd *output_bfd,
srel = elf_section_data (p->sec)->sreloc;
srel->size += p->count * TILEPRO_ELF_RELA_BYTES;
if ((p->sec->output_section->flags & SEC_READONLY) != 0)
- info->flags |= DF_TEXTREL;
+ {
+ info->flags |= DF_TEXTREL;
+
+ info->callbacks->minfo (_("%B: dynamic relocation in read-only section `%A'\n"),
+ p->sec->owner, p->sec);
+ }
}
}
}