[PATCH] orphan section creating huge output file

Alexandre Oliva aoliva@redhat.com
Thu Mar 17 14:46:00 GMT 2005


On Mar 17, 2005, Alan Modra <amodra@bigpond.net.au> wrote:

> Alex, you added the zero size check in
> http://sources.redhat.com/ml/binutils/2003-10/msg00184.html, but I don't
> see any testcase or description of exactly why the change was needed.

Uhh...  Sorry about that.  IIRC, I couldn't come up with a small
testcase at that time.  I think the problem was triggered linking the
linux kernel, using memory region definitions that didn't cover all of
the sections specified in the linker scripts.  All the relevant ones
were assigned to specific memory regions, but ones that didn't exist
in the default linker script at the time the memory region assignment
was created, and that were not present in any of the input files, were
flagged with errors.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}



More information about the Binutils mailing list