diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-12 17:53:05 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-12 17:53:05 -0600 |
commit | eb4e0bc7dd140b356a62071bf8e0427fc0cee816 (patch) | |
tree | c71d7daf1dfccf7e261c2fe22d7d5a0bd55bf34d /cmd/srv9p/static.h.gen | |
parent | 7508de2e4ec10baf46c7cde6e7774051ac19e95a (diff) |
get read working correctly
Diffstat (limited to 'cmd/srv9p/static.h.gen')
-rwxr-xr-x | cmd/srv9p/static.h.gen | 6 |
1 files changed, 6 insertions, 0 deletions
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' |