* gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
[binutils.git] / gas / ChangeLog
blob619c1f95f74c03386e4b36963ee30d9f1589347d
1 2012-02-21  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3         * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
5 2012-02-21  Iain Sandoe  <idsandoe@googlemail.com>
7         * write.c (write_object_file): Add md_pre_output_hook.
8         * config/obj-macho.c (obj_mach_o_check_before_writing): New.
9         (obj_mach_o_pre_output_hook): New.
10         * config/obj-macho.h (md_pre_output_hook): Define.
11         (obj_mach_o_pre_output_hook): Declare.
13 2012-02-21  Tristan Gingold  <gingold@adacore.com>
15         * config/tc-i386.h (OBJ_MACH_O): New section.
16         (TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
17         (TC_FORCE_RELOCATION_SUB_SAME): New
18         (TC_FORCE_RELOCATION_SUB_LOCAL): New.
19         (TC_VALIDATE_FIX_SUB): New.
20         * frags.h (struct frag): OBJ_FRAG_TYPE, new field.
21         * symbols.c (colon): obj_frob_colon: New hook.
22         * write.c (write_object_file): md_pre_relax_hook, new
23         hook.
24         * config/obj-macho.c (obj_mach_o_frob_colon): New.
25         (obj_mach_o_frob_label): Record sub-section labels.
26         (obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
27         (obj_mach_o_set_subsections): New.
28         (obj_mach_o_pre_relax_hook): New.
29         (obj_mach_o_in_different_subsection): New.
30         (obj_mach_o_force_reloc_sub_same): New.
31         (obj_mach_o_force_reloc_sub_local): New.
32         (obj_mach_o_force_reloc): New.
33         * config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
34         (obj_frob_colon): New Define.
35         (obj_mach_o_frob_label): Renamed.
36         (obj_mach_o_frob_symbol): Renamed.
37         (OBJ_FRAG_TYPE): New.
38         (obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
39          obj_mach_o_force_reloc_sub_same,
40          obj_mach_o_force_reloc_sub_local): New declarations.
42 2012-02-20  Iain Sandoe  <idsandoe@googlemail.com>
44         * config/obj-macho.c (obj_mach_o_is_frame_section): New.
45         (obj_mach_o_allow_local_subtract): New.
46         * config/obj-macho.h (md_allow_local_subtract): Define.
47         (obj_mach_o_allow_local_subtract): Declare.
49 2012-02-20  Iain Sandoe  <idsandoe@googlemail.com>
51         * config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
52         canonical information, try to determine CODE and DEBUG section flags
53         from the mach-o section data.
55 2012-02-20  Nick Clifton  <nickc@redhat.com>
57         * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
58         local symbols.
60 2012-02-12  Iain Sandoe  <idsandoe@googlemail.com>
62         * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
63         any local symbol used as an indirect.
65 2012-02-10  Iain Sandoe  <idsandoe@googlemail.com>
67         * config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
68         stub size when provided.  (obj_mach_o_section): Flag that stub-size
69         has been provided.
71 2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>
73         * config/tc-i386.c (HLE_PREFIX): New.
74         (check_hle): Likewise.
75         (_i386_insn): Add have_hle.
76         (cpu_arch): Add .hle and .rtm.
77         (md_assemble): Call check_hle if i.have_hle isn't zero.
78         (parse_insn): Set i.have_hle to 1 for HLE prefix.
79         (output_jump): Support up to 2 byte opcode.
81         * doc/c-i386.texi: Document hle/.hle and rtm/.rtm.
83 2012-02-02  Tristan Gingold  <gingold@adacore.com>
85         * config/obj-macho.c (obj_mach_o_zerofill): Silent
86         uninitialized variable warning.
88 2012-02-02  Nick Clifton  <nickc@redhat.com>
90         PR gas/13224
91         * config/obj-elf.c (obj_elf_parse_section_letters): Rename 'clone'
92         to 'is_clone' to avoid shadowing a gloabl.
93         (obj_elf_section): Likewise.
95 2012-01-31  Paul Brook  <paul@codesourcery.com>
97         * doc/c-tic6x.c: Fix typo.
99 2012-01-26  Alexey Makhalov  <makhaloff@gmail.com>
101         PR gas/13624
102         * app.c (app_push): Set 'add_newlines' to zero after saving.
104 2012-01-24  DJ Delorie  <dj@redhat.com>
106         * config/rl78-parse.y (NOT1): Add.
108 2012-01-23  Roland McGrath  <mcgrathr@google.com>
110         * configure.tgt (i386-*-nacl*): Match it.
111         * config/te-nacl.h: New file.
112         * config/tc-i386.h [TE_NACL] (ELF_TARGET_FORMAT): Define for this case.
113         * config/tc-i386.c [TE_NACL] (i386_comment_chars, PREFIX_SEPARATOR):
114         Use TE_GNU et al case for TE_NACL too.
116 2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>
118         * config/tc-i386.c (_i386_insn): Replace disp32_encoding with
119         disp_encoding.
120         (md_assemble): Updated.
121         (output_branch): Likewise.
122         (parse_insn): Support .d8 suffix.
123         (build_modrm_byte): Fake zero displacement for .d8 and .d32
124         suffixes.
126         * doc/c-i386.texi: Document .d8 suffix.
128 2012-01-17  Andrew Burgess  <aburgess@broadcom.com>
130         * write.c (fix_new_internal): Don't mark used parameter as unused.
132 2012-01-17  Alan Modra  <amodra@gmail.com>
134         * as.c (parse_args): Update copyright message year.
136 2012-01-13  H.J. Lu  <hongjiu.lu@intel.com>
138         * config/tc-i386.c (cpu_arch): Add ".vmfunc".
140         * doc/c-i386.texi: Document vmfunc.
142 2012-01-13  Tristan Gingold  <gingold@adacore.com>
144         * config/obj-macho.c (obj_mach_o_reorder_section_relocs): New.
145         * config/obj-macho.h (SET_SECTION_RELOCS): Define.
146         (obj_mach_o_reorder_section_relocs): Declare.
148 2012-01-13  Iain Sandoe  <idsandoe@googlemail.com>
150         * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Handle
151         absolute indirect symbols.
153 2012-01-13  Iain Sandoe  <idsandoe@googlemail.com>
155         * config/obj-macho.c (obj_mach_o_set_vma_data): New type.
156         (obj_mach_o_set_section_vma): New.
157         (obj_mach_o_post_relax_hook): New.
158         * config/obj-macho.h (md_post_relax_hook): Define.
159         (obj_mach_o_post_relax_hook): Declare.
161 2012-01-12  Iain Sandoe  <idsandoe@googlemail.com>
163         * config/obj-macho.c (obj_mach_o_set_symbol_qualifier): Switch off
164         lazy when the symbol is private_extern.
165         (obj_mach_o_indirect_sym): New type.
166         (obj_mach_o_indirect_symbol): New.
167         (mach_o_pseudo_table): Use obj_mach_o_indirect_symbol.
168         (obj_macho_frob_label): Adjust to avoid adding bsyms for locals.
169         (obj_macho_frob_label): Likewise.  Adjust external and comm
170         symbol tests.
171         (obj_mach_o_set_indirect_symbols): New.
172         (obj_mach_o_frob_file_after_relocs): New.
173         *config/obj-macho.h (obj_frob_file_after_relocs): Define.
174         (obj_mach_o_frob_file_after_relocs): Declare.
176 2012-01-12  Tristan Gingold  <gingold@adacore.com>
178         PR gas/13591
179         * config/obj-coff.h (sy_obj): Rename macro to avoid a name conflict.
181 2012-01-10  Tristan Gingold  <gingold@adacore.com>
183         * struc-symbol.h (struct symbol_flags): New struct, created from...
184         (struct symbol): ... this one.  Add sy_flags field, remove flag fields.
185         (struct local_symbol): Replace lsy_marker field by lsy_flags.
186         Adjust comment.
187         (local_symbol_resolved_p): Adjust.
188         (local_symbol_mark_resolved): Likewise.
189         * symbols.c (LOCAL_SYMBOL_CHECK): Adjust.
190         (local_symbol_make, local_symbol_convert, colon)
191         (symbol_clone_if_forward_ref, verify_symbol_chain)
192         (resolve_symbol_value, snapshot_symbol, S_GET_VALUE)
193         (S_IS_WEAKREFR, S_IS_WEAKREFD, S_IS_VOLATILE, S_IS_FORWARD_REF)
194         (S_SET_WEAKREFR, S_CLEAR_WEAKREFR, S_SET_WEAKREFD)
195         (S_CLEAR_WEAKREFD, S_SET_VOLATILE, S_CLEAR_VOLATILE)
196         (S_SET_FORWARD_REF, symbol_same_p, symbol_mark_used)
197         (symbol_clear_used, symbol_used_p, symbol_mark_used_in_reloc)
198         (symbol_clear_used_in_reloc, symbol_used_in_reloc_p)
199         (symbol_mark_mri_common, symbol_clear_mri_common)
200         (symbol_mri_common_p, symbol_mark_written, symbol_clear_written)
201         (symbol_written_p, symbol_mark_resolved, symbol_resolved_p)
202         (symbol_equated_reloc_p, dot_symbol_init)
203         (print_symbol_value_1): Adjust.
205 2012-01-09  Iain Sandoe  <idsandoe@googlemail.com>
207         * config/obj-macho.c (obj_mach_o_weak): Remove.
208         (obj_mach_o_common_parse): Set symbol qualifiers.
209         (LAZY, REFE): New macros.
210         (obj_mach_o_symbol_type): New enum.
211         (obj_mach_o_set_symbol_qualifier): New.
212         (obj_mach_o_sym_qual): New.
213         (mach_o_pseudo_table): Add symbol qualifiers, set indirect_symbol to
214         a dummy function.
215         (obj_mach_o_type_for_symbol): New.
216         (obj_macho_frob_label): New.
217         (obj_macho_frob_symbol): New.
218         * config/obj-macho.h (S_SET_ALIGN): Amend temorary var name.
219         (obj_frob_label, obj_macho_frob_label): Declare.
220         (obj_frob_symbol, obj_macho_frob_symbol): Declare.
222 2012-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
224         * config/tc-mips.c (s_tls_rel_directive): Call mips_clear_insn_labels.
226 2012-01-08  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
227             Richard Sandiford  <rdsandiford@googlemail.com>
229         * config/tc-mips.c (mips_move_labels): Take the list of labels and
230         textness as parameters.
231         (mips_move_text_labels): New function.
232         (append_insn): Use it instead of mips_move_labels.
233         (mips_emit_delays, start_noreorder): Likewise.
234         (mips_align): Take the labels rather than just one label.
235         Move all labels to after the .align.
236         (s_align): Change the last argument to mips_align.
237         (s_cons): Likewise.
238         (s_float_cons): Likewise.
239         (s_gpword): Likewise.
240         (s_gpdword): Likewise.
242 2012-01-06  Tristan Gingold  <gingold@adacore.com>
244         * config/tc-i386.c: Update copyright year.
245         (lex_got): Also defined for Mach-O.
246         Add a guard for non-ELF configuration.
247         (md_longopts): Also handle -64 for Mach-O.
248         (md_parse_option): Likewise.
249         (i386_target_format): Adjust for x86_64-darwin.
251 2012-01-04  Iain Sandoe  <idsandoe@googlemail.com>
253         * config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Tidy definition.
254         (obj_mach_o_get_section_names): New (split from obj_mach_o_section).
255         (obj_mach_o_make_or_get_sect): Likewise.
256         (obj_mach_o_section): Split out the functionality shared with zerofill.
257         (obj_mach_o_zerofill): New.
258         (obj_mach_o_common_parse): Ensure whitespace is skipped.
259         (mach_o_pseudo_table): Add .zerofill.
261 2012-01-03  Iain Sandoe  <idsandoe@googlemail.com>
263         * config/obj-macho.c (obj_macho_process_stab): New.
264         * config/obj-macho.h (OBJ_PROCESS_STAB): Define.
265         (obj_macho_process_stab): Declare.
267 For older changes see ChangeLog-2011
269 Local Variables:
270 mode: change-log
271 left-margin: 8
272 fill-column: 74
273 version-control: never
274 End: