blob: efdd6bb5fc95ce2afe7caf7b6a721013dc90898a [file] [log] [blame]
Matt Beaumont-Gay11f99872011-10-31 23:56:52 +00001; RUN: llvm-objdump -h %p/Inputs/trivial-object-test.elf-x86-64 \
Nick Lewycky023bb152011-10-10 21:21:34 +00002; RUN: | FileCheck %s
3
4; To verify this, use readelf -S, not objdump -h. Binutils objdump filters the
5; results in a way that we don't emulate.
6
7; CHECK: Sections:
8; CHECK: Idx Name Size Address Type
Michael J. Spencer27b2b1b2013-01-10 22:40:50 +00009; CHECK: 0 00000000 0000000000000000
Fangrui Song98ae37082018-06-23 00:15:33 +000010; CHECK: 1 .text 00000026 0000000000000000 TEXT
Michael J. Spencer27b2b1b2013-01-10 22:40:50 +000011; CHECK: 2 .rodata.str1.1 0000000d 0000000000000026 DATA
12; CHECK: 3 .note.GNU-stack 00000000 0000000000000033
13; CHECK: 4 .rela.text 00000048 0000000000000038
14; CHECK: 5 .symtab 000000c0 0000000000000080
15; CHECK: 6 .strtab 00000033 0000000000000140
16; CHECK: 7 .shstrtab 0000004b 0000000000000173