mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-29 13:29:28 +00:00
Section symbols exist as an optimization: instead of having multiple relocations point to different symbols, many of them can point to a single section symbol. When that optimization is unused, a section symbol is also unused and adds no extra information to the object file. This saves a bit of space on the object files and makes the output of llvm-objdump -t easier to read and consequently some tests get quite a bit simpler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239045 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
623 B
ArmAsm
33 lines
623 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck %s
|
|
|
|
// Test that we produce two foo sections, each in separate groups
|
|
|
|
// CHECK: Index: 5
|
|
// CHECK-NEXT: Name: .group
|
|
|
|
// CHECK: Index: 6
|
|
// CHECK-NEXT: Name: .foo
|
|
|
|
// CHECK: Index: 7
|
|
// CHECK-NEXT: Name: .group
|
|
|
|
// CHECK: Index: 8
|
|
// CHECK-NEXT: Name: .foo
|
|
|
|
// CHECK: Symbols [
|
|
|
|
// CHECK: Name: f1
|
|
// CHECK-NOT: }
|
|
// CHECK: Section: .group (0x5)
|
|
|
|
// CHECK: Name: f2
|
|
// CHECK-NOT: }
|
|
// CHECK: Section: .group (0x7)
|
|
|
|
.section .foo,"axG",@progbits,f1,comdat
|
|
nop
|
|
|
|
.section .foo,"axG",@progbits,f2,comdat
|
|
nop
|
|
|