This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Tweak for i386 vxworks support
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Thu, 19 May 2005 18:02:49 +0930
- Subject: Re: Tweak for i386 vxworks support
- References: <20050518152133.GA7986@nevyn.them.org>
On Wed, May 18, 2005 at 11:21:33AM -0400, Daniel Jacobowitz wrote:
> The VxWorks dynamic loader pretty much only honors R_*_COPY and
> R_*_JUMP_SLOT relocations in executables - the normal range of relocations
> are processed in shared libraries. This works except for some cases
> involving weak symbols (which VxWorks doesn't use), and when ld decides to
> eliminate a copy relocation. So disable that for VxWorks. I'm trying to
> persuade them to process relocations more normally, but no luck so far.
>
> Is this patch OK?
No, I think you'll need to look at other places that invoke
ELIMINATE_COPY_RELOCS. I suggest
#define ELIMINATE_COPY_RELOCS(HTAB) (!(HTAB)->is_vxworks)
--
Alan Modra
IBM OzLabs - Linux Technology Centre