cygwin + binutils 2.36 + ASLR/dynamicbase defaults

Achim Gratz Stromeko@nexgo.de
Sun Feb 28 17:58:54 GMT 2021


Christoph Reiter via Cygwin writes:
> To clarify: I was referring to non-cygwin targets. I had assumed you
> meant that by "cross compilation toolchain".

Then maybe I don't understand what you meant when you said you've built
MSys2 packages with ASLR on.  The MingW-W64 toolchains indeed target
Windows, but the code you compile it with may not exactly be meant to be
used that way.

I'd like to caution again that the appearance of anything working is
unfortunately different from it actually working.  I've been seriously
trying to enable ASLR on Cygwin several years ago (some vestiges of
which are still in the autorebase scripts).  After the first rounds of
ironing out the (now obvious) kinks, it was always in a state of "almost
working" until the day it didn't or the next installation that just
never got off the ground (keep in mind these were all installations on
pretty much identical hardware from a single master image).

> We've only needed this to to work around linker errors, so it's pretty
> clear when it is needed as the build will fail.

A linker error should just show up when this hits, so yes that's easier
to figure out.  I'm more concerned about those problems that won't show
up until much later.

> Anyway, maybe the linked patches can be helpful to you.

Yes, thanks for the links.  I'm not sure how relevant those are for
Cygwin yet, but I'll have a look in more detail later.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra


More information about the Cygwin mailing list