[gdb/testsuite] Fix gdb.base/infoline-reloc-main-from-zero.exp with recent ld
commita2470500432334fe254ef10ddabcab239e8de828
authorTom de Vries <tdevries@suse.de>
Wed, 12 Oct 2022 14:50:16 +0000 (12 16:50 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 12 Oct 2022 14:50:16 +0000 (12 16:50 +0200)
tree10794d93dd71b88b0c5692bae4c3db44ac8cab2a
parent9693166f6648b3aaa7dc680b3fecda16b63ecfb4
[gdb/testsuite] Fix gdb.base/infoline-reloc-main-from-zero.exp with recent ld

On openSUSE Tumbleweed (with ld 2.39) and test-case
gdb.base/infoline-reloc-main-from-zero.exp, I get:
...
gdb compile failed, ld: warning: infoline-reloc-main-from-zero has a LOAD \
  segment with RWX permissions
UNTESTED: gdb.base/infoline-reloc-main-from-zero.exp: \
  infoline-reloc-main-from-zero.exp
...

Fix this by compiling with -Wl,--no-warn-rwx-segments.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/infoline-reloc-main-from-zero.exp