* ar.c (operation): New global variable.
[external/binutils.git] / binutils / ChangeLog
1 2010-12-08  Arnaud Lacombe  <lacombar@gmail.com>
2
3         * ar.c (operation): New global variable.
4         (show_version): Likewise.
5         (show_help): Likewise.
6         (long_options): Likewise.
7         (usage): Fix help string argument order.
8         (decode_options): New.
9         (ranlib_main): Use getopt_long.
10         (main): Use decode_options.
11
12         * ar.c (main): Split ranlib path.
13         (ranlib_usage): New
14         (ranlib_main): New
15
16 2010-12-03  Doug Evans  <dje@google.com>
17
18         * dwarf.c: #include "bfd_stdint.h".
19         (do_gdb_index): New global.
20         (display_gdb_index): New function.
21         (dwarf_select_sections_by_names) Add "gdb_index".
22         (dwarf_select_sections_all): Set do_gdb_index.
23         (debug_displays): Add .gdb_index.
24         * dwarf.h (do_gdb_index): Declare.
25         * objdump.c (usage): Add gdb_index.
26         * readelf.c (usage): Add gdb_index.
27         (process_section_headers): Process ".gdb_index".
28         * doc/binutils.texi (readelf): Document gdb_index dump.
29         (objdump): Ditto.
30
31 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
32
33         PR binutils/11065
34         * dlltool.c (dll_name_set_by_exp_name): New variable.
35         (def_name): Allow setting of dll_name by .def file.
36         (def_library): Likewise.
37         (main): Set dll_name_set_by_exp_name, if dll_name is
38         set indirect by exp_name.
39
40 2010-11-26  Alan Modra  <amodra@gmail.com>
41
42         * dwarf.c (decode_location_expression, display_debug_frames): Move
43         code handling DW_EH_PE_pcrel into..
44         (get_encoded_value): ..here.
45
46 2010-11-26  Alan Modra  <amodra@gmail.com>
47
48         * po/ja.po: Update.
49
50 2010-11-25  Alan Modra  <amodra@gmail.com>
51
52         * po/bg.po: Update.
53         * po/es.po: Update.
54         * po/fi.po: Update.
55         * po/ja.po: Update.
56         * po/ru.po: Update.
57         * po/zh_CN.po: Update.
58
59 2010-11-21  H.J. Lu  <hongjiu.lu@intel.com>
60
61         PR binutils/12235
62         * elfcomm.c: New.
63         * elfcomm.h: Likewise.
64
65         * Makefile.am (HFILES): Add elfcomm.h.
66         (CFILES): Add elfcomm.c.
67         (ELFLIBS): New.
68         (readelf_SOURCES): Add $(ELFLIBS).
69         (elfedit_SOURCES): Likewise.
70         (objdump_SOURCES): Likewise.
71         * Makefile.in: Regenerated.
72
73         * dwarf.c: Include "elfcomm.h".
74         (byte_get): Removed.
75         (byte_get_little_endian): Likewise.
76         (byte_get_big_endian): Likewise.
77         (byte_get_signed): Likewise.
78         (error): Likewise.
79         (warn): Likewise.
80
81         * dwarf.h (dwarf_vma): Defined with HOST_WIDEST_INT.
82         (dwarf_size_type): Likewise.
83         (byte_get): Removed.
84         (byte_get_signed): Likewise.
85         (byte_get_little_endian): Likewise.
86         (byte_get_big_endian): Likewise.
87         (error): Likewise.
88         (warn): Likewise.
89
90         * elfedit.c: Include "elfcomm.h".  Don't include "aout/ar.h".
91         Call error () instead of non_fatal ().
92         (streq): Removed.
93         (strneq): Likewise.
94         (const_strneq): Likewise.
95         (non_fatal): Likewise.
96         (BYTE_GET): Likewise.
97         (BYTE_PUT): Likewise.
98         (byte_get): Likewise.
99         (byte_put): Likewise.
100         (byte_get_little_endian): Likewise.
101         (byte_get_big_endian): Likewise.
102         (byte_put_little_endian): Likewise.
103         (byte_put_big_endian): Likewise.
104         (adjust_relative_path): Likewise.
105         (archive_info): Likewise.
106         (setup_archive): Likewise.
107         (release_archive): Likewise.
108         (setup_nested_archive): Likewise.
109         (get_archive_member_name): Likewise.
110         (get_archive_member_name_at): Likewise.
111         (make_qualified_name): Likewise.
112
113         * objdump.c: Include "elfcomm.h".
114
115         * readelf.c: Include "elfcomm.h".  Don't include "aout/ar.h".
116         (BYTE_GET): Removed.
117         (BYTE_GET_SIGNED): Removed.
118         (streq): Likewise.
119         (strneq): Likewise.
120         (const_strneq): Likewise.
121         (byte_put): Likewise.
122         (byte_put_little_endian): Likewise.
123         (byte_put_big_endian): Likewise.
124         (adjust_relative_path): Likewise.
125         (archive_info): Likewise.
126         (setup_archive): Likewise.
127         (release_archive): Likewise.
128         (setup_nested_archive): Likewise.
129         (get_archive_member_name): Likewise.
130         (get_archive_member_name_at): Likewise.
131         (make_qualified_name): Likewise.
132
133 2010-11-18  Alan Modra  <amodra@gmail.com>
134
135         PR binutils/11742
136         * readelf.c (get_archive_member_name): Formatting.  Properly
137         handle full size ar_name.
138
139 2010-11-17  Alan Modra  <amodra@gmail.com>
140
141         * ar.c (print_contents): Don't internationalize strings without words.
142         * dwarf.c (process_extended_line_op): Likewise.
143         (process_debug_info): Likwise.
144         (display_debug_lines_raw): Likewise.
145         (display_debug_lines_decoded): Likewise.
146         (display_debug_abbrev): Likewise.
147         * readelf.c (process_file_header): Likewise.
148         (GET_OP): Likewise.
149         (decode_arm_unwind): Likewise.
150         (process_mips_specific): Likewise.
151         * resrc.c (run_cmd): Likewise.
152         (rcparse_warning): Likewise.
153         * objdump.c (dump_headers): Don't print "Pg".
154
155 2010-11-16  Jorma Karvonen  <karvonen.jorma@gmail.com>
156
157         * windmc.c: ,%s' -> `%s' in a number of strings.
158
159 2010-11-16  Jie Zhang  <jie.zhang@analog.com>
160
161         * readelf.c (get_machine_flags): Deal with Blackfin specific flags.
162
163 2010-11-11  Mingming Sun  <mingm.sun@gmail.com>
164
165         * readelf.c (get_machine_flags): Add loongson-3a.
166
167 2010-11-10  Nick Clifton  <nickc@redhat.com>
168
169         * po/ja.po: Updated Japanese translation.
170         * po/fr.po: Updated French translation.
171
172 2010-11-08  Nick Clifton  <nickc@redhat.com>
173
174         * po/ja.po: Updated Japanese translation.
175
176 2010-11-08  Alan Modra  <amodra@gmail.com>
177
178         * objcopy.c (copy_main): No need to rename sections when compressing
179         or decompressing.
180
181 2010-11-05  Alan Modra  <amodra@gmail.com>
182
183         * bin2c.c: Remove internationalization and version report.
184         * Makefile.am: Update bin2c rule.
185         * Makefile.in: Regenerate.
186
187 2010-11-05  Tristan Gingold  <gingold@adacore.com>
188
189         * po/binutils.pot: Regenerate
190
191 2010-11-05  Tristan Gingold  <gingold@adacore.com>
192
193         * NEWS: Add marker for 2.21.
194
195 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
196
197         * objdump.c (dump_bfd_header): Don't display
198         BFD_FLAGS_FOR_BFD_USE_MASK bits in abfd->flags.
199
200 2010-11-02  Joseph Myers  <joseph@codesourcery.com>
201
202         * readelf.c (display_tic6x_attribute): Handle more attributes.
203
204 2010-10-30  Kai Tietz  <kai.tietz@onevision.com>
205
206         * dlltool.c (scan_drectve_symbols): Allow quoted strings for -export
207         directives.
208
209 2010-10-29  Joseph Myers  <joseph@codesourcery.com>
210
211         * readelf.c (display_tic6x_attribute): Use Tag_ABI_compatibility
212         not hardcoded 32.  Display name of this attribute.
213
214 2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
215
216         * addr2line.c (process_file): Set BFD_DECOMPRESS.
217
218         * objcopy.c (do_debug_sections): New.
219         (OPTION_COMPRESS_DEBUG_SECTIONS): New.
220         (OPTION_DECOMPRESS_DEBUG_SECTIONS): Likewise.
221         (copy_options): Add OPTION_COMPRESS_DEBUG_SECTIONS and
222         OPTION_DECOMPRESS_DEBUG_SECTIONS.
223         (copy_usage): Add --compress-debug-sections and
224         --decompress-debug-sections.
225         (copy_file): Set BFD_COMPRESS or BFD_DECOMPRESS.
226         (copy_section): Replace bfd_get_section_contents with
227         bfd_get_full_section_contents.
228         (copy_main): Handle OPTION_COMPRESS_DEBUG_SECTIONS and
229         OPTION_DECOMPRESS_DEBUG_SECTIONS.  Check do_debug_sections to
230         rename DWARF debug sections.
231
232         * objdump.c (load_specific_debug_section): Replace
233         bfd_get_section_contents with bfd_get_full_section_contents.
234         Remove bfd_uncompress_section_contents.
235         (dump_section): Replace bfd_get_section_contents with
236         bfd_get_full_section_contents.
237         (display_file): Set BFD_DECOMPRESS if needed.
238
239         * readelf.c (uncompress_section_contents): Set buffer to NULL
240         to indiate decompression failure.
241         (load_specific_debug_section): Always call
242         uncompress_section_contents.
243
244         * doc/binutils.texi: Document --compress-debug-sections and
245         --decompress-debug-sections.
246
247 2010-10-29  Nick Clifton  <nickc@redhat.com>
248
249         PR binutils/12058
250         * ar.c (usage): Revert previous change.  Describe how 's' can be
251         used as a command letter.
252         * doc/binutils.texi (ar cmdline): Describe how 's' can be used as
253         a command letter.
254
255 2010-10-29  Bernd Schmidt  <bernds@codesourcery.com>
256             Joseph Myers  <joseph@codesourcery.com>
257
258         * readelf.c (display_tic6x_attribute): Handle Tag_ABI_DSBT.
259
260 2010-10-28  Nick Clifton  <nickc@redhat.com>
261
262         PR binutils/12058
263         * ar.c (usage): Remove spurious 's' from list of accepted command
264         letters.
265
266 2010-10-28  Alan Modra  <amodra@gmail.com>
267
268         * readelf.c (is_32bit_abs_reloc): Support i960 and microblaze.
269         (is_32bit_pcrel_reloc): Support microblaze.
270
271 2010-10-26  Nick Clifton  <nickc@redhat.com>
272
273         * po/ja.po: Updated Japanese transaltion.
274
275 2010-10-21  Joseph Myers  <joseph@codesourcery.com>
276
277         * readelf.c (display_tic6x_attribute): Update for attribute
278         renaming.
279
280 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
281
282         * dwarf.c (byte_get_signed): Make it extern.
283
284         * dwarf.h (byte_get_signed): New.
285
286         * readelf.c (BYTE_GET_SIGNED): New.
287         (slurp_rela_relocs): Use BYTE_GET_SIGNED on r_addend.
288         (dump_relocations): Properly dump r_addend.
289
290 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
291
292         * nm.c (value_format_64bit): Define appropriately for __MSVCRT__.
293         (set_print_radix): Update for __MSVCRT__ definition of
294         value_format_64bit.
295
296 2010-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
297
298         Fix build with -DDEBUG=7
299         * nlmheader.y (DEBUG token): Rename to DEBUG_K.
300
301 2010-10-06  Alan Modra  <amodra@gmail.com>
302
303         * bucomm.c (bfd_nonfatal, bfd_nonfatal_message): Don't clobber errno.
304
305 2010-10-05  Alan Modra  <amodra@gmail.com>
306
307         * bucomm.c (bfd_nonfatal): Flush stdout before output to stderr.
308         (bfd_nonfatal_message, report, list_matching_formats): Likewise.
309         (list_supported_targets): Tidy.
310         * objdump.c (free_only_list): Formatting.
311         (slurp_dynamic_symtab): Non-zero exit status for "not a dynamic
312         object".
313         (update_source_path): Delete redundant check for NULL filename.
314         (disassemble_bytes): Error if disassemble_fn returns a value
315         that won't increment address.
316         (disassemble_data): Don't capitalize error message.
317         (read_section_stabs): Likewise.
318         (main): Return non-zero exit status on bad options.
319
320 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
321
322         PR binutils/12088
323         * nm.c (plugin_target): New.
324         (main): Set plugin_target to "plugin" for --plugin.
325         (display_file): Pass plugin_target to bfd_openr if target
326         isn't set.
327
328 2010-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
329
330         * configure: Regenerate.
331
332 2010-09-22  Mike Frysinger  <vapier@gentoo.org>
333
334         * MAINTAINERS: Add self as ADI Blackfin maintainer.
335
336 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
337
338         * emul_aix.c (ar_emul_aix_append): Add a target argument
339         and ignore it if it is set.
340         (ar_emul_aix5_append): Likewise.
341         (ar_emul_aix_replace): Likewise.
342         (ar_emul_aix5_replace): Likewise.
343
344 2010-09-15  H.J. Lu  <hongjiu.lu@intel.com>
345
346         * ar.c (plugin_target): New.
347         (main): Set plugin_target to "plugin" for --plugin.
348         (open_inarch): Initialize target to plugin_target.
349         (replace_members): Pass plugin_target to ar_emul_replace
350         and ar_emul_append.
351
352         * binemul.h (ar_emul_append): Add a target argument.
353         (ar_emul_default_append): Likewise.
354         (ar_emul_replace): Likewise.
355         (ar_emul_default_replace): Likewise.
356         (bin_emulation_xfer_struct): Add a target argument to
357         ar_append and ar_replace.
358
359         * binemul.c (ar_emul_append): Updated.  Pass target to bfd_openr.
360         (do_ar_emul_default_append): Likewise.
361         (ar_emul_default_append): Likewise.
362         (ar_emul_replace): Likewise.
363         (ar_emul_default_replace): Likewise.
364
365 2010-09-10  Ben Gardiner  <bengardiner@nanometrics.ca>
366
367         * objcopy.c: Add --interleave-width option to allow interleaving
368         of more than one byte at a time.
369         (copy_width): New variable.
370         (copy_options): Add --interleave-width.
371         (copy_section): When interleaving copy in units of copy_width
372         bytes.
373         (copy_main): Parse the new option.
374         * doc/binutils: Document the new option.
375         * NEWS: Mention the new feature.
376
377 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
378
379         * dwarf.c (decode_location_expression): Fix data adjustment
380         for DW_OP_GNU_implicit_pointer in v3+.
381
382 2010-09-09  Tristan Gingold  <gingold@adacore.com>
383
384         * NEWS: Add entry to NEWS for hppa/som.
385
386 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
387
388         * dwarf.h (debug_info): Add offset_info and dwarf_version fields.
389         * dwarf.c (decode_location_expression): Add offset_size and
390         dwarf_version arguments.  Prefix DIE offset with 0x for
391         DW_OP_call{2,4,_ref}.  Fix up DW_OP_call_ref operand size,
392         complain if in frame info section.  Handle
393         DW_OP_GNU_implicit_pointer.
394         (read_and_display_attr_value, display_debug_loc,
395         display_debug_frames): Adjust decode_location_expression callers.
396         (process_debug_info): Save offset_size and dwarf_version values
397         into debug_information array.
398
399 2010-09-07  Nick Clifton  <nickc@redhat.com>
400
401         * readelf.c (process_section_headers): Mention meaning of 'l'
402         section flag for x86-64 targets.
403
404 2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
405             Jakub Jelinek  <jakub@redhat.com>
406
407         * dwarf.c (regname): New declaration.
408         (decode_location_expression): Print for registers also regname output.
409
410 2010-09-02  Richard Henderson  <rth@redhat.com>
411
412         * dwarf.c (init_dwarf_regnames_i386, init_dwarf_regnames_x86_64): New.
413         (init_dwarf_regnames): Use them.
414         * dwarf.h: Declare them.
415         * objdump.c (dump_dwarf): Use bfd_get_arch + bfd_get_mach to set up
416         the regnames, rather than using elf_machine_code.
417
418 2010-09-02  Richard Henderson  <rth@redhat.com>
419
420         * objdump.c (dump_dwarf): Use bfd_arch_bits_per_address.
421
422 2010-08-23  H.J. Lu  <hongjiu.lu@intel.com>
423
424         * elfedit.c (input_elf_osabi): New.
425         (output_elf_osbi): Likewise.
426         (osabis): Likewise.
427         (elf_osabi): Likewise.
428         (update_elf_header): Support updating ELF OSABI.
429         (make_qualified_name): Break long line.
430         (command_line_switch): Add OPTION_INPUT_OSABI and
431         OPTION_OUTPUT_OSABI.
432         (options): Likewise.
433         (usage): Add --input-osabi and --output-osabi.
434         (main): Handle OPTION_INPUT_OSABI and OPTION_OUTPUT_OSABI.
435
436         * doc/binutils.texi: Document --input-osabi and --output-osabi
437         for elfedit.
438
439 2010-08-23  Maciej W. Rozycki  <macro@codesourcery.com>
440
441         * readelf.c (display_mips_gnu_attribute): Replace GCC options
442         with a textual description of a MIPS32r2 64-bit FPU.
443
444 2010-08-13  Dan Rosenberg  <dan.j.rosenberg@gmail.com>
445
446         PR binutils/11889
447         * readelf.c (get_32bit_elf_symbols): Check for a corrupt
448         sh_entsize.
449         (get_64bit_elf_symbols): Likewise.
450         (process_symbol_table): Likewise.
451         (process_section_groups): Check for corrupt headers.
452         (process_version_sections): Check for corrupt indicies.
453         (process_corefile_note_segment): Likewise.
454
455 2010-08-13  Nathan Sidwell  <nathan@codesourcery.com>
456
457         * readelf.c (get_machine_flags): Detect CF ISA C and EMAC_B
458         variants.
459
460 2010-08-13  Tom Tromey  <tromey@redhat.com>
461
462         * dwarf.c (process_debug_info): Don't subtract section address
463         when calculating location of cu abbrev within section.
464
465 2010-08-12  Michael Haubenwallner  <haubi@gentoo.org>
466
467         PR binutils/11742
468         * readelf.c (get_archive_member_name): Do not read beyond the end
469         of the ar_name field.
470
471 2010-08-03  Tristan Gingold  <gingold@adacore.com>
472
473         * dwarf.c (display_debug_lines): Mark file argument unused.
474         Do not try to load .debug_info section.
475
476 2010-08-02  Alan Modra  <amodra@gmail.com>
477
478         * readelf.c (apply_relocations): D30V is really REL.
479
480 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
481             Ina Pandit  <ina.pandit@kpitcummins.com>
482
483         * binutils/readelf.c: Add support for V850E2 and V850E2V3.
484
485 2010-07-22  Alan Modra  <amodra@gmail.com>
486
487         * readelf.c: Add Moxie support.
488
489 2010-07-20  Alan Modra  <amodra@gmail.com>
490
491         * readelf.c (process_program_headers): Don't ignore all zero size
492         sections.
493
494 2010-07-19  Andreas Schwab  <schwab@redhat.com>
495
496         * readelf.c (process_section_headers): Update key to flags.
497
498 2010-07-17  Dave Korn  <dave.korn.cygwin@gmail.com>
499
500         * objcopy.c (copy_usage): Tweak previous typofix.
501
502 2010-07-17  H.J. Lu  <hongjiu.lu@intel.com>
503
504         * objcopy.c (copy_usage): Fix a typo.
505
506 2010-07-15  Kai Tietz <kai.tietz@onevision.com>
507
508         * dllwrap.c (main): Make sure is_leading_underscore
509         gets initialized with correct default.
510
511 2010-07-05  Alan Modra  <amodra@gmail.com>
512
513         * readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.
514
515 2010-07-03  Cary Coutant  <ccoutant@google.com>
516
517         * objdump.c (load_specific_debug_section): Decompress section contents
518         before applying relocations.
519         * readelf.c (load_specific_debug_section): Update section size after
520         decompression.
521
522 2010-06-29  Alan Modra  <amodra@gmail.com>
523
524         PR binutils/3166
525         * objcopy.c (is_strip_section): Revert 2006-09-05.
526         (setup_section): Make SHT_GROUP section nobits.
527
528 2010-06-29  Alan Modra  <amodra@gmail.com>
529
530         * configure: Regenerate.
531         * po/POTFILES.in: Regenerate.
532
533 2010-06-27  Alan Modra  <amodra@gmail.com>
534
535         * resbin.c (res_to_bin_accelerator): Delete set but unused variables.
536
537 2010-06-17  Nick Clifton  <nickc@redhat.com>
538
539         PR binutils/11711
540         * windres.c (enum option_values): New enum.
541         (long_options): Use separate option number for --include-dir
542         option.
543         (main): Separate backwards compatibility check from code to
544         implement --include-dir.  Check to see if directory exists and do
545         not complain if it does.
546
547 2010-06-15  Joseph Myers  <joseph@codesourcery.com>
548
549         * readelf.c (display_tic6x_attribute, process_tic6x_specific):
550         New.
551         (process_arch_specific): Call process_tic6x_specific for
552         EM_TI_C6000.
553
554 2010-06-11  H.J. Lu  <hongjiu.lu@intel.com>
555
556         * readelf.c (dump_ia64_vms_dynamic_fixups): Cast to unsigned long
557         for 0x%lx.
558
559 2010-06-11  Tristan Gingold  <gingold@adacore.com>
560             Doug Rupp <rupp@gnat.com>
561
562         * readelf.c (is_ia64_vms): New function.
563         (dump_relocations): Use it.
564         (get_machine_flags): Display IA-64 OpenVMS flags.
565         (process_program_headers): No error on OpenVMS if no .dynamic section.
566         (struct ia64_vms_dynfixup, struct ia64_vms_dynimgrela): New
567         declarations.
568         (dump_ia64_vms_dynamic_fixups): New function.
569         (dump_ia64_vms_dynamic_relocs): Ditto.
570         (process_ia64_vms_dynamic_relocs): Ditto.
571         (process_relocs): Handle IA-64 OpenVMS relocs.
572         (VMS_EPOCH_OFFSET, VMS_GRANULARITY_FACTOR): New macros.
573         (print_vms_time): New function.
574         (dynamic_section_ia64_val): Handle DT_IA_64_VMS_LINKTIME and
575         DT_IA_64_VMS_LNKFLAGS.
576         (get_ia64_symbol_other): New function.
577         (get_symbol_other): Handle EM_IA_64.
578
579 2010-06-11  Tristan Gingold  <gingold@adacore.com>
580
581         * unwind-ia64.c (unw_print_abreg): Add const to special_reg.
582         (UNW_DEC_ABI): Ditto for abiname.
583         (unw_decode_table): Make it const.
584
585 2010-06-10  Tristan Gingold  <gingold@adacore.com>
586
587         * readelf.c (slurp_ia64_unwind_table): IA64 rela relocations are
588         not inplace.
589
590 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
591             Joseph Myers  <joseph@codesourcery.com>
592             Andrew Stubbs  <ams@codesourcery.com>
593
594         * readelf.c (get_machine_flags): Handle EF_SH_PIC and EF_SH_FDPIC.
595
596 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
597
598         PR ld/11621
599         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
600         * Makefile.in: Regenerate.
601
602 2010-05-24  Tristan Gingold  <gingold@adacore.com>
603
604         * readelf.c (usage): Add new trace sections for --debug-dump.
605         (process_section_headers): Handle dump of trace sections.
606         * objdump.c (usage): Add new trace sections for --dwarf.
607         * dwarf.h (do_trace_info, do_trace_abbrevs): New variables.
608         (do_trace_aranges): Ditto.
609         (enum dwarf_section_display_enum): Add trace_info, trace_abbrev
610         and trace_aranges literals.
611         * dwarf.c (do_trace_info, do_trace_abbrevs): New variables.
612         (do_trace_aranges): Ditto.
613         (process_debug_info): Add abbrev_sec argument and replace
614         abbrev with abbrev_sec.
615         (load_debug_info): Adjust call of process_debug_info.
616         (display_debug_info): Ditto.
617         (display_trace_info): New function.
618         (dwarf_select_sections_by_names): Add trace_info, trace_abbrevs
619         and trace_aranges sections name.
620         (dwarf_select_sections_all): Also select trace sections.
621         (debug_displays): Reindent.  Add entries for the trace sections.
622         * doc/binutils.texi (readelf): Document new --dwarf parameters.
623         (objdump): Ditto.
624
625 2010-05-18  H.J. Lu  <hongjiu.lu@intel.com>
626
627         PR gas/11600
628         * readelf.c (get_elf_section_flags): Treat SHF_EXCLUDE as a
629         generic flag.
630
631 2010-05-07  Tristan Gingold  <gingold@adacore.com>
632
633         * Makefile.in: Regenerate with automake 1.11.1.
634         * aclocal.m4: Ditto.
635         * doc/Makefile.in: Ditto.
636
637 2010-05-06  H.J. Lu  <hongjiu.lu@intel.com>
638
639         * dwarf.c (init_dwarf_regnames): Handle EM_L1OM.
640         * readelf.c (get_elf_section_flags): Likewise.
641         (process_section_headers): Likewise.
642
643 2010-05-05  Nick Clifton  <nickc@redhat.com>
644
645         * po/es.po: Updated Spanish translation.
646
647 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
648
649         * dlltool.c (main): Query for bfd's underscoring default for
650         default target case.
651
652 2010-04-27  Nick Clifton  <nickc@redhat.com>
653
654         * po/ru.po: Updated Russian translation.
655
656 2010-04-23  Alan Modra  <amodra@gmail.com>
657
658         * readelf.c (process_program_headers): Replace use of
659         ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
660
661 2010-04-22  Nick Clifton  <nickc@redhat.com>
662
663         * po/binutils.pot: Updated by the Translation project.
664         * po/fi.po: Updated Finnish translation.
665         * po/vi.po: Updated Vietnamese translation.
666         * po/bg.po: New Bulgarian translation.
667         * configure.in (ALL_LINGUAS): Add bg.
668         * configure: Regenerate.
669
670 2010-04-20  Nick Clifton  <nickc@redhat.com>
671
672         * po/fr.po: Updated french translation.
673
674 2010-04-20  Nick Clifton  <nickc@redhat.com>
675
676         * readelf.c: Add _() macros to constant strings that are
677         translatable.
678
679         * readelf.c (display_mips_gnu_attribute): Replace GCC options
680         with a textual description of single and double precision float.
681
682 2010-04-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
683
684         * readelf.c (arm_attr_tag_FP_arch): Rename from arm_attr_tag_VFP_arch.
685         (arm_attr_tag_ABI_align8_needed): Remove.
686         (arm_attr_tag_ABI_align8_preserved): Remove.
687         (arm_attr_tag_ABI_HardFP_use): Update text strings.
688         (arm_attr_public_tags): Add strings for ABI v2.08 attribute tags.
689         (display_arm_attribute): Add decoding of ABI v2.08 attributes.
690
691 2010-04-13  Nick Clifton  <nickc@redhat.com>
692
693         PR binutils/11419
694         * dwarf.c (process_debug_info): Initialise the signature array.
695
696 2010-04-09  Nick Clifton  <nickc@redhat.com>
697
698         * dwarf.c (process_debug_info): Remove unused variable
699         cu_abbrev_offset_ptr.
700         (display_debug_lines_decoded): Remove unused variable prev_line.
701         * elfedit.c (process_archive): Remove unused variable
702         file_name_size.
703         * ieee.c (ieee_start_compilation_unit): Remove unused variable
704         nindx.
705         (ieee_set_type): Remove unused variables info, targetindx and
706         baseindx.
707         * objdump.c (disassmble_byte): Remove unused variable done_dot.
708         * rddbg.c (read_section_stabs_debugging_info): Remove unused
709         variable other.
710         * readelf.c (dump_section_as_strings): Remove unused variable
711         addr.
712         (process_archive): Remove unused variable file_name_size.
713         * stabs.c (parse_stab_string): Mark desc parameter as unused.
714         Remove unused variable lineno.
715         (parse_stab_struct_type): Remove unused variable orig.
716         (stab_demangle_type): Remove unused variables constp, volatilep
717         and hold.
718
719 2010-04-07  Alan Modra  <amodra@gmail.com>
720
721         * configure: Regenerate.
722
723 2010-04-06  Nick Clifton  <nickc@redhat.com>
724
725         * po/vi.po: Updated Vietnamese translation.
726
727 2010-04-05  Jakub Jelinek  <jakub@redhat.com>
728
729         * dwarf.c (struct Frame_Chunk): Add ptr_size and segment_size
730         fields.
731         (display_debug_frames): Handle CIE version 4.
732
733         * dwarf.c (struct State_Machine_Registers): Add op_index field,
734         change end_sequence type to unsigned char.
735         (reset_state_machine): Clear op_index.
736         (process_extended_line_op): For DW_LNE_set_address clear op_index.
737         (display_debug_lines_raw): Initialize li_max_ops_per_insn.
738         Track op_index state machine register and print it if
739         li_max_ops_per_insn is != 1.
740         (display_debug_lines_decoded): Likewise.
741
742 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
743
744         * dwarf.c (read_and_display_attr_value): Don't reject
745         dwarf_version == 4.  Handle DW_FORM_sec_offset, DW_FORM_flag_present
746         and DW_FORM_exprloc.
747         (process_debug_info): Handle cu_version == 4.
748         (display_debug_lines_raw, display_debug_lines_decoded): Handle
749         li_version == 4.
750
751 2010-03-30  Andreas Schwab  <schwab@linux-m68k.org>
752
753         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
754         * Makefile.in: Regenerate.
755
756 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
757
758         * MAINTAINERS: Add self as TI C6X maintainer.
759         * NEWS: Add news entry for TI C6X support.
760         * readelf.c: Include elf/tic6x.h.
761         (guess_is_rela): Handle EM_TI_C6000.
762         (dump_relocations): Likewise.
763         (get_tic6x_dynamic_type): New.
764         (get_dynamic_type): Call it.
765         (get_machine_flags): Handle EF_C6000_REL.
766         (get_osabi_name): Handle machine-specific values only for relevant
767         machines.  Handle C6X values.
768         (get_tic6x_segment_type): New.
769         (get_segment_type): Call it.
770         (get_tic6x_section_type_name): New.
771         (get_section_type_name): Call it.
772         (is_32bit_abs_reloc, is_16bit_abs_reloc, is_none_reloc): Handle
773         EM_TI_C6000.
774
775 2010-03-25  Thomas Schwinge  <thomas@codesourcery.com>
776
777         * doc/binutils.texi (readelf) <unwind information>: Mention support for
778         ARM unwind tables.
779
780 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
781
782         * readelf.c (decode_arm_unwind): Increase buf size to 9 byte.
783
784 2010-03-17  Alan Modra  <amodra@gmail.com>
785
786         * readelf.c (dump_arm_unwind): Warning fix.
787
788 2010-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
789
790         * MAINTAINERS: Update my email address.  List Tristan Gingold
791         as the release branch maintainer.
792
793 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
794
795         * readelf.c (get_ver_flags): Handle VER_FLG_INFO.
796
797 2010-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
798
799         * NEWS: Document .ARM.exidx / .ARM.extab support.
800
801         * dwarf.c (read_leb128): Make non-static.
802         * dwarf.h (read_leb128): Declare.
803         * readelf.c (REMOVE_ARCH_BITS): Define.
804         (find_section_by_address): New.
805         (read_uleb128): Move higher.  Use read_leb128 from dwarf.c.
806         (find_symbol_for_address): Handle the Thumb bit for ARM, by
807         using REMOVE_ARCH_BITS.
808         (struct arm_section, struct arm_unw_aux_info, arm_print_vma_and_name)
809         (arm_free_section, arm_section_get_word, decode_arm_unwind)
810         (dump_arm_unwind, arm_process_unwind): New.
811         (process_unwind): Handle ARM.
812
813 2010-02-26  Jie Zhang  <jie@codesourcery.com>
814
815         * MAINTAINERS: Update my email address.
816
817 2010-02-23  Peter Breitenlohner  <peb@mppmu.mpg.de>
818
819         PR binutils/11298
820         * doc/binutils.texi (windmc): Fix synopsis and description of
821         ASCII options.
822
823 2010-02-19  Alan Modra  <amodra@gmail.com>
824
825         * readelf.c (get_group_flags): Return empty string when flags zero.
826         Add space in other returned values.
827         (process_section_groups): Adjust format string.
828
829 2010-02-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
830
831         * readelf.c (arm_attr_tag_Advanced_SIMD_arch): Add description of
832         newly permitted attribute values.
833         (arm_attr_tag_Virtualization_use): Likewise.
834         (arm_attr_tag_DIV_use): Add description of new attribute.
835         (arm_attr_tag_MPextension_use_legacy): Likewise.
836
837 2010-02-15  Nick Clifton  <nickc@redhat.com>
838
839         * po/vi.po: Updated Vietnamese translation.
840
841 2010-02-09  Michael Holzheu  <holzheu@de.ibm.com>
842
843         * readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP,
844         NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
845
846 2010-02-08  Jim Blandy  <jimb@red-bean.com>
847
848         * dwarf.c (display_debug_frames): Skip the 'S' character in CFI
849         'z' augmentation strings.
850
851 2010-02-08  Christophe Lyon  <christophe.lyon@st.com>
852
853         * objdump.c (disassemble_bytes): Clear aux->reloc before printing
854         a new address, so as not to reuse a previous, non-related reloc.
855
856 2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>
857
858         * readelf.c (get_note_type): Handle NT_X86_XSTATE.
859
860 2010-02-01  Nathan Sidwell  <nathan@codesourcery.com>
861
862         * objcopy.c (copy_object): Set SEC_LINKER_CREATED when adding
863         sections.
864
865 2010-01-28  Nick Clifton  <nickc@redhat.com>
866
867         PR 11225
868         * objdump.c (only): Replace with linked list.
869         (only_size, only_used): Replace with only_list.
870         (process_section_p): Set seen field on matches sections.
871         (add_only): New function.
872         (free_only_list): New function.
873         (disassemble_section): Check only_list.
874         (main): Use add_only and free_only_list.
875
876 2010-01-26  Tristan Gingold  <gingold@adacore.com>
877
878         * Makefile.am (bin2c): Add libintl dependance and library.
879         * Makefile.in: Regenerate.
880
881 2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
882
883         * readelf.c (get_machine_flags): Handle EF_S390_HIGH_GPRS.
884
885 2010-01-19  Ian Lance Taylor  <iant@google.com>
886
887         * objcopy.c (copy_main): Rewrite OPTION_ADD_SECTION code to work
888         with non-ordinary files like /dev/null.
889
890 2010-01-19  Daisuke Hatayama  <d.hatayama@jp.fujitsu.com>
891             Alan Modra <amodra@gmail.com>
892
893         * readelf.c (process_file_header): Handle e_phnum extension.
894
895 2010-01-14  Tristan Gingold  <gingold@adacore.com>
896
897         * dwarf.c (get_AT_name): Handle DW_AT_use_GNAT_descriptive_type
898         and DW_AT_GNAT_descriptive_type.
899
900 2010-01-13  Tristan Gingold  <gingold@adacore.com>
901
902         * ar.c (main): Use lbasename.
903         (normalize): Ditto.
904         * objdump.c (update_source_path): Ditto.
905
906 2010-01-12  Tristan Gingold  <gingold@adacore.com>
907
908         * makefile.vms (CFLAGS): Turns warnings into informational messages.
909
910 2010-01-11  H.J. Lu  <hongjiu.lu@intel.com>
911
912         PR ld/11146
913         * NEWS: Mention --dyn-syms for readelf.
914
915         * readelf.c (do_dyn_syms): New.
916         (OPTION_DYN_SYMS): Likewise.
917         (options): Add "dyn-syms".
918         (usage): Add --dyn-syms.
919         (parse_args): Handle OPTION_DYN_SYMS.
920         (process_symbol_table): Handle do_dyn_syms.
921         (process_object): Likewise.
922         (process_archive): Likewise.
923
924         * doc/binutils.texi: Document --dyn-syms for readelf.  Mention
925         symbol hash tables for -D.
926
927 2010-01-11  Nick Clifton  <nickc@redhat.com>
928
929         * NEWS: Mention addition of elfedit.
930
931         * po/fi.po: Updated Finnish translation.
932
933 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
934
935         * Makefile.in: Regenerate.
936         * configure: Regenerate.
937         * doc/Makefile.in: Regenerate.
938
939 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
940
941         * version.c (print_version): Change to "Copyright 2010".
942
943 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
944
945         * elfedit.c (input_elf_type): New.
946         (output_elf_type): Likewise.
947         (elf_type): Likewise.
948         (update_elf_header): Support updating ELF file type.
949         (command_line_switch): Add OPTION_INPUT_TYPE and
950         OPTION_OUTPUT_TYPE.
951         (options): Likewise.
952         (usage): Add --input-type and --output-type.
953         (main): Handle OPTION_INPUT_TYPE and OPTION_OUTPUT_TYPE.  Check
954         one of --output-mach and --output-type must be specified.
955
956         * doc/binutils.texi: Document --input-type and --output-type
957         for elfedit.
958
959 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
960
961         * doc/binutils.texi: Fix a typo.
962
963 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
964
965         * elfedit.c (update_elf_header): Don't change input_elf_class
966         nor input_elf_machine if they are -1.
967
968 2010-01-08  Tristan Gingold  <gingold@adacore.com>
969
970         * ar.c: Remove bfd_special_undocumented_glue prototype.
971
972 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
973
974         * elfedit.c (update_elf_header): Reformat.
975
976 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
977
978         * readelf.c (usage): Fix indent for --symbols.
979
980 2010-01-07  H.J. Lu  <hongjiu.lu@intel.com>
981
982         * doc/binutils.texi: Replace -histogram with --histogram.
983
984 2010-01-06  H.J. Lu  <hongjiu.lu@intel.com>
985
986         PR binutils/11131
987         * Makefile.am (ELFEDIT_PROG): New.
988         (bin_PROGRAMS): Add $(ELFEDIT_PROG).
989         (CFILES): Add elfedit.c.
990         (elfedit_DEPENDENCIES): New.
991         (elfedit_SOURCES): Likewise.
992         (elfedit_LDADD): Likewise.
993         * Makefile.in: Regenerated.
994
995         * elfedit.c: New.
996
997         * doc/binutils.texi: Document elfedit.
998
999         * doc/Makefile.am (man_MANS): Add elfedit.1.
1000         (elfedit.1): New.
1001         * doc/Makefile.in: Regenerated.
1002
1003 2010-01-06  Tristan Gingold  <gingold@adacore.com>
1004
1005         * nm.c (usage): Remove extra blanks.
1006
1007 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1008
1009         * objcopy.c: Update copyright.
1010         * readelf.c: Likewise.
1011
1012 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1013
1014         PR binutils/11130
1015         * objcopy.c (copy_object): Remove "Warning: " from error
1016         message.
1017
1018 2010-01-04  Nick Clifton  <nickc@redhat.com>
1019
1020         PR 11128
1021         * readelf.c (dump_section_as_strings): Use two separate
1022         invocations of printf() in order to work around bugs in
1023         the Solaris 8 implementation.
1024
1025 2010-01-04  Nick Clifton  <nickc@redhat.com>
1026
1027         * po/ru.po: Updated Russian translation.
1028
1029 For older changes see ChangeLog-2009
1030 \f
1031 Local Variables:
1032 mode: change-log
1033 left-margin: 8
1034 fill-column: 74
1035 version-control: never
1036 End: