* config/tc-cr16.c (getprocreg_image): Fix typo MAX_PREG ->
[binutils.git] / binutils / ChangeLog-2007
blob605c233cdbd30f00c29965ac5702b8a4e2290110
1 2007-12-24  Nick Clifton  <nickc@redhat.com>
3         * po/ru.po: Updated Russian translation.
5 2007-12-22  H.J. Lu  <hongjiu.lu@intel.com>
7         * doc/binutils.texi: Document the new intel-mnemonic and
8         intel-mnemonic options for i386 disassembler.
10 2007-12-07  Bob Wilson  <bob.wilson@acm.org>
12         * readelf.c (is_32bit_pcrel_reloc): Add Xtensa.
13         
14 2007-12-04  Alan Modra  <amodra@bigpond.net.au>
16         * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU.
18 2007-11-29  Mark Shinwell  <shinwell@codesourcery.com>
20         * readelf.c (get_machine_flags): Handle Loongson-2E and -2F
21         flags.
23 2007-11-26  Alan Modra  <amodra@bigpond.net.au>
25         * cxxfilt.c (demangle_it): Don't call printf without format string.
27 2007-11-21  Hans-Peter Nilsson  <hp@axis.com>
29         * dwarf.c (display_debug_loc): Cast section_end - start to long
30         for output format.
32 2007-11-20  Nick Clifton  <nickc@redhat.com>
34         * dwarf.c (display_debug_loc): Issue a warning if there are bytes
35         at the end of the .debug_loc section which are not referenced by
36         any attribute in the .debug_info section.
38 2007-11-19  Nick Clifton  <nickc@redhat.com>
40         * readelf.c (is_32bit_abs_reloc): Add support for NIOS relocs.
41         (is_64bit_abs_reloc): Add support for HPPA relocs.
42         (is_16bit_abs_reloc): Add support for NIOS relocs.
44 2007-11-17  Thiemo Seufer  <ths@mips.com>
46         * readelf.c (display_mips_gnu_attribute): Recognize -mips32r2 -mfp64
47         objects.
49 2007-11-16  Nick Clifton  <nickc@redhat.com>
51         * dwarf.c (process_extended_line_op): Add cases for HP extensions
52         to the line ops.  Mention if an unknown op code is in the user
53         defined range.
54         (decode_location_expression): Add cases for HP extensions, the
55         DW_OP_GNU_uninit extension and the DW_OP_call_frame_cfa and
56         DW_OP_bit_piece DWARF3 operators.
57         (read_and_display_attr): Correct list of attributes which can
58         reference a location list.
59         (read_and_display_attr_value): Add cases for DWARF3 values and HP
60         extensions.
61         Correct list of attributes which can reference a location list.
62         (get_AT_name): Add cases for DWARF3 values and HP and PGI
63         extensions.
65 2007-11-07  Karl Berry  <karl@gnu.org>
67         * doc/binutils.texi: Update to FDL 1.2.
68         (Top): consistent punctuation in menu entries.
69         (Index): Rename from Binutils Index.
70         * doc/fdl.texi: Update from http://www.gnu.org/licenses/fdl.texi.
72 2007-10-31  Nick Clifton  <nickc@redhat.com>
74         * dwarf.c (is_relocatable): Remove definition.
75         (display_debug_frames): Remove check in is_relocatable.
76         * dwarf.h (is_relocatable): Remove declaration.
77         * objdump.c (is_relocatable): New static definition.
78         * readelf.c (dump_relocations): Make the function void.
79         (is_32bit_abs_reloc): Add support for x86, Arc, Arm, D10V, Dlx,
80         OR32 and Score.
81         (is_32bit_pcrel_reloc): Add support for x86 and Arm.
82         (is_16bit_abs_reloc): Add support for D10V.
83         (debug_apply_rela_addends): Rename to debug_apply_relocations.
84         Add code to support rel relocations.
85         (load_debug_section): Fix call to debug_apply_relocations.
86         (get_file_header): Remove setting of is_relocatable.
88 2007-10-31  Alan Modra  <amodra@bigpond.net.au>
90         * readelf.c (debug_apply_rela_addends): Clarify FIXME.
92 2007-10-29  Nick Clifton  <nickc@redhat.com>
94         * readelf.c (is_32bit_abs_reloc): Add knowledge of reloc used by
95         IA64.
96         (is_64bit_abs_reloc): Likewise.
98 2007-10-28  Nick Clifton  <nickc@redhat.com>
100         * dwarf.c (process_debug_info): Check for corrupt lengths.
101         * readelf.c (get_reloc_type): New function.  Returns the reloc
102         number extracted from the info field of a reloc.
103         (get_reloc_symindex): New function.  Returns the symbol index
104         extracted from the info field of a reloc.
105         (dump_relocations): Use the new functions.
106         (slurp_ia64_unwind_table): Use the new functions.
107         (slurp_hppa_unwind_table): Use the new functions.
108         (dump_section_as_bytes): Use the new functions.
109         (get_reloc_size): Delete function.
110         (is_32bit_abs_reloc): New function.  Determines if a given reloc
111         type is a 32-bit absolute relocation.
112         (is_32bit_pcrel_reloc): New function.  Like is_32bit_abs_reloc but
113         for pc-relative relocations.
114         (is_64bit_abs_reloc): New function.  Like is_32bit_abs_reloc but
115         for 64-bit absolute relocations.
116         (is_16bit_abs_reloc): New function.  Like is_32bit_abs_reloc but
117         for 32-bit absolute relocations.
118         (debug_apply_rela_addends): Use the new functions.  Skip and warn
119         about any unrecognised relocations.
121 2007-10-26  Karl Berry  <karl@freefriends.org>
123         * doc/binutils.texi: Move top stuff to the top.
124         Use @direntry/@dircategory, format entries to play nicely with
125         others.
126         Avoid duplicate copying strings.
127         Don't misspell "Texinfo".
129 2007-10-25  Daniel Jacobowitz  <dan@codesourcery.com>
131         * readelf.c (display_power_gnu_attribute): Add support for
132         Tag_GNU_Power_ABI_Vector.
134 2007-10-25  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
136         * readelf.c (get_note_type): Handle NT_PPC_VMX.
138 2007-10-24  Alan Modra  <amodra@bigpond.net.au>
140         * Makefile.am: Run "make dep-am".
141         * Makefile.in: Regenerate.
142         * po/POTFILES.in: Regenerate.
144 2007-10-24  Alan Modra  <amodra@bigpond.net.au>
146         * strings.c (print_strings): Don't use %L, use %ll in printf
147         format strings.
149 2007-10-24  Tristan Gingold  <gingold@adacore.com>
150             Alan Modra  <amodra@bigpond.net.au>
152         * readelf.c (process_program_headers): Use dynamic segment unless
153         dynamic section is found.
155 2007-10-16  Bob Wilson  <bob.wilson@acm.org>
157         * doc/binutils.texi (objcopy, strip): Replace hyphens with em-dashes.
158         (objdump, strip, c++filt): Correct punctuation for "e.g." and "i.e."
159         and change to spell out "for example" in two places.
161 2007-10-16  Nick Clifton  <nickc@redhat.com>
163         * configure.in: Build windows tools for --enable-targets=all.
164         * configure: Regenerate.
166 2007-10-15  Alan Modra  <amodra@bigpond.net.au>
168         * objdump.c (print_line): Check fwrite return value.
169         * srconv.c (checksum, wr_tr, wr_cs): Likewise.
170         * sysdump.c (fillup): Return zero on getc or fread EOF.  Return count
171         read.
173 2007-10-10  Jim Blandy  <jimb@codesourcery.com>
175         * dwarf.c (process_debug_info): Line up section offsets of
176         attribute values with those of dies.
177         (read_and_display_attr): Reduce spacing here.
179         * dwarf.c (display_debug_lines): Print the offset of each line
180         number program header.
182 2007-10-09  H.J. Lu  <hongjiu.lu@intel.com>
184         PR binutils/4476
185         * readelf.c (print_dynamic_symbol): New.
186         (process_symbol_table): Handle DT_GNU_HASH for dynamic symbols.
188 2007-10-08  Carlos O'Donell  <carlos@codesourcery.com>
190         * resrc.c (read_rc_file): Rename e to edit, and c to dir.
191         Pass dir to windres_add_include_dir.  Add comments.
192         (close_input_stream): Check pclose error, and call fatal if
193         the preprocessor failed.
194         * windres.c (windres_add_include_dir): Assert that p is non-NULL,
195         and not an empty string. 
197 2007-10-04  Nick Clifton  <nickc@redhat.com>
199         PR binutils/5098
200         * dlltool.c: Fix spelling typos.
202 2007-10-03  Masaki Muranaka  <monaka@monami-software.com>
204         * readelf.c (dump_section_as_strings): Use %6tx instead of %6zx.
206 2007-09-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
208         * MAINTAINERS: Fix typo.
210 2007-09-17  Shen Feng  <shen@cn.fujitsu.com>
212         * readelf.c (do_archive_index): New.
213         (options): Add -c and --archive-index option.
214         (usage): Add -c option.
215         (parse_args): Add c option parsing.
216         (process_archive): Dump archive index.
217         * NEWS: Mention the new feature.
218         * doc/binutils.texi: Document the new feature.
220 2007-09-17  Nick Clifton  <nickc@redhat.com>
222         * po/es.po: Updated Spanish translation.
224 2007-09-17  Nick Clifton  <nickc@redhat.com>
226         * doc/binutils.texi (objdump): Describe the output of the --syms
227         option in more detail. 
229 2007-09-17  Alon Bar-Lev  <alon.barlev@gmail.com>
231         PR binutils/4987
232         * resrc.c: (read_rc_file): Move 'filename' default initialization 
233         to start of function.
235 2007-08-31  Michael Meissner  <michael.meissner@amd.com>
236             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
238         * NEWS: Add note about SSE5 being added on i386.
240 2007-09-13  Alan Modra  <amodra@bigpond.net.au>
241             Zhou Drangon <drangon.mail@gmail.com>
243         * nm.c (value_format_64bit, set_print_radix, print_value): Handle
244         BFD_HOST_64BIT_LONG_LONG.
245         * readelf.c (print_dec_vma): Don't define if BFD_HOST_64BIT_LONG_LONG.
246         (print_vma): Handle BFD_HOST_64BIT_LONG_LONG.
247         (dump_relocations): Likewise.  Expand _bfd_int64_low in a
248         number of places.
250 2007-09-11  Kai Tietz  <kai.tietz@onevision.com>
252         * rcparse.y: (string_data): Removed ill token removal.
254 2007-09-10  Alan Modra  <amodra@bigpond.net.au>
256         PR 5011
257         * readelf.c (process_version_sections): Don't read past end of
258         various section buffers.
260 2007-08-31  H.J. Lu  <hongjiu.lu@intel.com>
262         * Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
263         * Makefile.in: Regenerated.
265         * sysdep.h: Include "config.h" first.
267 2007-08-31  Nick Clifton  <nickc@redhat.com>
269         * po/sk.po: New Slovakian translation.
270         * configure.in (LINGUAS): Add sk.
271         * configure: Regenerate.
273 2007-08-30  Nick Clifton  <nickc@redhat.com>
275         * readelf.c (dump_type): New type used to classify the kinds of
276         dump requested by the user.
277         (dump_sects, cmdline_dump_sects): Use the new type.
278         (options): Add --string-dump option.
279         (request_dump): Rename to request_dump_bynumber.  Use dump_type.
280         (request_dump_byname): Use dump_type.
281         (parse_args): Parse --string-dump option.
282         (process_section_headers): Fix calls to request_dump.
283         (initialise_dumps_byname): Likewise.
284         (dump_section): Rename to dump_section_as_bytes.
285         (dump_section_as_strings): New function.  Display the contents of
286         a section as printable strings.
287         (process_section_contents): String dump the section if requested.
288         (process_object): Use dump_type.
289         (main): Likewise.
290         * Makefile.am: Add dependency for readelf.c on safe-ctype.h.
291         * Makefile.in: Regenerate.
292         * NEWS: Mention the new feature.
293         * doc/binutils.texi: Document the new feature.
295 2007-08-30  Nathan Sidwell  <nathan@codesourcery.com>
297         * bucomm.c (bfd_nonfatal_message): New.
298         * bucomm.h (bfd_nonfatal_message): Declare.
299         * objcopy.c (RETURN_NONFATAL): Take BFD not NAME, use
300         bfd_nonfatal_message.
301         (copy_unknown_object): Adjust bfd_nonfatal and RETURN_NONFATAL
302         calls, or replace with bfd_nonfatal_message calls as appropriate.
303         (copy_object, copy_archive, copy_file, setup_section,
304         copy_section, write_debugging_info): Likewise.
306 2007-08-28  Nick Clifton  <nickc@redhat.com>
308         * NEWS: Mention Coverity's contribution.
310 2007-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
312         * readelf.c (process_note): Recognize SPU core file notes.
314 2007-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
316         * configure.in: Install embedspu on powerpc*-*-eabi* also.
317         * configure: Regenerated.
319 2007-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
321         * po/uk.po: Updated Ukrainian translation.
323 2007-08-22  Ben Elliston  <bje@au.ibm.com>
325         * doc/binutils.texi (objdump): Document -Mppcps.
327 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
329         * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
331 2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
333         * readelf.c: Revert last change.
335 2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
337         * readelf.c (get_segment_type): Change PT_GNU_STACK to
338         PT_GNU_ATTR.
340 2007-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
342         * NEWS: Add a marker for the 2.18 features.
344 2007-08-12  Matthias Klose  <doko@ubuntu.com>
346         * doc/Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Include
347         $(top_srcdir)/../../bfd/doc.
348         * doc/Makefile.in: Regenerate.
350 2007-08-10  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
352         * MAINTAINERS: Add myself as CR16 support maintainer and
353         update myself as CRX support maintainer.
355 2007-08-10  Nick Clifton  <nickc@redhat.com>
357         * po/fi.po: Updated Finnish translation.
358         * po/vi.po: Updated Vietnamese translation.
360 2007-08-10  Kai Tietz  <kai.tietz@onevision.com>
362         * doc/binutils.texi: (windmc): Correct incorrect desciption.
364 2007-08-04  Alan Modra  <amodra@bigpond.net.au>
366         PR 4888
367         * objcopy.c (setup_section): Do modify section flags for ELF
368         STRIP_NONDEBUG (reverting part of 2007-05-30 change).  Prevent
369         header rewrite by twiddling input section flags instead.
370         Simplify code setting SHT_NOBITS.
372 2007-07-28  Christopher Faylor  <me+binutils@cgf.cx>
374         * MAINTAINERS: Update my email address.
376 2007-07-26  Adam Nemet  <anemet@caviumnetworks.com>
378         * readelf.c (process_archive): Also skip Irix6-style archive symbol
379         tables.
381 2007-07-24  Nick Clifton  <nickc@redhat.com>
383         * readelf.c (NUM_ELEM): Remove redundant macro; replace references
384         to it with references to ARRAY_SIZE.
385         Add support for CR16.
386         Fix formatting.
388 2007-07-19  Nick Clifton  <nickc@redhat.com>
390         PR binutils/4802
391         * srconv.c (strip_suffix): Add const qualifier to argument.
393 2007-07-16  Nick Clifton  <nickc@redhat.com>
395         * po/uk.po: New Ukrainian translation.
396         * configure.in (ALL_LINGUAS): Add 'uk'.
397         * configure: Regenerate.
399 2007-07-10  Alan Modra  <amodra@bigpond.net.au>
401         * objdump.c (dump_dwarf): Correct setting of is_relocatable.
403 2007-07-09  Roland McGrath  <roland@redhat.com>
405         * readelf.c (get_gnu_elf_note_type): New function.
406         (process_note): Use it for "GNU" name.
408 2007-07-08  Andreas Schwab  <schwab@suse.de>
410         * Makefile.am (HFILES): Add dwarf.h, sysdep.h and unwind-ia64.h.
411         (CFILES): Add unwind-ia64.c.
412         Regenerate dependencies.
413         * Makefile.in: Regenerate.
415 2007-07-05  Nick Clifton  <nickc@redhat.com>
417         * addr2line.c: Update copyright notice to refer to GPLv3.
418         * ar.c, arlex.l, arparse.y, arsup.c, arsup.h, bin2c.c, binemul.c,
419         binemul.h, bucomm.c, bucomm.h, budbg.h, coffdump.c, coffgrok.c,
420         coffgrok.h, cxxfilt.c, debug.c, debug.h, deflex.l, defparse.y,
421         dlltool.c, dlltool.h, dllwrap.c, dwarf.c, dwarf.h, embedspu.sh,
422         emul_aix.c, emul_vanilla.c, filemode.c, ieee.c, mclex.c,
423         mcparse.y, nlmconv.c, nlmconv.h, nlmheader.y, nm.c, objcopy.c,
424         objdump.c, prdbg.c, rclex.c, rcparse.y, rdcoff.c, rddbg.c,
425         readelf.c, rename.c, resbin.c, rescoff.c, resrc.c, resres.c,
426         size.c, srconv.c, stabs.c, strings.c, sysdep.h, sysdump.c,
427         sysinfo.y, syslex.l, unwind-ia64.c, unwind-ia64.h, version.c,
428         windint.h, windmc.c, windmc.h, windres.c, windres.h, winduni.c,
429         winduni.h, wrstabs.c: Likewise.
430         * is-ranlib.c, is-strip.c, maybe-ranlib.c, maybe-strip.c,
431         not-ranlib.c, not-strip.c, ranlib.sh, sanity.sh: Add a copyright
432         notice.
433         * NEWS: Mention that the sources are now released under GPLv3.
434         Add a marker for the changes that went into v2.17.
435         * version.c (print_version): Specify that the program is released
436         under version 3 of the GPL.
438 2007-07-05  Kai Tietz  <kai.tietz@onevision.com>
440         * resrc.c: (read_rc_file): Add include path of user passed rc
441         input file.
442         * windres.c: (windres_add_include_dir): New.
443         (main): Use of windres_add_include_dir.
444         * windres.h: (windres_add_include_dir): Add prototype.
446 2007-07-05  Alan Modra  <amodra@bigpond.net.au>
448         * doc/binutils.texi (size): Document --common.
449         * size.c: Make a number of vars static.  Delete unnecessary
450         function declarations.
451         (show_common, common_size): New vars.
452         (usage): Describe --common.
453         (OPTION_FORMAT, OPTION_RADIX, OPTION_TARGET): Define and use.
454         (long_options): Add common.
455         (calculate_common_size): New function.
456         (print_berkeley_format): Add common_size to bsssize.
457         (sysv_one_line): New function split out from..
458         (sysv_internal_printer): ..here.
459         (print_sysv_format): Handle display of *COM*.
460         (print_sizes): Call calculate_common_size.
462 2007-07-05  Alan Modra  <amodra@bigpond.net.au>
464         * emul_aix.c (ar_emul_aix_internal): Rename "next" to "archive_next".
466 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
468         PR 4716
469         * objcopy.c (filter_symbols): Correct relocatable file test.
471 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
473         * Makefile.am: Run "make dep-am".
474         * Makefile.in: Regenerate.
475         * aclocal.m4: Regenerate.
476         * config.in: Regenerate.
477         * doc/Makefile.in: Regenerate.
478         * po/POTFILES.in: Regenerate.
479         * po/binutils.pot: Regenerate.
481 2007-06-30  H.J. Lu  <hongjiu.lu@intel.com>
483         * aclocal.m4: Regenerated.
484         * doc/Makefile.in: Likewise.
485         * Makefile.in: Likewise.
487 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
489         * readelf.c (display_power_gnu_attribute, process_power_specific):
490         New.
491         (process_arch_specific): Call process_power_specific.
493 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
495         * readelf.c (display_mips_gnu_attribute): New.
496         (process_mips_specific): Call process_attributes.
498 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
500         * readelf.c (display_gnu_attribute): New.
501         (process_arm_specific): Rearrange as process_attributes.
502         (process_arm_specific): Replace by wrapper of process_attributes.
504 2007-06-28  Roland McGrath  <roland@frob.com>
506         * objcopy.c (setup_section): Don't reset ELF section type to
507         SHT_NOBITS when it is SHT_NOTE.
508         * doc/binutils.texi (objcopy, strip): Mention under --only-keep-debug.
510 2007-06-27  Alan Modra  <amodra@bigpond.net.au>
512         * ar.c: Rename uses of bfd.next to bfd.archive_next throughout.
513         * arsup.c: Likewise.
514         * binemul.c: Likewise.
515         * objcopy.c: Likewise.
516         * dlltool.c: Likewise.
518 2007-06-26  Shantonu Sen  <ssen@apple.com>
520         PR binutils/4693
521         * Makefile.am (windres_DEPENDENCIES, windmc_DEPENDENCIES): Move
522         dependency on $(LIBICONV) to ...
523         (windres_LDADD, windmc_LDADD) ... here.
524         * Makefile.in: Regenerate.
526 2007-06-21  Alan Modra  <amodra@bigpond.net.au>
528         * embedspu.sh (relas): Correct sh_info parsing.
530 2007-06-19  Danny Smith  <dannysmith@users.sourceforge.net>
532         * objdump.c: Include sys/stat.h.
534 2007-06-19  Kai Tietz  <kai.tietz@onevision.com>
536         * Makefile.am: Add windmc tool.
537         * Makefile.in: Regenerate.
538         * configure.in: Add windmc tool.
539         * configure: Regenerate.
540         * mclex.c: New.
541         * mcparse.y: New.
542         * windmc.c: New.
543         * windmc.h: New.
544         * doc/Makefile.am: Add windmc tool.
545         * doc/Makefile.in: Regenerate.
546         * doc/binutils.texi: Add windmc documentation.
547         * NEWS: Mention new tool.
549 2007-06-18  Andi Kleen  <ak@suse.de>
551         * objdump.c: Include sys/mman.h
552         (print_file_list): Remove f, add map, mapsize, linemap, maxline,
553         last_line, first fields.
554         (slurp_file): Add.
555         (index_file): Add.
556         (print_file_open): Call slurp_file and index_file. Initialize new
557         fields.
558         (skip_to_line): Rename to print_line and write only single line.
559         (dump_line): Add.
560         (show_line): Change to new algorithm.
562 2007-06-18  Thomas Weidenmueller  <w3seek@reactos.org>
564         * resres.c (probe_binary): Fix test for badly formatted headers.
566 2007-06-18  Kai Tietz  <Kai.Tietz@onevision.com>
568         * rclex.c: (cpp_line): Add code_page pragma support.
569         * windres.c: (usage, long_options, main): Add new option
570         --codepage or -c.
571         * winduni.c: (wind_default_codepage, wind_current_codepage): New.
572         (unicode_from_ascii, ascii_from_unicode): Use
573         wind_current_codepage as codepage parameter.
574         (unicode_print): Print 4 characters for hexadecimal values in
575         unicode strings.
576         * winduni.h:  (wind_default_codepage, wind_current_codepage):
577         Export.
578         * doc/binutils.texi: Document new option.
579         * NEWS: Mention new features of windres.
581 2007-06-18  Brian D. Watt  <bwatt@us.ibm.com>
583         * embedspu.sh: Parse _SPUEAR_ symbol values as hex.
585 2007-06-14  H.J. Lu  <hongjiu.lu@intel.com>
587         * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
589         * acinclude.m4: Removed.
591         * Makefile.in: Regenerated.
592         * aclocal.m4: Likewise.
593         * configure: Likewise.
595 2007-06-11  Nathan Sidwell  <nathan@codesourcery.com>
597         * dwarf.c (decode_location_expression): Add DW_OP_form_tls_address.
599 2007-06-06  Kai Tietz  <Kai.Tietz@onevision.com>
601         PR binutils/4356 binutils/591
602         * resrc.c (filename_need_quotes): New function.
603         (look_for_default): If filename_need_quotes is true then quote the
604         filename in the command line being created.
605         (read_rc_file): Likewise.
607 2007-06-06  Ben Elliston  <bje@au.ibm.com>
609         * doc/binutils.texi (objdump): Fix capitalisation of "PowerPC".
611 2007-06-05  Kai Tietz  <Kai.Tietz@onevision.com>
613         * Makefile.am: Add LIBICONV to windres.
614         * acinclude.m4: Added missing "lib-*.m4" and "lt*.m4" files.
615         * configure.in: Add AC_CHECK_HEADER for iconv.h and use AM_ICONV.
616         * config.in: Add ICONV defines.
617         * aclocal.m4: Regenerate.
618         * confugure: Regenerate.
619         * winduni.c: (local_iconv_map codepages, wind_language_t,
620         languages, unicode_is_valid_codepage, wind_find_language_by_id,
621         wind_find_language_by_codepage, wind_find_codepage_info,
622         unicode_from_codepage, codepage_from_unicode, iconv_onechar,
623         wind_iconv_cp, wind_MultiByteToWideChar wind_WideCharToMultiByte):
624         New.
625         (ascii_from_unicode): Use codepage_from_unicode.
626         (ascii_from_unicode): Use unicode_from_codepage.
627         Use for cygwin windows API for unicode transformation.
628         * winduni.h: (CP_ACP, CP_UTF7, CP_UTF8, CP_OEM, CP_UTF16): New
629         macros.
630         (wind_language_t, local_iconv_map): New types.
631         (wind_find_language_by_id, wind_find_language_by_codepage,
632         unicode_is_valid_codepage, wind_find_codepage_info,
633         unicode_from_codepage, codepage_from_unicode): New
634         prototypes.
636 2007-06-05  Alan Modra  <amodra@bigpond.net.au>
638         * embedspu.sh: Handle R_SPU_PPU* relocs with no symbol.
640 2007-05-30  Alan Modra  <amodra@bigpond.net.au>
642         * objcopy.c (copy_object): Revert 2007-05-11 change.  Don't
643         avoid calling bfd_copy_private_bfd_data for ELF STRIP_NONDEBUG.
644         (setup_section): Don't modify flags, and don't avoid calling
645         bfd_copy_private_section_data for ELF STRIP_NONDEBUG.
646         * readelf.c (process_program_headers): Ignore .dynamic of type
647         SHT_NOBITS.
649 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
651         * embedspu.sh: Emit SPU ELF image to .data.rel.ro.speelf if
652         pic or pie and image needs relocs.
654 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
656         * Makefile.in: Regenerate.
657         * configure: Regenerate.
658         * aclocal.m4: Regenerate.
659         * doc/Makefile.in: Regenerate.
661 2007-05-24  Kai Tietz  <Kai.Tietz@onevision.com>
663         * rcparse.y: Join strings for elements having no side-effects in
664         "rc"-grammar.
666 2007-05-23  Kai Tietz  <Kai.Tietz@onevision.com>
668         * rclex.c: New file replacing rclex.l.
669         * rclex.l: Removed.
670         * windint.h: New file holding common structure and type
671         definitions.
672         * Makefile.am: Added new header windint.h and exchanged rclex.l by
673         rclex.c.
674         * Makefile.in: Regenerate.
675         * rcparse.y: Renamed some structures.
676         Use in internal representation always bfd_vma instead of long or
677         int.
678         Removed from %union unused stringtable.
679         Added to %union suni structure for unicode strings.
680         Added new tokens for ANICURSOR, ANIICON, DLGINCLUDE,
681         DLGINIT, FONTDIR, HTML, MANIFEST, PLUGPLAY, VXD,
682         TOOLBAR, BUTTON, QUOTEDUNISTRING, and SIZEDUNISTRING.
683         Added support for these new rc file tokens.
684         * resbin.c: Rewrote using bfd and binary structures, and support
685         new resource types.
686         * rescoff.c: Likewise.
687         * resres.c: Likewise.
688         * resrc.c: Likewise. Dumps as RC are now recompilable.
689         * windres.c: As above. Using bfd for res and provide target
690         specific endianess support.
691         * windres.h: Use windint.h as include. Additionally removed K&R
692         syntax.
693         * winduni.c: New printing and unichar support routines.
694         * winduni.h: Prototypes for new unichar helpers.
695         * windint.h: New file.
697 2007-05-22  Paul Brook  <paul@codesourcery.com>
699         * objdump.c (find_symbol_for_address): Merge section and target
700         specific filtering code.
702 2007-05-22  Nick Clifton  <nickc@redhat.com>
704         * doc/binutils.texi: Use @copying around the copyright notice.
706 2007-05-21  Richard Sandiford  <richard@codesourcery.com>
708         * objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs
709         for executables and shared libraries.
711 2007-05-18  Nathan Sidwell  <nathan@codesourcery.com>
713         * objcopy.c (strip_main): Detect identical input and output file
714         names.
715         (copy_main): Refactor tempname detection and use.
717 2007-05-17  Nick Clifton  <nickc@redhat.com>
719         * objdump.c (load_debug_section): Select bias for DWARF debug
720         addresses based on the flavour of the bfd.
722 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
724         PR 4479
725         * objcopy.c (copy_object): Don't copy ELF program headers for
726         --only-keep-debug.
728 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
730         * embedspu.sh (find_prog): Prefer prog in same dir as embedspu
731         over one found on the users path.
732         (main): Generate .reloc for each R_SPU_PPU* reloc.
734 2007-04-28  Alan Modra  <amodra@bigpond.net.au>
736         * prdbg.c (tg_variable): Adjust for changed demangler.
737         (tg_start_function): Likewise.
739 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
741         * bucumm.h: Split off host dependencies to..
742         * sysdep.h: ..here.
743         Many files: Include sysdep.h.  Remove duplicate headers and reorder.
744         * Makefile.am: Run "make dep-am".
745         * Makefile.in: Regenerate.
747 2007-04-24  Nick Clifton  <nickc@redhat.com>
749         * srconv.c (walk_tree_type_1): Initialise dpt.dunno.
751 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
752             Phil Edwards  <phil@codesourcery.com>
754         * objcopy.c (filter_symbols): Explicitly stripping a symbol
755         used in relocations is an error.
756         Retype 'keep' to bfd_boolean.
758 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
760         * Makefile.in: Regenerate.
761         * doc/Makefile.in: Regenerate.
763 2007-04-20  Nathan Froyd  <froydnj@codesourcery.com>
764             Phil Edwards  <phil@codesourcery.com>
765             Thomas de Lellis <tdel@windriver.com>
767         * objcopy.c (reverse_bytes):  New variable.
768         (command_line_switch, copy_main):  Add OPTION_REVERSE_ENDIAN.
769         (copy_options, copy_usage):  Add "reverse-bytes" entry.
770         (copy_section):  Reverse bytes within output sections.
771         * doc/binutils.texi:  Document new objcopy option.
773 2007-04-20  Nick Clifton  <nickc@redhat.com>
775         * rclex.l: Allow underscores at the start of identifiers.
777 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
779         * budemang.c: Delete.
780         * budemang.h: Delete.
781         * addr2line.c (translate_addresses): Call bfd_demangle rather than
782         demangle.
783         * nm.c (print_symname): Likewise.
784         * objdump.c (objdump_print_symname, dump_symbols): Likewise.
785         (dump_bfd): Likewise.
786         * prdbg.c (struct pr_handle <demangler>): Add int param.
787         (tg_variable, tg_start_function): Adjust demangler calls.
788         * Makefile.am: Remove mention of budemang.[ch].  Run "make dep-am".
789         * Makefile.in: Regenerate.
790         * po/POTFILES.in: Regenerate.
792 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
794         * Makefile.am: Add ACLOCAL_AMFLAGS.
795         * configure.in: Change macro call order.
796         * Makefile.in: Regenerate.
797         * configure: Regenerate.
799 2007-04-13  Nathan Sidwell  <nathan@codesourcery.com>
801         * Makefile.am (TOOL_PROGS): Add objcopy.
802         * Makefile.in: Rebuilt.
804 2007-04-12  H.J. Lu  <hongjiu.lu@intel.com>
806         PR binutils/4348
807         * objcopy.c (copy_object): Don't stop when there are no
808         sections to be copied.
810 2007-04-10  Vladimir Prus  <vladimir@codesourcery.com>
812         * NEWS: Mention disjoint histograms support in
813         gprof.
815 2007-04-09  Daniel Jacobowitz  <dan@codesourcery.com>
817         * dwarf.c (process_debug_info): Do not require DW_AT_frame_base for
818         DW_TAG_inlined_subroutine.
820 2007-04-06  Matt Thomas  <matt@netbsd.org>
822         * MAINTAINERS: Add myself as VAX and NetBSD support maintainer.
824 2007-04-05  Alan Modra  <amodra@bigpond.net.au>
826         PR binutils/4292
827         * nm.c (print_value): Cast bfd_vma to unsigned long to suit
828         value_format_32bit.
830 2007-04-02  Nick Clifton  <nickc@redhat.com>
832         PR binutils/4292
833         * nm.c (value_format): Replace with value_format_32bit and
834         value_format_64bit.
835         (set_radix): Update setting of value_format.
836         (set_print_width): New function.  Compute the address size of a
837         given bfd and set the print_width global appropriately.
838         (display_archive): Use set_print_width.
839         (display_file): Likewise,
840         (print_object_filename_sysv): Update use of print_width.
841         (print_archive_member_sysv): Likewise.
842         (print_symbol_filename_posix): Likewise.
843         (print_sumbol_info_bfd, print_symbol_info_sysv): Likewise.
845 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
846             Phil Edwards  <phil@codesourcery.com>
848         * doc/binutils.texi: Put the contents after the title page rather
849         than at the end of the document.
851 2007-03-28  Nick Clifton  <nickc@redhat.com>
853         * readelf.c (slurp_rela_relocs): Add newline to end of error
854         messages.
855         (slurp_rel_relocs, request_dump, request_dump_byname,
856         process_program_headers, process_dynamic_section,
857         process_symbol_table, process_mips_specific, main): Likewise.
859 2007-03-28  Alan Modra  <amodra@bigpond.net.au>
861         * MAINTAINERS: Update mailing list addresses.  Add myself
862         as PPC maintainer.
864 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
866         * embedspu.sh: Correct toe_addr quoting.
868 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
870         * embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns.  Tighten
871         .toe section and .toe address checks.  Use .reloc for _EAR*
872         symbols defined in non-BSS sections.  Build table for _SPUEAR_
873         symbols.
875 2007-03-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
877         PR gas/3811
878         * readelf.c (debug_apply_rela_addends): Do nothing for SH.
880 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
882         * doc/binutils.texi: Include VERSION_PACKAGE when reporting
883         version.
885 2007-03-16  Kai Tietz  <Kai.Tietz@onevision.com>
887         * dlltool.c (make_one_lib_file): Use pc-relative relocation
888         instead of an absolute relocation for x86_64-pc-mingw32 target.
890 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
892         * Makefile.am (REPORT_BUGS_TO): Removed.
893         (INCLUDES): Remove -DREPORT_BUGS_TO.
894         * Makefile.in: Regenerated.
896         * bucomm.c: Don't include bfdver.h.
897         * objdump.c: Likewise.
898         * version.c: Likewise.
900         * bucomm.h: Include bfdver.h.
902         * configure.in (--with-bugurl): Removed.
903         * configure: Regenerated.
905         * doc/Makefile.am (binutils_TEXINFOS): Removed.
906         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
907         (TEXI2DVI): Likewise.
908         (config.texi): Removed.
909         (MOSTLYCLEANFILES): Remove config.texi.
910         * doc/Makefile.in: Regenerated.
912         * doc/binutils.texi: Include bfdver.texi instead of
913         config.texi.
915 2007-03-13  Nick Clifton  <nickc@redhat.com>
917         * readelf.c (dump_section): Also test for SHT_REL sections when
918         producing the warning about unapplied relocs.
920 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
922         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
923         bug-reporting URL.
924         * doc/Makefile.am (config.texi): Define BUGURL.
925         * doc/binutils.texi: Use BUGURL.  Remove text about large files
926         and uuencoding.
927         * Makefile.in, configure, doc/Makefile.in: Regenerate.
929 2007-03-01  Phil Edwards  <phil@codesourcery.com>
930             Richard Sandiford  <richard@codesourcery.com>
932         * NEWS: Mention addition of --extract-symbol.
933         * doc/binutils.texi: Document it.
934         * objcopy.c (extract_symbol): New variable.
935         (OPTION_EXTRACT_SYMBOLS): New command_line_switch.
936         (copy_options): Add an entry for --extract-symbol.
937         (copy_usage): Mention --extract-symbol.
938         (copy_object): Set the start address to zero for --extract-symbol.
939         Do not copy private BFD data in that case.
940         (setup_section): Set the size, LMA and VMA to zero for
941         --extract-symbol.  Do not copy private BFD data in that case.
942         (copy_section): Do not copy section contents if --extract-symbol
943         is passed.
944         (copy_main): Set extract_symbol to TRUE if --extract-symbol
945         is passed.
947 2007-03-01  Paul Brook  <paul@codesourcery.com>
949         * MAINTAINERS: Update my entry.
951 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
953         * version.c: Update copyright date.
955 2007-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
957         * Makefile.am (install-exec-local): Depend on $(noinst_PROGRAMS).
958         Adjust $(EXEEXT) handling for $(RENAMED_PROGS).
959         * Makefile.in, doc/Makefile.in: Regenerate.
961 2007-03-01  Alan Modra  <amodra@bigpond.net.au>
963         * embedspu.sh: Set type and size of global program handle symbol.
965 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
967         * Makefile.am (PROGS): Delete.
968         (RENAMED_PROGS): Define.  Extracted from..
969         (noinst_PROGRAMS): ..here.  Add BUILD_MISC.
970         (install-exec-local): Adjust.
971         * Makefile.in: Regenerate.
973 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
975         * Makefile.am (PROGS): Add BUILD_INSTALL_MISC.
976         (bin_PROGRAMS): Replace BUILD_MISC with BUILD_INSTALL_MISC.
977         (EXTRA_PROGRAMS): Remove bin2c.
978         (bin2c$(EXEEXT_FOR_BUILD)): New rule.
979         (bin2c_SOURCES): Delete.
980         (DISTCLEANFILES): Remove sysinfo.
981         (MOSTLYCLEANFILES): Add sysinfo$(EXEEXT_FOR_BUILD) and
982         bin2c$(EXEEXT_FOR_BUILD).
983         * configure.in (BUILD_MISC): Add $(EXEEXT_FOR_BUILD) to bin2c.
984         Move embedspu to..
985         (BUILD_INSTALL_MISC): ..here.
986         * Makefile.in: Regenerate.
987         * configure: Regenerate.
989 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
991         * bin2c.c: New file.
992         * Makefile.am (EXTRA_PROGRAMS): Add bin2c.
993         (CFILES): Add bin2c.c.
994         (bin2c_SOURCES): Define.
995         (bin2c.o): Dependencies from "make dep-am".
996         * configure.in (BUILD_MISC): Add bin2c.
997         * version.c: Update year.
998         * po/POTFILES.in: Regenerate.
999         * Makefile.in: Regenerate.
1000         * configure: Regenerate.
1002 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
1003             Nathan Sidwell  <nathan@codesourcery.com>
1004             Vladimir Prus  <vladimir@codesourcery.com
1005             Joseph Myers  <joseph@codesourcery.com>
1007         * configure.in (--with-bugurl): New option.
1008         * configure: Regenerate.
1009         * Makefile.am (REPORT_BUGS_TO): Define.
1010         (INCLUDES): Define REPORT_BUGS_TO.
1011         Regenerate dependencies.
1012         * Makefile.in: Regenerate.
1013         * doc/Makefile.in: Regenerate.
1014         * bucomm.h: Remove include of bin-bugs.h.
1015         * addr2line.c (usage): Don't print empty REPORT_BUGS_TO.
1016         * ar.c (usage): Pass s to list_supported_targets.  Don't print
1017         empty REPORT_BUGS_TO.
1018         * coffdump.c (show_usage): Don't print empty REPORT_BUGS_TO.
1019         * cxxfilt.c (usage): Print bug url when giving help.
1020         * dlltool.c (usage): Likewise.
1021         * dllwrap.c (usage): Likewise.
1022         * nlmconv.c (show_usage): Don't print empty REPORT_BUGS_TO.
1023         * nm.c (usage): Likewise.
1024         * objcopy.c (copy_usage, strip_usage): Likewise.
1025         * objdump.c (usage): Likewise.
1026         * readelf.c ((usage): Likewise. Add STREAM argument.  Adjust
1027         callers.
1028         * size.c (usage): Don't print empty REPORT_BUGS_TO.
1029         * srconv.c (show_usage): Likewise.
1030         * strings.c (usage): Likewise.
1031         * sysdymp.c (show_usage): Likewise.
1032         * windres.c (usage): Likewise.
1034 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
1036         * embedspu.sh: Add -W to readelf invocation.
1038 2007-02-06  Dave Brolley  <brolley@redhat.com>
1040         * MAINTAINERS: Add myself as the maintainer of the MeP port.
1042 2007-02-06  Nick Clifton  <nickc@redhat.com>
1044         PR gas/3800
1045         * readelf.c: Include elf/h8.h twice.  The first time in order to
1046         get the reloc numbers, the second time in order to get the reloc
1047         decoder function.
1048         (dump_section): Tell the user if the section being displayed has
1049         unprocessed relocs associated with it.
1050         (get_reloc_size): New function - returns the size of a reloc.
1051         (debug_apply_rela_addends): Use get_reloc_size().
1052         * dwarf.c (read_and_display_attr_value): Extend number of
1053         languages known for the DW_AT_language attribute.
1054         (process_debug_info): Display the attribute offset before decoding
1055         the attribute, in case there are problems.
1057 2007-02-05  Dave Brolley  <brolley@redhat.com>
1059         * readelf.c (dump_relocations): Don't check for
1060         (rtype == NULL && type == R_RELC).
1062 2007-02-05  Dave Brolley  <brolley@redhat.com>
1064         * Makefile.am (readelf.o): Depends on $(INCDIR)/elf/mep.h.
1065         * Makefile.in: Regenerated.
1066         * Contribute the following changes:
1067         2003-10-29  Dave Brolley  <brolley@redhat.com>
1069         * configure.in: Define SKIP_ZEROES and SKIP_ZEROES_AT_END for mep.
1070         * configure: Regenerated.
1072         2001-04-03  Ben Elliston  <bje@redhat.com>
1074         * readelf.c: Include "elf/mep.h".
1075         (guess_is_rela): Handle EM_CYGNUS_MEP.
1076         (get_machine_name): Ditto.
1077         (dump_relocations): Ditto.
1079 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
1081         * MAINTAINERS: Add a space between H.J. and Lu.
1083 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
1085         * doc/binutils.texi (objdump): Document the new addr64 option
1086         for i386 disassembler.
1088 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
1090         PR binutils/3945
1091         * configure.in (DLLTOOL_DEFAULT): New. Defined for the first PE
1092         target.
1093         (DLLTOOL_DEFS): Add $DLLTOOL_DEFAULT.
1094         * configure: Regenerated.
1096         * dlltool.c (mname): Defined with DLLTOOL_DEFAULT_XXX.
1098 2007-02-02  Nick Clifton  <nickc@redhat.com>
1100         * doc/binutils.texi (objdump): Document support for disassembling
1101         the 440 PowerPC architecture.
1103 2007-01-31  Nathan Sidwell  <nathan@codesourcery.com>
1105         * dwarf.c (process_debug_info): Protect against bogus length and
1106         abbrev offsets.
1108 2007-01-25  Kazu Hirata  <kazu@codesourcery.com>
1110         * ar.c (print_contents, extract_file): Cast the return value
1111         of fwrite to size_t.
1113 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
1115         * ar.c (open_inarch): Check fwrite return.  Use size_t.
1116         (extract_file): Likewise.  Remove test for "negative" file size.
1117         * readelf.c (process_program_headers): Check fscanf return.
1119 2007-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1121         * bucomm.c (template_in_dir): Fix typo.
1123 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
1125         * embedspu.sh: New file.
1126         * Makefile.am (embedspu): Add rule.
1127         * configure.in (BUILD_MISC): Add embedspu for powerpc-linux.
1128         * Makefile.in: Regenerate.
1129         * configure: Regenerate.
1131 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
1133         * bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
1134         * bucomm.c (template_in_dir): New function, split out from..
1135         (make_tempname): ..here.  Open the file with O_EXCL if !HAVE_MKSTEMP.
1136         (make_tempdir): Use template_in_dir.  Handle directory creation
1137         when !HAVE_MKDTEMP.
1138         * objcopy.c (MKDIR): Don't define.
1139         (copy_archive): Use make_tempdir when !HAVE_MKDTEMP too.  Fix
1140         error message.
1142 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
1144         * readelf.c (get_machine_flags): Treat Fido as an architecture
1145         by itself.
1147 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
1149         * configure.in: Renamed target x86_64-*-mingw64 to
1150         x86_64-*-mingw*.
1151         * configure: Regenerated.
1153 2007-01-05  Alan Modra  <amodra@bigpond.net.au>
1155         * readelf.c (dump_section): Don't print 32-bit values, which
1156         were done incorrectly for little-endian.  Instead print bytes.
1158 For older changes see ChangeLog-2006
1160 Local Variables:
1161 mode: change-log
1162 left-margin: 8
1163 fill-column: 74
1164 version-control: never
1165 End: