brintos

brintos / llvm-project-archived public Read only

0
0
Text · 883 B · 1a62d56 Raw
34 lines · plain
1; How to make the shared objects from this file:2;3; LDARGS="--unresolved-symbols=ignore-all -soname=libfoo.so --no-as-needed -lc -lm"4;5; X86-32 ELF:6;   llc -mtriple=i386-linux-gnu shared.ll -filetype=obj -o tmp32.o -relocation-model=pic7;   ld -melf_i386 -shared tmp32.o -o shared-object-test.elf-i386 $LDARGS8;9; X86-64 ELF:10;   llc -mtriple=x86_64-linux-gnu shared.ll -filetype=obj -o tmp64.o -relocation-model=pic11;   ld -melf_x86_64 -shared tmp64.o -o shared-object-test.elf-x86-64 $LDARGS12 13@defined_sym = global i32 1, align 414 15@tls_sym = thread_local global i32 2, align 416 17@undef_sym = external global i3218 19@undef_tls_sym = external thread_local global i3220 21@common_sym = common global i32 0, align 422 23define i32 @global_func() nounwind uwtable {24entry:25  ret i32 026}27 28declare i32 @undef_func(...)29 30define internal i32 @local_func() nounwind uwtable {31entry:32  ret i32 033}34