From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932]) by sourceware.org (Postfix) with ESMTPS id AA7493858D28 for ; Tue, 7 Dec 2021 17:35:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AA7493858D28 Received: by mail-ua1-x932.google.com with SMTP id t13so28061208uad.9 for ; Tue, 07 Dec 2021 09:35:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=l7RJZE52qCrUihqZJ390CbCOb93xY+GQxFp4a7cPkHE=; b=deUXbNIh55NZ1LEPb9j+k+SGPuT+wO9smkQbaZOcx/Giixj7pxcgL+1zK9kgpHECjs BA267+FfKWbvwvPPN1CD+gsdFSg7Zr1bpvcuEuBHw40eJrW3TZ8c6msf3M7JKTLZ6fMu /EVdQ04dC10fFmgPs/Dwe0IohsLfrDPtsqlbLu8TKjznIiOYTzwh41BzTOxIUPkxVE4N 1yQAx+S4t87W2IpmYu37XRpSCmYY0nKWnrHESbGDCBMZ0Jku50RZHEc7apC2x5JnI3BA +scDllxs+Ym2ZMMDS6T4R5Y6PwAF4rz1bA0bx6kCB6ysGtASvwiQu3MMUGSl94Adv7zV 77jQ== X-Gm-Message-State: AOAM530UZueaYtTelgDdZK2ba2sW4NDFqM4MDVb3whH9RE6WTgCM2Aud r6+rPlTLBF0L9R1iLdFwNuHe3w== X-Google-Smtp-Source: ABdhPJypLX43jKMI/NvIcPgJWcEj2qPksVsTE7N1pGqlmlnjhsqhRLP7Fouv9CccSvg4QSO0KkVgWw== X-Received: by 2002:a67:310f:: with SMTP id x15mr45451729vsx.57.1638898551181; Tue, 07 Dec 2021 09:35:51 -0800 (PST) Received: from ?IPV6:2804:431:c7ca:a776:246c:70fd:1377:eec7? ([2804:431:c7ca:a776:246c:70fd:1377:eec7]) by smtp.gmail.com with ESMTPSA id j145sm223514vke.47.2021.12.07.09.35.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Dec 2021 09:35:50 -0800 (PST) Message-ID: Date: Tue, 7 Dec 2021 14:35:48 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [PATCH] elf: Add elf checks for main executable Content-Language: en-US To: Florian Weimer Cc: "H.J. Lu" , GNU C Library References: <20211119150329.2200675-1-adhemerval.zanella@linaro.org> <87bl1tmtxz.fsf@oldenburg.str.redhat.com> <873a6969-8c06-5233-2b4c-48360e120f07@linaro.org> <877dchlbb8.fsf@oldenburg.str.redhat.com> <6386c389-086d-e123-d4d6-a97777f207ed@linaro.org> <87czm8quz3.fsf@oldenburg.str.redhat.com> From: Adhemerval Zanella In-Reply-To: <87czm8quz3.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2021 17:35:53 -0000 On 07/12/2021 12:45, Florian Weimer wrote: > * Adhemerval Zanella: > >> It does, but only for specific configurations. bintutils does have a >> testcase for it, pr21375*, but not all configurations does bump because >> they do not require ABS relocations (for instance, for n64 -mmicromips >> --defsym hidn=1 does set the ABI version to 4). > > Should this tell us something at DT_RELR? That binutils doesn't help us > to prevent crashes for other features? I think it tell us that binutils support for DT_RELR or any other potential abi disruptive feature will need a better ABI enforce for all Linux or affected ABI. It seems that binutils support are not really unified with the multiples architectures and ABI. But I think it should be doable on linker side.