This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ARM-PE implementation for EGCS


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]