diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-28 16:22:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-28 16:22:16 +0000 |
commit | aeb0f0cdd28011a34be3772bb7a77292eaf18f9c (patch) | |
tree | ecbb8ff94bdb61f55cf087c3d0769dd9051e1a54 /test/Object | |
parent | 22266c1d4817fc30355a90bb264ede08482bba3a (diff) | |
download | external_llvm-aeb0f0cdd28011a34be3772bb7a77292eaf18f9c.zip external_llvm-aeb0f0cdd28011a34be3772bb7a77292eaf18f9c.tar.gz external_llvm-aeb0f0cdd28011a34be3772bb7a77292eaf18f9c.tar.bz2 |
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
Diffstat (limited to 'test/Object')
-rw-r--r-- | test/Object/archive-symtab.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Object/archive-symtab.test b/test/Object/archive-symtab.test index 0d2504d..6379504 100644 --- a/test/Object/archive-symtab.test +++ b/test/Object/archive-symtab.test @@ -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 |