News for hackers. Stuff that matters.
Re:32-bit x86 Position Independent Code – It's That Bad by dottrap on Wednesday April 15, 2015 @01:51AM (#9379104)
So what's the story on 64-bit x64 or other processors?
Re:32-bit x86 Position Independent Code – It's That Bad by pmalynin on Wednesday April 15, 2015 @01:59AM (#9379136)
Position independent code on x64 is quite trivial, it has a new instruction addressing mode called RIP-relative addressing so that the program can access everything relative to where it is currently executing.
Re:32-bit x86 Position Independent Code – It's That Bad by michaelg73 on Wednesday April 15, 2015 @06:46AM (#9380028)
There are some pretty pictures here which help to explain how x86_64 handles relocations in a much less cumbersome way: http://www.mindfruit.co.uk/2012/06/relocations-relocations.h...