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