Added basic exception handling to the stm32 linker scripts. Thanks Mike Smith!
This commit is contained in:
parent
4e26104c18
commit
4fbd42148a
@ -38,36 +38,36 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.rodata*) /* Read-only data */
|
*(.rodata*) /* Read-only data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
. = ORIGIN(ram);
|
/* exception index - required due to libgcc.a issuing /0 exceptions */
|
||||||
|
__exidx_start = .;
|
||||||
|
.ARM.exidx : {
|
||||||
|
*(.ARM.exidx*)
|
||||||
|
} > rom
|
||||||
|
__exidx_end = .;
|
||||||
|
|
||||||
.data : AT(_etext) {
|
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_edata = .;
|
_edata = .;
|
||||||
} >ram
|
} >ram AT >rom
|
||||||
|
|
||||||
.bss : {
|
.bss : {
|
||||||
*(.bss*) /* Read-write zero initialized data */
|
*(.bss*) /* Read-write zero initialized data */
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_ebss = .;
|
_ebss = .;
|
||||||
} >ram AT >rom
|
} >ram
|
||||||
|
|
||||||
/*
|
/* exception unwind data - required due to libgcc.a issuing /0 exceptions */
|
||||||
* The .eh_frame section appears to be used for C++ exception handling.
|
.ARM.extab : {
|
||||||
* You may need to fix this if you're using C++.
|
*(.ARM.extab*)
|
||||||
*/
|
} >ram
|
||||||
/DISCARD/ : { *(.eh_frame) }
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Another section used by C++ stuff, appears when using newlib with
|
|
||||||
* 64bit (long long) printf support - discard it for now.
|
|
||||||
*/
|
|
||||||
/DISCARD/ : { *(.ARM.exidx) }
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
end = .;
|
end = .;
|
||||||
|
@ -38,36 +38,36 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.rodata*) /* Read-only data */
|
*(.rodata*) /* Read-only data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
. = ORIGIN(ram);
|
/* exception index - required due to libgcc.a issuing /0 exceptions */
|
||||||
|
__exidx_start = .;
|
||||||
|
.ARM.exidx : {
|
||||||
|
*(.ARM.exidx*)
|
||||||
|
} > rom
|
||||||
|
__exidx_end = .;
|
||||||
|
|
||||||
.data : AT(_etext) {
|
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_edata = .;
|
_edata = .;
|
||||||
} >ram
|
} >ram AT >rom
|
||||||
|
|
||||||
.bss : {
|
.bss : {
|
||||||
*(.bss*) /* Read-write zero initialized data */
|
*(.bss*) /* Read-write zero initialized data */
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_ebss = .;
|
_ebss = .;
|
||||||
} >ram AT >rom
|
} >ram
|
||||||
|
|
||||||
/*
|
/* exception unwind data - required due to libgcc.a issuing /0 exceptions */
|
||||||
* The .eh_frame section appears to be used for C++ exception handling.
|
.ARM.extab : {
|
||||||
* You may need to fix this if you're using C++.
|
*(.ARM.extab*)
|
||||||
*/
|
} >ram
|
||||||
/DISCARD/ : { *(.eh_frame) }
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Another section used by C++ stuff, appears when using newlib with
|
|
||||||
* 64bit (long long) printf support - discard it for now.
|
|
||||||
*/
|
|
||||||
/DISCARD/ : { *(.ARM.exidx) }
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
end = .;
|
end = .;
|
||||||
|
@ -38,36 +38,36 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.rodata*) /* Read-only data */
|
*(.rodata*) /* Read-only data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
. = ORIGIN(ram);
|
/* exception index - required due to libgcc.a issuing /0 exceptions */
|
||||||
|
__exidx_start = .;
|
||||||
|
.ARM.exidx : {
|
||||||
|
*(.ARM.exidx*)
|
||||||
|
} > rom
|
||||||
|
__exidx_end = .;
|
||||||
|
|
||||||
.data : AT(_etext) {
|
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_edata = .;
|
_edata = .;
|
||||||
} >ram
|
} >ram AT >rom
|
||||||
|
|
||||||
.bss : {
|
.bss : {
|
||||||
*(.bss*) /* Read-write zero initialized data */
|
*(.bss*) /* Read-write zero initialized data */
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_ebss = .;
|
_ebss = .;
|
||||||
} >ram AT >rom
|
} >ram
|
||||||
|
|
||||||
/*
|
/* exception unwind data - required due to libgcc.a issuing /0 exceptions */
|
||||||
* The .eh_frame section appears to be used for C++ exception handling.
|
.ARM.extab : {
|
||||||
* You may need to fix this if you're using C++.
|
*(.ARM.extab*)
|
||||||
*/
|
} >ram
|
||||||
/DISCARD/ : { *(.eh_frame) }
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Another section used by C++ stuff, appears when using newlib with
|
|
||||||
* 64bit (long long) printf support - discard it for now.
|
|
||||||
*/
|
|
||||||
/DISCARD/ : { *(.ARM.exidx) }
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
end = .;
|
end = .;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user