PowerPC64 ELFv1 undefined weak functions

Alan Modra amodra@gmail.com
Thu Aug 18 11:02:00 GMT 2016


On Wed, Aug 17, 2016 at 12:19:55PM +0100, Matthew Wahab wrote:
> On 12/08/16 06:16, Alan Modra wrote:
> >	* testsuite/ld-undefined/weak-fundef.s: New.
> >	* testsuite/ld-undefined/weak-undef.t: Don't specify filename.
> >	* testsuite/ld-undefined/weak-undef.exp: Run new tests.  Rearrange
> >	much of old code.  Use is_elf_format to select targets.
> 
> This is making check-ld fail on aarch64-none-elf and aarch64_be-none-elf with
> 
>   UNRESOLVED: weak undefined function symbols in shared lib

Thanks for the report.  I should add an exit status check to my
testing regime.  Anyway, this should fix the problem.  Committed.

	* testsuite/ld-undefined/weak-undef.exp: Use unsupported not
	unresolved.

diff --git a/ld/testsuite/ld-undefined/weak-undef.exp b/ld/testsuite/ld-undefined/weak-undef.exp
index 127628f..e20bd98 100644
--- a/ld/testsuite/ld-undefined/weak-undef.exp
+++ b/ld/testsuite/ld-undefined/weak-undef.exp
@@ -67,7 +67,7 @@ switch -glob $target_triplet {
 }
 
 if { $asflags == "" || ![is_elf_format] || ![check_shared_lib_support]} then {
-    unresolved $testname
+    unsupported $testname
 } elseif {![ld_assemble $as "$asflags $srcdir/$subdir/weak-fundef.s" \
 		tmpdir/weak-fundef.o]} then {
     fail $testname

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list