binutils/
[external/binutils.git] / binutils / ChangeLog
1 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * dwarf.c (dwarf_regnames_i386): Remove AVX registers.
4         (dwarf_regnames_x86_64): Likewise.
5
6 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
7
8         * dlltool.c, dwarf.c, objdump.c, readelf.c, resrc.c, resres.c,
9         windmc.c: Silence gcc warnings.
10
11 2008-07-28  Alan Modra  <amodra@bigpond.net.au>
12
13         * readelf.c (print_vma): Typo fix.
14
15 2008-07-28  Alan Modra  <amodra@bigpond.net.au>
16
17         PR 6769
18         * readelf.c (print_dec_vma, print_hex_vma): Delete.
19         (print_vma): Use BFD_VMA_FMT.
20         * size.c (size_number, rprint_number): Likewise.
21
22 2008-07-26  Michael Eager <eager@eagercon.com>
23
24         * readelf.c (display_power_gnu_attribute): Display
25         single-precision hard float.
26
27 2008-07-21  Luis Machado  <luisgpm@br.ibm.com>
28
29         * readelf.c (get_note_type): Handle VSX notes.
30
31 2008-07-15  H.J. Lu  <hongjiu.lu@intel.com>
32
33         * objdump.c (load_debug_section): Initialize section_is_compressed 
34         for gcc 3.4/ia64.
35         * readelf.c (load_debug_section): Likewise.
36
37 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
38
39         Revert
40         2008-07-12  Jie Zhang  <jie.zhang@analog.com>
41         * readelf.c (get_machine_flags): Deal with Blackfin specific
42         flags.
43
44 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
45
46         * readelf.c (get_machine_flags): Deal with Blackfin specific
47         flags.
48
49 2008-07-09  Craig Silverstein  <csilvers@google.com>
50
51         * config.in: Add HAVE_ZLIB_H
52         * configure.in: Add test for libz and zlib.h
53         * configure: Regenerate.
54         * dwarf.c (debug_displays): Add .zdebug_* strings.
55         * dwarf.h (struct dwarf_section): Add fields uncompressed_namd
56         and compressed_name.
57         * objdump.c (load_debug_section): Call
58         bfd_uncompress_section_contents when loading a compressed
59         section.
60         (dump_dwarf_section): Recognize compressed section name.
61         (mach_o_dwarf_sections): Rename as
62         mach_o_uncompressed_dwarf_sections.
63         (mach_o_compressed_dwarf_sections): New variable.
64         (generic_dwarf_section): Rename as
65         generic_uncompressed_dwarf_sections.
66         (generic_compressed_dwarf_sections): New variable.
67         (check_mach_o_dwarf): Save and restore
68         mach_o_compressed_dwarf_sections.
69         * readelf.c: Add #include for config.h and zlib.h
70         (process_section_headers): Recognize compressed section name.
71         (uncompress_section_contents): New function.
72         (load_debug_section): Call uncompress_section_contents when
73         loading a compressed section.
74         (display_debug_section): Recognize compressed section name.
75
76 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
77
78         * objdump.c (find_symbol_for_address): Prefer symbols in current
79         section.
80
81 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
82
83         * ieee.c (write_ieee_debugging_info): Use bfd_make_section_with_flags.
84         * nlmconv.c (main, powerpc_build_stubs): Likewise.
85         * rescoff.c (write_coff_file): Likewise.
86         * resres.c (write_res_file): Likewise.
87         * windmc.c (windmc_write_bin): Likewise.
88
89 2008-06-18  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
90
91         * readelf.c (guess_is_rela): Add EM_CR16_OLD.
92         (dump_relocations): Likewise.
93         (get_machine_name): Likewise.
94         (is_32bit_abs_reloc): Likewise.
95
96 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97
98         * configure: Regenerate.
99
100 2008-06-12  DJ Delorie  <dj@redhat.com>
101
102         * readelf.c (guess_is_rela): Add EM_M32C_OLD.
103         (dump_relocations): Likewise.
104         (process_section_headers): Likewise.
105         (is_32bit_abs_reloc): Likewise.
106         (is_16bit_abs_reloc): Likewise.
107
108 2008-06-12  Nick Clifton  <nickc@redhat.com>
109
110         PR binutils/6483
111         * objdump.c (dump_bfd): If the -g option found no STABS or IEEE
112         debug information to display, try dumping DWARF information
113         instead.
114         * rddbg.c (read_debugging_info): Add a parameter to suppress the
115         display of a warning message when no debug information is found.
116         * budbg.h (read_debugging_info): Update prototype.
117         * objcopy.c (copy_object): Continue to allow read_debugging_info
118         to produce warning messages.
119         * doc/binutils.texi (--debugging): Document new behaviour of the
120         -g/--debugging option.
121
122 2008-06-10  Ben Elliston  <bje@gnu.org>
123
124         * MAINTAINERS: Remove myself as m68k maintainer.
125
126 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
127
128         * Makefile.in: Regenerate.
129         * doc/Makefile.in: Regenerate.
130
131 2008-05-12  Alan Modra  <amodra@bigpond.net.au>
132
133         * embedspu.sh: Test for presence of ._ea by looking at section
134         table rather than looking at relocs.  Correct toe_addr substitution.
135
136 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
137
138         * embedspu.sh: Take note of R_SPU_PPU32/64 relocs without a symbol,
139         and if present, put image in ".data.speelf".  Put program handle
140         in ".data.spehandle".
141
142 2008-05-01  Nick Clifton  <nickc@redhat.com>
143
144         * readelf.c (print_symbol): Add code to display non-printing
145         characters.
146
147 2008-04-30  John Heidemann  <johnh@isi.edu>
148
149         * doc/binutils.texi (strings): Add "unicode" to the documentation
150         of strings in order to make explicit that it supports this
151         feature.
152
153 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
154
155         * readelf.c (process_program_headers): Correct section in segment
156         display.
157
158 2008-04-28  M Thomas  <mthomas@rhrk.uni-kl.de>
159             Nick Clifton  <nickc@redhat.com>
160
161         PR binutils/6449
162         * objdump.c (slurp_file): Open the file in binary mode.
163         * ar.c: Remove conditional definition of O_BINARY.
164         * bin2.c: Likewise.
165         * rename.c: Likewise.
166         * strings.c: Likewise.
167         * sysdep.h: Add conditional definition of O_BINARY.
168
169 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
170
171         * aclocal.m4: Regenerate.
172         * configure: Regenerate.
173
174 2008-04-16  Jean-Yves Lefort  <jylefort@brutele.be>
175
176         PR binutils/6034
177         * objcopy.c (stuct symlist): Rename to
178         is_specified_symbol_predicate_data.
179         (strip_specific_list): Rename to strip_specific_htab.
180         (strip_unneeded_list): Rename to strip_unneeded_htab.
181         (keep_specific_list):  Rename to keep_specific_htab.
182         (localize_specific_list): Rename to localize_specific_htab.
183         (globalize_specific_list): Rename to globalize_specific_htab.
184         (keepglobal_specific_list): Rename to keepglobal_specific_htab.
185         (weaken_specific_list): Rename to weaken_specific_htab.
186         (eq_string): New function.
187         (create_symbol_htab): New function.
188         (create_symbol_htabs): New function.
189         (add_specific_symbol): Change to use hash tables.
190         (is_specified_symbol_predicate): New function.
191         (is_specified_symbol): Use hash table lookup.
192         (is_strip_section): Update to use new functions and hash tables.
193         (filter_symbols): Likewise.
194         (copy_object): Likewise.
195         (copy_section): Likewise.
196         (strip_main): Likewise.
197         (copy_main): Likewise.
198         (main): Likewise.
199
200 2008-04-14  David S. Miller  <davem@davemloft.net>
201
202         * readelf.c (get_gnu_elf_note_type): Recognize NT_GNU_GOLD_VERSION.
203
204 2008-04-11  Torleif Sandnes  <torleif.sandnes@gmail.com>
205
206         * dwarf.c (display_debug_lines): Rename to
207         display_debug_lines_raw.
208         (display_debug_lines_decoded): New function.  Displays the
209         interpreted contents of a .debug_line section.
210         (display_debug_lines): New function: Selects either a raw dump or
211         a decoded dump (or both) as requested by the user.
212         * dwarf.h (do_debug_lines_decoded): New extern.
213         * readelf.c: Add support for -wL or --debug-dump=decodedline
214         option to display the decoded contents of a .debug_line section.
215         * doc/binutils.texi: Document the new option.
216         * NEWS: Mention the new feature.
217
218 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
219
220         * dwarf.c: Remove trailing whitespace throughout file.
221
222 2008-04-04  Nick Clifton  <nickc@redhat.com>
223
224         * po/sk.po: Updated Slovak translation.
225
226 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
227
228         * dwarf.c (dwarf_regnames_i386): Add AVX registers.
229         (dwarf_regnames_x86_64): Likewise.
230
231 2008-03-27  Cary Coutant <ccoutant@google.com>
232
233         Add support for thin archives.
234         * ar.c (make_thin_archive): New global flag.
235         (map_over_members): Deal with full pathnames in thin archives.
236         (usage, main): Add 'T' option for building thin archives.
237         (replace_members): Pass thin archive flag to ar_emul_append.
238         * arsup.c (ar_open): Initialize new flag.
239         * binemul.c (ar_emul_append): Add new parameter for
240         flattening nested archives.
241         (do_ar_emul_default_append): New function.
242         (ar_emul_default_append): Factored out recursive code.
243         * binutils/binemul.h (ar_emul_default_append): Add new parameter.
244         (struct bin_emulation_xfer_struct): New parameter for ar_append.
245         * dlltool.c (gen_lib_file): Initialize thin archive flag.
246         * emul_aix.c (ar_emul_aix_internal): Add new flatten
247         parameter, currently unimplemented.
248         All callers changed.
249         * objcopy.c (copy_archive): Preserve thin archive flag.
250         * doc/binutils.texi: Update ar documentation.
251         * NEWS: Mention the new feature.
252
253 2008-03-20  H.J. Lu  <hongjiu.lu@intel.com>
254
255         * readelf.c (process_mips_specific): Declare addr_size as int.
256
257 2008-03-20  Richard Sandiford  <rsandifo@nildram.co.uk>
258
259         * readelf.c (print_mips_got_entry): New function.
260         (process_mips_specific): Print GOT information.
261
262 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
263
264         * aclocal.m4: Regenerate.
265         * configure: Likewise.
266         * Makefile.in: Likewise.
267         * doc/Makefile.in: Likewise.
268
269 2008-03-16  Brian Dessent  <brian@dessent.net>
270
271         * rcparse.y (resid): Allow control text to span multiple lines.
272
273 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
274
275         * readelf.c: Use %u throughout when printing sh_link or sh_info,
276         %lu when printing sh_addralign.
277         (process_version_sections): Use identical formats when printing
278         all offset and sh_link fields.
279
280 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
281
282         * Makefile.am: Run "make dep-am".
283         * Makefile.in: Regenerate.
284         * doc/Makefile.in: Regenerate.
285         * configure: Regenerate.
286
287 2008-03-12  Alan Modra  <amodra@bigpond.net.au>
288
289         PR 5900
290         * readelf.c (SECTION_HEADER_INDEX, SECTION_HEADER_NUM): Delete.
291         Remove use throughout file.
292         (SECTION_HEADER): Likewise.
293         (dump_relocations): Don't adjust st_shndx for reserved range.
294         (process_file_header): Mask SHN_XINDEX to values seen in external
295         elf structs.  Simplify valid section index tests.
296         (get_32bit_elf_symbols, get_64bit_elf_symbols): Mask SHN_XINDEX.
297         Map reserved st_shndx to internal form.
298         (process_section_groups): Test that group symbol st_shndx is in
299         range, not just non-zero.  Delete reserved range check.
300         (get_symbol_index_type): Mask "type" to 16 bits when printing PRC,
301         OS or RSV.
302
303 2008-03-09  Paul Brook  <paul@codesourcery.com>
304
305         * readelf.c (arm_attr_tag_VFP_arch): Add "VFPv3-D16".
306
307 2008-03-03  James E. Wilson  <wilson@tuliptree.org>
308
309         * MAINTAINERS: Update my email address.
310
311 2008-03-03  Nick Clifton  <nickc@redhat.com>
312
313         * dwarf.c (decode_location_expression): Handle
314         DW_OP_PGI_omp_thread_num.
315
316 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
317
318         * objdump.c (objdump_print_addr): Initialise "sym".
319
320 2008-02-27  Justin Pryzby  <justinpryzby@users.sourceforge.net>
321             Nick Clifton  <nickc@redhat.com>
322
323         * ar.c (usage): Mention -t command line switch.
324         * doc/binutils.texi (ranlib): Document -t command line switch.
325
326 2008-02-26  Nick Clifton  <nickc@redhat.com>
327
328         * objdump.c (objdump_print_addr): If displaying file offsets, show
329         the offset even if there are no symbols available.
330         (dump_section): Display nothing if none of the section is going to
331         be dumped.  Display the file offset, if requested, of the location
332         from where the dump starts.
333         * doc/binutils.texi (objdump): Mention that dumping via the -s
334         switch is also affected by the -F option.
335
336 2008-02-26  Nick Clifton  <nickc@redhat.com>
337
338         Re-apply this patch which was accidentally deleted:
339         2006-05-16  Carlos O'Donell  <carlos@codesourcery.com>
340
341         * doc/binutils.texi: Use "Binutils Index" for index name.
342
343 2008-02-22  Nick Clifton  <nickc@redhat.com>
344
345         * objdump.c (display_file_offsets): New variable.
346         (long_options): Add -F/--file-offsets.
347         (objdump_print_addr_with_sym): If displaying file offsets, print
348         the offset of the given address.
349         (disassemble_bytes): If displaying file offsets, tell the user how
350         many zeroes are skipped and the file offset of the point where
351         dumping resumes.
352         (disassemble_section): Only display the name of the section if
353         data is going to be dumped from it.
354         (main): Handle new option.  Produce error messages if the start or
355         stop addresses do not make sense.
356         * doc/binutils.texi: Document the new feature.
357         * NEWS: Mention the new feature.
358
359 2008-02-15  Chu Li  <chul@cn.fujitsu.com>
360             Nick Clifton  <nickc@redhat.com>
361
362         PR binutils/5713
363         * strings.c (integer_arg): Delete function.
364         (string_min): Initialise to 4.
365         (main): Use strtoul to parse integer arguments.
366         Move check for an invalid string length to after all the arguments
367         have been parsed.
368         (usage): Use indentation to indicate that -<n> is a another form
369         of the --bytes= command line option.
370
371 2008-02-12  Nick Clifton  <nickc@redhat.com>
372
373         * dlltool.c (mcore_elf_cache_filename): Add a const qualifier to
374         the argument.
375         (scan_obj_filename): Do not drop the const qualifier when calling
376         mcore_elf_cache_filename.
377         (struct fname_cache): Add const qualifier to filename field.
378
379 2008-02-08  H.J. Lu  <hongjiu.lu@intel.com>
380
381         PR binutils/5713
382         * strings.c (main): Set string_min to 4 if it is <= 0.
383
384 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
385
386         * objdump.c (main): Don't pass unadorned NULL to concat.
387
388 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
389
390         PR 5715
391         * configure: Regenerated.
392
393 2008-02-03  Adam Nemet  <anemet@caviumnetworks.com>
394
395         * readelf.c (get_machine_flags): Handle Octeon.
396
397 2008-01-30  Tristan Gingold  <gingold@adacore.com>
398
399         * readelf.c (dump_relocations): Decode OpenVMS-specific sections.
400         (get_ia64_dynamic_type): Decode OpenVMS-specific tags.
401         (get_dynamic_type): Handle IA64-specific tags.
402         (get_ia64_section_type_name): Handle OpenVMS-specific sections.
403         (get_section_type_name): Handle OS-specific sections (and
404         particularly IA64 OpenVMS one).
405         (get_elf_section_flags): Makes flags static.  Add entries for IA64 and
406         decode them.
407
408 2008-01-29  Nick Clifton  <nickc@redhat.com>
409
410         * dwarf.c (print_dwarf_vma): New function.  Display the value of a
411         dwarf_vma type at a specified precision.  Use mingw field type
412         specifier if necessary.
413         (display_debug_loc): Use dwarf_vma type for begin and end values.
414         Use print_dwarf_vma to display their values.  Use byte_get_signed
415         in order to correctly detect the -1 escape value.
416         (display_debug_aranges): Likewise.
417         (display_debug_ranges): Likewise.
418
419 2008-01-29  Alan Modra  <amodra@bigpond.net.au>
420
421         * dwarf.c (display_debug_loc): Correct test for base address
422         entry when 64-bit host dumping 32-bit object.
423
424 2008-01-29  Alan Modra  <amodra@bigpond.net.au>
425
426         * MAINTAINERS: Remove myself as ix86 maintainer.  Add for SPU.
427
428 2008-01-28  Nick Clifton  <nickc@redhat.com>
429
430         PR binutils/5529
431         * rclex.c (yylex): Also allow the hypen character.
432
433 2008-01-28  H.J. Lu  <hongjiu.lu@intel.com>
434
435         * dwarf.c: Include "elf/common.h".
436         (eh_addr_size): Changed to int.
437         (dwarf_regnames_i386): New.
438         (dwarf_regnames_x86_64): Likewise.
439         (dwarf_regnames): Likewise.
440         (dwarf_regnames_count): Likewise.
441         (init_dwarf_regnames): Likewise.
442         (regname): Likewise.
443         (frame_display_row): Properly support different address size.
444         Call regname to get register name.
445         (display_debug_frames): Call regname to get register name.
446         Display DW_CFA_def_cfa_register as DW_CFA_def_cfa_register
447         instead of DW_CFA_def_cfa_reg.
448
449         * dwarf.h (init_dwarf_regnames): New.
450
451         * objdump.c: Include "elf-bfd.h".
452         (dump_dwarf): Call init_dwarf_regnames on ELF input.
453
454         * readelf.c (guess_is_rela): Change argument to int.
455         (parse_args): Remove the undocumented upper case options for
456         -wX.
457         (process_file_header): Call init_dwarf_regnames.
458
459 2008-01-25  DJ Delorie  <dj@redhat.com>
460
461         * readelf.c (process_section_headers): Add m16c handler.
462         (is_16bit_abs_reloc): Recognize R_M32C_16.
463
464 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
465
466         * prdbg.c: Correct formatter style use.
467         * readelf.c: Likewise.
468         * strings.c: Likewise.
469
470 2008-01-25  Nick Clifton  <nickc@redhat.com>
471
472         * po/ru.po: Updated Russian translation.
473
474 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
475
476         * MAINTAINERS: Update my email address.
477
478 2008-01-14  Nick Clifton  <nickc@redhat.com>
479
480         * dwarf.c (process_debug_info): Include the CU offset and corrupt
481         version value when reporting unrecognised DWARF version numbers.
482         (load_debug_info): Remember a failed attempt to load and parse the
483         .debug_info section and do not repeat such attempts.
484         (display_debug_lines): Check the return value from load_debug_info
485         and return whilst displaying a warning message if the load failed.
486         (display_debug_loc): Likewise.
487         (display_debug_ranges): Likewise.
488         (DEBUG_INFO_UNAVAILABLE): Value stored in num_debug_info_entries
489         when the .debug_info section could not be loaded/parsed.
490         (process_debug_info): Display the length of the compilation unit
491         in hex, so that it corresponds with the offsets that will follow.
492         Tell the user if the length was 32-bit or 64-bit.
493         If a DIE abbreviation could not be found, tell the user the offset
494         of the DIE.
495         (free_debug_memory): Do not attempt to free any entries in the
496         debug_information array if num_debug_info_entries is set to
497         DEBUG_INFO_UNAVAILABLE.
498
499 2008-01-10  Andreas Schwab  <schwab@suse.de>
500
501         * readelf.c (is_64bit_abs_reloc): Handle R_S390_64.
502
503 2008-01-09  Jakub Zawadzki  <darkjames@darkjames.ath.cx>
504
505         PR binutils/55326
506         * bucomm.c (list_supported_architectures): Free architecture list
507         after use.
508         * windres.c (set_endianess): Likewise.
509         * windmc.c (set_endianess): Likewise.
510
511 2008-01-08  Kai Tietz  <kai.tietz@onevision.com>
512
513         PR binutils/5529
514         * binutils/rclex.c: (yylex): Add ':', '_', '\\', and '/' to post
515         characters for name tokens.
516
517 2008-01-04  Greg McGary  <greg@mcgary.org>
518
519         * prdbg.c (print_vma): Print as long long, if host supports it.
520
521 2008-01-03  Nick Clifton  <nickc@redhat.com>
522
523         * dwarf.c (read_and_display_attr_value): Prefix values that are
524         displayed in hexadecimal with 0x.
525         For the DW_AT_import attribute display the abbreviation number and
526         tag of the imported DIE.
527         (process_debug_info): Warn about lengths that reserved by the
528         DWARF3 specification.
529         Provide more information when corrupted DIEs are detected.
530         Warn if DIE corruption makes the sibling level negative.
531
532 For older changes see ChangeLog-2007
533 \f
534 Local Variables:
535 mode: change-log
536 left-margin: 8
537 fill-column: 74
538 version-control: never
539 End: