From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16513 invoked by alias); 2 Oct 2018 15:44:12 -0000 Mailing-List: contact gnu-gabi-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: gnu-gabi-owner@sourceware.org Received: (qmail 16493 invoked by uid 89); 2 Oct 2018 15:44:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-oi1-f182.google.com Received: from mail-oi1-f182.google.com (HELO mail-oi1-f182.google.com) (209.85.167.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 02 Oct 2018 15:44:10 +0000 Received: by mail-oi1-f182.google.com with SMTP id l197-v6so1883835oib.8; Tue, 02 Oct 2018 08:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3a76WjQlaqRuXhpa0caVCEoySxlwez6wsDmAzEGYcOw=; b=nj4HPp/LoP9IvBLKwzu4KbKHJ7hFg6PsdPWO94nsWpPpOjVWLgeABxcymk3mz0uLXc tRJ+Uipt7+a+JHRY+IA2XjTVPTKNpf0AkXXvXTgvH5D53MnLo/ivIkPsN8ax52cpcju7 3A7T7gSl4MZg7rX9euLMSCNf+zkcV135zAOnrSRVUcrrudZLLQV49U1Y7Z6hWSixoQSb MPLER57aRDKWgsdwmJobV8B2rjfrOcjFEmzvHHeMmRehsjnImev0YHokbRPgC2Q/y6hQ cNLC/biEaad8S4WxcI1WT7yylZoCOYkJeSsZP5NVKZ5+CZIvyTWg+kKypkDagrawX0GQ fZJA== 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=3a76WjQlaqRuXhpa0caVCEoySxlwez6wsDmAzEGYcOw=; b=Tp0XO5sqqv0VmXROC03XYCxg4YxnTr0gW5RZ6pAvXove1HC80jnN44HGDdeh0oGdqn G02tTgDHhy5lFNvhyAK1fdN8oGd0wnsVSssnYEToP8bCVylMdRdAk5Egy4Xc4FTMfPAm eTbn3S0DyCOtivC1aoKxygbwiaR4yfRveTJeRlOhI+calmn8Kt+qHbuk+YE2MTPhqGwR nuFxrSMJS1oahi8/MvOmJSWnNT0leAKTPdDkYtdKSdEegLQjBj4+p1rmVdhY1u98GEL/ qGIteFgET7OqEbgrxvDa6jPP2A1A3HRkIfu8zj3WpFSSVLs3QMCkEsnP623eFcKESKjC Pf1g== X-Gm-Message-State: ABuFfojE2gzePkDNr4jdu97edTOp6BuLT5AADAN5VYf473F2Qbh2h0NU TSTO6H41Q1T0DYaTAQIoBKR8sBrLn/JGvgOKDG8= X-Google-Smtp-Source: ACcGV621WDcmPG1EcCHE2BnS9GaWaK1k81jEIUZEyjOxAHBGqBbVvoEnSLvEB+pZ0ZmJfyhWVna5tRzL4yioaxEWjhc= X-Received: by 2002:aca:3203:: with SMTP id y3-v6mr7186214oiy.70.1538495048842; Tue, 02 Oct 2018 08:44:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "H.J. Lu" Date: Mon, 01 Jan 2018 00:00:00 -0000 Message-ID: Subject: Re: RFC: Add GNU_PROPERTY_NEED_PHDRS To: Michael Matz Cc: Rich Felker , Cary Coutant , "Carlos O'Donell" , Florian Weimer , Szabolcs Nagy , Jan Beulich , Binutils , gnu-gabi@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-q4/txt/msg00005.txt.bz2 On Tue, Oct 2, 2018 at 8:38 AM Michael Matz wrote: > > Hi, > > On Tue, 2 Oct 2018, H.J. Lu wrote: > > > > Yes, and it's a hack. This section isn't necessary, it merely is the > > > easiest (?) way you found to force ld to create the PT_LOAD segment > > > you want. What about linker scripts that filter out all .note > > > sections? You _still_ want the phdrs to be mapped in that case. You > > > basically replace the current state (where the phdrs are mapped by > > > accident) with a different state that still only works by accident. > > > It would be better to make this work by design not accident. > > > > If linker script discards a section, all bets are off. Anything can > > happen. > > I disagree, but even if I'd agree your solution still is more accidental > than by design. You want to guarantee something about program headers, so > any solution that doesn't do anything specific about/with program headers > is similarly accidental. > Nothing is guaranteed when linker script is used since anything can happen with linker script. -- H.J.