diff options
author | Iain Sandoe <iain@codesourcery.com> | 2012-02-21 09:13:02 +0000 |
---|---|---|
committer | Iain Sandoe <iain@codesourcery.com> | 2012-02-21 09:13:02 +0000 |
commit | cdaa5616cb95596ecf0c09c08a2bf55f39c82019 (patch) | |
tree | 8c98c7c0c8372286155f9a3d5be2b07059bcc5f6 /gas/config/tc-i386.h | |
parent | d82ea6a8a930ceb38b2947d07a3cab5fba78f27c (diff) | |
download | gdb-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/config/tc-i386.h')
-rw-r--r-- | gas/config/tc-i386.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 688c69a..cc86c9d 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -316,4 +316,18 @@ void tc_pe_dwarf2_emit_offset (symbolS *, unsigned int); /* X_add_symbol:X_op_symbol (Intel mode only) */ #define O_full_ptr O_md2 +#ifdef OBJ_MACH_O + +#define TC_FORCE_RELOCATION(FIX) (obj_mach_o_force_reloc (FIX)) + +#define TC_FORCE_RELOCATION_SUB_SAME(FIX,SEG) \ + (obj_mach_o_force_reloc_sub_same (FIX, SEG)) + +#define TC_FORCE_RELOCATION_SUB_LOCAL(FIX,SEG) \ + (obj_mach_o_force_reloc_sub_local (FIX, SEG)) + +#define TC_VALIDATE_FIX_SUB(FIX, SEG) 1 + +#endif /* OBJ_MACH_O */ + #endif /* TC_I386 */ |