This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: "Undefined symbols"
Hi Xinan,
> Thanks for your tips.
>
> I have found the solution. Basically, adding such a piece of code in
>
> `elf32-target.c' (target is our target name like elf32-mips.c)
>
> ________________________________________________________________________
>
> if (bfd_is_und_section (symbol->section) && (abfd == (bfd *) NULL)) {
> return bfd_reloc_undefined;
> }
> return bfd_reloc_ok;
>
> __________________________________________________________________________
>
> Therefore, when linker tries to resolve a relocated symbol at last pass,
If you want to submit an official patch we will consider it for
inclusion into the binutils sources.
Cheers
Nick