FYI: patches for powerpc-aix...
Alan Modra
amodra@gmail.com
Fri May 17 05:23:00 GMT 2013
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
More information about the Binutils
mailing list