header contains an image size field that is calculated using the
difference between the start of the header and edata. Since we
copy out .dynstr into the EFI binary, make sure that .dynstr is
before edata so that it's included in the image size. This makes
it consistent with efiboot on armv7.
ok kettenis@
-/* $OpenBSD: ldscript.arm64,v 1.1 2016/12/17 23:38:33 patrick Exp $ */
+/* $OpenBSD: ldscript.arm64,v 1.2 2018/08/30 14:39:46 patrick Exp $ */
/*
OUTPUT_FORMAT("elf64-aarch64-freebsd", "elf64-aarch64-freebsd", "elf64-aarch64-freebsd")
*/
.reloc : { *(.reloc) }
. = ALIGN(16);
.dynsym : { *(.dynsym) }
+ .dynstr : { *(.dynstr) }
_edata = .;
/* Unused sections */
- .dynstr : { *(.dynstr) }
.hash : { *(.hash) }
}