Displaying 3 results from an estimated 3 matches for "libraryarchives".
2011 Aug 09
2
[LLVMdev] llvm-gcc with static libraries
...sing either /usr/bin/nm or llvm-nm (depending on the use of --emit-llvm
flag to llvm-gcc), one of them is able to list the symbols in the archive
file. However, the link step fails. Two sample runs follow. Am I missing any
options? The source code was obtained from:
http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html
== Without --emit-llvm ==
$ llvm-gcc -c ctest1.c ctest2.c
$ file *.o
ctest1.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
ctest2.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
$ llvm-ar cru libctest.a *.o
$ ls
ctest1.c ctest...
2011 Aug 09
0
[LLVMdev] llvm-gcc with static libraries
.../nm or llvm-nm (depending on the use of --emit-llvm
> flag to llvm-gcc), one of them is able to list the symbols in the archive
> file. However, the link step fails. Two sample runs follow. Am I missing any
> options? The source code was obtained
> from: http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html
> == Without --emit-llvm ==
> $ llvm-gcc -c ctest1.c ctest2.c
> $ file *.o
> ctest1.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
> ctest2.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
> $ llvm-ar cru libctest.a...
2011 Aug 09
2
[LLVMdev] llvm-gcc with static libraries
...he use of --emit-llvm
> > flag to llvm-gcc), one of them is able to list the symbols in the archive
> > file. However, the link step fails. Two sample runs follow. Am I missing
> any
> > options? The source code was obtained
> > from:
> http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html
> > == Without --emit-llvm ==
> > $ llvm-gcc -c ctest1.c ctest2.c
> > $ file *.o
> > ctest1.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not
> stripped
> > ctest2.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not
> str...