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 5 Jan 2012, at 09:10, Tristan Gingold wrote: +
+ new_seg = obj_mach_o_parse_section (); + + if (new_seg != NULL) + { + demand_empty_rest_of_line (); + + subseg_set (new_seg, 0); + if (now_seg != old_seg) + previous_section = old_seg;
What is the reason of this guard ? It seems to be that it prevents user to write code such as:
asm (" .section x […] .previous ");
as it would make .previous behavior undefined for the user
-
/* else, we leave the section as it was; there was a fatal error anyway. */
+ demand_empty_rest_of_line ();
}
BTW, obj_mach_o_objc_section looks furiously like obj_mach_o_known_section. Maybe we can reserve a range for objc sections and merge both implementations.
+ segT old_seg = now_seg; s_comm_internal (is_local, obj_mach_o_common_parse); + if (now_seg != old_seg) + previous_section = old_seg; +}
Humm, why does it set previous_section ?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |