diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-07-21 21:37:26 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-07-21 21:37:26 +0000 |
commit | 2955ec4c12dbffa517fe1d821e7c5d1f7dde5f8a (patch) | |
tree | a3254338492bb90ae7489943bbb9e5cdb584021f /ld/testsuite/ld-ifunc/test-1.c | |
parent | c761c4ee3f718cc350577a1cb4e49fb8cf16c8f3 (diff) | |
download | gdb-2955ec4c12dbffa517fe1d821e7c5d1f7dde5f8a.zip gdb-2955ec4c12dbffa517fe1d821e7c5d1f7dde5f8a.tar.gz gdb-2955ec4c12dbffa517fe1d821e7c5d1f7dde5f8a.tar.bz2 |
bfd/
2009-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10426
* elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol
from a DSO into a normal FUNC symbol.
(elf_link_output_extsym): Turn an undefined IFUNC symbol into
a normal FUNC symbol.
ld/testsuite/
2009-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10426
* ld-ifunc/ifunc.exp: Check test-1 and libtest-2.so. Updated.
* ld-ifunc/test-1.c: New.
* ld-ifunc/test-2.c: Likewise.
Diffstat (limited to 'ld/testsuite/ld-ifunc/test-1.c')
-rw-r--r-- | ld/testsuite/ld-ifunc/test-1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/testsuite/ld-ifunc/test-1.c b/ld/testsuite/ld-ifunc/test-1.c new file mode 100644 index 0000000..6930e56 --- /dev/null +++ b/ld/testsuite/ld-ifunc/test-1.c @@ -0,0 +1,3 @@ +extern int library_func2 (void); +int (*fn) (void) = library_func2; +int main (void) { fn (); return 0; } |