This is the mail archive of the
mailing list for the binutils project.
(Fwd) RE: PATCH: allow PE executables to have an export table
- From: "Kai Ruottu" <kai_ruottu at mbnet dot fi>
- To: binutils at sources dot redhat dot com
- Date: Mon, 23 Dec 2002 12:28:09 +0200
- Subject: (Fwd) RE: PATCH: allow PE executables to have an export table
- Organization: MBinternet
- Reply-to: kai_ruottu at mbnet dot fi
Oops, my mailer posted this to Ralf only when it was aimed to list
------- Forwarded message follows -------
From: Kai Ruottu <firstname.lastname@example.org>
To: "Ralf Habacker" <Ralf.Habacker@freenet.de>
Subject: RE: PATCH: allow PE executables to have
an export table
Send reply to: email@example.com
Date sent: Mon, 23 Dec 2002 12:23:07 +0200
"Ralf Habacker" <Ralf.Habacker@freenet.de> wrote:
> > I certainly did this in my previous job using non-gnu tools. I had a
> > dll/exe combination that relied on variables in the executable being
> > accessible to the dll.
> > I'm not sure why the question is important however. Even if everyone on
> > this mailing list says "No, never done it", it doesn't matter. The
> > functionality should be there because it is supposed to be there.
> > There's no reason to limit ld because no one can think of a reason to
> > use the feature.
> I have spend some time to learn how the windows run time loader works and I
> couldn't imagine that the run time loader is able to link a dll to an
> executable. When this is technically possible, it should be added of course.
Another issue related to this is how to create PE executables with
with GNU ld only.
PE File Base Relocations (interpreted .reloc section
Again "the functionality should be there because it is supposed to be
AFAIK. The '--shared' works with producing DLLs but using it for
The '3-phase linking' using also dlltool works but is a little clumsy...
in Makefiles is easy but creating a generic script/BAT which does
to be harder. Anyhow those occasional 'HelloWin' apps are hard to
So, are there any options for GNU ld for producing PE-executables
relocations ? The need for this in my case is producing Win32s
with MinGW and with additional import libs and startups for
Win32s... If there
already are suitable options, putting them into 'specs' wouldn't be a
Many thanks in advance,
------- End of forwarded message -------