From patchwork Sat Jan 6 07:32:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 856349 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-88891-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="gYq4x+fu"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zDCvM5g1nz9s1h for ; Sat, 6 Jan 2018 18:33:35 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:date:message-id:in-reply-to:references :cc:from:to; q=dns; s=default; b=Aatjkye5g9HlF/Ei/rgxJ9SWrhzuQgx VFbpcFWXoel5Rbqfd1DRgNB24yj8xb3EQVtshTvrXq6rgxb4xelwKYTjHPz2FFqo /k7xKp2/GV6U7Y+y3wkOfdgCcuahyvIFyU07SqWwajnQoEuG78CkDm3As4mzRbAl WTpmbSC2iMKk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:date:message-id:in-reply-to:references :cc:from:to; s=default; bh=d+jv6tyHlEQiNb6OL6KAvu4NXlM=; b=gYq4x +fuFOo95oFrcf7PaD+CaKWWV+JM1dzaGWa9ox79SYQeVxRLjAoW9AoYcZAC8+3PT fy6VAFf7KHJNAvaJ7/PJovnBY9OSo4VlwIiF3u2PbdJM6xnW/m8B9FVVhw4vrvV8 Z77KKJ5o5honb8+Y4/Fu0efNCpm26WvkDVXbX8= Received: (qmail 76493 invoked by alias); 6 Jan 2018 07:32:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 76303 invoked by uid 89); 6 Jan 2018 07:32:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pf0-f193.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :cc:from:to; bh=vwLT0E7eRVMm+U3QGHtoYuhFTxsqihNG3/gjhUdMHPA=; b=cwfJZ44XDkWKHvCDqgJbPSNyezaKS4bm9/RwRKaH17tqKMsMeuo0wGw3FUlceApmU0 LOmxGGZLkQqpPXfRaUTToKnJ1lwqrZHF7a/Qg1YhrGcH1bPnIXCAvzsBlhzEWkuWcQf1 6HgeCT6mDn9VG5an5+4IEf2qxGPDek5xTJnZcOBXZI/S/nGEeZxkL0s7e3u6rFvGB59/ DedhFFRCXKmyi+c4ssCMItP+qFWJBRvXTR4mWe6JdiNlQwqZfHbxSPuFrU9JaIp2hPPl 6fTBTn2n3GG+dWxy1VkLp/t8TAbUoGPiJgF17nm8TG0tB3zL6bso+kkqDEKJLGtgpici z8BQ== X-Gm-Message-State: AKGB3mIURLbtkXmZqaGtzp2nghyXmXrIiB7SteWa7K0a8I9zhFzp4hIT o0sfbnDH/cCiegZZZ1X7gc6Hkg/gCkU= X-Google-Smtp-Source: ACJfBoueTLzkfTDsCmJFWtAHb8emGjp4DCC5VLPT+HHiuQSAa+JAzTlwnbPQTM1MNfpppO34sJ6p4Q== X-Received: by 10.101.68.204 with SMTP id g12mr4739445pgs.120.1515223964343; Fri, 05 Jan 2018 23:32:44 -0800 (PST) Subject: [PATCH 4/4] Strip shared objects in subdirectories of lib Date: Fri, 5 Jan 2018 23:32:31 -0800 Message-Id: <20180106073231.20491-5-palmer@dabbelt.com> In-Reply-To: <20180106073231.20491-1-palmer@dabbelt.com> References: <20180106073231.20491-1-palmer@dabbelt.com> Cc: patches@groups.riscv.org, Palmer Dabbelt From: Palmer Dabbelt To: libc-alpha@sourceware.org, joseph@codesourcery.com, schwab@linux-m68k.org The RISC-V port will have libraries in subdirectories of lib, like "lib64/lp64d". This adds support for stripping these installed libraries. --- ChangeLog | 2 ++ scripts/build-many-glibcs.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 246d2326ab90..f9dd36033bc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New define. (VDSO_HASH_LINUX_4_15): Likewise. + * scripts/build-many-glibcs.py (class Glibc): Strip shared objects + in subdirectories of lib. 2018-01-06 Samuel Thibault diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index f358307424a6..75a920a1611e 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -1377,7 +1377,7 @@ class Glibc(object): if self.ctx.strip: cmdlist.add_command('strip', ['sh', '-c', - ('%s %s/lib*/*.so' % + ('%s $(find %s/lib* -name "*.so")' % (self.tool_name('strip'), installdir))]) cmdlist.add_command('check', ['make', 'check']) cmdlist.add_command('save-logs', [self.ctx.save_logs],