aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-script.c
diff options
context:
space:
mode:
authorJens Remus <jremus@linux.ibm.com>2025-03-28 15:27:11 +0100
committerJens Remus <jremus@linux.ibm.com>2025-03-28 15:27:11 +0100
commit63621cffc5ca44ef9d830f6e562dda5ccbffbeca (patch)
tree653f090180f3b830dab1d252f09bdc5379c34964 /gdb/cli/cli-script.c
parent58ed43f97879e80392710030161410534ef57016 (diff)
downloadbinutils-63621cffc5ca44ef9d830f6e562dda5ccbffbeca.zip
binutils-63621cffc5ca44ef9d830f6e562dda5ccbffbeca.tar.gz
binutils-63621cffc5ca44ef9d830f6e562dda5ccbffbeca.tar.bz2
ld: Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to more ELF visibility tests
Some distributions configure GCC with --enable-default-pie, so that it defaults to compile with -fPIE and link with -pie, which is unexpected by the test. Therefore compile the non-PIC sources with $NOPIE_CFLAGS and link the test programs with $NOPIE_LDFLAGS. Commit 922109c71828 ("Pass $NOPIE_CFLAGS to ELF visibility tests") added $NOPIE_CFLAGS when compiling sh1np.o and sh2np.o. It missed to add it to mainnp.o. ld/testsuite/ PR ld/21090 * ld-vsb/vsb.exp (visibility_test): Add support for optional ldflags argument and use it when linking the test program. (mainnp.o): Compile with $NOPIE_CFLAGS. (vnp, vp, vmpnp, vmpp): Link with $NOPIE_LDFLAGS. Fixes: 922109c71828 ("Pass $NOPIE_CFLAGS to ELF visibility tests") Bug: https://sourceware.org/PR21090 Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Diffstat (limited to 'gdb/cli/cli-script.c')
0 files changed, 0 insertions, 0 deletions