diff options
author | jdp <jdp@FreeBSD.org> | 1998-09-09 01:21:25 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-09-09 01:21:25 +0000 |
commit | 7aadfa5c68916fc245b31ddeccdabc2deecd7c61 (patch) | |
tree | 52e3ead876c9fb810a56d0eaa0793ccf853b2efa /sys/alpha/include/param.h | |
parent | 5279ba7b15b4567ed68a3eca5a0b3197d8a9f116 (diff) | |
download | FreeBSD-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.h | 9 |
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. |