-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExtUtils-CBuilder: Remove image-base generation on Win32/gcc #18494
ExtUtils-CBuilder: Remove image-base generation on Win32/gcc #18494
Conversation
This is a reasonable change, +1. In the future we should switch to |
6300e79
to
7528e36
Compare
I just wanted to note that under MSYS2/MINGW64, the default build options use ASLR in LDFLAGS="-pipe -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high" More discussion on this for MINGW at msys2/MINGW-packages#6674. However the |
Please let me know when/if it gets merged, so I can prepare the CPAN release of the module. |
To facilitate evaluation of this pull request, I have created the following smoke-me branch: Could we get people with access to Win32 to test this, preferably with gcc and other compilers? Thank you very much. |
Switches from generating an image-base address using the basename of the output file to using GCC's built-in `--enable-auto-image-base` linker option. This aligns the linking behaviour for Win32/gcc with that of ExtUtils-MakeMaker which removed image-base generation in commit <Perl-Toolchain-Gang/ExtUtils-MakeMaker@343d21a>.
7528e36
to
e4c6153
Compare
@ambs it is merged now. |
Thank you. Will release EU::CB tomorrow. |
Done. Released with the same version it is on Blead. Hope that isn't a problem. I can't recall if that can cause problems. |
I'm not sure this change was complete, really. We're currently doing this bizarre And it appears that not doing the simple thing has a unfortunate interaction with antivirus scanners Leont/magic-check#1 |
Switches from generating an image-base address using the basename of the
output file to using GCC's built-in
--enable-auto-image-base
linkeroption.
This aligns the linking behaviour for Win32/gcc with that of
ExtUtils-MakeMaker which removed image-base generation in commit
Perl-Toolchain-Gang/ExtUtils-MakeMaker@343d21a.
CC: @ambs, @Leont, @plicease
Connects with: PerlAlien/Alien-Build#243 (comment)