This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] bfd/elf.c: remove #define _SYSCALL32


Joern Rennecke wrote:

> The define of _SYSCALL32 in bfd/elf.c makes my
> sparc-sun-solaris2.8-X-sh-elf build fail.
> Could you define what you are trying to achive and autoconf for it?

OK.  Patch attached.  I have not regenerated the autoconf/autoheader
files, because I'm not sure that I'm using the right versions of auto*.
My generated files seem to have more diffs in them than I can account
for.
Would the maintainer who checks this in please run autoconf/autoheader?

Thanks,
Michael
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 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]