From: deraadt Date: Sun, 25 Jun 2017 17:14:24 +0000 (+0000) Subject: lld's linker-script parser has to be fixed to accept ; after LONG() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e4fef933af4027118fc36548c6eb2c0f2381a798;p=openbsd 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) --- 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.*)