diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-10 10:50:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-10 10:50:30 +0000 |
commit | 2c4d7d527a77abaa0f0cb28919dd241cc745358e (patch) | |
tree | 7254d97bce28d2abef4befb46013f9c929e14194 | |
parent | 5776ce82f92d17b6c72e7054bbb11ec8f3396afe (diff) |
calc page alignment correctly for -p; pk@netbsd
-rw-r--r-- | gnu/usr.bin/ld/ld.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c index 0b282ee4ada..439c758e9d1 100644 --- a/gnu/usr.bin/ld/ld.c +++ b/gnu/usr.bin/ld/ld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ld.c,v 1.7 1997/04/09 02:08:27 deraadt Exp $ */ +/* $OpenBSD: ld.c,v 1.8 1997/04/10 10:50:29 deraadt Exp $ */ /*- * This code is derived from software copyrighted by the Free Software @@ -1695,8 +1695,7 @@ digest_symbols() */ if (page_align_segments || page_align_data) { - int text_end = text_size + N_TXTOFF(outheader); - text_pad = PALIGN(text_end, page_size) - text_end; + text_pad = PALIGN(text_size, page_size) - text_size; text_size += text_pad; } outheader.a_text = text_size; |