On Tue, Jun 13, 2017 at 09:38:44AM +0200, Ole Streicher wrote:
> I am slowly re-starting the packaging of IRAF (still not officially
> announced yet). When porting to s390x, I however run into a strange
> error: IRAF needs a small piece of assembler code (kind-of longjump for
> Fortan), which John Long gratefully ported to s390x two years ago:

Is IRAF the stuff from http://iraf.noao.edu/ and last released five
years ago?

> zsvjmp_:
>       stg     %r3,0(0,%r2)
>       xc      0(8,%r3),0(%r3)
>       xgr     %r3,%r3
>       aghi    %r2,8
>       j       __sigsetjmp@PLT

Looks like it is, but why do you want this jump via the PLT, while all
other variants do not?

| ./unix/as.linux/zsvjmp.s:       jmp     __sigsetjmp             # let 
sigsetjmp do the rest
| ./unix/as.linux64/zsvjmp_c:asm("        jmp     __sigsetjmp     # let 
sigsetjmp do the rest");

> Could anyone help me here what is wrong with that assembler?

To make this work, you need to build with -fPIC.

Bastian

-- 
Earth -- mother of the most beautiful women in the universe.
                -- Apollo, "Who Mourns for Adonais?" stardate 3468.1

Reply via email to