binutils/
[external/binutils.git] / binutils / ChangeLog
1 2010-08-19  Alan Modra  <amodra@gmail.com>
2
3         * NEWS: Mention change in linker script expression evaluation.
4
5 2010-08-13  Dan Rosenberg  <dan.j.rosenberg@gmail.com>
6
7         PR binutils/11889
8         * readelf.c (get_32bit_elf_symbols): Check for a corrupt
9         sh_entsize.
10         (get_64bit_elf_symbols): Likewise.
11         (process_symbol_table): Likewise.
12         (process_section_groups): Check for corrupt headers.
13         (process_version_sections): Check for corrupt indicies.
14         (process_corefile_note_segment): Likewise.
15
16 2010-08-13  Nathan Sidwell  <nathan@codesourcery.com>
17
18         * readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B
19         variants.
20
21 2010-08-13  Tom Tromey  <tromey@redhat.com>
22
23         * dwarf.c (process_debug_info): Don't subtract section address
24         when calculating location of cu abbrev within section.
25
26 2010-08-12  Michael Haubenwallner  <haubi@gentoo.org>
27
28         PR binutils/11742
29         * readelf.c (get_archive_member_name): Do not read beyond the end
30         of the ar_name field.
31
32 2010-08-03  Tristan Gingold  <gingold@adacore.com>
33
34         * dwarf.c (display_debug_lines): Mark file argument unused.
35         Do not try to load .debug_info section.
36
37 2010-08-02  Alan Modra  <amodra@gmail.com>
38
39         * readelf.c (apply_relocations): D30V is really REL.
40
41 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
42             Ina Pandit  <ina.pandit@kpitcummins.com>
43
44         * binutils/readelf.c: Add support for V850E2 and V850E2V3.
45
46 2010-07-22  Alan Modra  <amodra@gmail.com>
47
48         * readelf.c: Add Moxie support.
49
50 2010-07-20  Alan Modra  <amodra@gmail.com>
51
52         * readelf.c (process_program_headers): Don't ignore all zero size
53         sections.
54
55 2010-07-19  Andreas Schwab  <schwab@redhat.com>
56
57         * readelf.c (process_section_headers): Update key to flags.
58
59 2010-07-17  Dave Korn  <dave.korn.cygwin@gmail.com>
60
61         * objcopy.c (copy_usage): Tweak previous typofix.
62
63 2010-07-17  H.J. Lu  <hongjiu.lu@intel.com>
64
65         * objcopy.c (copy_usage): Fix a typo.
66
67 2010-07-15  Kai Tietz <kai.tietz@onevision.com>
68
69         * dllwrap.c (main): Make sure is_leading_underscore
70         gets initialized with correct default.
71
72 2010-07-05  Alan Modra  <amodra@gmail.com>
73
74         * readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.
75
76 2010-07-03  Cary Coutant  <ccoutant@google.com>
77
78         * objdump.c (load_specific_debug_section): Decompress section contents
79         before applying relocations.
80         * readelf.c (load_specific_debug_section): Update section size after
81         decompression.
82
83 2010-06-29  Alan Modra  <amodra@gmail.com>
84
85         PR binutils/3166
86         * objcopy.c (is_strip_section): Revert 2006-09-05.
87         (setup_section): Make SHT_GROUP section nobits.
88
89 2010-06-29  Alan Modra  <amodra@gmail.com>
90
91         * configure: Regenerate.
92         * po/POTFILES.in: Regenerate.
93
94 2010-06-27  Alan Modra  <amodra@gmail.com>
95
96         * resbin.c (res_to_bin_accelerator): Delete set but unused variables.
97
98 2010-06-17  Nick Clifton  <nickc@redhat.com>
99
100         PR binutils/11711
101         * windres.c (enum option_values): New enum.
102         (long_options): Use separate option number for --include-dir
103         option.
104         (main): Separate backwards compatibility check from code to
105         implement --include-dir.  Check to see if directory exists and do
106         not complain if it does.
107
108 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
109
110         * readelf.c (display_tic6x_attribute, process_tic6x_specific):
111         New.
112         (process_arch_specific): Call process_tic6x_specific for
113         EM_TI_C6000.
114
115 2010-06-11  H.J. Lu  <hongjiu.lu@intel.com>
116
117         * readelf.c (dump_ia64_vms_dynamic_fixups): Cast to unsigned long
118         for 0x%lx.
119
120 2010-06-11  Tristan Gingold  <gingold@adacore.com>
121             Doug Rupp <rupp@gnat.com>
122
123         * readelf.c (is_ia64_vms): New function.
124         (dump_relocations): Use it.
125         (get_machine_flags): Display IA-64 OpenVMS flags.
126         (process_program_headers): No error on OpenVMS if no .dynamic section.
127         (struct ia64_vms_dynfixup, struct ia64_vms_dynimgrela): New
128         declarations.
129         (dump_ia64_vms_dynamic_fixups): New function.
130         (dump_ia64_vms_dynamic_relocs): Ditto.
131         (process_ia64_vms_dynamic_relocs): Ditto.
132         (process_relocs): Handle IA-64 OpenVMS relocs.
133         (VMS_EPOCH_OFFSET, VMS_GRANULARITY_FACTOR): New macros.
134         (print_vms_time): New function.
135         (dynamic_section_ia64_val): Handle DT_IA_64_VMS_LINKTIME and
136         DT_IA_64_VMS_LNKFLAGS.
137         (get_ia64_symbol_other): New function.
138         (get_symbol_other): Handle EM_IA_64.
139
140 2010-06-11  Tristan Gingold  <gingold@adacore.com>
141
142         * unwind-ia64.c (unw_print_abreg): Add const to special_reg.
143         (UNW_DEC_ABI): Ditto for abiname.
144         (unw_decode_table): Make it const.
145
146 2010-06-10  Tristan Gingold  <gingold@adacore.com>
147
148         * readelf.c (slurp_ia64_unwind_table): IA64 rela relocations are
149         not inplace.
150
151 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
152             Joseph Myers  <joseph@codesourcery.com>
153             Andrew Stubbs  <ams@codesourcery.com>
154
155         * readelf.c (get_machine_flags): Handle EF_SH_PIC and EF_SH_FDPIC.
156
157 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
158
159         PR ld/11621
160         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
161         * Makefile.in: Regenerate.
162
163 2010-05-24  Tristan Gingold  <gingold@adacore.com>
164
165         * readelf.c (usage): Add new trace sections for --debug-dump.
166         (process_section_headers): Handle dump of trace sections.
167         * objdump.c (usage): Add new trace sections for --dwarf.
168         * dwarf.h (do_trace_info, do_trace_abbrevs): New variables.
169         (do_trace_aranges): Ditto.
170         (enum dwarf_section_display_enum): Add trace_info, trace_abbrev
171         and trace_aranges literals.
172         * dwarf.c (do_trace_info, do_trace_abbrevs): New variables.
173         (do_trace_aranges): Ditto.
174         (process_debug_info): Add abbrev_sec argument and replace
175         abbrev with abbrev_sec.
176         (load_debug_info): Adjust call of process_debug_info.
177         (display_debug_info): Ditto.
178         (display_trace_info): New function.
179         (dwarf_select_sections_by_names): Add trace_info, trace_abbrevs
180         and trace_aranges sections name.
181         (dwarf_select_sections_all): Also select trace sections.
182         (debug_displays): Reindent.  Add entries for the trace sections.
183         * doc/binutils.texi (readelf): Document new --dwarf parameters.
184         (objdump): Ditto.
185
186 2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>
187
188         PR gas/11600
189         * readelf.c (get_elf_section_flags): Treat SHF_EXCLUDE as a
190         generic flag.
191
192 2010-05-07  Tristan Gingold  <gingold@adacore.com>
193
194         * Makefile.in: Regenerate with automake 1.11.1.
195         * aclocal.m4: Ditto.
196         * doc/Makefile.in: Ditto.
197
198 2010-05-06  H.J. Lu  <hongjiu.lu@intel.com>
199
200         * dwarf.c (init_dwarf_regnames): Handle EM_L1OM.
201         * readelf.c (get_elf_section_flags): Likewise.
202         (process_section_headers): Likewise.
203
204 2010-05-05  Nick Clifton  <nickc@redhat.com>
205
206         * po/es.po: Updated Spanish translation.
207
208 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
209
210         * dlltool.c (main): Query for bfd's underscoring default for
211         default target case.
212
213 2010-04-27  Nick Clifton  <nickc@redhat.com>
214
215         * po/ru.po: Updated Russian translation.
216
217 2010-04-23  Alan Modra  <amodra@gmail.com>
218
219         * readelf.c (process_program_headers): Replace use of
220         ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
221
222 2010-04-22  Nick Clifton  <nickc@redhat.com>
223
224         * po/binutils.pot: Updated by the Translation project.
225         * po/fi.po: Updated Finnish translation.
226         * po/vi.po: Updated Vietnamese translation.
227         * po/bg.po: New Bulgarian translation.
228         * configure.in (ALL_LINGUAS): Add bg.
229         * configure: Regenerate.
230
231 2010-04-20  Nick Clifton  <nickc@redhat.com>
232
233         * po/fr.po: Updated french translation.
234
235 2010-04-20  Nick Clifton  <nickc@redhat.com>
236
237         * readelf.c: Add _() macros to constant strings that are
238         translatable.
239
240         * readelf.c (display_mips_gnu_attribute): Replace GCC options
241         with a textual description of single and double precision float.
242
243 2010-04-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
244
245         * readelf.c (arm_attr_tag_FP_arch): Rename from arm_attr_tag_VFP_arch.
246         (arm_attr_tag_ABI_align8_needed): Remove.
247         (arm_attr_tag_ABI_align8_preserved): Remove.
248         (arm_attr_tag_ABI_HardFP_use): Update text strings.
249         (arm_attr_public_tags): Add strings for ABI v2.08 attribute tags.
250         (display_arm_attribute): Add decoding of ABI v2.08 attributes.
251
252 2010-04-13  Nick Clifton  <nickc@redhat.com>
253
254         PR binutils/11419
255         * dwarf.c (process_debug_info): Initialise the signature array.
256
257 2010-04-09  Nick Clifton  <nickc@redhat.com>
258
259         * dwarf.c (process_debug_info): Remove unused variable
260         cu_abbrev_offset_ptr.
261         (display_debug_lines_decoded): Remove unused variable prev_line.
262         * elfedit.c (process_archive): Remove unused variable
263         file_name_size.
264         * ieee.c (ieee_start_compilation_unit): Remove unused variable
265         nindx.
266         (ieee_set_type): Remove unused variables info, targetindx and
267         baseindx.
268         * objdump.c (disassmble_byte): Remove unused variable done_dot.
269         * rddbg.c (read_section_stabs_debugging_info): Remove unused
270         variable other.
271         * readelf.c (dump_section_as_strings): Remove unused variable
272         addr.
273         (process_archive): Remove unused variable file_name_size.
274         * stabs.c (parse_stab_string): Mark desc parameter as unused.
275         Remove unused variable lineno.
276         (parse_stab_struct_type): Remove unused variable orig.
277         (stab_demangle_type): Remove unused variables constp, volatilep
278         and hold.
279
280 2010-04-07  Alan Modra  <amodra@gmail.com>
281
282         * configure: Regenerate.
283
284 2010-04-06  Nick Clifton  <nickc@redhat.com>
285
286         * po/vi.po: Updated Vietnamese translation.
287
288 2010-04-05  Jakub Jelinek  <jakub@redhat.com>
289
290         * dwarf.c (struct Frame_Chunk): Add ptr_size and segment_size
291         fields.
292         (display_debug_frames): Handle CIE version 4.
293
294         * dwarf.c (struct State_Machine_Registers): Add op_index field,
295         change end_sequence type to unsigned char.
296         (reset_state_machine): Clear op_index.
297         (process_extended_line_op): For DW_LNE_set_address clear op_index.
298         (display_debug_lines_raw): Initialize li_max_ops_per_insn.
299         Track op_index state machine register and print it if
300         li_max_ops_per_insn is != 1.
301         (display_debug_lines_decoded): Likewise.
302
303 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
304
305         * dwarf.c (read_and_display_attr_value): Don't reject
306         dwarf_version == 4.  Handle DW_FORM_sec_offset, DW_FORM_flag_present
307         and DW_FORM_exprloc.
308         (process_debug_info): Handle cu_version == 4.
309         (display_debug_lines_raw, display_debug_lines_decoded): Handle
310         li_version == 4.
311
312 2010-03-30  Andreas Schwab  <schwab@linux-m68k.org>
313
314         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
315         * Makefile.in: Regenerate.
316
317 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
318
319         * MAINTAINERS: Add self as TI C6X maintainer.
320         * NEWS: Add news entry for TI C6X support.
321         * readelf.c: Include elf/tic6x.h.
322         (guess_is_rela): Handle EM_TI_C6000.
323         (dump_relocations): Likewise.
324         (get_tic6x_dynamic_type): New.
325         (get_dynamic_type): Call it.
326         (get_machine_flags): Handle EF_C6000_REL.
327         (get_osabi_name): Handle machine-specific values only for relevant
328         machines.  Handle C6X values.
329         (get_tic6x_segment_type): New.
330         (get_segment_type): Call it.
331         (get_tic6x_section_type_name): New.
332         (get_section_type_name): Call it.
333         (is_32bit_abs_reloc, is_16bit_abs_reloc, is_none_reloc): Handle
334         EM_TI_C6000.
335
336 2010-03-25  Thomas Schwinge  <thomas@codesourcery.com>
337
338         * doc/binutils.texi (readelf) <unwind information>: Mention support for
339         ARM unwind tables.
340
341 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
342
343         * readelf.c (decode_arm_unwind): Increase buf size to 9 byte.
344
345 2010-03-17  Alan Modra  <amodra@gmail.com>
346
347         * readelf.c (dump_arm_unwind): Warning fix.
348
349 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
350
351         * MAINTAINERS: Update my email address.  List Tristan Gingold
352         as the release branch maintainer.
353
354 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
355
356         * readelf.c (get_ver_flags): Handle VER_FLG_INFO.
357
358 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
359
360         * NEWS: Document .ARM.exidx / .ARM.extab support.
361
362         * dwarf.c (read_leb128): Make non-static.
363         * dwarf.h (read_leb128): Declare.
364         * readelf.c (REMOVE_ARCH_BITS): Define.
365         (find_section_by_address): New.
366         (read_uleb128): Move higher.  Use read_leb128 from dwarf.c.
367         (find_symbol_for_address): Handle the Thumb bit for ARM, by
368         using REMOVE_ARCH_BITS.
369         (struct arm_section, struct arm_unw_aux_info, arm_print_vma_and_name)
370         (arm_free_section, arm_section_get_word, decode_arm_unwind)
371         (dump_arm_unwind, arm_process_unwind): New.
372         (process_unwind): Handle ARM.
373
374 2010-02-26  Jie Zhang  <jie@codesourcery.com>
375
376         * MAINTAINERS: Update my email address.
377
378 2010-02-23  Peter Breitenlohner  <peb@mppmu.mpg.de>
379
380         PR binutils/11298
381         * doc/binutils.texi (windmc): Fix synopsis and description of
382         ASCII options.
383
384 2010-02-19  Alan Modra  <amodra@gmail.com>
385
386         * readelf.c (get_group_flags): Return empty string when flags zero.
387         Add space in other returned values.
388         (process_section_groups): Adjust format string.
389
390 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
391
392         * readelf.c (arm_attr_tag_Advanced_SIMD_arch): Add description of
393         newly permitted attribute values.
394         (arm_attr_tag_Virtualization_use): Likewise.
395         (arm_attr_tag_DIV_use): Add description of new attribute.
396         (arm_attr_tag_MPextension_use_legacy): Likewise.
397
398 2010-02-15  Nick Clifton  <nickc@redhat.com>
399
400         * po/vi.po: Updated Vietnamese translation.
401
402 2010-02-09  Michael Holzheu  <holzheu@de.ibm.com>
403
404         * readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP,
405         NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
406
407 2010-02-08  Jim Blandy  <jimb@red-bean.com>
408
409         * dwarf.c (display_debug_frames): Skip the 'S' character in CFI
410         'z' augmentation strings.
411
412 2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
413
414         * objdump.c (disassemble_bytes): Clear aux->reloc before printing
415         a new address, so as not to reuse a previous, non-related reloc.
416
417 2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>
418
419         * readelf.c (get_note_type): Handle NT_X86_XSTATE.
420
421 2010-02-01  Nathan Sidwell  <nathan@codesourcery.com>
422
423         * objcopy.c (copy_object): Set SEC_LINKER_CREATED when adding
424         sections.
425
426 2010-01-28  Nick Clifton  <nickc@redhat.com>
427
428         PR 11225
429         * objdump.c (only): Replace with linked list.
430         (only_size, only_used): Replace with only_list.
431         (process_section_p): Set seen field on matches sections.
432         (add_only): New function.
433         (free_only_list): New function.
434         (disassemble_section): Check only_list.
435         (main): Use add_only and free_only_list.
436
437 2010-01-26  Tristan Gingold  <gingold@adacore.com>
438
439         * Makefile.am (bin2c): Add libintl dependance and library.
440         * Makefile.in: Regenerate.
441
442 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
443
444         * readelf.c (get_machine_flags): Handle EF_S390_HIGH_GPRS.
445
446 2010-01-19  Ian Lance Taylor  <iant@google.com>
447
448         * objcopy.c (copy_main): Rewrite OPTION_ADD_SECTION code to work
449         with non-ordinary files like /dev/null.
450
451 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
452             Alan Modra <amodra@gmail.com>
453
454         * readelf.c (process_file_header): Handle e_phnum extension.
455
456 2010-01-14  Tristan Gingold  <gingold@adacore.com>
457
458         * dwarf.c (get_AT_name): Handle DW_AT_use_GNAT_descriptive_type
459         and DW_AT_GNAT_descriptive_type.
460
461 2010-01-13  Tristan Gingold  <gingold@adacore.com>
462
463         * ar.c (main): Use lbasename.
464         (normalize): Ditto.
465         * objdump.c (update_source_path): Ditto.
466
467 2010-01-12  Tristan Gingold  <gingold@adacore.com>
468
469         * makefile.vms (CFLAGS): Turns warnings into informational messages.
470
471 2010-01-11  H.J. Lu  <hongjiu.lu@intel.com>
472
473         PR ld/11146
474         * NEWS: Mention --dyn-syms for readelf.
475
476         * readelf.c (do_dyn_syms): New.
477         (OPTION_DYN_SYMS): Likewise.
478         (options): Add "dyn-syms".
479         (usage): Add --dyn-syms.
480         (parse_args): Handle OPTION_DYN_SYMS.
481         (process_symbol_table): Handle do_dyn_syms.
482         (process_object): Likewise.
483         (process_archive): Likewise.
484
485         * doc/binutils.texi: Document --dyn-syms for readelf.  Mention
486         symbol hash tables for -D.
487
488 2010-01-11  Nick Clifton  <nickc@redhat.com>
489
490         * NEWS: Mention addition of elfedit.
491
492         * po/fi.po: Updated Finnish translation.
493
494 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
495
496         * Makefile.in: Regenerate.
497         * configure: Regenerate.
498         * doc/Makefile.in: Regenerate.
499
500 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
501
502         * version.c (print_version): Change to "Copyright 2010".
503
504 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
505
506         * elfedit.c (input_elf_type): New.
507         (output_elf_type): Likewise.
508         (elf_type): Likewise.
509         (update_elf_header): Support updating ELF file type.
510         (command_line_switch): Add OPTION_INPUT_TYPE and
511         OPTION_OUTPUT_TYPE.
512         (options): Likewise.
513         (usage): Add --input-type and --output-type.
514         (main): Handle OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE.  Check
515         one of --output-mach and --output-type must be specified.
516
517         * doc/binutils.texi: Document --input-type and --output-type
518         for elfedit.
519
520 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
521
522         * doc/binutils.texi: Fix a typo.
523
524 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
525
526         * elfedit.c (update_elf_header): Don't change input_elf_class
527         nor input_elf_machine if they are -1.
528
529 2010-01-08  Tristan Gingold  <gingold@adacore.com>
530
531         * ar.c: Remove bfd_special_undocumented_glue prototype.
532
533 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
534
535         * elfedit.c (update_elf_header): Reformat.
536
537 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
538
539         * readelf.c (usage): Fix indent for --symbols.
540
541 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
542
543         * doc/binutils.texi: Replace -histogram with --histogram.
544
545 2010-01-06  H.J. Lu  <hongjiu.lu@intel.com>
546
547         PR binutils/11131
548         * Makefile.am (ELFEDIT_PROG): New.
549         (bin_PROGRAMS): Add $(ELFEDIT_PROG).
550         (CFILES): Add elfedit.c.
551         (elfedit_DEPENDENCIES): New.
552         (elfedit_SOURCES): Likewise.
553         (elfedit_LDADD): Likewise.
554         * Makefile.in: Regenerated.
555
556         * elfedit.c: New.
557
558         * doc/binutils.texi: Document elfedit.
559
560         * doc/Makefile.am (man_MANS): Add elfedit.1.
561         (elfedit.1): New.
562         * doc/Makefile.in: Regenerated.
563
564 2010-01-06  Tristan Gingold  <gingold@adacore.com>
565
566         * nm.c (usage): Remove extra blanks.
567
568 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
569
570         * objcopy.c: Update copyright.
571         * readelf.c: Likewise.
572
573 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
574
575         PR binutils/11130
576         * objcopy.c (copy_object): Remove "Warning: " from error
577         message.
578
579 2010-01-04  Nick Clifton  <nickc@redhat.com>
580
581         PR 11128
582         * readelf.c (dump_section_as_strings): Use two separate
583         invocations of printf() in order to work around bugs in
584         the Solaris 8 implementation.
585
586 2010-01-04  Nick Clifton  <nickc@redhat.com>
587
588         * po/ru.po: Updated Russian translation.
589
590 For older changes see ChangeLog-2009
591 \f
592 Local Variables:
593 mode: change-log
594 left-margin: 8
595 fill-column: 74
596 version-control: never
597 End: