* Makefile.am (EXPECT): Set to expect.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2005-06-30 Ben Elliston <bje@gnu.org>
2
3 * Makefile.am (EXPECT): Set to expect.
4 (RUNTEST): Likewise, set to runtest.
5 * Makefile.in: Regenerate.
6
7 2005-06-17 Jakub Jelinek <jakub@redhat.com>
8
9 * readelf.c (CHECK_ENTSIZE_VALUES, CHECK_ENTSIZE): Define.
10 (process_section_headers): Use it.
11 (process_relocs): Don't crash if symsec is not SHT_SYMTAB
12 or SHT_DYNSYM.
13 (process_version_sections): Use sizeof (Elf_External_Versym)
14 instead of sh_entsize.
15
16 2005-06-16 Nick Clifton <nickc@redhat.com>
17
18 * rename.c (simple_copy): Only define if it is going to be used.
19 (smart_rename): Mark the preserve_dates parameter as possibly
20 being unused.
21
22 * resres.c (write_res_data): Prevent a potential compile time
23 warning by casting the return value from fwrite.
24
25 2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
26
27 PR 995
28 * ar.c (BUFSIZE): Moved to ...
29 * bucomm.h (BUFSIZE): Here.
30
31 * bucomm.c: Include <assert.h>.
32 (bfd_get_archive_filename): New.
33 * bucomm.h (bfd_get_archive_filename): New.
34
35 * objcopy.c (copy_unknown_object): New.
36 (copy_object): Use bfd_get_archive_filename when reporting input
37 error. Don't call fatal on unknown arch.
38 (copy_archive): Call copy_unknown_object on unknown format or
39 arch.
40
41 2005-06-14 Jakub Jelinek <jakub@redhat.com>
42
43 * readelf.c (cmalloc, xcmalloc, xcrealloc): New functions.
44 (get_data): Add nmemb argument. Return NULL if nmemb * size
45 overflows. If var == NULL, allocate one extra byte and
46 clear it.
47 (slurp_rela_relocs, slurp_rel_relocs, get_32bit_program_headers,
48 get_64bit_program_headers, get_program_headers,
49 get_32bit_section_headers, get_64bit_section_headers,
50 get_32bit_elf_symbols, get_64bit_elf_symbols, process_section_headers,
51 process_section_groups, process_relocs, slurp_ia64_unwind_table,
52 ia64_process_unwind, slurp_hppa_unwind_table, hppa_process_unwind,
53 get_32bit_dynamic_section, get_64bit_dynamic_section,
54 process_dynamic_section, process_version_sections, get_dynamic_data,
55 process_symbol_table, dump_section, load_debug_str, load_debug_loc,
56 load_debug_range, read_and_display_attr_value, process_debug_info,
57 get_debug_info, frame_need_space, display_debug_frames,
58 display_debug_section, process_mips_specific, process_gnu_liblist,
59 process_corefile_note_segment): Adjust get_data callers. Use
60 cmalloc, xcmalloc and xcrealloc instead of {m,xm,xre}alloc where
61 passed size is a product of 2 numbers.
62
63 * readelf.c (print_mode): Fix comment typo.
64 (slurp_rela_relocs, slurp_rel_relocs): Fix memory leaks.
65 (dump_relocations): Fix a thinko in check for invalid st_name.
66 (process_program_headers): Don't crash if string_table is NULL.
67 (process_section_headers): Don't crash if e_shstrndx is invalid.
68 Ensure string_table_length is 0 if string_table == NULL.
69 Don't return just because string_table is NULL.
70 (process_section_groups): Don't crash if symtab's sh_link or
71 symbol's st_name is invalid. Fix a memory leak. Fix check for
72 invalid section number entry.
73 (process_relocs): Don't crash if relocation or symbol section's
74 sh_link is invalid.
75 (slurp_ia64_unwind_table, slurp_hppa_unwind_table): Don't crash if
76 relocation section's sh_info is invalid.
77 (ia64_process_unwind, hppa_process_unwind): Don't crash if symbol
78 table's sh_link is invalid.
79 (process_version_sections): Don't crash on version or symbol
80 section's sh_link is invalid. Don't crash if symbol's st_shndx
81 is invalid.
82 (process_symbol_table): Don't crash if string table is corrupt
83 or symbol's st_name, st_shndx, vna_name or vda_name is invalid.
84 (debug_apply_rela_addends): Don't crash if relocation section's
85 sh_info or sh_link is invalid.
86 (display_debug_loc): Warn for unterminated .debug_loc section
87 or start offsets not within .debug_loc section boundaries.
88 (process_gnu_liblist): Don't crash if liblist section's sh_link
89 or entry's l_name is invalid.
90
91 2005-06-09 Jakub Jelinek <jakub@redhat.com>
92
93 * objdump.c (disassemble_bytes): Don't crash if q->howto == NULL.
94 If q->howto->name == NULL, print q->howto->type as number instead.
95 (dump_reloc_set): Likewise.
96
97 2005-06-07 Eric Christopher <echristo@redhat.com>
98
99 * readelf.c (guess_is_rela): Support ms1.
100 (dump_relocations): Ditto.
101 (get_machine_name): Ditto.
102
103 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
104 Michael Snyder <msnyder@redhat.com>
105 Stan Cox <scox@redhat.com>
106
107 * Makefile.am (readelf.o): Depend on ms1.h.
108
109 * Makefile.in: Regenerate.
110
111 * readelf.c: Include ms1.h.
112
113 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
114
115 PR 990
116 * nm.c (print_symbol): Call bfd_find_line before
117 bfd_find_nearest_line.
118
119 2005-06-06 Alan Modra <amodra@bigpond.net.au>
120
121 * NEWS: Mention new powerpc ld support.
122
123 2005-06-03 Steve Ellcey <sje@cup.hp.com>
124
125 * configure.in: Check for getc_unlocked prototype.
126 * configure: Regenerate.
127 * config.in: Regenerate.
128 * strings.c (get_char): Only call getc_unlocked if we have seen a
129 prototype.
130
131 2005-06-03 Nick Clifton <nickc@redhat.com>
132
133 * configure.in (ALL_LINGUAS): Add zh_TW
134 * configure: Regenerate.
135 * po/zh_TW.po: New Chinese (traditional) translation.
136
137 2005-05-31 Richard Henderson <rth@redhat.com>
138
139 * readelf.c (dump_relocations): Special case R_ALPHA_LITUSE.
140
141 2005-05-29 Richard Henderson <rth@redhat.com>
142
143 * readelf.c (get_alpha_dynamic_type): New.
144 (get_dynamic_type): Call it.
145
146 2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
147
148 * readelf.c (process_section_groups): Report group section
149 index. Check if the section member index is valid.
150
151 2005-05-23 Fred Fish <fnf@specifixinc.com>
152
153 * addr2line.c (unwind_inlines): New flag for 'i' option.
154 (usage): Document '-i' option.
155 (long_options): Recognize '--inlines'.
156 (translate_addresses): Loop, calling bfd_find_inliner_info as
157 necessary and printing multiple output lines.
158 (main): Handle 'i' option.
159 * doc/binutils.texi (addr2line): Document '-i' option.
160 * NEWS: Mention new addr2line '-i' option.
161
162 2005-05-23 Nick Clifton <nickc@redhat.com>
163
164 * readelf.c (fetch_indirect_string): Display a warning message
165 when a corrupt DW_FORM_strp value is encountered.
166
167 (process_debug_info): Mention that the compilation unit offset is
168 being displayed in hexadecimal.
169
170 (display_debug_lines): Fix typo in name of .debug_line section.
171
172 2005-05-19 Zack Weinberg <zack@codesourcery.com>
173
174 * Makefile.am: Have 'all' depend on 'info'.
175 * Makefile.in: Regenerate.
176
177 2005-05-19 Ben Elliston <bje@au.ibm.com>
178
179 * readelf.c (read_and_display_attr_value): Handle a DW_AT_encoding
180 value of DW_ATE_GNU_decimal_float.
181
182 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
183
184 * doc/Makefile.am (config.texi): Don't use $<.
185 * doc/Makefile.in: Regenerated.
186
187 2005-05-15 Yitzchak Scott-Thoennes <sthoenna@efn.org>
188
189 * deflex.l: Ignore CRs
190
191 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
192
193 * acinclude.m4: Remove obsolete code.
194 * configure.in: Update AC_PREREQ.
195 * doc/Makefile.am (binutils_TEXINFOS): Define.
196 (config.texi): Depend on distributed files instead of built
197 files.
198 (binutils.dvi, binutils.info): Remove unnecessary rules.
199 (DISTCLEANFILES): Remove.
200 (install-data-local): Renamed from install.
201 (info-local): Renamed from info.
202 * Makefile.in, aclocal.m4, config.in, configure,
203 doc/Makefile.in: Regenerated.
204
205 2005-05-14 Alan Modra <amodra@bigpond.net.au>
206
207 * readelf.c (get_ppc_dynamic_type): Display DT_PPC_GOT, not
208 DT_PPC_GLINK.
209
210 2005-05-13 Fred Fish <fnf@specifixinc.com>
211
212 * readelf.c: Fix a couple of obvious comment typos,
213 'debug_str' -> 'debug_ranges' and proecess' -> 'process'.
214
215 2005-05-13 H.J. Lu <hongjiu.lu@intel.com>
216
217 * readelf.c (dump_ia64_unwind): Get stamp with proper size.
218
219 2005-05-12 Nick Clifton <nickc@redhat.com>
220
221 * readelf.c (display_debug_lines): If pointer_size has not been
222 found then assume that it is 4 in order to prevent a seg fault
223 when process_extend_line_op attempts to read the line data.
224
225 2005-05-11 Alan Modra <amodra@bigpond.net.au>
226
227 * readelf.c (get_ppc_dynamic_type): New function for DT_PPC_GLINK.
228 (get_dynamic_type): Call the above.
229
230 2005-05-07 Nick Clifton <nickc@redhat.com>
231
232 * Update the address and phone number of the FSF organization in
233 the GPL notices in the following files:
234 aclocal.m4, addr2line.c, ar.c, arlex.l, arparse.y, arsup.c,
235 arsup.h, binemul.c, binemul.h, bucomm.c, bucomm.h, budbg.h,
236 budemang.c, budemang.h, coffdump.c, coffgrok.c, coffgrok.h,
237 cxxfilt.c, debug.c, debug.h, deflex.l, defparse.y, dlltool.c,
238 dlltool.h, dllwrap.c, emul_aix.c, emul_vanilla.c, filemode.c,
239 ieee.c, nlmconv.c, nlmconv.h, nlmheader.y, nm.c, objcopy.c,
240 objdump.c, prdbg.c, rclex.l, rcparse.y, rdcoff.c, rddbg.c,
241 readelf.c, rename.c, resbin.c, rescoff.c, resrc.c, resres.c,
242 size.c, srconv.c, stabs.c, strings.c, sysdump.c, sysinfo.y,
243 syslex.l, unwind-ia64.c, unwind-ia64.h, version.c, windres.c,
244 windres.h, winduni.c, winduni.h wrstabs.c, doc/fdl.texi
245
246 2005-05-06 Jan Beulich <jbeulich@novell.com>
247
248 * objcopy.c (copy_file): Don't delete output upon error here.
249 (copy_main): Delete output upon error.
250
251 2005-05-02 Ben Elliston <bje@au.ibm.com>
252
253 * dlltool.c (dtab): Remove empty function.
254 (process_duplicates): Remove calls to dtab().
255
256 2005-05-01 Maciej W. Rozycki <macro@linux-mips.org>
257
258 * doc/binutils.texi (strip, objcopy): Clarify the description of
259 the "--strip-debug" option. Fix a typo.
260
261 2005-04-29 H.J. Lu <hongjiu.lu@intel.com>
262
263 * bucomm.c: Undo the last change.
264 * bucomm.h: Likewise.
265
266 2005-04-29 Ben Elliston <bje@au.ibm.com>
267
268 * syslex.l (word, number, unit): Remove unused variables.
269 * nlmheader.y (keyword_tokens): Make static.
270 * coffdump.c (dump_coff_symbol, coff_dump): Make static.
271 * coffgrok.c (lofile, last_function_symbol, last_function_type,
272 last_struct, last_enum, cur_sfile): Make variables static.
273 * sysdump.c (getCHARS, fillup, getBARRAY, getINT, getBITS,
274 sysroff_swap_tr_in, sysroff_print_tr_out): Make static.
275 * sysinfo.y (writecode, it, code, repeat, oldrepeat, name, rdepth,
276 names, pnames): Likewise.
277
278 2005-04-29 Ben Elliston <bje@au.ibm.com>
279
280 * ar.c (mri_mode): Make static.
281 * arsup.c (obfd, real_name, outfile): Likewise.
282 * binemul.c (ar_emul_create): Remove unused function.
283 (ar_emul_default_create): Likewise.
284 * binemul.h (ar_emul_create): Remove declaration.
285 (ar_emul_default_create): Likewise.
286 (struct bin_emulation_xfer_struct): Remove ar_create member.
287 * bucomm.c (report): Make static.
288 * bucomm.h (report): Remove declaration.
289 * cxxfilt.c (mbuffer): Make static.
290 (main): Use unsigned ints for some loop control variables.
291 * readelf.c: Make many global variables static.
292 * size.c (berkeley_format): Make static.
293 (long_options): Likewise.
294 * emul_aix.c (bin_aix_emulation): Remove ar_emul_default_create
295 structure initialiser.
296 (bin_aix5_emulation): Likewise.
297 * emul_vanilla.c (bin_vanilla_emulation): Likewise.
298
299 2005-04-27 Ben Elliston <bje@au.ibm.com>
300
301 * syslex.l: Adjust top-of-file comment: this file is part of GNU
302 binutils, not GNU ld.
303
304 2005-04-25 Nick Clifton <nickc@redhat.com>
305
306 PR872
307 * objcopy.c (copy_archive): Initialise 'obfd' field of new
308 name_list structure.
309
310 * objcopy.c (copy_usage): Fix description of -K switch.
311
312 * doc/binutils.texi (strip, objcopy): Fix description of -K
313 switch.
314
315 2005-04-20 Daniel Jacobowitz <dan@codesourcery.com>
316
317 * readelf.c (display_debug_frames): Use data factor for
318 DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
319
320 2005-04-19 H.J. Lu <hongjiu.lu@intel.com>
321
322 * objdump.c (dump_section_header): Skip linker created section.
323
324 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
325
326 * objdump.c (dump_section_header): Support SEC_GROUP.
327
328 2005-04-16 Nick Clifton <nickc@redhat.com>
329
330 * readelf.c (debug_apply_rela_addends): Remove redundant %s from
331 printf string.
332
333 2005-04-15 Nick Clifton <nickc@redhat.com>
334
335 * objcopy.c (copy_file): Issue an error message when attmepting to
336 copy an empty input file.
337
338 2005-04-14 Alan Modra <amodra@bigpond.net.au>
339
340 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
341 * configure.in: Include ../bfd/warning.m4 contents.
342 * Makefile.in: Regenerate.
343 * configure: Regenerate.
344 * doc/Makefile.in: Regenerate.
345
346 2005-04-12 Alan Modra <amodra@bigpond.net.au>
347
348 * Makefile.am: Run "make dep-am".
349 (syslex.o, sysinfo.o, arparse.o, arlex.o): Add -Wno-error to command.
350 (sysroff.o, defparse.o, deflex.o): Likewise.
351 (nlmheader.o, rcparse.o, rclex.o): Likewise.
352 * Makefile.in: Regenerate.
353 * aclocal.m4: Regenerate.
354 * config.in: Regenerate.
355 * configure: Regenerate.
356
357 2005-04-11 Jan Beulich <jbeulich@novell.com>
358
359 * MAINTAINERS: Add myself as ix86 Intel mode maintainer.
360
361 2005-04-06 Nick Clifton <nickc@redhat.com>
362 H.J. Lu <hongjiu.lu@intel.com>
363
364 * po/rw.po: New translation: Kinyarwanda.
365 * configure.in (ALL_LINGUAS): Add rw.
366 * configure: Regenerate.
367
368 2005-04-04 Maciej W. Rozycki <macro@linux-mips.org>
369
370 * readelf.c (debug_apply_rela_addends): Reorder r_info as
371 necessary for 64-bit MIPS.
372
373 2005-04-04 Maciej W. Rozycki <macro@linux-mips.org>
374
375 * doc/binutils.texi (readelf): Remove a duplicate paragraph.
376
377 2005-04-04 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
378
379 PR binutils/813
380 * objdump.c (dump_symbols): Add a check to see if the section for
381 the symbol is chosen using process_section_p.
382
383 2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
384
385 * NEWS: Mention new readelf options, "-N/--full-section-name"
386 and "-g/--section-groups".
387
388 * doc/binutils.texi: Document new readelf options,
389 "-N/--full-section-name" and "-g/--section-groups".
390
391 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
392
393 * readelf.c (do_full_section_name): New.
394 (options): Add "--full-section-name"/'N'.
395 (usage): Add -N/--full-section-name.
396 (parse_args): Handle 'N'.
397 (process_section_headers): Print out the full section name if
398 do_full_section_name isn't 0.
399
400 2005-03-31 Nick Clifton <nickc@redhat.com>
401
402 * configure.in: Add a check for <unistd.h> providing a prototype
403 for getopt() which is compatible with the one in
404 include/getopt.h. If so then define HAVE_DECL_GETOPT.
405 * configure: Regenerate.
406 * config.in (HAVE_DECL_GETOPT): Add.
407 * aclocal.m4: Regenerate.
408 * addr2line.c: Include "config.h" before "bfd.h" so that
409 HAVE_DECL_GETOPT is defined before getopt.h is included.
410
411 2005-03-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
412
413 * doc/binutils.texi: Document new VAX disassembler-specific option
414 -M entry:0xfooba8.
415 * NEWS: Mention the new option.
416
417 2005-03-29 Anil Paranjpe <anilp1@kpitcummins.com>
418
419 * MAINTAINERS: Add myself as H8300 maintainer.
420
421 2005-03-28 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
422
423 * objdump.c (disassemble_bytes): Remove cast.
424
425 2005-03-25 Daniel Jacobowitz <dan@codesourcery.com>
426
427 * BRANCHES: Add binutils-csl-arm-2005q1-branch and
428 binutils-2_16-branch.
429
430 2005-03-25 Mark Kettenis <kettenis@gnu.org>
431
432 * MAINTAINERS: Add myself as M88k maintainer.
433
434 2005-03-24 Danny Smith <dannysmith@users.sourceforge.net>
435
436 * winduni.c (unicode_from_ascii): Don't declare variables
437 's' and 'w' if _WIN32. Use MultiByteToWideChar to set the unicode
438 string len.
439
440 2005-03-24 Dmitry Diky <diwil@spec.ru>
441
442 * MAINTAINERS: Add myself as MSP430 maintainer.
443
444 2005-03-23 Nick Clifton <nickc@redhat.com>
445
446 * po/fr.po: Updated translation.
447
448 2005-03-22 Nick Clifton <nickc@redhat.com>
449
450 * MAINTAINERS: Add Daniel Jacobwitz to the blanket write
451 privileges list.
452
453 2005-03-17 Paul Brook <paul@codesourcery.com>
454 Dan Jacobowitz <dan@codesourcery.com>
455 Mark Mitchell <mark@codesourcery.com>
456
457 * binutils/readelf.c (get_arm_segment_type): New function.
458 (get_segment_type): Use it.
459
460 2005-03-18 Paul Brook <paul@codesourcery.com>
461
462 * objdump.c (objdump_print_addr): Avoid uninitialized warning.
463
464 2005-03-17 Diego Novillo <dnovillo@redhat.com>
465
466 * MAINTAINERS: Remove self as maintainer of x86 intel
467 mode.
468
469 2005-03-16 Nick Clifton <nickc@redhat.com>
470 Ben Elliston <bje@au.ibm.com>
471
472 * configure.in (werror): New switch: Add -Werror to the
473 compiler command line. Enabled by default. Disable via
474 --disable-werror.
475 * configure: Regenerate.
476
477 2005-03-15 Daniel Marques <marques@cs.cornell.edu>
478 Nick Clifton <nickc@redhat.com>
479
480 * objcopy.c (globalize_specific_list): New linked list of symbols
481 to convert from local binding into global binding.
482 (command_line_switch): Add OPTION_GLOBALIZE_SYMBOL and
483 OPTION_GLOBALIZE_SYMBOLS.
484 (copy_options): Add "globalize-symbol" and "globalize-symbols".
485 (copy_usage): Document the new switches.
486 (filter_symbols): Convert defined local symbols mentioned on the
487 globalize_specific_list into global symbols.
488 (copy_object): Perform actions if the globalize_specific_list is
489 not empty.
490 (copy_main): Handle new switches.
491 * NEWS: Mention new feature.
492 * doc/binutils.texi: Document new switches.
493
494 2005-03-15 Alan Modra <amodra@bigpond.net.au>
495
496 * po/es.po: Commit new Spanish translation.
497
498 * po/fr.po: Commit new French translation.
499
500 2005-03-14 Alan Modra <amodra@bigpond.net.au>
501
502 * po/tr.po: Commit new Turkish translation.
503
504 2005-03-11 Nick Clifton <nickc@redhat.com>
505
506 * po/fr.po: Updated French translation.
507
508 2005-03-10 Nick Clifton <nickc@redhat.com>
509
510 * configure.in (ALL_LINGUAS): Add Romanian lingua "ro".
511 * configure: Regenerate.
512 * po/ro.po: New file.
513
514 * po/ru.po: Updated file.
515
516 2005-03-05 Alan Modra <amodra@bigpond.net.au>
517
518 * po/binutils.pot: Regenerate.
519
520 2005-03-02 Jan Beulich <jbeulich@novell.com>
521
522 * ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
523 * objcopy.c (copy_file): Likewise.
524 (strip_main): Likewise.
525
526 2005-03-01 Stig Petter Olsroed <stigpo@users.sourceforge.net>
527 Nick Clifton <nickc@redhat.com>
528
529 * objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
530 (struct objdump_disasm_info): Add 'reloc' field.
531 (disassemble_bytes): Fix check for when an insn has a reloc
532 associated with it. Improve comment explaining why the use of
533 octets is wrong. Set the 'reloc' field in objdump_disasm_info
534 structure.
535 (objdump_print_addr): Use new 'reloc' field to lookup the correct
536 address for the symbol associated with the current instruction's
537 relocation.
538 (disassemble_info): Initialise 'reloc' field.
539
540 2005-02-28 Jakub Jelinek <jakub@redhat.com>
541
542 * readelf.c (get_file_type, get_machine_name, get_osabi_name,
543 get_segment_type, get_section_type_name, get_elf_class,
544 get_data_encoding, get_group_flags, dynamic_section_mips_val,
545 get_symbol_binding, get_symbol_type, get_TAG_name, get_FORM_name,
546 get_AT_name, process_mips_specific, process_gnu_liblist,
547 get_note_type, get_netbsd_elfcore_note_type): Use snprintf instead of
548 sprintf where needed.
549 (get_dynamic_type): Likewise. Increase buff to 64 bytes.
550 (get_elf_section_flags): Increase buff to 33 bytes. Avoid
551 using strcat.
552 (get_dynamic_flags): Renamed to...
553 (print_dynamic_flags): ... this. Print the flags to stdout instead
554 of returning them as string.
555 (process_dynamic_section): Adjust caller.
556
557 2005-02-25 H.J. Lu <hongjiu.lu@intel.com>
558
559 * readelf.c (display_debug_ranges): Print out offset for end of
560 list.
561
562 2005-02-23 Alan Modra <amodra@bigpond.net.au>
563
564 * dlltool.c: Warning fixes.
565 * objdump.c: Likewise.
566
567 2005-02-22 Alan Modra <amodra@bigpond.net.au>
568
569 * Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
570 (syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate
571 dependencies. Run "make dep-am".
572 * nlmconv.c: Warning fixes.
573 * readelf.c: Likewise.
574 * srconv.c: Likewise.
575 * sysdump.c: Likewise.
576 * sysinfo.y: Likewise.
577 * syslex.l: Likewise. Use yyleng instead of strlen, memcpy instead
578 of strcpy.
579 * Makefile.in: Regenerate.
580
581 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
582
583 * objcopy.c (parse_flags): Replace SEC_SHARED with
584 SEC_COFF_SHARED.
585
586 * objdump.c (dump_section_header): Dump SEC_TIC54X_BLOCK and
587 SEC_TIC54X_CLINK for TI c54x only. Remove SEC_ARCH_BIT_0. Dump
588 SEC_COFF_SHARED for COFF only.
589
590 2005-02-21 Alan Modra <amodra@bigpond.net.au>
591
592 * Makefile.am: Run "make dep-am"
593 * Makefile.in: Regenerate.
594 * doc/Makefile.in: Regenerate.
595
596 2005-02-21 Alan Modra <amodra@bigpond.net.au>
597
598 * readelf.c (BYTE_GET8): Delete. Replace uses with BYTE_GET.
599 (byte_get_little_endian): Don't handle size of -8.
600 (byte_get_signed, byte_get_big_endian): Likewise.
601 (print_dec_vma, print_hex_vma): New functions.
602 (print_vma): Use them. Return chars output.
603 (get_dynamic_data): Return a bfd_vma array. Add ent_size parm.
604 (process_symbol_table): Handle alpha and s390 .hash.
605
606 2005-02-18 H.J. Lu <hongjiu.lu@intel.com>
607
608 * readelf.c (display_debug_loc): Print out offset for end of
609 list.
610
611 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
612
613 * Makefile.am (TOOL_PROGS): Add objdump.
614 * Makefile.in: Regenerate.
615
616 2005-02-17 Alan Modra <amodra@bigpond.net.au>
617
618 * deflex.l (YY_NO_UNPUT): Define.
619 * rclex.l (YY_NO_UNPUT): Define.
620 * rcparse.y (null_unichar): New static var.
621 (res_null_text): Use it rather than attempting to init from wchar_t.
622 * windres.c: Include assert.h and time.h before getopt.h.
623 Include config.h and unistd.h too.
624
625 2005-02-15 Nick Clifton <nickc@redhat.com>
626
627 * nlmconv.c: Provide a full prototype for the localtime() function
628 in order to avoid a compile time warning.
629
630 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
631
632 * readelf.c (group_count): Don't initialize it.
633 (process_section_groups): Reurn 1 if we won't do unwind nor
634 section groups. Set group_count to 0 before counting group
635 sections and return 1 if there are no group sections. Reread
636 SHT_SYMTAB/SHT_STRTAB sections only when needed. Don't skip
637 section 0.
638 (process_object): Only set do_unwind to 0 if
639 process_section_groups return 0.
640
641 2005-02-10 Ian Lance Taylor <ian@airs.com>
642
643 * MAINTAINERS: Update my e-mail address.
644
645 2005-02-10 Mark Mitchell <mark@codesourcery.com>
646
647 * MAINTAINERS: Add Paul Brook and Mark Mitchell as ARM (Symbian)
648 maintainers.
649
650 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
651
652 * MAINTAINERS: Add self as maintainer of MAXQ.
653
654 2005-01-31 Richard Sandiford <rsandifo@redhat.com>
655
656 * readelf.c (eh_addr_size): New variable.
657 (find_section): Move earlier in file. Return empty sections too.
658 (process_program_headers): Use find_section to find .dynamic.
659 (process_section_headers): Initialize eh_addr_size.
660 (dump_ia64_unwind, slurp_ia64_unwind_table, ia64_process_unwind)
661 (dump_hppa_unwind, slurp_hppa_unwind_table, hppa_process_unwind)
662 (display_debug_frames): Use it instead of local addr_size variable.
663 (size_of_encoded_value): Get pointer size from eh_addr_size rather
664 than is_32bit_elf.
665
666 2005-01-31 Andrew Cagney <cagney@gnu.org>
667
668 * configure: Regenerate to track ../gettext.m4.
669
670 2005-01-31 Nick Clifton <nickc@redhat.com>
671
672 * version.c (print_version): Bump the copyright date to 2005.
673
674 2005-01-25 Alan Modra <amodra@bigpond.net.au>
675
676 * nm.c (display_rel_file): Read dynamic syms before calling
677 bfd_get_synthetic_symtab.
678
679 2005-01-21 Ben Elliston <bje@au.ibm.com>
680
681 * dlltool.c (dump_iat): Remove unused function.
682 (gen_exp_file): Remove #if 0'd code.
683 (make_one_lib_file): Likewise.
684 * srconv.c: Remove #if 0'd code throughout.
685 * size.c (lprint_number): Remove.
686 (print_berkeley_format): Remove #if 0'd code.
687 * ar.c (do_quick_append): Remove declaration and definiton.
688 (main): Remove #if 0'd code.
689 * filemode.c (filemodestring): Remove #if 0'd function.
690 * sysdump.c (unit_info_list): Remove function.
691 (object_body_list): Likewise.
692 (program_structure): Likewise.
693 (debug_list): Likewise.
694 (module): Remove #if 0'd code.
695
696 2005-01-20 Mark Mitchell <mark@codesourcery.com>
697
698 * BRANCHES: Add binutils-2_15-branch.
699
700 * MAINTAINERS: Document branch policy.
701 * BRANCHES: New file.
702
703 2005-01-19 Fred Fish <fnf@specifixinc.com>
704
705 * NEWS: Make note of the new MIPS disassembly option "no-aliases".
706 * doc/binutils.texi (objdump): Document the "no-aliases"
707 disassembly option.
708
709 2005-01-17 Eugene Kotlyarov <ekot@narod.ru>
710
711 PR binutils/647
712 * rcparse.y (RCDATA): Allow a filename to be supplied as the
713 parameter. Parse it with define_rcdata_file().
714 * resrc.c (define_rcdata_file): New function.
715 * windres.h: Provide a prototype for the new function.
716
717 * resrc.c (define_user_file): Fix typo by replacing "font file"
718 with "file".
719
720 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
721
722 * MAINTAINERS: Update my email address.
723
724 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
725
726 * dlltool.c (set_dll_name_from_def): New function. Strip name
727 to basename, with warning.
728 (def_name): Use it.
729 (def_library): Likwise.
730 (main): Strip arg of --dllname to basename, with warning.
731 Only use basename of exp_name when inferring dll_name.
732
733 2005-01-11 Nick Clifton <nickc@redhat.com>
734
735 PR binutils/637
736 * doc/binutils.texi (c++filt): Use uppercase CXXFILT in the
737 footnote in order to prevent the sed script in the Makefile from
738 converting it into c++filt.
739
740 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
741
742 BZ 635
743 readelf.c (saved_base_address): Removed.
744 (decode_64bit_range): Likewise.
745 (decode_range): Likewise.
746 (display_64bit_debug_ranges): Likewise.
747 (debug_info): Add range_lists, num_range_lists and
748 max_range_lists.
749 (read_and_display_attr_value): Handle do_debug_ranges.
750 (process_debug_info): Likewise.
751 (display_debug_ranges): Rewrite.
752 (process_object): Free range_lists.
753
754 2005-01-10 Andreas Schwab <schwab@suse.de>
755
756 * configure.in: Don't define SKIP_ZEROES.
757 * configure: Regenerate.
758 * objdump.c (disassemble_data): Set skip_zeroes and
759 skip_zeroes_at_end in disasm_info to defaults.
760 (DEFAULT_SKIP_ZEROES): Rename from SKIP_ZEROES and always define.
761 (DEFAULT_SKIP_ZEROES_AT_END): Rename from SKIP_ZEROES_AT_END and
762 always define.
763 (disassemble_bytes): Use skip_zeroes and skip_zeroes_at_end from
764 objdump_disasm_info.
765
766 2005-01-05 H.J. Lu <hongjiu.lu@intel.com>
767
768 * readelf.c (display_debug_loc): Display base address
769 specifiers. Always output <End of list>.
770
771 2005-01-05 H.J. Lu <hongjiu.lu@intel.com>
772
773 * readelf.c (have_frame_base): New.
774 (need_base_address): Likewise.
775 (saved_base_address): Likewise.
776 (decode_location_expression): Return 1 if DW_AT_frame_base is
777 needed.
778 (debug_info): Add base_address and a have_frame_base pointer.
779 (read_and_display_attr_value): Replace saved_DW_AT_low_pc with
780 saved_base_address. Record base address. Set have_frame_base.
781 Record if a location list has DW_AT_frame_base. Display if a
782 location expression has no DW_AT_frame_base but needs one. Set
783 saved_base_address only if needed.
784 (process_debug_info): Clear have_frame_base, saved_base_address
785 and set need_base_address.
786 (display_debug_loc): Display if a location expression has no
787 DW_AT_frame_base but needs one. Display if start >= end. Don't
788 adjust for section address. Properly handle base address.
789 (process_object): Free the have_frame_base pointer in
790 debug_info.
791
792 2005-01-04 H.J. Lu <hongjiu.lu@intel.com>
793
794 * readelf.c (display_debug_loc): Display offsets for hole and
795 overlap.
796 (display_debug_str): Add a newline at the end.
797
798 2005-01-04 Armin Diehl <diehl@nordrhein.de>
799
800 PR binutils/630
801 * nlmconv.c (main): Only store the basename of the output filename
802 in the module table.
803
804 2005-01-04 H.J. Lu <hongjiu.lu@intel.com>
805
806 BZ 615
807 * readelf.c (process_debug_info): New.
808 (debug_info): Add num_loc_offsets, loc_offsets and
809 last_loc_offset_p.
810 (get_debug_info): Use process_debug_info.
811 (display_debug_loc): Properly handle location list. Warn if bad
812 location lists are encoutnered.
813 (read_and_process_attr_value): New.
814 (read_and_display_attr_value): Use "%lx" for DW_FORM_data4.
815 (display_debug_info): Use process_debug_info.
816 (process_object): Also free loc_offsets in debug_information.
817
818 2004-12-31 Alan Modra <amodra@bigpond.net.au>
819
820 * objdump.c (remove_useless_symbols): Discard section symbols.
821
822 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
823
824 * readelf.c (read_leb128): Support 64bit host.
825
826 2004-12-23 Nick Clifton <nickc@redhat.com>
827
828 PR binutils/616
829 * readelf.c (debug_info): Add 'cu_offset' field.
830 (get+pointer_size_of_comp_unit): Rename to
831 'get_pointer_size_and_offset_of_comp_unit'. Add code to return
832 the offset of the comp_unit if requested.
833 (get_debug_info): Record comp_unit offsets as well.
834 (display_debug_lines): Call get_pointer_size_of_comp_unit.
835 (decode_location_expression): Add an extra parameter - the offset
836 of the current comp-unit. Use this when decoding the DW_OP_call2
837 and DW_OP_call4 operators.
838 (display_debug_loc): Call get_pointer_size_of_comp_unit, pass the
839 comp_unit offset on the decode_location_expression.
840 (read_and_display_attr_value): Pass the comp_unit offset on the
841 decode_location_expression.
842 (display_debug_frames): Pass 0 as the comp_unit offset to
843 decode_location_expression.
844
845 2004-12-22 Nick Clifton <nickc@redhat.com>
846
847 * readelf.c (last_pointer_size, warned_about_missing_comp_units):
848 New variables associated with obtaining the pointer size for a
849 comp_unit.
850 (get_pointer_size_of_comp_unit): Add an extra parameter - the name
851 of the section requesting the pointer size. Use this name in
852 error messages. If there are not enough comp_units available
853 produce a warning message, but return the last known pointer size
854 so that section dumping can continue.
855 (get_debug_info): Reset the new variables.
856 (display_debug_lines): Add extra parameter to invocation of
857 get_pointer_size_of_comp_unit and remove error message when it
858 returns 0.
859 (display_debug_loc): Likewise.
860
861 2004-12-15 Jan Beulich <jbeulich@novell.com>
862
863 * doc/binutils.texi: Document --strip-unneeded-symbol and
864 --strip-unneeded-symbols.
865 * objcopy.c (strip_unneeded_list): New.
866 (enum command_line_switch): Add OPTION_STRIP_UNNEEDED_SYMBOL
867 and OPTION_STRIP_UNNEEDED_SYMBOLS.
868 (copy_options): Add --strip-unneeded-symbol and
869 --strip-unneeded-symbols.
870 (copy_usage): Likewise.
871 (filter_symbols): Suppress copying of symbol if in strip_unneeded_list
872 and the symbol is not needed.
873 (copy_main): Handle OPTION_STRIP_UNNEEDED_SYMBOL and
874 OPTION_STRIP_UNNEEDED_SYMBOLS.
875
876 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
877
878 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_9000.
879
880 2004-12-08 Ben Elliston <bje@au.ibm.com>
881
882 * arlex.l: Fix formatting.
883
884 2004-12-08 Ben Elliston <bje@au.ibm.com>
885
886 * doc/Makefile.am (config.texi): Emit a @set UPDATED command to
887 config.texi whose value is the current month and year.
888 * doc/Makefile.in: Rebuild.
889 * doc/binutils.texi: Set the document subtitle to be the value of
890 the Texinfo UPDATED variable (obtained from config.texi).
891
892 2004-12-07 Ben Elliston <bje@au.ibm.com>
893
894 PR binutils/249
895 * doc/binutils.texi (def file format): New node.
896 (dlltool): Use the tool name as the @chapter name, like all the
897 other binutils. Use @file{.def} throughout for consistency.
898
899 2004-12-06 Ben Elliston <bje@au.ibm.com>
900
901 * dlltool.c: Comment fix.
902
903 2004-12-06 Ben Elliston <bje@au.ibm.com>
904
905 * doc/binutils.texi: Update copyright years.
906
907 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
908
909 * MAINTAINERS: Remove mention of config.if.
910
911 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
912
913 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
914 * Makefile.in: Regenerate.
915
916 2004-11-10 Ian Lance Taylor <ian@wasabisystems.com>
917
918 PR binutils/536
919 * stabs.c (stab_demangle_template): Call stab_demangle_count
920 rather than stab_demangle_get_count to get the length of a pointer
921 target.
922
923 2004-11-10 Danny Smith <dannysmith@users.sourceforge.net>
924
925 * defparse.y: Remove unnecessary commas from token list.
926
927 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
928
929 * doc/binutils.texi (nm): Update description of weak symbols.
930
931 2004-11-03 Nick Clifton <nickc@redhat.com>
932
933 * readelf.c (do_debug_ranges): New variable.
934 (usage): Document new switch: -wR or --debug-dump=Ranges.
935 (parse_args): Handle new switch. Replace switch statement for the
936 long options with a more compact table structure.
937 (process_section_headers): Allow the dumping of .debug_ranges
938 sections if so requested.
939 (debug_displays): Likewise.
940 (load_debug_range): New function: Grabs the contents of a
941 .debug_ranges section.
942 (free_debug_range): New function: Releases the grabbed
943 .debug_ranges section.
944 (decode_64bit_range): New function: Displays a 64-bit range in a
945 .debug_ranges section.
946 (decode_range): New function: Displays a 32-bit range in a
947 .debug_ranges section.
948 (read_and_display_attr_value): Record the value of DW_AT_low_pc
949 attributes. Use decode_ranges() to display a DW_AT_ranges
950 attribute.
951 (display_debug_info): Use load_debug_range() and
952 free_debug_range().
953 (display_64bit_debug_ranges): New function. Displays the contents
954 of a 64-bit format .debug_ranges section.
955 (display_debug_ranges): New function: Displays the contents of a
956 32-bit .debug_ranges section.
957
958 (main): Move cmdline_dump_sects and num_cmdline_dump_sects into the
959 global scope.
960 (process_object): Initialise the dump_sects array from the
961 cmdline_dump_sects array before processing each object file.
962
963 (streq, strneq): New macros. Use them to replace occurrences of
964 strcmp() and strncmp().
965
966 (debug_information): New structure array to replace
967 debug_line_pointer_sizes array.
968 (num_debug_info_entries): New variable to replace
969 num_debug_line_pointers.
970 (get_pointer_size_of_comp_unit): New function: Returns the pointer
971 size of a given compilation unit.
972 (get_debug_info): New function to replace
973 get_debug_line_pointer_sizes.
974 (display_debug_lines): Use the new functions.
975 (display_debug_loc): Likewise.
976
977 (disassemble_section): Change return type to int.
978 (display_debug_lines): Move local variables to their
979 innermost scope.
980 (display_debug_section): Likewise. Also record the return value
981 of functions called and pass this back to the parent. Also only
982 warn about undumped sections when the user explicitly requested
983 their dumping.
984
985 (debug_apply_rela_addends): Allow relocations against STT_OBJECT
986 types as well.
987
988 * NEWS: Mention the support for decoding .debug_ranges sections.
989 * doc/binutils.texi: Document the new command line switch to
990 readelf.
991
992 2004-11-03 Randolph Chung <tausq@debian.org>
993
994 * readelf.c (ia64_unw_aux_info, ia64_unw_table_entry): Rename from
995 unw_aux_info and unw_table_entry.
996 (find_symbol_for_address): Pass symtab and strtab info explicitly.
997 (dump_ia64_unwind): Rename unw_{aux_info,table_entry} with ia64_
998 prefix.
999 (slurp_ia64_unwind_table): Likewise.
1000 (ia64_process_unwind): Rename from old process_unwind.
1001 (hppa_unw_aux_info): New.
1002 (dump_hppa_unwind): New.
1003 (slurp_hppa_unwind_table): New.
1004 (hppa_process_unwind): New.
1005 (process_unwind): Factor out common unwinding checks; dispatch to
1006 unwind handler based on machine type.
1007
1008 2004-11-02 Nick Clifton <nickc@redhat.com>
1009
1010 * readelf.c (display_debug_lines): Fix typo in error message.
1011
1012 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1013
1014 * readelf.c (get_note_type): Handle notes not in core files.
1015 (process_note_sections): New function.
1016 (process_corefile_contents): Rename to ...
1017 (process_notes): ... this.
1018 (process_object): Call process_notes, not
1019 process_corefile_contents.
1020 * doc/binutils.texi: Update readelf -n documentation.
1021
1022 2004-10-26 Jakub Jelinek <jakub@redhat.com>
1023
1024 * ar.c (extract_file): Set atime to mtime for ar xo.
1025
1026 2004-10-25 Ian Lance Taylor <ian@wasabisystems.com>
1027
1028 * stabs.c (stab_demangle_v3_arglist): New static function, broken
1029 out of stab_demangle_v3_argtypes.
1030 (stab_demangle_v3_argtypes): Call it.
1031 (stab_demangle_v3_arg): Handle DEMANGLE_COMPONENT_FUNCTION_TYPE.
1032 If we find an unrecognized component, print out its number.
1033
1034 2004-10-25 David Mosberger <davidm@hpl.hp.com>
1035
1036 * readelf.c (slurp_ia64_unwind_table): Support relocations against
1037 non-section symbols by adding in the symbol value.
1038
1039 2004-10-25 Nick Clifton <nickc@redhat.com>
1040
1041 PR 465
1042 * readelf.c (dynamic_strings_length): New global variable.
1043 (VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
1044 strings in the dynamic string table.
1045 (process_section_headers): Initialise dynamic_strings_length.
1046 (process_dynamic_section): Likewise.
1047 (process_object): Reset dynamic_string_length when the buffer is freed.
1048 (dynamic_sections_mips_val): Use the new macros.
1049 (process_dynamic_section): Likewise.
1050 (process_version_sections): Likewise.
1051 (process_symbol_table): Likewise.
1052 (process_syminfo): Likewise.
1053 (process_mips_specific): Likewise.
1054 (dump_relocations): Add a new parameter 'strtablen' and use this
1055 to verify that string offset in a given reloc is valid. Print a
1056 suitable error message otherwise.
1057 (process_relocs): Pass the new argument to dump_relocations.
1058
1059 2004-10-23 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1060
1061 * dlltool.c: Include <assert.h>.
1062 (PREFIX_ALIAS_BASE): Define.
1063 (struct export): Add member import_name;
1064 (def_exports): Set import_name.
1065 (make_one_lib_file): Remove prefix alias code, use import_name
1066 in .idata$6.
1067 (gen_lib_file): Create and delete aliases.
1068
1069 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1070
1071 * readelf.c (process_section_groups): Free symtab after use.
1072
1073 2004-10-18 Tommy Pettersson <ptp@lysator.liu.se>
1074 Nick Clifton <nickc@redhat.com>
1075
1076 * strings.c (usage): Place radix values for -t option into the
1077 correct order.
1078
1079 * objcopy.c (add_redefine_syms_file): Change error messages to use
1080 <filename>:<linenumber>: format for easier parsing by automatic
1081 tools.
1082
1083 * srconv.c (show_usage): Fix spelling typo.
1084
1085 * windres.c (format_from_filename): Suggest the use of -J instead
1086 of -I if the file type cannot be determined.
1087
1088 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1089
1090 * strings.c: Include <sys/stat.h>.
1091
1092 2004-10-18 Alan Modra <amodra@bigpond.net.au>
1093
1094 * budemang.c (demangle): Fix thinko.
1095
1096 * budemang.c (demangle): Handle "@plt" suffix.
1097
1098 2004-10-14 Nick Clifton <nickc@redhat.com>
1099
1100 * nm.c (usage): Fix description of --special-syms switch.
1101
1102 2004-10-13 Jakub Jelinek <jakub@redhat.com>
1103
1104 * strings.c (statbuf): New typedef.
1105 (file_stat): Define.
1106 (strings_object_file): Avoid using get_file_size, instead do the
1107 checks here, using file_stat.
1108 * configure.in (HAVE_STAT64): New test.
1109 * configure: Rebuilt.
1110 * config.in: Rebuilt.
1111
1112 2004-10-12 Paul Brook <paul@codesourcery.com>
1113
1114 * readelf.c (decode_ARM_machine_flags): Support EABI version 4.
1115
1116 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1117
1118 * objdump.c (dump_symbols): Fix thinko last change. Improve error
1119 messages.
1120
1121 2004-10-08 Nick Clifton <nickc@redhat.com>
1122
1123 * nm.c: Add a new switch --special-syms which, if enabled, will
1124 include the ARM Mapping symbols in nm's output.
1125 (usage): Mention the switch.
1126 (filter_symbols): Handle the switch.
1127 * objdump.c: Add a similar switch.
1128 (usage): Mention the switch.
1129 (dump_symbols): Handle the switch.
1130 * doc/binutils.texi: Document the new switches.
1131 * NEWS: Mention the new switches.
1132
1133 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1134
1135 * readelf.c (get_x86_64_section_type_name): New function.
1136 (get_section_type_name): Use it.
1137
1138 2004-10-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1139
1140 * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04
1141 patches.
1142 * doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
1143
1144 2004-10-07 Alexandre Oliva <aoliva@redhat.com>
1145
1146 * readelf.c (get_machine_flags): Don't fall through into m68k cpu
1147 types.
1148
1149 2004-10-01 Paul Brook <paul@codesourcery.com>
1150
1151 * readelf.c (get_arm_section_type_name): New function.
1152 (get_section_type_name): Use it.
1153
1154 2004-09-28 Nick Clifton <nickc@redhat.com>
1155
1156 * nm.c: Reorder functions to eliminate most of the static function
1157 prototypes.
1158
1159 2004-09-22 Alan Modra <amodra@bigpond.net.au>
1160
1161 * readelf.c (process_program_headers): Don't include .tbss in non-TLS
1162 segments.
1163
1164 2004-09-17 Alan Modra <amodra@bigpond.net.au>
1165
1166 * Makefile.am: Run "make dep-am".
1167 * Makefile.in: Regenerate.
1168 * config.in: Regenerate.
1169 * configure: Regenerate.
1170 * doc/Makefile.in: Regenerate.
1171 * po/binutils.pot: Regenerate.
1172
1173 2004-09-12 Alan Modra <amodra@bigpond.net.au>
1174
1175 * readelf.c (decode_location_expression): Sign extend value for
1176 DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.
1177
1178 2004-09-09 Nick Clifton <nickc@redhat.com>
1179
1180 PR 363
1181 * ar.c (replace_members): Do not use get_file_size as
1182 ar_emul_append correctly handles missing files.
1183
1184 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1185
1186 * configure: Regenerated with autconfig 2.13.
1187
1188 2004-09-06 Danny Smith <dannysmith@users.sourceforge.net>
1189
1190 * doc/binutils.texi (dlltool): Update --add-underscore, --kill-at
1191 documentation.
1192
1193 2004-09-06 Michael Wardle <mbw@endbracket.net>
1194
1195 * doc/binutils.texi (objdump): Document that the -x switch includes
1196 the effect of the -p switch.
1197
1198 2004-09-04 Danny Smith <dannysmith@users.sourceforge.net>
1199
1200 * dlltool.c (make_one_lib_file): Test if internal_name was
1201 specified by user before using it.
1202
1203 2004-09-02 Carlo Wood <carlo@alinoe.com>
1204
1205 PR binutils/351
1206 * dlltool.c (make_one_lib_file): For IDATA6 take the name from
1207 exp->internal_name if it is present.
1208
1209 2004-09-02 Alexandre Oliva <aoliva@redhat.com>
1210
1211 * MAINTAINERS: Add self as co-maintainer of FR-V.
1212 * readelf.c (get_machine_flags): Print FR-V cpu types.
1213
1214 2004-08-28 Alan Modra <amodra@bigpond.net.au>
1215
1216 * nm.c (show_synthetic): New var.
1217 (long_options): Add "synthetic".
1218 (usage): Here too.
1219 (display_rel_file): Handle show_synthetic.
1220
1221 2004-08-28 Alan Modra <amodra@bigpond.net.au>
1222
1223 * objdump.c (dump_bfd): Pass both symbol tables to
1224 bfd_get_synthetic_symtab.
1225
1226 2004-08-17 Jakub Jelinek <jakub@redhat.com>
1227
1228 * objdump.c (dump_bfd): For relocatable objects, pass syms instead
1229 of dynsyms to bfd_get_synthetic_symtab.
1230
1231 2004-08-16 Alan Modra <amodra@bigpond.net.au>
1232
1233 * readelf.c (debug_apply_rela_addends): New function, extracted from..
1234 (display_debug_info): ..here.
1235 (display_debug_frames): Call debug_apply_rela_addends. Don't do
1236 DW_EH_PE_pcrel adjustment for ET_REL.
1237
1238 2004-08-06 Andreas Schwab <schwab@suse.de>
1239
1240 * readelf.c (dump_relocations): Fix typo when calculating
1241 sec_index.
1242
1243 2004-08-02 Jakub Bogusz <qboosh@pld-linux.org>
1244
1245 * dllwrap.c (deduce_name): Fix typos introduced when program_name
1246 was renamed to prog_name.
1247
1248 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
1249
1250 * readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
1251 EF_SH2A_NOFPU.
1252
1253 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
1254
1255 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
1256 * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
1257 EF_SH4A_NOFPU.
1258 2003-06-12 Alexandre Oliva <aoliva@redhat.com>
1259 * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
1260
1261 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1262
1263 * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section
1264 to access comdat.
1265 * objdump.c (dump_section_header): Likewise.
1266
1267 2004-07-15 Aravinda PR <aravindapr@rediffmail.com>
1268
1269 * nlmconv.c (main): Pass map_file argument to link_inputs.
1270 (link_inputs): Use map_file argument if it is defined.
1271
1272 2004-07-13 Nick Clifton <nickc@redhat.com>
1273
1274 * dllwrap.c: Replace 'program_name' with 'prog_name' to avoid
1275 conflicts with exported global defined in bucomm.h.
1276 (deduce_name): Rename parameter 'program_name' to 'name' to avoid
1277 shadowing the global defined in bucomm.h.
1278
1279 2004-07-12 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1280
1281 * dlltool.c (ext_prefix_alias): New global variable.
1282 (make_one_lib_file): Add aliases with prefixes for external
1283 and import definitions.
1284 (usage): Document -p option.
1285 (long_options): Add --ext-prefix-alias option.
1286 (main): Handle -p.
1287 * doc/binutils.texi: Document new switch.
1288 * NEWS: Mention new switch.
1289
1290 2004-07-09 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1291
1292 * binutils/dlltool.c (asm_prefix): Add parameter: name.
1293 No underscore for symbols beginning with ?.
1294 (ASM_PREFIX): Add parameter: NAME.
1295 (gen_exp_file): Use new parameter.
1296 (make_label): Likewise.
1297 (make_imp_label): Likewise.
1298 (make_one_lib_file): Likewise.
1299
1300 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
1301
1302 * MAINTAINERS: Added myself to the list.
1303 * readelf.c: Include "elf/crx.h".
1304 (guess_is_rela): Handle EM_CRX.
1305 (get_machine_name): Likewise.
1306 (dump_relocations): Likewise.
1307
1308 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1309
1310 * doc/binutils.texi (nm): Clarify weak symbol description.
1311
1312 2004-06-24 Ben Elliston <bje@au.ibm.com>
1313
1314 * readelf.c (get_segment_type): Display "GNU_STACK", not just
1315 "STACK", when a PT_GNU_STACK segment is encountered.
1316
1317 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1318
1319 * objcopy.c (copy_section): Don't set _cooked_size.
1320
1321 2004-06-22 Alan Modra <amodra@bigpond.net.au>
1322
1323 * readelf.c (Elf32_Word): Delete.
1324 (get_32bit_dynamic_section): Handle SGI ELF dynamic segment.
1325 (get_64bit_dynamic_section): Likewise.
1326
1327 * readelf.c (get_32bit_dynamic_section): Stop at first DT_NULL entry.
1328 (get_64bit_dynamic_section): Likewise.
1329
1330 * readelf.c (dynamic_nent): New variable.
1331 (get_32bit_dynamic_section): Set it.
1332 (get_64bit_dynamic_section): Here too.
1333 (process_dynamic_section): Use it instead of dynamic_size.
1334 (process_syminfo): Likewise.
1335
1336 * readelf.c (get_32bit_dynamic_section): Correct number of entries
1337 translated from external to internal form.
1338 (get_64bit_dynamic_section): Likewise.
1339
1340 2004-06-18 Jie Zhang <zhangjie@magima.com.cn>
1341
1342 * readelf.c (process_program_headers): When locating the dynamic
1343 section use the section table if it is present.
1344 (dynamic_segment): Renamed to dynamic_section.
1345 Replace references to dynamic segment with references to dynamic
1346 section, except where appropriate.
1347 (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
1348 (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
1349 (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
1350 (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
1351 Remove tag counting code as it is no longer needed.
1352 (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
1353 Remove tag counting code as it is no longer needed.
1354 (process_dynamic_segment): Rename to process_dynamic_section.
1355
1356 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1357
1358 * objcopy.c (copy_section): Use bfd_get_section_size instead of
1359 _raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done.
1360 (compare_section_lma): Likewise.
1361 * addr2line.c (find_address_in_section): Likewise.
1362 * coffgrok.c (do_sections_p1): Likewise.
1363 * dlltool.c (scan_drectve_symbols): Likewise.
1364 * nlmconv.c (main): Likewise.
1365 (copy_sections): Likewise.
1366 (powerpc_mangle_relocs): Likewise.
1367 * objdump.c (disassemble_section): Likewise.
1368 * prdbg.c (find_address_in_section): Likewise.
1369 * size.c (berkeley_sum): Likewise.
1370 * srconv.c (wr_ob): Likewise.
1371 * strings.c (strings_a_section): Likewise.
1372
1373 2004-05-28 Ian Lance Taylor <ian@wasabisystems.com>
1374
1375 * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
1376
1377 2004-05-17 David Heine <dlheine@tensilica.com>
1378
1379 * objcopy.c (setup_bfd_headers): New function.
1380 (copy_object): Call setup_bfd_headers.
1381
1382 2004-05-13 Paul Brook <paul@codesourcery.com>
1383
1384 * readelf.c (display_debug_frames): Handle dwarf3 format CIE
1385 entries.
1386
1387 2004-05-13 Nick Clifton <nickc@redhat.com>
1388
1389 * po/fr.po: Updated French translation.
1390
1391 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1392
1393 * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
1394
1395 2004-05-07 H.J. Lu <hongjiu.lu@intel.com>
1396
1397 * readelf.c (section_groups): New.
1398 (group_count): New.
1399 (section_headers_groups): New.
1400 (process_section_groups): Populate group_count, section_groups
1401 and section_headers_groups.
1402 (process_unwind): Support section group.
1403 (process_object): Always call process_section_groups. Free
1404 section_groups and section_headers_groups.
1405
1406 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
1407
1408 * readelf.c (process_section_headers): Use %3lu on sh_info.
1409
1410 2004-04-30 Michael Deutschmann <michael@talamasca.ocis.net>
1411
1412 * ranlib.sh: Quote $1 argument in case it contains spaces.
1413
1414 2004-04-27 John Paul Wallington <jpw@gnu.org>
1415
1416 * objcopy.c (copy_usage, strip_usage): Fix spelling.
1417
1418 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
1419
1420 * readelf.c (do_section_groups): New.
1421 (options): Add --section-groups/-g.
1422 (usage): Mention --section-groups/-g.
1423 (parse_args): Support --section-groups/-g.
1424 (get_group_flags): New.
1425 (process_section_groups): New.
1426 (process_object): Call process_section_groups.
1427
1428 2004-04-24 Alan Modra <amodra@bigpond.net.au>
1429
1430 * objdump.c (disassemble_section): Don't disassemble sections
1431 without SEC_HAS_CONTENTS.
1432
1433 2004-04-22 Jakub Jelinek <jakub@redhat.com>
1434
1435 * objdump.c (synthsyms, synthcount): New variables.
1436 (disassemble_data): Use dynsyms for stripped binaries or libraries.
1437 Add synthetized symbols.
1438 (dump_bfd): For disassemble, initialize dynsyms always and
1439 also synthsyms. Free synthsyms and clear {sym,dynsym,synth}count
1440 before returning.
1441
1442 2004-04-14 Alan Modra <amodra@bigpond.net.au>
1443
1444 * strings.c (print_strings): Cast file_off to unsigned long in
1445 printf arg list.
1446
1447 2004-04-07 Benjamin Monate <benjamin.monate@cea.fr>
1448
1449 PR 86
1450 * arsup.c (ar_save): Use smart_rename.
1451
1452 2004-04-01 Dean Luick <luick@cray.com>
1453
1454 * readelf.c (display_debug_pubnames): Align offset and data
1455 columns.
1456 (read_and_display_attr_value): Add missing break;
1457 (debug_displays): Enable the display of the .debug_pubtypes
1458 section.
1459
1460 2004-03-30 Stan Shebs <shebs@apple.com>
1461
1462 * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
1463 support files, no longer used.
1464
1465 2004-03-23 Paul Brook <paul@codesourcery.com>
1466
1467 * readelf.c (decode_ARM_machine_flags): Add EABI v3.
1468
1469 2004-03-21 Richard Henderson <rth@redhat.com>
1470
1471 * readelf.c (display_debug_frames): Don't crash for mismatched
1472 DW_CFA_restore_state.
1473
1474 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1475
1476 * Makefile.am: Run "make dep-am".
1477 * Makefile.in: Regenerate.
1478 * aclocal.m4: Regenerate.
1479 * config.in: Regenerate.
1480 * configure: Regenerate.
1481 * po/binutils.pot: Regenerate.
1482
1483 2004-03-15 Nathan Sidwell <nathan@codesourcery.com>
1484
1485 * objdump.c (struct SFILE): Replace current pointer with pos
1486 offset, rename size to alloc.
1487 (objdump_sprintf): Avoid unnecessary copies in the common case
1488 (disassemble_bytes): Keep sfile live throughout the
1489 function. Adjust usage appropriately.
1490
1491 2004-03-10 Ben Elliston <bje@gnu.org>
1492
1493 * MAINTAINERS: Update my mail address.
1494
1495 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1496
1497 * deflex.l: Handle "PRIVATE" string.
1498 * defparse.y (%token): Add PRIVATE.
1499 (%type): Add opt_PRIVATE.
1500 (expline): Pass opt_PRIVATE to def_exports.
1501 (opt_PRIVATE): Handle PRIVATE token.
1502 * dlltool.h (def_exports): Add 7th param for private flag to
1503 declaration.
1504 * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
1505 (struct export): Add 'private' field.
1506 (def_exports): Set 'private' field of struct exports.
1507 (scan_drectve_symbols): Adjust calls to def_exports.
1508 (scan_filtered_symbols): Likewise.
1509 (dump_def_info): Print 'private' field.
1510 (gen_def_file): Likewise.
1511 (gen_lib_file): Skip generation of lib object if private.
1512 Delete tmp object files in same order as they were generated.
1513 Don't delete non-existent private object files.
1514
1515 2004-02-27 Andreas Schwab <schwab@suse.de>
1516
1517 * ar.c (main): Support POSIX-compatible argument parsing.
1518
1519 2004-02-23 Daniel Lucq <daniel@lucq.org>
1520
1521 * readelf.c (process_mips_specific): Print conflictsno as an
1522 unsigned long.
1523
1524 2004-02-21 Dmitry Timoshkov <dmitry@baikal.ru>
1525
1526 * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
1527
1528 2004-02-19 Jakub Jelinek <jakub@redhat.com>
1529
1530 * objcopy.c (copy_section): Avoid warnings.
1531
1532 2004-02-14 Andrew Cagney <cagney@redhat.com>
1533
1534 * ar.c (remove_output): Use bfd_cache_close.
1535 * arsup.c (ar_end): Ditto.
1536
1537 2004-01-21 Roland McGrath <roland@redhat.com>
1538
1539 * readelf.c (get_note_type): Match NT_AUXV.
1540
1541 2004-01-20 Nick Clifton <nickc@redhat.com>
1542
1543 * version.c (print_version): Update copyright year to 2004.
1544
1545 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1546
1547 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
1548 throughout.
1549 * aclocal.m4: Regenerate.
1550 * configure: Regenerate.
1551
1552 2004-01-12 Jakub Jelinek <jakub@redhat.com>
1553
1554 * objcopy.c: Include elf-bfd.h.
1555 (is_strip_section): Don't strip debugging sections if
1556 STRIP_NONDEBUG.
1557 (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
1558 ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
1559
1560 * objcopy.c (copy_section): Free relpp if relcount == 0.
1561
1562 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1563
1564 * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
1565 (stab_demangle_argtypes): Likewise.
1566 (stab_demangle_v3_argtypes): New static function.
1567 (stab_demangle_v3_arg): New static function.
1568
1569 2004-01-12 Nick Clifton <nickc@redhat.com>
1570
1571 * objcopy.c (copy_object): Make the function boolean, returning
1572 FALSE upon failure.
1573 (copy_archive): Handle the return value from copy_object.
1574 (copy_file): Likewise.
1575
1576 2004-01-07 Nick Clifton <nickc@redhat.com>
1577
1578 * readelf.c (find_section): New function. Locates a named
1579 section.
1580 (get_debug_line_pointer_sizes): New function: Initialises the
1581 debug_line_pointer_sizes array.
1582 (display_debug_lines): Call get_debug_line_pointer_sizes.
1583 (display_debug_loc): Likewise.
1584 (load_debug_loc): Use find_section.
1585 (load_debug_str): Likewise.
1586 (display_debug_info): Likewise.
1587 (prescan_debug_info): Delete.
1588 (debug_displays): Remove prescan field.
1589 (process_section_contents): Do not perform prescans.
1590
1591 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1592
1593 * objcopy.c (filter_bytes): Delete. Move code to..
1594 (copy_section): ..here. Simplify size adjustment. Divide
1595 section lma by interleave.
1596
1597 2004-01-02 Nick Clifton <nickc@redhat.com>
1598
1599 * po/ru.po: New file: Russian translation.
1600 * configure.in (ALL_LINGUAS): Add ru
1601 * configure: Regenerate.
1602
1603 For older changes see ChangeLog-0203
1604 \f
1605 Local Variables:
1606 mode: change-log
1607 left-margin: 8
1608 fill-column: 74
1609 version-control: never
1610 End:
This page took 0.064088 seconds and 5 git commands to generate.