mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #513 from mubes/bios_linker
Bios linker edits to prevent inappropriate optimisation
This commit is contained in:
commit
b4e349eb49
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,12 @@ SECTIONS
|
|||
.text :
|
||||
{
|
||||
_ftext = .;
|
||||
/* Make sure crt0 files come first, and they, and the isr */
|
||||
/* don't get disposed of by greedy optimisation */
|
||||
*crt0*(.text)
|
||||
KEEP(*crt0*(.text))
|
||||
KEEP(*(.text.isr))
|
||||
|
||||
*(.text .stub .text.* .gnu.linkonce.t.*)
|
||||
_etext = .;
|
||||
} > rom
|
||||
|
|
Loading…
Reference in a new issue