From 910b366f1f0fe7a3ee18acf329f2b116d94fa1e5 Mon Sep 17 00:00:00 2001 From: otto Date: Sun, 25 Jun 2017 06:54:26 +0000 Subject: [PATCH] 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@ --- sys/conf/makegap.sh | 6 +++--- 1 file 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.*) -- 2.20.1