From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 88A41386EC42 for ; Wed, 16 Sep 2020 12:58:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 88A41386EC42 Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-407-rXfsOy-4OeKTskyegE6SDw-1; Wed, 16 Sep 2020 08:58:43 -0400 X-MC-Unique: rXfsOy-4OeKTskyegE6SDw-1 Received: by mail-qk1-f199.google.com with SMTP id w64so5916167qkc.14 for ; Wed, 16 Sep 2020 05:58:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=h7W1P6dG+kIKZCEa8RDrxFqLx9QzMS25yf+FVXU2Lps=; b=aWae6i/2s022ChE8y/pfpytPtyP1caUJgPognsARPztvgrNRbqCi94STIQnDLdwrou UpG/7GeDjHFqP19r6Y6utkGe39AsGMjR5343flxoJcyHV1FNsJSnNTUfTn+4uFgfH4uW BKWw3APCpfiBi/iBl7NNW7fcqihS5kBuZVAM8BO114guOOiZmqx3/hG/4x4kuaMFqGzB i4Ymz8ik3d+m1574aggBqXgrPnCP+q8ARgsZ1ikVpUBVatyNCRt0axCNAyo1paLQheUD S765h20xJKgrvZ5H3H91adGSLZ6MsyoRKgVrIMlV7lkttWP44L8erHEUa2Gqg5JZ3y3j LYmA== X-Gm-Message-State: AOAM530jw86KV2ImEdBhTrhvxt4/O7LlFVdlDjuXfdcO7HQw+tb7ZBXa c8OUUbVs0MpQvBcfzgW8S6w9X608qnqwz6y/edW/paRBUnsTlYJ7EqXg3bo1JzlHulk+9yHGHOY xhd6mVNQQ4Kl3V8ARWw== X-Received: by 2002:a0c:ab4a:: with SMTP id i10mr6600443qvb.39.1600261122950; Wed, 16 Sep 2020 05:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXKg+GFN/1xSMX6A4i3AO2Hdyhax6HfoeOZKsoTIr99756XLjVhD9b7M0UWGEy0LWqivKxRQ== X-Received: by 2002:a0c:ab4a:: with SMTP id i10mr6600429qvb.39.1600261122811; Wed, 16 Sep 2020 05:58:42 -0700 (PDT) Received: from [192.168.1.16] (198-84-214-74.cpe.teksavvy.com. [198.84.214.74]) by smtp.gmail.com with ESMTPSA id f8sm18776344qtx.81.2020.09.16.05.58.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Sep 2020 05:58:42 -0700 (PDT) Subject: Re: [RFC] SHF_GNU_RETAIN ELF Section Flag To: Jozef Lawrynowicz Cc: Florian Weimer , gnu-gabi@sourceware.org References: <20200915120632.bs36vkrbvmsoyvnu@jozef-acer-manjaro> <877dsvjl71.fsf@oldenburg2.str.redhat.com> <20200915123155.xpow3oxpzycsq3ie@jozef-acer-manjaro> <87v9gfi5cf.fsf@oldenburg2.str.redhat.com> <87mu1ri4ie.fsf@oldenburg2.str.redhat.com> <20200915132955.gmklbme6h5x5izha@jozef-acer-manjaro> <30f44461-67b1-2428-7b0d-9a49520524b3@redhat.com> <20200915165255.fm53szwcabht77ig@jozef-acer-manjaro> From: Carlos O'Donell Organization: Red Hat Message-ID: <95e4fd3d-1486-b700-29b0-8b126b24d0ca@redhat.com> Date: Wed, 16 Sep 2020 08:58:41 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200915165255.fm53szwcabht77ig@jozef-acer-manjaro> X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, 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: Wed, 16 Sep 2020 12:58:46 -0000 On 9/15/20 12:52 PM, Jozef Lawrynowicz wrote: > I suppose the most compelling use cases for SHF_GNU_RETAIN are when the > dependency cannot be expressed with references to ELF sections. You > can't use SHF_GROUP because there is nothing to group the section with. GRP_KEEP - Group of sections to always keep. Never discarded if included in the link. The benefit is you can give them a logical group name e.g. "cpu_features" and have more than one of them for accounting/documentation purposes. You can implement a "KEEP" source markup based on gas' .section directive? -- Cheers, Carlos.