On Fri, 7 Mar 2025, Jeremy Drake via Mingw-w64-public wrote:

> Interesting, I could try that but probably not until Monday.


I found some time this afternoon to clean up a bit:
https://github.com/jeremyd2019/binutils-gdb/compare/master...delayimp-didat-section

https://github.com/jeremyd2019/binutils-gdb/compare/master...pe-fill-load-config

The branches do conflict on one line, but otherwise they can stand alone.

I don't really know the procedure for contributing to binutils.

Pete Batard: I copied you on this, because both of these branches do
things you asked for (sort of):
a side-effect of the first one fixes
https://sourceware.org/bugzilla/show_bug.cgi?id=14339 (because the
sections genearted for delay import libs are now .didat$ instead of
.idata$, the logic that tries to drop unused jmp stubs no longer matches
them).

the second one allows you to provide a load config.  At this point it's
entirely manual and not user friendly, but you *can* do it.  For my
testing of a couple of "guard flags" I used the default load config in
current mingw-w64 (which is all zeros except for the size for gcc/binutils
based) and hex edited the flags I wanted into the exe/dll I was testing.
You could provide your own custom one if you don't care about CFG (which
gcc/binutils don't support yet anyway).


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to