This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA] bfd/elf.c: remove #define _SYSCALL32
- From: Michael Snyder <msnyder at redhat dot com>
- To: joern dot rennecke at st dot com
- Cc: bug-binutils at gnu dot org, binutils at sources dot redhat dot com
- Date: Mon, 15 Apr 2002 11:10:21 -0700
- Subject: Re: [RFA] bfd/elf.c: remove #define _SYSCALL32
- Organization: Red Hat, Inc.
- References: <3CB413EC.E7BD661F@st.com> <3CB5CDA2.484C480A@redhat.com> <3CBABA03.B3C48553@st.com>
Joern Rennecke wrote:
>
> msnyder@redhat.com wrote:
> > --------------------------------------------------------------------------------
> > Index: configure.in
> > ===================================================================
> > RCS file: /cvs/src/src/bfd/configure.in,v
> > retrieving revision 1.91
> > diff -p -r1.91 configure.in
> > *** configure.in 7 Apr 2002 21:49:09 -0000 1.91
> > --- configure.in 11 Apr 2002 18:00:48 -0000
> > *************** changequote([,])dnl
> > *** 404,409 ****
> > --- 404,413 ----
> > BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
> > BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
> > BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
> > + if test "$bfd_cv_have_sys_procfs_type_pstatus32_t" = yes || \
> > + test "$bfd_cv_have_sys_procfs_type_prstatus32_t" = yes; then
> > + AC_DEFINE(_SYSCALL32, 1, [Define if Solaris sparcv9 target.])
> > + fi
> > fi
> > fi
> > 2002-04-11 Michael Snyder <msnyder@redhat.com>
> >
> > * elf.c: Remove definition of _SYSCALL32.
> > * configure.in: Define _SYSCALL32 if appropriate.
> >
> > AC_SUBST(COREFILE)
> > Index: elf.c
> > ===================================================================
> > RCS file: /cvs/src/src/bfd/elf.c,v
> > retrieving revision 1.136
> > diff -p -r1.136 elf.c
> > *** elf.c 4 Apr 2002 19:53:35 -0000 1.136
> > --- elf.c 11 Apr 2002 18:00:49 -0000
> > ***************
> > *** 30,37 ****
> > to be written. The code is changing quickly enough that we
> > haven't bothered yet. */
> >
> > - /* For sparc64-cross-sparc32. */
> > - #define _SYSCALL32
> > #include "bfd.h"
> > #include "sysdep.h"
> > #include "bfdlink.h"
> > --- 30,35 ----
>
> I've tried this with the configuration on a sparc-sun-solaris2.8 with
> the configure option --target=sparc-sun-solaris2.5.1 , and _SYSCALLS32
> did not get defined. OTOH, a make of all-ld all-gcc finished
> successfully. So maybe this is not needed for solaris2.8 after all?
> Or did the problem the _SYSCALL32 define is intended to solve show
> at a later stage of the toolchain build / use?
To build GDB as a 64-bit application, you must specify the target as
sparc64-sun-solaris2.[678]
If you don't build gdb as a 64-bit app, then you don't need _SYSCALL32.