-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for 64-bit ARM (AArch64)
This adds support for building the shim for a 64-bit ARM UEFI environment. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
- Loading branch information
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64") | ||
OUTPUT_ARCH(aarch64) | ||
ENTRY(_start) | ||
SECTIONS | ||
{ | ||
.text 0x0 : { | ||
*(.text.head) | ||
*(.text) | ||
*(.text.*) | ||
*(.gnu.linkonce.t.*) | ||
*(.srodata) | ||
*(.rodata*) | ||
. = ALIGN(16); | ||
_etext = .; | ||
} | ||
.dynamic : { *(.dynamic) } | ||
.data : | ||
{ | ||
*(.sdata) | ||
*(.data) | ||
*(.data1) | ||
*(.data.*) | ||
*(.got.plt) | ||
*(.got) | ||
|
||
/* the EFI loader doesn't seem to like a .bss section, so we stick | ||
it all into .data: */ | ||
. = ALIGN(16); | ||
_bss = .; | ||
*(.sbss) | ||
*(.scommon) | ||
*(.dynbss) | ||
*(.bss) | ||
*(COMMON) | ||
. = ALIGN(16); | ||
_bss_end = .; | ||
} | ||
|
||
. = ALIGN(4096); | ||
.vendor_cert : | ||
{ | ||
*(.vendor_cert) | ||
} | ||
. = ALIGN(4096); | ||
|
||
.rela.dyn : { *(.rela.dyn) } | ||
.rela.plt : { *(.rela.plt) } | ||
.rela.got : { *(.rela.got) } | ||
.rela.data : { *(.rela.data) *(.rela.data*) } | ||
_edata = .; | ||
_data_size = . - _etext; | ||
|
||
. = ALIGN(4096); | ||
.dynsym : { *(.dynsym) } | ||
. = ALIGN(4096); | ||
.dynstr : { *(.dynstr) } | ||
. = ALIGN(4096); | ||
/DISCARD/ : | ||
{ | ||
*(.rel.reloc) | ||
*(.eh_frame) | ||
*(.note.GNU-stack) | ||
} | ||
.comment 0 : { *(.comment) } | ||
} |