aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/needed1c.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-12-04 17:44:43 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-12-04 17:44:43 +0000
commit63406f0ab746d10e5e66b6a0604b35f5272e98b4 (patch)
treecc509f5a9a42507a0e7cc4d7b274e1c3943e829f /ld/testsuite/ld-elf/needed1c.c
parent56bf0743058aa1fff07b32ba50c1e9bfaf9e2bcc (diff)
downloadgdb-63406f0ab746d10e5e66b6a0604b35f5272e98b4.zip
gdb-63406f0ab746d10e5e66b6a0604b35f5272e98b4.tar.gz
gdb-63406f0ab746d10e5e66b6a0604b35f5272e98b4.tar.bz2
Add tests for --add-needed/--copy-dt-needed-entries
* ld-elf/shared.exp (build_tests): Build libneeded1b.so, libneeded1a.so and libneeded1c.o. (run_tests): Test --add-needed and --copy-dt-needed-entries. Add tests for --no-add-needed and --no-copy-dt-needed-entries. * ld-elf/needed1.out: New file. * ld-elf/needed1a.c: Likewise. * ld-elf/needed1b.c: Likewise. * ld-elf/needed1c.c: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/needed1c.c')
-rw-r--r--ld/testsuite/ld-elf/needed1c.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/needed1c.c b/ld/testsuite/ld-elf/needed1c.c
new file mode 100644
index 0000000..e03c380
--- /dev/null
+++ b/ld/testsuite/ld-elf/needed1c.c
@@ -0,0 +1,10 @@
+extern void foo (void);
+extern void bar (void);
+
+int
+main ()
+{
+ foo ();
+ bar ();
+ return 0;
+}