MaskRay wrote:

> OpenBSD has a -Z flag for our BFD linker.
> 
> `-Z Produce 'Standard' executables, disables Writable XOR Executable features 
> in resulting binaries.`
> 
> [openbsd/src@0abdc37](https://github.com/openbsd/src/commit/0abdc3723b5d33dde698ab941325edec2819c128)
>  
> [openbsd/src@58cb065](https://github.com/openbsd/src/commit/58cb065838343f5d972d625775790ebb89f56d88)
>  
> [openbsd/src@0bd5fc2](https://github.com/openbsd/src/commit/0bd5fc2a33971fd1cca748eda19e75844fa9c27a)
> 
> But it was never ported to our copy of LLD, which is what almost all of our 
> Clang switched archs use, plus I can't seem to find any use of the flag 
> anywhere nowadays.

Thanks for the info! Interesting. I'll update the description.

Another question is whether we want to use `clang -Z` or `clang -Wl,-Z`. For 
newer options we probably should recommend `-Wl,` more.

https://github.com/llvm/llvm-project/pull/69120
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to