From: otto Date: Sun, 25 Jun 2017 06:54:26 +0000 (+0000) Subject: ldd is more strict wrt semicolons, they can only appear after an X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=910b366f1f0fe7a3ee18acf329f2b116d94fa1e5;p=openbsd 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@ --- 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.*)