mold(1) on Linux
The text 497ffd21a362, as Debian 13 (Trixie) shipped it.
a modern linker
Flags it lists
-
--Bdynamic -
--Bno-symbolic -
--Bshareable -
--Bstatic -
--Bsymbolic -
--Bsymbolic-functions -
--Bsymbolic-non-weak -
--Bsymbolic-non-weak-functions -
--Map -
--Tbss -
--Tdata -
--Ttext -
--allow-multiple-definition -
--allow-shlib-undefined -
--as-needed -
--auxiliary -
--build-id -
--chroot -
--color-diagnostics -
--default-symver -
--defsym -
--demangle -
--dependency-file -
--detach -
--disable-new-dtags -
--discard-locals -
--dynamic-linker -
--dynamic-list -
--eh-frame-hdr -
--emit-relocs -
--enable-new-dtags -
--end-lib -
--entry -
--error-unresolved-symbols -
--export-dynamic -
--export-dynamic-symbol -
--export-dynamic-symbol-list -
--fatal-warnings -
--filter -
--fini -
--fork -
--gc-sections -
--gdb-index -
--help -
--ignore-data-address-equality -
--image-base -
--init -
--library-path -
--no-allow-shlib-undefined -
--no-as-needed -
--no-build-id -
--no-color-diagnostics -
--no-demangle -
--no-detach -
--no-dynamic-linker -
--no-eh-frame-hdr -
--no-export-dynamic -
--no-fatal-warnings -
--no-fork -
--no-gc-sections -
--no-omagic -
--no-pic-executable -
--no-pie -
--no-print-gc-sections -
--no-print-icf-sections -
--no-quick-exit -
--no-relax -
--no-threads -
--no-undefined -
--no-undefined-version -
--no-warn-common -
--no-whole-archive -
--noinhibit-exec -
--omagic -
--output -
--package-metadata -
--perf -
--pic-executable -
--pie -
--pop-state -
--print-dependencies -
--print-gc-sections -
--print-icf-sections -
--print-map -
--push-state -
--quick-exit -
--relax -
--relocatable -
--relocatable-merge-sections -
--repro -
--require-defined -
--retain-symbols-file -
--reverse-sections -
--rpath -
--script -
--section-start -
--separate-debug-file -
--shared -
--shuffle-sections -
--soname -
--spare-dynamic-tags -
--spare-program-headers -
--start-lib -
--static -
--stats -
--strip-all -
--strip-debug -
--sysroot -
--thread-count -
--threads -
--trace -
--trace-symbol -
--undefined -
--undefined-glob -
--undefined-version -
--unique -
--version -
--version-script -
--warn-common -
--warn-once -
--warn-unresolved-symbols -
--whole-archive -
--wrap -
-E -
-F -
-I -
-L -
-M -
-N -
-S -
-T -
-V -
-X -
-e -
-f -
-h -
-l -
-m -
-o -
-r -
-s -
-u -
-v -
-y -
-z