gen_addrpc32: absolute ptr needs *ABS* relocation
commit870271ea071971002fa556e09e1873db316fa1a9
authorZdenek Pavlas <zden3k@gmail.com>
Mon, 11 Sep 2017 12:56:47 +0000 (11 05:56 -0700)
committerZdenek Pavlas <zden3k@gmail.com>
Mon, 11 Sep 2017 13:36:16 +0000 (11 06:36 -0700)
tree30933c4ba086c73f8c409bab727d8f2e03ff8d54
parent078d8c2c5a008f710ba5349fdc2a21a12a128f58
gen_addrpc32: absolute ptr needs *ABS* relocation

Dereferencing of absolute pointers is broken on x86_64, eg:

*(int*)NULL does not segfault but returns -4 instead
*(char*)(-10L << 20) does not return 0x55 (vsyscall page, push rbp)
x86_64-gen.c