1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00

Specified segment in linker script

This commit is contained in:
bzt 2020-01-16 18:51:40 +01:00
parent 33eead3386
commit 2f92da2f57
4 changed files with 20 additions and 2 deletions

View file

@ -436,3 +436,10 @@ initrd-t SHA-XOR-CBC-vel, amit minden betöltő implementációnak támogatnia k
esetén támogatott).
Ez minden, remélem hasznososnak találod!
Hozzájárulások
--------------
Szeretnék külön köszönetet mondani [Valentin Anger](https://gitlab.com/SyrupThinker)-nek, amiért alaposan letesztelte a
kódot számtalan igazi vason is.

View file

@ -437,3 +437,10 @@ regenerate and encrypt the initrd image with SHA-XOR-CBC cipher, known to all th
(Note: encryption is only supported for FS/Z initrd images.)
That's all, hope it will be useful!
Contributors
------------
I'd like to say special thanks to [Valentin Anger](https://gitlab.com/SyrupThinker) for throughfully testing this
code on many different real hardware.

Binary file not shown.

View file

@ -30,6 +30,10 @@
mmio = 0xfffffffff8000000;
fb = 0xfffffffffc000000;
PHDRS
{
boot PT_LOAD; /* one single loadable segment */
}
SECTIONS
{
. = 0xffffffffffe00000;
@ -39,12 +43,12 @@ SECTIONS
KEEP(*(.text.boot)) *(.text .text.*) /* code */
*(.rodata .rodata.*) /* data */
*(.data .data.*)
}
} :boot
.bss (NOLOAD) : { /* bss */
. = ALIGN(16);
*(.bss .bss.*)
*(COMMON)
}
} :boot
/DISCARD/ : { *(.eh_frame) *(.comment) }
}