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 0159E3858C60 for ; Sat, 22 Jan 2022 04:28:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0159E3858C60 Received: by mail-pj1-x102c.google.com with SMTP id d12-20020a17090a628c00b001b4f47e2f51so12247314pjj.3 for ; Fri, 21 Jan 2022 20:28:30 -0800 (PST) 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=rroIoq3RZOsm38hsLUy5YhW6HU7uHQVYRiggMDoo4Iw=; b=MHKzufesmKgtxpi9CgpTWgz1Txx14PvpYX1y+wC3dxCxY2Ic3ZHvYtBclYltUSHCm7 AaUBgIWif5zj3VRszQAEpZuEcvy0W3pExFo5u2mcm7/Y1g/U+6JgV0ePzjH3j1m67GHh EmX1BihxTLiRyKnKHN/lByFLDuGsomm9BVqqZK2k0VpDITJke9XsXLvvSHS4W5gTPUjC ZiyewHkEE8KL8ixsLyCizzf6ZqNLYdbHDr5aawM8CDIXIaP95Ll0PfuBBt1XELUz63tX joeS1uAEsWM2WQ76+0GHYKKaVi/Hcl161gpPjottXbWqGLRPoFsJdHmfd6ayS340D4Wo aFrw== X-Gm-Message-State: AOAM531efaNUIZjkDagmGtiEINTpYz9gVbYQCySxh3xnnW2SGZ3K0jZI +6qf3IZsYmR88LzJWDwtKk05TmoHhGA= X-Google-Smtp-Source: ABdhPJx9+E0jraKcTiWyGNyOH5e9YzcAbbpMPM25FbOcGMbr+LmQoWtJ6z/wQ0OpXzW4nIE9DLY+xw== X-Received: by 2002:a17:902:7d96:b0:14a:42e1:4793 with SMTP id a22-20020a1709027d9600b0014a42e14793mr6405781plm.154.1642825710036; Fri, 21 Jan 2022 20:28:30 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:da22:eb4c:ad24:1cec]) by smtp.gmail.com with ESMTPSA id d2sm13154616pju.2.2022.01.21.20.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 20:28:28 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 24A411140066; Sat, 22 Jan 2022 14:58:26 +1030 (ACDT) Date: Sat, 22 Jan 2022 14:58:26 +1030 From: Alan Modra To: "H.J. Lu" Cc: Binutils Subject: Re: PowerPC64 DT_RELR Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3029.8 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 autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Sat, 22 Jan 2022 04:28:32 -0000 On Wed, Jan 19, 2022 at 02:56:07PM -0800, H.J. Lu wrote: > Does PowerPC64 support static PIE? If yes, it may need more linker changes. No. There are things in glibc that need fixing. We have small-model toc relocs being used in assembly. This results in the linker refusing to do toc/got indirect to toc pointer relative code optimisation for those sequences. So we get toc/got entries with relative relocations that result in segfaults when static-pie binaries are trying to relocate themselves. What were the linker changes you thought would be necessary? -- Alan Modra Australia Development Lab, IBM