This is the mail archive of the binutils@sourceware.org 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: .reloc pseudo


On Mon, Mar 26, 2007 at 08:47:34PM +0930, Alan Modra wrote:
> On Thu, Feb 22, 2007 at 04:22:56PM +1030, Alan Modra wrote:
> > BTW, the reason I'm looking at this code is that I intend to add
> > a low level means of emitting relocations in gas.  Something like
> > 
> >   .reloc offset, reloc_name, symbol+addend
> > 
> > eg.
> >   .reloc __speelf__+50, R_PPC_ADDR32, stdout
> > 
> > The particular use I have in mind is in embedspu, where it will be
> > useful to to apply relocations to a block of code inserted by .incbin,
> > but I guess this might be a generally useful feature so I'll make it
> > available on all targets.
> 
> gas/
> 	* doc/as.texinfo (Reloc): Document.
> 	* read.c (potable): Add "reloc".
> 	(s_reloc): New function.
> 	* write.c (reloc_list): New global var.
> 	(resolve_reloc_expr_symbols): New function.
> 	(write_object_file): Call it.
> 	(write_relocs): Process reloc_list.
> 	* write.h (struct reloc_list): New.
> 	(reloc_list): Declare.

Do I really see an exciting new feature with neither NEWS nor tests?
:-)

-- 
Daniel Jacobowitz
CodeSourcery


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