1 Return-Path: <david@tethera.net>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 160B4431FBF
\r
6 for <notmuch@notmuchmail.org>; Thu, 8 May 2014 06:08:53 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id q9psHPrztfRn for <notmuch@notmuchmail.org>;
\r
16 Thu, 8 May 2014 06:08:45 -0700 (PDT)
\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net
\r
18 [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 683B5431FAE
\r
21 for <notmuch@notmuchmail.org>; Thu, 8 May 2014 06:08:45 -0700 (PDT)
\r
22 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim
\r
23 4.72) (envelope-from <david@tethera.net>)
\r
24 id 1WiO2q-0007EP-2e; Thu, 08 May 2014 13:07:28 +0000
\r
25 Received: (nullmailer pid 19400 invoked by uid 1000); Thu, 08 May 2014
\r
27 From: David Bremner <david@tethera.net>
\r
28 To: Charles Celerier <cceleri@cs.stanford.edu>, Notmuch Mail
\r
29 <notmuch@notmuchmail.org>
\r
30 Subject: Re: [PATCH v2 5/5] T360-symbol-hiding: Use nm instead of objdump.
\r
31 In-Reply-To: <1399434615-28425-2-git-send-email-cceleri@cs.stanford.edu>
\r
32 References: <1399395748-44920-1-git-send-email-cceleri@cs.stanford.edu>
\r
33 <1399434615-28425-1-git-send-email-cceleri@cs.stanford.edu>
\r
34 <1399434615-28425-2-git-send-email-cceleri@cs.stanford.edu>
\r
35 User-Agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1
\r
36 (x86_64-pc-linux-gnu)
\r
37 Date: Thu, 08 May 2014 22:06:44 +0900
\r
38 Message-ID: <87d2fov2qj.fsf@maritornes.cs.unb.ca>
\r
40 Content-Type: text/plain
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Thu, 08 May 2014 13:08:53 -0000
\r
55 Charles Celerier <cceleri@cs.stanford.edu> writes:
\r
56 > test_begin_subtest 'comparing existing to exported symbols'
\r
57 > -objdump -t $TEST_DIRECTORY/../lib/*.o | awk '$4 == ".text" && $6 ~ "^notmuch" {print $6}' | sort | uniq > ACTUAL
\r
58 > +nm -g $TEST_DIRECTORY/../lib/*.o | sed -n 's/.*\s\+T\s\+_\(notmuch_.*\)/\1/p' | sort | uniq > ACTUAL
\r
59 > sed -n 's/[[:blank:]]*\(notmuch_[^;]*\);/\1/p' $TEST_DIRECTORY/../notmuch.sym | sort | uniq > EXPORTED
\r
61 Hmm. It seems like the _ there is wrong. It grabs all of the symbols
\r
62 starting with _notmuch, which are symbols we _don't_ want exported.
\r
63 It makes me wonder what ends up in "notmuch.sym" on MacOS, if that test
\r