arc: enable thread local storage

This adds the necessary bits to support thread local storage
in ARC.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-10-30 10:21:40 -07:00 committed by Carles Cufí
commit c7704d8c66
6 changed files with 79 additions and 1 deletions

View file

@ -98,6 +98,7 @@ SECTIONS {
_image_rodata_start = .;
#include <linker/common-rom.ld>
#include <linker/thread-local-storage.ld>
SECTION_PROLOGUE(_RODATA_SECTION_NAME,,) {
KEEP(*(.openocd_dbg))
@ -220,5 +221,11 @@ SECTIONS {
KEEP(*(.gnu.attributes))
}
/DISCARD/ : { *(.note.GNU-stack) }
/DISCARD/ : {
*(.note.GNU-stack)
*(.got.plt)
*(.igot.plt)
*(.got)
*(.igot)
}
}