aboutsummaryrefslogtreecommitdiff
path: root/ld/ldsym.c
diff options
context:
space:
mode:
authorMichael Tiemann <tiemann@cygnus>1992-02-02 21:12:25 +0000
committerMichael Tiemann <tiemann@cygnus>1992-02-02 21:12:25 +0000
commit58216160ef6573acb817676795cadab967afea2d (patch)
tree50e599f8c8197d916467aa336ebc4addb06707b0 /ld/ldsym.c
parent05cd8d982d8efb768cd39fe25fc66edf758a1f8e (diff)
downloadgdb-58216160ef6573acb817676795cadab967afea2d.zip
gdb-58216160ef6573acb817676795cadab967afea2d.tar.gz
gdb-58216160ef6573acb817676795cadab967afea2d.tar.bz2
Work around for problems in linking C++ programs that need file-level
initialization. Now C++ programs can be linked.
Diffstat (limited to 'ld/ldsym.c')
-rw-r--r--ld/ldsym.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldsym.c b/ld/ldsym.c
index 007d191..3ab8799 100644
--- a/ld/ldsym.c
+++ b/ld/ldsym.c
@@ -360,7 +360,10 @@ LANG_FOR_EACH_INPUT_STATEMENT(entry)
for (i = 0; i < entry->symbol_count; i++)
{
asymbol *p = entry->asymbols[i];
+ /* FIXME, temporary hack, since not all of ld knows about the new abs section convention */
+ if (p->section == 0)
+ p->section = &bfd_abs_section;
if (flag_is_global(p->flags) )
{
/* We are only interested in outputting