arocc
arocc copied to clipboard
Support common linker flags
According to the arocc --help output, it shows there's support for linker options:
Link options:
-fuse-ld=[bfd|gold|lld|mold]
Use specific linker
-nodefaultlibs Do not use the standard system libraries when linking.
-nolibc Do not use the C library or system libraries tightly coupled with it when linking.
-nostdlib Do not use the standard system startup files or libraries when linking
-nostartfiles Do not use the standard system startup files when linking.
-pie Produce a dynamically linked position independent executable on targets that support it.
--ld-path=<path> Use linker specified by <path>
-r Produce a relocatable object as output.
-rdynamic Pass the flag -export-dynamic to the ELF linker, on targets that support it.
-s Remove all symbol table and relocation information from the executable.
-shared Produce a shared object which can then be linked with other objects to form an executable.
-shared-libgcc On systems that provide libgcc as a shared library, force the use of the shared version
-static On systems that support dynamic linking, this overrides -pie and prevents linking with the shared libraries.
-static-libgcc On systems that provide libgcc as a shared library, force the use of the static version
-static-pie Produce a static position independent executable on targets that support it.
--unwindlib=<arg> Unwind library to use ("none", "libgcc", or "libunwind") If not specified, will match runtime library
It would be great if Arocc could pass common linker flags over using -Wl and could support other flags like -L and -l.