aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/rdynamic-1.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-01-29 14:30:41 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-01-29 14:30:41 -0800
commit50a53d3ffecd6610fbfd40017224055ea252dea9 (patch)
treead77bb725757ac3d24448959c7f59ea1bd5efb08 /ld/testsuite/ld-elf/rdynamic-1.c
parent401e27fd717fcbc2efe00e332bdaa46846501323 (diff)
downloadgdb-50a53d3ffecd6610fbfd40017224055ea252dea9.zip
gdb-50a53d3ffecd6610fbfd40017224055ea252dea9.tar.gz
gdb-50a53d3ffecd6610fbfd40017224055ea252dea9.tar.bz2
Add rdynamic-1 test
It is added for commit 409ff343a402799563f71f938138b29f8baf7a1c Author: Alan Modra <amodra@gmail.com> Date: Tue Nov 8 13:49:11 2011 +0000 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in executables when export_dynamic. * ld-elf/rdynamic-1.c: New file. * ld-elf/rdynamic-1.rd: Likewise. * ld-elf/shared.exp (build_tests): Add rdynamic-1.
Diffstat (limited to 'ld/testsuite/ld-elf/rdynamic-1.c')
-rw-r--r--ld/testsuite/ld-elf/rdynamic-1.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/rdynamic-1.c b/ld/testsuite/ld-elf/rdynamic-1.c
new file mode 100644
index 0000000..7c9d1ab
--- /dev/null
+++ b/ld/testsuite/ld-elf/rdynamic-1.c
@@ -0,0 +1,10 @@
+void
+rdynamic ()
+{
+}
+
+int
+main ()
+{
+ return 0;
+}