summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-30 22:29:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-30 22:29:33 +0000
commit795936581b97df87578dcbb4f515c8dae37258b8 (patch)
tree002b614e1d0467299373d1072ae2e4bd944cb609 /gnu/usr.bin/ld/i386
parentba533813bb2ba3c3d35ced609adf3f525e4cbcbc (diff)
openbsd
Diffstat (limited to 'gnu/usr.bin/ld/i386')
-rw-r--r--gnu/usr.bin/ld/i386/md.c6
-rw-r--r--gnu/usr.bin/ld/i386/md.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/gnu/usr.bin/ld/i386/md.c b/gnu/usr.bin/ld/i386/md.c
index 6f4dfdb475a..029c09235dd 100644
--- a/gnu/usr.bin/ld/i386/md.c
+++ b/gnu/usr.bin/ld/i386/md.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: md.c,v 1.1 1995/10/18 08:40:56 deraadt Exp $
+ * $Id: md.c,v 1.2 1996/09/30 22:29:26 deraadt Exp $
*/
#include <sys/param.h>
@@ -244,7 +244,7 @@ md_init_header(hp, magic, flags)
struct exec *hp;
int magic, flags;
{
-#ifdef NetBSD
+#if defined(__NetBSD__) || defined(__OpenBSD__)
if (oldmagic || magic == QMAGIC)
hp->a_midmag = magic;
else
@@ -287,7 +287,7 @@ void
md_swapout_exec_hdr(h)
struct exec *h;
{
- /* NetBSD: Always leave magic alone */
+ /* NetBSD/OpenBSD: Always leave magic alone */
int skip = 1;
#if 0
if (N_GETMAGIC(*h) == OMAGIC)
diff --git a/gnu/usr.bin/ld/i386/md.h b/gnu/usr.bin/ld/i386/md.h
index 4f5ae3d97f1..b0d25b9fa38 100644
--- a/gnu/usr.bin/ld/i386/md.h
+++ b/gnu/usr.bin/ld/i386/md.h
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: md.h,v 1.1 1995/10/18 08:40:56 deraadt Exp $
+ * $Id: md.h,v 1.2 1996/09/30 22:29:27 deraadt Exp $
*/
@@ -37,13 +37,13 @@
#define MAX_ALIGNMENT (sizeof (long))
-#ifdef NetBSD
+#if defined(__NetBSD__) || defined(__OpenBSD__)
#define PAGSIZ __LDPGSZ
#else
#define PAGSIZ 4096
#endif
-#if defined(NetBSD) || defined(CROSS_LINKER)
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(CROSS_LINKER)
#define N_SET_FLAG(ex,f) (oldmagic || N_GETMAGIC(ex)==QMAGIC ? (0) : \
N_SETMAGIC(ex, \