anjiahao1 opened a new pull request, #22421: URL: https://github.com/apache/nuttx/pull/22421
## Summary Write ELF64 relocations on the sim without unaligned stores. R_X86_64_64 and R_X86_64_PC64 wrote the 64-bit result straight through the relocation address, which is not necessarily 8-byte aligned. A strict-alignment host (e.g. an arm64 host running the 64-bit sim) traps on such a store. Compute the value in a local and copy it with memcpy instead. ## Impact * Is new feature added? NO - relocation fix. * Impact on user: NO * Impact on build: NO * Impact on hardware: NO * Impact on documentation: NO * Impact on security: NO * Impact on compatibility: NO ## Testing Build host: Linux x86_64, gcc 13.3. ``` tools/configure.sh -a <apps> sim:module make -j10 ``` The build completes with the changed relocation paths compiled in. ## PR verification * [x] This PR introduces only one functional change. * [x] I have updated all required description fields above. * [x] My PR adheres to Contributing Guidelines and Documentation. * [ ] My PR is still work in progress (not ready for review). * [x] My PR is ready for review and can be safely merged into a codebase. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
