[fix][startup] fix __Vectors section

This commit is contained in:
jzlv 2022-12-02 20:55:33 +08:00
parent 7e1e3a0927
commit fcf07aa3a9
8 changed files with 8 additions and 4 deletions

View File

@ -38,6 +38,7 @@ SECTIONS
__text_code_start__ = .;
KEEP (*(SORT_NONE(.init)))
KEEP (*(SORT_NONE(.vector)))
*(.text)
*(.text.*)

View File

@ -38,6 +38,7 @@ SECTIONS
__text_code_start__ = .;
KEEP (*(SORT_NONE(.init)))
KEEP (*(SORT_NONE(.vector)))
*(.text)
*(.text.*)

View File

@ -38,6 +38,7 @@ SECTIONS
__text_code_start__ = .;
KEEP (*(SORT_NONE(.init)))
KEEP (*(SORT_NONE(.vector)))
*(.text)
*(.text.*)

View File

@ -39,6 +39,7 @@ SECTIONS
__text_code_start__ = .;
KEEP (*(SORT_NONE(.init)))
KEEP (*(SORT_NONE(.vector)))
*(.text)
*(.text.*)

View File

@ -29,7 +29,7 @@ struct bflb_irq_info_s g_irqvector[CONFIG_IRQ_NUM];
extern void default_trap_handler(void);
extern void default_interrupt_handler(void);
const pFunc __Vectors[] __attribute__((section(".init"), aligned(64))) = {
const pFunc __Vectors[] __attribute__((section(".vector"), aligned(64))) = {
default_interrupt_handler, /* */
default_interrupt_handler, /* */
default_interrupt_handler, /* */

View File

@ -31,7 +31,7 @@ struct bflb_irq_info_s g_irqvector[CONFIG_IRQ_NUM];
extern void default_trap_handler(void);
extern void default_interrupt_handler(void);
const pFunc __Vectors[] __attribute__((section(".init"), aligned(64))) = {
const pFunc __Vectors[] __attribute__((section(".vector"), aligned(64))) = {
default_interrupt_handler, /* */
default_interrupt_handler, /* */
default_interrupt_handler, /* */

View File

@ -29,7 +29,7 @@ struct bflb_irq_info_s g_irqvector[CONFIG_IRQ_NUM];
extern void default_trap_handler(void);
extern void default_interrupt_handler(void);
const pFunc __Vectors[] __attribute__((section(".init"), aligned(64))) = {
const pFunc __Vectors[] __attribute__((section(".vector"), aligned(64))) = {
default_interrupt_handler, /* */
default_interrupt_handler, /* */
default_interrupt_handler, /* */

View File

@ -31,7 +31,7 @@ struct bflb_irq_info_s g_irqvector[CONFIG_IRQ_NUM];
extern void default_trap_handler(void);
extern void default_interrupt_handler(void);
const pFunc __Vectors[] __attribute__((section(".init"), aligned(64))) = {
const pFunc __Vectors[] __attribute__((section(".vector"), aligned(64))) = {
default_interrupt_handler, /* */
default_interrupt_handler, /* */
default_interrupt_handler, /* */