diff options
author | 1997-04-10 10:50:29 +0000 | |
---|---|---|
committer | 1997-04-10 10:50:29 +0000 | |
commit | 9a1acbb650c2ef63ea4201fa0e9be577c1bdd392 (patch) | |
tree | af186c111c87baa338be2187bb8082e77b661cfb | |
parent | if generating obj@ links, check if the existing obj@ link points to the (diff) | |
download | wireguard-openbsd-9a1acbb650c2ef63ea4201fa0e9be577c1bdd392.tar.xz wireguard-openbsd-9a1acbb650c2ef63ea4201fa0e9be577c1bdd392.zip |
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; |