Strange crash when doing PIC in ASM
|Reported by:||js||Owned by:||nobody|
|Has a Patch:||no||Platform:||x86|
When doing PIC in ASM, I get a crash in a line like this:
add eax, some_method_in_the_same_unit-.L2
The full code is here:
(The crash is in line 53)
The exakt same code runs just fine on Linux (even valgrind does not have anything to complain about) - it only crashes on Haiku. Am I doing something wrong, is PIC done differently on Haiku or is this a bug? And how can this line crash? There isn't even any memory access!