2012-02-21 Tristan Gingold <gingold@adacore.com>
authorIain Sandoe <iain@codesourcery.com>
Tue, 21 Feb 2012 09:13:02 +0000 (09:13 +0000)
committerIain Sandoe <iain@codesourcery.com>
Tue, 21 Feb 2012 09:13:02 +0000 (09:13 +0000)
commitcdaa5616cb95596ecf0c09c08a2bf55f39c82019
tree8c98c7c0c8372286155f9a3d5be2b07059bcc5f6
parentd82ea6a8a930ceb38b2947d07a3cab5fba78f27c
2012-02-21  Tristan Gingold  <gingold@adacore.com>

* config/tc-i386.h (OBJ_MACH_O): New section.
(TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
(TC_FORCE_RELOCATION_SUB_SAME): New
(TC_FORCE_RELOCATION_SUB_LOCAL): New.
(TC_VALIDATE_FIX_SUB): New.
* frags.h (struct frag): OBJ_FRAG_TYPE, new field.
* symbols.c (colon): obj_frob_colon: New hook.
* write.c (write_object_file): md_pre_relax_hook, new
hook.
* config/obj-macho.c (obj_mach_o_frob_colon): New.
(obj_mach_o_frob_label): Record sub-section labels.
(obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
(obj_mach_o_set_subsections): New.
(obj_mach_o_pre_relax_hook): New.
(obj_mach_o_in_different_subsection): New.
(obj_mach_o_force_reloc_sub_same): New.
(obj_mach_o_force_reloc_sub_local): New.
(obj_mach_o_force_reloc): New.
* config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
(obj_frob_colon): New Define.
(obj_mach_o_frob_label): Renamed.
(obj_mach_o_frob_symbol): Renamed.
(OBJ_FRAG_TYPE): New.
(obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
 obj_mach_o_force_reloc_sub_same,
 obj_mach_o_force_reloc_sub_local): New declarations.
gas/ChangeLog
gas/config/obj-macho.c
gas/config/obj-macho.h
gas/config/tc-i386.h
gas/frags.h
gas/symbols.c
gas/write.c