aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-macho.h
diff options
context:
space:
mode:
authorIain Sandoe <iain@codesourcery.com>2012-01-13 15:19:13 +0000
committerIain Sandoe <iain@codesourcery.com>2012-01-13 15:19:13 +0000
commit34dd18bca5b8991d5e107dc1669ba6710916ce1d (patch)
treedd8c4d6ffcd6a8745710832b9abee5f444f97376 /gas/config/obj-macho.h
parent0ee339bc478ec8c35f4fee8998456bc33be0a3e2 (diff)
downloadgdb-34dd18bca5b8991d5e107dc1669ba6710916ce1d.zip
gdb-34dd18bca5b8991d5e107dc1669ba6710916ce1d.tar.gz
gdb-34dd18bca5b8991d5e107dc1669ba6710916ce1d.tar.bz2
reverse the order of relocs in mach-o gas output.
gas: * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New. * config/obj-macho.h (SET_SECTION_RELOCS): Define. (obj_mach_o_reorder_section_relocs): Declare. gas/testsuite: * gas/all/redef2.d: Skip for Darwin. * gas/all/redef3.d: Likewise. * gas/all/weakref1.d: Likewise. * gas/macros/irp.d: Likewise. * gas/macros/repeat.d: Likewise. * gas/macros/rept.d: Likewise. * gas/macros/test2.d: Likewise. * gas/macros/vararg.d: Likewise. * gas/mach-o/macro-irp.d: New. * gas/mach-o/macro-repeat.d: New. * gas/mach-o/macro-rept.d: New. * gas/mach-o/macro-test2.d: New. * gas/mach-o/macro-vararg.d: New. * gas/mach-o/redef2.d: New. * gas/mach-o/redef3.d: New.
Diffstat (limited to 'gas/config/obj-macho.h')
-rw-r--r--gas/config/obj-macho.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/obj-macho.h b/gas/config/obj-macho.h
index 2fc5cb6..bb8daf9 100644
--- a/gas/config/obj-macho.h
+++ b/gas/config/obj-macho.h
@@ -68,6 +68,11 @@ void obj_mach_o_post_relax_hook (void);
#define obj_frob_file_after_relocs obj_mach_o_frob_file_after_relocs
extern void obj_mach_o_frob_file_after_relocs (void);
+void obj_mach_o_reorder_section_relocs (asection *, arelent **, unsigned int);
+
+#define SET_SECTION_RELOCS(sec, relocs, n) \
+ obj_mach_o_reorder_section_relocs (sec, relocs, n)
+
#define EMIT_SECTION_SYMBOLS 0
#define OBJ_PROCESS_STAB(SEG,W,S,T,O,D) obj_mach_o_process_stab(W,S,T,O,D)