aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/assign-loc.t
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/assign-loc.t')
-rw-r--r--ld/testsuite/ld-scripts/assign-loc.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/assign-loc.t b/ld/testsuite/ld-scripts/assign-loc.t
new file mode 100644
index 0000000..e8c5102
--- /dev/null
+++ b/ld/testsuite/ld-scripts/assign-loc.t
@@ -0,0 +1,17 @@
+SECTIONS
+{
+ . = 0x2000 ;
+
+ _start = .;
+
+ HEAP_SIZE = 0x100;
+
+ .heap : {
+ . = HEAP_SIZE;
+ . = ALIGN(4);
+ }
+
+ _end = .;
+
+ /DISCARD/ : { *(*) }
+}