* readelf.c (process_program_headers): Use dynamic segment unless
[platform/upstream/binutils.git] / binutils / ChangeLog
1 2007-10-24  Tristan Gingold  <gingold@adacore.com>
2             Alan Modra  <amodra@bigpond.net.au>
3
4         * readelf.c (process_program_headers): Use dynamic segment unless
5         dynamic section is found.
6
7 2007-10-16  Bob Wilson  <bob.wilson@acm.org>
8
9         * doc/binutils.texi (objcopy, strip): Replace hyphens with em-dashes.
10         (objdump, strip, c++filt): Correct punctuation for "e.g." and "i.e."
11         and change to spell out "for example" in two places.
12
13 2007-10-16  Nick Clifton  <nickc@redhat.com>
14
15         * configure.in: Build windows tools for --enable-targets=all.
16         * configure: Regenerate.
17
18 2007-10-15  Alan Modra  <amodra@bigpond.net.au>
19
20         * objdump.c (print_line): Check fwrite return value.
21         * srconv.c (checksum, wr_tr, wr_cs): Likewise.
22         * sysdump.c (fillup): Return zero on getc or fread EOF.  Return count
23         read.
24
25 2007-10-10  Jim Blandy  <jimb@codesourcery.com>
26
27         * dwarf.c (process_debug_info): Line up section offsets of
28         attribute values with those of dies.
29         (read_and_display_attr): Reduce spacing here.
30
31         * dwarf.c (display_debug_lines): Print the offset of each line
32         number program header.
33
34 2007-10-09  H.J. Lu  <hongjiu.lu@intel.com>
35
36         PR binutils/4476
37         * readelf.c (print_dynamic_symbol): New.
38         (process_symbol_table): Handle DT_GNU_HASH for dynamic symbols.
39
40 2007-10-08  Carlos O'Donell  <carlos@codesourcery.com>
41
42         * resrc.c (read_rc_file): Rename e to edit, and c to dir.
43         Pass dir to windres_add_include_dir.  Add comments.
44         (close_input_stream): Check pclose error, and call fatal if
45         the preprocessor failed.
46         * windres.c (windres_add_include_dir): Assert that p is non-NULL,
47         and not an empty string. 
48
49 2007-10-04  Nick Clifton  <nickc@redhat.com>
50
51         PR binutils/5098
52         * dlltool.c: Fix spelling typos.
53
54 2007-10-03  Masaki Muranaka  <monaka@monami-software.com>
55
56         * readelf.c (dump_section_as_strings): Use %6tx instead of %6zx.
57
58 2007-09-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
59
60         * MAINTAINERS: Fix typo.
61
62 2007-09-17  Shen Feng  <shen@cn.fujitsu.com>
63
64         * readelf.c (do_archive_index): New.
65         (options): Add -c and --archive-index option.
66         (usage): Add -c option.
67         (parse_args): Add c option parsing.
68         (process_archive): Dump archive index.
69         * NEWS: Mention the new feature.
70         * doc/binutils.texi: Document the new feature.
71
72 2007-09-17  Nick Clifton  <nickc@redhat.com>
73
74         * po/es.po: Updated Spanish translation.
75
76 2007-09-17  Nick Clifton  <nickc@redhat.com>
77
78         * doc/binutils.texi (objdump): Describe the output of the --syms
79         option in more detail. 
80
81 2007-09-17  Alon Bar-Lev  <alon.barlev@gmail.com>
82
83         PR binutils/4987
84         * resrc.c: (read_rc_file): Move 'filename' default initialization 
85         to start of function.
86
87 2007-08-31  Michael Meissner  <michael.meissner@amd.com>
88             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
89
90         * NEWS: Add note about SSE5 being added on i386.
91
92 2007-09-13  Alan Modra  <amodra@bigpond.net.au>
93             Zhou Drangon <drangon.mail@gmail.com>
94
95         * nm.c (value_format_64bit, set_print_radix, print_value): Handle
96         BFD_HOST_64BIT_LONG_LONG.
97         * readelf.c (print_dec_vma): Don't define if BFD_HOST_64BIT_LONG_LONG.
98         (print_vma): Handle BFD_HOST_64BIT_LONG_LONG.
99         (dump_relocations): Likewise.  Expand _bfd_int64_low in a
100         number of places.
101
102 2007-09-11  Kai Tietz  <kai.tietz@onevision.com>
103
104         * rcparse.y: (string_data): Removed ill token removal.
105
106 2007-09-10  Alan Modra  <amodra@bigpond.net.au>
107
108         PR 5011
109         * readelf.c (process_version_sections): Don't read past end of
110         various section buffers.
111
112 2007-08-31  H.J. Lu  <hongjiu.lu@intel.com>
113
114         * Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
115         * Makefile.in: Regenerated.
116
117         * sysdep.h: Include "config.h" first.
118
119 2007-08-31  Nick Clifton  <nickc@redhat.com>
120
121         * po/sk.po: New Slovakian translation.
122         * configure.in (LINGUAS): Add sk.
123         * configure: Regenerate.
124
125 2007-08-30  Nick Clifton  <nickc@redhat.com>
126
127         * readelf.c (dump_type): New type used to classify the kinds of
128         dump requested by the user.
129         (dump_sects, cmdline_dump_sects): Use the new type.
130         (options): Add --string-dump option.
131         (request_dump): Rename to request_dump_bynumber.  Use dump_type.
132         (request_dump_byname): Use dump_type.
133         (parse_args): Parse --string-dump option.
134         (process_section_headers): Fix calls to request_dump.
135         (initialise_dumps_byname): Likewise.
136         (dump_section): Rename to dump_section_as_bytes.
137         (dump_section_as_strings): New function.  Display the contents of
138         a section as printable strings.
139         (process_section_contents): String dump the section if requested.
140         (process_object): Use dump_type.
141         (main): Likewise.
142         * Makefile.am: Add dependency for readelf.c on safe-ctype.h.
143         * Makefile.in: Regenerate.
144         * NEWS: Mention the new feature.
145         * doc/binutils.texi: Document the new feature.
146
147 2007-08-30  Nathan Sidwell  <nathan@codesourcery.com>
148
149         * bucomm.c (bfd_nonfatal_message): New.
150         * bucomm.h (bfd_nonfatal_message): Declare.
151         * objcopy.c (RETURN_NONFATAL): Take BFD not NAME, use
152         bfd_nonfatal_message.
153         (copy_unknown_object): Adjust bfd_nonfatal and RETURN_NONFATAL
154         calls, or replace with bfd_nonfatal_message calls as appropriate.
155         (copy_object, copy_archive, copy_file, setup_section,
156         copy_section, write_debugging_info): Likewise.
157
158 2007-08-28  Nick Clifton  <nickc@redhat.com>
159
160         * NEWS: Mention Coverity's contribution.
161
162 2007-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
163
164         * readelf.c (process_note): Recognize SPU core file notes.
165
166 2007-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
167
168         * configure.in: Install embedspu on powerpc*-*-eabi* also.
169         * configure: Regenerated.
170
171 2007-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
172
173         * po/uk.po: Updated Ukrainian translation.
174
175 2007-08-22  Ben Elliston  <bje@au.ibm.com>
176
177         * doc/binutils.texi (objdump): Document -Mppcps.
178
179 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
180
181         * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
182
183 2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
184
185         * readelf.c: Revert last change.
186
187 2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
188
189         * readelf.c (get_segment_type): Change PT_GNU_STACK to
190         PT_GNU_ATTR.
191
192 2007-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
193
194         * NEWS: Add a marker for the 2.18 features.
195
196 2007-08-12  Matthias Klose  <doko@ubuntu.com>
197
198         * doc/Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Include
199         $(top_srcdir)/../../bfd/doc.
200         * doc/Makefile.in: Regenerate.
201
202 2007-08-10  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
203
204         * MAINTAINERS: Add myself as CR16 support maintainer and
205         update myself as CRX support maintainer.
206
207 2007-08-10  Nick Clifton  <nickc@redhat.com>
208
209         * po/fi.po: Updated Finnish translation.
210         * po/vi.po: Updated Vietnamese translation.
211
212 2007-08-10  Kai Tietz  <kai.tietz@onevision.com>
213
214         * doc/binutils.texi: (windmc): Correct incorrect desciption.
215
216 2007-08-04  Alan Modra  <amodra@bigpond.net.au>
217
218         PR 4888
219         * objcopy.c (setup_section): Do modify section flags for ELF
220         STRIP_NONDEBUG (reverting part of 2007-05-30 change).  Prevent
221         header rewrite by twiddling input section flags instead.
222         Simplify code setting SHT_NOBITS.
223
224 2007-07-28  Christopher Faylor  <me+binutils@cgf.cx>
225
226         * MAINTAINERS: Update my email address.
227
228 2007-07-26  Adam Nemet  <anemet@caviumnetworks.com>
229
230         * readelf.c (process_archive): Also skip Irix6-style archive symbol
231         tables.
232
233 2007-07-24  Nick Clifton  <nickc@redhat.com>
234
235         * readelf.c (NUM_ELEM): Remove redundant macro; replace references
236         to it with references to ARRAY_SIZE.
237         Add support for CR16.
238         Fix formatting.
239
240 2007-07-19  Nick Clifton  <nickc@redhat.com>
241
242         PR binutils/4802
243         * srconv.c (strip_suffix): Add const qualifier to argument.
244
245 2007-07-16  Nick Clifton  <nickc@redhat.com>
246
247         * po/uk.po: New Ukrainian translation.
248         * configure.in (ALL_LINGUAS): Add 'uk'.
249         * configure: Regenerate.
250
251 2007-07-10  Alan Modra  <amodra@bigpond.net.au>
252
253         * objdump.c (dump_dwarf): Correct setting of is_relocatable.
254
255 2007-07-09  Roland McGrath  <roland@redhat.com>
256
257         * readelf.c (get_gnu_elf_note_type): New function.
258         (process_note): Use it for "GNU" name.
259
260 2007-07-08  Andreas Schwab  <schwab@suse.de>
261
262         * Makefile.am (HFILES): Add dwarf.h, sysdep.h and unwind-ia64.h.
263         (CFILES): Add unwind-ia64.c.
264         Regenerate dependencies.
265         * Makefile.in: Regenerate.
266
267 2007-07-05  Nick Clifton  <nickc@redhat.com>
268
269         * addr2line.c: Update copyright notice to refer to GPLv3.
270         * ar.c, arlex.l, arparse.y, arsup.c, arsup.h, bin2c.c, binemul.c,
271         binemul.h, bucomm.c, bucomm.h, budbg.h, coffdump.c, coffgrok.c,
272         coffgrok.h, cxxfilt.c, debug.c, debug.h, deflex.l, defparse.y,
273         dlltool.c, dlltool.h, dllwrap.c, dwarf.c, dwarf.h, embedspu.sh,
274         emul_aix.c, emul_vanilla.c, filemode.c, ieee.c, mclex.c,
275         mcparse.y, nlmconv.c, nlmconv.h, nlmheader.y, nm.c, objcopy.c,
276         objdump.c, prdbg.c, rclex.c, rcparse.y, rdcoff.c, rddbg.c,
277         readelf.c, rename.c, resbin.c, rescoff.c, resrc.c, resres.c,
278         size.c, srconv.c, stabs.c, strings.c, sysdep.h, sysdump.c,
279         sysinfo.y, syslex.l, unwind-ia64.c, unwind-ia64.h, version.c,
280         windint.h, windmc.c, windmc.h, windres.c, windres.h, winduni.c,
281         winduni.h, wrstabs.c: Likewise.
282         * is-ranlib.c, is-strip.c, maybe-ranlib.c, maybe-strip.c,
283         not-ranlib.c, not-strip.c, ranlib.sh, sanity.sh: Add a copyright
284         notice.
285         * NEWS: Mention that the sources are now released under GPLv3.
286         Add a marker for the changes that went into v2.17.
287         * version.c (print_version): Specify that the program is released
288         under version 3 of the GPL.
289
290 2007-07-05  Kai Tietz  <kai.tietz@onevision.com>
291
292         * resrc.c: (read_rc_file): Add include path of user passed rc
293         input file.
294         * windres.c: (windres_add_include_dir): New.
295         (main): Use of windres_add_include_dir.
296         * windres.h: (windres_add_include_dir): Add prototype.
297
298 2007-07-05  Alan Modra  <amodra@bigpond.net.au>
299
300         * doc/binutils.texi (size): Document --common.
301         * size.c: Make a number of vars static.  Delete unnecessary
302         function declarations.
303         (show_common, common_size): New vars.
304         (usage): Describe --common.
305         (OPTION_FORMAT, OPTION_RADIX, OPTION_TARGET): Define and use.
306         (long_options): Add common.
307         (calculate_common_size): New function.
308         (print_berkeley_format): Add common_size to bsssize.
309         (sysv_one_line): New function split out from..
310         (sysv_internal_printer): ..here.
311         (print_sysv_format): Handle display of *COM*.
312         (print_sizes): Call calculate_common_size.
313
314 2007-07-05  Alan Modra  <amodra@bigpond.net.au>
315
316         * emul_aix.c (ar_emul_aix_internal): Rename "next" to "archive_next".
317
318 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
319
320         PR 4716
321         * objcopy.c (filter_symbols): Correct relocatable file test.
322
323 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
324
325         * Makefile.am: Run "make dep-am".
326         * Makefile.in: Regenerate.
327         * aclocal.m4: Regenerate.
328         * config.in: Regenerate.
329         * doc/Makefile.in: Regenerate.
330         * po/POTFILES.in: Regenerate.
331         * po/binutils.pot: Regenerate.
332
333 2007-06-30  H.J. Lu  <hongjiu.lu@intel.com>
334
335         * aclocal.m4: Regenerated.
336         * doc/Makefile.in: Likewise.
337         * Makefile.in: Likewise.
338
339 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
340
341         * readelf.c (display_power_gnu_attribute, process_power_specific):
342         New.
343         (process_arch_specific): Call process_power_specific.
344
345 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
346
347         * readelf.c (display_mips_gnu_attribute): New.
348         (process_mips_specific): Call process_attributes.
349
350 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
351
352         * readelf.c (display_gnu_attribute): New.
353         (process_arm_specific): Rearrange as process_attributes.
354         (process_arm_specific): Replace by wrapper of process_attributes.
355
356 2007-06-28  Roland McGrath  <roland@frob.com>
357
358         * objcopy.c (setup_section): Don't reset ELF section type to
359         SHT_NOBITS when it is SHT_NOTE.
360         * doc/binutils.texi (objcopy, strip): Mention under --only-keep-debug.
361
362 2007-06-27  Alan Modra  <amodra@bigpond.net.au>
363
364         * ar.c: Rename uses of bfd.next to bfd.archive_next throughout.
365         * arsup.c: Likewise.
366         * binemul.c: Likewise.
367         * objcopy.c: Likewise.
368         * dlltool.c: Likewise.
369
370 2007-06-26  Shantonu Sen  <ssen@apple.com>
371
372         PR binutils/4693
373         * Makefile.am (windres_DEPENDENCIES, windmc_DEPENDENCIES): Move
374         dependency on $(LIBICONV) to ...
375         (windres_LDADD, windmc_LDADD) ... here.
376         * Makefile.in: Regenerate.
377
378 2007-06-21  Alan Modra  <amodra@bigpond.net.au>
379
380         * embedspu.sh (relas): Correct sh_info parsing.
381
382 2007-06-19  Danny Smith  <dannysmith@users.sourceforge.net>
383
384         * objdump.c: Include sys/stat.h.
385
386 2007-06-19  Kai Tietz  <kai.tietz@onevision.com>
387
388         * Makefile.am: Add windmc tool.
389         * Makefile.in: Regenerate.
390         * configure.in: Add windmc tool.
391         * configure: Regenerate.
392         * mclex.c: New.
393         * mcparse.y: New.
394         * windmc.c: New.
395         * windmc.h: New.
396         * doc/Makefile.am: Add windmc tool.
397         * doc/Makefile.in: Regenerate.
398         * doc/binutils.texi: Add windmc documentation.
399         * NEWS: Mention new tool.
400
401 2007-06-18  Andi Kleen  <ak@suse.de>
402
403         * objdump.c: Include sys/mman.h
404         (print_file_list): Remove f, add map, mapsize, linemap, maxline,
405         last_line, first fields.
406         (slurp_file): Add.
407         (index_file): Add.
408         (print_file_open): Call slurp_file and index_file. Initialize new
409         fields.
410         (skip_to_line): Rename to print_line and write only single line.
411         (dump_line): Add.
412         (show_line): Change to new algorithm.
413
414 2007-06-18  Thomas Weidenmueller  <w3seek@reactos.org>
415
416         * resres.c (probe_binary): Fix test for badly formatted headers.
417
418 2007-06-18  Kai Tietz  <Kai.Tietz@onevision.com>
419
420         * rclex.c: (cpp_line): Add code_page pragma support.
421         * windres.c: (usage, long_options, main): Add new option
422         --codepage or -c.
423         * winduni.c: (wind_default_codepage, wind_current_codepage): New.
424         (unicode_from_ascii, ascii_from_unicode): Use
425         wind_current_codepage as codepage parameter.
426         (unicode_print): Print 4 characters for hexadecimal values in
427         unicode strings.
428         * winduni.h:  (wind_default_codepage, wind_current_codepage):
429         Export.
430         * doc/binutils.texi: Document new option.
431         * NEWS: Mention new features of windres.
432
433 2007-06-18  Brian D. Watt  <bwatt@us.ibm.com>
434
435         * embedspu.sh: Parse _SPUEAR_ symbol values as hex.
436
437 2007-06-14  H.J. Lu  <hongjiu.lu@intel.com>
438
439         * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
440
441         * acinclude.m4: Removed.
442
443         * Makefile.in: Regenerated.
444         * aclocal.m4: Likewise.
445         * configure: Likewise.
446
447 2007-06-11  Nathan Sidwell  <nathan@codesourcery.com>
448
449         * dwarf.c (decode_location_expression): Add DW_OP_form_tls_address.
450
451 2007-06-06  Kai Tietz  <Kai.Tietz@onevision.com>
452
453         PR binutils/4356 binutils/591
454         * resrc.c (filename_need_quotes): New function.
455         (look_for_default): If filename_need_quotes is true then quote the
456         filename in the command line being created.
457         (read_rc_file): Likewise.
458
459 2007-06-06  Ben Elliston  <bje@au.ibm.com>
460
461         * doc/binutils.texi (objdump): Fix capitalisation of "PowerPC".
462
463 2007-06-05  Kai Tietz  <Kai.Tietz@onevision.com>
464
465         * Makefile.am: Add LIBICONV to windres.
466         * acinclude.m4: Added missing "lib-*.m4" and "lt*.m4" files.
467         * configure.in: Add AC_CHECK_HEADER for iconv.h and use AM_ICONV.
468         * config.in: Add ICONV defines.
469         * aclocal.m4: Regenerate.
470         * confugure: Regenerate.
471         * winduni.c: (local_iconv_map codepages, wind_language_t,
472         languages, unicode_is_valid_codepage, wind_find_language_by_id,
473         wind_find_language_by_codepage, wind_find_codepage_info,
474         unicode_from_codepage, codepage_from_unicode, iconv_onechar,
475         wind_iconv_cp, wind_MultiByteToWideChar wind_WideCharToMultiByte):
476         New.
477         (ascii_from_unicode): Use codepage_from_unicode.
478         (ascii_from_unicode): Use unicode_from_codepage.
479         Use for cygwin windows API for unicode transformation.
480         * winduni.h: (CP_ACP, CP_UTF7, CP_UTF8, CP_OEM, CP_UTF16): New
481         macros.
482         (wind_language_t, local_iconv_map): New types.
483         (wind_find_language_by_id, wind_find_language_by_codepage,
484         unicode_is_valid_codepage, wind_find_codepage_info,
485         unicode_from_codepage, codepage_from_unicode): New
486         prototypes.
487
488 2007-06-05  Alan Modra  <amodra@bigpond.net.au>
489
490         * embedspu.sh: Handle R_SPU_PPU* relocs with no symbol.
491
492 2007-05-30  Alan Modra  <amodra@bigpond.net.au>
493
494         * objcopy.c (copy_object): Revert 2007-05-11 change.  Don't
495         avoid calling bfd_copy_private_bfd_data for ELF STRIP_NONDEBUG.
496         (setup_section): Don't modify flags, and don't avoid calling
497         bfd_copy_private_section_data for ELF STRIP_NONDEBUG.
498         * readelf.c (process_program_headers): Ignore .dynamic of type
499         SHT_NOBITS.
500
501 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
502
503         * embedspu.sh: Emit SPU ELF image to .data.rel.ro.speelf if
504         pic or pie and image needs relocs.
505
506 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
507
508         * Makefile.in: Regenerate.
509         * configure: Regenerate.
510         * aclocal.m4: Regenerate.
511         * doc/Makefile.in: Regenerate.
512
513 2007-05-24  Kai Tietz  <Kai.Tietz@onevision.com>
514
515         * rcparse.y: Join strings for elements having no side-effects in
516         "rc"-grammar.
517
518 2007-05-23  Kai Tietz  <Kai.Tietz@onevision.com>
519
520         * rclex.c: New file replacing rclex.l.
521         * rclex.l: Removed.
522         * windint.h: New file holding common structure and type
523         definitions.
524         * Makefile.am: Added new header windint.h and exchanged rclex.l by
525         rclex.c.
526         * Makefile.in: Regenerate.
527         * rcparse.y: Renamed some structures.
528         Use in internal representation always bfd_vma instead of long or
529         int.
530         Removed from %union unused stringtable.
531         Added to %union suni structure for unicode strings.
532         Added new tokens for ANICURSOR, ANIICON, DLGINCLUDE,
533         DLGINIT, FONTDIR, HTML, MANIFEST, PLUGPLAY, VXD,
534         TOOLBAR, BUTTON, QUOTEDUNISTRING, and SIZEDUNISTRING.
535         Added support for these new rc file tokens.
536         * resbin.c: Rewrote using bfd and binary structures, and support
537         new resource types.
538         * rescoff.c: Likewise.
539         * resres.c: Likewise.
540         * resrc.c: Likewise. Dumps as RC are now recompilable.
541         * windres.c: As above. Using bfd for res and provide target
542         specific endianess support.
543         * windres.h: Use windint.h as include. Additionally removed K&R
544         syntax.
545         * winduni.c: New printing and unichar support routines.
546         * winduni.h: Prototypes for new unichar helpers.
547         * windint.h: New file.
548
549 2007-05-22  Paul Brook  <paul@codesourcery.com>
550
551         * objdump.c (find_symbol_for_address): Merge section and target
552         specific filtering code.
553
554 2007-05-22  Nick Clifton  <nickc@redhat.com>
555
556         * doc/binutils.texi: Use @copying around the copyright notice.
557
558 2007-05-21  Richard Sandiford  <richard@codesourcery.com>
559
560         * objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs
561         for executables and shared libraries.
562
563 2007-05-18  Nathan Sidwell  <nathan@codesourcery.com>
564
565         * objcopy.c (strip_main): Detect identical input and output file
566         names.
567         (copy_main): Refactor tempname detection and use.
568
569 2007-05-17  Nick Clifton  <nickc@redhat.com>
570
571         * objdump.c (load_debug_section): Select bias for DWARF debug
572         addresses based on the flavour of the bfd.
573
574 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
575
576         PR 4479
577         * objcopy.c (copy_object): Don't copy ELF program headers for
578         --only-keep-debug.
579
580 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
581
582         * embedspu.sh (find_prog): Prefer prog in same dir as embedspu
583         over one found on the users path.
584         (main): Generate .reloc for each R_SPU_PPU* reloc.
585
586 2007-04-28  Alan Modra  <amodra@bigpond.net.au>
587
588         * prdbg.c (tg_variable): Adjust for changed demangler.
589         (tg_start_function): Likewise.
590
591 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
592
593         * bucumm.h: Split off host dependencies to..
594         * sysdep.h: ..here.
595         Many files: Include sysdep.h.  Remove duplicate headers and reorder.
596         * Makefile.am: Run "make dep-am".
597         * Makefile.in: Regenerate.
598
599 2007-04-24  Nick Clifton  <nickc@redhat.com>
600
601         * srconv.c (walk_tree_type_1): Initialise dpt.dunno.
602
603 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
604             Phil Edwards  <phil@codesourcery.com>
605
606         * objcopy.c (filter_symbols): Explicitly stripping a symbol
607         used in relocations is an error.
608         Retype 'keep' to bfd_boolean.
609
610 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
611
612         * Makefile.in: Regenerate.
613         * doc/Makefile.in: Regenerate.
614
615 2007-04-20  Nathan Froyd  <froydnj@codesourcery.com>
616             Phil Edwards  <phil@codesourcery.com>
617             Thomas de Lellis <tdel@windriver.com>
618
619         * objcopy.c (reverse_bytes):  New variable.
620         (command_line_switch, copy_main):  Add OPTION_REVERSE_ENDIAN.
621         (copy_options, copy_usage):  Add "reverse-bytes" entry.
622         (copy_section):  Reverse bytes within output sections.
623         * doc/binutils.texi:  Document new objcopy option.
624
625 2007-04-20  Nick Clifton  <nickc@redhat.com>
626
627         * rclex.l: Allow underscores at the start of identifiers.
628
629 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
630
631         * budemang.c: Delete.
632         * budemang.h: Delete.
633         * addr2line.c (translate_addresses): Call bfd_demangle rather than
634         demangle.
635         * nm.c (print_symname): Likewise.
636         * objdump.c (objdump_print_symname, dump_symbols): Likewise.
637         (dump_bfd): Likewise.
638         * prdbg.c (struct pr_handle <demangler>): Add int param.
639         (tg_variable, tg_start_function): Adjust demangler calls.
640         * Makefile.am: Remove mention of budemang.[ch].  Run "make dep-am".
641         * Makefile.in: Regenerate.
642         * po/POTFILES.in: Regenerate.
643
644 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
645
646         * Makefile.am: Add ACLOCAL_AMFLAGS.
647         * configure.in: Change macro call order.
648         * Makefile.in: Regenerate.
649         * configure: Regenerate.
650
651 2007-04-13  Nathan Sidwell  <nathan@codesourcery.com>
652
653         * Makefile.am (TOOL_PROGS): Add objcopy.
654         * Makefile.in: Rebuilt.
655
656 2007-04-12  H.J. Lu  <hongjiu.lu@intel.com>
657
658         PR binutils/4348
659         * objcopy.c (copy_object): Don't stop when there are no
660         sections to be copied.
661
662 2007-04-10  Vladimir Prus  <vladimir@codesourcery.com>
663
664         * NEWS: Mention disjoint histograms support in
665         gprof.
666
667 2007-04-09  Daniel Jacobowitz  <dan@codesourcery.com>
668
669         * dwarf.c (process_debug_info): Do not require DW_AT_frame_base for
670         DW_TAG_inlined_subroutine.
671
672 2007-04-06  Matt Thomas  <matt@netbsd.org>
673
674         * MAINTAINERS: Add myself as VAX and NetBSD support maintainer.
675
676 2007-04-05  Alan Modra  <amodra@bigpond.net.au>
677
678         PR binutils/4292
679         * nm.c (print_value): Cast bfd_vma to unsigned long to suit
680         value_format_32bit.
681
682 2007-04-02  Nick Clifton  <nickc@redhat.com>
683
684         PR binutils/4292
685         * nm.c (value_format): Replace with value_format_32bit and
686         value_format_64bit.
687         (set_radix): Update setting of value_format.
688         (set_print_width): New function.  Compute the address size of a
689         given bfd and set the print_width global appropriately.
690         (display_archive): Use set_print_width.
691         (display_file): Likewise,
692         (print_object_filename_sysv): Update use of print_width.
693         (print_archive_member_sysv): Likewise.
694         (print_symbol_filename_posix): Likewise.
695         (print_sumbol_info_bfd, print_symbol_info_sysv): Likewise.
696
697 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
698             Phil Edwards  <phil@codesourcery.com>
699
700         * doc/binutils.texi: Put the contents after the title page rather
701         than at the end of the document.
702
703 2007-03-28  Nick Clifton  <nickc@redhat.com>
704
705         * readelf.c (slurp_rela_relocs): Add newline to end of error
706         messages.
707         (slurp_rel_relocs, request_dump, request_dump_byname,
708         process_program_headers, process_dynamic_section,
709         process_symbol_table, process_mips_specific, main): Likewise.
710
711 2007-03-28  Alan Modra  <amodra@bigpond.net.au>
712
713         * MAINTAINERS: Update mailing list addresses.  Add myself
714         as PPC maintainer.
715
716 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
717
718         * embedspu.sh: Correct toe_addr quoting.
719
720 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
721
722         * embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns.  Tighten
723         .toe section and .toe address checks.  Use .reloc for _EAR*
724         symbols defined in non-BSS sections.  Build table for _SPUEAR_
725         symbols.
726
727 2007-03-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
728
729         PR gas/3811
730         * readelf.c (debug_apply_rela_addends): Do nothing for SH.
731
732 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
733
734         * doc/binutils.texi: Include VERSION_PACKAGE when reporting
735         version.
736
737 2007-03-16  Kai Tietz  <Kai.Tietz@onevision.com>
738
739         * dlltool.c (make_one_lib_file): Use pc-relative relocation
740         instead of an absolute relocation for x86_64-pc-mingw32 target.
741
742 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
743
744         * Makefile.am (REPORT_BUGS_TO): Removed.
745         (INCLUDES): Remove -DREPORT_BUGS_TO.
746         * Makefile.in: Regenerated.
747
748         * bucomm.c: Don't include bfdver.h.
749         * objdump.c: Likewise.
750         * version.c: Likewise.
751
752         * bucomm.h: Include bfdver.h.
753
754         * configure.in (--with-bugurl): Removed.
755         * configure: Regenerated.
756
757         * doc/Makefile.am (binutils_TEXINFOS): Removed.
758         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
759         (TEXI2DVI): Likewise.
760         (config.texi): Removed.
761         (MOSTLYCLEANFILES): Remove config.texi.
762         * doc/Makefile.in: Regenerated.
763
764         * doc/binutils.texi: Include bfdver.texi instead of
765         config.texi.
766
767 2007-03-13  Nick Clifton  <nickc@redhat.com>
768
769         * readelf.c (dump_section): Also test for SHT_REL sections when
770         producing the warning about unapplied relocs.
771
772 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
773
774         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
775         bug-reporting URL.
776         * doc/Makefile.am (config.texi): Define BUGURL.
777         * doc/binutils.texi: Use BUGURL.  Remove text about large files
778         and uuencoding.
779         * Makefile.in, configure, doc/Makefile.in: Regenerate.
780
781 2007-03-01  Phil Edwards  <phil@codesourcery.com>
782             Richard Sandiford  <richard@codesourcery.com>
783
784         * NEWS: Mention addition of --extract-symbol.
785         * doc/binutils.texi: Document it.
786         * objcopy.c (extract_symbol): New variable.
787         (OPTION_EXTRACT_SYMBOLS): New command_line_switch.
788         (copy_options): Add an entry for --extract-symbol.
789         (copy_usage): Mention --extract-symbol.
790         (copy_object): Set the start address to zero for --extract-symbol.
791         Do not copy private BFD data in that case.
792         (setup_section): Set the size, LMA and VMA to zero for
793         --extract-symbol.  Do not copy private BFD data in that case.
794         (copy_section): Do not copy section contents if --extract-symbol
795         is passed.
796         (copy_main): Set extract_symbol to TRUE if --extract-symbol
797         is passed.
798
799 2007-03-01  Paul Brook  <paul@codesourcery.com>
800
801         * MAINTAINERS: Update my entry.
802
803 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
804
805         * version.c: Update copyright date.
806
807 2007-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
808
809         * Makefile.am (install-exec-local): Depend on $(noinst_PROGRAMS).
810         Adjust $(EXEEXT) handling for $(RENAMED_PROGS).
811         * Makefile.in, doc/Makefile.in: Regenerate.
812
813 2007-03-01  Alan Modra  <amodra@bigpond.net.au>
814
815         * embedspu.sh: Set type and size of global program handle symbol.
816
817 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
818
819         * Makefile.am (PROGS): Delete.
820         (RENAMED_PROGS): Define.  Extracted from..
821         (noinst_PROGRAMS): ..here.  Add BUILD_MISC.
822         (install-exec-local): Adjust.
823         * Makefile.in: Regenerate.
824
825 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
826
827         * Makefile.am (PROGS): Add BUILD_INSTALL_MISC.
828         (bin_PROGRAMS): Replace BUILD_MISC with BUILD_INSTALL_MISC.
829         (EXTRA_PROGRAMS): Remove bin2c.
830         (bin2c$(EXEEXT_FOR_BUILD)): New rule.
831         (bin2c_SOURCES): Delete.
832         (DISTCLEANFILES): Remove sysinfo.
833         (MOSTLYCLEANFILES): Add sysinfo$(EXEEXT_FOR_BUILD) and
834         bin2c$(EXEEXT_FOR_BUILD).
835         * configure.in (BUILD_MISC): Add $(EXEEXT_FOR_BUILD) to bin2c.
836         Move embedspu to..
837         (BUILD_INSTALL_MISC): ..here.
838         * Makefile.in: Regenerate.
839         * configure: Regenerate.
840
841 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
842
843         * bin2c.c: New file.
844         * Makefile.am (EXTRA_PROGRAMS): Add bin2c.
845         (CFILES): Add bin2c.c.
846         (bin2c_SOURCES): Define.
847         (bin2c.o): Dependencies from "make dep-am".
848         * configure.in (BUILD_MISC): Add bin2c.
849         * version.c: Update year.
850         * po/POTFILES.in: Regenerate.
851         * Makefile.in: Regenerate.
852         * configure: Regenerate.
853
854 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
855             Nathan Sidwell  <nathan@codesourcery.com>
856             Vladimir Prus  <vladimir@codesourcery.com
857             Joseph Myers  <joseph@codesourcery.com>
858
859         * configure.in (--with-bugurl): New option.
860         * configure: Regenerate.
861         * Makefile.am (REPORT_BUGS_TO): Define.
862         (INCLUDES): Define REPORT_BUGS_TO.
863         Regenerate dependencies.
864         * Makefile.in: Regenerate.
865         * doc/Makefile.in: Regenerate.
866         * bucomm.h: Remove include of bin-bugs.h.
867         * addr2line.c (usage): Don't print empty REPORT_BUGS_TO.
868         * ar.c (usage): Pass s to list_supported_targets.  Don't print
869         empty REPORT_BUGS_TO.
870         * coffdump.c (show_usage): Don't print empty REPORT_BUGS_TO.
871         * cxxfilt.c (usage): Print bug url when giving help.
872         * dlltool.c (usage): Likewise.
873         * dllwrap.c (usage): Likewise.
874         * nlmconv.c (show_usage): Don't print empty REPORT_BUGS_TO.
875         * nm.c (usage): Likewise.
876         * objcopy.c (copy_usage, strip_usage): Likewise.
877         * objdump.c (usage): Likewise.
878         * readelf.c ((usage): Likewise. Add STREAM argument.  Adjust
879         callers.
880         * size.c (usage): Don't print empty REPORT_BUGS_TO.
881         * srconv.c (show_usage): Likewise.
882         * strings.c (usage): Likewise.
883         * sysdymp.c (show_usage): Likewise.
884         * windres.c (usage): Likewise.
885
886 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
887
888         * embedspu.sh: Add -W to readelf invocation.
889
890 2007-02-06  Dave Brolley  <brolley@redhat.com>
891
892         * MAINTAINERS: Add myself as the maintainer of the MeP port.
893
894 2007-02-06  Nick Clifton  <nickc@redhat.com>
895
896         PR gas/3800
897         * readelf.c: Include elf/h8.h twice.  The first time in order to
898         get the reloc numbers, the second time in order to get the reloc
899         decoder function.
900         (dump_section): Tell the user if the section being displayed has
901         unprocessed relocs associated with it.
902         (get_reloc_size): New function - returns the size of a reloc.
903         (debug_apply_rela_addends): Use get_reloc_size().
904         * dwarf.c (read_and_display_attr_value): Extend number of
905         languages known for the DW_AT_language attribute.
906         (process_debug_info): Display the attribute offset before decoding
907         the attribute, in case there are problems.
908
909 2007-02-05  Dave Brolley  <brolley@redhat.com>
910
911         * readelf.c (dump_relocations): Don't check for
912         (rtype == NULL && type == R_RELC).
913
914 2007-02-05  Dave Brolley  <brolley@redhat.com>
915
916         * Makefile.am (readelf.o): Depends on $(INCDIR)/elf/mep.h.
917         * Makefile.in: Regenerated.
918         * Contribute the following changes:
919         2003-10-29  Dave Brolley  <brolley@redhat.com>
920
921         * configure.in: Define SKIP_ZEROES and SKIP_ZEROES_AT_END for mep.
922         * configure: Regenerated.
923
924         2001-04-03  Ben Elliston  <bje@redhat.com>
925
926         * readelf.c: Include "elf/mep.h".
927         (guess_is_rela): Handle EM_CYGNUS_MEP.
928         (get_machine_name): Ditto.
929         (dump_relocations): Ditto.
930
931 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
932
933         * MAINTAINERS: Add a space between H.J. and Lu.
934
935 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
936
937         * doc/binutils.texi (objdump): Document the new addr64 option
938         for i386 disassembler.
939
940 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
941
942         PR binutils/3945
943         * configure.in (DLLTOOL_DEFAULT): New. Defined for the first PE
944         target.
945         (DLLTOOL_DEFS): Add $DLLTOOL_DEFAULT.
946         * configure: Regenerated.
947
948         * dlltool.c (mname): Defined with DLLTOOL_DEFAULT_XXX.
949
950 2007-02-02  Nick Clifton  <nickc@redhat.com>
951
952         * doc/binutils.texi (objdump): Document support for disassembling
953         the 440 PowerPC architecture.
954
955 2007-01-31  Nathan Sidwell  <nathan@codesourcery.com>
956
957         * dwarf.c (process_debug_info): Protect against bogus length and
958         abbrev offsets.
959
960 2007-01-25  Kazu Hirata  <kazu@codesourcery.com>
961
962         * ar.c (print_contents, extract_file): Cast the return value
963         of fwrite to size_t.
964
965 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
966
967         * ar.c (open_inarch): Check fwrite return.  Use size_t.
968         (extract_file): Likewise.  Remove test for "negative" file size.
969         * readelf.c (process_program_headers): Check fscanf return.
970
971 2007-01-11  H.J. Lu  <hongjiu.lu@intel.com>
972
973         * bucomm.c (template_in_dir): Fix typo.
974
975 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
976
977         * embedspu.sh: New file.
978         * Makefile.am (embedspu): Add rule.
979         * configure.in (BUILD_MISC): Add embedspu for powerpc-linux.
980         * Makefile.in: Regenerate.
981         * configure: Regenerate.
982
983 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
984
985         * bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
986         * bucomm.c (template_in_dir): New function, split out from..
987         (make_tempname): ..here.  Open the file with O_EXCL if !HAVE_MKSTEMP.
988         (make_tempdir): Use template_in_dir.  Handle directory creation
989         when !HAVE_MKDTEMP.
990         * objcopy.c (MKDIR): Don't define.
991         (copy_archive): Use make_tempdir when !HAVE_MKDTEMP too.  Fix
992         error message.
993
994 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
995
996         * readelf.c (get_machine_flags): Treat Fido as an architecture
997         by itself.
998
999 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
1000
1001         * configure.in: Renamed target x86_64-*-mingw64 to
1002         x86_64-*-mingw*.
1003         * configure: Regenerated.
1004
1005 2007-01-05  Alan Modra  <amodra@bigpond.net.au>
1006
1007         * readelf.c (dump_section): Don't print 32-bit values, which
1008         were done incorrectly for little-endian.  Instead print bytes.
1009
1010 For older changes see ChangeLog-2006
1011 \f
1012 Local Variables:
1013 mode: change-log
1014 left-margin: 8
1015 fill-column: 74
1016 version-control: never
1017 End: