This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC PATCH] Introduce pt-compat-stubs and use it to replace pt-vfork. (Architecture maintainer feedback wanted.)
On Thu, Mar 22, 2018 at 7:47 PM, Alan Modra <amodra@gmail.com> wrote:
> ELFv1 code would look like:
>
> .section .opd,"aw",@progbits
> .global __pstub_vfork
> .type __pstub_vfork,@function
> __pstub_vfork:
> .quad 0f,.TOC.,0
>
> .text
> 0:
> addis 11,2,1f-0b@ha
> addi 11,11,1f-0b@l
Is this really correct? 1f-0b here is the offset from the beginning
of the function to the global it wants to reference in .data, but r2
is the TOC pointer, not the beginning of the function.
zw