https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230603
--- Comment #7 from Jan Beich <[email protected]> --- (In reply to Jan Beich from comment #5) > Looks like LLD < 7 silently accepts any -z argument: > > $ cc -Wl,-z,whatever /path/to/test.c Old behavior was similar to BFD linker. $ cc -fuse-ld=bfd -Wl,-z,whatever /path/to/test.c $ cc -fuse-ld=/usr/local/bin/ld.bfd -Wl,-z,whatever /path/to/test.c /usr/local/bin/ld.bfd: warning: -z whatever ignored. $ cc -fuse-ld=gold -Wl,-z,whatever /path/to/test.c /usr/local/bin/ld.gold: whatever: unknown -z option /usr/local/bin/ld.gold: use the --help option for usage information cc: error: linker command failed with exit code 1 (use -v to see invocation) -- You are receiving this mail because: You are the assignee for the bug.
