aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2008-04-28 12:45:34 +0000
committerNathan Sidwell <nathan@codesourcery.com>2008-04-28 12:45:34 +0000
commita2cab75396adb33c5e660c37048151fb6732a040 (patch)
tree30ff0b918fc0e2f7bde0dc9671d5948bf7605ff7 /ld/ldlang.c
parent417ed8af836c10ff5c0cbcdc4c011f5024a7269b (diff)
downloadgdb-a2cab75396adb33c5e660c37048151fb6732a040.zip
gdb-a2cab75396adb33c5e660c37048151fb6732a040.tar.gz
gdb-a2cab75396adb33c5e660c37048151fb6732a040.tar.bz2
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.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index cbf46fc..3c24b66 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -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);