[clang] [MinGW] MinGW dynamicbase (PR #74979)

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 12 12:37:19 PST 2023


mstorsjo wrote:

> > Also
> 
> In Cygwin with binutils 2.41, --dynamicbase make a difference, so I thought MinGW also need it.

No, MinGW does not need it, as it has been enabled by default since binutils 2.36.

Apparently that change, https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=514b4e191d5f46de8e142fe216e677a35fa9c4bb, didn't apply to Cygwin but only to MinGW. But if Cygwin works with dynamicbase (I think it might have issues with it but I'm not sure?) then perhaps binutils should be changed to enable dynamicbase by default there, instead of changing compilers to pass the option by default.

https://github.com/llvm/llvm-project/pull/74979


More information about the cfe-commits mailing list