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