Open
Description
In this small example, you see the following output for relocations of lib.so
:
$ make reloc
arc-gnu-linux-readelf -r lib.so
Relocation section '.rela.dyn' at offset 0x2d4 contains 10 entries:
Offset Info Type Sym.Value Sym. Name + Addend
00003f0c 00000038 R_ARC_RELATIVE 9c
00003f10 00000038 R_ARC_RELATIVE 64
00004010 00000038 R_ARC_RELATIVE 0
00000000 00000000 R_ARC_NONE 0
00000000 00000000 R_ARC_NONE 0
00000000 00000000 R_ARC_NONE 0
00003fec 00000536 R_ARC_GLOB_DAT 00000000 _ITM_deregisterTMClone + 0
00003ff0 00000736 R_ARC_GLOB_DAT 00000000 _ITM_registerTMCloneTa + 0
00003ff4 00000836 R_ARC_GLOB_DAT 00000000 __cxa_finalize@GLIBC_2.30 + 0
00003ff8 00000636 R_ARC_GLOB_DAT 00000000 foo + 0
Relocation section '.rela.plt' at offset 0x34c contains 2 entries:
Offset Info Type Sym.Value Sym. Name + Addend
00004008 00000637 R_ARC_JMP_SLOT 00000000 foo + 0
0000400c 00000837 R_ARC_JMP_SLOT 00000000 __cxa_finalize@GLIBC_2.30 + 0
There are a few R_ARC_NONE
s which shouldn't be.
Metadata
Metadata
Assignees
Labels
No labels