diff options
-rw-r--r-- | sys/lib/libsa/exec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/lib/libsa/exec.c b/sys/lib/libsa/exec.c index c712720d652..6ab8a44ec43 100644 --- a/sys/lib/libsa/exec.c +++ b/sys/lib/libsa/exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.c,v 1.13 1997/03/31 04:20:08 weingart Exp $ */ +/* $OpenBSD: exec.c,v 1.14 1997/03/31 04:57:36 weingart Exp $ */ /* $NetBSD: exec.c,v 1.15 1996/10/13 02:29:01 christos Exp $ */ /*- @@ -150,6 +150,11 @@ exec(path, loadaddr, howto) /* and that many bytes of string table */ printf("+%d]", i); + +#define round_to_size(x) \ + (((int)(x) + sizeof(int) - 1) & ~(sizeof(int) - 1)) + esym = (char *)round_to_size(addr - (char *)loadaddr); +#undef round_to_size }else{ ssym = 0; esym = 0; @@ -157,11 +162,6 @@ exec(path, loadaddr, howto) close(io); -#define round_to_size(x) \ - (((int)(x) + sizeof(int) - 1) & ~(sizeof(int) - 1)) - esym = (char *)round_to_size(addr - (char *)loadaddr); -#undef round_to_size - /* and note the end address of all this */ printf(" total=0x%lx", (u_long)addr); |