[PATCH] Re: Link error with today's CVS binutils

Ian Lance Taylor ian@zembu.com
Tue Jan 18 08:09:00 GMT 2000


   Date: Tue, 18 Jan 2000 08:03:12 -0800
   From: "H . J . Lu" <hjl@valinux.com>

   > I think that checking the size of the section is not the right way to
   > go here.  Instead, check for SEC_NEVER_LOAD.  Look at how
   > SEC_NEVER_LOAD is handled in ldwrite.c.

   Thanks. How about this change? Since it looks like SEC_NEVER_LOAD is
   only used by COFF, I left in the size check.

I think the size check is wrong, though.  That would make Nick's patch
totally useless.

SEC_NEVER_LOAD is used for any section specified as NOLOAD in the
linker script.  See wild_doit in ldlang.c.

Ian


More information about the Binutils mailing list