mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Add a minimal implementation of ranlib.
This is just enough to get "llvm-ranlib foo.a" working and tested. Making llvm-ranlib a symbolic link to llvm-ar doesn't work so well with llvm's option parsing, but ar's option parsing is mostly custom anyway. This patch also removes the -X32_64 option. Looks like it was just added in r10297 as part of implementing the current command line parsing. I can add it back (with a test) if someone really has AIX portability problems without it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189489 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -48,3 +48,12 @@ CORRUPT-NEXT: 00000016 T main
|
||||
check that the we *don't* update the symbol table.
|
||||
RUN: llvm-ar s %t.a
|
||||
RUN: llvm-nm -s %t.a | FileCheck %s --check-prefix=CORRUPT
|
||||
|
||||
repeate the test with llvm-ranlib
|
||||
|
||||
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-prefix=NOMAP
|
||||
|
||||
RUN: llvm-ranlib %t.a
|
||||
RUN: llvm-nm -s %t.a | FileCheck %s
|
||||
|
Reference in New Issue
Block a user