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

Added some options. #3

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Completion/Unix/Command/_gcc
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,20 @@ args+=(
'-fpack-struct=-[Set initial maximum structure member alignment]:alignment: '
)

# More linker options, from gcc man pages
args+=(
'-nostartfiles[Do not use the standard system startup files when linking]'
'-nodefaultlibs[Do not use the standard system libraries when linking]'
'-nostdlib[Do not use the standard system startup files or libraries when linking]'
'-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]'
'-static[On systems that support dynamic linking, this prevents linking with the shared libraries]'
'-shared-libgcc[Force shared libgcc]'
'-static-libgcc[Force static libgcc]'
'-symbolic[Bind references to global symbols when building a shared object.]'
'-T:linker script:_files'
)

# other common options, gcc --help=warnings --help=optimizers --help=common|sed 1,/language-independent/d
args+=(
# | grep -v ::
Expand Down