This matches lld-link's own default.
Add a new command line option --no-dynamicbase for disabling it. (Unfortunately, GNU ld doesn't yet have a matching --no-dynamicbase option, as that's the default there.)
Paths
| Differential D86654
[LLD] [MinGW] Enable dynamicbase by default ClosedPublic Authored by mstorsjo on Aug 26 2020, 12:54 PM.
Details Summary This matches lld-link's own default. Add a new command line option --no-dynamicbase for disabling it. (Unfortunately, GNU ld doesn't yet have a matching --no-dynamicbase option, as that's the default there.)
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 26 2020, 2:34 PM Comment Actions This really should have been the default for years but it didn't work properly with ld.bfd: https://github.com/msys2/MINGW-packages/issues/6674 Closed by commit rGe72403f96de7: [LLD] [MinGW] Enable dynamicbase by default (authored by mstorsjo). · Explain WhyAug 27 2020, 5:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 288288 lld/MinGW/Driver.cpp
lld/MinGW/Options.td
lld/test/MinGW/driver.test
|