aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/expr2.t
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/expr2.t')
-rw-r--r--ld/testsuite/ld-scripts/expr2.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/expr2.t b/ld/testsuite/ld-scripts/expr2.t
new file mode 100644
index 0000000..634eab2
--- /dev/null
+++ b/ld/testsuite/ld-scripts/expr2.t
@@ -0,0 +1,11 @@
+SECTIONS
+{
+ . = 0xc000;
+ .text :
+ {
+ _text = .;
+ *(.text)
+ }
+ _end = .;
+}
+ASSERT (_end - _text <= 0x100, "fail");