Dan Gohman 950ae43091 [WebAssembly] GC constructor functions in otherwise unused archive objects
This allows `__wasilibc_populate_libpreopen` to be GC'd in more cases
where it isn't needed, including when linked from Rust's libstd.

Differential Revision: https://reviews.llvm.org/D85062
2020-10-12 18:54:57 -07:00

15 lines
264 B
ArmAsm

.section .text.lib_func,"",@
.globl lib_func
lib_func:
.functype lib_func () -> ()
end_function
.section .text.unused_lib_func,"",@
.globl unused_lib_func
unused_lib_func:
.functype unused_lib_func () -> ()
call def
end_function
.functype def () -> ()