From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by sourceware.org (Postfix) with ESMTPS id BD1E2388A001 for ; Thu, 2 Apr 2020 11:55:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BD1E2388A001 Received: by mail-io1-xd2c.google.com with SMTP id i3so3201981ioo.13 for ; Thu, 02 Apr 2020 04:55:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FuGPRxsPjJi4ykHFTc/kJySnN1BkUeOooMm6DaOVfzY=; b=fr+37bv4Iyhni/ZF59wa6JypxSbW9X9uCzml/fNNvh12YaYJl6JGREXI+93KaDqWY2 RLRoeSoIxlwFRudImlrpmknZ2zKSGNruNx3nh4dsq7//YgGNulk1/+KEp2qzOrB3++Mx y/hkz/xdY5fBAV4Mgf+E0l+Lc2THX7EWN05HYmBKBp+vJhWExFMU4i+7j/Pqu8CPaudK 7mgB8u43kVfmtiIiBfyJVaQlmQmaN9LHXF7CyzE7Sj/e3A/doG2y09mDk3b3waCq4Ud+ a8w/Eu1HYuRPlv2rn4qwAD99af8618UroU6vwfcVVoV//AweHaOAATAgRo8hzmKDrdzA aV5g== X-Gm-Message-State: AGi0PuZJhir9CvwEc24n5lAsUazw+aoSPBMCwKDI3XsoSFXXWUd+stfZ zR/uR0SAYBQx8RprKIAQIyZJEtcPeDXeLfHXtSM= X-Google-Smtp-Source: APiQypLuBOw5TLnyKy5YAH1qlJLjf19Ud8/bOjbnsWueH6DCMyWMfnROogH3fZuRNuDsW4IH5RIsTsBgP93zOdWfudE= X-Received: by 2002:a02:40c9:: with SMTP id n192mr2869631jaa.91.1585828506180; Thu, 02 Apr 2020 04:55:06 -0700 (PDT) MIME-Version: 1.0 References: <20200331044350.808132-1-hjl.tools@gmail.com> <20200331061751.qjcv7z5z4rbyu45l@gmail.com> <20200402032454.GD4583@bubble.grove.modra.org> In-Reply-To: <20200402032454.GD4583@bubble.grove.modra.org> From: "H.J. Lu" Date: Thu, 2 Apr 2020 04:54:29 -0700 Message-ID: Subject: Re: V6 [PATCH] x86: Only allow S - A relocations against absolute symbol To: Alan Modra Cc: Binutils Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_1, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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, 02 Apr 2020 11:55:08 -0000 On Wed, Apr 1, 2020 at 8:25 PM Alan Modra wrote: > > Seen here on Ubuntu 18.04 when using a number of different gcc > versions. > > FAIL: Run pr25749-1bb (-no-pie -fno-PIE) > FAIL: Run pr25749-1bb (-pie -fPIE) > FAIL: Run pr25749-2ab (-no-pie -fno-PIE) > FAIL: Run pr25749-2ab (-pie -fPIE) Ubuntu 18.04 has glibc 2.27 which doesn't have commit e7feec374c635b6a29d65c39ae5e1855528fed39 Author: Maciej W. Rozycki Date: Wed Apr 4 23:09:37 2018 +0100 elf: Correct absolute (SHN_ABS) symbol run-time calculation [BZ #19818] Do not relocate absolute symbols by the base address. Such symbols have SHN_ABS as the section index and their value is not supposed to be affected by relocation as per the ELF gABI[1]: "SHN_ABS The symbol has an absolute value that will not change because of relocation." Glibc 2.28 and above are OK. -- H.J.