Index: elfxx-mips.c =================================================================== RCS file: /cvs/src/src/bfd/elfxx-mips.c,v retrieving revision 1.106 diff -u -p -r1.106 elfxx-mips.c --- elfxx-mips.c 1 Jul 2004 14:53:40 -0000 1.106 +++ elfxx-mips.c 21 Jul 2004 20:24:08 -0000 @@ -4192,6 +4192,20 @@ _bfd_mips_elf_symbol_processing (bfd *ab asym->section = bfd_und_section_ptr; break; + case SHN_MIPS_TEXT: + { + asection *section = bfd_get_section_by_name (abfd, ".text"); + 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; + } + #if 0 /* for SGI_COMPAT */ case SHN_MIPS_TEXT: asym->section = mips_elf_text_section_ptr;