aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorClément Chigot <chigot@adacore.com>2023-11-06 10:50:23 +0100
committerClément Chigot <chigot@adacore.com>2023-11-08 09:07:02 +0100
commitfb2908093576cc469c5ee8404070c8521631c019 (patch)
tree14c8380cb6d378e8a537c5dfda917b6bed774c17 /ld
parent1185b5b79a12ba67eb60bee3f75babf7a222fde0 (diff)
downloadgdb-fb2908093576cc469c5ee8404070c8521631c019.zip
gdb-fb2908093576cc469c5ee8404070c8521631c019.tar.gz
gdb-fb2908093576cc469c5ee8404070c8521631c019.tar.bz2
ld: print branch fixups into the map file for ppc elf targets
In a safety context, it could interesting to track the trampolines being generated, ensuring there are expected or not. bfd/ChangeLog: * elf32-ppc.c (ppc_elf_relax_section): Log branch fixups. ld/ChangeLog: * ld.texi (--print-map): Add new item about fixups.
Diffstat (limited to 'ld')
-rw-r--r--ld/ld.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ld.texi b/ld/ld.texi
index f710c02..1c13256 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -920,6 +920,17 @@ Updated property 0xc0010001 (0x1) to merge foo.o (0x1) and bar.o (0x1)
This indicates that property 0xc0010001 value is updated to 0x1 in output
when merging properties in @file{foo.o}, whose 0xc0010001 property value
is 0x1, and @file{bar.o}, whose 0xc0010001 property value is 0x1.
+
+@item
+On some ELF targets, a list of fixups inserted by @option{--relax}
+
+@smallexample
+foo.o: Adjusting branch at 0x00000008 towards "far" in section .text
+@end smallexample
+
+This indicates that the branch at 0x00000008 in foo.o, targeting
+the symbol "far" in section .text, has been replaced by a trampoline.
+
@end itemize
@cindex link map discarded