This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld-auto-import memory bug fixing
- To: "Ralf Habacker" <Ralf dot Habacker at freenet dot de>
- Subject: Re: ld-auto-import memory bug fixing
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 17 Sep 2001 15:02:50 +0100
- Cc: "Binutils" <binutils at sources dot redhat dot com>
- References: <000101c13e06$4007bf60$3d5d07d5@BRAMSCHE>
Hi Ralf,
> > Err, I do not think that this is quite right. For example dynamic
> > sections have their own symbol table, seperate from the normal
> > symbol table.
> How are dynamic sections accessed ?
The same way as any other sections. Dynamic sections are normal
sections. It is just that they contain information that is used by
dynamic linkers/loaders to resolve symbols and relocations are load
time instead of link time.
> The result was saving about 16 MB of RAM on compiling a c++ lib with
> about 10000 input bfd (kde2libs/kdeui)
Sounds excellent.
> After applying this I have compiled some kde libs and apps (with the
> auto-import-options) without errors,
> but I don't know if there are be some side effects. Is a test suite
> for ld available to verify this ?
Indeed there is. In the ld sources there is a directory called
'testsuite' which contains tests which can be run using a dejagnu /
expect framework. Tis testsuite can be run by the build target "make
check" in much the same way that gcc can be tested.
Cheers
Nick