nixpkgs/pkgs/build-support/bintools-wrapper
Matthew Bauer f5074933b7
bintools: disable -pie when -r or -Ur are used (#128674)
* bintools: disable -pie when -r or -Ur are used

ld’s -r allows you to partially link object files. When -pie is passed with -r, though, we get:

  ld: -r and -pie may not be used together

Most build systems are intelligent enough to pass -no-pie before -r, but we might as well support those that
don’t.

Note: -pie is not enabled by default in Nixpkgs, but it is when you are using musl. So this solution is really
only useful for musl toolchains.

* bintools-wrapper: Add incremental -i check for pie
2021-07-15 20:08:33 -05:00
..
add-darwin-ldflags-before.sh bintools-wrapper: ensure roles are set before mangling variables 2021-04-11 10:27:16 +09:00
add-flags.sh bintools-wrapper: skip dynamic linker for static binaries 2020-12-27 16:42:11 +01:00
add-hardening.sh bintools: disable -pie when -r or -Ur are used (#128674) 2021-07-15 20:08:33 -05:00
darwin-install_name_tool-wrapper.sh darwin: wrap strip and install_name_tool to codesign modified files 2021-05-17 00:27:02 +09:00
darwin-strip-wrapper.sh darwin: wrap strip and install_name_tool to codesign modified files 2021-05-17 00:27:02 +09:00
default.nix wrapBintoolsWith: fix final stage NetBSD 2021-06-07 11:49:31 +00:00
ld-solaris-wrapper.sh
ld-wrapper.sh Update pkgs/build-support/bintools-wrapper/ld-wrapper.sh 2021-05-24 15:44:01 +01:00
macos-sierra-reexport-hack.bash cc-wrapper: Utilize patched cctools ld for more robust macOS Sierra hack 2018-04-13 13:17:03 -04:00
setup-hook.sh setup-hook.sh: use eval for dynamic variable export 2021-07-06 09:27:18 +09:00