Opened 12 years ago

Closed 12 years ago

#7443 closed bug (invalid)

Strange crash when doing PIC in ASM

Reported by: js Owned by: nobody
Priority: normal Milestone: R1
Component: System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
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!

Change History (2)

comment:1 by js, 12 years ago

It works when using offset some_method_in_the_same_unit - offset .L2, so it seems that different versions of GAS are behaving differently. Can someone close the bug?

comment:2 by bonefish, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.