2004-10-31 Andrew Cagney <cagney@gnu.org>

* mdebugread.h (ecoff_relocate_efi): Delete declaration.
	* mdebugread.c (ecoff_relocate_efi): Delete function.
	* objfiles.c (objfile_relocate): Delete #ifdef
	MDEBUG_EFI_SYMBOL_NAME code.
This commit is contained in:
Andrew Cagney 2004-10-31 17:48:17 +00:00
parent 3352ef37c2
commit bd9ca83f2c
4 changed files with 7 additions and 24 deletions

View file

@ -1,3 +1,10 @@
2004-10-31 Andrew Cagney <cagney@gnu.org>
* mdebugread.h (ecoff_relocate_efi): Delete declaration.
* mdebugread.c (ecoff_relocate_efi): Delete function.
* objfiles.c (objfile_relocate): Delete #ifdef
MDEBUG_EFI_SYMBOL_NAME code.
2004-10-31 Orjan Friberg <organ.friberg@axis.com> 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
Andrew Cagney <cagney@gnu.org> Andrew Cagney <cagney@gnu.org>

View file

@ -2005,18 +2005,6 @@ parse_procedure (PDR *pr, struct symtab *search_symtab,
SYMBOL_TYPE (s) = nodebug_func_symbol_type; SYMBOL_TYPE (s) = nodebug_func_symbol_type;
} }
/* Relocate the extra function info pointed to by the symbol table. */
void
ecoff_relocate_efi (struct symbol *sym, CORE_ADDR delta)
{
struct mdebug_extra_func_info *e;
e = (struct mdebug_extra_func_info *) SYMBOL_VALUE (sym);
e->pdr.adr += delta;
}
/* Parse the external symbol ES. Just call parse_symbol() after /* Parse the external symbol ES. Just call parse_symbol() after
making sure we know where the aux are for it. making sure we know where the aux are for it.
BIGEND says whether aux entries are big-endian or little-endian. BIGEND says whether aux entries are big-endian or little-endian.

View file

@ -25,8 +25,6 @@
#include "coff/sym.h" /* Needed for PDR below. */ #include "coff/sym.h" /* Needed for PDR below. */
#include "coff/symconst.h" #include "coff/symconst.h"
extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
/* Specific information about a procedure. Architectures (ab)uses /* Specific information about a procedure. Architectures (ab)uses
this to save memory. */ this to save memory. */

View file

@ -555,16 +555,6 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
SYMBOL_VALUE_ADDRESS (sym) += SYMBOL_VALUE_ADDRESS (sym) +=
ANOFFSET (delta, SYMBOL_SECTION (sym)); ANOFFSET (delta, SYMBOL_SECTION (sym));
} }
#ifdef MDEBUG_EFI_SYMBOL_NAME
/* Relocate Extra Function Info for ecoff. */
else if (SYMBOL_CLASS (sym) == LOC_CONST
&& SYMBOL_DOMAIN (sym) == LABEL_DOMAIN
&& strcmp (DEPRECATED_SYMBOL_NAME (sym),
MDEBUG_EFI_SYMBOL_NAME) == 0)
ecoff_relocate_efi (sym, ANOFFSET (delta,
s->block_line_section));
#endif
} }
} }
} }