[rtems commit] bsps/powerpc: Move .rtemstack section

Sebastian Huber sebh at rtems.org
Mon Mar 4 08:25:35 UTC 2019


Module:    rtems
Branch:    master
Commit:    dbe6e0ad09881d596a41d247686d18eaa43cd897
Changeset: http://git.rtems.org/rtems/commit/?id=dbe6e0ad09881d596a41d247686d18eaa43cd897

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar  4 09:22:32 2019 +0100

bsps/powerpc: Move .rtemstack section

Move the .rtemsstack section from a read-only to a read-write area, see
page table setup in __BSP_default_pgtbl_setup().

---

 bsps/powerpc/shared/start/linkcmds.share | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/bsps/powerpc/shared/start/linkcmds.share b/bsps/powerpc/shared/start/linkcmds.share
index 2fc6601..2565523 100644
--- a/bsps/powerpc/shared/start/linkcmds.share
+++ b/bsps/powerpc/shared/start/linkcmds.share
@@ -97,10 +97,6 @@ SECTIONS
   _TLS_Size = _TLS_BSS_end - _TLS_Data_begin;
   _TLS_Alignment = MAX (ALIGNOF (.tdata), ALIGNOF (.tbss));
 
-  .rtemsstack (NOLOAD) : {
-    *(SORT(.rtemsstack.*))
-  } >CODE
-
   /* Adjust the address for the data segment.  We want to adjust up to
      the same address within the page on the next page up.  */
   . = ALIGN(0x10000) + (. & (0x10000 - 1));
@@ -245,6 +241,9 @@ SECTIONS
   . = ALIGN(16);
    PROVIDE (__bss_end = .);
   } > CODE
+  .rtemsstack (NOLOAD) : {
+    *(SORT(.rtemsstack.*))
+  } >CODE
   . = ALIGN(16);
   _end = . ;
   __rtems_end = . ;



More information about the vc mailing list