PowerPC64 ELFv1 undefined weak functions

Matthew Wahab matthew.wahab@foss.arm.com
Wed Aug 17 11:20:00 GMT 2016


Hello,

On 12/08/16 06:16, Alan Modra wrote:
> This adds tests for a few common targets.  I've implemented this
> without using C code because C testcases aren't so useful when
> building cross binutils targets:  You need a cross-compiler installed
> for the target, and there is less control over exactly what you're
> testing.  My approach of course has the disadvantage of needing target
> specific assembler.
>
> 	* 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

It passes for aarch64-none-linux-gnu.

Matthew



More information about the Binutils mailing list