This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Reduce size of SymbianOS DLLs
On Tue, 2004-11-02 at 14:56, Ian Lance Taylor wrote:
> Richard Earnshaw <rearnsha@gcc.gnu.org> writes:
>
> > On Mon, 2004-11-01 at 21:10, Mark Mitchell wrote:
> > > The linker believed that SymbianOS BPABI DLLs were demand-paged, which
> > > meant that it wanted to align segments on page-size boundaries.
> > > However, all BPABI DLLs are post-processed before becoming something
> > > that can actually be executed, so this is just wasted space in the
> > > file. I realized that when D_PAGED is clear, the linker will not try
> > > to map the program headers, which means that some special-case code I
> > > added for SymbianOS can be removed.
> >
> > Mark,
> >
> > I've probably missed something subtle here, but these changes are all
> > being made to elfarm-nabi.c, a generic ARM file. What is it that
> > prevents all these symbian-specific hooks from being called when it's
> > not targeting symbianos?
>
> It's the usual BFD crock. elf32-target.h is included twice--once by
> elf32-arm.h, and once, for the Symbian stuff, by elfarm-nabi.c itself.
>
> (I haven't tried to verify that Mark has done everything correctly,
> but certainly the right framework is there).
>
> (It would not be unreasonable to create a new file elfarm-symbian.c,
> and make the appropriate functions and data structures in
> elfarm-nabi.c non-static.)
Grr. I hate the BFD. In particular I hate the fact that there is much
code in header files, especially elf32-arm.h! If only I had the time to
restructure it all...
I guess if you are happy with all this, then I am happy :-)
R.