summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2017-06-25 06:54:26 +0000
committerotto <otto@openbsd.org>2017-06-25 06:54:26 +0000
commit910b366f1f0fe7a3ee18acf329f2b116d94fa1e5 (patch)
tree3196cfb67f9aed36653ba7c2c348e9ba4fff632d
parentpriv_add_address() is no longer invoked to signal the deletion of the (diff)
downloadwireguard-openbsd-910b366f1f0fe7a3ee18acf329f2b116d94fa1e5.tar.xz
wireguard-openbsd-910b366f1f0fe7a3ee18acf329f2b116d94fa1e5.zip
ldd is more strict wrt semicolons, they can only appear after an
expression line. Removing the extra semicolons makes both ld and ldd accept the link script generated, although ldd produces a wrong object file on arm64; ok kettenis@ deraadt@
-rw-r--r--sys/conf/makegap.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/conf/makegap.sh b/sys/conf/makegap.sh
index d57cbc07002..a640e717087 100644
--- a/sys/conf/makegap.sh
+++ b/sys/conf/makegap.sh
@@ -23,7 +23,7 @@ PHDRS {
SECTIONS {
.text : ALIGN($PAGE_SIZE) {
- LONG($PAD);
+ LONG($PAD)
. += $RANDOM1;
. = ALIGN($PAGE_SIZE);
endboot = .;
@@ -35,14 +35,14 @@ SECTIONS {
} :text =$PAD
.rodata : {
- LONG($PAD);
+ LONG($PAD)
. += $RANDOM3;
. = ALIGN(16);
*(.rodata .rodata.*)
} :rodata =$PAD
.data : {
- LONG($PAD);
+ LONG($PAD)
. = . + $RANDOM4; /* fragment of page */
. = ALIGN(16);
*(.data .data.*)