This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Dec 11, 2011, at 5:03 PM, Iain Sandoe wrote:
(sorry forgot to post the last patch in-line)
this makes an interface to the mach-o private file flags and uses it to set "subsection-via-symbols" in response to the directive.
the parse routine in gas/config/obj-mach-o.c has been generalized to deal with other flags in the future.
tests in gas/mach-o
Ok. Setting the subsections_via_symbols flag might be premature as I am not sure we correctly set the relocation entries for that. But because as/i386 isn't yet ready I think this is ok.
[tests patch relative to the base test suite entry previously posted]
now relative to : http://sourceware.org/ml/binutils/2011-12/msg00163.html
Please slightly postpone the tests until the previous entry has been ok'ed.
bfd:
* mach-o-target.c (bfd_mach_o_bfd_set_private_flags): Use bfd_mach_o_bfd_set_private_flags. * mach-o.c (bfd_mach_o_bfd_set_private_flags): New. * mach-o.h (bfd_mach_o_bfd_set_private_flags): Declare.
gas:
* config/obj-macho.c (subsections_by_symbols): New global. (obj_mach_o_file_properties): New enum. (obj_mach_o_subsections_via_symbols): Generalize name to... ... (obj_mach_o_fileprop) and use to set subsections_via_symbols.
gas/testsuite:
* gas/mach-o/subsect-via-symbols-0.d: New. * gas/mach-o/subsect-via-symbols-1.d: New. * gas/mach-o/subsect-via-symbols.s: New.
+/* Remember the subsections_by_symbols state in case we need to reset
+ the file flags. */
+int subsections_by_symbols ;
+
static void
obj_mach_o_weak (int ignore ATTRIBUTE_UNUSED)
{
@@ -290,11 +294,32 @@ obj_mach_o_comm (int ignore ATTRIBUTE_UNUSED)
s_comm_internal (ignore, obj_mach_o_common_parse);
}| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |