[PATCH 0/2] tests/tcg: Fix new cross-compiler warnings

Richard Henderson posted 2 patches 1 month, 2 weeks ago
tests/tcg/Makefile.target                     | 2 +-
tests/tcg/aarch64/Makefile.softmmu-target     | 2 +-
tests/tcg/alpha/Makefile.softmmu-target       | 2 +-
tests/tcg/arm/Makefile.softmmu-target         | 2 +-
tests/tcg/arm/Makefile.target                 | 2 +-
tests/tcg/i386/Makefile.softmmu-target        | 2 +-
tests/tcg/loongarch64/Makefile.softmmu-target | 4 ++--
tests/tcg/riscv64/Makefile.softmmu-target     | 2 +-
tests/tcg/s390x/Makefile.softmmu-target       | 2 +-
tests/tcg/x86_64/Makefile.softmmu-target      | 2 +-
10 files changed, 11 insertions(+), 11 deletions(-)
[PATCH 0/2] tests/tcg: Fix new cross-compiler warnings
Posted by Richard Henderson 1 month, 2 weeks ago
Recent updates to debian cross-compilers have enabled some
new warnings by default, which encourage good behaviour for
userland binaries.

Neither are applicable for our system mode kernel images,
but we do have a few userland tests that are affected.

The --noexecstack assembler flag takes care of adding the
appropriate .note.GNU-stack elf note for us, rather than
writing a dozen lines of assembly template, and so is a
true fix rather than merely disabling the linker warning.


r~


Richard Henderson (2):
  tests/tcg: Use --noexecstack with assembler files
  tests/tcg/loongarch64: Use --no-warn-rwx-segments to link system tests

 tests/tcg/Makefile.target                     | 2 +-
 tests/tcg/aarch64/Makefile.softmmu-target     | 2 +-
 tests/tcg/alpha/Makefile.softmmu-target       | 2 +-
 tests/tcg/arm/Makefile.softmmu-target         | 2 +-
 tests/tcg/arm/Makefile.target                 | 2 +-
 tests/tcg/i386/Makefile.softmmu-target        | 2 +-
 tests/tcg/loongarch64/Makefile.softmmu-target | 4 ++--
 tests/tcg/riscv64/Makefile.softmmu-target     | 2 +-
 tests/tcg/s390x/Makefile.softmmu-target       | 2 +-
 tests/tcg/x86_64/Makefile.softmmu-target      | 2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

-- 
2.43.0
Re: [PATCH 0/2] tests/tcg: Fix new cross-compiler warnings
Posted by Alex Bennée 1 month, 2 weeks ago
Richard Henderson <richard.henderson@linaro.org> writes:

> Recent updates to debian cross-compilers have enabled some
> new warnings by default, which encourage good behaviour for
> userland binaries.
>
> Neither are applicable for our system mode kernel images,
> but we do have a few userland tests that are affected.
>
> The --noexecstack assembler flag takes care of adding the
> appropriate .note.GNU-stack elf note for us, rather than
> writing a dozen lines of assembly template, and so is a
> true fix rather than merely disabling the linker warning.

Queued to maintainer/for-9.1, thanks.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro
Re: [PATCH 0/2] tests/tcg: Fix new cross-compiler warnings
Posted by Alex Bennée 1 month, 2 weeks ago
Richard Henderson <richard.henderson@linaro.org> writes:

> Recent updates to debian cross-compilers have enabled some
> new warnings by default, which encourage good behaviour for
> userland binaries.
>
> Neither are applicable for our system mode kernel images,
> but we do have a few userland tests that are affected.
>
> The --noexecstack assembler flag takes care of adding the
> appropriate .note.GNU-stack elf note for us, rather than
> writing a dozen lines of assembly template, and so is a
> true fix rather than merely disabling the linker warning.

Queued to maintainer/for-9.1, thanks.
>  10 files changed, 11 insertions(+), 11 deletions(-)

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro