gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Porting libobjc2 to MinGW


From: Hovik Melikyan
Subject: Porting libobjc2 to MinGW
Date: Tue, 16 Dec 2014 02:15:50 +0000

Hello,

I'm trying to compile libobjc2 on Windows/MinGW. At the moment I'm
stuck on this line in objc_msgSend.x86-32.S:

    addl  $_GLOBAL_OFFSET_TABLE_+(8b-7b), %ebx

Clang aborts here with this message: "unsupported relocation type" (I
think it's an assertion).

Command line used:

clang.exe  -DGC_DEBUG -DGNUSTEP -DNO_LEGACY \
    -DTYPE_DEPENDENT_DISPATCH -D_BSD_SOURCE=1 \
    -D_XOPEN_SOURCE=700 -D__BSD_VISIBLE=1 \
    -D__OBJC_RUNTIME_INTERNAL__=1 -Dobjc_EXPORTS -fPIC \
    -c objc_msgSend.S

with clang 3.5.

I think I understand what global offset table is for, but I have no
clue why clang's assembly refuses to compile it.

Any ideas on how to fix this line to compile and work on MinGW 32?

(I'm pretty sure there are a lot more problems ahead with this port.
At least the calling convention in this asm file will have to be taken
care of, and possibly more. I'm just wondering if anyone has ever had
any success with it. I can't find anything apart from some older posts
here in 2010 then 2013, with no positive outcome.)

Thanks!

--
H.M.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]