This is the mail archive of the binutils@sources.redhat.com 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: Tweak for i386 vxworks support


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


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