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