Merge pull request #513 from mubes/bios_linker

Bios linker edits to prevent inappropriate optimisation
This commit is contained in:
enjoy-digital 2020-05-13 07:52:37 +02:00 committed by GitHub
commit b4e349eb49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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