Bios linker edits to prevent inappropriate optimisation
This commit is contained in:
parent
3fb99b7d33
commit
d2d82dacf2
|
@ -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 New Issue