diff options
author | Michael Tiemann <tiemann@cygnus> | 1992-02-02 21:12:25 +0000 |
---|---|---|
committer | Michael Tiemann <tiemann@cygnus> | 1992-02-02 21:12:25 +0000 |
commit | 58216160ef6573acb817676795cadab967afea2d (patch) | |
tree | 50e599f8c8197d916467aa336ebc4addb06707b0 /ld/ldsym.c | |
parent | 05cd8d982d8efb768cd39fe25fc66edf758a1f8e (diff) | |
download | gdb-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |