aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-18 03:55:10 +0000
committerAlan Modra <amodra@gmail.com>2007-04-18 03:55:10 +0000
commit152d792f471303cf361c7c5dd5bba2d5dcc3e727 (patch)
tree7f57895fca6d263f1e28d73eca4ffe89d3bd0519 /ld/testsuite
parent4904bbd9d14123e56b89b97fb563012257ca9607 (diff)
downloadgdb-152d792f471303cf361c7c5dd5bba2d5dcc3e727.zip
gdb-152d792f471303cf361c7c5dd5bba2d5dcc3e727.tar.gz
gdb-152d792f471303cf361c7c5dd5bba2d5dcc3e727.tar.bz2
ld/
* ldlang.h (enum section_type): Add overlay_section. * ldlang.c (lang_add_section): Handle flags for overlay_section as per normal_section. (lang_size_sections_1): When setting lma, detect overlays by os->sectype rather than by looking for overlapping vmas. (lang_enter_overlay_section): Use overlay_section type. (lang_leave_overlay): Set first overlay section to normal. ld/testsuite/ * ld-spu/ovl.lnk: Use OVERLAY keyword.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-spu/ovl.lnk9
2 files changed, 9 insertions, 4 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 5b5a496..5033f78 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-18 Alan Modra <amodra@bigpond.net.au>
+
+ * ld-spu/ovl.lnk: Use OVERLAY keyword.
+
2007-04-17 Paul Brook <paul@codesourcery.com>
* ld-arm/preempt-app.s: New test.
diff --git a/ld/testsuite/ld-spu/ovl.lnk b/ld/testsuite/ld-spu/ovl.lnk
index 84701d4..408ed1e 100644
--- a/ld/testsuite/ld-spu/ovl.lnk
+++ b/ld/testsuite/ld-spu/ovl.lnk
@@ -3,10 +3,11 @@ SECTIONS
. = SIZEOF_HEADERS;
.text : { *(.text) *(.stub) }
- . = 0x400;
- .ov_a1 : { *(.ov_a1) }
- .ov_a2 ADDR (.ov_a1) : { *(.ov_a2) }
- . = ADDR (.ov_a1) + MAX (SIZEOF (.ov_a1), SIZEOF (.ov_a2));
+ OVERLAY 0x400 :
+ {
+ .ov_a1 { *(.ov_a1) }
+ .ov_a2 { *(.ov_a2) }
+ }
.data : { *(.data) *(.ovtab) }
.bss : { *(.bss) }