[PATCH] *-*-hpux*: Don't use build_wrapper in copy_setup on hpux

Alan Modra amodra@gmail.com
Fri Aug 28 05:16:30 GMT 2020


On Thu, Aug 27, 2020 at 04:49:56PM -0400, John David Anglin wrote:
> diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
> index 9877f3d310..eaa3db19ea 100644
> --- a/binutils/testsuite/binutils-all/objcopy.exp
> +++ b/binutils/testsuite/binutils-all/objcopy.exp
> @@ -631,7 +631,11 @@ proc copy_setup { } {
>      global test_prog
>      global host_triplet
> 
> -    set res [build_wrapper testglue.o]
> +    if { ![istarget *-*-hpux*] } {
> +	set res [build_wrapper testglue.o]
> +    } else {
> +	set res ""
> +    }
>      set flags { debug }
> 
>      if { [istarget *-*-uclinux*] && ![istarget tic6x-*-*] && ![istarget arm*-*-uclinuxfdpiceabi] } {

That can't be correct.  It shouldn't depend on target, since I can run
the testsuite on a cross from x86_64-linux to hppa-hp-hpux10 say
without seeing the problem you run into on native hpux.  In fact, what
you should be testing is "am I linking with GNU ld?", or really, a
linker that supports -wrap.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list