aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-07-14 10:46:50 +0930
committerAlan Modra <amodra@gmail.com>2023-07-14 11:43:52 +0930
commit478409b71d3e80647904540e518897667bd352b2 (patch)
treeebbb973ced3d5d0843649bf28afc85e5868d3c94 /gas
parent0d8de8f255d3333c7a122c419f7f75f3c6c45df5 (diff)
downloadfsf-binutils-gdb-478409b71d3e80647904540e518897667bd352b2.zip
fsf-binutils-gdb-478409b71d3e80647904540e518897667bd352b2.tar.gz
fsf-binutils-gdb-478409b71d3e80647904540e518897667bd352b2.tar.bz2
AIX_WEAK_SUPPORT
Making target code depend on a host define like _AIX52 is never correct, so out it goes. Also, sort some config.bfd entries a little to make it more obvious there is a config difference between aix5.1 and aix5.2. These two changes should make no difference to anything in binutils. The gas define of AIX_WEAK_SUPPORT on the other hand was wrong, so fix that. Finally, fix some testsuite fails on aix < 5.2 by simply not running the tests. include/ * coff/internal.h (C_WEAKEXT): Don't depend on _AIX52. bfd/ * coffcode.h (coff_slurp_symbol_table): Don't depend on _AIX52. (coff_classify_symbol): Likewise. * config.bfd: Sort some entries. gas/ * configure.ac (AIX_WEAK_SUPPORT): Don't set for aix5.[01]. * configure: Regenerate. * testsuite/gas/ppc/aix.exp (xcoff-visibility-1*) Don't run for aix < 5.2.
Diffstat (limited to 'gas')
-rwxr-xr-xgas/configure2
-rw-r--r--gas/configure.ac2
-rw-r--r--gas/testsuite/gas/ppc/aix.exp11
3 files changed, 13 insertions, 2 deletions
diff --git a/gas/configure b/gas/configure
index 70fd348..86d90ab 100755
--- a/gas/configure
+++ b/gas/configure
@@ -12107,6 +12107,8 @@ $as_echo "#define STRICTCOFF 1" >>confdefs.h
microblaze*)
;;
+ ppc-*-aix5.[01]*)
+ ;;
ppc-*-aix[5-9].*)
$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
diff --git a/gas/configure.ac b/gas/configure.ac
index 03728ff..96eeb78 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -272,6 +272,8 @@ for this_target in $target $canon_targets ; do
;;
changequote(,)dnl
+ ppc-*-aix5.[01]*)
+ ;;
ppc-*-aix[5-9].*)
changequote([,])dnl
AC_DEFINE(AIX_WEAK_SUPPORT, 1,
diff --git a/gas/testsuite/gas/ppc/aix.exp b/gas/testsuite/gas/ppc/aix.exp
index 55aedc4..76ffb22 100644
--- a/gas/testsuite/gas/ppc/aix.exp
+++ b/gas/testsuite/gas/ppc/aix.exp
@@ -88,8 +88,15 @@ if { [istarget "powerpc*-*-aix*"] || [istarget "rs6000-*-aix*"] } then {
run_dump_test "xcoff-file-32"
run_dump_test "xcoff-file-64"
- run_dump_test "xcoff-visibility-1-32"
- run_dump_test "xcoff-visibility-1-64"
+ if { [istarget {*-*-aix[6-9]*}]
+ || [istarget {*-*-aix5.[2-9]*}] } {
+ # The expected output of these tests depends on AIX_WEAK_SUPPORT.
+ # Without that weak syms do not have an aux entry and thus
+ # BFD_NOT_AT_END is not set. I don't know if any of this is
+ # correct..
+ run_dump_test "xcoff-visibility-1-32"
+ run_dump_test "xcoff-visibility-1-64"
+ }
run_dump_test "xcoff-visibility-2-32"
run_dump_test "xcoff-visibility-2-64"
}