Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2002 17:10:50 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 22086 for review
Message-ID:  <200212090110.gB91AoKq037767@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=22086

Change 22086 by jmallett@jmallett_dalek on 2002/12/08 17:09:49

	Fix 64-bit ELF in bfd.  Tell GCC to use 64-bit longs, etc.

Affected files ...

.. //depot/projects/mips/contrib/gcc/config/mips/freebsd.h#4 edit
.. //depot/projects/mips/gnu/usr.bin/binutils/libbfd/Makefile.mips#6 edit

Differences ...

==== //depot/projects/mips/contrib/gcc/config/mips/freebsd.h#4 (text+ko) ====

@@ -1,5 +1,7 @@
-/* Definitions for PowerPC running FreeBSD using the ELF format
+/* Definitions for MIPS running FreeBSD using the ELF format
    Copyright (C) 2001 Free Software Foundation, Inc.
+
+   Based on definitions for PowerPC running FreeBSD using the ELF format
    Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
 
 This file is part of GNU CC.
@@ -57,6 +59,10 @@
 #undef  TARGET_VERSION
 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/MIPS ELF)");
 
+/* Define the target in terms of a bitmask (see mips.h for MASK_ defns).  */
+#undef	TARGET_ENDIAN_DEFAULT
+#define TARGET_ENDIAN_DEFAULT (MASK_BIG_ENDIAN | MASK_LONG64 | MASK_64BIT)
+
 /* Define the strings to put out for each section in the object file.  */
 #define SBSS_SECTION_ASM_OP	"\t.section .sbss"
 #define TEXT_SECTION_ASM_OP	"\t.text"	/* instructions */

==== //depot/projects/mips/gnu/usr.bin/binutils/libbfd/Makefile.mips#6 (text+ko) ====

@@ -16,16 +16,20 @@
 	elflink.c	\
 	elfxx-mips.c	\
 	elfxx-target.h
-VECS+=	bfd_elf32_bigmips_vec bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec
+VECS+=	bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_bigmips_vec bfd_elf32_littlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec
 
 # XXXMIPS Conditionalie on the MACHINE/MACHINE_ARCH targetry to decide
-# whether elf{32,64}_{big,little}mips vectors.
+# whether elf{32,64}_{big,little}mips vectors, but default to the likely
+# least-common-denominator for machines we'll support - 32-bit ELF.
 .if ${TARGET_ARCH} == "mips"
 CFLAGS+= -DDEFAULT_VECTOR=bfd_elf32_tradbigmips_vec
 .endif
 CFLAGS+= -DHAVE_bfd_elf32_tradbigmips_vec \
+	 -DHAVE_bfd_elf32_tradlittlemips_vec \
 	 -DHAVE_bfd_elf32_bigmips_vec \
 	 -DHAVE_bfd_elf32_littlemips_vec \
+	 -DHAVE_bfd_elf64_tradbigmips_vec \
+	 -DHAVE_bfs_elf64_tradlittlemips_vec \
 	 -DHAVE_bfd_elf64_bigmips_vec \
 	 -DHAVE_bfd_elf64_littlemips_vec
 CLEANFILES+=	elf32-target.h elf64-target.h

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?200212090110.gB91AoKq037767>