GCC can't even self-host as PIE because it assumes ptrs saved from one inst work in another: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67812 …https://twitter.com/CopperheadSec/status/670627155013971968 …
@cr1901 C provides no such guarantee, and it's completely false with any sort of reasonable ASLR or hardened pointer representations.
-
-
@RichFelker So you're saying: { char * ptr0 = &my_global char * ptr1 = ptr0; assert(ptr0 == ptr1); } will fail? -
@cr1901 No. I'm saying int main() {printf("%p",(void*)main);} gcc foo.c ./a.out ./a.out need not print the same thing twice. -
@RichFelker Oh, inst == instance? -
@RichFelker I read inst as instruction XD -
@cr1901 Yay for 140 characters.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.