From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id E9FA93971C75 for ; Tue, 15 Sep 2020 12:31:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E9FA93971C75 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mittosystems.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jozef.l@mittosystems.com Received: by mail-wm1-x331.google.com with SMTP id w2so3201916wmi.1 for ; Tue, 15 Sep 2020 05:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mittosystems.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lrrbIGg0PBrg8pyNepxWUzbJg+PkyUYdKyrr14V62t4=; b=irIYXKl3mvO2EnVJtVDnIQTRejUdbfNknGrgdLzWMBG3kOt4YT934VZ3S3VRLuUJ/C LqsKXmoOPGlybSwLuZL5qS6OHbzSWHJJYTTwvBJihZMJ7siJHD81oVKRT61eUPZqnvIQ mX1ekHmEpIsZavIi8FbYTiSW6ej8H9x3w+nOdHpfHXnNsaQD0y95SeqWHrKB7uyAGwXd qoWv3pqBB+NoBMIP2+6U1s0jz9TFT12W6a7S6RIqtyGTka7myillsAtwvA3ovsRGvN9c tECdsNqpVYelMa35v0HErnbiOYduLi5J5Gfi782o00ZHEBM2S0V+jQeE4rO3LGhn+a/s Bx6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lrrbIGg0PBrg8pyNepxWUzbJg+PkyUYdKyrr14V62t4=; b=Vfl4ABev0TcQFDOlMvdqTuVevDlBM83VPhewZxV6Lb5m+Fu/VbQkxXtsSVRZ+BKcYD 5oMBSVeKrexdauHigBVwIP95yYLiK7lDBxLAW2lzd/IkD13pegPgKG9PT/i1WOVTXfIF ukT3HjaE0fV3vC5DdilkCqHX4Wy6/OI2saDHqQx95rFJ0CMTscf+tRIR3ax5yhUoZzs1 HRt+eC2Qda7H09aOFUtscRRzRHFFs+X5EbyCEopmP++8b+EHi4J/4a7KQL/jueaCDTZg Dt/oB2HerOLI5RQIVv0DswWPAYbovc/OL5rVOLdhJ+fSwBkwBWJ6ifmo7RnDaFxMOUPc e4XQ== X-Gm-Message-State: AOAM533iqxuRYjq/hkmz0RtS22OtVzEs+RK7HmXEq1KlI0JjDPC8Pfyg SltwN5Xms6X6kas8ADqpHZWbwA== X-Google-Smtp-Source: ABdhPJz/pjZyXGypWEYtWP7M3gI7b9X7UcXewl8v4tsA6l63EIe3AOWOU3uu5ZYDYduSmeG9N1K6hg== X-Received: by 2002:a7b:c848:: with SMTP id c8mr4242859wml.184.1600173117082; Tue, 15 Sep 2020 05:31:57 -0700 (PDT) Received: from jozef-acer-manjaro ([2a01:4b00:87fd:900:5e1d:5c99:56da:76e8]) by smtp.gmail.com with ESMTPSA id z13sm26099407wro.97.2020.09.15.05.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 05:31:56 -0700 (PDT) Date: Tue, 15 Sep 2020 13:31:55 +0100 From: Jozef Lawrynowicz To: Florian Weimer Cc: gnu-gabi@sourceware.org Subject: Re: [RFC] SHF_GNU_RETAIN ELF Section Flag Message-ID: <20200915123155.xpow3oxpzycsq3ie@jozef-acer-manjaro> References: <20200915120632.bs36vkrbvmsoyvnu@jozef-acer-manjaro> <877dsvjl71.fsf@oldenburg2.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877dsvjl71.fsf@oldenburg2.str.redhat.com> X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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: gnu-gabi@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnu-gabi mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2020 12:31:59 -0000 On Tue, Sep 15, 2020 at 02:09:22PM +0200, Florian Weimer wrote: > * Jozef Lawrynowicz: > > > I'd like to propose a new ELF section flag, SHF_GNU_RETAIN, for addition > > to the GNU gABI. > > > > This flag instructs the linker to "retain" the section in the output > > file, even if garbage collection would remove it because it appears > > unused. > > How does this flag interaction with libraries (.a files)? If a section in a library has SHF_GNU_RETAIN set, and that library gets searched by the linker for some undefined symbol, then the SHF_GNU_RETAIN section will also be pulled into the program, and retained in the linked output file. Thanks, Jozef