Prevent a bad .Psize expression from triggering a memory access violation.
[binutils-gdb.git] / gas / ChangeLog
1 2021-02-09 Nick Clifton <nickc@redhat.com>
2
3 PR 27384
4 * listing.c (listing_psize): Check the result of the width
5 expression before assigning it to paper_width.
6 * testsuite/gas/all/pr27384.s: New test source file.
7 * testsuite/gas/all/pr27384.d: New test control file.
8 * testsuite/gas/all/pr27384.err: Expected errors from new test.
9 * testsuite/gas/all/gas.exp: Run the new test.
10
11 2021-02-09 Nick Clifton <nickc@redhat.com>
12
13 PR 27355
14 * testsuite/gas/elf/pr27355.s: New test source file.
15 * testsuite/gas/elf/pr27355.d: New test control file.
16 * testsuite/gas/elf/pr27355.err: Expected errors from new test.
17 * testsuite/gas/elf/elf.exp: Run the new test.
18
19 2021-02-08 Mike Frysinger <vapier@gentoo.org>
20
21 * config/tc-tic54x (tic54x_mmregs): Rename to ...
22 (tic54x_register_mmregs): ... this. Change mmregs to tic54x_mmregs.
23 (md_pseudo_table): Change tic54x_mmregs to tic54x_register_mmregs.
24 (md_begin): Add tic54x_ prefix to regs, mmregs, condition_codes,
25 cc2_codes, cc3_codes, status_bits, and misc_symbols.
26
27 2021-02-08 Nick Clifton <nickc@redhat.com>
28
29 PR 27355
30 * dwarf2dbg.c (allocate_filename_to_slot): Allocate the dirs array
31 if it has not already been created.
32
33 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
34
35 * config/tc-riscv.c (riscv_multi_subset_supports): Removed
36 INSN_CLASS_ZB*.
37 * testsuite/gas/riscv/bitmanip-insns-32.d: Removed.
38 * testsuite/gas/riscv/bitmanip-insns-64.d: Removed.
39 * testsuite/gas/riscv/bitmanip-insns.s: Removed.
40
41 2021-02-03 Andreas Krebbel <krebbel@linux.ibm.com>
42
43 * doc/c-s390.texi: Document vector instruction formats.
44
45 2021-02-01 Emery Hemingway <ehmry@posteo.net>
46
47 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
48
49 2021-02-01 Alan Modra <amodra@gmail.com>
50
51 PR 27283
52 * config/tc-alpha.c (insert_operand): Delete dead code.
53
54 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
55
56 PR gas/27243
57 * config/tc-nios2.c (md_begin): Don't disable relaxation with
58 --gdwarf-N.
59 * testsuite/gas/nios2/relax.d: New file.
60 * testsuite/gas/nios2/relax.s: Likewise.
61
62 2021-01-26 Alan Modra <amodra@gmail.com>
63
64 * testsuite/gas/all/local-label-overflow.d: Use xfail rather than
65 notarget all except hppa. Comment.
66 * testsuite/gas/all/sleb128-2.d: Use xfail rather than notarget.
67 * testsuite/gas/all/sleb128-4.d: Likewise. Don't skip msp430.
68 * testsuite/gas/all/sleb128-5.d: Use xfail rather than notarget.
69 * testsuite/gas/all/sleb128-7.d: Likewise.
70 * testsuite/gas/all/sleb128-9.d: Likewise.
71 * testsuite/gas/elf/bignums.d: Likewise.
72 * testsuite/gas/elf/group0c.d: Likewise.
73 * testsuite/gas/elf/group1a.d: Likewise.
74 * testsuite/gas/elf/section-symbol-redef.d: Likewise.
75 * testsuite/gas/elf/section15.d: Likewise.
76 * testsuite/gas/elf/section4.d: Likewise.
77 * testsuite/gas/elf/section7.d: Likewise.
78 * testsuite/gas/macros/irp.d: Likewise.
79 * testsuite/gas/macros/repeat.d: Likewise.
80 * testsuite/gas/macros/rept.d: Likewise.
81 * testsuite/gas/macros/test2.d: Likewise.
82 * testsuite/gas/macros/vararg.d: Likewise.
83 * testsuite/gas/all/string.d: Use xfail rather than skip.
84 * testsuite/gas/elf/missing-build-notes.d: Likewise.
85 * testsuite/gas/elf/section0.d: Likewise.
86 * testsuite/gas/elf/section1.d: Likewise.
87 * testsuite/gas/elf/section10.d: Likewise.
88 * testsuite/gas/elf/section11.d: Likewise.
89 * testsuite/gas/elf/section6.d: Likewise.
90 * testsuite/gas/elf/symtab.d: Use xfail rather than skip, adjust hppa.
91 * testsuite/gas/elf/symtab.s: Don't start directives in first column.
92 * testsuite/gas/macros/test3.d: Don't notarget nds32.
93
94 2021-01-26 Alan Modra <amodra@gmail.com>
95
96 * testsuite/gas/all/byte.d,
97 * testsuite/gas/all/byte.l,
98 * testsuite/gas/all/byte.s: Delete.
99 * testsuite/gas/all/gas.exp: Don't run byte test.
100
101 2021-01-26 Alan Modra <amodra@gmail.com>
102
103 PR 27282
104 * testsuite/gas/all/none.d: Replace skip with xfail, don't xfail ft32.
105 * testsuite/gas/elf/pr27228.d: xfail hppa and allow OBJECT match.
106
107 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
108
109 PR gas/27228
110 * testsuite/gas/elf/elf.exp: Run pr27228.
111 * testsuite/gas/elf/pr27228.d: New file.
112 * testsuite/gas/elf/pr27228.s: Likewise.
113
114 2021-01-24 Alan Modra <amodra@gmail.com>
115
116 PR 27228
117 * write.c (resolve_reloc_expr_symbols): Don't assume local symbol
118 is defined.
119
120 2021-01-21 Alan Modra <amodra@gmail.com>
121
122 PR 27221
123 * dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
124 line number info when gas is generating it.
125 * testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
126 * testsuite/gas/m68hc11/indexed12.d: Likewise.
127 * testsuite/gas/elf/elf.exp: Don't run warn-2.
128 * gas/testsuite/gas/elf/warn-2.s: Delete.
129
130 2021-01-21 Alan Modra <amodra@gmail.com>
131
132 PR 27218
133 * dwarf2dbg.c (dwarf2_gen_line_info): Correct setting of dwarf_level.
134 (dwarf2_directive_filename, dwarf2_directive_loc): Likewise, and
135 error for negative file numbers.
136
137 2021-01-20 Alan Modra <amodra@gmail.com>
138
139 * testsuite/gas/ppc/power4.d: Adjust for removal of section sym.
140 * testsuite/gas/ppc/test1elf32.d: Likewise.
141 * testsuite/gas/ppc/test1elf64.d: Likewise.
142
143 2021-01-18 H.J. Lu <hongjiu.lu@intel.com>
144
145 PR gas/27195
146 * dwarf2dbg.c (dwarf2_gen_line_info): Set dwarf_level to 5 if
147 needed.
148 (dwarf2_directive_filename): Likewise.
149 (dwarf2_directive_loc): Likewise.
150 * testsuite/gas/elf/dwarf-5-file0.d: Pass --gdwarf-3.
151 * testsuite/gas/lns/lns-diag-1.l: Remove the
152 "Error: file number less than one" errors.
153
154 2021-01-18 Alan Modra <amodra@gmail.com>
155
156 PR 27198
157 * config/tc-i386.c (need_plt32_p): Return FALSE for NULL symbol.
158 * testsuite/gas/i386/pr27198.d,
159 * gas/testsuite/gas/i386/pr27198.err,
160 * gas/testsuite/gas/i386/pr27198.s: New test.
161 * gas/testsuite/gas/i386/i386.exp: Run it.
162
163 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
164
165 * config/tc-riscv.c: Indent and GNU coding standards tidy,
166 also aligned the code.
167 * config/tc-riscv.h: Likewise.
168
169 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
170
171 * config/tc-riscv.c: Error and warning messages tidy.
172 * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated.
173 * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise.
174 * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise.
175 * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise.
176 * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise.
177 * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise.
178 * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise.
179
180 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
181
182 * config/tc-riscv.c: Comments tidy and improvement. Also update
183 comment "fallthru" to "Fall through" that end with a period and
184 two spaces.
185
186 2021-01-14 Mike Frysinger <vapier@gentoo.org>
187
188 * doc/as.texi: Delete @ifset ELF wrapping around [248]byte entries.
189 Delete warning that these are only available with ELF targets.
190 * obj-elf.c (elf_pseudo_table): Move 2byte/4byte/8byte entries ...
191 * read.c (potable): ... here.
192
193 2021-01-14 Mike Frysinger <vapier@gentoo.org>
194
195 * Makefile.am (bfin-lex-wrapper.@OBJEXT@): Delete $(NO_WERROR).
196 * Makefile.in: Regenerated.
197
198 2021-01-14 Mike Frysinger <vapier@gentoo.org>
199
200 * bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
201 (parse_int): Mark char_bag const.
202
203 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
204
205 PR gas/27178
206 * config/tc-i386.c (lex_got::gotrel): Add need_GOT_symbol.
207 Don't generate GOT_symbol for PLT relocations.
208 * testsuite/gas/i386/i386.exp: Run PR gas/27178 tests.
209 * testsuite/gas/i386/no-got.d: New file.
210 * testsuite/gas/i386/no-got.s: Likewise.
211 * testsuite/gas/i386/x86-64-no-got.d: Likewise.
212 * testsuite/gas/i386/x86-64-no-got.s: Likewise.
213
214 2021-01-13 Alan Modra <amodra@gmail.com>
215
216 * Makefile.in: Regenerate.
217 * Makefile.in: Regenerate.
218
219 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
220
221 PR binutils/26792
222 * configure.ac: Use GNU_MAKE_JOBSERVER.
223 * aclocal.m4: Regenerated.
224 * configure: Likewise.
225
226 2021-01-12 Nick Clifton <nickc@redhat.com>
227
228 * po/fr.po: Updated French translation.
229
230 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
231
232 PR ld/27173
233 * configure: Regenerated.
234
235 2021-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
236
237 * NEWS: Remove CSRE.
238 * config/tc-aarch64.c (parse_csr_operand): Delete.
239 (parse_operands): Delete handling of
240 AARCH64_OPND_CSRE_CSR.
241 (aarch64_features): Remove csre.
242 * doc/c-aarch64.texi: Remove CSRE.
243 * testsuite/gas/aarch64/csre.d: Delete.
244 * testsuite/gas/aarch64/csre-invalid.s: Likewise.
245 * testsuite/gas/aarch64/csre-invalid.d: Likewise.
246 * testsuite/gas/aarch64/csre_csr.s: Likewise.
247 * testsuite/gas/aarch64/csre_csr.d: Likewise.
248 * testsuite/gas/aarch64/csre_csr-invalid.s: Likewise.
249 * testsuite/gas/aarch64/csre_csr-invalid.l: Likewise.
250 * testsuite/gas/aarch64/csre_csr-invalid.d: Likewise.
251
252 2021-01-11 Nick Clifton <nickc@redhat.com>
253
254 * po/uk.po: Updated Ukranian translation.
255
256 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
257
258 * configure: Regenerated.
259
260 2021-01-09 Nick Clifton <nickc@redhat.com>
261
262 * configure: Regenerate.
263 * po/gas.pot: Regenerate.
264
265 2021-01-09 Nick Clifton <nickc@redhat.com>
266
267 * 2.36 release branch crated.
268
269 2021-01-08 Peter Bergner <bergner@linux.ibm.com>
270
271 * testsuite/gas/ppc/rop-checks.d,
272 * testsuite/gas/ppc/rop-checks.l,
273 * testsuite/gas/ppc/rop-checks.s,
274 * testsuite/gas/ppc/rop.d,
275 * testsuite/gas/ppc/rop.s: New tests.
276 * testsuite/gas/ppc/ppc.exp: Run them.
277
278 2021-01-09 Alan Modra <amodra@gmail.com>
279
280 * configure: Regenerate.
281
282 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
283
284 * configure: Regenerate.
285
286 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
287
288 PR 27109
289 * read.c (s_reloc): Call symbol_mark_used_in_reloc on the
290 section symbol.
291 * subsegs.c (subseg_set_rest): Set BSF_SECTION_SYM_USED if needed.
292 * write.c (adjust_reloc_syms): Call symbol_mark_used_in_reloc
293 on the section symbol.
294 (set_symtab): Don't generate unused section symbols.
295 (maybe_generate_build_notes): Call symbol_mark_used_in_reloc
296 on the section symbol.
297 * config/obj-elf.c (elf_adjust_symtab): Call
298 symbol_mark_used_in_reloc on the group signature symbol.
299 * testsuite/gas/cfi/cfi-label.d: Remove unused section symbols
300 from expected output.
301 * testsuite/gas/elf/elf.exp (run_elf_list_test): Check
302 is_elf_unused_section_symbols.
303 * testsuite/gas/elf/section2.e: Updated.
304 * testsuite/gas/elf/section2.e-unused: New file.
305 * testsuite/gas/elf/symver.d: Remove unused section symbols.
306 * testsuite/gas/i386/ilp32/elf/symver.d: Likewise.
307 * testsuite/gas/i386/ilp32/x86-64-size-1.d: Likewise.
308 * testsuite/gas/i386/ilp32/x86-64-size-3.d: Likewise.
309 * testsuite/gas/i386/ilp32/x86-64-size-5.d: Likewise.
310 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Likewise.
311 * testsuite/gas/i386/size-1.d: Likewise.
312 * testsuite/gas/i386/size-3.d: Likewise.
313 * testsuite/gas/i386/svr4.d: Likewise.
314 * testsuite/gas/i386/x86-64-size-1.d: Likewise.
315 * testsuite/gas/i386/x86-64-size-3.d: Likewise.
316 * testsuite/gas/i386/x86-64-size-5.d: Likewise.
317 * testsuite/gas/i386/x86-64-unwind.d: Likewise.
318
319 2021-01-07 Philipp Tomsich <prt@gnu.org>
320
321 * config/tc-riscv.c (riscv_multi_subset_supports): Added
322 INSN_CLASS_ZIHINTPAUSE.
323 * testsuite/gas/riscv/pause.d: New testcase. Adding coverage for
324 the pause hint instruction.
325 * testsuite/gas/riscv/pause.s: Likewise.
326
327 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
328 Jim Wilson <jimw@sifive.com>
329 Andrew Waterman <andrew@sifive.com>
330 Maxim Blinov <maxim.blinov@embecosm.com>
331 Kito Cheng <kito.cheng@sifive.com>
332 Nelson Chu <nelson.chu@sifive.com>
333
334 * config/tc-riscv.c (riscv_multi_subset_supports): Handle INSN_CLASS_ZB*.
335 (riscv_get_default_ext_version): Do not check the default_isa_spec when
336 the version defined in the riscv_opcodes table is ISA_SPEC_CLASS_DRAFT.
337 * testsuite/gas/riscv/bitmanip-insns-32.d: New testcase.
338 * testsuite/gas/riscv/bitmanip-insns-64.d: Likewise.
339 * testsuite/gas/riscv/bitmanip-insns.s: Likewise.
340
341 2021-01-06 Alan Modra <amodra@gmail.com>
342
343 * testsuite/gas/sparc/sparc.exp: Move 64-bit tests inside gas_64_check.
344
345 2021-01-06 Alan Modra <amodra@gmail.com>
346
347 * testsuite/gas/macros/app1.d: xfail tic30.
348 * testsuite/gas/macros/app2.d: Likewise.
349 * testsuite/gas/macros/app3.d: Likewise.
350 * testsuite/gas/macros/app4.d: Likewise.
351
352 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
353
354 * doc/as.texi: Add -mlittle-endian and -mbig-endian to docs.
355 * doc/c-riscv.texi: Likewise.
356
357 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
358
359 * testsuite/gas/riscv/li32.d: Accept bigriscv in addition
360 to littleriscv.
361 * testsuite/gas/riscv/li64.d: Likewise.
362 * testsuite/gas/riscv/lla32.d: Likewise.
363 * testsuite/gas/riscv/lla64.d: Likewise.
364 * testsuite/gas/riscv/march-ok-g2.d: Likewise.
365 * testsuite/gas/riscv/march-ok-g2_p1.d: Likewise.
366 * testsuite/gas/riscv/march-ok-g2p0.d: Likewise.
367 * testsuite/gas/riscv/march-ok-i2p0.d: Likewise.
368 * testsuite/gas/riscv/march-ok-i2p0m2_a2f2.d: Likewise.
369 * testsuite/gas/riscv/march-ok-nse-with-version.d: Likewise.
370 * testsuite/gas/riscv/march-ok-two-nse.d: Likewise.
371
372 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
373
374 * config/tc-riscv.c (riscv_target_format): Add elf64-bigriscv and
375 elf32-bigriscv.
376 (install_insn): Always write instructions as little endian.
377 (riscv_make_nops): Likewise.
378 (md_convert_frag_branch): Likewise.
379 (md_number_to_chars): Write data in target endianness.
380 (options, md_longopts): Add -mbig-endian and -mlittle-endian options.
381 (md_parse_option): Handle the endian options.
382 * config/tc-riscv.h: Only define TARGET_BYTES_BIG_ENDIAN if not
383 already defined.
384 * configure.tgt: Added riscv64be*, riscv32be*, riscvbe*.
385
386 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
387
388 PR ld/26256
389 * config/obj-elf.c (obj_elf_change_section): Also filter out
390 SHF_LINK_ORDER.
391
392 2021-01-04 Alan Modra <amodra@gmail.com>
393
394 PR 27102
395 * symbols.c (S_SET_EXTERNAL): Revise section symbol warning
396 message and register symbol error message.
397
398 2021-01-04 Alan Modra <amodra@gmail.com>
399
400 PR 27101
401 * read.c (s_align): Use a large enough type for "align" to hold
402 the result of get_absolute_expression.
403
404 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
405
406 * config/tc-i386.c: Correct comment spelling.
407 * config/tc-riscv.c: Likewise.
408 * config/tc-s390.c: Correct comment grammar.
409 * doc/c-i386.texi: Correct spelling.
410 * doc/c-s390.texi: Correct grammar.
411
412 2021-01-01 Alan Modra <amodra@gmail.com>
413
414 Update year range in copyright notice of all files.
415
416 2021-01-01 Hans-Peter Nilsson <hp@bitrange.com>
417
418 * config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
419
420 For older changes see ChangeLog-2020
421 \f
422 Copyright (C) 2021 Free Software Foundation, Inc.
423
424 Copying and distribution of this file, with or without modification,
425 are permitted in any medium without royalty provided the copyright
426 notice and this notice are preserved.
427
428 Local Variables:
429 mode: change-log
430 left-margin: 8
431 fill-column: 74
432 version-control: never
433 End: