Skip to content

Instantly share code, notes, and snippets.

@SunXiaoShan
Created August 8, 2019 07:43
Show Gist options
  • Save SunXiaoShan/0f26d36425bdc952b6d08773179504c6 to your computer and use it in GitHub Desktop.
Save SunXiaoShan/0f26d36425bdc952b6d08773179504c6 to your computer and use it in GitHub Desktop.
hello.o: file format Mach-O 64-bit x86-64
RELOCATION RECORDS FOR [__text]:
0000000000000068 X86_64_RELOC_BRANCH _func
0000000000000032 X86_64_RELOC_SIGNED _gy
000000000000002c X86_64_RELOC_SIGNED _gx
0000000000000018 X86_64_RELOC_SIGNED _gy
000000000000000f X86_64_RELOC_SIGNED _gx
RELOCATION RECORDS FOR [__compact_unwind]:
0000000000000020 X86_64_RELOC_UNSIGNED __text
0000000000000000 X86_64_RELOC_UNSIGNED __text
Sections:
Idx Name Size Address Type
0 __text 00000079 0000000000000000 TEXT
1 __data 00000008 000000000000007c DATA
2 __compact_unwind 00000040 0000000000000088 DATA
3 __eh_frame 00000068 00000000000000c8 DATA
SYMBOL TABLE:
0000000000000000 g F __TEXT,__text _func
000000000000007c g __DATA,__data _gx
0000000000000080 g __DATA,__data _gy
0000000000000040 g F __TEXT,__text _main
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC_64 X86_64 ALL 0x00 OBJECT 4 520 SUBSECTIONS_VIA_SYMBOLS
Load command 0
cmd LC_SEGMENT_64
cmdsize 392
segname
vmaddr 0x0000000000000000
vmsize 0x0000000000000130
fileoff 552
filesize 304
maxprot rwx
initprot rwx
nsects 4
flags (none)
Section
sectname __text
segname __TEXT
addr 0x0000000000000000
size 0x0000000000000079
offset 552
align 2^4 (16)
reloff 856
nreloc 5
type S_REGULAR
attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
reserved1 0
reserved2 0
Section
sectname __data
segname __DATA
addr 0x000000000000007c
size 0x0000000000000008
offset 676
align 2^2 (4)
reloff 0
nreloc 0
type S_REGULAR
attributes (none)
reserved1 0
reserved2 0
Section
sectname __compact_unwind
segname __LD
addr 0x0000000000000088
size 0x0000000000000040
offset 688
align 2^3 (8)
reloff 896
nreloc 2
type S_REGULAR
attributes DEBUG
reserved1 0
reserved2 0
Section
sectname __eh_frame
segname __TEXT
addr 0x00000000000000c8
size 0x0000000000000068
offset 752
align 2^3 (8)
reloff 0
nreloc 0
type S_COALESCED
attributes NO_TOC STRIP_STATIC_SYMS LIVE_SUPPORT
reserved1 0
reserved2 0
Load command 1
cmd LC_BUILD_VERSION
cmdsize 24
platform macos
sdk 10.14
minos 10.14
ntools 0
Load command 2
cmd LC_SYMTAB
cmdsize 24
symoff 912
nsyms 4
stroff 976
strsize 24
Load command 3
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 0
iextdefsym 0
nextdefsym 4
iundefsym 4
nundefsym 0
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 0
nindirectsyms 0
extreloff 0
nextrel 0
locreloff 0
nlocrel 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment