Boost logo

Boost :

Subject: Re: [boost] [context] doesn't build on 32-bit osx
From: Luke Elliott (lukester_null_at_[hidden])
Date: 2012-08-08 07:02:24

On 07/08/2012 14:04, Oliver Kowalke wrote:
> Am 07.08.2012 14:02, schrieb Luke Elliott:
>> Hello Oliver
>> There's actually already a ticket on this
>> ( not from me) but since
>> it's unassigned I thought I'd post here with a few more details.
> Hi Luke,
> could you try the appended asm - it might fail by computing the absolute
> address of label finish.
> Oliver

No joy I'm afraid:

as -o
"../../../libs/context/src/asm/fcontext_i386_sysv_macho_gas.S" -arch i686
register name `%eip)'

Apparently reading eip in 32-bit mode is a no-go?

 From some googling, I tried:

     call _get_eip
     leal finish(%eip), %ecx


        mov (%esp), %ecx

Which assembles. But at link time:

ld: illegal text-relocation to finish in
from _make_fcontext in
for architecture i386



Boost list run by bdawes at, gregod at, cpdaniel at, john at