Browse Source

Work around for problems in linking C++ programs that need file-level

initialization.  Now C++ programs can be linked.
gdb-4_18-branch
Michael Tiemann 35 years ago
parent
commit
58216160ef
  1. 3
      ld/ldsym.c
  2. 6
      ld/relax.c

3
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

6
ld/relax.c

@ -57,13 +57,13 @@ DEFUN(build_it,(statement),
}
#endif
abort();
}
break;
case lang_data_statement_enum:
#if 0
{
abort();
#if 0
bfd_vma value = statement->data_statement.value;
bfd_byte play_area[LONG_SIZE];
unsigned int size = 0;
@ -89,9 +89,9 @@ abort();
size);
#endif
}
#endif
break;
case lang_input_section_enum:
{

Loading…
Cancel
Save