check section overlap on relocatable links

Nathan Sidwell nathan@codesourcery.com
Wed Jan 21 12:27:00 GMT 2009


This patch allows section overlap to be checked on a relocatable link.  Usually
this is a silly thing to do, because all output sections are placed at 0.
However, for vxworks images it can be useful, as a non-default linker script may
be being used to place sections sequentially.

The patch changes the check_section_addresses flag to be trivalued, so we can
distinguish 'default' from explicitly off and explicitly on.  When defaulted we
disable checking on relocatable linking (but it remains enabled on
non-relocatable links).  Thus preserving the existing default behaviour.

tested in powerpc-elf.  ok?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: all.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20090121/d9699b83/attachment.ksh>


More information about the Binutils mailing list