binutils problem

Richard Zidlicky rz@linux-m68k.org
Sun Aug 25 15:28:00 GMT 2002


On Sun, Aug 25, 2002 at 11:29:42PM +0200, Andreas Schwab wrote:

> It's a bug in glibc that it prints garbage after the number, it should
> print just 0x00.  This is R_68K_NONE, which should not happen.  In this
> case the error is detected in
> sysdeps/m68k/dl-machine.h:elf_machine_lazy_rel, where only R_68K_JMP_SLOT
> relocations are expected.  This function is called for reloc entries
> covered by DT_JMPREL, ie. .rela.plt.
> 
> Note that this has nothing to do with any particular symbol, it is just an
> incident that optind was the last symbol to be searched for.  The error
> happens when all symbols for non-lazy relocations are resolved and the
> lazy relocations are executed.

true, looking a bit further down there are this entries in .rela.plt
....
80035fcc  00002315 R_68K_JMP_SLOT    80001eac   __errno_location + 0
80035fd0  00002415 R_68K_JMP_SLOT    80001ec0   bfd_init + 0
00000000  00000000 R_68K_NONE                                   00000000
80035fd8  00002515 R_68K_JMP_SLOT    80001ee8   concat + 0
80035fdc  00002615 R_68K_JMP_SLOT    80001efc   bfd_printable_arch_mac + 0
00000000  00000000 R_68K_NONE                                   00000000
80035fe4  00002715 R_68K_JMP_SLOT    80001f24   access + 0
....

Richard



More information about the Binutils mailing list