This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [testsuite patch] Fix gdb.btrace/tailcall-only.exp errors on x86_64-m32
- From: Pedro Alves <palves at redhat dot com>
- To: "Metzger, Markus T" <markus dot t dot metzger at intel dot com>, Jan Kratochvil <jan dot kratochvil at redhat dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 20 Jul 2016 15:02:20 +0100
- Subject: Re: [testsuite patch] Fix gdb.btrace/tailcall-only.exp errors on x86_64-m32
- Authentication-results: sourceware.org; auth=none
- References: <20160408155331.GA31979@host1.jankratochvil.net> <A78C989F6D9628469189715575E55B23332A7343@IRSMSX104.ger.corp.intel.com>
On 04/11/2016 07:44 AM, Metzger, Markus T wrote:
>> -----Original Message-----
>> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
>> owner@sourceware.org] On Behalf Of Jan Kratochvil
>> Sent: Friday, April 8, 2016 5:54 PM
>> To: gdb-patches@sourceware.org
>> Cc: Metzger, Markus T <markus.t.metzger@intel.com>
>> Subject: [testsuite patch] Fix gdb.btrace/tailcall-only.exp errors on x86_64-
>> m32
>
> Hi Jan,
>
>> $ runtest 'CC_FOR_TARGET=gcc -m32' gdb.btrace/tailcall-only.exp Running
>> ./gdb.btrace/tailcall-only.exp ...
>> gdb compile failed, tailcall-only.c: Assembler messages:
>> tailcall-only.c:142: Error: cannot represent relocation type BFD_RELOC_64 [...]
>> tailcall-only.c:425: Error: cannot represent relocation type BFD_RELOC_64
>
> I'm setting the target triplet to "i686-unknown-linux" in my m32 configuration.
> Like this:
>
> set target_triplet "i686-unknown-linux"
> set_board_info cflags "-m32"
> set_board_info cppflags "-m32"
>
> Should I rather not set the target_triplet?
There's no reason you should _not_ set it.
But, multilib-style testing with --target_board=unix\{-m64,-m32\} etc.
should work _too_, IMO.
Thanks,
Pedro Alves