From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id 574463851AB4 for ; Thu, 9 Jun 2022 23:53:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 574463851AB4 Received: by mail-pg1-x529.google.com with SMTP id 129so23281132pgc.2 for ; Thu, 09 Jun 2022 16:53:19 -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=CtJIQd8VN/uFebjq/UoBQoQxAJLxJU7e3NKC27Zs6Rg=; b=GwfJQIB3xPNCe8jQ6q5vR9+7bnrH84EvLChvkArOgn5uMU0k2NXM+nQQs6IHUgqmC5 U0wuV+FwU4PHdxkazkUFgsHowlGQl4oTw9gsVtYQy0w29sWtZ+t6z0l9hc5Xi9BveIpP FSedu/BlfL2q2oohIDnbXMIyxUS1Hw85rwiGihqxxROeXf+MJ3zM/9OKcZ9ICYtCJBr7 rrFChAYqpiJCjnn0P6mJVXyK6yxXgD1ObUZANRj5yujUoRjFviOVgxpKUNfze2aSxJ/8 nWRxN4D7dnIlVngRboChHL135RRVc5Ih9o5zKI6kqcV6yznPbt3tKgJDEjkUjc2Oc6+U xaKg== X-Gm-Message-State: AOAM53076SK0qGivx2Sumx0EIeaqxjHDWsoqz+CuR/scqAQat+KI5J3x hJpc9iUMy/9HfCnAYsmYDIE= X-Google-Smtp-Source: ABdhPJzYhdUbC1RUUu/w0Ex9apOCUCMjDphY+7h9myKAPDlbrHnYqDJSS1QqY1Ud/rj8snP4NEGrgg== X-Received: by 2002:a65:4848:0:b0:3fc:52c3:6ca5 with SMTP id i8-20020a654848000000b003fc52c36ca5mr36458125pgs.264.1654818798390; Thu, 09 Jun 2022 16:53:18 -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 f5-20020a170902684500b00163ffbc4f74sm17522960pln.49.2022.06.09.16.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 16:53:17 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 2B2E71140450; Fri, 10 Jun 2022 09:23:15 +0930 (ACST) Date: Fri, 10 Jun 2022 09:23:15 +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: 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 23:53:21 -0000 On Fri, Jun 10, 2022 at 08:27:25AM +0930, Alan Modra wrote: > 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. binutils-2.38-14.fc37 is missing binutils commit e4a35c731962. -- Alan Modra Australia Development Lab, IBM