Questions regarding m68k dynamic/shared code
Fri Jan 10 00:15:00 GMT 2003
Richard Henderson <firstname.lastname@example.org> writes:
> On Thu, Jan 09, 2003 at 11:40:24AM -0500, Peter Barada wrote:
> > What's the difference between the first entry and all the others? (why
> > in bfd/elf32-m68k.c is there a elf_m68k_plt_entry and elf_m68k_plt0_entry?)
> The first entry enters the dynamic linker. The others are
> initialized such that they go to either the first entry,
> and are later adjusted so that they go to the target function.
> > If its just an indirect jump, then why is there more than one
> > instruction in each plt entry (if the code after the jmp is
> > unreachable, why are the folliing insns there)?
> Look at how the plt entry is initialized. I'm certain
> that those instructions are used.
The initial target is the following instructions, which push the got
offset and jump to the first entry, which then transfers control to
the dynamic linker.
More information about the Binutils