Hacker News new | ask | show | jobs
by wolfgke 2829 days ago
> Having code that behaves differently if it's loaded at different addresses seems like a bug.

Why? This only sounds like a bug to me if it is intended to be position-independent code (PIC).

A reason why in safety-critical code ASLR is avoided is that it introduces another source of non-determinacy and potential bugs, which you want to avoid.

UPDATE: So you really want to keep the system as simple and small as possible and avoid to add anything to it that can introduce new bugs.

1 comments

At what point do you want general purpose code to be position dependent?
When you program for platform where writing PIC involves ugly hacks with measurable performance impact, for example i386.
Its not i386 that's the issue, it's the ABI