aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/.Sanitize1
-rw-r--r--ld/dep-in.sed16
2 files changed, 17 insertions, 0 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize
index 7b212e6..6c47375 100644
--- a/ld/.Sanitize
+++ b/ld/.Sanitize
@@ -43,6 +43,7 @@ config
config.h
configure.bat
configure.in
+dep-in.sed
emulparams
emultempl
genscripts.sh
diff --git a/ld/dep-in.sed b/ld/dep-in.sed
new file mode 100644
index 0000000..78a9cb5
--- /dev/null
+++ b/ld/dep-in.sed
@@ -0,0 +1,16 @@
+:loop
+/\\$/N
+/\\$/b loop
+
+s!@INCDIR@!$(INCDIR)!g
+s!@srcdir@/!!g
+s!\.\./bfd/hosts/[^ ]*\.h ! !g
+
+s/\\\n */ /g
+
+s/ *$//
+s/ */ /g
+/:$/d
+
+s/\(.\{50\}[^ ]*\) /\1 \\\
+ /g