Tweak region overflow check

Nathan Sidwell nathan@codesourcery.com
Thu Apr 24 12:37:00 GMT 2008


This patch fixes a problem with region overflow checking on bss-style ALLOC but 
!LOAD sections.  When such sections have an explicitly set LMA, as one might 
have with:
    .data {...} >ram AT>rom
    .bss {...} >ram AT>rom
we shouldn't test whether they overflow the LMA region, for they will occupy no 
space there.

One could not override the bss section's LMA region, I suppose, but that might 
be confusing. And I for one find it aesthetically unpleasing to have .data and 
.bss differ in such a manner.

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/20080424/0fb41608/attachment.ksh>


More information about the Binutils mailing list