Support exceptions on all targets
This commit is contained in:
parent
74cd991e7e
commit
82ef2936a6
@ -36,9 +36,24 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.rodata*) /* Read-only data */
|
*(.rodata*) /* Read-only data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Another section used by C++ stuff, appears when using newlib with
|
||||||
|
* 64bit (long long) printf support
|
||||||
|
*/
|
||||||
|
.ARM.extab : {
|
||||||
|
*(.ARM.extab*)
|
||||||
|
} >rom
|
||||||
|
.ARM.exidx : {
|
||||||
|
__exidx_start = .;
|
||||||
|
*(.ARM.exidx*)
|
||||||
|
__exidx_end = .;
|
||||||
|
} >rom
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
.data : {
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
@ -60,12 +75,6 @@ SECTIONS
|
|||||||
*/
|
*/
|
||||||
/DISCARD/ : { *(.eh_frame) }
|
/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 = .;
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,24 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.rodata*) /* Read-only data */
|
*(.rodata*) /* Read-only data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Another section used by C++ stuff, appears when using newlib with
|
||||||
|
* 64bit (long long) printf support
|
||||||
|
*/
|
||||||
|
.ARM.extab : {
|
||||||
|
*(.ARM.extab*)
|
||||||
|
} >rom
|
||||||
|
.ARM.exidx : {
|
||||||
|
__exidx_start = .;
|
||||||
|
*(.ARM.exidx*)
|
||||||
|
__exidx_end = .;
|
||||||
|
} >rom
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
.data : {
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
@ -60,12 +75,6 @@ SECTIONS
|
|||||||
*/
|
*/
|
||||||
/DISCARD/ : { *(.eh_frame) }
|
/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 = .;
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,24 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.rodata*) /* Read-only data */
|
*(.rodata*) /* Read-only data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Another section used by C++ stuff, appears when using newlib with
|
||||||
|
* 64bit (long long) printf support
|
||||||
|
*/
|
||||||
|
.ARM.extab : {
|
||||||
|
*(.ARM.extab*)
|
||||||
|
} >rom
|
||||||
|
.ARM.exidx : {
|
||||||
|
__exidx_start = .;
|
||||||
|
*(.ARM.exidx*)
|
||||||
|
__exidx_end = .;
|
||||||
|
} >rom
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
.data : {
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
@ -60,12 +75,6 @@ SECTIONS
|
|||||||
*/
|
*/
|
||||||
/DISCARD/ : { *(.eh_frame) }
|
/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 = .;
|
||||||
}
|
}
|
||||||
|
@ -42,12 +42,18 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
/* exception index - required due to libgcc.a issuing /0 exceptions */
|
/*
|
||||||
__exidx_start = .;
|
* Another section used by C++ stuff, appears when using newlib with
|
||||||
|
* 64bit (long long) printf support
|
||||||
|
*/
|
||||||
|
.ARM.extab : {
|
||||||
|
*(.ARM.extab*)
|
||||||
|
} >rom
|
||||||
.ARM.exidx : {
|
.ARM.exidx : {
|
||||||
|
__exidx_start = .;
|
||||||
*(.ARM.exidx*)
|
*(.ARM.exidx*)
|
||||||
} > rom
|
__exidx_end = .;
|
||||||
__exidx_end = .;
|
} >rom
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
@ -69,23 +75,12 @@ SECTIONS
|
|||||||
_ebss = .;
|
_ebss = .;
|
||||||
} >ram
|
} >ram
|
||||||
|
|
||||||
/* exception unwind data - required due to libgcc.a issuing /0 exceptions */
|
|
||||||
.ARM.extab : {
|
|
||||||
*(.ARM.extab*)
|
|
||||||
} >ram
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The .eh_frame section appears to be used for C++ exception handling.
|
* The .eh_frame section appears to be used for C++ exception handling.
|
||||||
* You may need to fix this if you're using C++.
|
* You may need to fix this if you're using C++.
|
||||||
*/
|
*/
|
||||||
/DISCARD/ : { *(.eh_frame) }
|
/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 = .;
|
||||||
|
|
||||||
|
@ -43,12 +43,18 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
/* exception index - required due to libgcc.a issuing /0 exceptions */
|
/*
|
||||||
__exidx_start = .;
|
* Another section used by C++ stuff, appears when using newlib with
|
||||||
|
* 64bit (long long) printf support
|
||||||
|
*/
|
||||||
|
.ARM.extab : {
|
||||||
|
*(.ARM.extab*)
|
||||||
|
} >rom
|
||||||
.ARM.exidx : {
|
.ARM.exidx : {
|
||||||
|
__exidx_start = .;
|
||||||
*(.ARM.exidx*)
|
*(.ARM.exidx*)
|
||||||
} > rom
|
__exidx_end = .;
|
||||||
__exidx_end = .;
|
} >rom
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
@ -70,24 +76,12 @@ SECTIONS
|
|||||||
_ebss = .;
|
_ebss = .;
|
||||||
} >ram_data
|
} >ram_data
|
||||||
|
|
||||||
/* exception unwind data - required due to libgcc.a issuing /0 exceptions */
|
|
||||||
.ARM.extab : {
|
|
||||||
. = _ebss;
|
|
||||||
*(.ARM.extab*)
|
|
||||||
} >ram_data
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The .eh_frame section appears to be used for C++ exception handling.
|
* The .eh_frame section appears to be used for C++ exception handling.
|
||||||
* You may need to fix this if you're using C++.
|
* You may need to fix this if you're using C++.
|
||||||
*/
|
*/
|
||||||
/DISCARD/ : { *(.eh_frame) }
|
/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 = .;
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.rodata*) /* Read-only data */
|
*(.rodata*) /* Read-only data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -52,6 +51,9 @@ SECTIONS
|
|||||||
__exidx_end = .;
|
__exidx_end = .;
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
.data : {
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
|
@ -36,7 +36,6 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.rodata*) /* Read-only data */
|
*(.rodata*) /* Read-only data */
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -52,6 +51,9 @@ SECTIONS
|
|||||||
__exidx_end = .;
|
__exidx_end = .;
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
_etext = .;
|
||||||
|
|
||||||
.data : {
|
.data : {
|
||||||
_data = .;
|
_data = .;
|
||||||
*(.data*) /* Read-write initialized data */
|
*(.data*) /* Read-write initialized data */
|
||||||
|
@ -38,13 +38,18 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >rom
|
} >rom
|
||||||
|
|
||||||
/* exception index - required due to libgcc.a issuing /0 exceptions */
|
/*
|
||||||
__exidx_start = .;
|
* Another section used by C++ stuff, appears when using newlib with
|
||||||
|
* 64bit (long long) printf support
|
||||||
|
*/
|
||||||
|
.ARM.extab : {
|
||||||
|
*(.ARM.extab*)
|
||||||
|
} >rom
|
||||||
.ARM.exidx : {
|
.ARM.exidx : {
|
||||||
*(.ARM.exidx*)
|
__exidx_start = .;
|
||||||
} > rom
|
*(.ARM.exidx*)
|
||||||
__exidx_end = .;
|
__exidx_end = .;
|
||||||
|
} >rom
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
@ -64,10 +69,11 @@ SECTIONS
|
|||||||
_ebss = .;
|
_ebss = .;
|
||||||
} >ram
|
} >ram
|
||||||
|
|
||||||
/* exception unwind data - required due to libgcc.a issuing /0 exceptions */
|
/*
|
||||||
.ARM.extab : {
|
* 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++.
|
||||||
} >ram
|
*/
|
||||||
|
/DISCARD/ : { *(.eh_frame) }
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
end = .;
|
end = .;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user