From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id E97643852772 for ; Thu, 9 Jun 2022 10:57:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E97643852772 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-280-JXbQLEyFMxa8SINnYZekVw-1; Thu, 09 Jun 2022 06:57:35 -0400 X-MC-Unique: JXbQLEyFMxa8SINnYZekVw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 66CE6185A7A4; Thu, 9 Jun 2022 10:57:35 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.193.50]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 73D4E40EC002; Thu, 9 Jun 2022 10:57:34 +0000 (UTC) From: Florian Weimer To: Alan Modra via Binutils Subject: Re: PowerPC64 DT_RELR References: Date: Thu, 09 Jun 2022 12:57:32 +0200 In-Reply-To: (Alan Modra via Binutils's message of "Tue, 18 Jan 2022 11:23:05 +1030") Message-ID: <871qvy5ckj.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, 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 10:57:39 -0000 * 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.) Maybe we should not automatically DT_RELR for glibc itself if BFD ld supports it? Thanks, Florian