Commit c95e4713 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] ppc64: use nm --synthetic where available

On new toolchains we need to use nm --synthetic or we miss code symbols.  Sam,
I'm not thrilled about this patch but Im not sure of an easier way.  Any ideas?
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7cc1da1d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment