Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2002 00:10:42 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 11434 for review
Message-ID:  <200205170710.g4H7Agh50138@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11434

Change 11434 by peter@peter_overcee on 2002/05/17 00:10:13

	IFC @11433 (pre gcc syncup)

Affected files ...

... //depot/projects/ia64/gnu/lib/csu/Makefile#6 integrate
... //depot/projects/ia64/gnu/lib/libgcc/Makefile#11 integrate
... //depot/projects/ia64/gnu/usr.bin/binutils/ld/Makefile.powerpc#5 integrate
... //depot/projects/ia64/gnu/usr.bin/binutils/libbfd/Makefile.powerpc#2 integrate
... //depot/projects/ia64/gnu/usr.bin/binutils/libbfd/powerpc/bfd.h#4 integrate
... //depot/projects/ia64/gnu/usr.bin/cc/Makefile#6 integrate
... //depot/projects/ia64/gnu/usr.bin/cc/c++filt/Makefile#4 integrate
... //depot/projects/ia64/lib/libc/powerpc/SYS.h#2 integrate
... //depot/projects/ia64/sys/alpha/include/atomic.h#4 integrate
... //depot/projects/ia64/usr.bin/find/function.c#8 integrate
... //depot/projects/ia64/usr.bin/finger/util.c#5 integrate
... //depot/projects/ia64/usr.bin/hexdump/conv.c#4 integrate
... //depot/projects/ia64/usr.bin/hexdump/display.c#5 integrate
... //depot/projects/ia64/usr.bin/hexdump/hexdump.1#3 integrate
... //depot/projects/ia64/usr.bin/hexdump/hexdump.h#4 integrate
... //depot/projects/ia64/usr.bin/hexdump/hexsyntax.c#2 integrate
... //depot/projects/ia64/usr.bin/hexdump/od.1#3 integrate
... //depot/projects/ia64/usr.bin/hexdump/odsyntax.c#3 integrate
... //depot/projects/ia64/usr.bin/hexdump/parse.c#4 integrate
... //depot/projects/ia64/usr.bin/last/last.c#4 integrate
... //depot/projects/ia64/usr.bin/paste/paste.c#5 integrate
... //depot/projects/ia64/usr.bin/tset/map.c#4 integrate
... //depot/projects/ia64/usr.bin/tsort/tsort.c#4 integrate
... //depot/projects/ia64/usr.sbin/rpcbind/check_bound.c#2 integrate
... //depot/projects/ia64/usr.sbin/rpcbind/rpcb_svc_4.c#2 integrate
... //depot/projects/ia64/usr.sbin/rpcbind/rpcb_svc_com.c#2 integrate
... //depot/projects/ia64/usr.sbin/rpcbind/rpcbind.c#2 integrate

Differences ...

==== //depot/projects/ia64/gnu/lib/csu/Makefile#6 (text+ko) ====

@@ -1,4 +1,4 @@
-# $FreeBSD: src/gnu/lib/csu/Makefile,v 1.10 2002/05/14 01:00:25 obrien Exp $
+# $FreeBSD: src/gnu/lib/csu/Makefile,v 1.11 2002/05/17 03:04:47 obrien Exp $
 
 GCCDIR=	${.CURDIR}/../../../contrib/gcc
 .PATH: ${GCCDIR}
@@ -23,6 +23,11 @@
 CRTS_CFLAGS=	-DCRTSTUFFS_O ${PICFLAG}
 MKDEPCMD=	CC="${CC}" MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep
 
+.if ${TARGET_ARCH} == "powerpc"
+.PATH: ${GCCDIR}/config/${GCC_CPU}
+TGTOBJS=	crtsavres.o
+SRCS+=		crtsavres.asm
+.endif
 .if ${TARGET_ARCH} == "sparc64"
 TGTOBJS=	crtfastmath.o
 SRCS+=		crtfastmath.c

==== //depot/projects/ia64/gnu/lib/libgcc/Makefile#11 (text+ko) ====

@@ -1,4 +1,4 @@
-# $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.40 2002/05/12 14:05:58 obrien Exp $
+# $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.42 2002/05/17 04:18:33 obrien Exp $
 
 .include "${.CURDIR}/../../usr.bin/cc/Makefile.tgt"
 
@@ -44,6 +44,8 @@
 		-I${GCCDIR}/config -I${GCCDIR} -I.
 LDFLAGS=	-nostdlib
 
+OBJS=		# added to below in various ways depending on TARGET_ARCH
+
 #---------------------------------------------------------------------------
 #
 # When upgrading GCC, get the following defintions straight from Makefile.in
@@ -116,9 +118,9 @@
 
 .if ${TARGET_ARCH} == "powerpc"
 #	from config/rs6000/t-ppccomm
-LIB2FUNCS_EXTRA = tramp.S
+LIB2FUNCS_EXTRA = tramp.asm
 # This one can't end up in shared libgcc
-LIB2FUNCS_STATIC_EXTRA = eabi.S
+LIB2FUNCS_STATIC_EXTRA = eabi.asm
 # We want fine grained libraries, so use the new code to build the
 # floating point emulation libraries.
 OBJS+=	dp-bit.o fp-bit.o
@@ -175,10 +177,10 @@
 .endif
 SYMS_ST=	${LIB2FUNCS_ST}		\
 		${LIB2ADD_ST}
+OBJS+=		${SYMS:S/$/.o/} ${LIB1ASMFUNCS:S/$/.o/}
 OBJS_T=		${SYMS:S/$/.o/}  ${SYMS_ST:S/$/.o/}
 OBJS_P=		${SYMS:S/$/.po/} ${SYMS_ST:S/$/.po/}
 OBJS_S=		${SYMS:S/$/.So/}
-OBJS=		${SYMS:S/$/.o/} ${LIB1ASMFUNCS:S/$/.o/}
 STATICOBJS=	${SYMS_ST:S/$/.o/}
 SRCS=		${LIB2ADD} ${LIB2ADDEH}
 

==== //depot/projects/ia64/gnu/usr.bin/binutils/ld/Makefile.powerpc#5 (text+ko) ====

@@ -1,111 +1,29 @@
-# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile.powerpc,v 1.10 2002/03/29 00:41:01 obrien Exp $
+# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile.powerpc,v 1.11 2002/05/17 03:10:33 obrien Exp $
 
 TARGET_TUPLE?=	powerpc-unknown-freebsd
 
 .if ${TARGET_ARCH} == "powerpc"
 NATIVE_EMULATION=	elf32ppc
 HOST=	${TARGET_TUPLE}
-CFLAGS+= -DDEFAULT_EMULATION=\"elf_powerpc\"
+CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
 CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
 _powerpc_path=	\"${TOOLS_PREFIX}/usr/lib\"
 .else
 _powerpc_path=	\"/usr/cross/powerpc-freebsd/usr/lib\"
 .endif
-EMS+=		${NATIVE_EMULATION}	\
-		ppcmacos		\
-		ppcnw			\
-		ppcpe			\
-		aixrs6			\
-		rs6000lynx
+EMS+=		${NATIVE_EMULATION}
 LDSCRIPTS+=	${NATIVE_EMULATION}.x	\
 		${NATIVE_EMULATION}.xbn	\
 		${NATIVE_EMULATION}.xn	\
 		${NATIVE_EMULATION}.xr	\
 		${NATIVE_EMULATION}.xs	\
 		${NATIVE_EMULATION}.xu	\
-		${NATIVE_EMULATION}.xc	\
-		${NATIVE_EMULATION}.xsc	\
-		ppcmacos.x		\
-		ppcmacos.xbn		\
-		ppcmacos.xn		\
-		ppcmacos.xr		\
-		ppcmacos.xu		\
-		ppcmacos.xc		\
-		ppcmacos.xsc		\
-		ppcnw.x			\
-		ppcnw.xbn		\
-		ppcnw.xn		\
-		ppcnw.xr		\
-		ppcnw.xu		\
-		ppcnw.xc		\
-		ppcnw.xsc		\
-		ppcpe.x			\
-		ppcpe.xbn		\
-		ppcpe.xn		\
-		ppcpe.xr		\
-		ppcpe.xu		\
-		ppcpe.xc		\
-		ppcpe.xsc		\
-		aixrs6.x		\
-		aixrs6.xbn		\
-		aixrs6.xn		\
-		aixrs6.xr		\
-		aixrs6.xu		\
-		aixrs6.xc		\
-		aixrs6.xsc		\
-		rs6000lynx.x		\
-		rs6000lynx.xbn		\
-		rs6000lynx.xn		\
-		rs6000lynx.xr		\
-		rs6000lynx.xu		\
-		rs6000lynx.xc		\
-		rs6000lynx.xsc
-SRCS+=		e${NATIVE_EMULATION}.c	\
-		eppcmacos.c		\
-		eppcnw.c		\
-		eppcpe.c		\
-		eaixrs6.c		\
-		ers6000lynx.c
-CLEANFILES+=	e${NATIVE_EMULATION}.c	\
-		eppcmacos.c		\
-		eppcnw.c		\
-		eppcpe.c		\
-		eaixrs6.c		\
-		ers6000lynx.c
+		${NATIVE_EMULATION}.xsc
+SRCS+=		e${NATIVE_EMULATION}.c
+CLEANFILES+=	e${NATIVE_EMULATION}.c
 
-e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em scripttempl/elfppc.sc \
-    genscripts.sh stringify.sed
-	sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
-	    ${_powerpc_path} ${HOST} ${TARGET_TUPLE} \
-	    ${TARGET_TUPLE} ${NATIVE_EMULATION} "" ${NATIVE_EMULATION}
-
-eppcmacos.c: emulparams/ppcmacos.sh emultempl/aix.em scripttempl/aix.sc \
-    genscripts.sh stringify.sed
-	sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
-	    /usr/cross/powerpc_macos/usr/lib ${HOST} \
-	    ${TARGET_TUPLE}macos \
-	    ${TARGET_TUPLE}macos ppcmacos "" ppcmacos
-
-eppcnw.c: emulparams/ppcnw.sh emultempl/elf32.em scripttempl/nw.sc \
-    genscripts.sh stringify.sed
-	sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
-	    /usr/cross/powerpc_nw/usr/lib ${HOST} ${TARGET_TUPLE}nw \
-	    ${TARGET_TUPLE}nw ppcnw "" ppcnw
-
-eppcpe.c: emulparams/ppcpe.sh emultempl/pe.em scripttempl/ppcpe.sc \
-    genscripts.sh stringify.sed
-	sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
-	    /usr/cross/powerpc_pe/usr/lib ${HOST} ${TARGET_TUPLE}pe \
-	    ${TARGET_TUPLE}pe ppcpe "" ppcpe
-
-eaixrs6.c: emulparams/aixrs6.sh emultempl/aix.em scripttempl/aix.sc \
-    genscripts.sh stringify.sed
-	sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
-	    /usr/cross/rs6000-lynx/lib ${HOST} aixcoff-rs6000 \
-	    aixcoff-rs6000 aixrs6 "" aixrs6
-
-ers6000lynx.c: emulparams/rs6000lynx.sh emultempl/aix.em scripttempl/aix.sc \
-    genscripts.sh stringify.sed
-	sh ${.CURDIR}/genscripts.sh ${BINUTILSDISTDIR}/ld \
-	    /usr/cross/rs6000-lynx/lib ${HOST} aixcoff-rs6000 \
-	    aixcoff-rs6000 rs6000lynx "" rs6000lynx
+e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
+    scripttempl/elfppc.sc genscripts.sh stringify.sed
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_powerpc_path} \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    ${NATIVE_EMULATION} ""  ${NATIVE_EMULATION} ${TARGET_TUPLE}

==== //depot/projects/ia64/gnu/usr.bin/binutils/libbfd/Makefile.powerpc#2 (text+ko) ====

@@ -1,21 +1,17 @@
-# $FreeBSD: src/gnu/usr.bin/binutils/libbfd/Makefile.powerpc,v 1.3 2001/10/14 00:58:59 obrien Exp $
+# $FreeBSD: src/gnu/usr.bin/binutils/libbfd/Makefile.powerpc,v 1.4 2002/05/17 03:43:47 obrien Exp $
 
-SRCS+=	cofflink.c	\
+SRCS+=	\
 	cpu-powerpc.c	\
+	cpu-rs6000.c	\
+	elf32.c		\
+	elf32-gen.c	\
 	elf32-ppc.c	\
 	elf32-target.h	\
-	elf32.c		\
 	elflink.c	\
-	pe-ppc.c	\
-	pei-ppc.c	\
 	ppcboot.c	\
-	xcofflink.c
+	#xcofflink.c
 VECS+=	bfd_elf32_powerpc_vec	\
 	bfd_elf32_powerpcle_vec	\
-	bfd_powerpc_pe_vec	\
-	bfd_powerpc_pei_vec	\
-	bfd_powerpcle_pe_vec	\
-	bfd_powerpcle_pei_vec	\
 	ppcboot_vec
 
 .if ${TARGET_ARCH} == "powerpc"
@@ -23,10 +19,6 @@
 .endif
 CFLAGS+= -DHAVE_bfd_elf32_powerpc_vec	\
 	-DHAVE_bfd_elf32_powerpcle_vec	\
-	-DHAVE_bfd_powerpc_pe_vec	\
-	-DHAVE_bfd_powerpc_pei_vec	\
-	-DHAVE_bfd_powerpcle_pe_vec	\
-	-DHAVE_bfd_powerpcle_pei_vec	\
 	-DHAVE_ppcboot_vec
 CLEANFILES+=	elf32-target.h
 

==== //depot/projects/ia64/gnu/usr.bin/binutils/libbfd/powerpc/bfd.h#4 (text+ko) ====

@@ -1,15 +1,14 @@
-/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/powerpc/bfd.h,v 1.3 2002/03/20 23:05:16 obrien Exp $ */
+/* $FreeBSD: src/gnu/usr.bin/binutils/libbfd/powerpc/bfd.h,v 1.4 2002/05/17 03:43:09 obrien Exp $ */
 
 /* DO NOT EDIT!  -*- buffer-read-only: t -*-  This file is automatically 
-   generated from "bfd-in.h", "		", "init.c", "		", "opncls.c", 
-   "		", "libbfd.c", "		", "section.c", "		", "archures.c		", "reloc.c		", 
-   "syms.c		", "bfd.c		", "archive.c		", "corefile.c		", "targets.c		" 
-   and "format.c		".
+   generated from "bfd-in.h", "init.c", "opncls.c", "libbfd.c", 
+   "section.c", "archures.c", "reloc.c", "syms.c", "bfd.c", "archive.c", 
+   "corefile.c", "targets.c" and "format.c".
    Run "make headers" in your build bfd/ to regenerate.  */
 
 /* Main header file for the bfd library -- portable access to object files.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001
+   2000, 2001, 2002
    Free Software Foundation, Inc.
    Contributed by Cygnus Support.
 
@@ -36,9 +35,6 @@
 extern "C" {
 #endif
 
-/* FreeBSD does not adhere to the System V ABI.  */
-#define ELF_DYNAMIC_INTERPRETER "/usr/libexec/ld-elf.so.1"
-
 #include "ansidecl.h"
 #include "symcat.h"
 #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
@@ -87,7 +83,7 @@
 #endif
 #endif
 
-/* forward declaration */
+/* Forward declaration.  */
 typedef struct _bfd bfd;
 
 /* To squelch erroneous compiler warnings ("illegal pointer
@@ -104,8 +100,16 @@
 /* Yup, SVR4 has a "typedef enum boolean" in <sys/types.h>  -fnf */
 /* It gets worse if the host also defines a true/false enum... -sts */
 /* And even worse if your compiler has built-in boolean types... -law */
+/* And even worse if your compiler provides a stdbool.h that conflicts
+   with these definitions... gcc 2.95 and later do.  If so, it must
+   be included first.  -drow */
 #if defined (__GNUG__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))
 #define TRUE_FALSE_ALREADY_DEFINED
+#else
+#if defined (__bool_true_false_are_defined)
+/* We have <stdbool.h>.  */
+#define TRUE_FALSE_ALREADY_DEFINED
+#endif
 #endif
 #ifdef MPW
 /* Pre-emptive strike - get the file with the enum.  */
@@ -207,15 +211,17 @@
 typedef unsigned int flagword;	/* 32 bits of flags */
 typedef unsigned char bfd_byte;
 
-/** File formats */
+/* File formats.  */
 
-typedef enum bfd_format {
-	      bfd_unknown = 0,	/* file format is unknown */
-	      bfd_object,	/* linker/assember/compiler output */
-	      bfd_archive,	/* object archive file */
-	      bfd_core,		/* core dump */
-	      bfd_type_end}	/* marks the end; don't use it! */
-         bfd_format;
+typedef enum bfd_format
+{
+  bfd_unknown = 0,	/* File format is unknown.  */
+  bfd_object,		/* Linker/assember/compiler output.  */
+  bfd_archive,		/* Object archive file.  */
+  bfd_core,		/* Core dump.  */
+  bfd_type_end		/* Marks the end; don't use it!  */
+}
+bfd_format;
 
 /* Values that may appear in the flags field of a BFD.  These also
    appear in the object_flags field of the bfd_target structure, where
@@ -274,7 +280,7 @@
    memory.  If this is set, iostream points to a bfd_in_memory struct.  */
 #define BFD_IN_MEMORY 0x800
 
-/* symbols and relocation */
+/* Symbols and relocation.  */
 
 /* A count of carsyms (canonical archive symbols).  */
 typedef unsigned long symindex;
@@ -298,33 +304,40 @@
 #define bfd_asymbol_flavour(x) (bfd_asymbol_bfd(x)->xvec->flavour)
 
 /* A canonical archive symbol.  */
-/* This is a type pun with struct ranlib on purpose! */
-typedef struct carsym {
+/* This is a type pun with struct ranlib on purpose!  */
+typedef struct carsym
+{
   char *name;
-  file_ptr file_offset;		/* look here to find the file */
-} carsym;			/* to make these you call a carsymogen */
+  file_ptr file_offset;	/* Look here to find the file.  */
+}
+carsym;			/* To make these you call a carsymogen.  */
 
 /* Used in generating armaps (archive tables of contents).
-   Perhaps just a forward definition would do? */
-struct orl {			/* output ranlib */
-  char **name;			/* symbol name */
-  union {
+   Perhaps just a forward definition would do?  */
+struct orl 			/* Output ranlib.  */
+{
+  char **name;		/* Symbol name.  */
+  union
+  {
     file_ptr pos;
     bfd *abfd;
-  } u;				/* bfd* or file position */
-  int namidx;			/* index into string table */
+  } u;			/* bfd* or file position.  */
+  int namidx;		/* Index into string table.  */
 };
 
-/* Linenumber stuff */
-typedef struct lineno_cache_entry {
-  unsigned int line_number;	/* Linenumber from start of function*/
-  union {
-    struct symbol_cache_entry *sym; /* Function name */
-    bfd_vma offset;	    /* Offset into section */
+/* Linenumber stuff.  */
+typedef struct lineno_cache_entry
+{
+  unsigned int line_number;	/* Linenumber from start of function.  */
+  union
+  {
+    struct symbol_cache_entry *sym;	/* Function name.  */
+    bfd_vma offset;	    		/* Offset into section.  */
   } u;
-} alent;
+}
+alent;
 
-/* object and core file sections */
+/* Object and core file sections.  */
 
 #define	align_power(addr, align)	\
 	( ((addr) + ((1<<(align))-1)) & (-1 << (align)))
@@ -463,7 +476,7 @@
 
 #define COFF_SWAP_TABLE (PTR) &bfd_coff_std_swap_table
 
-/* User program access to BFD facilities */
+/* User program access to BFD facilities.  */
 
 /* Direct I/O routines, for programs which know more about the object
    file than BFD does.  Use higher level routines if possible.  */
@@ -679,6 +692,9 @@
 extern boolean bfd_m68k_elf32_create_embedded_relocs
   PARAMS ((bfd *, struct bfd_link_info *, struct sec *, struct sec *,
 	   char **));
+extern boolean bfd_mips_elf32_create_embedded_relocs
+  PARAMS ((bfd *, struct bfd_link_info *, struct sec *, struct sec *,
+	   char **));
 
 /* SunOS shared library support routines for the linker.  */
 
@@ -704,7 +720,8 @@
 struct _bfd_window_internal;
 typedef struct _bfd_window_internal bfd_window_internal;
 
-typedef struct _bfd_window {
+typedef struct _bfd_window
+{
   /* What the user asked for.  */
   PTR data;
   bfd_size_type size;
@@ -715,7 +732,8 @@
      application; don't want to give the same region back when the
      application wants two writable copies!  */
   struct _bfd_window_internal *i;
-} bfd_window;
+}
+bfd_window;
 
 extern void bfd_init_window PARAMS ((bfd_window *));
 extern void bfd_free_window PARAMS ((bfd_window *));
@@ -992,25 +1010,20 @@
 {
   /* The name of the section; the name isn't a copy, the pointer is
      the same as that passed to bfd_make_section.  */
-
   const char *name;
 
   /* A unique sequence number.  */
-
   int id;
 
   /* Which section in the bfd; 0..n-1 as sections are created in a bfd.  */
-
   int index;
 
   /* The next section in the list belonging to the BFD, or NULL.  */
-
   struct sec *next;
 
   /* The field flags contains attributes of the section. Some
      flags are read in from the object file, and some are
      synthesized from other information.  */
-
   flagword flags;
 
 #define SEC_NO_FLAGS   0x000
@@ -1219,25 +1232,21 @@
       backend can assign addresses (for example, in <<a.out>>, where
       the default address for <<.data>> is dependent on the specific
       target and various flags).  */
-
   bfd_vma vma;
 
   /*  The load address of the section - where it would be in a
       rom image; really only used for writing section header
-      information. */
-
+      information.  */
   bfd_vma lma;
 
   /* The size of the section in octets, as it will be output.
      Contains a value even if the section has no contents (e.g., the
      size of <<.bss>>).  This will be filled in after relocation.  */
-
   bfd_size_type _cooked_size;
 
   /* The original size on disk of the section, in octets.  Normally this
      value is the same as the size, but if some relaxing has
      been done, then this value will be bigger.  */
-
   bfd_size_type _raw_size;
 
   /* If this section is going to be output, then this value is the
@@ -1247,49 +1256,39 @@
      100th octet (8-bit quantity) in the output section, this value
      would be 100.  However, if the target byte size is 16 bits
      (bfd_octets_per_byte is "2"), this value would be 50.  */
-
   bfd_vma output_offset;
 
   /* The output section through which to map on output.  */
-
   struct sec *output_section;
 
   /* The alignment requirement of the section, as an exponent of 2 -
      e.g., 3 aligns to 2^3 (or 8).  */
-
   unsigned int alignment_power;
 
   /* If an input section, a pointer to a vector of relocation
      records for the data in this section.  */
-
   struct reloc_cache_entry *relocation;
 
   /* If an output section, a pointer to a vector of pointers to
      relocation records for the data in this section.  */
-
   struct reloc_cache_entry **orelocation;
 
-  /* The number of relocation records in one of the above  */
-
+  /* The number of relocation records in one of the above.  */
   unsigned reloc_count;
 
   /* Information below is back end specific - and not always used
      or updated.  */
 
   /* File position of section data.  */
-
   file_ptr filepos;
 
   /* File position of relocation info.  */
-
   file_ptr rel_filepos;
 
   /* File position of line data.  */
-
   file_ptr line_filepos;
 
   /* Pointer to data for applications.  */
-
   PTR userdata;
 
   /* If the SEC_IN_MEMORY flag is set, this points to the actual
@@ -1297,48 +1296,40 @@
   unsigned char *contents;
 
   /* Attached line number information.  */
-
   alent *lineno;
 
   /* Number of line number records.  */
-
   unsigned int lineno_count;
 
   /* Entity size for merging purposes.  */
-
   unsigned int entsize;
 
   /* Optional information about a COMDAT entry; NULL if not COMDAT.  */
-
   struct bfd_comdat_info *comdat;
 
   /* When a section is being output, this value changes as more
      linenumbers are written out.  */
-
   file_ptr moving_line_filepos;
 
   /* What the section number is in the target world.  */
-
   int target_index;
 
   PTR used_by_bfd;
 
   /* If this is a constructor section then here is a list of the
      relocations created to relocate items within it.  */
-
   struct relent_chain *constructor_chain;
 
   /* The BFD which owns the section.  */
-
   bfd *owner;
 
-  /* A symbol which points at this section only */
+  /* A symbol which points at this section only.  */
   struct symbol_cache_entry *symbol;
   struct symbol_cache_entry **symbol_ptr_ptr;
 
   struct bfd_link_order *link_order_head;
   struct bfd_link_order *link_order_tail;
-} asection ;
+} asection;
 
 /* These sections are global, and are managed by BFD.  The application
    and target back end are not permitted to change the values in
@@ -1350,18 +1341,18 @@
 #define BFD_COM_SECTION_NAME "*COM*"
 #define BFD_IND_SECTION_NAME "*IND*"
 
-/* the absolute section */
+/* The absolute section.  */
 extern const asection bfd_abs_section;
 #define bfd_abs_section_ptr ((asection *) &bfd_abs_section)
 #define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)
-/* Pointer to the undefined section */
+/* Pointer to the undefined section.  */
 extern const asection bfd_und_section;
 #define bfd_und_section_ptr ((asection *) &bfd_und_section)
 #define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)
-/* Pointer to the common section */
+/* Pointer to the common section.  */
 extern const asection bfd_com_section;
 #define bfd_com_section_ptr ((asection *) &bfd_com_section)
-/* Pointer to the indirect section */
+/* Pointer to the indirect section.  */
 extern const asection bfd_ind_section;
 #define bfd_ind_section_ptr ((asection *) &bfd_ind_section)
 #define bfd_is_ind_section(sec) ((sec) == bfd_ind_section_ptr)
@@ -1463,8 +1454,8 @@
 
 enum bfd_architecture
 {
-  bfd_arch_unknown,   /* File arch not known */
-  bfd_arch_obscure,   /* Arch known, not one of these */
+  bfd_arch_unknown,   /* File arch not known.  */
+  bfd_arch_obscure,   /* Arch known, not one of these.  */
   bfd_arch_m68k,      /* Motorola 68xxx */
 #define bfd_mach_m68000 1
 #define bfd_mach_m68008 2
@@ -1486,7 +1477,7 @@
        available to machines with higher numbers.
        The exception is the "ca", which is
        incompatible with all other machines except
-       "core". */
+       "core".  */
 
 #define bfd_mach_i960_core      1
 #define bfd_mach_i960_ka_sa     2
@@ -1497,6 +1488,8 @@
 #define bfd_mach_i960_jx        7
 #define bfd_mach_i960_hx        8
 
+  bfd_arch_or32,      /* OpenRISC 32 */
+
   bfd_arch_a29k,      /* AMD 29000 */
   bfd_arch_sparc,     /* SPARC */
 #define bfd_mach_sparc                 1
@@ -1504,12 +1497,12 @@
 #define bfd_mach_sparc_sparclet        2
 #define bfd_mach_sparc_sparclite       3
 #define bfd_mach_sparc_v8plus          4
-#define bfd_mach_sparc_v8plusa         5 /* with ultrasparc add'ns */
+#define bfd_mach_sparc_v8plusa         5 /* with ultrasparc add'ns.  */
 #define bfd_mach_sparc_sparclite_le    6
 #define bfd_mach_sparc_v9              7
-#define bfd_mach_sparc_v9a             8 /* with ultrasparc add'ns */
-#define bfd_mach_sparc_v8plusb         9 /* with cheetah add'ns */
-#define bfd_mach_sparc_v9b             10 /* with cheetah add'ns */
+#define bfd_mach_sparc_v9a             8 /* with ultrasparc add'ns.  */
+#define bfd_mach_sparc_v8plusb         9 /* with cheetah add'ns.  */
+#define bfd_mach_sparc_v9b             10 /* with cheetah add'ns.  */
 /* Nonzero if MACH has the v9 instruction set.  */
 #define bfd_mach_sparc_v9_p(mach) \
   ((mach) >= bfd_mach_sparc_v8plus && (mach) <= bfd_mach_sparc_v9b \
@@ -1557,6 +1550,7 @@
   bfd_arch_pdp11,     /* DEC PDP-11 */
   bfd_arch_powerpc,   /* PowerPC */
 #define bfd_mach_ppc           0
+#define bfd_mach_ppc64         1
 #define bfd_mach_ppc_403       403
 #define bfd_mach_ppc_403gc     4030
 #define bfd_mach_ppc_505       505
@@ -1598,11 +1592,12 @@
 #define bfd_mach_sh3_dsp    0x3d
 #define bfd_mach_sh3e       0x3e
 #define bfd_mach_sh4        0x40
+#define bfd_mach_sh5        0x50
   bfd_arch_alpha,     /* Dec Alpha */
 #define bfd_mach_alpha_ev4  0x10
 #define bfd_mach_alpha_ev5  0x20
 #define bfd_mach_alpha_ev6  0x30
-  bfd_arch_arm,       /* Advanced Risc Machines ARM */
+  bfd_arch_arm,       /* Advanced Risc Machines ARM.  */
 #define bfd_mach_arm_2         1
 #define bfd_mach_arm_2a        2
 #define bfd_mach_arm_3         3
@@ -1628,7 +1623,7 @@
 #define bfd_mach_arc_7         2
 #define bfd_mach_arc_8         3
   bfd_arch_m32r,      /* Mitsubishi M32R/D */
-#define bfd_mach_m32r          0 /* backwards compatibility */
+#define bfd_mach_m32r          0 /* For backwards compatibility.  */
 #define bfd_mach_m32rx         'x'
   bfd_arch_mn10200,   /* Matsushita MN10200 */
   bfd_arch_mn10300,   /* Matsushita MN10300 */
@@ -1641,7 +1636,7 @@
 #define bfd_mach_ia64_elf64    0
 #define bfd_mach_ia64_elf32    1
   bfd_arch_pj,
-  bfd_arch_avr,       /* Atmel AVR microcontrollers */
+  bfd_arch_avr,       /* Atmel AVR microcontrollers.  */
 #define bfd_mach_avr1          1
 #define bfd_mach_avr2          2
 #define bfd_mach_avr3          3
@@ -1652,7 +1647,7 @@
 #define bfd_mach_s390_esa      0
 #define bfd_mach_s390_esame    1
   bfd_arch_openrisc,  /* OpenRISC */
-  bfd_arch_mmix,      /* Donald Knuth's educational processor */
+  bfd_arch_mmix,      /* Donald Knuth's educational processor.  */
   bfd_arch_xstormy16,
 #define bfd_mach_xstormy16     0
   bfd_arch_last
@@ -1677,7 +1672,9 @@
   boolean (*scan) PARAMS ((const struct bfd_arch_info *, const char *));
 
   const struct bfd_arch_info *next;
-} bfd_arch_info_type;
+}
+bfd_arch_info_type;
+
 const char *
 bfd_printable_name PARAMS ((bfd *abfd));
 
@@ -1727,25 +1724,25 @@
 
 typedef enum bfd_reloc_status
 {
-  /* No errors detected */
+  /* No errors detected.  */
   bfd_reloc_ok,
 
-  /* The relocation was performed, but there was an overflow. */
+  /* The relocation was performed, but there was an overflow.  */
   bfd_reloc_overflow,
 
-  /* The address to relocate was not within the section supplied. */
+  /* The address to relocate was not within the section supplied.  */
   bfd_reloc_outofrange,
 
-  /* Used by special functions */
+  /* Used by special functions.  */
   bfd_reloc_continue,
 
-  /* Unsupported relocation size requested. */
+  /* Unsupported relocation size requested.  */
   bfd_reloc_notsupported,
 
-  /* Unused */
+  /* Unused.  */
   bfd_reloc_other,
 
-  /* The symbol to relocate against was undefined. */
+  /* The symbol to relocate against was undefined.  */
   bfd_reloc_undefined,
 
   /* The relocation was performed, but may not be ok - presently
@@ -1759,34 +1756,36 @@
 
 typedef struct reloc_cache_entry
 {
-  /* A pointer into the canonical table of pointers  */
+  /* A pointer into the canonical table of pointers.  */
   struct symbol_cache_entry **sym_ptr_ptr;
 
-  /* offset in section */
+  /* offset in section.  */
   bfd_size_type address;
 
-  /* addend for relocation value */
+  /* addend for relocation value.  */
   bfd_vma addend;
 
-  /* Pointer to how to perform the required relocation */
+  /* Pointer to how to perform the required relocation.  */
   reloc_howto_type *howto;
 
-} arelent;
+}
+arelent;
+
 enum complain_overflow
 {
-  /* Do not complain on overflow. */
+  /* Do not complain on overflow.  */
   complain_overflow_dont,
 
   /* Complain if the bitfield overflows, whether it is considered
-     as signed or unsigned. */
+     as signed or unsigned.  */
   complain_overflow_bitfield,
 
   /* Complain if the value overflows when considered as signed
-     number. */
+     number.  */
   complain_overflow_signed,
 
   /* Complain if the value overflows when considered as an
-     unsigned number. */
+     unsigned number.  */
   complain_overflow_unsigned
 };
 
@@ -1878,6 +1877,7 @@
      empty (e.g., m88k bcs); this flag signals the fact.  */
   boolean pcrel_offset;
 };
+
 #define HOWTO(C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC) \
   { (unsigned) C, R, S, B, P, BI, O, SF, NAME, INPLACE, MASKSRC, MASKDST, PC }
 #define NEWHOWTO(FUNCTION, NAME, SIZE, REL, IN) \
@@ -1902,6 +1902,7 @@
           }                                             \
       }                                                 \
   }
+
 unsigned int
 bfd_get_reloc_size PARAMS ((reloc_howto_type *));
 
@@ -1909,7 +1910,9 @@
 {
   arelent relent;
   struct relent_chain *next;
-} arelent_chain;
+}
+arelent_chain;
+
 bfd_reloc_status_type
 bfd_check_overflow PARAMS ((enum complain_overflow how,
     unsigned int bitsize,
@@ -1936,7 +1939,7 @@
   _dummy_first_bfd_reloc_code_real,
 
 
-/* Basic absolute relocations of N bits. */
+/* Basic absolute relocations of N bits.  */
   BFD_RELOC_64,
   BFD_RELOC_32,
   BFD_RELOC_26,
@@ -1949,7 +1952,7 @@
 of the relocation itself; sometimes they are relative to the start of
 the section containing the relocation.  It depends on the specific target.
 
-The 24-bit relocation is used in some Intel 960 configurations. */
+The 24-bit relocation is used in some Intel 960 configurations.  */
   BFD_RELOC_64_PCREL,
   BFD_RELOC_32_PCREL,
   BFD_RELOC_24_PCREL,
@@ -1957,7 +1960,7 @@
   BFD_RELOC_12_PCREL,
   BFD_RELOC_8_PCREL,
 
-/* For ELF. */
+/* For ELF.  */
   BFD_RELOC_32_GOT_PCREL,
   BFD_RELOC_16_GOT_PCREL,
   BFD_RELOC_8_GOT_PCREL,
@@ -1980,12 +1983,12 @@
   BFD_RELOC_HI16_S_PLTOFF,
   BFD_RELOC_8_PLTOFF,
 
-/* Relocations used by 68K ELF. */
+/* Relocations used by 68K ELF.  */
   BFD_RELOC_68K_GLOB_DAT,
   BFD_RELOC_68K_JMP_SLOT,
   BFD_RELOC_68K_RELATIVE,
 
-/* Linkage-table relative. */
+/* Linkage-table relative.  */
   BFD_RELOC_32_BASEREL,
   BFD_RELOC_16_BASEREL,
   BFD_RELOC_LO16_BASEREL,
@@ -1994,7 +1997,7 @@
   BFD_RELOC_8_BASEREL,
   BFD_RELOC_RVA,
 
-/* Absolute 8-bit relocation, but used to form an address like 0xFFnn. */
+/* Absolute 8-bit relocation, but used to form an address like 0xFFnn.  */
   BFD_RELOC_8_FFnn,
 
 /* These PC-relative relocations are stored as word displacements --
@@ -2002,28 +2005,28 @@
 displacement (<<32_PCREL_S2>> -- 32 bits, shifted 2) is used on the
 SPARC.  (SPARC tools generally refer to this as <<WDISP30>>.)  The
 signed 16-bit displacement is used on the MIPS, and the 23-bit
-displacement is used on the Alpha. */
+displacement is used on the Alpha.  */
   BFD_RELOC_32_PCREL_S2,
   BFD_RELOC_16_PCREL_S2,
   BFD_RELOC_23_PCREL_S2,
 
 /* High 22 bits and low 10 bits of 32-bit value, placed into lower bits of
-the target word.  These are used on the SPARC. */
+the target word.  These are used on the SPARC.  */
   BFD_RELOC_HI22,
   BFD_RELOC_LO10,
 
 /* For systems that allocate a Global Pointer register, these are
 displacements off that register.  These relocation types are
 handled specially, because the value the register will have is
-decided relatively late. */
+decided relatively late.  */
   BFD_RELOC_GPREL16,
   BFD_RELOC_GPREL32,
 
-/* Reloc types used for i960/b.out. */
+/* Reloc types used for i960/b.out.  */
   BFD_RELOC_I960_CALLJ,
 
 /* SPARC ELF relocations.  There is probably some overlap with other
-relocation types already defined. */
+relocation types already defined.  */
   BFD_RELOC_NONE,
   BFD_RELOC_SPARC_WDISP22,
   BFD_RELOC_SPARC22,
@@ -2042,11 +2045,11 @@
   BFD_RELOC_SPARC_UA32,
   BFD_RELOC_SPARC_UA64,
 
-/* I think these are specific to SPARC a.out (e.g., Sun 4). */
+/* I think these are specific to SPARC a.out (e.g., Sun 4).  */
   BFD_RELOC_SPARC_BASE13,
   BFD_RELOC_SPARC_BASE22,
 
-/* SPARC64 relocations */
+/* SPARC64 relocations  */
 #define BFD_RELOC_SPARC_64 BFD_RELOC_64
   BFD_RELOC_SPARC_10,
   BFD_RELOC_SPARC_11,
@@ -2072,7 +2075,7 @@
   BFD_RELOC_SPARC_L44,
   BFD_RELOC_SPARC_REGISTER,
 
-/* SPARC little endian relocation */
+/* SPARC little endian relocation  */
   BFD_RELOC_SPARC_REV32,
 
 /* Alpha ECOFF and ELF relocations.  Some of these treat the symbol or
@@ -2080,18 +2083,18 @@
 For GPDISP_HI16 ("gpdisp") relocations, the symbol is ignored when
 writing; when reading, it will be the absolute section symbol.  The
 addend is the displacement in bytes of the "lda" instruction from
-the "ldah" instruction (which is at the address of this reloc). */
+the "ldah" instruction (which is at the address of this reloc).  */
   BFD_RELOC_ALPHA_GPDISP_HI16,
 
 /* For GPDISP_LO16 ("ignore") relocations, the symbol is handled as
 with GPDISP_HI16 relocs.  The addend is ignored when writing the
 relocations out, and is filled in with the file's GP value on
-reading, for convenience. */
+reading, for convenience.  */
   BFD_RELOC_ALPHA_GPDISP_LO16,
 
 /* The ELF GPDISP relocation is exactly the same as the GPDISP_HI16
 relocation except that there is no accompanying GPDISP_LO16
-relocation. */
+relocation.  */
   BFD_RELOC_ALPHA_GPDISP,
 
 /* The Alpha LITERAL/LITUSE relocs are produced by a symbol reference;
@@ -2116,61 +2119,66 @@
 of instruction using the register:
 1 - "memory" fmt insn
 2 - byte-manipulation (byte offset reg)
-3 - jsr (target of branch) */
+3 - jsr (target of branch)  */
   BFD_RELOC_ALPHA_LITERAL,
   BFD_RELOC_ALPHA_ELF_LITERAL,
   BFD_RELOC_ALPHA_LITUSE,
 
 /* The HINT relocation indicates a value that should be filled into the
 "hint" field of a jmp/jsr/ret instruction, for possible branch-
-prediction logic which may be provided on some processors. */
+prediction logic which may be provided on some processors.  */
   BFD_RELOC_ALPHA_HINT,
 
 /* The LINKAGE relocation outputs a linkage pair in the object file,
-which is filled by the linker. */
+which is filled by the linker.  */
   BFD_RELOC_ALPHA_LINKAGE,
 

>>> TRUNCATED FOR MAIL (1000 lines) <<<

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205170710.g4H7Agh50138>