public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gnatdll and base address
@ 2023-04-16 12:58 Tom Kacvinsky
  0 siblings, 0 replies; only message in thread
From: Tom Kacvinsky @ 2023-04-16 12:58 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 935 bytes --]

Not sure if this is appropriate for the GCC list, or the binutils list, but
I thought I'd try here first
since gnatdll is part of the GNAT toolchain.

I have found that if I make the base address of the DLL produced by gnatdll
(on x64 PE) higher
than 0x110000000 (via the -b option), I get crashes when running
applications built against this
DLL.  Also of note - the default base address of 0x11000000 seems pretty
low, considering the
Visual Studio documentation says the default base address of a DLL on x64
is 0x140000000.

I can try to make a simple reproducer.  Operative word here is try - I find
these kinds of issues
are really difficult to reproduce when one tries to simplify things.

Does this sound like a GCC issue?  I am guessing not, since the underlying
tools for making a
DLL (aside from gnat1 to produce object code from Ada source) are from the
binutils kit.

Should I take this to the binutils list?

Thanks,

Tom

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

only message in thread, other threads:[~2023-04-16 12:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-16 12:58 gnatdll and base address Tom Kacvinsky

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).