You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/08/25 06:47:55 UTC

[GitHub] [mynewt-core] kasjer opened a new pull request, #2866: riscv: Fix initialized data

kasjer opened a new pull request, #2866:
URL: https://github.com/apache/mynewt-core/pull/2866

   Startup script has only one loop that copies initialized data and
   code that should execute from RAM.
   It implies that variables in .data .ram_text .srodata .sdata and such
   has same layout in flash and in RAM.
   Those data are packed by default in flash so output sections
   (.data .srodata .sdata) if they start with something that requires
   alignment change may end up with wrong data being copied to
   statically initialized data.
   One way to prevent such case is to copy each output section in separate
   loop. But it is also possibly to add output section attribute ALIGN_WITH_INPUT
   and then linker will fill necessary space in flash image.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-core] kasjer merged pull request #2866: riscv: Fix initialized data

Posted by GitBox <gi...@apache.org>.
kasjer merged PR #2866:
URL: https://github.com/apache/mynewt-core/pull/2866


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-core] apache-mynewt-bot commented on pull request #2866: riscv: Fix initialized data

Posted by GitBox <gi...@apache.org>.
apache-mynewt-bot commented on PR #2866:
URL: https://github.com/apache/mynewt-core/pull/2866#issuecomment-1227039945

   
   <!-- style-bot -->
   
   ## Style check summary
   
   #### No suggestions at this time!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org