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 :
{
_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))
/* Quicklogic EOS-S3 interrupt vector table uses section name "isr_vector" */
/* ARM table has to be placed at start */
KEEP(*(.isr_vector))
/* 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 = .;