RFC: Remove empty output sections

H. J. Lu hjl@lucon.org
Thu Mar 17 04:22:00 GMT 2005


On Wed, Mar 16, 2005 at 01:20:12PM +1030, Alan Modra wrote:
> On Tue, Mar 15, 2005 at 06:32:46PM -0800, H. J. Lu wrote:
> > One benefit of removing empty sections late is there will be no
> > layout changes.
> 
> That's true.
> 
> >  The only changes are
> > 1. No empty sections in section table.
> > 2. Some undefine section symbols in .dynsym.
> > 3. No empty segment.
> 
> Well, that's good.  I was worried that something might go wrong with
> dynamic section symbols, but it seems that you are OK there.
> Patch is OK for mainline.

I checked it. There were failures:

./build-ppc-linux/ld/ld.log:FAIL: TLS32 shared
./build-ppc64-linux/ld/ld.log:FAIL: TLS32 shared

without my patch. I didn't update them. Also MIPS needs

http://sourceware.org/ml/binutils/2005-03/msg00459.html


H.J.



More information about the Binutils mailing list