BSD4.4 derived system.
* configure: Rebuild.
* Makefile.in (.c.o): Add @DEFS@.
* gmon_io.c (gmon_out_read): In BSD44_FORMAT code, get profrate
from profrate field, not version field.
+Thu Feb 27 12:46:53 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * configure.in: Define BSD44_FORMAT if the target looks like a
+ BSD4.4 derived system.
+ * configure: Rebuild.
+ * Makefile.in (.c.o): Add @DEFS@.
+ * gmon_io.c (gmon_out_read): In BSD44_FORMAT code, get profrate
+ from profrate field, not version field.
+
Thu Jan 16 17:42:54 1997 Ian Lance Taylor <ian@cygnus.com>
* dummy.c (find_call): Clear ignore_direct_calls.
HLDFLAGS = @HLDFLAGS@
HLDENV = @HLDENV@
.c.o:
- $(CC) -c -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_TARGET).h\" $(TCFLAGS) $(HCFLAGS) $(CFLAGS) $<
+ $(CC) -c -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd @DEFS@ -DMACHINE_H=\"$(MY_TARGET).h\" $(TCFLAGS) $(HCFLAGS) $(CFLAGS) $<
all: $(GEN_FILES) $(PROG)
+case "${target}" in
+*-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
+ cat >> confdefs.h <<\EOF
+#define BSD44_FORMAT 1
+EOF
+
+ ;;
+esac
+
BFDLIB='-L../bfd -lbfd'
# We need to handle some special cases if BFD was built shared.
AC_SUBST(MY_TARGET)
+dnl We need to set BSD44_FORMAT on a host which uses the additional
+dnl header fields. This is an attempt to do that. I can't think of a
+dnl good feature test for this.
+case "${target}" in
+*-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
+ AC_DEFINE(BSD44_FORMAT)
+ ;;
+esac
+
BFDLIB='-L../bfd -lbfd'
# We need to handle some special cases if BFD was built shared.
{
int profrate;
- profrate = bfd_get_32 (core_bfd, (bfd_byte *) &raw.version[0]);
+ profrate = bfd_get_32 (core_bfd, (bfd_byte *) &raw.profrate[0]);
if (!s_highpc)
hz = profrate;
else if (hz != profrate)