From d26c07d12457b914365ca967d51b96bf8e0346bc Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 29 Aug 1992 00:33:47 +0000 Subject: [PATCH] RS/6000 portability changes (for hosting cross-debuggers). * config/rs6000.mh (XDEPFILES): Move xcoffexec.o to target side. (XM_CLIBS): Add -lm to circumvent AIX 3.2 libc ldexp bug. * config/rs6000.mt (TDEPFILES): Adopt xcoffexec.o. --- gdb/config/rs6000.mh | 10 +++++++--- gdb/config/rs6000.mt | 3 +-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gdb/config/rs6000.mh b/gdb/config/rs6000.mh index cd514690143..393db153305 100644 --- a/gdb/config/rs6000.mh +++ b/gdb/config/rs6000.mh @@ -1,5 +1,5 @@ -# Host machine: IBM RS/6000 running AIX 3.1. -# Copyright (C) 1990, 1991 Free Software Foundation, Inc. +# Host machine: IBM RS/6000 running AIX 3.2. +# Copyright 1990, 1991, 1992 Free Software Foundation, Inc. # This file is part of GDB. @@ -17,7 +17,7 @@ # along with GDB; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -XDEPFILES= xcoffexec.o infptrace.o rs6000-xdep.o +XDEPFILES= infptrace.o rs6000-xdep.o XM_FILE= xm-rs6000.h # Prevent gcc from being confused. This actually belongs in CC... # MH_CFLAGS = -bnodelcsect @@ -26,3 +26,7 @@ XM_FILE= xm-rs6000.h # incompatible versions of malloc if we use GNU malloc ... MMALLOC_LIB = MMALLOC_DISABLE = -DNO_MMALLOC + +# A bug in the AIX 3.2 libc.a results in unresolved references for .scalb and +# .finite becuase we call ldexp. Circumvent by adding -lm. FIXME, IBM. +XM_CLIBS= -lm diff --git a/gdb/config/rs6000.mt b/gdb/config/rs6000.mt index a818fea14ac..2d669167fdc 100644 --- a/gdb/config/rs6000.mt +++ b/gdb/config/rs6000.mt @@ -17,6 +17,5 @@ # along with GDB; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -#TDEPFILES= exec.o rs6k-pinsn.o rs6k-tdep.o -TDEPFILES= rs6000-pinsn.o rs6000-tdep.o xcoffsolib.o +TDEPFILES= rs6000-pinsn.o rs6000-tdep.o xcoffsolib.o xcoffexec.o TM_FILE= tm-rs6000.h -- 2.30.2