Tweak for i386 vxworks support

Alan Modra amodra@bigpond.net.au
Thu May 19 08:46:00 GMT 2005


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



More information about the Binutils mailing list