ld/x86: Update -z report-relative-reloc
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 4 Jan 2022 19:07:50 +0000 (11:07 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 4 Jan 2022 19:12:01 +0000 (11:12 -0800)
commit7131d475da0062b2991eecfde76cbff96de289ab
tree437dceee8fd5c34de2e7a1b9de98e1e9797cbb60
parent6395a1021020671dd205d332b2879e3e733e8024
ld/x86: Update -z report-relative-reloc

Use 0x%v, instead of bfd_sprintf_vma, to report relative relocations.
Change linker relative relocations report from

tmpdir/dump: R_X86_64_IRELATIVE (offset: 0x0000000000002000, info: 0x0000000000000025, addend: 0x0000000000001007) against 'ifunc' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o

to

tmpdir/dump: R_X86_64_IRELATIVE (offset: 0x2000, info: 0x25, addend: 0x1007) against 'ifunc' for section '.data.rel.ro.local' in tmpdir/report-reloc-1.o

bfd/

* elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): Use
0x%v instead of bfd_sprintf_vma.

ld/

* testsuite/ld-i386/report-reloc-1.l: Updated.
* testsuite/ld-x86-64/report-reloc-1.l: Likewise.
bfd/elfxx-x86.c
ld/testsuite/ld-i386/report-reloc-1.l
ld/testsuite/ld-x86-64/report-reloc-1.l