Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi]
[external/binutils.git] / gas / ChangeLog
1 2015-04-14  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * as.h (compressed_debug_section_type): Removed.
4
5 2015-04-14  Nick Clifton  <nickc@redhat.com>
6
7         * config/tc-rl78.h (TC_LINKRELAX_FIXUP): Define.
8         (TC_FORCE_RELOCATION_SUB_SAME): Define.
9         (DWARF2_USE_FIXED_ADVANCE_PC): Define.
10
11 2015-04-10  Nick Clifton  <nickc@redhat.com>
12
13         PR binutils/18198
14         * doc/c-arm.texi (ARM Options): Add a note about the interaction of
15         the -EB option with the linker's --be8 option.
16
17 2015-04-09  Hans-Peter Nilsson  <hp@axis.com>
18
19         * doc/c-rx.texi: Fix markup typos in last change.
20
21 2015-04-09  Nick Clifton  <nickc@redhat.com>
22
23         * config/tc-rx.c (enum options): Add OPTION_DISALLOW_STRING_INSNS.
24         (md_longopts): Add -mno-allow-string-insns.
25         (md_parse_option): Handle -mno-allow-string-insns.
26         (md_show_usage): Mention -mno-allow-string-insns.
27         (rx_note_string_insn_use): New function.  Produces an error
28         message if a string insn is used when it is not allowed.
29         * config/rx-parse.y (SCMPU): Call rx_note_string_insn_use.
30         (SMOVU, SMOVB, SMOVF, SUNTIL, SWHILE, RMPA): Likewise.
31         * config/rx-defs.h (rx_note_string_insn_use): Prototype.
32         * doc/c-rx.texi: Document -mno-allow-string-insns.
33
34 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
35
36         * as.c (show_usage): Update --compress-debug-sections.
37         (std_longopts): Use optional_argument on compress-debug-sections.
38         (parse_args): Handle
39         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
40         * as.h (compressed_debug_section_type): New.
41         (flag_compress_debug): Change type to compressed_debug_section_type.
42         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
43         * write.c (compress_debug): Set BFD_COMPRESS_GABI for
44         --compress-debug-sections=zlib-gabi.  Call
45         bfd_get_compression_header_size to get compression header size.
46         Don't rename section name for --compress-debug-sections=zlib-gabi.
47         * config/tc-i386.c (compressed_debug_section_type): Set to
48         COMPRESS_DEBUG_ZLIB.
49         * doc/as.texinfo: Document
50         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
51
52 2015-04-07  Renlin Li  <renlin.li@arm.com>
53
54         * config/tc-aarch64.c (mapping_state): Use subseg_text_p.
55         (s_aarch64_inst): Likewise.
56         (md_assemble): Likewise.
57
58 2015-04-06  H.J. Lu  <hongjiu.lu@intel.com>
59
60         * write.c (compress_debug): Use bfd_putb64 to write uncompressed
61         section size.
62
63 2015-04-05  H.J. Lu  <hongjiu.lu@intel.com>
64
65         * write.c (compress_debug): Don't write the zlib header if
66         compressed section size is the same as before compression.
67
68 2015-04-02  Nick Clifton  <nickc@redhat.com>
69
70         PR gas/18189
71         * config/tc-microblaze.c (parse_imm): Use offsetT as the type for
72         min and max parameters.  Sign extend values before testing.
73
74 2015-04-02  Renlin Li  <renlin.li@arm.com>
75
76         * config/tc-aarch64.c (mapping_state): Emit MAP_DATA within text section in order.
77         (mapping_state_2): Don't emit MAP_DATA here.
78         (s_aarch64_inst): Align frag during state transition.
79         (md_assemble): Likewise.
80
81 2015-04-02  Ed Maste  <emaste@freebsd.org>
82
83         * config/tc-aarch64.c (set_error_kind): Delete.
84         (set_error_message): Delete.
85
86 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
87
88         * configure: Regenerated.
89
90 2015-04-01  Evandro Menezes  <e.menezes@samsung.com>
91
92         * config/tc-aarch64.c: Add support for Samsung Exynos M1.
93         * doc/c-aarch64.texi (-mcpu=): Add "exynos-m1".
94
95 2015-04-01  Evandro Menezes  <e.menezes@samsung.com>
96
97         * config/tc-arm.c: Add support for Samsung Exynos M1.
98         * doc/c-arm.texi (-mcpu=): Add "exynos-m1".
99
100 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
101
102         * configure: Regenerated.
103
104 2015-03-31  Ed Schouten  <ed@nuxi.nl>
105
106         * configure.tgt (fmt): Set to elf for *-*-cloudabi*.
107
108 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
109
110         * configure.ac: Revert the AM_ZLIB change.
111         * Makefile.in: Regenerated.
112         * aclocal.m4: Likewise.
113         * configure: Likewise.
114
115 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
116
117         * Makefile.am (ZLIBINC): New.
118         (AM_CFLAGS): Add $(ZLIBINC).
119         * as.c: (show_usage): Don't check HAVE_ZLIB_H.
120         (parse_args): Likewise.
121         * compress-debug.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
122         (compress_init): Don't check HAVE_ZLIB_H.
123         (compress_data): Likewise.
124         (compress_finish): Likewise.
125         * configure.ac (AM_ZLIB): Removed.
126         (zlibinc): New.  AC_SUBST.
127         Add --with-system-zlib.
128         * Makefile.in: Regenerated.
129         * config.in: Likewise.
130         * configure: Likewise.
131         * doc/Makefile.in: Likewise.
132
133 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
134
135         * config/tc-i386.c (cpu_flags_set): Removed.
136
137 2015-03-25  Renlin Li  <renlin.li@arm.com>
138
139         * config/tc-aarch64.c (mapping_state): Remove first MAP_DATA emitting
140         code.
141         (mapping_state_2): Emit first MAP_DATA symbol here.
142
143 2015-03-24  H.J. Lu  <hongjiu.lu@intel.com>
144
145         PR gas/18087
146         * write.c (compress_debug): Don't write the zlib header if
147         compression didn't make the section smaller.
148
149 2015-03-24  Terry Guo  <terry.guo@arm.com>
150
151         * config/tc-arm.c (no_cpu_selected): Use new macro to compare
152         features.
153         (parse_psr): Likewise.
154         (do_t_mrs): Likewise.
155         (do_t_msr): Likewise.
156         (static const arm_feature_set arm_ext_*): Defined with new macros.
157         (static const arm_feature_set arm_cext_*): Likewise.
158         (static const arm_feature_set fpu_fpa_ext_*): Likewise.
159         (static const arm_feature_set fpu_vfp_ext_*): Likewise.
160         (deprecated_coproc_regs): Likewise.
161         (UL_BARRIER): Likewise.
162         (barrier_opt_names): Likewise.
163         (arm_cpus): Likewise.
164         (arm_extensions): Likewise.
165
166 2015-03-20  H.J. Lu  <hongjiu.lu@intel.com>
167
168         * config/tc-i386.c (i386_align_code): Limit multi-byte nop
169         instructions to 10 bytes.
170
171 2015-03-19  Nick Clifton  <nickc@redhat.com>
172
173         * config/tc-rl78.c (enum options): Add G13 and G14.
174         (md_longopts): Add -mg13 and -mg14.
175         (md_parse_option): Handle -mg13 and -mg14.
176         (md_show_usage): List -mg13 and -mg14.
177         * doc/c-rl78.texi: Add description of -mg13 and -mg14 options.
178
179 2015-03-18  Jon Turney  <jon.turney@dronecode.org.uk>
180             Nick Clifton  <nickc@redhat.com>
181
182         PR binutils/18087
183         * doc/as.texinfo: Note that when gas compresses debug sections the
184         compression is only performed if it makes the section smaller.
185         * write.c (compress_debug): Do not compress a debug section if
186         doing so would make it larger.
187
188 2015-03-17  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
189
190         * config/tc-i386.c (cpu_arch): Add PROCESSOR_ZNVER flags.
191         (i386_align_code): Add PROCESSOR_ZNVER cases.
192         * config/tc-i386.h (processor_type): Add PROCESSOR_ZNVER.
193         * doc/c-i386.texi: Add znver1 and clzero.
194
195 2015-03-16  Nick Clifton  <nickc@redhat.com>
196
197         * dwarf2dbg.c (out_header): Remove spurious #if 1.
198
199 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
200
201         * config/tc-aarch64.c (warn_unpredictable_ldst): Don't warn on reg
202         number 31.
203
204 2015-03-13  Jiong Wang  <jiong.wang@arm.com>
205
206         * config/tc-aarch64.h (SUB_SEGMENT_ALIGN): Define to be zero.
207
208 2015-03-12  Andrew Bennett  <andrew.bennett@imgtec.com>
209
210         * config/tc-mips.c (mips_cpu_info_table): Add i6400 entry.
211         * doc/c-mips.texi: Document i6400 -march option.
212
213 2015-03-12  Nick Clifton  <nickc@redhat.com>
214
215         PR gas/17444
216         * config/tc-arm.h (MD_APPLY_SYM_VALUE): Pass the current segment
217         to arm_apply_sym_value.  Update prototype.
218         * config/tc-arm.c (arm_apply_sym_value): Add segment argument.
219         Do not apply the value if the symbol is in a different segment to
220         the current segment.
221
222 2015-03-11  Alan Modra  <amodra@gmail.com>
223
224         * config/tc-ppc.c (md_assemble): Don't abort on 8 byte insn fixups.
225         (md_apply_fix): Report an error on data-only fixups used with insns.
226
227 2015-03-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
228
229         * config/tc-s390.c (md_gather_operands): Check for valid
230         length field operands.
231
232 2015-03-10  Michael Perkins  <perkinsmg75@yahoo.co.uk>
233
234         * config/tc-arm.c (parse_operands): Fix bug setting writeback
235         values for '^' on OP_REGLSTs.
236         (do_push_pop): Add new writeback constraint.
237
238 2015-03-10  Renlin Li  <renlin.li@arm.com>
239
240         * config/tc-arm.c (mapping_state): Remove first MAP_DATA emitting code.
241         (mapping_state_2): Emit first MAP_DATA symbol here.
242
243 2015-03-10  Matthew Wahab  <matthew.wahab@arm.com>
244
245         * config/tc-aarch64.c (mapping_state): Set minimum alignment for
246         code sections.
247
248 2015-03-10  Nick Clifton  <nickc@redhat.com>
249
250         PR gas/17852
251         * config/tc-arm.c (md_begin): Ensure that selected_cpu is
252         initialised when CPU_DEFAULT is defined.
253
254 2015-03-05  Nick Clifton  <nickc@redhat.com>
255
256         * config/tc-v850.c (md_parse_option): Fix code to set or clear
257         EF_RH850_DATA_ALIGN8 bit in ELF header, based upon the use of the
258         -m8byte-align and -m4byte-align command line options.
259
260 2015-03-04  Richard Sandiford  <richard.sandiford@arm.com>
261
262         PR gas/17843
263         * config/tc-aarch64.c (process_movw_reloc_info): Allow
264         R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
265         for MOVK.
266
267 2015-02-28  Alan Modra  <amodra@gmail.com>
268
269         * write.c (SUB_SEGMENT_ALIGN): Don't pad non-code sections at
270         end to their alignment.
271
272 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
273
274         * config/tc-aarch64.c (reloc_table_entry): Generate
275         BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21.
276         (md_apply_fix, aarch64_force_relocation): Handle
277         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
278
279 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
280
281         * config/tc-aarch64.c (reloc_table_entry): Generate
282         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
283         (md_apply_fix, aarch64_force_relocation): Handle
284         BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
285
286 2015-02-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
287
288         * config/tc-aarch64.c (reloc_table_entry): Generate
289         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
290         (md_apply_fix, aarch64_force_relocation): Handle
291         BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
292
293 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
294
295         * config/tc-aarch64.c (reloc_table_entry): Add ld_literal_type.
296         (reloc_table): Likewise.
297         (parse_address_main): Use ld_literal_type.
298
299 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
300
301         * config/tc-aarch64.c (reloc_table_entry): Add adr_type.
302         (reloc_table): Likewise.
303         (parse_address_main): Use adr_type.
304
305 2015-02-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
306
307         * config/tc-aarch64.c (aarch64_arch_any, aarch64_arch_node): Remove.
308
309 2015-02-25  Andrew Burgess  <andrew.burgess@embecosm.com>
310
311         * config/tc-avr.c: Add elf32-avr.h include.
312         (struct avr_property_record_link): New structure.
313         (avr_output_property_section_header): New function.
314         (avr_record_size): New function.
315         (avr_output_property_record): New function.
316         (avr_create_property_section): New function.
317         (avr_handle_align): New function.
318         (exclude_section_from_property_tables): New function.
319         (create_record_for_frag): New function.
320         (append_records_for_section): New function.
321         (avr_create_and_fill_property_section): New function.
322         (avr_post_relax_hook): New function.
323         * config/tc-avr.h (md_post_relax_hook): Define.
324         (avr_post_relax_hook): Declare.
325         (HANDLE_ALIGN): Define.
326         (avr_handle_align): Declare.
327         (strut avr_frag_data): New structure.
328         (TC_FRAG_TYPE): Define.
329
330 2015-02-25  Matthew Wahab  <matthew.wahab@arm.com>
331
332         * doc/c-arm.texi (-mcpu=): Add cortex-a53, cortex-a57 and
333         cortex-a72.
334
335 2015-02-24  Nick Clifton  <nickc@redhat.com>
336
337         * config/tc-v850.c (soft_float): New variable.
338         (v850_data_8): New variable.
339         (md_show_usage): Add -msoft-float/-mhard-float.
340         (md_parse_option): Likewise.
341         (md_begin): Set the default value of soft_float.
342         (v850_md_end): New function.  Creates a note section.
343         * config/tc-v850.h (md_end): Define.
344         * doc/c-v850.texi: Document -msoft-float/-mhard-float.
345
346 2015-02-23  Yoshinori Sato  <ysato@users.sourceforge.jp>
347
348         * config/tc-h8300.c (line_separater_chars): Add a version for
349         h8300-linux that includes a separator.
350         (default_mach): New variable.
351         (md_main): Use it.
352         (md_longopts): Add '--march' option.
353         (md_parse_option): Parse the new option.
354         * config/tc-h8300.h (TARGET_FORMAT): Add elf32-h8300-linux.
355         * configure.tgt: Add h8300-*-linux
356         * doc/c-h8300.texi: Document --march.
357
358 2015-02-23  Nick Clifton  <nickc@redhat.com>
359
360         PR 17940
361         * dwarf2dbg.c (out_header): When generating dwarf sections use
362         real symbols not temps for the start and end symbols.
363         * config/tc-msp430.h (TC_FORCE_RELOCATION_SUB_SAME): Also prevent
364         adjustments to relocations in debug sections.
365         (TC_LINKRELAX_FIXUP): Likewise.
366
367 2015-02-19  Alan Modra  <amodra@gmail.com>
368
369         * doc/as.texinfo (Local Symbol Names): Don't use ':' in pxref.
370         * doc/c-i386.texi: Reorder i386-Bugs after i386-Arch.
371
372 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
373
374         * config/tc-aarch64.c (aarch64_cpus): Fix code formatting.
375
376 2015-02-11  Matthew Wahab  <matthew.wahab@arm.com>
377
378         * config/tc-arm.c: Add support for Cortex-A72.
379
380 2015-02-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
381
382         * config/tc-arm.c (warn_deprecated_sp): Use as_tsktsk instead
383         of as_warn for deprecation messages.
384         (encode_arm_addr_mode_2): Likewise.
385         (check_obsolete): Likewise.
386         (do_rd_rm_rn): Likewise.
387         (do_co_reg): Likewise.
388         (do_setend): Likewise.
389         (do_t_mov_cmp): Likewise.
390         (do_neon_ldr_str): Likewise.
391         (opcode_lookup): Likewise.
392         (if_fsm_post_encode): Likewise.
393         (md_assemble): Likewise.
394
395 2015-02-06  Jan Beulich  <jbeulich@suse.com>
396
397         * dw2gencfi.c (select_cie_for_fde): Also bail on CFI_label.
398         (cfi_change_reg_numbers): Also do nothing for CFI_label.
399         (cfi_pseudo_table): Also handle .cfi_label when not supporting
400         CFI directives.
401
402 2015-02-05  Alan Modra  <amodra@gmail.com>
403
404         * config/tc-msp430.c (md_assemble): Correct size passed to
405         extract_cmd.  Remove index check.
406
407 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
408
409         * config/tc-aarch64.c (aarch64_cpus): Add support for Cortex-A72.
410         * doc/c-aarch64.texi (-mcpu=): Add "cortex-a72".
411
412 2015-02-04  Nick Clifton  <nickc@redhat.com>
413
414         * config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
415         these instructions.
416
417 2015-02-03  Renlin Li  <renlin.li@arm.com>
418
419         * doc/c-aarch64.texi (.arch): Document the directive.
420         (.arch_extension): Likewise.
421
422 2015-02-03  Nick Clifton  <nickc@redhat.com>
423
424         * config/tc-rl78.h (TC_PARSE_CONS_EXPRESSION): Define.
425
426 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
427
428         * Makefile.am: Add FT32 files.
429         * config/tc-ft32.c: New file.
430         * config/tc-ft32.h: New file.
431         * configure.tgt: Add FT32 support.
432         * Makefile.in: Regenerate.
433         * po/POTFILES.in: Regenerate.
434
435 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
436
437         * config/tc-nds32.c (do_pseudo_la_internal): Limit the second argument
438         of instruction la to a symbol.
439
440 2015-01-27  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
441
442         * config/tc-nds32.c (nds32_parse_name): Ignore when the input is
443         section name.
444
445 2015-01-19  Alan Modra  <amodra@gmail.com>
446
447         * read.c (s_reloc): Match BFD_RELOC_NONE, BFD_RELOC{8,16,32,64}.
448         * write.c (get_frag_for_reloc): Allow match just past end of frag.
449
450 2015-01-16  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
451
452         * config/tc-s390.c (struct pd_reg): Remove.
453         (pre_defined_registers): Remove.
454         (REG_NAME_CNT): Remove.
455         (reg_name_search): Calculate the register number instead of doing
456         a lookup.
457         (register_name, tc_s390_regname_to_dw2regnum): Adopt to the new
458         reg_name_search signature.
459         (s390_parse_cpu): Support the new arch string z13.
460         (s390_insert_operand): Support for vector registers with the extra
461         field for the fifth bit of each vector register operand.
462         (md_gather_operand): Adjust to the new handling of optional
463         parameters.
464
465         * doc/as.texinfo: Document the z13 cpu string.
466
467 2015-01-13  Matthew Wahab  <matthew.wahab@arm.com>
468
469         * config/tc-arm.c (parse_ifimm_zero): Accept #0x0 as a synonym for
470         #0, restoring previous behaviour.
471
472 2015-01-12  Jan Beulich  <jbeulich@suse.com>
473
474         * gas/dw2gencfi.c (cfi_add_label, dot_cfi_label): New.
475         (cfi_pseudo_table): Add "cfi_label".
476         (output_cfi_insn): Handle CFI_label.
477         (select_cie_for_fde): Als terminate CIE when encountering
478         CFI_label.
479         * dw2gencfi.h (cfi_add_label): Declare.
480         (struct cfi_insn_data): New member "sym_name".
481         (CFI_label): New.
482         * read.c (read_symbol_name): Drop "static".
483         * read.h (read_symbol_name): Declare.
484
485 2015-01-12  Jan Beulich  <jbeulich@suse.com>
486
487         * gas/config/tc-arm.c (do_neon_shl_imm): Check immediate range.
488         (do_neon_qshl_imm): Likewise.
489
490 2015-01-12  Alan Modra  <amodra@gmail.com>
491
492         * read.c (s_altmacro, s_reloc): Make definition static.
493
494 2015-01-10  Andrew Burgess  <andrew.burgess@embecosm.com>
495
496         * config/tc-avr.c (md_apply_fix): Update the contents of VALP for
497         diff fixups.
498
499 2015-01-09  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
500
501         * config/tc-arm.c (arm_cpus): Add support for APM X-Gene 1 and
502         X-Gene 2.
503         * doc/c-arm.texi (ARM Options): Mention xgene1 and xgene2.
504
505 2015-01-07  Jan Beulich <jbeulich@suse.com>
506
507         * config/tc-arm.c (struct arm_option_extension_value_table):
508         Split field "value" into fields "merge_value" and "clear_value".
509         (arm_extensions): Adjust initializer accordingly.
510
511 2015-01-01  Alan Modra  <amodra@gmail.com>
512
513         * as.c (parse_args): Just print current year.
514
515 2015-01-01  Alan Modra  <amodra@gmail.com>
516
517         Update year range in copyright notice of all files.
518
519 For older changes see ChangeLog-2014
520 \f
521 Copyright (C) 2015 Free Software Foundation, Inc.
522
523 Copying and distribution of this file, with or without modification,
524 are permitted in any medium without royalty provided the copyright
525 notice and this notice are preserved.
526
527 Local Variables:
528 mode: change-log
529 left-margin: 8
530 fill-column: 74
531 version-control: never
532 End: