From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by sourceware.org (Postfix) with ESMTPS id 3AEF1382B5ED for ; Thu, 9 Jun 2022 22:57:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3AEF1382B5ED Received: by mail-pj1-x102c.google.com with SMTP id v11-20020a17090a4ecb00b001e2c5b837ccso643776pjl.3 for ; Thu, 09 Jun 2022 15:57:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JWKcbVy7Dq67qTU2+4OCNpf/wlWsaT1mwieWJ+aN89k=; b=B0dSnZ/S6LBej0TNiZ1zXiEgh6tbA5iCMOQEZ/xQWPxtijeAQIeblFoTbgwLcEOkgD g8pabbuZMiKcjnxawfQ6sORZWuM1GBfYdH2OAaBQwuOpDfSQAmGgWhEAVVEl2QmZM0tn 2WC0wVNzRyPuYfl9g4VECKeHtlS5dYe9XKRzRrsv3baZ7GFqj2A9ib6E9ilAoWx8HmPh S0Uuha0CmRSO1H3SA7/RThmFd46hBGdEHQg8PMVzns8mr33kGpmGSawJhlzhmCGZmspE C7jqed4V/vO2kq4zUis9Y9HjqBLrEikQMX1ZdXueJrhjMkSIKpHBZwA6Wpxa1QgLSNFh DiKw== X-Gm-Message-State: AOAM531ifa9tW4tvcgwK8xc25zyWLL0fbTG0eLUc4jKX00yNbIpJROxC 3Z4FBEFlpCnwsG9WgOrKk54= X-Google-Smtp-Source: ABdhPJxGRNdtvkgvyyuYiOlPJWfvZUX0RtMcHQNtzLL3m/B0bcSenCe0AS37xXo5gJGxFQ9hVNqazQ== X-Received: by 2002:a17:90b:3789:b0:1e3:459a:1202 with SMTP id mz9-20020a17090b378900b001e3459a1202mr5598000pjb.113.1654815449323; Thu, 09 Jun 2022 15:57:29 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id jc20-20020a17090325d400b0015e8d4eb20dsm17243450plb.87.2022.06.09.15.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 15:57:28 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id ED2A211403B4; Fri, 10 Jun 2022 08:27:24 +0930 (ACST) Date: Fri, 10 Jun 2022 08:27:24 +0930 From: Alan Modra To: Florian Weimer Cc: Alan Modra via Binutils , Nick Clifton Subject: Re: PowerPC64 DT_RELR Message-ID: References: <871qvy5ckj.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qvy5ckj.fsf@oldenburg.str.redhat.com> X-Spam-Status: No, score=-3031.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2022 22:57:32 -0000 On Thu, Jun 09, 2022 at 12:57:32PM +0200, Florian Weimer wrote: > * Alan Modra via Binutils: > > > PowerPC64 takes a more traditional approach to DT_RELR than x86. Count > > relative relocs in check_relocs, allocate space for them and output in > > the usual places but not doing so when enable_dt_relr. DT_RELR is > > sized in the existing ppc stub relaxation machinery, run via the > > linker's ldemul_after_allocation hook. DT_RELR is output in the same > > function that writes ppc stubs, run via ldemul_finish. > > > > This support should be considered experimental. > > Upstream glibc enables DT_RELR for its ELF files by default (including > tests), and we seem to hit something DT_RELR-related: > > Some glibc tests crash in DT_RELR relocation on powerpc64le > > > (I'm working on attaching the test binary to the bug.) I'll investigate. My guess would be .eh_frame editing is the trigger. > Maybe we should not automatically DT_RELR for glibc itself if BFD ld > supports it? Yes, at least until I can fix this. -- Alan Modra Australia Development Lab, IBM