summaryrefslogtreecommitdiff
path: root/pkg/binutils/ldemul.sh
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-02-29 23:58:59 -0800
committerMichael Forney <mforney@mforney.org>2020-03-01 20:48:09 -0800
commit95231e7f5ac6ce0c6f44379efc03cf5c095a29eb (patch)
tree710003fd40df9f8133ae73302e6ea239eeb16a1a /pkg/binutils/ldemul.sh
parent51acd63e8e6c901a191c99f23e9970bd9cd1eec8 (diff)
binutils: Generate ldemul-list.sh with a shell script
Diffstat (limited to 'pkg/binutils/ldemul.sh')
-rw-r--r--pkg/binutils/ldemul.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/binutils/ldemul.sh b/pkg/binutils/ldemul.sh
new file mode 100644
index 00000000..f80b8d50
--- /dev/null
+++ b/pkg/binutils/ldemul.sh
@@ -0,0 +1,4 @@
+printf 'extern ld_emulation_xfer_type ld_%s_emulation;\n' "$@"
+printf '#define EMULATION_LIST '
+printf '&ld_%s_emulation, ' "$@"
+printf '0\n'