John Levon
2006-Oct-18 14:24 UTC
[Xen-devel] Re: [Xen-changelog] [xen-unstable] Avoid need for GREP variable by avoiding GNUisms. The
On Wed, Oct 18, 2006 at 02:10:11PM +0000, Keir Fraser wrote:> - $(NM) $(TARGET) | grep -v ''\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)'' | sort > System.map > + $(NM) -n $(TARGET) | grep -v ''\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)'' > System.mapSadly: -n Sorts external symbols by name before they are printed.> + `$(NM) -nr $(TARGET)-syms | head -n 1 | sed -e ''s/^\([^ ]*\).*/0x\1/''`and -r Prepends the name of the object file or archive to each output line. regards, john _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Oct-18 14:34 UTC
Re: [Xen-devel] Re: [Xen-changelog] [xen-unstable] Avoid need for GREP variable by avoiding GNUisms. The
On 18/10/06 15:24, "John Levon" <levon@movementarian.org> wrote:> Sadly: > > -n Sorts external symbols by name before they > are printed.Sorts numerically with GNU nm.> and > > -r Prepends the name of the object file or > archive to each output line.Reverses the sort order with GNU nm. You set NM=gnm, so you should be okay with the GNUisms. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel