From 0d6de7cdb157115ed482a2de1b4661a50ad1182a Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 16 Nov 1993 00:42:57 +0000 Subject: Swapped meaning of -Z and -z options. On any other system -z means "standard" ZMAGIC format and is the default. Therefore I've made -z be standard ZMAGIC and -Z be ZMAGIC stored in the new a_midmag format. The "standard" ZMAGIC format is now the default as well. --- gnu/usr.bin/ld/ld.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 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 5aa4234..64c0241 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.5 1993/11/09 04:18:56 paul Exp $ + * $Id: ld.c,v 1.6 1993/11/15 20:58:05 paul Exp $ */ /* Define how to initialize system-dependent header fields. */ @@ -173,6 +173,7 @@ main(argc, argv) T_flag_specified = 0; Tdata_flag_specified = 0; magic = DEFAULT_MAGIC; + oldmagic = DEFAULT_MAGIC; make_executable = 1; force_executable = 0; link_mode = DYNAMIC; @@ -543,10 +544,11 @@ decode_option(swt, arg) case 'Q': magic = oldmagic = QMAGIC; return; +#endif case 'Z': - magic = oldmagic = ZMAGIC; + magic = ZMAGIC; + oldmagic = 0; return; -#endif case 'o': output_filename = arg; @@ -608,7 +610,7 @@ decode_option(swt, arg) return; case 'z': - magic = ZMAGIC; + oldmagic = magic = ZMAGIC; return; default: -- cgit v1.1