From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by sourceware.org (Postfix) with ESMTPS id 998CA3857C41 for ; Thu, 28 Sep 2023 14:53:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 998CA3857C41 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-59f7cc71e2eso105447607b3.0 for ; Thu, 28 Sep 2023 07:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695912785; x=1696517585; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6JBleulp9YtrAuOVUYipFYCyEjxlOnSHs1vmw1iE9Es=; b=Eq0mdqOE8PuRozrYmz4htu6ITZLl//llF+mvzYN+iKizosvE3VUiXI4uYQlmYW9Buv 3Cd1X704O42RCG3xd6LXovROtbhFaagH3VgLwKS1wxGGJ3qfIreJHSQo6M3CVq711blA pRxvhCWaXiP2Q17S357gctVhTtNj969JrpLxTq33NgSoAH6euBwrnKjROnbwaQyeutHA xYWG3cMkjZt+KfwSDRxemV83xyPoJ01f+vlZIUl+glJwfVOcAu+kknhDSGWTgelGD4pb /8UT2TCm9Xh+t88M3Usgtou+2Nte+d/3dHTK2d3jmJvmVoga6epv6KdlEnfxAxAnLwm1 u5CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695912785; x=1696517585; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6JBleulp9YtrAuOVUYipFYCyEjxlOnSHs1vmw1iE9Es=; b=WTC+O87+A+JoMFPvJGxmBHPT8HnzrA4VV5oywrq13cb3P30tkIdoQD2Ty8onMwM9ng xEdzuP902bysyU2YT72uTiETfK1IicnTXpo7+JvnZi1SSPtD4oF2hxqTmoERrFfocTHA EoqZYvt6iypc7bBC7bcPDUmQvmghoc7rVomYSG7mC0KJgYNc+aQ4C3AlJjHZuF+xLcFj 38MHX6Ok61fE07UfVEJ/hyk5rIO4qvjCrXc2ZLthZ3wWGpXGYJ0cgAb+aR1+IOy+hkZ4 56pgzaSpDZQvZm5AKQE6eARVHY3nCXI9c2dLfwDcbX+pt1iUFUphvKz7XIVZG48qXNnc oDdQ== X-Gm-Message-State: AOJu0YwVM5kePARAi7CN0IGkCN/2J03qLE07eNf2/BRpFqlMSTKUBeGS 4UACQaKMduDAmW1hCNGIFqYXSqgLDvDWrrl1D3Bs+sNliHs= X-Google-Smtp-Source: AGHT+IEtYYE81C4YJJmk/QhWNKk16kV0Id0fbk/KJPkIpKfyI2yUivZA4teme2Yd6Eera9i/6f+pXvLfhtJyj4hjZJ4= X-Received: by 2002:a81:a182:0:b0:59b:eb64:bcc5 with SMTP id y124-20020a81a182000000b0059beb64bcc5mr1477178ywg.8.1695912784873; Thu, 28 Sep 2023 07:53:04 -0700 (PDT) MIME-Version: 1.0 References: <20230927171913.5870-1-hjl.tools@gmail.com> In-Reply-To: From: "H.J. Lu" Date: Thu, 28 Sep 2023 07:52:28 -0700 Message-ID: Subject: Re: [PATCH v2] x86-64: Add -z mark-plt and -z nomark-plt To: Jan Beulich Cc: binutils@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3015.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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Sep 27, 2023 at 11:07=E2=80=AFPM Jan Beulich wr= ote: > > On 27.09.2023 19:19, H.J. Lu via Binutils wrote: > > --- a/ld/ld.texi > > +++ b/ld/ld.texi > > @@ -1475,6 +1475,11 @@ Specify that the object's filters be processed i= mmediately at runtime. > > @item max-page-size=3D@var{value} > > Set the maximum memory page size supported to @var{value}. > > > > +@item mark-plt > > +@itemx nomark-plt > > +Mark PLT entries with dynamic tags, DT_X86_64_PLT, DT_X86_64_PLTSZ and > > +DT_X86_64_PLTENT. Supported for x86_64. > > Hmm, you use backwards compatibility issues as justification for not havi= ng > a configure time way to default the new behavior to enabled, and then you > don't mention the backwards compatibility aspect here? > How about this: @item mark-plt @itemx nomark-plt Mark PLT entries with dynamic tags, DT_X86_64_PLT, DT_X86_64_PLTSZ and DT_X86_64_PLTENT. Since this option stores a non-zero value in the r_addend field of R_X86_64_JUMP_SLOT relocations, the resulting executables and shared libraries are incompatible with dynamic linkers, such as those in older versions of glibc without the change to ignore r_addend in R_X86_64_GLOB_DAT and R_X86_64_JUMP_SLOT relocations, which don't ignore the r_addend field of R_X86_64_JUMP_SLOT relocations. Supported for x86_64. --=20 H.J.