This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Tweak for i386 vxworks support
On Thu, May 19, 2005 at 06:02:49PM +0930, Alan Modra wrote:
> 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)
Uh, no, I'm not thinking straight. Patch is OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre