-Wimplicit-fallthrough error fixes
[external/binutils.git] / binutils / ChangeLog
1 2016-10-06  Alan Modra  <amodra@gmail.com>
2
3         * coffdump.c (dump_coff_where): Add missing break.
4         * stabs.c (stab_xcoff_builtin_type): Likewise.
5
6 2016-09-29  Alan Modra  <amodra@gmail.com>
7
8         * readelf.c (process_arch_specific): Call process_power_specific
9         for EM_PPC64.
10
11 2016-09-26  Vlad Zakharov  <vzakhar@synopsys.com>
12
13         * Makefile.am: Replace AM_CLFAGS with AM_CFLAGS_FOR_BUILD
14         when building with CC_FOR_BUILD compiler.
15         * Makefile.in: Regenerate.
16         * configure: Likewise.
17         * doc/Makefile.in: Likewise.
18
19 2016-09-26  Alan Modra  <amodra@gmail.com>
20
21         * readelf.c (display_power_gnu_attribute): Catch truncated section
22         for all powerpc attributes.  Display long double ABI.  Don't
23         capitalize words, except for names.  Show known bits of tag values
24         when some unknown bits are present.  Whitespace fixes.
25
26 2016-09-26  Alan Modra  <amodra@gmail.com>
27
28         * nm.c (get_elf_symbol_type): Don't use sprintf with translated
29         strings, use asprintf instead.
30         (get_coff_symbol_type): Likewise.
31
32 2016-09-19  Alan Modra  <amodra@gmail.com>
33
34         * nm.c (print_symbol): Remove is_synthetic param.  Test sym->flags
35         instead.
36         (print_size_symbols, print_symbols): Adjust to suit, deleting
37         now unused synth_count param and fromsynth var.
38         (display_rel_file): Adjust, localizing synth_count.
39
40 2016-09-14  Ed Maste  <emaste@freebsd.org>
41
42         * readelf.c (process_mips_specific): Fix typo in error message.
43
44 2016-09-06  Nick Clifton  <nickc@redhat.com>
45
46         * readelf.c (request_dump_bynumber): Only call memcpy if
47         dump_sects is not NULL.
48
49 2016-08-29  H.J. Lu  <hongjiu.lu@intel.com>
50
51         * readelf.c (load_specific_debug_section): Check the external
52         compression header size.
53
54 2016-08-19  Nick Clifton  <nickc@redhat.com>
55
56         * testsuite/binutils-all/readelf.s: Adjust expected ordering of
57         sections.
58         * testsuite/binutils-all/readelf.s-64: Likewise.
59
60 2016-08-12  Nick Clifton  <nickc@redhat.com>
61
62         * readelf.c (process_symbol_table): Generate a warning if a local
63         symbol is found at and offste greater than or equal to the sh_info
64         field of it's section header.
65
66 2016-08-08  Nick Clifton  <nickc@redhat.com>
67
68         PR binutils/20440
69         * dwarf.c (display_debug_lines_decoded): Add checks for running
70         off the end of the section when populating the directory table and
71         file table.
72         (frame_display_row): Set max_regs equal to ncols.
73         * readelf.c (load_specific_debug_section): If the section is
74         compressed, but it is not big enough to hold a compression
75         header then warn and return 0.
76
77         PR binutils/20439
78         * dwarf.c (display_debug_lines_decoded): Check directory and file
79         indicies before using them to access directory and file tables.
80
81 2016-08-02  Nick Clifton  <nickc@redhat.com>
82
83         PR binutils/17512
84         * resbin.c (bin_to_res_version): Cast variables to correct type
85         for printing in error message.
86
87 2016-07-28  Nick Clifton  <nickc@redhat.com>
88
89         PR binutils/17512
90         * rescoff.c (read_coff_res_dir): Fix detection of buffer overrun.
91         * resbin.c (bin_to_res_version): Allow for the padded length of a
92         version block to be longer than the recorded length.  Skip padding
93         bytes.
94
95 2016-07-21  H.J. Lu  <hongjiu.lu@intel.com>
96
97         * configure: Regenerated.
98
99 2016-07-20  Claudiu Zissulescu  <claziss@synopsys.com>
100
101         * doc/binutils.texi (objdump): Add ARC disassembler options.
102         * testsuite/binutils-all/arc/dsp.s: New file.
103         * testsuite/binutils-all/arc/objdump.exp: Likewise.
104         * NEWS: Mention the new feature.
105
106 2016-07-20  Nick Clifton  <nickc@redhat.com>
107
108         * doc/binutils.texi (objcopy): Note that the localize symbol
109         options do not affect unique symbols.
110
111 2016-07-16  Alan Modra  <amodra@gmail.com>
112
113         * ar.c: Include plugin-api.h.
114         * nm.c: Likewise.
115
116 2016-07-16  Alan Modra  <amodra@gmail.com>
117
118         * bucomm.c: Don't include libbfd.h.
119         (endian_string, display_target_list): Delete forward declaration.
120         (display_info_table, display_target_tables): Likewise.
121         (LONGEST_ARCH): Delete.
122         (struct display_target): New.
123         (do_display_target): New function.
124         (display_target_list, display_info): Rewrite functions.
125         (display_info_table): Delete.
126         (do_info_size, do_info_header, do_info_row): New functions.
127
128 2016-07-16  Alan Modra  <amodra@gmail.com>
129
130         * elfcomm.h (HOST_WIDEST_INT): Move to..
131         * sysdep.h: ..here.
132         * od-macho.c: Don't include libbfd.h.  Do include dwarf.h
133         (dump_dyld_info_rebase): Use read_leb128 rather than
134         read_unsigned_leb128.
135         (dump_dyld_info_bind, dump_dyld_info_export_1): Likewise.
136         (dump_segment_split_info): Likewise.
137         (dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums.
138         (dump_load_command): Likewise.
139
140 2016-07-16  Alan Modra  <amodra@gmail.com>
141
142         * ar.c: Don't include libbfd.h.
143         * objcopy.c: Likewise.
144         * bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
145         bfd_malloc.
146
147 2016-07-15  Alan Modra  <amodra@gmail.com>
148
149         * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
150
151 2016-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
152
153         * doc/binutils.texi (objcopy): Document 'remove-relocations'.
154         (strip): Likewise.
155         * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
156         (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
157         (struct option strip_options): Add 'remove-relocations'.
158         (struct option copy_options): Likewise.
159         (copy_usage): Likewise.
160         (strip_usage): Likewise.
161         (handle_remove_relocations_option): New function.
162         (discard_relocations): New function.
163         (handle_remove_section_option): New function.
164         (copy_relocations_in_section): Use discard_relocations.
165         (strip_main): Use handle_remove_section_option for
166         'remove-section', and handle 'remove-relocations' option.
167         (copy_main): Likewise.
168         * testsuite/binutils-all/objcopy.exp: Run new tests.
169         * testsuite/binutils-all/remove-relocs-01.d: New file.
170         * testsuite/binutils-all/remove-relocs-01.s: New file.
171         * testsuite/binutils-all/remove-relocs-02.d: New file.
172         * testsuite/binutils-all/remove-relocs-03.d: New file.
173         * testsuite/binutils-all/remove-relocs-04.d: New file.
174         * testsuite/binutils-all/remove-relocs-05.d: New file.
175         * testsuite/binutils-all/remove-relocs-06.d: New file.
176         * NEWS: Mention new option.
177
178 2016-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
179
180         * objcopy.c (find_section_list): Handle section patterns starting
181         with '!' being a non-matching pattern.
182         * doc/binutils.texi (objcopy): Give example of using '!' with
183         --remove-section and --only-section.
184         (strip): Give example of using '!' with --remove-section.
185         * testsuite/binutils-all/data-sections.s: New file.
186         * testsuite/binutils-all/only-section-01.d: New file.
187         * testsuite/binutils-all/remove-section-01.d: New file.
188         * testsuite/binutils-all/objcopy.exp: Run new tests.
189         * NEWS: Mention new feature.
190
191 2016-07-09  Alan Modra  <amodra@gmail.com>
192
193         PR binutils/20337
194         * objdump.c (compare_symbols): For ELF, sort same value/type
195         symbols according to size.
196
197 2016-07-05  Andre Vieria  <andre.simoesdiasvieira@arm.com>
198
199         * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
200         to SEC_ELF_NOREAD.
201         * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
202         ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
203         (process_section_headers): Rename noread to purecode.
204
205         * section.c (SEC_ELF_NOREAD): Rename to ...
206         (SEC_ELF_PURECODE): ... this.
207
208 2016-07-01  Nick Clifton  <nickc@redhat.com>
209
210         * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
211         extremely large decimal value.
212         (pr_range_type): Likewise.
213         (pr_array_type): Likewise.
214         (pr_struct_field): Likewise.
215         (pr_class_baseclass): Likewise.
216         (pr_class_method_variant): Likewise.
217         (pr_tag_type): Likewise.
218         (pr_int_constant): Likewise.
219         (pr_typed_constant): Likewise.
220         (pr_variable): Likewise.
221         (pr_function_parameter): Likewise.
222         (pr_start_block): Likewise.
223         (pr_lineno): Likewise.
224         (pr_end_block): Likewise.
225         (tg_enum_type): Likewise.
226         (tg_int_constant): Likewise.
227         (tg_typed_constant): Likewise.
228         (tg_start_block): Likewise.
229
230 2016-07-01  Nick Clifton  <nickc@redhat.com>
231
232         * testsuite/binutils-all/objcopy.exp
233         (objcopy_test_without_global_symbol): Expect this test to fail on
234         the AArch64 and ARM targets, since they preserve their mapping
235         symbols.
236
237 2016-07-01  Tristan Gingold  <gingold@adacore.com>
238
239         * NEWS: Add marker for 2.27.
240
241 2016-07-30  Tristan Gingold  <gingold@adacore.com>
242
243         * doc/binutils.texi (objdump): Fix mis-placement.
244
245 2016-06-28  Nick Clifton  <nickc@redhat.com>
246
247         * testsuite/binutils-all/ar.exp: Relax previous restriction on
248         Alpha targets.  Allow ELF based Alpha targets.
249
250 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
251
252         * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
253         the `unique_symbol' test.
254
255 2016-06-28  Alan Modra  <amodra@gmail.com>
256
257         PR 20304
258         * objdump.c (objdump_print_symname): Don't attempt to retrieve
259         version info from synthetic symbols.
260
261 2016-06-24  Alan Modra  <amodra@gmail.com>
262
263         * objcopy.c (find_section_rename): Forward declare.  Remove
264         ibfd and sec_ptr param.  Add old_name param.  Allow for NULL
265         returned_flags.  Move read of section name and flags to..
266         (setup_section): ..here.  Update find_section_rename call.
267         (filter_symbols): Rename section symbols for renamed sections.
268         (copy_object): Call filter_symbols when renamed sections.
269         * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
270         * testsuite/binutils-all/update-section.exp: Revert 96037eb0
271         mips xfail.
272         * testsuite/binutils-all/objcopy.exp (copy_executable): Use
273         is_bad_symtab.
274         (localize-hidden-1): xfail if is_bad_symtab.
275         * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
276         between mips/tmips.
277
278 2016-06-24  Alan Modra  <amodra@gmail.com>
279
280         * objdump.c (struct print_file_list): Add "max_printed".
281         (try_print_file_open): Init new field.
282         (show_line): Don't show 5 context lines when redisplaying source.
283
284 2016-06-22  Nick Clifton  <nickc@redhat.com>
285
286         * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
287         Skip bfdtest1 tests for tic30 target.
288         * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
289         target.
290         * testsuite/binutils-all/compress.exp: Expect some tests to fail
291         on the nds32.
292         * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
293         * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
294         targets.
295         * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
296         targets.
297         * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
298         if the bintest.o file was created.  Use the
299         get_standard_section_names proc to get the name of the data
300         section.
301         * testsuite/binutils-all/objdump.exp: Update regexps to allow for
302         RX section names.
303         * testsuite/binutils-all/readelf.exp: Use
304         get_standard_section_names proc to get the name of the data
305         section.
306         * testsuite/binutils-all/readelf.r: Allow for non standard text
307         section names.
308         * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
309         * testsuite/binutils-all/size.exp: Allow for non standard section
310         names.
311         * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
312         to fail on mips targets.
313         * testsuite/lib/utils-lib.exp (default_binutils_run): Use
314         get_standard_section_names proc.
315         (run_dump_test): Likewise.
316         (proc get_standard_section_names): New proc.
317
318 2016-06-22  Nick Clifton  <nickc@redhat.com>
319
320         * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
321         (process_mips_specific): Likewise.
322         (process_gnu_liblist): Likewise.
323
324 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
325
326         * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
327         case.
328
329 2016-06-15  Nick Clifton  <nickc@redhat.com>
330
331         * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
332         reloc.
333
334 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
335
336         * objcopy.c (do_elf_stt_common): Use correct type.
337
338 2016-06-14  Alan Modra  <amodra@gmail.com>
339
340         * ar.c: Expand uses of bfd_my_archive.
341         * size.c: Likewise.
342
343 2016-06-14  Alan Modra  <amodra@gmail.com>
344
345         PR ld/20241
346         * bucomm.c (bfd_get_archive_filename): Return file name within thin
347         archive.
348
349 2016-06-02  Nick Clifton  <nickc@redhat.com>
350
351         PR 20089
352         * objcopy.c (group_signature): Fail if the input symbol table has
353         not been loaded, or if the sh_info field of the group header is 0.
354
355         * dwarf.c (display_debug_frames): Do not display any
356         interpretation if the block consists solely of DW__CFA_NOPs.
357
358 2016-05-31  Alan Modra  <amodra@gmail.com>
359
360         * objcopy.c: Formatting, whitespace throughout.
361         (copy_main): Init newsym->othersym.
362         (parse_symflags): Make len a size_t.  Adjust uses.
363
364 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
365
366         PR binutils/14625
367         * NEWS: Mention --enable-64-bit-archive.
368
369 2016-05-18  Nick Clifton  <nickc@redhat.com>
370
371         PR 20096
372         * objcopy.c (copy_relocations_in_section): Also check for the
373         symbol pointed to by sym_ptr_ptr being NULL.
374
375 2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
376
377         * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
378         * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
379         source.
380         * testsuite/binutils-all/mips/mips.exp: Run the new test.
381
382 2016-05-18  Nick Clifton  <nickc@redhat.com>
383
384         * po/sv.po: Updated Swedish translation.
385
386 2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
387
388         * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
389         <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
390         <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
391         <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
392         <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
393         <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
394         `d_val' rather than `d_ptr' member of the dynamic entry.
395
396 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
397
398         * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
399         procedure.
400         * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
401         with the `strip-10' test.
402
403 2016-05-16  Maciej W. Rozycki  <macro@imgtec.com>
404
405         * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
406         test for the V850.
407
408 2016-05-11  Andrew Bennett  <andrew.bennett@imgtec.com>
409
410         * readelf.c (print_mips_ases): Add DSPR3.
411
412 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
413
414         * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
415         (arm_attr_public_tags): Define DSP_extension attribute.
416
417 2016-05-10  Andrew Burgess  <andrew.burgess@embecosm.com>
418
419         * doc/binutils.texi (nm): Update description of --size-sort.
420
421 2016-05-09  Nick Clifton  <nickc@redhat.com>
422
423         PR binutils/20063
424         * readelf.c (get_32bit_section_headers): Warn if an out of range
425         sh_link or sh_info field is encountered.
426         (get_64bit_section_headers): Likewise.
427
428 2016-05-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
429
430         * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
431
432 2016-05-03  Nick Clifton  <nickc@redhat.com>
433
434         * po/sv.po: Updated Swedish translation.
435
436 2016-04-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
437
438         * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
439         PC relocation for AVR target.
440         (is_none_reloc): Return true if reloc is any of AVR diff
441         relocations.
442
443 2016-04-29  Nick Clifton  <nickc@redhat.com>
444
445         PR 19938
446         * readelf.c (get_solaris_segment_type): New function.
447         (get_segment_type): Call it.
448
449 2016-04-28  Nick Clifton  <nickc@redhat.com>
450
451         * po/zh_CN.po: Updated Chinese (simplified) translation.
452
453 2016-04-28  Nick Clifton  <nickc@redhat.com>
454
455         PR target/19722
456         * testsuite/binutils-all/aarch64/illegal.s: New test.
457         * testsuite/binutils-all/aarch64/illegal.d: New test driver.
458
459 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
460
461         * resres.c: Likewise.
462
463 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
464
465         * Makefile.in: Regenerated with automake 1.11.6.
466         * aclocal.m4: Likewise.
467         * doc/Makefile.in: Likewise.
468
469 2016-04-14  Nick Clifton  <nickc@redhat.com>
470
471         PR target/19938
472         * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
473         string sections possibly having the SHF_STRINGS flag bit set.
474         * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
475         * testsuite/binutils-all/readelf.s: Likewise.
476         * testsuite/binutils-all/readelf.s-64: Likewise.
477         * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
478         * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
479
480 2016-04-13  Nick Clifton  <nickc@redhat.com>
481
482         PR target/19938
483         * readelf.c (get_solaris_section_type): New function: Returns the
484         name of Solaris specific section types.
485         (get_solaris_dynamic_type): New function: Return the name of
486         Solaris specific dynamic types.
487         (get_dynamic_type): Use get_solaris_dynamic_type.
488         (get_section_type_name): Use get_solaris_section_type.
489         (get_solaris_symbol_visibility): New function: Returns Solaris
490         specific symbol visibilities.
491         (print_dynamic_symbol): Use get_solaris_symbol_visibility.
492         (process_symbol_table): Likewise.
493
494 2016-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
495
496         * dwarf.h (init_dwarf_regnames_s390): Declare.
497         * dwarf.c (dwarf_regnames_s390): New.
498         (init_dwarf_regnames_s390): New.
499         (init_dwarf_regnames): Call it.
500         * objdump.c (dump_dwarf): Likewise.
501
502 2016-04-11  Maciej W. Rozycki  <macro@imgtec.com>
503
504         * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
505         * testsuite/binutils-all/mips/mips16-undecoded.s: New test
506         source.
507         * testsuite/binutils-all/mips/mips.exp: Run the new test.
508
509 2016-04-04  Nick Clifton  <nickc@redhat.com>
510
511         PR 19872
512         * dwarf.c (display_debug_aranges): Skip warning about unrecognised
513         version number if the version is zero.
514
515 2016-03-29  Alan Modra  <amodra@gmail.com>
516
517         * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
518         (get_dynamic_data): Likewise.
519
520 2016-03-22  Nick Clifton  <nickc@redhat.com>
521
522         PR 19851
523         * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
524         with run time size check.
525
526         * configure: Regenerate.
527
528 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
529
530         * readelf.c (decode_ARC_machine_flags): Handle nps400.
531
532 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
533
534         * readelf.c (get_machine_flags): Move arc processing into...
535         (decode_ARC_machine_flags): ... new function.  Remove use of
536         EF_ARC_CPU_GENERIC, change default case from "generic arc" to
537         "unknown arc".  Merged ABI printing between two machine types.
538
539 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
540
541         * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
542         to the architecture list.
543
544 2016-03-21  Nick Clifton  <nickc@redhat.com>
545
546         * dlltool.c: Replace use of alloca with call to xmalloc.
547         * dllwrap.c: Likewise.
548         * nlmconv.c: Likewise.
549         * objdump.c: Likewise.
550         * resrc.c: Likewise.
551         * winduni.c: Likewise.
552         * configure: Regenerate.
553
554 2016-03-07  Nick Clifton  <nickc@redhat.com>
555
556         PR binutils/19775
557         * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
558         Run the new proc.
559         * testsuite/binutils-all/empty: New, empty, file.
560
561 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
562
563         * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
564
565 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
566
567         PR ld/19645
568         * NEWS: Mention --elf-stt-common= for objcopy.
569         * doc/binutils.texi: Document --elf-stt-common= for objcopy.
570         * objcopy.c (do_elf_stt_common): New.
571         (command_line_switch): Add OPTION_ELF_STT_COMMON.
572         (copy_options): Add --elf-stt-common=.
573         (copy_usage): Add --elf-stt-common=.
574         (copy_object): Also check do_elf_stt_common for ELF targets.
575         (copy_file): Handle do_elf_stt_common.
576         (copy_main): Handle OPTION_ELF_STT_COMMON.
577         * readelf.c (apply_relocations): Support STT_COMMON.
578         * testsuite/binutils-all/common-1.s: New file.
579         * testsuite/binutils-all/common-1a.d: Likewise.
580         * testsuite/binutils-all/common-1b.d: Likewise.
581         * testsuite/binutils-all/common-1c.d: Likewise.
582         * testsuite/binutils-all/common-1d.d: Likewise.
583         * testsuite/binutils-all/common-1e.d: Likewise.
584         * testsuite/binutils-all/common-1f.d: Likewise.
585         * testsuite/binutils-all/common-2.s: Likewise.
586         * testsuite/binutils-all/common-2a.d: Likewise.
587         * testsuite/binutils-all/common-2b.d: Likewise.
588         * testsuite/binutils-all/common-2c.d: Likewise.
589         * testsuite/binutils-all/common-2d.d: Likewise.
590         * testsuite/binutils-all/common-2e.d: Likewise.
591         * testsuite/binutils-all/common-2f.d: Likewise.
592         * testsuite/binutils-all/objcopy.exp
593         (objcopy_test_elf_common_symbols): New proc.
594         Run objcopy_test_elf_common_symbols for ELF targets
595
596 2016-02-16  H.J. Lu  <hongjiu.lu@intel.com>
597
598         PR binutils/19647
599         * readelf.c (get_section_type_name): Add a missing break.
600
601 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
602
603         * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
604
605 2016-02-15  Nick Clifton  <nickc@redhat.com>
606
607         * readelf.c (get_section_type_name): Add hex prefix to offsets
608         printed for LOPROC and LOOS values.  Ensure that a result is
609         always returned for the V850 target, even when an unrecognised
610         processor specific value is encountered.
611         (process_section_headers): Display key values in the order in
612         which they appear to the user.  Add the "C (compressed)" value to
613         the list.
614
615 2016-02-12  H.J. Lu  <hongjiu.lu@intel.com>
616
617         * doc/binutils.texi: Fix a typo.
618
619 2016-02-05  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
620
621         * testsuite/binutils-all/objdump.exp: Update expected default
622         architecture value for ARC binaries.
623
624 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
625
626         PR binutils/19547
627         * testsuite/binutils-all/objcopy.exp
628         (objcopy_test_without_global_symbol): New proc.
629         Run objcopy_test_without_global_symbol.
630         * testsuite/binutils-all/pr19547.c: New file.
631
632 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
633
634         PR binutils/19523
635         * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
636         runtest.
637         * Makefile.in: Regenerated.
638         * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
639         proc.
640         Run test_gnu_debuglink for native ELF build.
641
642 2016-01-20  Nick Clifton  <nickc@redhat.com>
643
644         PR 19495
645         * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
646         do not support inserting leading underscores.
647
648 2016-01-20  Mickael Guene  <mickael.guene@st.com>
649
650         * readelf.c (get_elf_section_flags): Display y letter for section
651         with SHF_ARM_NOREAD section flag in readelf section output.
652         (process_section_headers): Add y letter in readelf section output
653         key mapping for ARM architecture.
654         * objdump.c (dump_section_header): Display NOREAD attributes as
655         well.
656         * doc/binutils.texi (objdump): Note that it is correct for
657         sections to have both the READONLY and NOREAD attributes.
658
659 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
660
661         * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
662
663 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
664
665         * readelf.c (get_freebsd_elfcore_note_type): New
666         (process_note): Add support for FreeBSD core notes.
667
668 2016-01-18  Miranda Cupertino  <Cupertino.Miranda@synopsys.com>
669             Zissulescu Claudiu  <Claudiu.Zissulescu@synopsys.com>
670
671         * readelf.c (get_machine_flags): Add support for newer ARC ELF
672         header flags.
673
674 2016-01-18  Alan Modra  <amodra@gmail.com>
675
676         * configure: Regenerate.
677
678 2016-01-17  Alan Modra  <amodra@gmail.com>
679
680         * configure: Regenerate.
681
682 2016-01-17  Alan Modra  <amodra@gmail.com>
683
684         * testsuite/lib/binutils-common.exp (is_elf_format): Return true
685         for m68hc11/12 and xgate triples.
686
687 2016-01-17  Alan Modra  <amodra@gmail.com>
688
689         * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
690
691 2016-01-01  Alan Modra  <amodra@gmail.com>
692
693         Update year range in copyright notice of all files.
694
695 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
696 \f
697 Copyright (C) 2016 Free Software Foundation, Inc.
698
699 Copying and distribution of this file, with or without modification,
700 are permitted in any medium without royalty provided the copyright
701 notice and this notice are preserved.
702
703 Local Variables:
704 mode: change-log
705 left-margin: 8
706 fill-column: 74
707 version-control: never
708 End: