diff options
author | Paul Richards <paul@FreeBSD.org> | 1993-11-16 00:42:57 +0000 |
---|---|---|
committer | Paul Richards <paul@FreeBSD.org> | 1993-11-16 00:42:57 +0000 |
commit | 8d29dc5c6fede64fdf293dc19da9c7e03e0074f3 (patch) | |
tree | bd7f805979ee78965391de15b60de9442362aaed /gnu | |
parent | f4165dc353495acb91e959bfc785f2827cbdccf2 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=769
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/ld/ld.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c index 5aa42345a4dc..64c0241e8d1f 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: |