mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
ld/
* ldlang.c (lang_size_sections_1): Don't check LMA overflow on non-load sections. ld/testsuite/ * ld-scripts/rgn-over.exp: Allow -ok file names to pass. * ld-scripts/rgn-over8.s: New. * ld-scripts/rgn-over8.t: New. * ld-scripts/rgn-over8-ok.d: New.
This commit is contained in:
@@ -4699,7 +4699,8 @@ lang_size_sections_1
|
||||
os_region_check (os, os->region, os->addr_tree,
|
||||
os->bfd_section->vma);
|
||||
|
||||
if (os->lma_region != NULL && os->lma_region != os->region)
|
||||
if (os->lma_region != NULL && os->lma_region != os->region
|
||||
&& (os->bfd_section->flags & SEC_LOAD))
|
||||
{
|
||||
os->lma_region->current
|
||||
= os->bfd_section->lma + TO_ADDR (os->bfd_section->size);
|
||||
|
||||
Reference in New Issue
Block a user