scc

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

commit bea50a9fb4635fd90859754cd31e8756c21479b0
parent e7bca85de158f639a36b103140e5a7ed9c8cc7f8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 19 Jan 2025 10:14:35 +0100

objdump: Force one of the major flags to be used

Diffstat:
Msrc/cmd/scc-objdump/main.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/cmd/scc-objdump/main.c b/src/cmd/scc-objdump/main.c @@ -344,6 +344,12 @@ main(int argc, char *argv[]) usage(); } ARGEND + if (!aflag && !fflag && !hflag && !tflag) { + fputs("objdump: At lest one of [afht] flags must be used\n", + stderr); + usage(); + } + if (argc == 0) { objdump("a.out"); } else {