Add support for the 's' operation to llvm-ar.
If no other operation is specified, 's' becomes an operation instead of an modifier. The s operation just creates a symbol table. It is the same as running ranlib. We assume the archive was created by a sane ar (like llvm-ar or gnu ar) and if the symbol table is present, then it is current. We use that to optimize the most common case: a broken build system that thinks it has to run ranlib. llvm-svn: 187353
Showing
- llvm/include/llvm/Object/Archive.h 2 additions, 0 deletionsllvm/include/llvm/Object/Archive.h
- llvm/lib/Object/Archive.cpp 6 additions, 2 deletionsllvm/lib/Object/Archive.cpp
- llvm/test/Object/Inputs/archive-test.a-corrupt-symbol-table 0 additions, 0 deletionsllvm/test/Object/Inputs/archive-test.a-corrupt-symbol-table
- llvm/test/Object/archive-symtab.test 32 additions, 0 deletionsllvm/test/Object/archive-symtab.test
- llvm/tools/llvm-ar/llvm-ar.cpp 29 additions, 1 deletionllvm/tools/llvm-ar/llvm-ar.cpp
Loading
Please register or sign in to comment