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~