]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/testsuite/ld-elf/shared.exp
LD/testsuite: Pass $AFLAGS_PIC to GAS for PIC assembly
authorMaciej W. Rozycki <macro@mips.com>
Fri, 2 Feb 2018 18:08:04 +0000 (18:08 +0000)
committerMaciej W. Rozycki <macro@mips.com>
Fri, 2 Feb 2018 18:08:04 +0000 (18:08 +0000)
commite54d3c943bb3999aeaf1667b4975dc035f7b554c
treea6d7dec505e9c677802ead63c76913a35a1b79a6
parentd830549dba59f4e11412fd6dc18b7b1d4c6cf557
LD/testsuite: Pass $AFLAGS_PIC to GAS for PIC assembly

Add $AFLAGS_PIC flags for PIC assembly to a number of tests missing them
and remove `tic6x-*-*' XFAIL annotations from them, previously added to
paper over:

.../ld-new: warning: generating a shared library containing non-PID code

error messages produced due to `-mpic -mpid=near' GAS options having not
been used.  Such errors now do not happen anymore, removing:

XFAIL: Build shared library for pr14170
XFAIL: PR ld/21703 shared
XFAIL: Build shared library for broken linker script test
XFAIL: Build pr17068.so
XFAIL: -Bsymbolic-functions
XFAIL: Build pr20995.so
XFAIL: Build pr22374 shared library

with `tic6x-elf' and `tic6x-uclinux' targets.  These tests now pass all
except for:

FAIL: PR ld/21703 shared

which is now due to a different reason, as follows:

extra regexps in .../ld/testsuite/ld-elf/pr21703-shared.sd starting with "^Symbol table '\.dynsym' contains [0-9]+ entries:$"
EOF from dump.out
FAIL: PR ld/21703 shared

The addition of $AFLAGS_PIC requires the affected test cases to use the
`list' command rather than `{}' characters to create a list, to avoid
the quoting property `{}' also have in TCL.  Consequently the change is
slightly more extensive than it could otherwise be.

ld/
* testsuite/ld-elf/shared.exp: Add $AFLAGS_PIC throughout to PIC
assembly builds where missing and remove `tic6x-*-*' XFAIL
markings accordingly.
ld/ChangeLog
ld/testsuite/ld-elf/shared.exp