From e4fef933af4027118fc36548c6eb2c0f2381a798 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 25 Jun 2017 17:14:24 +0000 Subject: [PATCH] lld's linker-script parser has to be fixed to accept ; after LONG() directives. binutils requires it, and binutils is the authoritative parser in this regard. This means arm64 +lld remains broken (but all the other architectures work) --- 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 a640e717087..d57cbc07002 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