Tweak region overflow check

Nathan Sidwell
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.


Nathan Sidwell    ::   ::         CodeSourcery

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: all.diff
URL: <>

More information about the Binutils mailing list