software/bios: place eos s3 interrupt table at .text start when present

This commit is contained in:
Ilia Sergachev 2022-01-15 17:15:25 +01:00
parent 15a927bcc8
commit 00dfaa1740
1 changed files with 8 additions and 5 deletions

View File

@ -8,11 +8,14 @@ SECTIONS
.text : .text :
{ {
_ftext = .; _ftext = .;
/* Make sure crt0 files come first, and they, and the isr */ /* Quicklogic EOS-S3 interrupt vector table uses section name "isr_vector" */
/* don't get disposed of by greedy optimisation */ /* ARM table has to be placed at start */
*crt0*(.text) KEEP(*(.isr_vector))
KEEP(*crt0*(.text)) /* Make sure crt0 files come first, and they, and the isr */
KEEP(*(.text.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 = .;