From owner-freebsd-toolchain@FreeBSD.ORG Sun Jan 25 01:56:30 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9784D512 for ; Sun, 25 Jan 2015 01:56:30 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 74139F03 for ; Sun, 25 Jan 2015 01:56:30 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0P1uU8N083703 for ; Sun, 25 Jan 2015 01:56:30 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0P1uU4H083702; Sun, 25 Jan 2015 01:56:30 GMT (envelope-from mat) Date: Sun, 25 Jan 2015 01:56:30 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Updated, 49 lines] D1663: elfcopy: Consider program name to start after last - Message-ID: <18cb496227f1362cc9d139e917b5f386@localhost.localdomain> X-Priority: 3 Thread-Topic: D1663: elfcopy: Consider program name to start after last - X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MmIzOTgyNDQ4MmQ4ZWYwOWUzODk0MWNiN2M5IFTETU4= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2015 01:56:30 -0000 emaste updated this revision to Diff 3417. emaste added a comment. This revision now requires review to proceed. Just compare the end of the program name with strip/mcs rather than looking for a dash. This is the way it's done in FreeBSD ar/ranlib already, and allows names like bsdstrip. Also add a test case. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D1663?vs=3416&id=3417 REVISION DETAIL https://reviews.freebsd.org/D1663 AFFECTED FILES elfcopy/main.c test/elfcopy/func.sh test/elfcopy/tc/strip-basename-1/strip-basename-1.sh To: emaste, dim Cc: dim, freebsd-toolchain