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-unsubscr...@mynewt.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org