#7443: Strange crash when doing PIC in ASM --------------------+------------------------------ Reporter: js | Owner: nobody Type: bug | Status: new Priority: normal | Milestone: R1 Component: System | Version: R1/Development Keywords: | Blocked By: Blocking: | Has a Patch: 0 Platform: x86 | --------------------+------------------------------ When doing PIC in ASM, I get a crash in a line like this:[[BR]] add eax, some_method_in_the_same_unit-.L2 The full code is here:[[BR]] https://webkeks.org/hg/objfw- rt/file/ab3805ce47fd/src/lookup-i386-elf.S#l53 [[BR]] (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! -- Ticket URL: <http://dev.haiku-os.org/ticket/7443> Haiku <http://dev.haiku-os.org> Haiku - the operating system.