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