From bdd32e03c5e87bd38e63e9cc3fd35375241db58f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 18 Jun 2017 09:19:34 +0930 Subject: is_underscore_target for ld-elf tests and correct targ_underscore in config.bfd bfd/ * config.bfd: Correct targ_underscore for epiphany, ip2k, m32c, mn10200, pru, rl78, rx, crisv32 and v850. ld/ * testsuite/lib/ld-lib.exp (is_underscore_target): New. * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE. * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined, reference sym with prefix. * testsuite/ld-elf/pr21562b.s: Likewise. * testsuite/ld-elf/sizeof.s: Likewise. * testsuite/ld-elf/startof.s: Likewise. * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols. * testsuite/ld-elf/pr21562a.d: Remove underscore target from xfails, and match prefixed symbol. * testsuite/ld-elf/pr21562b.d: Likewise. * testsuite/ld-elf/pr21562c.d: Likewise. * testsuite/ld-elf/pr21562d.d: Likewise. * testsuite/ld-elf/pr21562e.d: Likewise. * testsuite/ld-elf/pr21562f.d: Likewise. * testsuite/ld-elf/pr21562g.d: Likewise. * testsuite/ld-elf/pr21562h.d: Likewise. * testsuite/ld-elf/pr21562i.d: Likewise. * testsuite/ld-elf/pr21562j.d: Likewise. * testsuite/ld-elf/pr21562k.d: Likewise. * testsuite/ld-elf/pr21562l.d: Likewise. * testsuite/ld-elf/pr21562m.d: Likewise. * testsuite/ld-elf/pr21562n.d: Likewise. * testsuite/ld-elf/sizeofa.d: Likewise. * testsuite/ld-elf/sizeofb.d: Likewise. * testsuite/ld-elf/sizeofc.d: Likewise. * testsuite/ld-elf/startofa.d: Likewise. * testsuite/ld-elf/startofb.d: Likewise. * testsuite/ld-elf/startofc.d: Likewise. --- bfd/config.bfd | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'bfd/config.bfd') diff --git a/bfd/config.bfd b/bfd/config.bfd index d0b509d..f8a26f4 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -500,10 +500,15 @@ case "${targ}" in targ_underscore=yes ;; - cris-*-* | crisv32-*-*) + cris-*-*) + targ_defvec=cris_aout_vec + targ_selvecs="cris_elf32_us_vec cris_elf32_vec ieee_vec" + targ_underscore=yes + ;; + + crisv32-*-*) targ_defvec=cris_aout_vec targ_selvecs="cris_elf32_us_vec cris_elf32_vec ieee_vec" - targ_underscore=yes # Note: not true for cris_elf32_vec. ;; crx-*-elf*) @@ -526,6 +531,7 @@ case "${targ}" in epiphany-*-*) targ_defvec=epiphany_elf32_vec + targ_underscore=yes ;; fido-*-elf* ) @@ -913,6 +919,7 @@ case "${targ}" in ip2k-*-elf) targ_defvec=ip2k_elf32_vec + targ_underscore=yes ;; iq2000-*-elf) @@ -931,6 +938,7 @@ case "${targ}" in m32c-*-elf | m32c-*-rtems*) targ_defvec=m32c_elf32_vec + targ_underscore=yes ;; m32r*le-*-linux*) @@ -1231,6 +1239,7 @@ case "${targ}" in #endif mn10200-*-*) targ_defvec=mn10200_elf32_vec + targ_underscore=yes ;; mn10300-*-*) @@ -1435,7 +1444,6 @@ case "${targ}" in pru-*-*) targ_defvec=pru_elf32_vec - targ_underscore=yes ;; #ifdef BFD64 @@ -1453,11 +1461,13 @@ case "${targ}" in rl78-*-elf) targ_defvec=rl78_elf32_vec + targ_underscore=yes ;; rx-*-elf) targ_defvec=rx_elf32_le_vec targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec" + targ_underscore=yes ;; s390-*-linux*) @@ -1767,6 +1777,7 @@ case "${targ}" in v850*-*-*) targ_defvec=v850_elf32_vec targ_selvecs="v800_elf32_vec" + targ_underscore=yes ;; vax-*-netbsdelf*) -- cgit v1.1