aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@codesourcery.com>2012-02-21 09:13:02 +0000
committerIain Sandoe <iain@codesourcery.com>2012-02-21 09:13:02 +0000
commitcdaa5616cb95596ecf0c09c08a2bf55f39c82019 (patch)
tree8c98c7c0c8372286155f9a3d5be2b07059bcc5f6 /gas/write.c
parentd82ea6a8a930ceb38b2947d07a3cab5fba78f27c (diff)
downloadgdb-cdaa5616cb95596ecf0c09c08a2bf55f39c82019.zip
gdb-cdaa5616cb95596ecf0c09c08a2bf55f39c82019.tar.gz
gdb-cdaa5616cb95596ecf0c09c08a2bf55f39c82019.tar.bz2
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.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/write.c b/gas/write.c
index 5d4e073..f640c61 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -1790,6 +1790,10 @@ write_object_file (void)
}
}
+#ifdef md_pre_relax_hook
+ md_pre_relax_hook;
+#endif
+
/* From now on, we don't care about sub-segments. Build one frag chain
for each segment. Linked thru fr_next. */