summaryrefslogtreecommitdiff
path: root/cmd/srv9p/static.h.gen
diff options
context:
space:
mode:
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'