mirror of
https://github.com/tailix/libkernaux.git
synced 2026-08-15 11:00:07 -04:00
Improve linker scripts
This commit is contained in:
parent
71f4bf793c
commit
3c34afb931
3 changed files with 30 additions and 23 deletions
|
|
@ -1,14 +1,27 @@
|
|||
ENTRY(_start);
|
||||
|
||||
. = 0x80000000;
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x80000000;
|
||||
|
||||
SECTIONS {
|
||||
/* Include entry point at start of binary */
|
||||
.text : ALIGN(4K) {
|
||||
.text : ALIGN(4K)
|
||||
{
|
||||
*(.init);
|
||||
*(.text);
|
||||
}
|
||||
.bss : ALIGN(4K) {
|
||||
|
||||
.rodata : ALIGN(4K)
|
||||
{
|
||||
*(.rodata);
|
||||
}
|
||||
|
||||
.data : ALIGN(4K)
|
||||
{
|
||||
*(.data);
|
||||
}
|
||||
|
||||
.bss : ALIGN(4K)
|
||||
{
|
||||
PROVIDE(bss_start = .);
|
||||
*(.bss);
|
||||
. += 4096;
|
||||
|
|
@ -17,10 +30,4 @@ SECTIONS {
|
|||
PROVIDE(global_pointer = .);
|
||||
PROVIDE(bss_end = .);
|
||||
}
|
||||
.rodata : ALIGN(4K) {
|
||||
*(.rodata);
|
||||
}
|
||||
.data : ALIGN(4K) {
|
||||
*(.data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue