[RFA] MIPS_TEXT symbols should be associated to .text section?
Joel Brobecker
brobecker@gnat.com
Fri Jul 30 18:19:00 GMT 2004
Thiemo,
One more thing I forgot about your patch:
> case SHN_MIPS_DATA:
> - asym->section = mips_elf_data_section_ptr;
> + {
> + asection *section = elf_tdata (abfd)->elf_data_section;
> +
> + BFD_ASSERT (SGI_COMPAT (abfd));
> + if (section != NULL)
> + asym->section = section;
> + }
> break;
I think that addresses for MIPS_DATA symbols follow the same rule
as in MIPS_TEXT: These are absolute addresses, so we need to substract
the section base address as well, to turn them into offsets. I verified
this empirically by inspecting an executable that had some MIPS_DATA
symbols.
--
Joel
More information about the Gdb-patches
mailing list