From ecc51307e301952d74f821e51932ec0d54347337 Mon Sep 17 00:00:00 2001 From: dg Date: Thu, 17 Feb 1994 03:57:00 +0000 Subject: Handling of the netzmagic flag was completely missing after the last update. This completely broke support for all ZMAGIC a.out formats. --- gnu/usr.bin/ld/ld.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gnu/usr.bin/ld/ld.c') diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c index 1d63c82..d3ef9f5 100644 --- a/gnu/usr.bin/ld/ld.c +++ b/gnu/usr.bin/ld/ld.c @@ -32,7 +32,7 @@ static char sccsid[] = "@(#)ld.c 6.10 (Berkeley) 5/22/91"; Set, indirect, and warning symbol features added by Randy Smith. */ /* - * $Id: ld.c,v 1.19 1994/01/19 15:00:27 davidg Exp $ + * $Id: ld.c,v 1.20 1994/02/13 20:41:28 jkh Exp $ */ /* Define how to initialize system-dependent header fields. */ @@ -347,7 +347,6 @@ main(argc, argv) * and initialize the text size accordingly. This depends on the kind * of system and on the output format selected. */ - if (magic == ZMAGIC || magic == QMAGIC) page_align_segments = 1; @@ -755,10 +754,16 @@ decode_option(swt, arg) case 'z': magic = ZMAGIC; oldmagic = 0; +#ifdef __FreeBSD__ + netzmagic = 1; +#endif return; case 'Z': magic = oldmagic = ZMAGIC; +#ifdef __FreeBSD__ + netzmagic = 0; +#endif return; default: -- cgit v1.1