mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-13 07:50:50 +00:00
26b10da9c2
The symbol table has forward references in the file. Instead of allocating a temporary buffer or counting the size and then writing, this implementation writes a dummy value first and patches it once the final value is known. There is room for performance improvement. I will implement them as soon as I get some other features (like a ranlib mode) in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186934 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
608 B
Plaintext
19 lines
608 B
Plaintext
RUN: rm -f %t.a
|
|
RUN: llvm-ar rcs %t.a %p/Inputs/trivial-object-test.elf-x86-64 %p/Inputs/trivial-object-test2.elf-x86-64
|
|
RUN: llvm-nm -s %t.a | FileCheck %s
|
|
|
|
CHECK: Archive map
|
|
CHECK-NEXT: main in trivial-object-test.elf-x86-64
|
|
CHECK-NEXT: foo in trivial-object-test2.elf-x86-64
|
|
CHECK-NEXT: main in trivial-object-test2.elf-x86-64
|
|
CHECK-NOT: bar
|
|
|
|
CHECK: trivial-object-test.elf-x86-64:
|
|
CHECK-NEXT: U SomeOtherFunction
|
|
CHECK-NEXT: 00000000 T main
|
|
CHECK-NEXT: U puts
|
|
CHECK-NEXT: trivial-object-test2.elf-x86-64:
|
|
CHECK-NEXT: 00000000 t bar
|
|
CHECK-NEXT: 00000006 T foo
|
|
CHECK-NEXT: 00000016 T main
|