aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-26 10:36:54 +0930
committerAlan Modra <amodra@gmail.com>2023-08-26 10:57:00 +0930
commitb8a0c930580775e54bccdfdc77046db74331bad4 (patch)
tree32dd3fff95f0af843a129e6a9825d93f324f1099 /ld/emultempl
parent7b1fdf17d5a812a929e1eccda3cabb52171160e1 (diff)
downloadgdb-b8a0c930580775e54bccdfdc77046db74331bad4.zip
gdb-b8a0c930580775e54bccdfdc77046db74331bad4.tar.gz
gdb-b8a0c930580775e54bccdfdc77046db74331bad4.tar.bz2
ld STRINGIFY
Delete support for old compilers that don't support string concatentation. * Makefile.am (stringify.sed): Delete rule. (GEN_DEPENDS, DISTCLEANFILES): Adjust. * configure.ac (STRINGIFY): Delete. * emultempl/beos.em: Use stringify.sed from srcdir. * emultempl/elf.em: Likewise. * emultempl/generic.em: Likewise. * emultempl/msp430.em: Likewise. * emultempl/pdp11.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/stringify.sed: Renamed from.. * emultempl/astring.sed: ..this. * emultempl/ostring.sed: Delete. * Makefile.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/beos.em2
-rw-r--r--ld/emultempl/elf.em2
-rw-r--r--ld/emultempl/generic.em2
-rw-r--r--ld/emultempl/msp430.em2
-rw-r--r--ld/emultempl/ostring.sed4
-rw-r--r--ld/emultempl/pdp11.em2
-rw-r--r--ld/emultempl/pe.em2
-rw-r--r--ld/emultempl/pep.em2
-rw-r--r--ld/emultempl/stringify.sed (renamed from ld/emultempl/astring.sed)0
9 files changed, 7 insertions, 11 deletions
diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em
index 521d927..e597f34 100644
--- a/ld/emultempl/beos.em
+++ b/ld/emultempl/beos.em
@@ -718,7 +718,7 @@ then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
-sc="-f stringify.sed"
+sc="-f ${srcdir}/emultempl/stringify.sed"
fragment <<EOF
{
diff --git a/ld/emultempl/elf.em b/ld/emultempl/elf.em
index 3f67f8b..1c5030d 100644
--- a/ld/emultempl/elf.em
+++ b/ld/emultempl/elf.em
@@ -199,7 +199,7 @@ then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
-sc="-f stringify.sed"
+sc="-f ${srcdir}/emultempl/stringify.sed"
fragment <<EOF
{
diff --git a/ld/emultempl/generic.em b/ld/emultempl/generic.em
index c280ed3..b37a1e7 100644
--- a/ld/emultempl/generic.em
+++ b/ld/emultempl/generic.em
@@ -86,7 +86,7 @@ then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
-sc="-f stringify.sed"
+sc="-f ${srcdir}/emultempl/stringify.sed"
fragment <<EOF
{
diff --git a/ld/emultempl/msp430.em b/ld/emultempl/msp430.em
index 33fff78..65be045 100644
--- a/ld/emultempl/msp430.em
+++ b/ld/emultempl/msp430.em
@@ -104,7 +104,7 @@ then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
-sc="-f stringify.sed"
+sc="-f ${srcdir}/emultempl/stringify.sed"
fragment <<EOF
{
diff --git a/ld/emultempl/ostring.sed b/ld/emultempl/ostring.sed
deleted file mode 100644
index a526d3f..0000000
--- a/ld/emultempl/ostring.sed
+++ /dev/null
@@ -1,4 +0,0 @@
-s/["\\]/\\&/g
-s/$/\\n\\/
-1 s/^/"/
-$ s/$/n"/
diff --git a/ld/emultempl/pdp11.em b/ld/emultempl/pdp11.em
index c6dbdee..f5d2f4f 100644
--- a/ld/emultempl/pdp11.em
+++ b/ld/emultempl/pdp11.em
@@ -101,7 +101,7 @@ then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
-sc="-f stringify.sed"
+sc="-f ${srcdir}/emultempl/stringify.sed"
fragment <<EOF
{
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index 36f60d5..24dc19a 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -2511,7 +2511,7 @@ then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
-sc="-f stringify.sed"
+sc="-f ${srcdir}/emultempl/stringify.sed"
fragment <<EOF
{
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index 1df959a..289c72e 100644
--- a/ld/emultempl/pep.em
+++ b/ld/emultempl/pep.em
@@ -2342,7 +2342,7 @@ then
# Scripts compiled in.
# sed commands to quote an ld script as a C string.
-sc="-f stringify.sed"
+sc="-f ${srcdir}/emultempl/stringify.sed"
fragment <<EOF
{
diff --git a/ld/emultempl/astring.sed b/ld/emultempl/stringify.sed
index 08bd8a6..08bd8a6 100644
--- a/ld/emultempl/astring.sed
+++ b/ld/emultempl/stringify.sed