aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfweak/bar1b.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-09-11 14:25:16 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-09-11 14:25:16 +0000
commitbd7c9df68b3a0d97e93d022cd55e94a86bd31dbe (patch)
treec63a17130bc1248d5f4c52a4909c80e478011378 /ld/testsuite/ld-elfweak/bar1b.c
parent63da102c1d237abc57975e8731a0386377a2d47a (diff)
downloadgdb-bd7c9df68b3a0d97e93d022cd55e94a86bd31dbe.zip
gdb-bd7c9df68b3a0d97e93d022cd55e94a86bd31dbe.tar.gz
gdb-bd7c9df68b3a0d97e93d022cd55e94a86bd31dbe.tar.bz2
2001-09-11 H.J. Lu <hjl@gnu.org>
* ld-elfweak/elfweak.exp (build_lib): Take a list of object files. (build_exec): Likewise. Add more tests and make some xfail. * ld-elfweak/dso.dsym: Support symbol versioning. * ld-elfweak/dsow.dsym: Likewise. * ld-elfweak/main1.c: New. * ld-elfweak/bar1a.c: Likewise. * ld-elfweak/bar1b.c: Likewise. * ld-elfweak/bar1c.c: Likewise. * ld-elfweak/foo1a.c: Likewise. * ld-elfweak/foo1b.c: Likewise. * ld-elfweak/dsodata.dsym: Likewise. * ld-elfweak/dsowdata.dsym: Likewise. * ld-elfweak/weakdata.dsym: Likewise. * ld-elfweak/strongcomm.sym: Likewise. * ld-elfweak/strongdata.sym: Likewise. * ld-elfweak/weakdata.dat: Likewise. * ld-elfweak/strongdata.dat: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elfweak/bar1b.c')
-rw-r--r--ld/testsuite/ld-elfweak/bar1b.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfweak/bar1b.c b/ld/testsuite/ld-elfweak/bar1b.c
new file mode 100644
index 0000000..bab68ab
--- /dev/null
+++ b/ld/testsuite/ld-elfweak/bar1b.c
@@ -0,0 +1,7 @@
+int deallocate_foo = 0;
+
+int *
+bar()
+{
+ return &deallocate_foo;
+}