This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: sh-vxworks user-mode support


Richard Sandiford <richard@codesourcery.com> wrote:
> This patch adds user-mode support to sh-vxworks (which already supports
> kernel modules).  It's the last of the six architecture[*] ports to be
> submitted, so you may be glad to hear that there'll be no more patches
> like this for a while.
> 
> The main points are similar to those for the other VxWorks ports, namely:
> 
>   (1) VxWorks uses traditional RELA relocations.  Normal sh-elf is a
>       RELA target, but many of its core relocs still use in-place addends;
>       their .rela.* entries then have a zero r_addend.
> 
>   (2) VxWorks uses different PLT entries from other SH ELF targets.
> 
>   (3) VxWorks executables have a special .rela.plt.unloaded section
>       which -- combined with the --emit-relocs output -- allows the
>       dynamic loader to relocate the executable.
> 
>   (4) VxWorks needs to use the hooks in elf-vxworks.c.

SH specific part looks fine by me.

Regards,
	kaz


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