From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by sourceware.org (Postfix) with ESMTPS id 6037D398B14F for ; Tue, 4 May 2021 12:30:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6037D398B14F Received: by mail-oi1-x233.google.com with SMTP id i26so8577373oii.3 for ; Tue, 04 May 2021 05:30:40 -0700 (PDT) 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=L3aeoRaWeJVaZs7SF6Pfpu9N7xDWTL6Ad2x9Pru5dv0=; b=IhOCga31iPweWJtBsZ5Ef2iPOvHUCMWxbSXy59i+kO780Vq+m6WfzOmdPQThv0i4Ux n886QDaTeRVUgDv01ibTynb1aU0sLqOmWaIJ06We7/Ip8ELdOssCFCN4TA2AwXH9IvV3 BT6NjapCdEd/PhU4r1oc9fEMDJIIY6stZaBi85/V8kvwpbundJ/fBLIKnH42B3dCLhSc gfliuJMYwnjojtv8nK+WzAhkduMx7gMfR0/sEMno2pTFhAg1aHg3PPWkP3SGoXCoeczz V2HLuaR4thShiZM9iWCG7x6cxTlX9VB6MCtIgdgPhVxH3xq/5lqDSnxONX0S/JUOcdMu ytkQ== X-Gm-Message-State: AOAM530PnvovYMn+JHDFlW5D3hjK488F8/GIVAnXmyx2sQ3tblLXLOdJ R6kwwBRYL24m2/LY37c/bwVdYARHlw/GcYRee/8= X-Google-Smtp-Source: ABdhPJx7H3H/KBN9e3TLwHBmHx106IQgDlTkMYl02cZKok2kusb0Rm6xlcYoV2KXPDx3XPVFoZ3l55s9XHU25+u0SPs= X-Received: by 2002:a05:6808:2d0:: with SMTP id a16mr17260952oid.116.1620131439860; Tue, 04 May 2021 05:30:39 -0700 (PDT) MIME-Version: 1.0 References: <87h7jqguew.fsf@oldenburg.str.redhat.com> <87k0oeln6s.fsf@oldenburg.str.redhat.com> <87wnsek7ku.fsf@oldenburg.str.redhat.com> In-Reply-To: <87wnsek7ku.fsf@oldenburg.str.redhat.com> From: "H.J. Lu" Date: Tue, 4 May 2021 05:30:03 -0700 Message-ID: Subject: Re: [RFC] elf: Implement filtering of symbols historically defined in libpthread To: Florian Weimer Cc: GNU C Library , Andreas Schwab Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3028.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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: 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, 04 May 2021 12:30:41 -0000 On Tue, May 4, 2021 at 5:27 AM Florian Weimer wrote: > > * H. J. Lu: > > >> The patch attempts to detect old main programs by looking for the > >> GLIBC_2.34 symbol version. Since we added __libc_start_main@@GLIBC_2.34 > >> (which is called from our version of _start), all standard main programs > >> linked with glibc 2.34 or later will have this symbol version. > > > Can we invent a symbol or version to detect the older binaries? > > If not, can GNU property, ABI note, .... help here? > > I think we have all we need due to __libc_start_main@@GLIBC_2.34. It > was an unrelated change, but it helps here as well. So your patch isn't required? Can you add some tests to verify it? -- H.J.