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