aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/stringify.sed
diff options
context:
space:
mode:
Diffstat (limited to 'ld/emultempl/stringify.sed')
-rw-r--r--ld/emultempl/stringify.sed4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/emultempl/stringify.sed b/ld/emultempl/stringify.sed
new file mode 100644
index 0000000..a526d3f
--- /dev/null
+++ b/ld/emultempl/stringify.sed
@@ -0,0 +1,4 @@
+s/["\\]/\\&/g
+s/$/\\n\\/
+1 s/^/"/
+$ s/$/n"/