[PATCH] [ppc64] Use nm --synthetic where available
Anton Blanchard
anton at samba.org
Fri Sep 10 19:15:58 EST 2004
On new toolchains we need to use nm --synthetic or we miss code symbols.
Sam, Im not thrilled about this patch but Im not sure of an easier way.
Any ideas?
Signed-off-by: Anton Blanchard <anton at samba.org>
diff -puN arch/ppc64/Makefile~nm_synthetic arch/ppc64/Makefile
--- gr_work/arch/ppc64/Makefile~nm_synthetic 2004-09-01 03:45:49.180788436 -0500
+++ gr_work-anton/arch/ppc64/Makefile 2004-09-01 03:46:31.467604301 -0500
@@ -22,6 +22,12 @@ LD := $(LD) -m elf64ppc
CC := $(CC) -m64
endif
+new_nm := $(shell if $(NM) --help 2>&1 | grep -- '--synthetic' > /dev/null; then echo y; else echo n; fi)
+
+ifeq ($(new_nm),y)
+NM := $(NM) --synthetic
+endif
+
CHECKFLAGS += -m64 -D__powerpc__=1
LDFLAGS := -m elf64ppc
_
More information about the Linuxppc64-dev
mailing list