]> git.ipfire.org Git - thirdparty/man-pages.git/commit
ld.so.8: tfix: Correct linker option name
authorFangrui Song <maskray@google.com>
Sun, 16 Jul 2023 18:22:27 +0000 (11:22 -0700)
committerAlejandro Colomar <alx@kernel.org>
Sun, 16 Jul 2023 21:27:45 +0000 (23:27 +0200)
commit8796622ce83d62eee5d37dfd68896e206866a731
treeda68bf2e6afff38ce9e228c105e9f88e090f82ae
parent22a3e2c47bd5c8aa423d4f5b116775c5952b89ab
ld.so.8: tfix: Correct linker option name

The linker option that sets the DF_1_NODEFLIB flag is -z nodefaultlib.
-z nodeflib is invalid.

```
% ld.bfd -m elf_x86_64 -e 0 /dev/null -z nodeflib
ld.bfd: warning: -z nodeflib ignored
% ld.lld -m elf_x86_64 -e 0 /dev/null -z nodeflib
ld.lld: warning: unknown -z value: nodeflib
```

Signed-off-by: Fangrui Song <maskray@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man8/ld.so.8