binutils-gdb/ld/testsuite
Rainer Orth ae4b1d73f9 ld: Fix pr22269-1 on 32-bit Solaris/SPARC
pr22269-1.s currently FAILs to assemble on 32-bit Solaris/SPARC:

ERROR:  -K PIC tmpdir/pr22269-1.s: assembly failed
UNRESOLVED: pr22269-1 (static pie undefined weak)

tmpdir/pr22269-1.s: Assembler messages:
tmpdir/pr22269-1.s:27: Error: Architecture mismatch on "be,pn %icc,.LL4 ,pn %icc,.LL4".
tmpdir/pr22269-1.s:27: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is sparclite.)
tmpdir/pr22269-1.s:32: Error: Architecture mismatch on "return %i7+8".
tmpdir/pr22269-1.s:32: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is sparclite.)
tmpdir/pr22269-1.s:36: Error: Architecture mismatch on "return %i7+8".
tmpdir/pr22269-1.s:36: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m|m8; requested architecture is sparclite.)

I could trace this to the fact that gcc on sparc-sun-solaris2.* defaults
to --with-cpu=v9.  So the gcc -S step of compiling the testcase is run
with -mcpu=v9, while the manual invocation of as-new lacks the
corresponding -Av9, creating a mismatch.

Solaris seems to be the only affected target, otherwise only
64-bit-default configurations default to --with-cpu=v9 or
--with-cpu=ultrasparc: sparcv9-*-*, sparc64-*-*,
sparc64-*-freebsd*, ultrasparc-*-freebsd*, and sparc64-*-openbsd*.

This patch just adds -Av9 to AFLAGS_PIC in ld-elf/shared.exp.  It has a
precedent in ld-elfvers/vers.exp where -Av9a is added to as_options on
sparc-*-*.  It lets the test pass and causes no other changes in
sparc-sun-solaris2.11 test results.

	* testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
2020-04-09 13:10:40 +02:00
..
config NOCF_PROTECTION_CFLAGS: Replace nopie with available 2020-04-02 07:42:40 -07:00
ld-aarch64 AArch64: Set the correct ELF class for AArch64 stubs (PR/25210) 2020-01-02 14:08:27 +00:00
ld-alpha Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-arc [ARC][committed] Update test matching pattern. 2020-01-13 11:16:47 +02:00
ld-arm Arm: Skip Thumb2 PLT tests on NaCL. 2020-04-01 18:36:23 +01:00
ld-auto-import Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-avr Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-bootstrap Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-bpf Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-cdtest Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-checks Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-cris PR25593, --as-needed breaks DT_NEEDED order with linker plugin 2020-02-26 10:37:25 +10:30
ld-crx Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-csky Add support for the C_SKY series of processors. 2018-07-30 12:24:14 +01:00
ld-cygwin Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-d10v Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-discard Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-elf ld: Fix pr22269-1 on 32-bit Solaris/SPARC 2020-04-09 13:10:40 +02:00
ld-elfcomm Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-elfvers Replace deprecated tcl case statements with switch statements 2020-01-27 22:52:15 +10:30
ld-elfvsb Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-elfweak Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-fastcall Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-frv Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-gc Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-h8300 h8300-linux ld testsuite 2020-03-25 14:51:41 +10:30
ld-i386 ELF: Add support for unique section ID to assembler 2020-02-02 17:08:01 -08:00
ld-ia64 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-ifunc ld: Disable ifunc tests on Solaris 2020-04-02 10:52:57 +02:00
ld-libs Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-linkonce Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-m68hc11 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-m68k Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-mep Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-metag Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-mips-elf Re: Prefer object over notype symbols when disassembling 2020-01-07 09:34:52 +10:30
ld-misc Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-mmix mmix-mmo set SEC_DATA for .data section 2020-02-28 08:19:42 +10:30
ld-mn10300 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-msp430-elf MSP430: Add input section rules for .upper sections to default linker script 2020-01-16 13:22:31 +00:00
ld-nds32 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-nios2 Run more ld tests when not native 2017-01-02 23:48:08 +10:30
ld-or1k Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-pe Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-pie Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-plugin plugin: Don't invoke LTO-wrapper 2020-03-20 03:55:30 -07:00
ld-powerpc Non-contiguous memory regions support: Fix testcases after previous commit 2020-03-18 12:38:30 +00:00
ld-pru Fix binary compatibility between GCC and the TI compiler for the PRU target. 2018-05-09 11:39:32 +01:00
ld-riscv-elf Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-s12z Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-s390 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-scripts ld/testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*. 2020-04-01 04:10:18 +02:00
ld-selective Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-sh Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-shared Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-size Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-sparc Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-spu Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-srec ld: Add NOCF_PROTECTION_CFLAGS to turn off -fcf-protection 2020-04-02 07:12:45 -07:00
ld-tic6x Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-tilegx Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-tilepro Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-undefined h8300-linux ld testsuite 2020-03-25 14:51:41 +10:30
ld-unique unique.exp: Update contains_unique_symbol 2020-02-07 12:03:40 -08:00
ld-v850 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-vax-elf Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-visium Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-vxworks Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-x86-64 ld: Add NOCF_PROTECTION_CFLAGS to turn off -fcf-protection 2020-04-02 07:12:45 -07:00
ld-xc16x Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-xstormy16 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-xtensa Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-z8k Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
ld-z80 Various fixes for the Z80 support. 2020-02-19 17:46:10 +00:00
lib Use GCC LTO wrapper to get real symbols from LTO IR objects 2020-02-10 19:01:53 -08:00
ChangeLog-2004 Add copyright notices 2012-12-10 12:48:03 +00:00
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011 Add copyright notices 2012-12-10 12:48:03 +00:00
ChangeLog-2012
ChangeLog-2013 New Year - binutils ChangeLog rotation 2014-01-08 05:32:12 -08:00
ChangeLog-2014 ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
ChangeLog-2015 binutils ChangeLog rotation 2016-01-01 22:59:17 +10:30
ChangeLog-9303