From eb4e0bc7dd140b356a62071bf8e0427fc0cee816 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 12 Oct 2024 17:53:05 -0600 Subject: get read working correctly --- cmd/srv9p/static.h.gen | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 cmd/srv9p/static.h.gen (limited to 'cmd/srv9p/static.h.gen') diff --git a/cmd/srv9p/static.h.gen b/cmd/srv9p/static.h.gen new file mode 100755 index 0000000..1c4d7b1 --- /dev/null +++ b/cmd/srv9p/static.h.gen @@ -0,0 +1,6 @@ +#!/bin/sh + +nm --format=posix "$@" | + sed -n -E \ + -e 's/(.*_(end|start)) D .*/extern char \1[];/p' \ + -e 's/(.*_size) A .*/extern size_t \1;/p' -- cgit v1.2.3-2-g168b