mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
We already do this for shstrtab, so might as well do it for strtab. This extracts the string table building code into a separate class. The idea is to use it for other object formats too. I mostly wanted to do this for the general principle, but it does save a little bit on object file size. I tried this on a clang bootstrap and saved 0.54% on the sum of object file sizes (1.14 MB out of 212 MB for a release build). Differential Revision: http://reviews.llvm.org/D3533 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207670 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
661 B
ArmAsm
24 lines
661 B
ArmAsm
// RUN: llvm-mc -triple i386-pc-linux-gnu %s -filetype=obj -o - | llvm-readobj -t | FileCheck %s
|
|
|
|
.lcomm A, 5
|
|
.lcomm B, 32 << 20
|
|
|
|
// CHECK: Symbol {
|
|
// CHECK: Name: A
|
|
// CHECK-NEXT: Value: 0x0
|
|
// CHECK-NEXT: Size: 5
|
|
// CHECK-NEXT: Binding: Local
|
|
// CHECK-NEXT: Type: Object
|
|
// CHECK-NEXT: Other: 0
|
|
// CHECK-NEXT: Section: .bss (0x3)
|
|
// CHECK-NEXT: }
|
|
// CHECK: Symbol {
|
|
// CHECK: Name: B
|
|
// CHECK-NEXT: Value: 0x5
|
|
// CHECK-NEXT: Size: 33554432
|
|
// CHECK-NEXT: Binding: Local
|
|
// CHECK-NEXT: Type: Object
|
|
// CHECK-NEXT: Other: 0
|
|
// CHECK-NEXT: Section: .bss (0x3)
|
|
// CHECK-NEXT: }
|