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]
Other format: [Raw text]

Re: PowerPC [target/17828] -O2 -fPIC doesn't work with switches in linkonce functions and new binutils


On Wed, Jul 27, 2005 at 11:51:15AM +0930, Alan Modra wrote:
> This fixes a powerpc-linux problem with the .got2 section.  When gcc
[snip]
> function's sections.  This means that constants in .got2 are not shared
> across functions when using -ffunction-sections -fdata-sections, an
> improvement if the per-translation unit .got2 was overflowing, but
> otherwise resulting in bloat.  For example, libstdc++.so .got2 increases
> from 0xfa0 to 0x2fe4 bytes, which I'm not really happy about.  I fixed
> ld --gc-sections to work on shared libs, but that doesn't help very
> much.  Is there a good reason why libstdc++ is compiled with
> -ffunction-sections -fdata-sections?  It seems useless when not using
> --gc-sections.

David informs me there is some work in the pipeline to rearrange data
section layout for powerpc.  Since my patch may affect this work, and
I'm not happy with the .got2 size blowout, I formally withdraw this
patch.  Instead, I'll make the linker simply ignore the problem.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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