H.J. Lu
68b007788a
ld/x86: Add -z report-relative-reloc
...
Linker generated relative relocations don't have symbol info:
[hjl@gnu-cfl-2 tmpdir]$ readelf -rW dump
Relocation section '.rela.dyn' at offset 0x180 contains 2 entries:
Offset Info Type Sym. Value Symbol's Name + Addend
00002f70 00000008 R_X86_64_RELATIVE 1000
00002f68 00000025 R_X86_64_IRELATIVE 1007
[hjl@gnu-cfl-2 tmpdir]$
Add -z report-relative-reloc to x86 ELF linker to report dynamic relative
relocations:
[hjl@gnu-cfl-2 tmpdir]$ ../ld-new -pie -melf32_x86_64 -z report-relative-reloc -o dump report-reloc-1.o
dump: R_X86_64_IRELATIVE (offset: 0x00002f68, info: 0x00000025, addend: 0x00001007) against 'ifunc' for section '.data.rel.ro.local' in report-reloc-1.o
dump: R_X86_64_RELATIVE (offset: 0x00002f70, info: 0x00000008, addend: 0x00001000) against '_start' for section '.data.rel.ro.local' in report-reloc-1.o
[hjl@gnu-cfl-2 tmpdir]$
It can be used to map relative relocations to corresponding symbols.
bfd/
* elf-linker-x86.h (elf_linker_x86_params): Add
report_relative_reloc.
* elf32-i386.c (elf_i386_relocate_section): Call
_bfd_x86_elf_link_report_relative_reloc to report relative
relocations for -z report-relative-reloc.
(elf_i386_finish_dynamic_symbol): Likewse.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
(elf_x86_64_finish_dynamic_symbol): Likewse.
* elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
function.
* elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
prototype.
ld/
* NEWS: Mention -z report-relative-reloc.
* ld.texi: Document -z report-relative-reloc.
* emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
* emulparams/elf_i386.sh: Likewse.
* emulparams/elf_x86_64.sh: Likewse.
* emulparams/x86-report-relative.sh: New file.
* testsuite/ld-i386/report-reloc-1.d: Likewse.
* testsuite/ld-i386/report-reloc-1.l: Likewse.
* testsuite/ld-i386/report-reloc-1.s: Likewse.
* testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
* testsuite/ld-x86-64/report-reloc-1.d: Likewse.
* testsuite/ld-x86-64/report-reloc-1.l: Likewse.
* testsuite/ld-x86-64/report-reloc-1.s: Likewse.
* testsuite/ld-i386/i386.exp: Run report-reloc-1.
* testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
report-reloc-1-x32.
2021-01-15 18:07:07 -08:00
..
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-11-08 21:07:43 +10:30
2019-04-13 12:13:22 +09:30
2019-11-08 21:07:43 +10:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2018-10-13 20:33:23 +10:30
2019-11-08 21:07:43 +10:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-11-08 21:07:43 +10:30
2019-12-05 17:35:13 +10:30
2019-12-05 17:35:13 +10:30
2019-12-05 17:35:13 +10:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-11-08 21:07:43 +10:30
2019-09-11 13:45:18 +09:30
2019-11-08 21:07:43 +10:30
2020-11-27 10:45:35 +00:00
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-12-05 17:35:13 +10:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-06 07:25:31 -07:00
2020-12-23 13:00:55 -08:00
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2020-10-26 17:13:21 +08:00
2020-10-26 17:13:21 +08:00
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-12-05 17:35:13 +10:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2021-01-15 18:07:07 -08:00
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-11-08 21:07:43 +10:30
2019-11-05 13:58:01 +10:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2021-01-06 17:57:52 +08:00
2021-01-06 17:57:52 +08:00
2021-01-06 17:57:52 +08:00
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2018-06-08 20:17:34 +09:30
2019-11-05 13:58:01 +10:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-11-05 13:58:01 +10:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2020-10-16 10:11:18 +08:00
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-11-08 21:07:43 +10:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-12-18 14:55:35 -05:00
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2020-04-30 13:35:37 +01:00
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2020-02-07 14:53:46 +00:00
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-08-09 11:06:37 +01:00
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2021-01-06 17:57:52 +08:00
2021-01-06 17:57:52 +08:00
2021-01-06 17:57:52 +08:00
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2020-10-06 17:09:27 +10:30
2019-10-16 23:07:27 +10:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2020-07-19 06:08:07 +02:00
2019-04-13 12:13:22 +09:30
2019-10-16 23:07:27 +10:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2020-03-28 05:06:58 -07:00
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2021-01-15 18:07:07 -08:00
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2021-01-15 18:07:07 -08:00
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-11-05 13:58:01 +10:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-05-30 01:01:42 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2020-04-14 14:41:27 +01:00
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2021-01-01 10:31:05 +10:30
2019-04-06 07:25:31 -07:00
2019-11-08 21:07:43 +10:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-11-08 21:07:43 +10:30
2019-09-11 13:45:18 +09:30
2019-11-08 21:07:43 +10:30
2019-09-11 13:45:18 +09:30
2019-11-08 21:07:43 +10:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-09-11 13:45:18 +09:30
2019-04-13 12:13:22 +09:30
2019-04-13 12:13:22 +09:30
2020-03-13 07:39:06 -07:00
2019-09-11 13:45:18 +09:30
2019-09-11 13:45:18 +09:30
2020-12-23 13:00:55 -08:00
2020-11-03 08:56:27 +00:00
2021-01-15 18:07:07 -08:00
2018-07-10 23:59:07 +09:30