From 131eb6b75e45eec24860ff6972f23b0e723db75c Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 21 Apr 2008 17:54:25 +0000 Subject: bfd/ * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't set the value of undefined symbols in shared objects. (_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for undefined symbols unless pointer equality is needed. ld/testsuite/ * ld-vxworks/plt-mips1.s: New. * ld-vxworks/plt-mips1.d: New. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-vxworks/plt-mips1.d | 10 ++++++++++ ld/testsuite/ld-vxworks/plt-mips1.s | 1 + 3 files changed, 16 insertions(+) create mode 100644 ld/testsuite/ld-vxworks/plt-mips1.d create mode 100644 ld/testsuite/ld-vxworks/plt-mips1.s (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 627d933..b2d61e0 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-04-21 Nathan Sidwell + + * ld-vxworks/plt-mips1.s: New. + * ld-vxworks/plt-mips1.d: New. + 2008-04-16 David S. Miller * ld-sparc/gotop32.dd: New. diff --git a/ld/testsuite/ld-vxworks/plt-mips1.d b/ld/testsuite/ld-vxworks/plt-mips1.d new file mode 100644 index 0000000..d580df2 --- /dev/null +++ b/ld/testsuite/ld-vxworks/plt-mips1.d @@ -0,0 +1,10 @@ +# target: mips*-*-* +# source: plt-mips1.s +# ld: -shared -z now +# readelf: -s + +#... + [0-9]*: 00000000 0 FUNC GLOBAL DEFAULT UND Foo +#... + [0-9]*: 00000000 0 FUNC GLOBAL DEFAULT UND Foo +#... diff --git a/ld/testsuite/ld-vxworks/plt-mips1.s b/ld/testsuite/ld-vxworks/plt-mips1.s new file mode 100644 index 0000000..2f79504 --- /dev/null +++ b/ld/testsuite/ld-vxworks/plt-mips1.s @@ -0,0 +1 @@ + lw $25,%call16(Foo)($28) -- cgit v1.1