Bios linker edits to prevent inappropriate optimisation

This commit is contained in:
Dave Marples 2020-05-12 23:32:49 +01:00
parent 3fb99b7d33
commit d2d82dacf2
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ SECTIONS
.text : .text :
{ {
_ftext = .; _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.*) *(.text .stub .text.* .gnu.linkonce.t.*)
_etext = .; _etext = .;
} > rom } > rom