* objcopy.c (strip_main): Detect identical input and output file
[platform/upstream/binutils.git] / binutils / ChangeLog
1 2007-05-18  Nathan Sidwell  <nathan@codesourcery.com>
2
3         * objcopy.c (strip_main): Detect identical input and output file
4         names.
5         (copy_main): Refactor tempname detection and use.
6
7 2007-05-17  Nick Clifton  <nickc@redhat.com>
8
9         * objdump.c (load_debug_section): Select bias for DWARF debug
10         addresses based on the flavour of the bfd.
11
12 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
13
14         PR 4479
15         * objcopy.c (copy_object): Don't copy ELF program headers for
16         --only-keep-debug.
17
18 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
19
20         * embedspu.sh (find_prog): Prefer prog in same dir as embedspu
21         over one found on the users path.
22         (main): Generate .reloc for each R_SPU_PPU* reloc.
23
24 2007-04-28  Alan Modra  <amodra@bigpond.net.au>
25
26         * prdbg.c (tg_variable): Adjust for changed demangler.
27         (tg_start_function): Likewise.
28
29 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
30
31         * bucumm.h: Split off host dependencies to..
32         * sysdep.h: ..here.
33         Many files: Include sysdep.h.  Remove duplicate headers and reorder.
34         * Makefile.am: Run "make dep-am".
35         * Makefile.in: Regenerate.
36
37 2007-04-24  Nick Clifton  <nickc@redhat.com>
38
39         * srconv.c (walk_tree_type_1): Initialise dpt.dunno.
40
41 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
42             Phil Edwards  <phil@codesourcery.com>
43
44         * objcopy.c (filter_symbols): Explicitly stripping a symbol
45         used in relocations is an error.
46         Retype 'keep' to bfd_boolean.
47
48 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
49
50         * Makefile.in: Regenerate.
51         * doc/Makefile.in: Regenerate.
52
53 2007-04-20  Nathan Froyd  <froydnj@codesourcery.com>
54             Phil Edwards  <phil@codesourcery.com>
55             Thomas de Lellis <tdel@windriver.com>
56
57         * objcopy.c (reverse_bytes):  New variable.
58         (command_line_switch, copy_main):  Add OPTION_REVERSE_ENDIAN.
59         (copy_options, copy_usage):  Add "reverse-bytes" entry.
60         (copy_section):  Reverse bytes within output sections.
61         * doc/binutils.texi:  Document new objcopy option.
62
63 2007-04-20  Nick Clifton  <nickc@redhat.com>
64
65         * rclex.l: Allow underscores at the start of identifiers.
66
67 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
68
69         * budemang.c: Delete.
70         * budemang.h: Delete.
71         * addr2line.c (translate_addresses): Call bfd_demangle rather than
72         demangle.
73         * nm.c (print_symname): Likewise.
74         * objdump.c (objdump_print_symname, dump_symbols): Likewise.
75         (dump_bfd): Likewise.
76         * prdbg.c (struct pr_handle <demangler>): Add int param.
77         (tg_variable, tg_start_function): Adjust demangler calls.
78         * Makefile.am: Remove mention of budemang.[ch].  Run "make dep-am".
79         * Makefile.in: Regenerate.
80         * po/POTFILES.in: Regenerate.
81
82 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
83
84         * Makefile.am: Add ACLOCAL_AMFLAGS.
85         * configure.in: Change macro call order.
86         * Makefile.in: Regenerate.
87         * configure: Regenerate.
88
89 2007-04-13  Nathan Sidwell  <nathan@codesourcery.com>
90
91         * Makefile.am (TOOL_PROGS): Add objcopy.
92         * Makefile.in: Rebuilt.
93
94 2007-04-12  H.J. Lu  <hongjiu.lu@intel.com>
95
96         PR binutils/4348
97         * objcopy.c (copy_object): Don't stop when there are no
98         sections to be copied.
99
100 2007-04-10  Vladimir Prus  <vladimir@codesourcery.com>
101
102         * NEWS: Mention disjoint histograms support in
103         gprof.
104
105 2007-04-09  Daniel Jacobowitz  <dan@codesourcery.com>
106
107         * dwarf.c (process_debug_info): Do not require DW_AT_frame_base for
108         DW_TAG_inlined_subroutine.
109
110 2007-04-06  Matt Thomas  <matt@netbsd.org>
111
112         * MAINTAINERS: Add myself as VAX and NetBSD support maintainer.
113
114 2007-04-05  Alan Modra  <amodra@bigpond.net.au>
115
116         PR binutils/4292
117         * nm.c (print_value): Cast bfd_vma to unsigned long to suit
118         value_format_32bit.
119
120 2007-04-02  Nick Clifton  <nickc@redhat.com>
121
122         PR binutils/4292
123         * nm.c (value_format): Replace with value_format_32bit and
124         value_format_64bit.
125         (set_radix): Update setting of value_format.
126         (set_print_width): New function.  Compute the address size of a
127         given bfd and set the print_width global appropriately.
128         (display_archive): Use set_print_width.
129         (display_file): Likewise,
130         (print_object_filename_sysv): Update use of print_width.
131         (print_archive_member_sysv): Likewise.
132         (print_symbol_filename_posix): Likewise.
133         (print_sumbol_info_bfd, print_symbol_info_sysv): Likewise.
134
135 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
136             Phil Edwards  <phil@codesourcery.com>
137
138         * doc/binutils.texi: Put the contents after the title page rather
139         than at the end of the document.
140
141 2007-03-28  Nick Clifton  <nickc@redhat.com>
142
143         * readelf.c (slurp_rela_relocs): Add newline to end of error
144         messages.
145         (slurp_rel_relocs, request_dump, request_dump_byname,
146         process_program_headers, process_dynamic_section,
147         process_symbol_table, process_mips_specific, main): Likewise.
148
149 2007-03-28  Alan Modra  <amodra@bigpond.net.au>
150
151         * MAINTAINERS: Update mailing list addresses.  Add myself
152         as PPC maintainer.
153
154 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
155
156         * embedspu.sh: Correct toe_addr quoting.
157
158 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
159
160         * embedspu.sh: Combine "_EAR_" and "_EAR_*" patterns.  Tighten
161         .toe section and .toe address checks.  Use .reloc for _EAR*
162         symbols defined in non-BSS sections.  Build table for _SPUEAR_
163         symbols.
164
165 2007-03-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
166
167         PR gas/3811
168         * readelf.c (debug_apply_rela_addends): Do nothing for SH.
169
170 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
171
172         * doc/binutils.texi: Include VERSION_PACKAGE when reporting
173         version.
174
175 2007-03-16  Kai Tietz  <Kai.Tietz@onevision.com>
176
177         * dlltool.c (make_one_lib_file): Use pc-relative relocation
178         instead of an absolute relocation for x86_64-pc-mingw32 target.
179
180 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
181
182         * Makefile.am (REPORT_BUGS_TO): Removed.
183         (INCLUDES): Remove -DREPORT_BUGS_TO.
184         * Makefile.in: Regenerated.
185
186         * bucomm.c: Don't include bfdver.h.
187         * objdump.c: Likewise.
188         * version.c: Likewise.
189
190         * bucomm.h: Include bfdver.h.
191
192         * configure.in (--with-bugurl): Removed.
193         * configure: Regenerated.
194
195         * doc/Makefile.am (binutils_TEXINFOS): Removed.
196         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
197         (TEXI2DVI): Likewise.
198         (config.texi): Removed.
199         (MOSTLYCLEANFILES): Remove config.texi.
200         * doc/Makefile.in: Regenerated.
201
202         * doc/binutils.texi: Include bfdver.texi instead of
203         config.texi.
204
205 2007-03-13  Nick Clifton  <nickc@redhat.com>
206
207         * readelf.c (dump_section): Also test for SHT_REL sections when
208         producing the warning about unapplied relocs.
209
210 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
211
212         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
213         bug-reporting URL.
214         * doc/Makefile.am (config.texi): Define BUGURL.
215         * doc/binutils.texi: Use BUGURL.  Remove text about large files
216         and uuencoding.
217         * Makefile.in, configure, doc/Makefile.in: Regenerate.
218
219 2007-03-01  Phil Edwards  <phil@codesourcery.com>
220             Richard Sandiford  <richard@codesourcery.com>
221
222         * NEWS: Mention addition of --extract-symbol.
223         * doc/binutils.texi: Document it.
224         * objcopy.c (extract_symbol): New variable.
225         (OPTION_EXTRACT_SYMBOLS): New command_line_switch.
226         (copy_options): Add an entry for --extract-symbol.
227         (copy_usage): Mention --extract-symbol.
228         (copy_object): Set the start address to zero for --extract-symbol.
229         Do not copy private BFD data in that case.
230         (setup_section): Set the size, LMA and VMA to zero for
231         --extract-symbol.  Do not copy private BFD data in that case.
232         (copy_section): Do not copy section contents if --extract-symbol
233         is passed.
234         (copy_main): Set extract_symbol to TRUE if --extract-symbol
235         is passed.
236
237 2007-03-01  Paul Brook  <paul@codesourcery.com>
238
239         * MAINTAINERS: Update my entry.
240
241 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
242
243         * version.c: Update copyright date.
244
245 2007-03-01  Daniel Jacobowitz  <dan@codesourcery.com>
246
247         * Makefile.am (install-exec-local): Depend on $(noinst_PROGRAMS).
248         Adjust $(EXEEXT) handling for $(RENAMED_PROGS).
249         * Makefile.in, doc/Makefile.in: Regenerate.
250
251 2007-03-01  Alan Modra  <amodra@bigpond.net.au>
252
253         * embedspu.sh: Set type and size of global program handle symbol.
254
255 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
256
257         * Makefile.am (PROGS): Delete.
258         (RENAMED_PROGS): Define.  Extracted from..
259         (noinst_PROGRAMS): ..here.  Add BUILD_MISC.
260         (install-exec-local): Adjust.
261         * Makefile.in: Regenerate.
262
263 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
264
265         * Makefile.am (PROGS): Add BUILD_INSTALL_MISC.
266         (bin_PROGRAMS): Replace BUILD_MISC with BUILD_INSTALL_MISC.
267         (EXTRA_PROGRAMS): Remove bin2c.
268         (bin2c$(EXEEXT_FOR_BUILD)): New rule.
269         (bin2c_SOURCES): Delete.
270         (DISTCLEANFILES): Remove sysinfo.
271         (MOSTLYCLEANFILES): Add sysinfo$(EXEEXT_FOR_BUILD) and
272         bin2c$(EXEEXT_FOR_BUILD).
273         * configure.in (BUILD_MISC): Add $(EXEEXT_FOR_BUILD) to bin2c.
274         Move embedspu to..
275         (BUILD_INSTALL_MISC): ..here.
276         * Makefile.in: Regenerate.
277         * configure: Regenerate.
278
279 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
280
281         * bin2c.c: New file.
282         * Makefile.am (EXTRA_PROGRAMS): Add bin2c.
283         (CFILES): Add bin2c.c.
284         (bin2c_SOURCES): Define.
285         (bin2c.o): Dependencies from "make dep-am".
286         * configure.in (BUILD_MISC): Add bin2c.
287         * version.c: Update year.
288         * po/POTFILES.in: Regenerate.
289         * Makefile.in: Regenerate.
290         * configure: Regenerate.
291
292 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
293             Nathan Sidwell  <nathan@codesourcery.com>
294             Vladimir Prus  <vladimir@codesourcery.com
295             Joseph Myers  <joseph@codesourcery.com>
296
297         * configure.in (--with-bugurl): New option.
298         * configure: Regenerate.
299         * Makefile.am (REPORT_BUGS_TO): Define.
300         (INCLUDES): Define REPORT_BUGS_TO.
301         Regenerate dependencies.
302         * Makefile.in: Regenerate.
303         * doc/Makefile.in: Regenerate.
304         * bucomm.h: Remove include of bin-bugs.h.
305         * addr2line.c (usage): Don't print empty REPORT_BUGS_TO.
306         * ar.c (usage): Pass s to list_supported_targets.  Don't print
307         empty REPORT_BUGS_TO.
308         * coffdump.c (show_usage): Don't print empty REPORT_BUGS_TO.
309         * cxxfilt.c (usage): Print bug url when giving help.
310         * dlltool.c (usage): Likewise.
311         * dllwrap.c (usage): Likewise.
312         * nlmconv.c (show_usage): Don't print empty REPORT_BUGS_TO.
313         * nm.c (usage): Likewise.
314         * objcopy.c (copy_usage, strip_usage): Likewise.
315         * objdump.c (usage): Likewise.
316         * readelf.c ((usage): Likewise. Add STREAM argument.  Adjust
317         callers.
318         * size.c (usage): Don't print empty REPORT_BUGS_TO.
319         * srconv.c (show_usage): Likewise.
320         * strings.c (usage): Likewise.
321         * sysdymp.c (show_usage): Likewise.
322         * windres.c (usage): Likewise.
323
324 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
325
326         * embedspu.sh: Add -W to readelf invocation.
327
328 2007-02-06  Dave Brolley  <brolley@redhat.com>
329
330         * MAINTAINERS: Add myself as the maintainer of the MeP port.
331
332 2007-02-06  Nick Clifton  <nickc@redhat.com>
333
334         PR gas/3800
335         * readelf.c: Include elf/h8.h twice.  The first time in order to
336         get the reloc numbers, the second time in order to get the reloc
337         decoder function.
338         (dump_section): Tell the user if the section being displayed has
339         unprocessed relocs associated with it.
340         (get_reloc_size): New function - returns the size of a reloc.
341         (debug_apply_rela_addends): Use get_reloc_size().
342         * dwarf.c (read_and_display_attr_value): Extend number of
343         languages known for the DW_AT_language attribute.
344         (process_debug_info): Display the attribute offset before decoding
345         the attribute, in case there are problems.
346
347 2007-02-05  Dave Brolley  <brolley@redhat.com>
348
349         * readelf.c (dump_relocations): Don't check for
350         (rtype == NULL && type == R_RELC).
351
352 2007-02-05  Dave Brolley  <brolley@redhat.com>
353
354         * Makefile.am (readelf.o): Depends on $(INCDIR)/elf/mep.h.
355         * Makefile.in: Regenerated.
356         * Contribute the following changes:
357         2003-10-29  Dave Brolley  <brolley@redhat.com>
358
359         * configure.in: Define SKIP_ZEROES and SKIP_ZEROES_AT_END for mep.
360         * configure: Regenerated.
361
362         2001-04-03  Ben Elliston  <bje@redhat.com>
363
364         * readelf.c: Include "elf/mep.h".
365         (guess_is_rela): Handle EM_CYGNUS_MEP.
366         (get_machine_name): Ditto.
367         (dump_relocations): Ditto.
368
369 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
370
371         * MAINTAINERS: Add a space between H.J. and Lu.
372
373 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
374
375         * doc/binutils.texi (objdump): Document the new addr64 option
376         for i386 disassembler.
377
378 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
379
380         PR binutils/3945
381         * configure.in (DLLTOOL_DEFAULT): New. Defined for the first PE
382         target.
383         (DLLTOOL_DEFS): Add $DLLTOOL_DEFAULT.
384         * configure: Regenerated.
385
386         * dlltool.c (mname): Defined with DLLTOOL_DEFAULT_XXX.
387
388 2007-02-02  Nick Clifton  <nickc@redhat.com>
389
390         * doc/binutils.texi (objdump): Document support for disassembling
391         the 440 PowerPC architecture.
392
393 2007-01-31  Nathan Sidwell  <nathan@codesourcery.com>
394
395         * dwarf.c (process_debug_info): Protect against bogus length and
396         abbrev offsets.
397
398 2007-01-25  Kazu Hirata  <kazu@codesourcery.com>
399
400         * ar.c (print_contents, extract_file): Cast the return value
401         of fwrite to size_t.
402
403 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
404
405         * ar.c (open_inarch): Check fwrite return.  Use size_t.
406         (extract_file): Likewise.  Remove test for "negative" file size.
407         * readelf.c (process_program_headers): Check fscanf return.
408
409 2007-01-11  H.J. Lu  <hongjiu.lu@intel.com>
410
411         * bucomm.c (template_in_dir): Fix typo.
412
413 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
414
415         * embedspu.sh: New file.
416         * Makefile.am (embedspu): Add rule.
417         * configure.in (BUILD_MISC): Add embedspu for powerpc-linux.
418         * Makefile.in: Regenerate.
419         * configure: Regenerate.
420
421 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
422
423         * bucomm.h (make_tempdir): Declare independently of HAVE_MKDTEMP.
424         * bucomm.c (template_in_dir): New function, split out from..
425         (make_tempname): ..here.  Open the file with O_EXCL if !HAVE_MKSTEMP.
426         (make_tempdir): Use template_in_dir.  Handle directory creation
427         when !HAVE_MKDTEMP.
428         * objcopy.c (MKDIR): Don't define.
429         (copy_archive): Use make_tempdir when !HAVE_MKDTEMP too.  Fix
430         error message.
431
432 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
433
434         * readelf.c (get_machine_flags): Treat Fido as an architecture
435         by itself.
436
437 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
438
439         * configure.in: Renamed target x86_64-*-mingw64 to
440         x86_64-*-mingw*.
441         * configure: Regenerated.
442
443 2007-01-05  Alan Modra  <amodra@bigpond.net.au>
444
445         * readelf.c (dump_section): Don't print 32-bit values, which
446         were done incorrectly for little-endian.  Instead print bytes.
447
448 For older changes see ChangeLog-2006
449 \f
450 Local Variables:
451 mode: change-log
452 left-margin: 8
453 fill-column: 74
454 version-control: never
455 End: