mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
76e71bd66e
During ELF writing, there is no need to further relax the sections, so we should not be creating fragments. This patch avoids doing so in all cases but debug section compression (that is next). Also, the ELF format is fairly simple to write. We can do a single pass over the sections to write them out and compute the section header table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236235 91177308-0d34-0410-b5e6-96231b3b80d8
42 lines
760 B
ArmAsm
42 lines
760 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)
|
|
|
|
// CHECK: Name: .foo
|
|
// CHECK-NOT: }
|
|
// CHECK: Section: .foo (0x6)
|
|
|
|
// CHECK: Name: .foo
|
|
// CHECK-NOT: }
|
|
// CHECK: Section: .foo (0x8)
|
|
|
|
|
|
.section .foo,"axG",@progbits,f1,comdat
|
|
nop
|
|
|
|
.section .foo,"axG",@progbits,f2,comdat
|
|
nop
|
|
|