aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/begin.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-07-12 15:45:33 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-07-12 15:45:33 +0000
commitd2dee3b25cafc19da767092a02deb52335e47591 (patch)
tree35f8042e8d3c9dbb98ae4ab078ebf930c6dd8f5e /ld/testsuite/ld-elf/begin.c
parentfb405f8a9fc70b2cca45eceb2f23aed1528a3327 (diff)
downloadgdb-d2dee3b25cafc19da767092a02deb52335e47591.zip
gdb-d2dee3b25cafc19da767092a02deb52335e47591.tar.gz
gdb-d2dee3b25cafc19da767092a02deb52335e47591.tar.bz2
bfd/
2006-07-12 H.J. Lu <hongjiu.lu@intel.com> PR ld/2884 * elflink.c (_bfd_elf_merge_symbol): Copy the symbol info from the old versioned dynamic definition to the new one with non-default visibility. Hide the symbol if it is hidden or internal. ld/testsuite/ 2006-07-12 H.J. Lu <hongjiu.lu@intel.com> PR ld/2884 * ld-elf/begin.c: New file. * ld-elf/end.c: Likewise. * ld-elf/endhidden.c: Likewise. * ld-elf/endprotected.c: Likewise. * ld-elf/foo.c: Likewise. * ld-elf/foo.map: Likewise. * ld-elf/hidden.out: Likewise. * ld-elf/main.c: Likewise. * ld-elf/normal.out: Likewise. * ld-elf/shared.exp: Likewise. * lib/ld-lib.exp (run_cc_link_tests): New.
Diffstat (limited to 'ld/testsuite/ld-elf/begin.c')
-rw-r--r--ld/testsuite/ld-elf/begin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/begin.c b/ld/testsuite/ld-elf/begin.c
new file mode 100644
index 0000000..ccc47d4
--- /dev/null
+++ b/ld/testsuite/ld-elf/begin.c
@@ -0,0 +1,5 @@
+extern void foo (void);
+
+static void (*const init_array []) (void)
+ __attribute__ ((used, section (".init_array"), aligned (sizeof (void *))))
+ = { foo };