[PATCH] create System.map from xen-syms

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] create System.map from xen-syms

Greg Edwards
Having a System.map file for the xen kernel can be handy at times.  This
just does the same thing as the linux/scripts/mksysmap script.

Signed-off-by: Greg Edwards <[hidden email]>


 xen/arch/ia64/Makefile |    2 ++
 1 files changed, 2 insertions(+)

Index: a/xen/arch/ia64/Makefile
===================================================================
--- a/xen/arch/ia64/Makefile 2005-05-23 10:50:29.902793176 -0500
+++ b/xen/arch/ia64/Makefile 2005-05-23 10:50:48.692622344 -0500
@@ -29,6 +29,8 @@ default: $(OBJS) head.o ia64lib.o xen.ld
  $(LD) $(LDFLAGS) -T $(BASEDIR)/arch/$(TARGET_ARCH)/xen.lds.s -N \
  -Map map.out head.o $(ALL_OBJS) -o $(TARGET)-syms
  $(OBJCOPY) -R .note -R .comment -S $(TARGET)-syms $(TARGET)
+ $(NM) -n $(TARGET)-syms | grep -v '\( [aUw] \)\|\(__crc_\)\|\( \$[adt]\)'\
+ > $(BASEDIR)/System.map
 
 asm-offsets.s: asm-offsets.c $(BASEDIR)/include/asm-ia64/.offsets.h.stamp
  $(CC) $(CFLAGS) -S -o $@ $<

_______________________________________________
Xen-ia64-devel mailing list
[hidden email]
http://lists.xensource.com/xen-ia64-devel