qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 6/6] tests/i386/test-i386: try and correct constrain 16 bi


From: Richard Henderson
Subject: Re: [PATCH v1 6/6] tests/i386/test-i386: try and correct constrain 16 bit call (WIP)
Date: Tue, 30 Mar 2021 08:58:26 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/29/21 5:03 AM, Alex Bennée wrote:
Newer compilers complain about non-matching constraints:

   test-i386.c:1393:5: error: asm operand 2 probably doesn’t match constraints 
[-Werror]
    1393 |     asm volatile ("lcall %1, %2"
         |     ^~~

The problem is that the newer compiler is defaulting to -fpie, so &code16_func1 is not a constant.

Need to add -fno-pie to compile this. Which of course adds the confusion of old compilers that don't support that. We have CFLAGS_NOPIE in configure, but that doesn't directly help cross-compile.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]