aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/expr1.t
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/expr1.t')
-rw-r--r--ld/testsuite/ld-elf/expr1.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/expr1.t b/ld/testsuite/ld-elf/expr1.t
new file mode 100644
index 0000000..9670e25
--- /dev/null
+++ b/ld/testsuite/ld-elf/expr1.t
@@ -0,0 +1,6 @@
+SECTIONS
+{
+ .bar : AT ((ADDR(.foo) + 4095) & ~(4095)) { *(.bar) }
+ .foo : { *(.foo) }
+ /DISCARD/ : { *(.*) }
+}