mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
e72538ff58
Summary: This affects what sections are displayed as "DATA" in llvm-objdump. The other user llvm-size is unaffected. Before, a "TEXT" section is also "DATA", which seems weird. The sh_flags condition matches that of bfd's SEC_DATA but the sh_type condition uses (== SHF_PROGBITS) instead of bfd's (!= SHT_NOBITS). bfd's SEC_DATA is not appealing as so many sections will be shown as DATA. Reviewers: jyknight, Bigcheese Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D48472 llvm-svn: 335405
17 lines
739 B
Plaintext
17 lines
739 B
Plaintext
; RUN: llvm-objdump -h %p/Inputs/trivial-object-test.elf-x86-64 \
|
|
; RUN: | FileCheck %s
|
|
|
|
; To verify this, use readelf -S, not objdump -h. Binutils objdump filters the
|
|
; results in a way that we don't emulate.
|
|
|
|
; CHECK: Sections:
|
|
; CHECK: Idx Name Size Address Type
|
|
; CHECK: 0 00000000 0000000000000000
|
|
; CHECK: 1 .text 00000026 0000000000000000 TEXT
|
|
; CHECK: 2 .rodata.str1.1 0000000d 0000000000000026 DATA
|
|
; CHECK: 3 .note.GNU-stack 00000000 0000000000000033
|
|
; CHECK: 4 .rela.text 00000048 0000000000000038
|
|
; CHECK: 5 .symtab 000000c0 0000000000000080
|
|
; CHECK: 6 .strtab 00000033 0000000000000140
|
|
; CHECK: 7 .shstrtab 0000004b 0000000000000173
|