This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
where do undefined symbols get resolved?
- From: Doug Evans <dje at transmeta dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 24 Jul 2002 00:03:12 -0700 (PDT)
- Subject: where do undefined symbols get resolved?
- References: <200207240643.XAA31333@casey.transmeta.com>
Doug Evans writes:
> Would someone mind pointing me to the source for the code that
> resolves undefined symbols?
>
> target = elf
>
> input = foo.o --just-symbols=foo2.elf
>
> foo.o has an undefined symbol that is resolved by foo2.elf
> which is a fully linked executable.
>
> Where in the linker or bfd sources is the code that resolves
> the undefined symbol? i.e. the actual line that says, figuratively,
>
> undefined_symbol->value = x;
Ugh, I think I worded that badly. Sorry.
I think I've got a linker bug. A symbol isn't being resolved that
should be resolved. I'm trying to find the code that loops
over undefined symbols and tries to look up each's value.
I'm guessing that lookup is failing somehow.