summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include/param.h
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-09-09 01:21:25 +0000
committerjdp <jdp@FreeBSD.org>1998-09-09 01:21:25 +0000
commit7aadfa5c68916fc245b31ddeccdabc2deecd7c61 (patch)
tree52e3ead876c9fb810a56d0eaa0793ccf853b2efa /sys/alpha/include/param.h
parent5279ba7b15b4567ed68a3eca5a0b3197d8a9f116 (diff)
downloadFreeBSD-src-7aadfa5c68916fc245b31ddeccdabc2deecd7c61.zip
FreeBSD-src-7aadfa5c68916fc245b31ddeccdabc2deecd7c61.tar.gz
Add a new library function getobjformat(). It checks all the
standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an indication of the user's preferred object file format. This consolidates some code that was starting to be duplicated in more and more places. Use the new function in ldconfig. Note: I don't think that gcc should use getobjformat(), even though it could. The compiler should limit itself to functions that are widespread, to ease porting and cross-compilation.
Diffstat (limited to 'sys/alpha/include/param.h')
-rw-r--r--sys/alpha/include/param.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h
index bd5f26f..c07ff73 100644
--- a/sys/alpha/include/param.h
+++ b/sys/alpha/include/param.h
@@ -1,4 +1,4 @@
-/* $Id: param.h,v 1.5 1998/07/12 16:32:10 dfr Exp $ */
+/* $Id: param.h,v 1.6 1998/07/30 08:12:14 dfr Exp $ */
/* From: NetBSD: param.h,v 1.20 1997/09/19 13:52:53 leo Exp */
/*
@@ -56,6 +56,13 @@
#include <machine/cpu.h>
/*
+ * OBJFORMAT_NAMES is a comma-separated list of the object formats
+ * that are supported on the architecture.
+ */
+#define OBJFORMAT_NAMES "elf"
+#define OBJFORMAT_DEFAULT "elf"
+
+/*
* Round p (pointer or byte index) up to a correctly-aligned value for all
* data types (int, long, ...). The result is u_long and must be cast to
* any desired pointer type.
OpenPOWER on IntegriCloud