Commit ad925094 authored by Roberto Vargas's avatar Roberto Vargas
Browse files

Add .extab and .exidx sections



These sections are required by clang when the code is compiled for
aarch32. These sections are related to the unwind of the stack in
exceptions, but in the way that clang defines and uses them, the
garbage collector cannot get rid of them.

Change-Id: I085efc0cf77eae961d522472f72c4b5bad2237ab
Signed-off-by: default avatarRoberto Vargas <roberto.vargas@arm.com>
parent 5629b2b1
...@@ -32,6 +32,15 @@ SECTIONS ...@@ -32,6 +32,15 @@ SECTIONS
__TEXT_END__ = .; __TEXT_END__ = .;
} >ROM } >ROM
/* .ARM.extab and .ARM.exidx are only added because Clang need them */
.ARM.extab . : {
*(.ARM.extab* .gnu.linkonce.armextab.*)
} >ROM
.ARM.exidx . : {
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >ROM
.rodata . : { .rodata . : {
__RODATA_START__ = .; __RODATA_START__ = .;
*(.rodata*) *(.rodata*)
......
...@@ -32,6 +32,15 @@ SECTIONS ...@@ -32,6 +32,15 @@ SECTIONS
__TEXT_END__ = .; __TEXT_END__ = .;
} >RAM } >RAM
/* .ARM.extab and .ARM.exidx are only added because Clang need them */
.ARM.extab . : {
*(.ARM.extab* .gnu.linkonce.armextab.*)
} >RAM
.ARM.exidx . : {
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >RAM
.rodata . : { .rodata . : {
__RODATA_START__ = .; __RODATA_START__ = .;
*(.rodata*) *(.rodata*)
......
...@@ -32,6 +32,15 @@ SECTIONS ...@@ -32,6 +32,15 @@ SECTIONS
__TEXT_END__ = .; __TEXT_END__ = .;
} >RAM } >RAM
/* .ARM.extab and .ARM.exidx are only added because Clang need them */
.ARM.extab . : {
*(.ARM.extab* .gnu.linkonce.armextab.*)
} >RAM
.ARM.exidx . : {
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >RAM
.rodata . : { .rodata . : {
__RODATA_START__ = .; __RODATA_START__ = .;
*(.rodata*) *(.rodata*)
......
...@@ -32,6 +32,15 @@ SECTIONS ...@@ -32,6 +32,15 @@ SECTIONS
__TEXT_END__ = .; __TEXT_END__ = .;
} >RAM } >RAM
/* .ARM.extab and .ARM.exidx are only added because Clang need them */
.ARM.extab . : {
*(.ARM.extab* .gnu.linkonce.armextab.*)
} >RAM
.ARM.exidx . : {
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} >RAM
.rodata . : { .rodata . : {
__RODATA_START__ = .; __RODATA_START__ = .;
*(.rodata*) *(.rodata*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment