scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit a4c16d5f8e4ca22c7aebb3ff2f3de953325bf42c
parent fb59273a4d69ca038ef6f5bd9d6b738254720943
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 17 Jan 2025 22:51:14 +0100

dump: Rename from objdump

This tool was just a scam that had nothing in common
with objdump. We are in a moment where having a objdump
tool makes sense, so we can begin to have a proper one
and meanwhile we rename objdump to dump in order to
iterate over objdump without breaking the tests.

Diffstat:
Mscripts/proto.all | 2+-
Msrc/cmd/Makefile | 2+-
Msrc/cmd/scc-cc/posix/scc.sh | 2+-
Rsrc/cmd/scc-objdump.c -> src/cmd/scc-dump.c | 0
Mtests/as/execute/test.sh | 2+-
5 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/proto.all b/scripts/proto.all @@ -10,7 +10,7 @@ f 755 bin/scc-ld f 755 bin/scc-make f 755 bin/scc-nm f 755 bin/scc-objcopy -f 755 bin/scc-objdump +f 755 bin/scc-dump f 755 bin/scc-ranlib f 755 bin/scc-size f 755 bin/scc-strip diff --git a/src/cmd/Makefile b/src/cmd/Makefile @@ -15,7 +15,7 @@ TARGET =\ scc-strip\ scc-size\ scc-ranlib\ - scc-objdump\ + scc-dump\ scc-objcopy\ scc-addr2line\ diff --git a/src/cmd/scc-cc/posix/scc.sh b/src/cmd/scc-cc/posix/scc.sh @@ -13,7 +13,7 @@ then fi case $1 in -cc|cpp|as|ar|addr2line|ld|make|nm|objcopy|objdump|size|strip) +cc|cpp|as|ar|addr2line|ld|make|nm|objcopy|dump|size|strip) tool=$1 shift exec $SCCPREFIX/bin/scc-$tool $@ diff --git a/src/cmd/scc-objdump.c b/src/cmd/scc-dump.c diff --git a/tests/as/execute/test.sh b/tests/as/execute/test.sh @@ -26,7 +26,7 @@ sed -n '/^\#/ ! { nl -b a > $tmp1 -scc objdump | +scc dump | sed -n '/^data:/,$ { /^data:/ ! { s%.*:%%