diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-01-22 01:38:26 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-01-22 01:38:26 +0000 |
commit | 04e0ac7fe802772df1b18499886294eff0823fbd (patch) | |
tree | cbfbc94433792ce7b5744d389950b87ed141152d /sys | |
parent | fd2dbb2a985b7ad84b5cddd16df0e5f341a6f368 (diff) |
Mark the .peheader section as "a". Makes it possible to link with lld.
ok guenther@, jsg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm64/stand/efiboot/start.S | 4 | ||||
-rw-r--r-- | sys/arch/armv7/stand/efiboot/start.S | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm64/stand/efiboot/start.S b/sys/arch/arm64/stand/efiboot/start.S index cebef49de0d..0a4e02bdb9c 100644 --- a/sys/arch/arm64/stand/efiboot/start.S +++ b/sys/arch/arm64/stand/efiboot/start.S @@ -1,4 +1,4 @@ -/* $OpenBSD: start.S,v 1.2 2016/12/18 14:40:25 patrick Exp $ */ +/* $OpenBSD: start.S,v 1.3 2017/01/22 01:38:25 kettenis Exp $ */ /*- * Copyright (c) 2014 Andrew Turner * All rights reserved. @@ -41,7 +41,7 @@ #define IMAGE_SCN_MEM_EXECUTE 0x20000000 #define IMAGE_SCN_MEM_READ 0x40000000 - .section .peheader + .section .peheader, "a" efi_start: /* The MS-DOS Stub, only used to get the offset of the COFF header */ .ascii "MZ" diff --git a/sys/arch/armv7/stand/efiboot/start.S b/sys/arch/armv7/stand/efiboot/start.S index 455da6f6520..17a199e7f4f 100644 --- a/sys/arch/armv7/stand/efiboot/start.S +++ b/sys/arch/armv7/stand/efiboot/start.S @@ -42,7 +42,7 @@ #define IMAGE_SCN_MEM_EXECUTE 0x20000000 #define IMAGE_SCN_MEM_READ 0x40000000 - .section .peheader + .section .peheader, "a" efi_start: /* The MS-DOS Stub, only used to get the offset of the COFF header */ .ascii "MZ" |