https://sourceware.org/bugzilla/show_bug.cgi?id=32459
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|nickc at redhat dot com |hjl.tools at gmail dot
com
Status|REOPENED |NEW
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 15975
--> https://sourceware.org/bugzilla/attachment.cgi?id=15975&action=edit
A patch
[hjl@gnu-tgl-3 pr32459]$ readelf -r x.so
Relocation section '.rela.dyn' at offset 0x1078 contains 2 entries:
Offset Info Type Sym. Value Sym. Name +
Addend
000000003008 000100000001 R_X86_64_64 0000000000000000 data1 + 0
000000003018 000100000001 R_X86_64_64 0000000000000000 data1 + 0
Relocation section '.rela.plt' at offset 0x10a8 contains 1 entry:
Offset Info Type Sym. Value Sym. Name +
Addend
000000003000 000200000007 R_X86_64_JUMP_SLO 0000000000000000 func1 + 1e0
Relocation section '.relr.dyn' at offset 0x10c0 contains 2 entries which
relocate 3 locations:
Index: Entry Address Symbolic Address
0000: 0000000000002fe0 0000000000002fe0 .got
0001: 0000000000000141 0000000000003010 .bar + 0x8
0000000000003020 .foo + 0x8
[hjl@gnu-tgl-3 pr32459]$ ./objdump -R x.so
x.so: file format elf64-x86-64
DYNAMIC RELOCATION RECORDS
OFFSET TYPE VALUE
0000000000003008 R_X86_64_64 data1
0000000000003018 R_X86_64_64 data1
0000000000003000 R_X86_64_JUMP_SLOT func1+0x00000000000001e0
0000000000002fe0 R_X86_64_RELATIVE *ABS*
0000000000003010 R_X86_64_RELATIVE *ABS*
0000000000003020 R_X86_64_RELATIVE *ABS*
[hjl@gnu-tgl-3 pr32459]$
--
You are receiving this mail because:
You are on the CC list for the bug.