Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: remove arch/parisc/nm

Parisc overrides 'nm' with a shell script. I was hit by a false-positive
error of $(NM) because this script returns the exit status of grep
instead of ${CROSS_COMPILE}nm. (grep returns 1 if no lines were selected)

I tried to fix it, but in the code review, Helge suggested to remove it
entirely. [1]

This script was added in 2003. [2]

Presumably, it was a workaround for old toolchains (but even the parisc
maintainer does not know the detail any more).

Hopefully, recent tools should work fine.

[1]: https://lore.kernel.org/all/1c12cd26-d8aa-4498-f4c0-29478b9578fe@gmx.de/
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=36eaa6e4c0e0b6950136b956b72fd08155b92ca3

Suggested-by: Helge Deller <deller@gmx.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Helge Deller <deller@gmx.de>

-7
-1
arch/parisc/Makefile
··· 18 18 boot := arch/parisc/boot 19 19 KBUILD_IMAGE := $(boot)/bzImage 20 20 21 - NM = sh $(srctree)/arch/parisc/nm 22 21 CHECKFLAGS += -D__hppa__=1 23 22 24 23 ifdef CONFIG_64BIT
-6
arch/parisc/nm
··· 1 - #!/bin/sh 2 - ## 3 - # Hack to have an nm which removes the local symbols. We also rely 4 - # on this nm being hidden out of the ordinarily executable path 5 - ## 6 - ${CROSS_COMPILE}nm $* | grep -v '.LC*[0-9]*$'