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