deal with endian-ness in mach-o non-scattered relocs.
commit3ed16fb44183d66b380ad2fae56e4c8d4d5d7ba9
authoriains <iains>
Thu, 23 Feb 2012 16:29:52 +0000 (23 16:29 +0000)
committeriains <iains>
Thu, 23 Feb 2012 16:29:52 +0000 (23 16:29 +0000)
tree67dced493836616aa64646e79463c74f186e4891
parentfbed8cb7c5aa914bf5119fdeccb142798edc56f8
deal with endian-ness in mach-o non-scattered relocs.

BFD:

* mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
(bfd_mach_o_canonicalize_one_reloc):  Swap non-scattered reloc
bit-fields when target and host differ in endian-ness.  When
PAIRs are non-scattered find the 'symbol' from the preceding
reloc.  Add FIXME re. reloc symbols on section boundaries.
(bfd_mach_o_swap_out_non_scattered_reloc): New.
(bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.

include/mach-o:

* external.h: Add comments about relocations fields.  Add macros
for non-scattered relocations.  Move scattered relocation macros to here.
* reloc.h: Remove macros related to external representation of reloc fields.
bfd/ChangeLog
bfd/mach-o.c
include/mach-o/ChangeLog
include/mach-o/external.h
include/mach-o/reloc.h