diff options
author | paul <paul@FreeBSD.org> | 1993-11-15 20:58:20 +0000 |
---|---|---|
committer | paul <paul@FreeBSD.org> | 1993-11-15 20:58:20 +0000 |
commit | 3eb63c406da0d24b4a3aa349bb7f7571bbf9db52 (patch) | |
tree | 623f0609aac415bd66e95cbaf0f1aff4e6f2ed00 /gnu/usr.bin/ld/ld.c | |
parent | 142d081759146fadce76c2ade29d331efb362085 (diff) | |
download | FreeBSD-src-3eb63c406da0d24b4a3aa349bb7f7571bbf9db52.zip FreeBSD-src-3eb63c406da0d24b4a3aa349bb7f7571bbf9db52.tar.gz |
Incorporated fixes from Paul to make -Z option work. Emits old-style
ZMAGIC magic numbers in a long.
Diffstat (limited to 'gnu/usr.bin/ld/ld.c')
-rw-r--r-- | gnu/usr.bin/ld/ld.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c index 00de228..5aa4234 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.11 1993/11/05 12:47:11 pk Exp $ + * $Id: ld.c,v 1.5 1993/11/09 04:18:56 paul Exp $ */ /* Define how to initialize system-dependent header fields. */ @@ -1938,7 +1938,8 @@ write_header () { int flags = (rrs_section_type == RRS_FULL) ? EX_DYNAMIC : 0; - N_SET_FLAG (outheader, flags); + if (!oldmagic) + N_SET_FLAG (outheader, flags); outheader.a_text = text_size; outheader.a_data = data_size; outheader.a_bss = bss_size; |