mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
b159906a9a
Also change some options that have different semantics (cause confusion) in llvm-readelf mode: -s => -S -t => --symbols -sd => --section-data llvm-svn: 359651
28 lines
632 B
ArmAsm
28 lines
632 B
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
// RUN: ld.lld %t -o %t2
|
|
// RUN: llvm-readobj --sections %t2 | FileCheck %s
|
|
|
|
.global _start
|
|
_start:
|
|
|
|
.section foobar,"",@progbits
|
|
|
|
.section bar, "a"
|
|
|
|
// Both sections are in the output and that the alloc section is first:
|
|
// CHECK: Name: bar
|
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
|
// CHECK-NEXT: Flags [
|
|
// CHECK-NEXT: SHF_ALLOC
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Address: 0x200120
|
|
|
|
// CHECK: Name: foobar
|
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
|
// CHECK-NEXT: Flags [
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Address: 0x0
|
|
|
|
// CHECK-NOT: Name: foobar
|