summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/dynamic-sections.t
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2002-07-09 08:47:24 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2002-07-09 08:47:24 +0000
commit0d8178ac754b7ab6aebd77db58e6b771609d5d20 (patch)
treee7e58a5c42547a2016fe0855e4901e5299180895 /ld/testsuite/ld-scripts/dynamic-sections.t
parentf7a2b759cac0c77391061853e2541b14743a07fc (diff)
downloadbinutils-redhat-0d8178ac754b7ab6aebd77db58e6b771609d5d20.tar.gz
* ld-scripts/dynamic-sections*: New test.
Diffstat (limited to 'ld/testsuite/ld-scripts/dynamic-sections.t')
-rw-r--r--ld/testsuite/ld-scripts/dynamic-sections.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/dynamic-sections.t b/ld/testsuite/ld-scripts/dynamic-sections.t
new file mode 100644
index 0000000000..f1f24c830e
--- /dev/null
+++ b/ld/testsuite/ld-scripts/dynamic-sections.t
@@ -0,0 +1,11 @@
+SECTIONS
+{
+ .data : { *(.data) }
+ .rodata : { *(.rodata) }
+
+ /* The .rel* sections are typically placed here, because of the way
+ elf32.em handles orphaned sections. A bug introduced on 2002-06-10
+ would cause . to be 0 at this point. */
+
+ _bar = ASSERT (. > 0, "Bad . value");
+}