mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
* elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
SHN_MIPS_TEXT and SHN_MIPS_DATA.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2004-07-31 Joel Brobecker <brobecker@gnat.com>
|
||||||
|
Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||||
|
|
||||||
|
* elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
|
||||||
|
SHN_MIPS_TEXT and SHN_MIPS_DATA.
|
||||||
|
|
||||||
2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
|
2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
Nick Clifton <nickc@redhat.com>
|
Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
@ -4192,15 +4192,37 @@ _bfd_mips_elf_symbol_processing (bfd *abfd, asymbol *asym)
|
|||||||
asym->section = bfd_und_section_ptr;
|
asym->section = bfd_und_section_ptr;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#if 0 /* for SGI_COMPAT */
|
|
||||||
case SHN_MIPS_TEXT:
|
case SHN_MIPS_TEXT:
|
||||||
asym->section = mips_elf_text_section_ptr;
|
{
|
||||||
|
asection *section = bfd_get_section_by_name (abfd, ".text");
|
||||||
|
|
||||||
|
BFD_ASSERT (SGI_COMPAT (abfd));
|
||||||
|
if (section != NULL)
|
||||||
|
{
|
||||||
|
asym->section = section;
|
||||||
|
/* MIPS_TEXT is a bit special, the address is not an offset
|
||||||
|
to the base of the .text section. So substract the section
|
||||||
|
base address to make it an offset. */
|
||||||
|
asym->value -= section->vma;
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SHN_MIPS_DATA:
|
case SHN_MIPS_DATA:
|
||||||
asym->section = mips_elf_data_section_ptr;
|
{
|
||||||
|
asection *section = bfd_get_section_by_name (abfd, ".data");
|
||||||
|
|
||||||
|
BFD_ASSERT (SGI_COMPAT (abfd));
|
||||||
|
if (section != NULL)
|
||||||
|
{
|
||||||
|
asym->section = section;
|
||||||
|
/* MIPS_DATA is a bit special, the address is not an offset
|
||||||
|
to the base of the .data section. So substract the section
|
||||||
|
base address to make it an offset. */
|
||||||
|
asym->value -= section->vma;
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user