This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ARM-PE implementation for EGCS
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: ARM-PE implementation for EGCS
- From: Mumit Khan <khan at xraylith dot wisc dot EDU>
- Date: Thu, 01 Jul 1999 01:15:02 -0500
- cc: Nick Clifton <nickc at cygnus dot com>, egcs-patches at egcs dot cygnus dot com
Richard Henderson <rth@cygnus.com> writes:
> On Wed, Jun 30, 1999 at 12:03:34PM -0500, Mumit Khan wrote:
> > ASM_DECLARE_FUNCTION_NAME
> > ASM_DECLARE_OBJECT_NAME
> > ASM_OUTPUT_COMMON
> >
> > It would be nice if we could consolidate these macros in a single
> > place which are essentially the same between i386-pe and arm-pe.
>
> It would be nice to pull all of the dllexport/import and associated
> export-this-symbol hooks into a common place.
>
> As an experiment, I hacked dllexport on linux to put the symbol names
> in a .exports section. Given a magic switch, this is interpreted by
> gld as a simplified symbol versioning script, so that only the listed
> symbols are present in the dynamic symbol table of the shared library.
>
> According to one of the mozilla hackers, this cut 15% from the size
> of libraptorhtml.so. (Presumably one of their larger components.)
>
> So it'd be nice to make some of this support more generic than it is.
While working on a new i386-pe port (Interix I believe), I had ripped
out all the dllimport/export stuff and put it in a separate file, gas
-pe.{c,h} or something like that. Got rid of it when I found out it
wasn't needed . It's pretty simple to do, and if there's interest,
I'll put it back for the mainline.
Looking at arm-pe, it looks exactly the same. Which makes sense since
I started by copying dje's yet-to-be-published-outside work on arm-pe
when working on dllimport/export on i386-pe.
Regards,
Mumit