reverse the order of relocs in mach-o gas output.
commit6738a8c5114aa6b81a6eacccb2e21dff14da3e42
authoriains <iains>
Fri, 13 Jan 2012 15:19:06 +0000 (13 15:19 +0000)
committeriains <iains>
Fri, 13 Jan 2012 15:19:06 +0000 (13 15:19 +0000)
tree82a55dfa1dd2047b9c75a17fe56a99c381e81684
parent6eb3ddbba5e3d7b536b595bdd99f9723a04cb856
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.
19 files changed:
gas/ChangeLog
gas/config/obj-macho.c
gas/config/obj-macho.h
gas/testsuite/ChangeLog
gas/testsuite/gas/all/redef2.d
gas/testsuite/gas/all/redef3.d
gas/testsuite/gas/all/weakref1.d
gas/testsuite/gas/mach-o/macro-irp.d [copied from gas/testsuite/gas/macros/irp.d with 92% similarity]
gas/testsuite/gas/mach-o/macro-repeat.d [copied from gas/testsuite/gas/macros/repeat.d with 98% similarity]
gas/testsuite/gas/mach-o/macro-rept.d [copied from gas/testsuite/gas/macros/rept.d with 88% similarity]
gas/testsuite/gas/mach-o/macro-test2.d [copied from gas/testsuite/gas/macros/test2.d with 88% similarity]
gas/testsuite/gas/mach-o/macro-vararg.d [copied from gas/testsuite/gas/macros/vararg.d with 91% similarity]
gas/testsuite/gas/mach-o/redef2.d [copied from gas/testsuite/gas/all/redef2.d with 79% similarity]
gas/testsuite/gas/mach-o/redef3.d [copied from gas/testsuite/gas/all/redef3.d with 74% similarity]
gas/testsuite/gas/macros/irp.d
gas/testsuite/gas/macros/repeat.d
gas/testsuite/gas/macros/rept.d
gas/testsuite/gas/macros/test2.d
gas/testsuite/gas/macros/vararg.d