1 016-02-19 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3 * listing.c (rebuffer_line): Change return type to void.
5 * symbols.c (decode_local_label_name): Make type a const char *.
6 * listing.c (print_source): Make type of p const char *.
7 (print_line): Make type of string const char *.
8 (buffer_line): Return const char *.
9 (title): Make type const char *.
11 (listing_listing): Make type of p const char *.
12 * messages.c (as_internal_value_out_of_range): Make type of prefix
14 * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname
15 and string const char *.
16 * read.c (_bfd_rel): Make type of name const char *.
17 * app.c (out_string): Change type to const char *.
18 (struct app_save::out_string): Likewise.
20 2016-02-18 Dan Gisselquist <dgisselq@verizon.net>
21 Nick Clifton <nickc@redhat.com>
23 * read.c (finish_bundle): Avoid recording a negative alignment.
24 (do_align): Use unsigned values for n, len and max. Only create
25 a frag if the alignment requirement is greater than the minimum
26 byte alignment. Avoid recording a negative alignment.
27 (s_align): Use unsigned values where appropriate.
28 (bss_alloc): Use an unsigned value for the alignment.
29 (sizeof_sleb128): Add a comment noting that we encode one octet
30 per byte, regardless of the value of OCTETS_PER_BYTE_POWER.
31 (emit_leb129_expr): Abort if the emitted encoding was longer than
33 * read.h (output_leb128): Update prototype.
34 (sizeof_leb128): Update prototype.
35 (bss_alloc): Update prototype.
36 * write.c (record_alignment): Use an unsigned value for the
37 alignment. Do not record alignments less than the minimum
39 * write.h (record_alignment): Update prototype.
41 2016-02-17 Max Filippov <jcmvbkbc@gmail.com>
43 * config/tc-xtensa.c (xtensa_move_literals): Fix check for
44 .init.literal/.fini.literal section name.
45 * testsuite/gas/xtensa/all.exp: Add init-fini-literals to the
47 * testsuite/gas/xtensa/init-fini-literals.d: New file:
48 init-fini-literals test result patterns.
49 * testsuite/gas/xtensa/init-fini-literals.s: New file:
50 init-fini-literals test.
52 2016-02-17 Nick Clifton <nickc@redhat.com>
54 * config/tc-msp430.c (msp430_mcu_data): Sync with data from TI's
55 devices.csv file as of March 2016.
57 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
59 * config/tc-arc.c (tc_arc_frame_initial_instructions): New
61 (tc_arc_regname_to_dw2regnum): Likewise.
62 * config/tc-arc.h (TARGET_USE_CFIPOP): Define
63 (tc_cfi_frame_initial_instructions): Likewise.
64 (tc_regname_to_dw2regnum): Likewise.
66 2016-02-16 Trevor Saunders <tbsaunde@tbsaunde.org>
68 * doc/internals.texi (S_IS_EXTERN): Remove.
70 2016-02-16 Nick Clifton <nickc@redhat.com>
72 * doc/as.texinfo (Section): Fix up texinfo snafus in previous
75 2016-02-16 Renlin Li <renlin.li@arm.com>
78 * config/tc-aarch64.c (parse_half): Remove restrictions on symbol name.
79 * testsuite/gas/aarch64/movw_label.d: New.
80 * testsuite/gas/aarch64/movw_label.s: New.
82 2016-02-15 Vinay Kumar G. <Vinay.G@kpit.com>
85 * config/rx-parse.y (MOV): Opcode generation for index
86 register addressing mode.
87 * testsuite/gas/rx/rx.exp: Updated for new testcase.
88 * testsuite/gas/rx/pr19665.s: New file.
89 * testsuite/gas/rx/pr19665.s: New file.
90 * testsuite/gas/rx/mov.d: Update expected output.
92 2016-02-15 Nick Clifton <nickc@redhat.com>
94 * doc/as.texinfo (.section): Document that numeric values can now
95 be used for the flags and type fields of the ELF target's .section
96 directive. Add notes about the restrictions on setting flags and
98 * config/obj-elf.c (obj_elf_change_section): Allow known sections
99 to be given processor specific section types. Allow processor and
100 application specific flags of a section to be set after
102 (obj_elf_parse_section_letters): Handle parsing numeric values.
103 (obj_elf_section_type): Handle parsing numeric values.
104 (obj_elf_section): Allow numeric type values.
105 * config/obj-elf.h (obj_elf_change_section): Update prototype.
106 * testsuite/gas/elf/section10.d: New test.
107 * testsuite/gas/elf/section10.s: Source file for new test.
108 * testsuite/gas/elf/elf.exp: Run the new test.
109 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
110 the description of the flags produced by readelf.
111 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
112 * NEWS: Mention the new feature.
114 2016-02-11 Nick Clifton <nickc@redhat.com>
117 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
118 until it is actually used.
119 (cfi_set_sections): Set cfi_sections_set to true.
120 (dot_cfi_startproc): Likewise.
121 (dot_cfi_endproc): Likewise.
122 (dot_cfi_fde_data): Likewise.
123 (cfi_finish): Likewise.
124 (dot_cfi_sections): Do not set cfi_sections_set.
125 * doc/as.texinfo (.cfi_sections): Note that targets can provide
126 their own cfi section name. Also note that the directive can be
127 reissued provided that CFI generation has not started.
128 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
129 .cfi_endproc directives so that the redefinition of .cfi_sections
130 will trigger the generation of the error message.
131 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
132 number of error message.
134 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
135 Janek van Oirschot <jvanoirs@synopsys.com>
137 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
138 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
140 (arc_flags, arc_relax_type): New structure.
141 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
142 (RELAX_TABLE_ENTRY_MAX): New define.
143 (relaxation_state, md_relax_table, arc_relaxable_insns)
144 (arc_num_relaxable_ins): New variable.
145 (rlx_operand_type, arc_rlx_types): New enums.
146 (arc_relaxable_ins): New structure.
147 (OPTION_RELAX): New option.
148 (arc_insn): New relax member.
150 (relax_insn_p): New function.
151 (apply_fixups): Likewise.
152 (relaxable_operand): Likewise.
153 (may_relax_expr): Likewise.
154 (relaxable_flag): Likewise.
155 (arc_pcrel_adjust): Likewise.
156 (md_estimate_size_before_relax): Implement.
157 (md_convert_frag): Likewise.
158 (md_parse_option): Handle new mrelax option.
159 (md_show_usage): Likewise.
160 (assemble_insn): Set relax member.
161 (emit_insn0): New function.
162 (emit_insn1): Likewise.
163 (emit_insn): Handle relaxation case.
164 * NEWS: Mention the new relaxation option.
165 * doc/c-arc.texi (ARC Options): Document new mrelax option.
166 * doc/as.texinfo (Target ARC Options): Likewise.
167 * testsuite/gas/arc/relax-avoid1.d: New file.
168 * testsuite/gas/arc/relax-avoid1.s: Likewise.
169 * testsuite/gas/arc/relax-avoid2.d: Likewise.
170 * testsuite/gas/arc/relax-avoid2.s: Likewise.
171 * testsuite/gas/arc/relax-avoid3.d: Likewise.
172 * testsuite/gas/arc/relax-avoid3.s: Likewise.
173 * testsuite/gas/arc/relax-b.d: Likewise.
174 * testsuite/gas/arc/relax-b.s: Likewise.
176 2016-02-08 Nick Clifton <nickc@redhat.com>
178 * config/tc-ia64.c (dot_prologue): Fix formatting.
180 2016-02-04 Nick Clifton <nickc@redhat.com>
182 * config/obj-elf.c (obj_elf_change_section): Remove support for
184 * config/tc-arm.c (arm_elf_section_letter): Delete.
185 * config/tc-arm.h (md_elf_section_letter): Delete.
186 * doc/c-arm.texi (ARM Section Attribute): Delete section.
187 * testsuite/gas/arm/section-execute-only.d: Delete.
188 * testsuite/gas/arm/section-execute-only.s: Delete.
190 2016-02-04 Nick Clifton <nickc@redhat.com>
193 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
194 to handle encoding of RRUX instruction.
195 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
197 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
199 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
201 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
202 substitutions for BFD_RELOC_* as unsigned.
203 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
204 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
205 * testsuite/gas/xtensa/loc.s: New file: loc test.
207 2016-02-03 Kevin Buettner <kevinb@redhat.com>
209 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
211 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
214 * NEWS: Mention new command line option -mrelax-relocations and
215 new configure option --enable-x86-relax-relocations for x86
217 * config.in: Regenerated.
218 * configure.ac: Add --enable-x86-relax-relocations.
219 (ac_default_x86_relax_relocations): New. Default to 1 except
220 for x86 Solaris targets older than Solaris 12.
221 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
222 * configure: Likewise.
223 * config/tc-i386.c (generate_relax_relocations): New.
224 (OPTION_MRELAX_RELOCATIONS): Likewise.
225 (output_disp): Don't generate relax relocations if
226 generate_relax_relocations is 0.
227 (md_longopts): Add -mrelax-relocations.
228 (md_show_usage): Likewise.
229 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
230 * doc/c-i386.texi: Document -mrelax-relocations=.
231 * testsuite/gas/i386/got-no-relax.d: New file.
232 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
233 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
234 * testsuite/gas/i386/localpic.d: Likewise.
235 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
236 * testsuite/gas/i386/reloc32.d: Likewise.
237 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
238 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
239 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
240 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
241 * testsuite/gas/i386/i386.exp: Run got-no-relax and
242 x86-64-gotpcrel-no-relax.
244 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
246 * NEWS: Mention new command line option -mfence-as-lock-add=yes
249 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
251 * NEWS: Remove duplicated marker for 2.26.
253 2016-02-02 Renlin Li <renlin.li@arm.com>
255 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
257 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
259 * testsuite/gas/ip2k/allinsn.d: New file.
260 * testsuite/gas/ip2k/allinsn.s: New file.
261 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
263 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
265 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
266 some load instructions.
267 * testsuite/gas/epiphany/allinsn.d: Likewise.
268 * testsuite/gas/epiphany/regression.d: Likewise.
270 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
272 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
273 suffixes from instruction mnemonics in expected output.
274 * testsuite/gas/epiphany/allinsn.d: Likewise.
275 * testsuite/gas/epiphany/regression.d: Likewise.
276 * testsuite/gas/epiphany/sample.d: Likewise.
278 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
280 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
282 * testsuite/gas/epiphany/allinsn.d: Likewise.
283 * testsuite/gas/epiphany/sample.d: Likewise.
285 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
287 * testsuite/gas/epiphany/sample.d: Update expected output.
289 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
291 * config/tc-arc.c (md_apply_fix): Allow addendum.
292 (arc_reloc_op): Allow complex expressions for tpoff.
293 (md_apply_fix): Handle resolved TLS local symbol.
295 * testsuite/gas/arc/tls-relocs1.d: New file.
296 * testsuite/gas/arc/tls-relocs1.s: Likewise.
298 2016-02-01 Loria <Loria@phantasia.org>
301 * config/tc-arm.c (encode_arm_immediate): Recode to improve
302 efficiency and avoid an LLVM loop optimization bug.
304 2016-02-01 Nick Clifton <nickc@redhat.com>
306 * config/tc-microblaze.c (parse_imm): Fix compile time warning
307 message extending a negative 32-bit value into a larger signed
308 value on a 32-bit host.
310 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
313 * configure.ac (compressed_debug_sections): Replace == with =.
314 * configure: Regenerated.
316 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
317 H.J. Lu <hongjiu.lu@intel.com>
319 * config/tc-i386.c (avoid_fence): New.
320 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
322 (OPTION_FENCE_AS_LOCK_ADD): New.
323 (md_longopts): Add -mfence-as-lock-add.
324 (md_parse_option): Handle -mfence-as-lock-add.
325 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
326 * doc/c-i386.texi (-mfence-as-lock-add): Document.
327 * testsuite/gas/i386/i386.exp: Run new tests.
328 * testsuite/gas/i386/fence-as-lock-add.s: New.
329 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
330 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
331 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
332 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
334 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
336 * configure.ac (compressed_debug_sections): Remove trailing `]'.
337 * configure: Regenerated.
339 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
341 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
342 (OPTION_MOMIT_LOCK_PREFIX): This.
343 (md_longopts): Updated.
344 (md_parse_option): Likewise.
346 2016-01-25 Catherine Moore <clm@codesourcery.com>
348 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
349 if abicalls are in effect.
350 * testsuite/gas/mips/sdata-gp.s: New test.
351 * testsuite/gas/mips/sdata-gp.d: New expected output
352 * testsuite/gas/mips/mips.exp: Run new test.
354 2016-01-25 Renlin Li <renlin.li@arm.com>
356 * testsuite/gas/arm/thumb2_it_search.d: New.
357 * testsuite/gas/arm/thumb2_it_search.s: New.
359 2016-01-21 Nick Clifton <nickc@redhat.com>
362 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
363 with arm-netbsdelf target.
364 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
366 2016-01-20 Nick Clifton <nickc@redhat.com>
369 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
370 * testsuite/gas/arm/blx-bl-convert.d
371 * testsuite/gas/arm/plt-1.d: Likewise.
372 * testsuite/gas/arm/reloc-bad.d: Likewise.
373 * testsuite/gas/arm/thumb-w-good.d: Likewise.
374 * testsuite/gas/arm/thumb2_pool.d: Likewise.
375 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
376 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
379 * doc/as.texinfo (Errors): Correct documentation describing the
380 interaction of .file and .line with warning and error messages.
383 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
384 * testsuite/gas/arm/archv8m-main.d: Likewise.
385 * testsuite/gas/arm/archv8m-base.d: Likewise.
387 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
389 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
390 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
391 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
393 2016-01-20 Mickael Guene <mickael.guene@st.com>
394 Terry Guo <terry.guo@arm.com>
396 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
397 SHF_ARM_NOREAD section flag.
398 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
400 (arm_elf_section_letter) : Declare it.
401 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
402 SHF_ARM_NOREAD section flag.
403 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
405 * testsuite/gas/arm/section-execute-only.s: New test case.
406 * testsuite/gas/arm/section-execute-only.d: Expected output.
408 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
410 * config/tc-mips.c (micromips_insn_length): Remove the mention
411 of 48-bit microMIPS instructions.
413 2016-01-18 Alan Modra <amodra@gmail.com>
415 * configure: Regenerate.
417 2016-01-17 Alan Modra <amodra@gmail.com>
419 * configure: Regenerate.
421 2016-01-17 Alan Modra <amodra@gmail.com>
423 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
425 2016-01-14 Nick Clifton <nickc@redhat.com>
427 * testsuite/gas/rl78/sp-relative-movw.s: New test.
428 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
429 * testsuite/gas/rl78/rl78.exp: Run the new test.
431 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
433 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
434 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
436 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
438 * config/tc-nios2.c (output_movia): Preset `code' to 0.
440 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
442 * config/tc-h8300.c (get_operand): Remove spurious condition in
443 test for closing parenthesis.
445 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
447 * config/tc-arm.c (arm_ext_v8_2): New.
449 * testsuite/gas/arm/armv8_2-a.d: New.
450 * testsuite/gas/arm/armv8_2-a.s: New.
452 2016-01-12 Alan Modra <amodra@gmail.com>
454 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
456 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
458 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
459 xvcmpnesp, xvcmpnesp.>: Delete tests.
460 * testsuite/gas/ppc/power9.s: Likewise.
461 * testsuite/gas/ppc/vsx3.d: Likewise.
462 * testsuite/gas/ppc/vsx3.s: Likewise.
464 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
467 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
468 * testsuite/gas/m68k/p13050-1.s: New file.
469 * testsuite/gas/m68k/p13050-2.d: New file.
470 * testsuite/gas/m68k/p13050-2.s: New file.
472 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
474 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
475 * testsuite/gas/arc/add.d: Likewise.
476 * testsuite/gas/arc/and.d: Likewise.
477 * testsuite/gas/arc/asl.d: Likewise.
478 * testsuite/gas/arc/asr.d: Likewise.
479 * testsuite/gas/arc/bic.d: Likewise.
480 * testsuite/gas/arc/extb.d: Likewise.
481 * testsuite/gas/arc/extw.d: Likewise.
482 * testsuite/gas/arc/j.d: Likewise.
483 * testsuite/gas/arc/jl.d: Likewise.
484 * testsuite/gas/arc/ld2.d: Likewise.
485 * testsuite/gas/arc/lsr.d: Likewise.
486 * testsuite/gas/arc/mov.d: Likewise.
487 * testsuite/gas/arc/or.d: Likewise.
488 * testsuite/gas/arc/pcl-relocs.d: Likewise.
489 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
490 * testsuite/gas/arc/pic-relocs.d: Likewise.
491 * testsuite/gas/arc/plt-relocs.d: Likewise.
492 * testsuite/gas/arc/rlc.d: Likewise.
493 * testsuite/gas/arc/ror.d: Likewise.
494 * testsuite/gas/arc/rrc.d: Likewise.
495 * testsuite/gas/arc/sbc.d: Likewise.
496 * testsuite/gas/arc/sda-relocs.d: Likewise.
497 * testsuite/gas/arc/sda-relocs2.d: Likewise.
498 * testsuite/gas/arc/sexb.d: Likewise.
499 * testsuite/gas/arc/sexw.d: Likewise.
500 * testsuite/gas/arc/st.d: Likewise.
501 * testsuite/gas/arc/sub.d: Likewise.
502 * testsuite/gas/arc/tls-relocs.d: Likewise.
503 * testsuite/gas/arc/xor.d: Likewise.
505 2016-01-01 Alan Modra <amodra@gmail.com>
507 Update year range in copyright notice of all files.
509 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
511 Copyright (C) 2016 Free Software Foundation, Inc.
513 Copying and distribution of this file, with or without modification,
514 are permitted in any medium without royalty provided the copyright
515 notice and this notice are preserved.
521 version-control: never