unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Charles Celerier <cceleri@cs.stanford.edu>
To: David Bremner <david@tethera.net>,
	Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: [PATCH v2 5/5] T360-symbol-hiding: Use nm instead of objdump.
Date: Sat, 10 May 2014 10:55:43 -0400	[thread overview]
Message-ID: <m24n0xy974.fsf@jane.lan> (raw)
In-Reply-To: <87lhua3qvv.fsf@maritornes.cs.unb.ca>

[-- Attachment #1: Type: text/plain, Size: 2108 bytes --]

David Bremner <david@tethera.net> writes:

> Charles Celerier <cceleri@cs.stanford.edu> writes:
>
>> At this point, I'm not sure how to create a better version of this
>> patch. Are we renaming functions in notmuch-private.h? Should we stick
>> with objdump or switch to using nm?
>
> I'd go with renaming any functions that start with notmuch to start with
> _notmuch.

Ok. Should I pull the patch from
id:1399402716-13714-1-git-send-email-cceleri@cs.stanford.edu into this
patch series?

> Since it seems neither nm nor objdump provides uniform output between
> OS/X and Linux, there isn't an obvious advantage to switching to nm. Any
> idea if objdump can be made to work (in this test) on OS/X ?

I can install GNU objdump on OS/X, but the problem seems to be that
objdump changes its output depending on the object file format (see -t
option documentation in objdump(1)). What does the output of nm look
like for you? Is really that different? Here is what my objdump output
looks like:

    $ objdump -t lib/*.o | sed -n '/\[\.text\] __\?notmuch/p' | tail
    00000000000009a0 g       0f SECT   01 0000 [.text] _notmuch_thread_get_authors
    0000000000000990 g       0f SECT   01 0000 [.text] _notmuch_thread_get_matched_messages
    0000000000000960 g       0f SECT   01 0000 [.text] _notmuch_thread_get_messages
    00000000000009d0 g       0f SECT   01 0000 [.text] _notmuch_thread_get_newest_date
    00000000000009c0 g       0f SECT   01 0000 [.text] _notmuch_thread_get_oldest_date
    00000000000009b0 g       0f SECT   01 0000 [.text] _notmuch_thread_get_subject
    00000000000009e0 g       0f SECT   01 0000 [.text] _notmuch_thread_get_tags
    0000000000000970 g       0f SECT   01 0000 [.text] _notmuch_thread_get_thread_id
    0000000000000950 g       0f SECT   01 0000 [.text] _notmuch_thread_get_toplevel_messages
    0000000000000980 g       0f SECT   01 0000 [.text] _notmuch_thread_get_total_messages

I suppose we could just account for the difference in output of objdump
on OS/X, but I was hoping that the output of nm would be more consistent
since its a simpler program.

chuck

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

  reply	other threads:[~2014-05-10 14:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06 17:02 [PATCH 0/5] Improving portability to Mac OS X Charles Celerier
2014-05-06 17:02 ` [PATCH 1/5] test/Makefile.local: Added configured TALLOC_LDFLAGS Charles Celerier
2014-05-06 17:02   ` [PATCH 2/5] configure, test: Added variables for paths to true and false Charles Celerier
2014-05-06 17:02     ` [PATCH 3/5] atomicity.gdb: Allow breakpoint symbols to be resolved later Charles Celerier
2014-05-06 17:02       ` [PATCH 4/5] T360-symbol-hiding: Added code to support testing on Mac OS X Charles Celerier
2014-05-06 17:02         ` [PATCH 5/5] T360-symbol-hiding: Use nm instead of objdump Charles Celerier
2014-05-06 18:21         ` [PATCH 4/5] T360-symbol-hiding: Added code to support testing on Mac OS X Tomi Ollila
2014-05-06 18:35           ` Charles Celerier
2014-05-06 19:09             ` Tomi Ollila
2014-05-06 18:26       ` [PATCH 3/5] atomicity.gdb: Allow breakpoint symbols to be resolved later Tomi Ollila
2014-05-08 12:32     ` [PATCH 2/5] configure, test: Added variables for paths to true and false David Bremner
2014-05-08 15:00       ` Charles Celerier
2014-05-08 22:14         ` David Bremner
2014-05-17 21:46   ` [PATCH 1/5] test/Makefile.local: Added configured TALLOC_LDFLAGS David Bremner
2014-05-07  3:50 ` [PATCH v2 4/5] T360-symbol-hiding: Added code to support testing on Mac OS X Charles Celerier
2014-05-07  3:50   ` [PATCH v2 5/5] T360-symbol-hiding: Use nm instead of objdump Charles Celerier
2014-05-08 13:06     ` David Bremner
2014-05-08 15:03       ` Charles Celerier
2014-05-08 22:07         ` David Bremner
2014-05-09  1:20           ` Charles Celerier
2014-05-10  9:49             ` David Bremner
2014-05-10 14:55               ` Charles Celerier [this message]
2014-07-12 19:00                 ` David Bremner
2014-07-13 15:36   ` [PATCH v2 4/5] T360-symbol-hiding: Added code to support testing on Mac OS X David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m24n0xy974.fsf@jane.lan \
    --to=cceleri@cs.stanford.edu \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).