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