diff options
author | Paul Richards <paul@FreeBSD.org> | 1993-11-15 20:58:20 +0000 |
---|---|---|
committer | Paul Richards <paul@FreeBSD.org> | 1993-11-15 20:58:20 +0000 |
commit | 760e925fe960f5846d4d97816130582c3b05cf37 (patch) | |
tree | 623f0609aac415bd66e95cbaf0f1aff4e6f2ed00 /libexec | |
parent | 1e064bd4be79c7e4bbe6465ea4227df36dee83f2 (diff) | |
download | src-760e925fe960f5846d4d97816130582c3b05cf37.tar.gz src-760e925fe960f5846d4d97816130582c3b05cf37.zip |
Incorporated fixes from Paul to make -Z option work. Emits old-style
ZMAGIC magic numbers in a long.
Notes
Notes:
svn path=/head/; revision=767
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-aout/i386/md.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/rtld-aout/i386/md.c b/libexec/rtld-aout/i386/md.c index bfe12e92c11d..c0b7eba7c8d2 100644 --- a/libexec/rtld-aout/i386/md.c +++ b/libexec/rtld-aout/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.2 1993/10/27 00:54:58 pk Exp $ + * $Id: md.c,v 1.2 1993/11/09 04:19:16 paul Exp $ */ #include <sys/param.h> @@ -96,7 +96,10 @@ md_init_header(hp, magic, flags) struct exec *hp; int magic, flags; { - N_SETMAGIC((*hp), magic, MID_I386, flags); + if (oldmagic) + hp->a_midmag = oldmagic; + else + N_SETMAGIC((*hp), magic, MID_I386, flags); /* TEXT_START depends on the value of outheader.a_entry. */ if (!(link_mode & SHAREABLE)) /*WAS: if (entry_symbol) */ |