This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Questions regarding m68k dynamic/shared code


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.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]