This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: sh-vxworks user-mode support
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: binutils at sourceware dot org
- Date: Thu, 03 Aug 2006 08:45:35 +0900 (JST)
- Subject: Re: sh-vxworks user-mode support
- References: <87odv3jufq.fsf@talisman.home>
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