Move .dynstr before _edata to fix image size calculation. The PE
authorpatrick <patrick@openbsd.org>
Thu, 30 Aug 2018 14:39:46 +0000 (14:39 +0000)
committerpatrick <patrick@openbsd.org>
Thu, 30 Aug 2018 14:39:46 +0000 (14:39 +0000)
commitc8f7b19ed60b195050b13e8130561116090adc97
treeeb1d5867662dd1689c90a482406eb343730842e5
parenta9e37dfe64d7b3ab2b26c047801a652d9a309d6e
Move .dynstr before _edata to fix image size calculation.  The PE
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@
sys/arch/arm64/stand/efiboot/ldscript.arm64