2010-01-11 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Mon, 11 Jan 2010 15:39:41 +0000 (15:39 +0000)
committerTristan Gingold <gingold@adacore.com>
Mon, 11 Jan 2010 15:39:41 +0000 (15:39 +0000)
commit42fa08916b972ce06b7bcdee8e0ce4171053cd89
tree7dfede22b30634369294adc9839b73414f246fc2
parentcba0723b0f0fb521d83dc1d7cd1cdcdb4991dd02
2010-01-11  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_backend_data): Add arch field.
(bfd_mach_o_set_arch_mach): New prototype.
* mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
(bfd_mach_o_set_arch_mach): New function.
(bfd_mach_o_gen_mkobject): New function.
Set TARGET_ARCHITECTURE for the generic back-ends.
* mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
Check that TARGET_ARCHITECTURE is defined.
Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
* mach-o-i386.c (TARGET_ARCHITECTURE): Define.
bfd/ChangeLog
bfd/mach-o-i386.c
bfd/mach-o-target.c
bfd/mach-o.c
bfd/mach-o.h