Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support common linker flags #716

Open
RossComputerGuy opened this issue Jul 3, 2024 · 0 comments
Open

Support common linker flags #716

RossComputerGuy opened this issue Jul 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@RossComputerGuy
Copy link

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.

@Vexu Vexu added the enhancement New feature or request label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants