Descriptioncompiler/linker: Fix for nil pointer checks for large objects.
Crazy idea of computing the maximum object size, then using
that number to offset the virtual address start of the executable
so that a reference to anywhere in a big but nil object will fault.
Still need to handle other OSes besides linux and osx.
Behavior changes for test p9, &p.i used to fault and it won't any more.
Patch Set 1 #Patch Set 2 : diff -r ad7749774783 https://khr%40golang.org@code.google.com/p/go/ #Patch Set 3 : diff -r ad7749774783 https://khr%40golang.org@code.google.com/p/go/ #Patch Set 4 : diff -r 5e23075b0970 https://khr%40golang.org@code.google.com/p/go/ #Patch Set 5 : diff -r 5e23075b0970 https://code.google.com/p/go/ #
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||