From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123039 invoked by alias); 23 Mar 2018 19:32:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 123030 invoked by uid 89); 23 Mar 2018 19:32:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mailbackend.panix.com X-Gm-Message-State: AElRT7F/tANdFA4+Y4yTWz2pnPKZL6eBWoMsg0wX/nXKVFre7lcpiVua FZbHBvvk6HXQsyMj4nzEutzF21l4ffyHrLwsolM= X-Google-Smtp-Source: AG47ELvjaN+hG22VDXxL1RLgSvhX1V/XFaab1J+5577dlkNVur58FtqPUsiYjxNDTIkx3PJ3DNuUfmKS4HpMIugl8dk= X-Received: by 2002:a9d:a49:: with SMTP id 67-v6mr959328otg.374.1521833529639; Fri, 23 Mar 2018 12:32:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180322234708.GS3812@bubble.grove.modra.org> References: <20180321010551.9611-1-zackw@panix.com> <20180322234708.GS3812@bubble.grove.modra.org> From: Zack Weinberg Date: Fri, 23 Mar 2018 19:32:00 -0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] Introduce pt-compat-stubs and use it to replace pt-vfork. (Architecture maintainer feedback wanted.) To: Alan Modra Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-03/txt/msg00539.txt.bz2 On Thu, Mar 22, 2018 at 7:47 PM, Alan Modra 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