From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28820 invoked by alias); 4 Oct 2018 15:10:15 -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 28402 invoked by uid 89); 4 Oct 2018 15:10:15 -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=-1.9 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=-1.9 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-it1-f172.google.com Received: from mail-it1-f172.google.com (HELO mail-it1-f172.google.com) (209.85.166.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Oct 2018 15:10:14 +0000 Received: by mail-it1-f172.google.com with SMTP id w200-v6so14484723itc.4; Thu, 04 Oct 2018 08:10:13 -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=VxeDBJF1jmAiI6lzp6c1RkYMmFbCvlLhH+JQhzXoGIE=; b=sqbLHZ/e81TvZUiclDT/mimib0wCA1CQT++tP1qBUUwQvOQ+bjU/YiKybhliTquXa/ Bvw7E+qxraAWQWpxjsV+x7uRhZy/+SjOvMlwhGFVlliWxmI0sSvtFNyhXOdzjKSubPzn zeORlGSvfifR6LD0WTT4OOuYDF91vw+5L0vtVU6ugG7VSnbeGwWdkl3vbWAAnJa0SKxG FDDVX/r6N3yXs+M0OILr+7ocw0N0OW1kYMqnch8H0WlIxYg+LOL9rMSha5A8ZjiGo/8p ue69oOCy0qjyeoBJsA1IURO2Mpp8wKod/ZMMAq67Z9EFm1qKtnSUbCq169mhG7sOjJlx LggQ== 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=VxeDBJF1jmAiI6lzp6c1RkYMmFbCvlLhH+JQhzXoGIE=; b=oD89dIp00mOyV4wqyINL11Md7P9iy9DIIoNBaxz7gt1nKQJB+yVMlslSuEuVi8Qnpw C9V2st7zoE0F7Ig7ypi7PQpkUMcT5wj1MH5PXTGdZhC9wTIw7pwlaEHc9fhmN+V8fx4e nDDNEPP4BfDDM2LEnp6Nl5B4ZBJsTQsSrL3ruJDTfvmN37lrCxpZyoeYh9U2CRkL2ftp eNble8fwtGRwcVGfXtGt047P7nm2C0OqPF9NzvV5zYdzsPDurijscNGCI+rBNe8CU5ii ybhxYUkJmOTh3yt2vLdIcdBi8vJM/5djeO/SzNx2v9T+N/K6hRdvpNefndvLJSblh+oe Dn4g== X-Gm-Message-State: ABuFfojt/1D7DhJtVk2NiefUdT4iqM+khh/E8vF0Y6Zo0aJjt9lf18WO wBpmR8AK313u/s70t86Y1m8WEoqrl09DsMZ5nzx2Puny X-Google-Smtp-Source: ACcGV607EgeujbEvP2/Ics+m2jMIEyz0yABrzgSdlJChWexRifdvRX+Q2gFGxbZklia6DPdvStOGKG8otpw1gi664S0= X-Received: by 2002:a02:aa99:: with SMTP id u25-v6mr5562237jai.73.1538665812322; Thu, 04 Oct 2018 08:10:12 -0700 (PDT) MIME-Version: 1.0 References: <20181003075416.GD3179@bubble.grove.modra.org> <20181004021457.GE3179@bubble.grove.modra.org> In-Reply-To: <20181004021457.GE3179@bubble.grove.modra.org> From: Cary Coutant Date: Mon, 01 Jan 2018 00:00:00 -0000 Message-ID: Subject: Re: RFC: Add GNU_PROPERTY_NEED_PHDRS To: Alan Modra Cc: "H.J. Lu" , Michael Matz , Rich Felker , "Carlos O'Donell" , Florian Weimer , nsz@port70.net, Jan Beulich , Binutils , gnu-gabi@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-q4/txt/msg00012.txt.bz2 > If you specify PHDRS in a script, ld uses exactly those program > headers, and I believe it should continue to operate that way. So to > add PT_GNU_EH_FRAME, say, when an executable has .eh_frame_hdr, you'd > need a script with PT_GNU_EH_FRAME specified in PHDRS. And another > without PT_GNU_EH_FRAME when the executable doesn't have > .eh_frame_hdr. That soon becomes impractial considering the number of > optional headers, requiring auto-generation of the PHDRS script > snippet. Oh, I see. Yeah, that does make it impractical. Still, I'd like to understand why HJ claims it's intrusive to have ld create a PT_LOAD segment for the headers. I haven't tried it yet in gold (don't support -z separate-code), but it doesn't seem like it would be at all difficult or intrusive. -cary