public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* --enable-auto-image-base with argument on 64-bit
@ 2019-11-12 18:39 E. Madison Bray
  0 siblings, 0 replies; only message in thread
From: E. Madison Bray @ 2019-11-12 18:39 UTC (permalink / raw)
  To: cygwin

Hello,

Some years ago Christopher Faylor added a feature [1] to binutils so
that the --enable-auto-image-base argument to ld can take an optional
argument (specifying the minimum base address).

This was applied for 32-bit, but there is a separate template file for
64-bit [2] which (deceptively, despite the documentation, and some
hair loss ;) ignores this optional argument, which it turns out I
actually need for some reason.

I could submit a patch to binutils or Christopher can if he's reading
and feels like it.  I just wanted to point this out, since I actually
needed this feature and was very grateful to find it (even if broken).

In the meantime I'm working around this by re-implementing binutils'
compute_dll_image_base function and using the explicit --image-base
argument.

Thanks,
Madison


[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;f=ld/emultempl/pe.em;h=d0e6d77b3fb64561ca66535f8ed6ca523eac923e
[2] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=ld/emultempl/pep.em;h=dca36cc341aabfa2ec9db139b8ec94690165201a;hb=d0e6d77b3fb64561ca66535f8ed6ca523eac923e

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-12 18:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-12 18:39 --enable-auto-image-base with argument on 64-bit E. Madison Bray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).