aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2009-01-05 12:17:43 +0000
committerKai Tietz <kai.tietz@onevision.com>2009-01-05 12:17:43 +0000
commitd34c1c51b3c3fbc5a8fb2eb3bf73753857f8dd24 (patch)
treed540b9b705ca99d889cf9d87c87249ebe4c16d45 /ld
parent588be41a616eecb806105850fb533bc56f5b3552 (diff)
downloadgdb-d34c1c51b3c3fbc5a8fb2eb3bf73753857f8dd24.zip
gdb-d34c1c51b3c3fbc5a8fb2eb3bf73753857f8dd24.tar.gz
gdb-d34c1c51b3c3fbc5a8fb2eb3bf73753857f8dd24.tar.bz2
2009-01-05 Kai Tietz <kai.tietz@onevision.com>
* emultempl/pe.em: Prefix dollar characters to be outputed in generated C file. * emultempl/pep.em: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emultempl/pe.em14
-rw-r--r--ld/emultempl/pep.em8
3 files changed, 17 insertions, 11 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index b7a9485..a87bbad 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-05 Kai Tietz <kai.tietz@onevision.com>
+
+ * emultempl/pe.em: Prefix dollar characters to be outputed in
+ generated C file.
+ * emultempl/pep.em: Likewise.
+
2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
* NEWS: Mention new feature --exclude-modules-for-implib.
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index f902812..26a70a7 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -1300,14 +1300,14 @@ gld_${EMULATION_NAME}_after_open (void)
import libraries which are dead code and eliminates them
from the final link. For each exported symbol <sym>, there
is a object file in the import library with a .text section
- and several .idata$* sections. The .text section contains the
+ and several .idata\$* sections. The .text section contains the
symbol definition for <sym> which is a jump stub of the form
- jmp *__imp_<sym>. The .idata$5 contains the symbol definition
+ jmp *__imp_<sym>. The .idata\$5 contains the symbol definition
for __imp_<sym> which is the address of the slot for <sym> in
the import address table. When a symbol is imported explicitly
using __declspec(dllimport) declaration, the compiler generates
a reference to __imp_<sym> which directly resolves to the
- symbol in .idata$5, in which case the jump stub code is not
+ symbol in .idata\$5, in which case the jump stub code is not
needed. The following code tries to identify jump stub sections
in import libraries which are not referred to by anyone and
marks them for exclusion from the final link. */
@@ -1625,7 +1625,7 @@ gld_${EMULATION_NAME}_finish (void)
We use this to put sections in a reasonable place in the file, and
to ensure that they are aligned as required.
- We handle grouped sections here as well. A section named .foo$nn
+ We handle grouped sections here as well. A section named .foo\$nn
goes into the output section .foo. All grouped sections are sorted
by name.
@@ -1645,7 +1645,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s,
/* Look through the script to see where to place this section. */
if (!link_info.relocatable
- && (dollar = strchr (secname, '$')) != NULL)
+ && (dollar = strchr (secname, '\$')) != NULL)
{
size_t len = dollar - secname;
char *newname = xmalloc (len + 1);
@@ -1754,7 +1754,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s,
{
bfd_boolean found_dollar;
- /* The section name has a '$'. Sort it with the other '$'
+ /* The section name has a '\$'. Sort it with the other '\$'
sections. */
found_dollar = FALSE;
for ( ; *pl != NULL; pl = &(*pl)->header.next)
@@ -1768,7 +1768,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s,
ls = &(*pl)->input_section;
lname = bfd_get_section_name (ls->section->owner, ls->section);
- if (strchr (lname, '$') == NULL)
+ if (strchr (lname, '\$') == NULL)
{
if (found_dollar)
break;
diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em
index 721fc23..f921c1e 100644
--- a/ld/emultempl/pep.em
+++ b/ld/emultempl/pep.em
@@ -1419,7 +1419,7 @@ gld_${EMULATION_NAME}_finish (void)
We use this to put sections in a reasonable place in the file, and
to ensure that they are aligned as required.
- We handle grouped sections here as well. A section named .foo$nn
+ We handle grouped sections here as well. A section named .foo\$nn
goes into the output section .foo. All grouped sections are sorted
by name.
@@ -1439,7 +1439,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s,
/* Look through the script to see where to place this section. */
if (!link_info.relocatable
- && (dollar = strchr (secname, '$')) != NULL)
+ && (dollar = strchr (secname, '\$')) != NULL)
{
size_t len = dollar - secname;
char *newname = xmalloc (len + 1);
@@ -1548,7 +1548,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s,
{
bfd_boolean found_dollar;
- /* The section name has a '$'. Sort it with the other '$'
+ /* The section name has a '\$'. Sort it with the other '\$'
sections. */
found_dollar = FALSE;
for ( ; *pl != NULL; pl = &(*pl)->header.next)
@@ -1562,7 +1562,7 @@ gld_${EMULATION_NAME}_place_orphan (asection *s,
ls = &(*pl)->input_section;
lname = bfd_get_section_name (ls->section->owner, ls->section);
- if (strchr (lname, '$') == NULL)
+ if (strchr (lname, '\$') == NULL)
{
if (found_dollar)
break;