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: FYI: patches for powerpc-aix...


On Thu, May 16, 2013 at 01:52:11PM +0100, Richard Sandiford wrote:
> 	* config/tc-ppc.c (ppc_reloc_info): New structure.
> 	(ppc_get_reloc_info): New function.
> 	(md_assemble): Use it instead of bfd_reloc_type_lookup.
> 	(md_apply_fix): Apply PC-relative conversion before code/data switch,
> 	using ppc_get_reloc_info to get the PC-relative form.  Use the
> 	field widths and values created there.

I like the change you've made here to put the value twiddling in
md_apply_fix for both insn and data relocs in one place (field_value).
I'm not so sure about trying to merge the bfd_reloc_type_lookup from
md_assemble.  We don't currently need the "howto" in md_apply_fix, so
that seems like doing unnecessary work.

-- 
Alan Modra
Australia Development Lab, IBM


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