diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-10-09 20:26:58 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-10-09 20:26:58 +0000 |
commit | 2ced20bb78be745adf16d007a60bff20a8fadf99 (patch) | |
tree | 461f81ab0bf942e459a8aa76eb1f5b9aadc1ea19 /usr.bin/nm/byte.c | |
parent | a4ed20475a9978c9bb289ccf04dfe087ff4cda69 (diff) |
move out elf code into elf.c and generate 32 and 64 versions of it;
allow operation on size-mixed host-target as well as ensianess for
both a.out and elf (though a.out 64bit probably does not exist ;)
tested on hppa-sparc64-i386-vax intermixen
Diffstat (limited to 'usr.bin/nm/byte.c')
-rw-r--r-- | usr.bin/nm/byte.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/nm/byte.c b/usr.bin/nm/byte.c index ab4d37ebfe9..b5556088bbf 100644 --- a/usr.bin/nm/byte.c +++ b/usr.bin/nm/byte.c @@ -1,4 +1,4 @@ -/* $OpenBSD: byte.c,v 1.5 2004/01/28 18:05:10 deraadt Exp $ */ +/* $OpenBSD: byte.c,v 1.6 2004/10/09 20:26:57 mickey Exp $ */ /* * Copyright (c) 1999 * Marc Espie. All rights reserved. @@ -64,7 +64,7 @@ fix_header_order(struct exec *h) } static long -fix_long_order(long l, int mid) +fix_32_order(u_int32_t l, int mid) { if (byte_sex(mid) != BYTE_ORDER) return swap32(l); |