Provide _LP64 definition if we are generating LP64 binaries.

This commit is contained in:
eeh 2002-05-03 00:06:55 +00:00
parent 5173cfae8a
commit be9ab3e5db
6 changed files with 23 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: std.alpha,v 1.19 2000/06/22 20:27:49 fvdl Exp $ # $NetBSD: std.alpha,v 1.20 2002/05/03 00:06:55 eeh Exp $
# #
# Standard/required configuration info for NetBSD/alpha. # Standard/required configuration info for NetBSD/alpha.
@ -10,3 +10,4 @@ machine alpha
options EXEC_ECOFF # (native) ECOFF binary support options EXEC_ECOFF # (native) ECOFF binary support
options EXEC_ELF64 # (native) ELF64 binary support options EXEC_ELF64 # (native) ELF64 binary support
options EXEC_SCRIPT # shell script support options EXEC_SCRIPT # shell script support
options _LP64 # Always define this since we're 64-bit.

View File

@ -1,4 +1,4 @@
/* $NetBSD: types.h,v 1.22 2002/02/28 03:17:24 simonb Exp $ */ /* $NetBSD: types.h,v 1.23 2002/05/03 00:06:56 eeh Exp $ */
/*- /*-
* Copyright (c) 1990, 1993 * Copyright (c) 1990, 1993
@ -49,6 +49,9 @@ typedef struct label_t {
/* NB: This should probably be if defined(_KERNEL) */ /* NB: This should probably be if defined(_KERNEL) */
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) #if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
#ifndef _LP64
#define _LP64 1
#endif
typedef unsigned long paddr_t; typedef unsigned long paddr_t;
typedef unsigned long psize_t; typedef unsigned long psize_t;
typedef unsigned long vaddr_t; typedef unsigned long vaddr_t;

View File

@ -1,4 +1,4 @@
/* $NetBSD: types.h,v 1.19 2002/02/28 03:17:31 simonb Exp $ */ /* $NetBSD: types.h,v 1.20 2002/05/03 00:06:56 eeh Exp $ */
/* /*
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
@ -79,6 +79,9 @@ typedef unsigned long int vaddr_t;
typedef vaddr_t vsize_t; typedef vaddr_t vsize_t;
#ifdef SUN4U #ifdef SUN4U
#ifdef __arch64__ #ifdef __arch64__
#ifndef _LP64
#define _LP64 1 /* Should this be 64? */
#endif
typedef unsigned long int paddr_t; typedef unsigned long int paddr_t;
#else #else
/* LONGLONG */ /* LONGLONG */

View File

@ -1,4 +1,4 @@
# $NetBSD: std.x86_64,v 1.2 2001/11/20 12:56:43 lukem Exp $ # $NetBSD: std.x86_64,v 1.3 2002/05/03 00:06:56 eeh Exp $
# #
# standard, required NetBSD/x86_64 'options' # standard, required NetBSD/x86_64 'options'
@ -6,3 +6,4 @@ machine x86_64
options EXEC_ELF64 # exec ELF binaries options EXEC_ELF64 # exec ELF binaries
options EXEC_SCRIPT # exec #! scripts options EXEC_SCRIPT # exec #! scripts
options _LP64 # This is a 64-bit architecture

View File

@ -1,4 +1,4 @@
/* $NetBSD: types.h,v 1.2 2002/02/28 03:17:32 simonb Exp $ */ /* $NetBSD: types.h,v 1.3 2002/05/03 00:06:56 eeh Exp $ */
/*- /*-
* Copyright (c) 1990 The Regents of the University of California. * Copyright (c) 1990 The Regents of the University of California.
@ -49,6 +49,9 @@ typedef struct label_t {
/* NB: This should probably be if defined(_KERNEL) */ /* NB: This should probably be if defined(_KERNEL) */
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) #if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
#ifndef _LP64
#define _LP64 1
#endif
typedef unsigned long paddr_t; typedef unsigned long paddr_t;
typedef unsigned long psize_t; typedef unsigned long psize_t;
typedef unsigned long vaddr_t; typedef unsigned long vaddr_t;

View File

@ -1,4 +1,4 @@
# $NetBSD: files,v 1.524 2002/05/02 17:55:48 thorpej Exp $ # $NetBSD: files,v 1.525 2002/05/03 00:06:56 eeh Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93 # @(#)files.newconf 7.5 (Berkeley) 5/10/93
@ -41,6 +41,12 @@ defflag opt_execfmt.h EXEC_AOUT EXEC_COFF EXEC_ECOFF EXEC_ELF32
EXEC_ELF64 EXEC_MACHO EXEC_SCRIPT EXEC_ELF64 EXEC_MACHO EXEC_SCRIPT
EXEC_ELF_NOTELESS EXEC_ELF_NOTELESS
# DO NOT defflag the _LP64. There is no point. LP64 and ILP32 should
# be completely different object code formats and require a complete
# recompile anyway.
#
#no defflag _LP64
# compatibility options # compatibility options
# #
defflag COMPAT_FREEBSD defflag COMPAT_FREEBSD