diff options
author | Tobias Weingartner <weingart@cvs.openbsd.org> | 1997-03-31 04:57:37 +0000 |
---|---|---|
committer | Tobias Weingartner <weingart@cvs.openbsd.org> | 1997-03-31 04:57:37 +0000 |
commit | 7a9b70598267acb9fa76b3df3e4150d1749e909f (patch) | |
tree | dc08bfd82d5a5daafbe75f8b9ee1d01e7214914d /sys/lib/libsa/exec.c | |
parent | 86c7ba7f653f927f6ed0e92438088ba56f2782f1 (diff) |
Fix for my fix...
Diffstat (limited to 'sys/lib/libsa/exec.c')
-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); |