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: [RFA] ARM OABI - pc-relative relocations


> Jerome Guitton <guitton@act-europe.fr> writes:
> 
> > Ouch! That is perfectly reasonable, but I have a problem. I am
> > targetting VxWorks 5.5 on ARM. WRS' tools uses RELA, with the old ABI
> > definition... And I am interested in making a the GNU tools and WRS
> > tools compatible.
> 
> I already have patches for this.  They are not quite suitable for
> inclusion, but I think only small changes would be required.  Also I
> am not sure they solve your problem.  What I did was hack up BFD to
> produce RELA relocs for ARM, and then I modified GAS so that in
> RELA/arm mode it always sets the instruction addend to zero.  The
> linker then need not know or care about the quirky old-ABI spec for
> RELA.  Conveniently, this is what WRS' tools do, too.
> 
> Patch is appended.  Comments?  I do not know the proper way to get
> USE_REL set to 0; obviously "#ifndef NOT_VXWORKS" is not the right
> approach.
> 

Well, I'd use an option to start with... -mrela?  As for the default for 
that flag, then I would think you could use a te-vxworks.h to define 
something appropriate.

R.




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