Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/elf2aout Make this also work for PowerPC targets.
details: https://anonhg.NetBSD.org/src/rev/f317a397fb4e
branches: trunk
changeset: 480321:f317a397fb4e
user: is <is%NetBSD.org@localhost>
date: Sun Jan 09 11:26:01 2000 +0000
description:
Make this also work for PowerPC targets.
diffstat:
usr.bin/elf2aout/elf2aout.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 664fdfaec368 -r f317a397fb4e usr.bin/elf2aout/elf2aout.c
--- a/usr.bin/elf2aout/elf2aout.c Sun Jan 09 10:08:45 2000 +0000
+++ b/usr.bin/elf2aout/elf2aout.c Sun Jan 09 11:26:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elf2aout.c,v 1.7 1999/11/02 21:13:17 drochner Exp $ */
+/* $NetBSD: elf2aout.c,v 1.8 2000/01/09 11:26:01 is Exp $ */
/*
* Copyright (c) 1995
@@ -210,6 +210,10 @@
/* We now have enough information to cons up an a.out header... */
aex.a_midmag = htonl((symflag << 26) | (MID_PMAX << 16) | OMAGIC);
+ if (ex.e_machine == Elf_em_ppc)
+ aex.a_midmag = htonl((symflag << 26) | (MID_POWERPC << 16)
+ | OMAGIC);
+
aex.a_text = text.len;
aex.a_data = data.len;
aex.a_bss = bss.len;
Home |
Main Index |
Thread Index |
Old Index