mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
1f76d4c2b7
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 llvm-svn: 207670
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: }
|