|
|
Subscribe / Log in / New account

Linker limitations on 32-bit architectures

Linker limitations on 32-bit architectures

Posted Aug 27, 2019 22:28 UTC (Tue) by foom (subscriber, #14868)
In reply to: Linker limitations on 32-bit architectures by roc
Parent article: Linker limitations on 32-bit architectures

Qemu has "fails to crash" bugs. They tend to increase emulation speed, by not checking unimportant edge cases.

The most annoying one to me is that it doesn't check pointer alignment for load/store instructions which fail when misaligned on real hardware. E.g. ldm and ldrd on armv7 require 4-byte alignment (even though ldr does not), but qemu does not check this.

It's unfortunately pretty easy to screw up alignment in C code, and cause your program to only crash on real hardware...


to post comments

Linker limitations on 32-bit architectures

Posted Aug 28, 2019 0:34 UTC (Wed) by roc (subscriber, #30627) [Link]

Interesting, thanks. Sounds like it would be fairly easy to fix with an option.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds