Enhance GAS's .section directive so that it can take numeric values for the flags...
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2016-02-15 Nick Clifton <nickc@redhat.com>
2
3 * doc/as.texinfo (.section): Document that numeric values can now
4 be used for the flags and type fields of the ELF target's .section
5 directive. Add notes about the restrictions on setting flags and
6 types.
7 * config/obj-elf.c (obj_elf_change_section): Allow known sections
8 to be given processor specific section types. Allow processor and
9 application specific flags of a section to be set after
10 definition.
11 (obj_elf_parse_section_letters): Handle parsing numeric values.
12 (obj_elf_section_type): Handle parsing numeric values.
13 (obj_elf_section): Allow numeric type values.
14 * config/obj-elf.h (obj_elf_change_section): Update prototype.
15 * testsuite/gas/elf/section10.d: New test.
16 * testsuite/gas/elf/section10.s: Source file for new test.
17 * testsuite/gas/elf/elf.exp: Run the new test.
18 * testsuite/gas/i386/ilp32/x86-64-unwind.d: Remove dependency upon
19 the description of the flags produced by readelf.
20 * testsuite/gas/tic6x/scomm-directive-4.d: Likewise.
21 * NEWS: Mention the new feature.
22
23 2016-02-11 Nick Clifton <nickc@redhat.com>
24
25 PR gas/19614
26 * dw2gencfi.c (cfi_sections_set): Delay setting this variable
27 until it is actually used.
28 (cfi_set_sections): Set cfi_sections_set to true.
29 (dot_cfi_startproc): Likewise.
30 (dot_cfi_endproc): Likewise.
31 (dot_cfi_fde_data): Likewise.
32 (cfi_finish): Likewise.
33 (dot_cfi_sections): Do not set cfi_sections_set.
34 * doc/as.texinfo (.cfi_sections): Note that targets can provide
35 their own cfi section name. Also note that the directive can be
36 reissued provided that CFI generation has not started.
37 * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and
38 .cfi_endproc directives so that the redefinition of .cfi_sections
39 will trigger the generation of the error message.
40 * testsuite/gas/mips/compact-eh-err2.l: Update expected line
41 number of error message.
42
43 2016-02-10 Claudiu Zissulescu <claziss@synopsys.com>
44 Janek van Oirschot <jvanoirs@synopsys.com>
45
46 * config/tc-arc.h (TC_FRAG_TYPE, TC_PCREL_ADJUST, MAX_INSN_ARGS)
47 (MAX_INSN_FLGS, MAX_FLAG_NAME_LENGHT, TC_GENERIC_RELAX_TABLE):
48 Define.
49 (arc_flags, arc_relax_type): New structure.
50 * config/tc-arc.c (FRAG_MAX_GROWTH, RELAX_TABLE_ENTRY)
51 (RELAX_TABLE_ENTRY_MAX): New define.
52 (relaxation_state, md_relax_table, arc_relaxable_insns)
53 (arc_num_relaxable_ins): New variable.
54 (rlx_operand_type, arc_rlx_types): New enums.
55 (arc_relaxable_ins): New structure.
56 (OPTION_RELAX): New option.
57 (arc_insn): New relax member.
58 (arc_flags): Remove.
59 (relax_insn_p): New function.
60 (apply_fixups): Likewise.
61 (relaxable_operand): Likewise.
62 (may_relax_expr): Likewise.
63 (relaxable_flag): Likewise.
64 (arc_pcrel_adjust): Likewise.
65 (md_estimate_size_before_relax): Implement.
66 (md_convert_frag): Likewise.
67 (md_parse_option): Handle new mrelax option.
68 (md_show_usage): Likewise.
69 (assemble_insn): Set relax member.
70 (emit_insn0): New function.
71 (emit_insn1): Likewise.
72 (emit_insn): Handle relaxation case.
73 * NEWS: Mention the new relaxation option.
74 * doc/c-arc.texi (ARC Options): Document new mrelax option.
75 * doc/as.texinfo (Target ARC Options): Likewise.
76 * testsuite/gas/arc/relax-avoid1.d: New file.
77 * testsuite/gas/arc/relax-avoid1.s: Likewise.
78 * testsuite/gas/arc/relax-avoid2.d: Likewise.
79 * testsuite/gas/arc/relax-avoid2.s: Likewise.
80 * testsuite/gas/arc/relax-avoid3.d: Likewise.
81 * testsuite/gas/arc/relax-avoid3.s: Likewise.
82 * testsuite/gas/arc/relax-b.d: Likewise.
83 * testsuite/gas/arc/relax-b.s: Likewise.
84
85 2016-02-08 Nick Clifton <nickc@redhat.com>
86
87 * config/tc-ia64.c (dot_prologue): Fix formatting.
88
89 2016-02-04 Nick Clifton <nickc@redhat.com>
90
91 * config/obj-elf.c (obj_elf_change_section): Remove support for
92 ARM NOREAD sections.
93 * config/tc-arm.c (arm_elf_section_letter): Delete.
94 * config/tc-arm.h (md_elf_section_letter): Delete.
95 * doc/c-arm.texi (ARM Section Attribute): Delete section.
96 * testsuite/gas/arm/section-execute-only.d: Delete.
97 * testsuite/gas/arm/section-execute-only.s: Delete.
98
99 2016-02-04 Nick Clifton <nickc@redhat.com>
100
101 PR target/19561
102 * config/tc-msp430.c (msp430_operands): Remove case 7. Use case 2
103 to handle encoding of RRUX instruction.
104 * testsuite/gas/msp430/msp430x.s: Add more tests of the extended
105 shift instructions.
106 * testsuite/gas/msp430/msp430x.d: Update expected disassembly.
107
108 2016-02-03 Max Filippov <jcmvbkbc@gmail.com>
109
110 * config/tc-xtensa.c (md_apply_fix): Mark BFD_RELOC_XTENSA_DIFF*
111 substitutions for BFD_RELOC_* as unsigned.
112 * testsuite/gas/xtensa/all.exp: Add loc to list of xtensa tests.
113 * testsuite/gas/xtensa/loc.d: New file: loc test result patterns.
114 * testsuite/gas/xtensa/loc.s: New file: loc test.
115
116 2016-02-03 Kevin Buettner <kevinb@redhat.com>
117
118 * config/tc-msp430.h (DWARF2_ADDR_SIZE): Set to 4.
119
120 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
121
122 PR gas/19520
123 * NEWS: Mention new command line option -mrelax-relocations and
124 new configure option --enable-x86-relax-relocations for x86
125 target.
126 * config.in: Regenerated.
127 * configure.ac: Add --enable-x86-relax-relocations.
128 (ac_default_x86_relax_relocations): New. Default to 1 except
129 for x86 Solaris targets older than Solaris 12.
130 (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define.
131 * configure: Likewise.
132 * config/tc-i386.c (generate_relax_relocations): New.
133 (OPTION_MRELAX_RELOCATIONS): Likewise.
134 (output_disp): Don't generate relax relocations if
135 generate_relax_relocations is 0.
136 (md_longopts): Add -mrelax-relocations.
137 (md_show_usage): Likewise.
138 (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS.
139 * doc/c-i386.texi: Document -mrelax-relocations=.
140 * testsuite/gas/i386/got-no-relax.d: New file.
141 * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise.
142 * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as.
143 * testsuite/gas/i386/localpic.d: Likewise.
144 * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise.
145 * testsuite/gas/i386/reloc32.d: Likewise.
146 * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise.
147 * testsuite/gas/i386/x86-64-localpic.d: Likewise.
148 * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise.
149 * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise.
150 * testsuite/gas/i386/i386.exp: Run got-no-relax and
151 x86-64-gotpcrel-no-relax.
152
153 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
154
155 * NEWS: Mention new command line option -mfence-as-lock-add=yes
156 for x86 target.
157
158 2016-02-03 H.J. Lu <hongjiu.lu@intel.com>
159
160 * NEWS: Remove duplicated marker for 2.26.
161
162 2016-02-02 Renlin Li <renlin.li@arm.com>
163
164 * testsuite/gas/arm/thumb2_it_search.d: Skip non-elf targets.
165
166 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
167
168 * testsuite/gas/ip2k/allinsn.d: New file.
169 * testsuite/gas/ip2k/allinsn.s: New file.
170 * testsuite/gas/ip2k/ip2k-allinsn.exp: New file.
171
172 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 * testsuite/gas/epiphany/addr-syntax.d: Add explicit 0 offset to
175 some load instructions.
176 * testsuite/gas/epiphany/allinsn.d: Likewise.
177 * testsuite/gas/epiphany/regression.d: Likewise.
178
179 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * testsuite/gas/epiphany/addr-syntax.d: Remove unneeded '.l'
182 suffixes from instruction mnemonics in expected output.
183 * testsuite/gas/epiphany/allinsn.d: Likewise.
184 * testsuite/gas/epiphany/regression.d: Likewise.
185 * testsuite/gas/epiphany/sample.d: Likewise.
186
187 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * testsuite/gas/epiphany/addr-syntax.d: Update expected register
190 names.
191 * testsuite/gas/epiphany/allinsn.d: Likewise.
192 * testsuite/gas/epiphany/sample.d: Likewise.
193
194 2016-02-02 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * testsuite/gas/epiphany/sample.d: Update expected output.
197
198 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
199
200 * config/tc-arc.c (md_apply_fix): Allow addendum.
201 (arc_reloc_op): Allow complex expressions for tpoff.
202 (md_apply_fix): Handle resolved TLS local symbol.
203
204 * testsuite/gas/arc/tls-relocs1.d: New file.
205 * testsuite/gas/arc/tls-relocs1.s: Likewise.
206
207 2016-02-01 Loria <Loria@phantasia.org>
208
209 PR target/19311
210 * config/tc-arm.c (encode_arm_immediate): Recode to improve
211 efficiency and avoid an LLVM loop optimization bug.
212
213 2016-02-01 Nick Clifton <nickc@redhat.com>
214
215 * config/tc-microblaze.c (parse_imm): Fix compile time warning
216 message extending a negative 32-bit value into a larger signed
217 value on a 32-bit host.
218
219 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
220
221 PR gas/19532
222 * configure.ac (compressed_debug_sections): Replace == with =.
223 * configure: Regenerated.
224
225 2016-01-29 Andrew Senkevich <andrew.senkevich@intel.com>
226 H.J. Lu <hongjiu.lu@intel.com>
227
228 * config/tc-i386.c (avoid_fence): New.
229 (output_insn): Encode as lock addl $0x0, (%{r,e}sp) if avoid_fence
230 is true.
231 (OPTION_FENCE_AS_LOCK_ADD): New.
232 (md_longopts): Add -mfence-as-lock-add.
233 (md_parse_option): Handle -mfence-as-lock-add.
234 (md_show_usage): Add -mfence-as-lock-add=[no|yes].
235 * doc/c-i386.texi (-mfence-as-lock-add): Document.
236 * testsuite/gas/i386/i386.exp: Run new tests.
237 * testsuite/gas/i386/fence-as-lock-add.s: New.
238 * testsuite/gas/i386/fence-as-lock-add-yes.d: Likewise.
239 * testsuite/gas/i386/fence-as-lock-add-no.d: Likewise.
240 * testsuite/gas/i386/x86-64-fence-as-lock-add-yes.d: Likewise.
241 * testsuite/gas/i386/x86-64-fence-as-lock-add-no.d: Likewise.
242
243 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
244
245 * configure.ac (compressed_debug_sections): Remove trailing `]'.
246 * configure: Regenerated.
247
248 2016-01-25 H.J. Lu <hongjiu.lu@intel.com>
249
250 * config/tc-i386.c (OPTION_OMIT_LOCK_PREFIX): Renamed to ...
251 (OPTION_MOMIT_LOCK_PREFIX): This.
252 (md_longopts): Updated.
253 (md_parse_option): Likewise.
254
255 2016-01-25 Catherine Moore <clm@codesourcery.com>
256
257 * config/mips/tc-mips.c (md_begin): Avoid gp-relative addressing
258 if abicalls are in effect.
259 * testsuite/gas/mips/sdata-gp.s: New test.
260 * testsuite/gas/mips/sdata-gp.d: New expected output
261 * testsuite/gas/mips/mips.exp: Run new test.
262
263 2016-01-25 Renlin Li <renlin.li@arm.com>
264
265 * testsuite/gas/arm/thumb2_it_search.d: New.
266 * testsuite/gas/arm/thumb2_it_search.s: New.
267
268 2016-01-21 Nick Clifton <nickc@redhat.com>
269
270 PR gas/19454
271 * testsuite/gas/arm/mapshort-elf.d: Fix expected output to cope
272 with arm-netbsdelf target.
273 * testsuite/gas/arm/blx-bl-convert.d: Skip for netbsdelf.
274
275 2016-01-20 Nick Clifton <nickc@redhat.com>
276
277 PR 19456
278 * testsuite/gas/arm/weakdef-1.d: Skip for VxWorks.
279 * testsuite/gas/arm/blx-bl-convert.d
280 * testsuite/gas/arm/plt-1.d: Likewise.
281 * testsuite/gas/arm/reloc-bad.d: Likewise.
282 * testsuite/gas/arm/thumb-w-good.d: Likewise.
283 * testsuite/gas/arm/thumb2_pool.d: Likewise.
284 * testsuite/gas/arm/ldconst.d: Adjust so that it works with VxWorks
285 * testsuite/gas/arm/tls_vxworks.d: Update expected output.
286
287 PR 19499
288 * doc/as.texinfo (Errors): Correct documentation describing the
289 interaction of .file and .line with warning and error messages.
290
291 PR 19458
292 * testsuite/gas/arm/armv8_2-a.d: Skip for COFF based targets.
293 * testsuite/gas/arm/archv8m-main.d: Likewise.
294 * testsuite/gas/arm/archv8m-base.d: Likewise.
295
296 2016-01-20 Matthew Wahab <matthew.wahab@arm.com>
297
298 * testsuite/gas/aarch64/armv8_2-a-illegal.d: New.
299 * testsuite/gas/aarch64/armv8_2-a-illegal.l: New.
300 * testsuite/gas/aarch64/armv8_2-a-illegal.s: New.
301
302 2016-01-20 Mickael Guene <mickael.guene@st.com>
303 Terry Guo <terry.guo@arm.com>
304
305 * config/obj-elf.c (obj_elf_change_section) : Allow arm section with
306 SHF_ARM_NOREAD section flag.
307 * config/tc-arm.h (md_elf_section_letter) : Implement this hook to
308 handle letter 'y'.
309 (arm_elf_section_letter) : Declare it.
310 * config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
311 SHF_ARM_NOREAD section flag.
312 * doc/c-arm.texi (ARM section attribute): Document the 'y' attribute.
313
314 * testsuite/gas/arm/section-execute-only.s: New test case.
315 * testsuite/gas/arm/section-execute-only.d: Expected output.
316
317 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
318
319 * config/tc-mips.c (micromips_insn_length): Remove the mention
320 of 48-bit microMIPS instructions.
321
322 2016-01-18 Alan Modra <amodra@gmail.com>
323
324 * configure: Regenerate.
325
326 2016-01-17 Alan Modra <amodra@gmail.com>
327
328 * configure: Regenerate.
329
330 2016-01-17 Alan Modra <amodra@gmail.com>
331
332 * testsuite/gas/cfi/cfi.exp: Exclude m68hc11/12 from m68k test.
333
334 2016-01-14 Nick Clifton <nickc@redhat.com>
335
336 * testsuite/gas/rl78/sp-relative-movw.s: New test.
337 * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly.
338 * testsuite/gas/rl78/rl78.exp: Run the new test.
339
340 2016-01-14 Matthew Wahab <matthew.wahab@arm.com>
341
342 * testsuite/gas/aarch64/illegal-sysreg-2.l: New.
343 * testsuite/gas/aarch64/illegal-sysreg-2.d: New.
344
345 2016-01-13 Maciej W. Rozycki <macro@imgtec.com>
346
347 * config/tc-nios2.c (output_movia): Preset `code' to 0.
348
349 2016-01-13 Yoshinori Sato <ysato@users.sourceforge.jp>
350
351 * config/tc-h8300.c (get_operand): Remove spurious condition in
352 test for closing parenthesis.
353
354 2016-01-12 Matthew Wahab <matthew.wahab@arm.com>
355
356 * config/tc-arm.c (arm_ext_v8_2): New.
357 (insns): Add "esb".
358 * testsuite/gas/arm/armv8_2-a.d: New.
359 * testsuite/gas/arm/armv8_2-a.s: New.
360
361 2016-01-12 Alan Modra <amodra@gmail.com>
362
363 * testsuite/gas/ppc/vsx3.d: Accept nop padding.
364
365 2016-01-11 Peter Bergner <bergner@vnet.ibm.com>
366
367 * testsuite/gas/ppc/power9.d <xscmpnedp, xvcmpnedp, xvcmpnedp.,
368 xvcmpnesp, xvcmpnesp.>: Delete tests.
369 * testsuite/gas/ppc/power9.s: Likewise.
370 * testsuite/gas/ppc/vsx3.d: Likewise.
371 * testsuite/gas/ppc/vsx3.s: Likewise.
372
373 2016-01-08 Andreas Schwab <schwab@linux-m68k.org>
374
375 PR gas/13050
376 * testsuite/gas/m68k/all.exp: Add tests p13050-1 and p13050-2.
377 * testsuite/gas/m68k/p13050-1.s: New file.
378 * testsuite/gas/m68k/p13050-2.d: New file.
379 * testsuite/gas/m68k/p13050-2.s: New file.
380
381 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
382
383 * testsuite/gas/arc/adc.d: Add 'R_' prefix to relocation names.
384 * testsuite/gas/arc/add.d: Likewise.
385 * testsuite/gas/arc/and.d: Likewise.
386 * testsuite/gas/arc/asl.d: Likewise.
387 * testsuite/gas/arc/asr.d: Likewise.
388 * testsuite/gas/arc/bic.d: Likewise.
389 * testsuite/gas/arc/extb.d: Likewise.
390 * testsuite/gas/arc/extw.d: Likewise.
391 * testsuite/gas/arc/j.d: Likewise.
392 * testsuite/gas/arc/jl.d: Likewise.
393 * testsuite/gas/arc/ld2.d: Likewise.
394 * testsuite/gas/arc/lsr.d: Likewise.
395 * testsuite/gas/arc/mov.d: Likewise.
396 * testsuite/gas/arc/or.d: Likewise.
397 * testsuite/gas/arc/pcl-relocs.d: Likewise.
398 * testsuite/gas/arc/pcrel-relocs.d: Likewise.
399 * testsuite/gas/arc/pic-relocs.d: Likewise.
400 * testsuite/gas/arc/plt-relocs.d: Likewise.
401 * testsuite/gas/arc/rlc.d: Likewise.
402 * testsuite/gas/arc/ror.d: Likewise.
403 * testsuite/gas/arc/rrc.d: Likewise.
404 * testsuite/gas/arc/sbc.d: Likewise.
405 * testsuite/gas/arc/sda-relocs.d: Likewise.
406 * testsuite/gas/arc/sda-relocs2.d: Likewise.
407 * testsuite/gas/arc/sexb.d: Likewise.
408 * testsuite/gas/arc/sexw.d: Likewise.
409 * testsuite/gas/arc/st.d: Likewise.
410 * testsuite/gas/arc/sub.d: Likewise.
411 * testsuite/gas/arc/tls-relocs.d: Likewise.
412 * testsuite/gas/arc/xor.d: Likewise.
413
414 2016-01-01 Alan Modra <amodra@gmail.com>
415
416 Update year range in copyright notice of all files.
417
418 For older changes see ChangeLog-2015 and testsuite/ChangeLog-2015
419 \f
420 Copyright (C) 2016 Free Software Foundation, Inc.
421
422 Copying and distribution of this file, with or without modification,
423 are permitted in any medium without royalty provided the copyright
424 notice and this notice are preserved.
425
426 Local Variables:
427 mode: change-log
428 left-margin: 8
429 fill-column: 74
430 version-control: never
431 End:
This page took 0.040303 seconds and 5 git commands to generate.