This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: [PATCH] Re: Link error with today's CVS binutils
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