From patchwork Fri Mar 19 20:07:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 42708 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C280C385041F; Fri, 19 Mar 2021 20:07:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C280C385041F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1616184462; bh=LUOWl2C4fVYWBqEJvFZ3pqBMdWFCb5912CYCl1GCHAQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Womet00TjWWI5m68Vq/dJWV0B+MBzv3MLtW0N/mLBdZN9pIUMsyhXrp9UuWQtumf8 GuhT7PXIxFQe4cTK8BZw/3ahjCmpwrYDbpkzEvIb2vnWECs3rJbB24bAysU9Q3JpcG zUnRBxVwjJMGRR3lQPoZ9WxnwrRGmp0DH9LaFuc0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id B3AB03857C73 for ; Fri, 19 Mar 2021 20:07:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B3AB03857C73 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-478-JK7y32lYMk6_IA1t3IiG9w-1; Fri, 19 Mar 2021 16:07:26 -0400 X-MC-Unique: JK7y32lYMk6_IA1t3IiG9w-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6350681746A for ; Fri, 19 Mar 2021 20:07:25 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-80.ams2.redhat.com [10.36.112.80]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AAC5B63B8C for ; Fri, 19 Mar 2021 20:07:24 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH v2 0/3] Transparent support for multiple symbol versions Message-Id: Date: Fri, 19 Mar 2021 21:07:35 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, 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: 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-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" This version uses the final path sysdeps/generic/libc-symver.h in the first patch, adds documentation for versioned_symbol and compat_symbol, and splits out the locale/lc-ctype.c change into its own patch. Thanks, Florian Florian Weimer (3): Change how the symbol_version_reference macro is defined locale: Use compat_symbol_reference in _nl_postload_ctype Fold compat_symbol_unique functionality into compat_symbol config.h.in | 4 ++ configure | 28 +++++++++++ configure.ac | 23 +++++++++ include/libc-symbols.h | 21 +++------ include/shlib-compat.h | 81 +++++++++++++++----------------- locale/lc-ctype.c | 14 +++--- malloc/malloc.c | 2 +- nptl/libpthread-compat.c | 16 +++---- sysdeps/generic/libc-symver.h | 88 +++++++++++++++++++++++++++++++++++ sysdeps/ia64/libc-symver.h | 33 +++++++++++++ time/clock_getcpuclockid.c | 3 +- time/clock_getres.c | 3 +- time/clock_gettime.c | 3 +- time/clock_nanosleep.c | 3 +- time/clock_settime.c | 3 +- 15 files changed, 242 insertions(+), 83 deletions(-) create mode 100644 sysdeps/generic/libc-symver.h create mode 100644 sysdeps/ia64/libc-symver.h