Skip to content

Instantly share code, notes, and snippets.

@zesterer
Created April 3, 2017 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zesterer/470d60b9be804b60256b7f0dd0ae00c8 to your computer and use it in GitHub Desktop.
Save zesterer/470d60b9be804b60256b7f0dd0ae00c8 to your computer and use it in GitHub Desktop.
readelf --relocs build-default/kernel/x86/amd64/arch.cpp
[17:05][joshua@archbox][~/Documents/Projects/tupai-dev] readelf --relocs build-default/kernel/x86/amd64/arch.o
Relocation section '.rela.text' at offset 0x6a0 contains 1 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000002 000500000001 R_X86_64_64 0000000000000000 .rodata.str1.1 + 0
Relocation section '.rela.debug_info' at offset 0x6b8 contains 25 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000006 00080000000a R_X86_64_32 0000000000000000 .debug_abbrev + 0
00000000000c 000b0000000a R_X86_64_32 0000000000000000 .debug_str + b3
000000000011 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 1da
000000000015 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 53
000000000019 000200000001 R_X86_64_64 0000000000000000 .text + 0
000000000029 000a0000000a R_X86_64_32 0000000000000000 .debug_line + 0
000000000030 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 1b9
000000000035 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 0
000000000042 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 167
000000000049 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 19b
000000000050 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 1c2
000000000055 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 24
00000000005c 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 1ce
000000000063 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 1af
000000000071 000b0000000a R_X86_64_32 0000000000000000 .debug_str + a5
000000000078 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 154
00000000007f 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 179
000000000084 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 1a9
00000000008f 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 18b
000000000095 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 36
00000000009e 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 1e3
0000000000a4 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 7
0000000000b6 000b0000000a R_X86_64_32 0000000000000000 .debug_str + 186
0000000000c4 000200000001 R_X86_64_64 0000000000000000 .text + 0
0000000000db 000200000001 R_X86_64_64 0000000000000000 .text + 10
Relocation section '.rela.debug_aranges' at offset 0x910 contains 2 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000006 00070000000a R_X86_64_32 0000000000000000 .debug_info + 0
000000000010 000200000001 R_X86_64_64 0000000000000000 .text + 0
Relocation section '.rela.debug_line' at offset 0x940 contains 1 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000087 000200000001 R_X86_64_64 0000000000000000 .text + 0
Relocation section '.rela.eh_frame' at offset 0x958 contains 2 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000000020 000200000002 R_X86_64_PC32 0000000000000000 .text + 0
000000000034 000200000002 R_X86_64_PC32 0000000000000000 .text + 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment