summaryrefslogtreecommitdiff
path: root/cmd/srv9p/static.h.gen
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-31 15:39:37 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-31 16:00:34 -0600
commit3c81186daf97cf7011fd2806dfd0bc3b875e92f3 (patch)
tree30a6a4b50ab2eb15e7c6dcf934dc6052bbea0224 /cmd/srv9p/static.h.gen
parentf2d53195fd86023d2ff9fcce68d2e150bfd97059 (diff)
Clean up the build system
Diffstat (limited to 'cmd/srv9p/static.h.gen')
-rwxr-xr-xcmd/srv9p/static.h.gen10
1 files changed, 0 insertions, 10 deletions
diff --git a/cmd/srv9p/static.h.gen b/cmd/srv9p/static.h.gen
deleted file mode 100755
index a93419f..0000000
--- a/cmd/srv9p/static.h.gen
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-# srv9p/static.h.gen - Generate C definitions for GNU `ld -r -b binary` files
-#
-# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
-# SPDX-License-Identifier: AGPL-3.0-or-later
-
-nm --format=posix "$@" |
- sed -n -E \
- -e 's/(.*_(end|start)) D .*/extern char \1[];/p' \
- -e 's/(.*_size) A .*/extern size_t \1;/p'