summaryrefslogtreecommitdiffstats
path: root/linkers/rtems-syms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linkers/rtems-syms.cpp')
-rw-r--r--linkers/rtems-syms.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linkers/rtems-syms.cpp b/linkers/rtems-syms.cpp
index 88ee970..f0ac2bb 100644
--- a/linkers/rtems-syms.cpp
+++ b/linkers/rtems-syms.cpp
@@ -77,7 +77,7 @@ static const char* c_header[] =
"void rtems_rtl_base_sym_global_add (const unsigned char* , unsigned int,",
" rtems_rtl_tls_offset*, size_t );",
"",
- "asm(\".section \\\".rodata\\\"\");",
+ "asm(\".pushsection \\\".rodata\\\"\");",
"",
"asm(\" .align 4\");",
"asm(\" .local rtems__rtl_base_globals\");",
@@ -122,6 +122,7 @@ static const char* c_trailer[] =
"asm(\" .local rtems__rtl_base_globals_size\");",
"asm(\"rtems__rtl_base_globals_size:\");",
"asm(\" .long rtems__rtl_base_globals_size - rtems__rtl_base_globals\");",
+ "asm(\" .popsection\");",
"",
0
};