12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- # RUN: %yaml2obj %s -o %t.obj
- # RUN: %bloaty --raw-map %t.obj | %FileCheck %s
- --- !ELF
- FileHeader:
- Class: ELFCLASS64
- Data: ELFDATA2LSB
- Type: ET_REL
- Machine: EM_X86_64
- Sections:
- - Name: .text
- Type: SHT_PROGBITS
- Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
- AddressAlign: 0x1
- - Name: .data
- Type: SHT_PROGBITS
- Flags: [ SHF_WRITE, SHF_ALLOC ]
- AddressAlign: 0x1
- - Name: .bss
- Type: SHT_NOBITS
- Flags: [ SHF_WRITE, SHF_ALLOC ]
- AddressAlign: 0x1
- - Name: .comment
- Type: SHT_PROGBITS
- Flags: [ SHF_MERGE, SHF_STRINGS ]
- AddressAlign: 0x1
- EntSize: 0x1
- Content: 004743433A202844656269616E2031302E322E312D362B6275696C6432292031302E322E3120323032313031313000
- - Name: .note.GNU-stack
- Type: SHT_PROGBITS
- AddressAlign: 0x1
- Symbols:
- - Name: 'null'
- Type: STT_FILE
- Index: SHN_ABS
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .note.GNU-stack
- Type: STT_SECTION
- Section: .note.GNU-stack
- - Name: .comment
- Type: STT_SECTION
- Section: .comment
- ...
- # CHECK: FILE MAP:
- # CHECK: 000-040 64 [ELF Header]
- # CHECK: 040-070 48 .comment
- # CHECK: 070-118 168 .symtab
- # CHECK: 118-148 48 .strtab
- # CHECK: 148-190 72 .shstrtab
- # CHECK: 190-3d0 576 [ELF Section Headers]
- # CHECK: VM MAP:
|