-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add what is needed to build on riscv64. Signed-off-by: Heinrich Schuchardt <[email protected]> This is an update to #420 which brings it in alignment with the current upstream. Signed-off-by: Brian 'redbeard' Harrington <[email protected]>
- Loading branch information
1 parent
5914984
commit 5031a99
Showing
11 changed files
with
168 additions
and
2 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
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,111 @@ | ||
OUTPUT_FORMAT("elf64-littleriscv", "elf64-littleriscv", "elf64-littleriscv") | ||
OUTPUT_ARCH(riscv) | ||
ENTRY(_start) | ||
SECTIONS | ||
{ | ||
.text 0x0 : { | ||
_text = .; | ||
*(.text.head) | ||
*(.text) | ||
*(.text.*) | ||
*(.gnu.linkonce.t.*) | ||
_evtext = .; | ||
. = ALIGN(4096); | ||
} | ||
_etext = .; | ||
_text_size = . - _text; | ||
_text_vsize = _evtext - _text; | ||
|
||
. = ALIGN(4096); | ||
.data : | ||
{ | ||
_data = .; | ||
*(.sdata) | ||
*(.data) | ||
*(.data1) | ||
*(.data.*) | ||
*(.got.plt) | ||
*(.got) | ||
|
||
*(.dynamic) | ||
|
||
/* 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) | ||
_evdata = .; | ||
. = ALIGN(4096); | ||
_bss_end = .; | ||
} | ||
_edata = .; | ||
_data_vsize = _evdata - _data; | ||
_data_size = . - _data; | ||
|
||
/* | ||
* Note that _sbat must be the beginning of the data, and _esbat must be the | ||
* end and must be before any section padding. The sbat self-check uses | ||
* _esbat to find the bounds of the data, and if the padding is included, the | ||
* CSV parser (correctly) rejects the data as having NUL values in one of the | ||
* required columns. | ||
*/ | ||
. = ALIGN(4096); | ||
.sbat : | ||
{ | ||
_sbat = .; | ||
*(.sbat) | ||
*(.sbat.*) | ||
_esbat = .; | ||
. = ALIGN(4096); | ||
_epsbat = .; | ||
} | ||
_sbat_size = _epsbat - _sbat; | ||
_sbat_vsize = _esbat - _sbat; | ||
|
||
. = ALIGN(4096); | ||
.rodata : | ||
{ | ||
_rodata = .; | ||
*(.rodata*) | ||
*(.srodata) | ||
. = ALIGN(16); | ||
*(.note.gnu.build-id) | ||
. = ALIGN(4096); | ||
*(.vendor_cert) | ||
*(.data.ident) | ||
. = ALIGN(4096); | ||
} | ||
. = ALIGN(4096); | ||
.rela : | ||
{ | ||
*(.rela.dyn) | ||
*(.rela.plt) | ||
*(.rela.got) | ||
*(.rela.data) | ||
*(.rela.data*) | ||
} | ||
. = ALIGN(4096); | ||
.dyn : | ||
{ | ||
*(.dynsym) | ||
*(.dynstr) | ||
_evrodata = .; | ||
. = ALIGN(4096); | ||
} | ||
_erodata = .; | ||
_rodata_size = . - _rodata; | ||
_rodata_vsize = _evrodata - _rodata; | ||
_alldata_size = . - _data; | ||
|
||
/DISCARD/ : | ||
{ | ||
*(.rel.reloc) | ||
*(.eh_frame) | ||
*(.note.GNU-stack) | ||
} | ||
.comment 0 : { *(.comment) } | ||
} |
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
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