* MAINTAINERS: Remove self as maintainer of x86 intel
[binutils-gdb.git] / binutils / ChangeLog
1 2005-03-17 Diego Novillo <dnovillo@redhat.com>
2
3 * MAINTAINERS: Remove self as maintainer of x86 intel
4 mode.
5
6 2005-03-16 Nick Clifton <nickc@redhat.com>
7 Ben Elliston <bje@au.ibm.com>
8
9 * configure.in (werror): New switch: Add -Werror to the
10 compiler command line. Enabled by default. Disable via
11 --disable-werror.
12 * configure: Regenerate.
13
14 2005-03-15 Daniel Marques <marques@cs.cornell.edu>
15 Nick Clifton <nickc@redhat.com>
16
17 * objcopy.c (globalize_specific_list): New linked list of symbols
18 to convert from local binding into global binding.
19 (command_line_switch): Add OPTION_GLOBALIZE_SYMBOL and
20 OPTION_GLOBALIZE_SYMBOLS.
21 (copy_options): Add "globalize-symbol" and "globalize-symbols".
22 (copy_usage): Document the new switches.
23 (filter_symbols): Convert defined local symbols mentioned on the
24 globalize_specific_list into global symbols.
25 (copy_object): Perform actions if the globalize_specific_list is
26 not empty.
27 (copy_main): Handle new switches.
28 * NEWS: Mention new feature.
29 * doc/binutils.texi: Document new switches.
30
31 2005-03-15 Alan Modra <amodra@bigpond.net.au>
32
33 * po/es.po: Commit new Spanish translation.
34
35 * po/fr.po: Commit new French translation.
36
37 2005-03-14 Alan Modra <amodra@bigpond.net.au>
38
39 * po/tr.po: Commit new Turkish translation.
40
41 2005-03-11 Nick Clifton <nickc@redhat.com>
42
43 * po/fr.po: Updated French translation.
44
45 2005-03-10 Nick Clifton <nickc@redhat.com>
46
47 * configure.in (ALL_LINGUAS): Add Romanian lingua "ro".
48 * configure: Regenerate.
49 * po/ro.po: New file.
50
51 * po/ru.po: Updated file.
52
53 2005-03-05 Alan Modra <amodra@bigpond.net.au>
54
55 * po/binutils.pot: Regenerate.
56
57 2005-03-02 Jan Beulich <jbeulich@novell.com>
58
59 * ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
60 * objcopy.c (copy_file): Likewise.
61 (strip_main): Likewise.
62
63 2005-03-01 Stig Petter Olsroed <stigpo@users.sourceforge.net>
64 Nick Clifton <nickc@redhat.com>
65
66 * objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
67 (struct objdump_disasm_info): Add 'reloc' field.
68 (disassemble_bytes): Fix check for when an insn has a reloc
69 associated with it. Improve comment explaining why the use of
70 octets is wrong. Set the 'reloc' field in objdump_disasm_info
71 structure.
72 (objdump_print_addr): Use new 'reloc' field to lookup the correct
73 address for the symbol associated with the current instruction's
74 relocation.
75 (disassemble_info): Initialise 'reloc' field.
76
77 2005-02-28 Jakub Jelinek <jakub@redhat.com>
78
79 * readelf.c (get_file_type, get_machine_name, get_osabi_name,
80 get_segment_type, get_section_type_name, get_elf_class,
81 get_data_encoding, get_group_flags, dynamic_section_mips_val,
82 get_symbol_binding, get_symbol_type, get_TAG_name, get_FORM_name,
83 get_AT_name, process_mips_specific, process_gnu_liblist,
84 get_note_type, get_netbsd_elfcore_note_type): Use snprintf instead of
85 sprintf where needed.
86 (get_dynamic_type): Likewise. Increase buff to 64 bytes.
87 (get_elf_section_flags): Increase buff to 33 bytes. Avoid
88 using strcat.
89 (get_dynamic_flags): Renamed to...
90 (print_dynamic_flags): ... this. Print the flags to stdout instead
91 of returning them as string.
92 (process_dynamic_section): Adjust caller.
93
94 2005-02-25 H.J. Lu <hongjiu.lu@intel.com>
95
96 * readelf.c (display_debug_ranges): Print out offset for end of
97 list.
98
99 2005-02-23 Alan Modra <amodra@bigpond.net.au>
100
101 * dlltool.c: Warning fixes.
102 * objdump.c: Likewise.
103
104 2005-02-22 Alan Modra <amodra@bigpond.net.au>
105
106 * Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
107 (syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate
108 dependencies. Run "make dep-am".
109 * nlmconv.c: Warning fixes.
110 * readelf.c: Likewise.
111 * srconv.c: Likewise.
112 * sysdump.c: Likewise.
113 * sysinfo.y: Likewise.
114 * syslex.l: Likewise. Use yyleng instead of strlen, memcpy instead
115 of strcpy.
116 * Makefile.in: Regenerate.
117
118 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
119
120 * objcopy.c (parse_flags): Replace SEC_SHARED with
121 SEC_COFF_SHARED.
122
123 * objdump.c (dump_section_header): Dump SEC_TIC54X_BLOCK and
124 SEC_TIC54X_CLINK for TI c54x only. Remove SEC_ARCH_BIT_0. Dump
125 SEC_COFF_SHARED for COFF only.
126
127 2005-02-21 Alan Modra <amodra@bigpond.net.au>
128
129 * Makefile.am: Run "make dep-am"
130 * Makefile.in: Regenerate.
131 * doc/Makefile.in: Regenerate.
132
133 2005-02-21 Alan Modra <amodra@bigpond.net.au>
134
135 * readelf.c (BYTE_GET8): Delete. Replace uses with BYTE_GET.
136 (byte_get_little_endian): Don't handle size of -8.
137 (byte_get_signed, byte_get_big_endian): Likewise.
138 (print_dec_vma, print_hex_vma): New functions.
139 (print_vma): Use them. Return chars output.
140 (get_dynamic_data): Return a bfd_vma array. Add ent_size parm.
141 (process_symbol_table): Handle alpha and s390 .hash.
142
143 2005-02-18 H.J. Lu <hongjiu.lu@intel.com>
144
145 * readelf.c (display_debug_loc): Print out offset for end of
146 list.
147
148 2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
149
150 * Makefile.am (TOOL_PROGS): Add objdump.
151 * Makefile.in: Regenerate.
152
153 2005-02-17 Alan Modra <amodra@bigpond.net.au>
154
155 * deflex.l (YY_NO_UNPUT): Define.
156 * rclex.l (YY_NO_UNPUT): Define.
157 * rcparse.y (null_unichar): New static var.
158 (res_null_text): Use it rather than attempting to init from wchar_t.
159 * windres.c: Include assert.h and time.h before getopt.h.
160 Include config.h and unistd.h too.
161
162 2005-02-15 Nick Clifton <nickc@redhat.com>
163
164 * nlmconv.c: Provide a full prototype for the localtime() function
165 in order to avoid a compile time warning.
166
167 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
168
169 * readelf.c (group_count): Don't initialize it.
170 (process_section_groups): Reurn 1 if we won't do unwind nor
171 section groups. Set group_count to 0 before counting group
172 sections and return 1 if there are no group sections. Reread
173 SHT_SYMTAB/SHT_STRTAB sections only when needed. Don't skip
174 section 0.
175 (process_object): Only set do_unwind to 0 if
176 process_section_groups return 0.
177
178 2005-02-10 Ian Lance Taylor <ian@airs.com>
179
180 * MAINTAINERS: Update my e-mail address.
181
182 2005-02-10 Mark Mitchell <mark@codesourcery.com>
183
184 * MAINTAINERS: Add Paul Brook and Mark Mitchell as ARM (Symbian)
185 maintainers.
186
187 2005-02-07 Inderpreet Singh <inderpreetb@noida.hcltech.com>
188
189 * MAINTAINERS: Add self as maintainer of MAXQ.
190
191 2005-01-31 Richard Sandiford <rsandifo@redhat.com>
192
193 * readelf.c (eh_addr_size): New variable.
194 (find_section): Move earlier in file. Return empty sections too.
195 (process_program_headers): Use find_section to find .dynamic.
196 (process_section_headers): Initialize eh_addr_size.
197 (dump_ia64_unwind, slurp_ia64_unwind_table, ia64_process_unwind)
198 (dump_hppa_unwind, slurp_hppa_unwind_table, hppa_process_unwind)
199 (display_debug_frames): Use it instead of local addr_size variable.
200 (size_of_encoded_value): Get pointer size from eh_addr_size rather
201 than is_32bit_elf.
202
203 2005-01-31 Andrew Cagney <cagney@gnu.org>
204
205 * configure: Regenerate to track ../gettext.m4.
206
207 2005-01-31 Nick Clifton <nickc@redhat.com>
208
209 * version.c (print_version): Bump the copyright date to 2005.
210
211 2005-01-25 Alan Modra <amodra@bigpond.net.au>
212
213 * nm.c (display_rel_file): Read dynamic syms before calling
214 bfd_get_synthetic_symtab.
215
216 2005-01-21 Ben Elliston <bje@au.ibm.com>
217
218 * dlltool.c (dump_iat): Remove unused function.
219 (gen_exp_file): Remove #if 0'd code.
220 (make_one_lib_file): Likewise.
221 * srconv.c: Remove #if 0'd code throughout.
222 * size.c (lprint_number): Remove.
223 (print_berkeley_format): Remove #if 0'd code.
224 * ar.c (do_quick_append): Remove declaration and definiton.
225 (main): Remove #if 0'd code.
226 * filemode.c (filemodestring): Remove #if 0'd function.
227 * sysdump.c (unit_info_list): Remove function.
228 (object_body_list): Likewise.
229 (program_structure): Likewise.
230 (debug_list): Likewise.
231 (module): Remove #if 0'd code.
232
233 2005-01-20 Mark Mitchell <mark@codesourcery.com>
234
235 * BRANCHES: Add binutils-2_15-branch.
236
237 * MAINTAINERS: Document branch policy.
238 * BRANCHES: New file.
239
240 2005-01-19 Fred Fish <fnf@specifixinc.com>
241
242 * NEWS: Make note of the new MIPS disassembly option "no-aliases".
243 * doc/binutils.texi (objdump): Document the "no-aliases"
244 disassembly option.
245
246 2005-01-17 Eugene Kotlyarov <ekot@narod.ru>
247
248 PR binutils/647
249 * rcparse.y (RCDATA): Allow a filename to be supplied as the
250 parameter. Parse it with define_rcdata_file().
251 * resrc.c (define_rcdata_file): New function.
252 * windres.h: Provide a prototype for the new function.
253
254 * resrc.c (define_user_file): Fix typo by replacing "font file"
255 with "file".
256
257 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
258
259 * MAINTAINERS: Update my email address.
260
261 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
262
263 * dlltool.c (set_dll_name_from_def): New function. Strip name
264 to basename, with warning.
265 (def_name): Use it.
266 (def_library): Likwise.
267 (main): Strip arg of --dllname to basename, with warning.
268 Only use basename of exp_name when inferring dll_name.
269
270 2005-01-11 Nick Clifton <nickc@redhat.com>
271
272 PR binutils/637
273 * doc/binutils.texi (c++filt): Use uppercase CXXFILT in the
274 footnote in order to prevent the sed script in the Makefile from
275 converting it into c++filt.
276
277 2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
278
279 BZ 635
280 readelf.c (saved_base_address): Removed.
281 (decode_64bit_range): Likewise.
282 (decode_range): Likewise.
283 (display_64bit_debug_ranges): Likewise.
284 (debug_info): Add range_lists, num_range_lists and
285 max_range_lists.
286 (read_and_display_attr_value): Handle do_debug_ranges.
287 (process_debug_info): Likewise.
288 (display_debug_ranges): Rewrite.
289 (process_object): Free range_lists.
290
291 2005-01-10 Andreas Schwab <schwab@suse.de>
292
293 * configure.in: Don't define SKIP_ZEROES.
294 * configure: Regenerate.
295 * objdump.c (disassemble_data): Set skip_zeroes and
296 skip_zeroes_at_end in disasm_info to defaults.
297 (DEFAULT_SKIP_ZEROES): Rename from SKIP_ZEROES and always define.
298 (DEFAULT_SKIP_ZEROES_AT_END): Rename from SKIP_ZEROES_AT_END and
299 always define.
300 (disassemble_bytes): Use skip_zeroes and skip_zeroes_at_end from
301 objdump_disasm_info.
302
303 2005-01-05 H.J. Lu <hongjiu.lu@intel.com>
304
305 * readelf.c (display_debug_loc): Display base address
306 specifiers. Always output <End of list>.
307
308 2005-01-05 H.J. Lu <hongjiu.lu@intel.com>
309
310 * readelf.c (have_frame_base): New.
311 (need_base_address): Likewise.
312 (saved_base_address): Likewise.
313 (decode_location_expression): Return 1 if DW_AT_frame_base is
314 needed.
315 (debug_info): Add base_address and a have_frame_base pointer.
316 (read_and_display_attr_value): Replace saved_DW_AT_low_pc with
317 saved_base_address. Record base address. Set have_frame_base.
318 Record if a location list has DW_AT_frame_base. Display if a
319 location expression has no DW_AT_frame_base but needs one. Set
320 saved_base_address only if needed.
321 (process_debug_info): Clear have_frame_base, saved_base_address
322 and set need_base_address.
323 (display_debug_loc): Display if a location expression has no
324 DW_AT_frame_base but needs one. Display if start >= end. Don't
325 adjust for section address. Properly handle base address.
326 (process_object): Free the have_frame_base pointer in
327 debug_info.
328
329 2005-01-04 H.J. Lu <hongjiu.lu@intel.com>
330
331 * readelf.c (display_debug_loc): Display offsets for hole and
332 overlap.
333 (display_debug_str): Add a newline at the end.
334
335 2005-01-04 Armin Diehl <diehl@nordrhein.de>
336
337 PR binutils/630
338 * nlmconv.c (main): Only store the basename of the output filename
339 in the module table.
340
341 2005-01-04 H.J. Lu <hongjiu.lu@intel.com>
342
343 BZ 615
344 * readelf.c (process_debug_info): New.
345 (debug_info): Add num_loc_offsets, loc_offsets and
346 last_loc_offset_p.
347 (get_debug_info): Use process_debug_info.
348 (display_debug_loc): Properly handle location list. Warn if bad
349 location lists are encoutnered.
350 (read_and_process_attr_value): New.
351 (read_and_display_attr_value): Use "%lx" for DW_FORM_data4.
352 (display_debug_info): Use process_debug_info.
353 (process_object): Also free loc_offsets in debug_information.
354
355 2004-12-31 Alan Modra <amodra@bigpond.net.au>
356
357 * objdump.c (remove_useless_symbols): Discard section symbols.
358
359 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
360
361 * readelf.c (read_leb128): Support 64bit host.
362
363 2004-12-23 Nick Clifton <nickc@redhat.com>
364
365 PR binutils/616
366 * readelf.c (debug_info): Add 'cu_offset' field.
367 (get+pointer_size_of_comp_unit): Rename to
368 'get_pointer_size_and_offset_of_comp_unit'. Add code to return
369 the offset of the comp_unit if requested.
370 (get_debug_info): Record comp_unit offsets as well.
371 (display_debug_lines): Call get_pointer_size_of_comp_unit.
372 (decode_location_expression): Add an extra parameter - the offset
373 of the current comp-unit. Use this when decoding the DW_OP_call2
374 and DW_OP_call4 operators.
375 (display_debug_loc): Call get_pointer_size_of_comp_unit, pass the
376 comp_unit offset on the decode_location_expression.
377 (read_and_display_attr_value): Pass the comp_unit offset on the
378 decode_location_expression.
379 (display_debug_frames): Pass 0 as the comp_unit offset to
380 decode_location_expression.
381
382 2004-12-22 Nick Clifton <nickc@redhat.com>
383
384 * readelf.c (last_pointer_size, warned_about_missing_comp_units):
385 New variables associated with obtaining the pointer size for a
386 comp_unit.
387 (get_pointer_size_of_comp_unit): Add an extra parameter - the name
388 of the section requesting the pointer size. Use this name in
389 error messages. If there are not enough comp_units available
390 produce a warning message, but return the last known pointer size
391 so that section dumping can continue.
392 (get_debug_info): Reset the new variables.
393 (display_debug_lines): Add extra parameter to invocation of
394 get_pointer_size_of_comp_unit and remove error message when it
395 returns 0.
396 (display_debug_loc): Likewise.
397
398 2004-12-15 Jan Beulich <jbeulich@novell.com>
399
400 * doc/binutils.texi: Document --strip-unneeded-symbol and
401 --strip-unneeded-symbols.
402 * objcopy.c (strip_unneeded_list): New.
403 (enum command_line_switch): Add OPTION_STRIP_UNNEEDED_SYMBOL
404 and OPTION_STRIP_UNNEEDED_SYMBOLS.
405 (copy_options): Add --strip-unneeded-symbol and
406 --strip-unneeded-symbols.
407 (copy_usage): Likewise.
408 (filter_symbols): Suppress copying of symbol if in strip_unneeded_list
409 and the symbol is not needed.
410 (copy_main): Handle OPTION_STRIP_UNNEEDED_SYMBOL and
411 OPTION_STRIP_UNNEEDED_SYMBOLS.
412
413 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
414
415 * readelf.c (get_machine_flags): Handle E_MIPS_MACH_9000.
416
417 2004-12-08 Ben Elliston <bje@au.ibm.com>
418
419 * arlex.l: Fix formatting.
420
421 2004-12-08 Ben Elliston <bje@au.ibm.com>
422
423 * doc/Makefile.am (config.texi): Emit a @set UPDATED command to
424 config.texi whose value is the current month and year.
425 * doc/Makefile.in: Rebuild.
426 * doc/binutils.texi: Set the document subtitle to be the value of
427 the Texinfo UPDATED variable (obtained from config.texi).
428
429 2004-12-07 Ben Elliston <bje@au.ibm.com>
430
431 PR binutils/249
432 * doc/binutils.texi (def file format): New node.
433 (dlltool): Use the tool name as the @chapter name, like all the
434 other binutils. Use @file{.def} throughout for consistency.
435
436 2004-12-06 Ben Elliston <bje@au.ibm.com>
437
438 * dlltool.c: Comment fix.
439
440 2004-12-06 Ben Elliston <bje@au.ibm.com>
441
442 * doc/binutils.texi: Update copyright years.
443
444 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
445
446 * MAINTAINERS: Remove mention of config.if.
447
448 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
449
450 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
451 * Makefile.in: Regenerate.
452
453 2004-11-10 Ian Lance Taylor <ian@wasabisystems.com>
454
455 PR binutils/536
456 * stabs.c (stab_demangle_template): Call stab_demangle_count
457 rather than stab_demangle_get_count to get the length of a pointer
458 target.
459
460 2004-11-10 Danny Smith <dannysmith@users.sourceforge.net>
461
462 * defparse.y: Remove unnecessary commas from token list.
463
464 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
465
466 * doc/binutils.texi (nm): Update description of weak symbols.
467
468 2004-11-03 Nick Clifton <nickc@redhat.com>
469
470 * readelf.c (do_debug_ranges): New variable.
471 (usage): Document new switch: -wR or --debug-dump=Ranges.
472 (parse_args): Handle new switch. Replace switch statement for the
473 long options with a more compact table structure.
474 (process_section_headers): Allow the dumping of .debug_ranges
475 sections if so requested.
476 (debug_displays): Likewise.
477 (load_debug_range): New function: Grabs the contents of a
478 .debug_ranges section.
479 (free_debug_range): New function: Releases the grabbed
480 .debug_ranges section.
481 (decode_64bit_range): New function: Displays a 64-bit range in a
482 .debug_ranges section.
483 (decode_range): New function: Displays a 32-bit range in a
484 .debug_ranges section.
485 (read_and_display_attr_value): Record the value of DW_AT_low_pc
486 attributes. Use decode_ranges() to display a DW_AT_ranges
487 attribute.
488 (display_debug_info): Use load_debug_range() and
489 free_debug_range().
490 (display_64bit_debug_ranges): New function. Displays the contents
491 of a 64-bit format .debug_ranges section.
492 (display_debug_ranges): New function: Displays the contents of a
493 32-bit .debug_ranges section.
494
495 (main): Move cmdline_dump_sects and num_cmdline_dump_sects into the
496 global scope.
497 (process_object): Initialise the dump_sects array from the
498 cmdline_dump_sects array before processing each object file.
499
500 (streq, strneq): New macros. Use them to replace occurrences of
501 strcmp() and strncmp().
502
503 (debug_information): New structure array to replace
504 debug_line_pointer_sizes array.
505 (num_debug_info_entries): New variable to replace
506 num_debug_line_pointers.
507 (get_pointer_size_of_comp_unit): New function: Returns the pointer
508 size of a given compilation unit.
509 (get_debug_info): New function to replace
510 get_debug_line_pointer_sizes.
511 (display_debug_lines): Use the new functions.
512 (display_debug_loc): Likewise.
513
514 (disassemble_section): Change return type to int.
515 (display_debug_lines): Move local variables to their
516 innermost scope.
517 (display_debug_section): Likewise. Also record the return value
518 of functions called and pass this back to the parent. Also only
519 warn about undumped sections when the user explicitly requested
520 their dumping.
521
522 (debug_apply_rela_addends): Allow relocations against STT_OBJECT
523 types as well.
524
525 * NEWS: Mention the support for decoding .debug_ranges sections.
526 * doc/binutils.texi: Document the new command line switch to
527 readelf.
528
529 2004-11-03 Randolph Chung <tausq@debian.org>
530
531 * readelf.c (ia64_unw_aux_info, ia64_unw_table_entry): Rename from
532 unw_aux_info and unw_table_entry.
533 (find_symbol_for_address): Pass symtab and strtab info explicitly.
534 (dump_ia64_unwind): Rename unw_{aux_info,table_entry} with ia64_
535 prefix.
536 (slurp_ia64_unwind_table): Likewise.
537 (ia64_process_unwind): Rename from old process_unwind.
538 (hppa_unw_aux_info): New.
539 (dump_hppa_unwind): New.
540 (slurp_hppa_unwind_table): New.
541 (hppa_process_unwind): New.
542 (process_unwind): Factor out common unwinding checks; dispatch to
543 unwind handler based on machine type.
544
545 2004-11-02 Nick Clifton <nickc@redhat.com>
546
547 * readelf.c (display_debug_lines): Fix typo in error message.
548
549 2004-10-26 Mark Mitchell <mark@codesourcery.com>
550
551 * readelf.c (get_note_type): Handle notes not in core files.
552 (process_note_sections): New function.
553 (process_corefile_contents): Rename to ...
554 (process_notes): ... this.
555 (process_object): Call process_notes, not
556 process_corefile_contents.
557 * doc/binutils.texi: Update readelf -n documentation.
558
559 2004-10-26 Jakub Jelinek <jakub@redhat.com>
560
561 * ar.c (extract_file): Set atime to mtime for ar xo.
562
563 2004-10-25 Ian Lance Taylor <ian@wasabisystems.com>
564
565 * stabs.c (stab_demangle_v3_arglist): New static function, broken
566 out of stab_demangle_v3_argtypes.
567 (stab_demangle_v3_argtypes): Call it.
568 (stab_demangle_v3_arg): Handle DEMANGLE_COMPONENT_FUNCTION_TYPE.
569 If we find an unrecognized component, print out its number.
570
571 2004-10-25 David Mosberger <davidm@hpl.hp.com>
572
573 * readelf.c (slurp_ia64_unwind_table): Support relocations against
574 non-section symbols by adding in the symbol value.
575
576 2004-10-25 Nick Clifton <nickc@redhat.com>
577
578 PR 465
579 * readelf.c (dynamic_strings_length): New global variable.
580 (VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
581 strings in the dynamic string table.
582 (process_section_headers): Initialise dynamic_strings_length.
583 (process_dynamic_section): Likewise.
584 (process_object): Reset dynamic_string_length when the buffer is freed.
585 (dynamic_sections_mips_val): Use the new macros.
586 (process_dynamic_section): Likewise.
587 (process_version_sections): Likewise.
588 (process_symbol_table): Likewise.
589 (process_syminfo): Likewise.
590 (process_mips_specific): Likewise.
591 (dump_relocations): Add a new parameter 'strtablen' and use this
592 to verify that string offset in a given reloc is valid. Print a
593 suitable error message otherwise.
594 (process_relocs): Pass the new argument to dump_relocations.
595
596 2004-10-23 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
597
598 * dlltool.c: Include <assert.h>.
599 (PREFIX_ALIAS_BASE): Define.
600 (struct export): Add member import_name;
601 (def_exports): Set import_name.
602 (make_one_lib_file): Remove prefix alias code, use import_name
603 in .idata$6.
604 (gen_lib_file): Create and delete aliases.
605
606 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
607
608 * readelf.c (process_section_groups): Free symtab after use.
609
610 2004-10-18 Tommy Pettersson <ptp@lysator.liu.se>
611 Nick Clifton <nickc@redhat.com>
612
613 * strings.c (usage): Place radix values for -t option into the
614 correct order.
615
616 * objcopy.c (add_redefine_syms_file): Change error messages to use
617 <filename>:<linenumber>: format for easier parsing by automatic
618 tools.
619
620 * srconv.c (show_usage): Fix spelling typo.
621
622 * windres.c (format_from_filename): Suggest the use of -J instead
623 of -I if the file type cannot be determined.
624
625 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
626
627 * strings.c: Include <sys/stat.h>.
628
629 2004-10-18 Alan Modra <amodra@bigpond.net.au>
630
631 * budemang.c (demangle): Fix thinko.
632
633 * budemang.c (demangle): Handle "@plt" suffix.
634
635 2004-10-14 Nick Clifton <nickc@redhat.com>
636
637 * nm.c (usage): Fix description of --special-syms switch.
638
639 2004-10-13 Jakub Jelinek <jakub@redhat.com>
640
641 * strings.c (statbuf): New typedef.
642 (file_stat): Define.
643 (strings_object_file): Avoid using get_file_size, instead do the
644 checks here, using file_stat.
645 * configure.in (HAVE_STAT64): New test.
646 * configure: Rebuilt.
647 * config.in: Rebuilt.
648
649 2004-10-12 Paul Brook <paul@codesourcery.com>
650
651 * readelf.c (decode_ARM_machine_flags): Support EABI version 4.
652
653 2004-10-11 Alan Modra <amodra@bigpond.net.au>
654
655 * objdump.c (dump_symbols): Fix thinko last change. Improve error
656 messages.
657
658 2004-10-08 Nick Clifton <nickc@redhat.com>
659
660 * nm.c: Add a new switch --special-syms which, if enabled, will
661 include the ARM Mapping symbols in nm's output.
662 (usage): Mention the switch.
663 (filter_symbols): Handle the switch.
664 * objdump.c: Add a similar switch.
665 (usage): Mention the switch.
666 (dump_symbols): Handle the switch.
667 * doc/binutils.texi: Document the new switches.
668 * NEWS: Mention the new switches.
669
670 2004-10-08 Daniel Jacobowitz <dan@debian.org>
671
672 * readelf.c (get_x86_64_section_type_name): New function.
673 (get_section_type_name): Use it.
674
675 2004-10-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
676
677 * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04
678 patches.
679 * doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
680
681 2004-10-07 Alexandre Oliva <aoliva@redhat.com>
682
683 * readelf.c (get_machine_flags): Don't fall through into m68k cpu
684 types.
685
686 2004-10-01 Paul Brook <paul@codesourcery.com>
687
688 * readelf.c (get_arm_section_type_name): New function.
689 (get_section_type_name): Use it.
690
691 2004-09-28 Nick Clifton <nickc@redhat.com>
692
693 * nm.c: Reorder functions to eliminate most of the static function
694 prototypes.
695
696 2004-09-22 Alan Modra <amodra@bigpond.net.au>
697
698 * readelf.c (process_program_headers): Don't include .tbss in non-TLS
699 segments.
700
701 2004-09-17 Alan Modra <amodra@bigpond.net.au>
702
703 * Makefile.am: Run "make dep-am".
704 * Makefile.in: Regenerate.
705 * config.in: Regenerate.
706 * configure: Regenerate.
707 * doc/Makefile.in: Regenerate.
708 * po/binutils.pot: Regenerate.
709
710 2004-09-12 Alan Modra <amodra@bigpond.net.au>
711
712 * readelf.c (decode_location_expression): Sign extend value for
713 DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.
714
715 2004-09-09 Nick Clifton <nickc@redhat.com>
716
717 PR 363
718 * ar.c (replace_members): Do not use get_file_size as
719 ar_emul_append correctly handles missing files.
720
721 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
722
723 * configure: Regenerated with autconfig 2.13.
724
725 2004-09-06 Danny Smith <dannysmith@users.sourceforge.net>
726
727 * doc/binutils.texi (dlltool): Update --add-underscore, --kill-at
728 documentation.
729
730 2004-09-06 Michael Wardle <mbw@endbracket.net>
731
732 * doc/binutils.texi (objdump): Document that the -x switch includes
733 the effect of the -p switch.
734
735 2004-09-04 Danny Smith <dannysmith@users.sourceforge.net>
736
737 * dlltool.c (make_one_lib_file): Test if internal_name was
738 specified by user before using it.
739
740 2004-09-02 Carlo Wood <carlo@alinoe.com>
741
742 PR binutils/351
743 * dlltool.c (make_one_lib_file): For IDATA6 take the name from
744 exp->internal_name if it is present.
745
746 2004-09-02 Alexandre Oliva <aoliva@redhat.com>
747
748 * MAINTAINERS: Add self as co-maintainer of FR-V.
749 * readelf.c (get_machine_flags): Print FR-V cpu types.
750
751 2004-08-28 Alan Modra <amodra@bigpond.net.au>
752
753 * nm.c (show_synthetic): New var.
754 (long_options): Add "synthetic".
755 (usage): Here too.
756 (display_rel_file): Handle show_synthetic.
757
758 2004-08-28 Alan Modra <amodra@bigpond.net.au>
759
760 * objdump.c (dump_bfd): Pass both symbol tables to
761 bfd_get_synthetic_symtab.
762
763 2004-08-17 Jakub Jelinek <jakub@redhat.com>
764
765 * objdump.c (dump_bfd): For relocatable objects, pass syms instead
766 of dynsyms to bfd_get_synthetic_symtab.
767
768 2004-08-16 Alan Modra <amodra@bigpond.net.au>
769
770 * readelf.c (debug_apply_rela_addends): New function, extracted from..
771 (display_debug_info): ..here.
772 (display_debug_frames): Call debug_apply_rela_addends. Don't do
773 DW_EH_PE_pcrel adjustment for ET_REL.
774
775 2004-08-06 Andreas Schwab <schwab@suse.de>
776
777 * readelf.c (dump_relocations): Fix typo when calculating
778 sec_index.
779
780 2004-08-02 Jakub Bogusz <qboosh@pld-linux.org>
781
782 * dllwrap.c (deduce_name): Fix typos introduced when program_name
783 was renamed to prog_name.
784
785 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
786
787 * readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
788 EF_SH2A_NOFPU.
789
790 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
791
792 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
793 * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
794 EF_SH4A_NOFPU.
795 2003-06-12 Alexandre Oliva <aoliva@redhat.com>
796 * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
797
798 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
799
800 * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section
801 to access comdat.
802 * objdump.c (dump_section_header): Likewise.
803
804 2004-07-15 Aravinda PR <aravindapr@rediffmail.com>
805
806 * nlmconv.c (main): Pass map_file argument to link_inputs.
807 (link_inputs): Use map_file argument if it is defined.
808
809 2004-07-13 Nick Clifton <nickc@redhat.com>
810
811 * dllwrap.c: Replace 'program_name' with 'prog_name' to avoid
812 conflicts with exported global defined in bucomm.h.
813 (deduce_name): Rename parameter 'program_name' to 'name' to avoid
814 shadowing the global defined in bucomm.h.
815
816 2004-07-12 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
817
818 * dlltool.c (ext_prefix_alias): New global variable.
819 (make_one_lib_file): Add aliases with prefixes for external
820 and import definitions.
821 (usage): Document -p option.
822 (long_options): Add --ext-prefix-alias option.
823 (main): Handle -p.
824 * doc/binutils.texi: Document new switch.
825 * NEWS: Mention new switch.
826
827 2004-07-09 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
828
829 * binutils/dlltool.c (asm_prefix): Add parameter: name.
830 No underscore for symbols beginning with ?.
831 (ASM_PREFIX): Add parameter: NAME.
832 (gen_exp_file): Use new parameter.
833 (make_label): Likewise.
834 (make_imp_label): Likewise.
835 (make_one_lib_file): Likewise.
836
837 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
838
839 * MAINTAINERS: Added myself to the list.
840 * readelf.c: Include "elf/crx.h".
841 (guess_is_rela): Handle EM_CRX.
842 (get_machine_name): Likewise.
843 (dump_relocations): Likewise.
844
845 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
846
847 * doc/binutils.texi (nm): Clarify weak symbol description.
848
849 2004-06-24 Ben Elliston <bje@au.ibm.com>
850
851 * readelf.c (get_segment_type): Display "GNU_STACK", not just
852 "STACK", when a PT_GNU_STACK segment is encountered.
853
854 2004-06-24 Alan Modra <amodra@bigpond.net.au>
855
856 * objcopy.c (copy_section): Don't set _cooked_size.
857
858 2004-06-22 Alan Modra <amodra@bigpond.net.au>
859
860 * readelf.c (Elf32_Word): Delete.
861 (get_32bit_dynamic_section): Handle SGI ELF dynamic segment.
862 (get_64bit_dynamic_section): Likewise.
863
864 * readelf.c (get_32bit_dynamic_section): Stop at first DT_NULL entry.
865 (get_64bit_dynamic_section): Likewise.
866
867 * readelf.c (dynamic_nent): New variable.
868 (get_32bit_dynamic_section): Set it.
869 (get_64bit_dynamic_section): Here too.
870 (process_dynamic_section): Use it instead of dynamic_size.
871 (process_syminfo): Likewise.
872
873 * readelf.c (get_32bit_dynamic_section): Correct number of entries
874 translated from external to internal form.
875 (get_64bit_dynamic_section): Likewise.
876
877 2004-06-18 Jie Zhang <zhangjie@magima.com.cn>
878
879 * readelf.c (process_program_headers): When locating the dynamic
880 section use the section table if it is present.
881 (dynamic_segment): Renamed to dynamic_section.
882 Replace references to dynamic segment with references to dynamic
883 section, except where appropriate.
884 (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
885 (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
886 (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
887 (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
888 Remove tag counting code as it is no longer needed.
889 (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
890 Remove tag counting code as it is no longer needed.
891 (process_dynamic_segment): Rename to process_dynamic_section.
892
893 2004-06-15 Alan Modra <amodra@bigpond.net.au>
894
895 * objcopy.c (copy_section): Use bfd_get_section_size instead of
896 _raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done.
897 (compare_section_lma): Likewise.
898 * addr2line.c (find_address_in_section): Likewise.
899 * coffgrok.c (do_sections_p1): Likewise.
900 * dlltool.c (scan_drectve_symbols): Likewise.
901 * nlmconv.c (main): Likewise.
902 (copy_sections): Likewise.
903 (powerpc_mangle_relocs): Likewise.
904 * objdump.c (disassemble_section): Likewise.
905 * prdbg.c (find_address_in_section): Likewise.
906 * size.c (berkeley_sum): Likewise.
907 * srconv.c (wr_ob): Likewise.
908 * strings.c (strings_a_section): Likewise.
909
910 2004-05-28 Ian Lance Taylor <ian@wasabisystems.com>
911
912 * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
913
914 2004-05-17 David Heine <dlheine@tensilica.com>
915
916 * objcopy.c (setup_bfd_headers): New function.
917 (copy_object): Call setup_bfd_headers.
918
919 2004-05-13 Paul Brook <paul@codesourcery.com>
920
921 * readelf.c (display_debug_frames): Handle dwarf3 format CIE
922 entries.
923
924 2004-05-13 Nick Clifton <nickc@redhat.com>
925
926 * po/fr.po: Updated French translation.
927
928 2004-05-11 Jakub Jelinek <jakub@redhat.com>
929
930 * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
931
932 2004-05-07 H.J. Lu <hongjiu.lu@intel.com>
933
934 * readelf.c (section_groups): New.
935 (group_count): New.
936 (section_headers_groups): New.
937 (process_section_groups): Populate group_count, section_groups
938 and section_headers_groups.
939 (process_unwind): Support section group.
940 (process_object): Always call process_section_groups. Free
941 section_groups and section_headers_groups.
942
943 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
944
945 * readelf.c (process_section_headers): Use %3lu on sh_info.
946
947 2004-04-30 Michael Deutschmann <michael@talamasca.ocis.net>
948
949 * ranlib.sh: Quote $1 argument in case it contains spaces.
950
951 2004-04-27 John Paul Wallington <jpw@gnu.org>
952
953 * objcopy.c (copy_usage, strip_usage): Fix spelling.
954
955 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
956
957 * readelf.c (do_section_groups): New.
958 (options): Add --section-groups/-g.
959 (usage): Mention --section-groups/-g.
960 (parse_args): Support --section-groups/-g.
961 (get_group_flags): New.
962 (process_section_groups): New.
963 (process_object): Call process_section_groups.
964
965 2004-04-24 Alan Modra <amodra@bigpond.net.au>
966
967 * objdump.c (disassemble_section): Don't disassemble sections
968 without SEC_HAS_CONTENTS.
969
970 2004-04-22 Jakub Jelinek <jakub@redhat.com>
971
972 * objdump.c (synthsyms, synthcount): New variables.
973 (disassemble_data): Use dynsyms for stripped binaries or libraries.
974 Add synthetized symbols.
975 (dump_bfd): For disassemble, initialize dynsyms always and
976 also synthsyms. Free synthsyms and clear {sym,dynsym,synth}count
977 before returning.
978
979 2004-04-14 Alan Modra <amodra@bigpond.net.au>
980
981 * strings.c (print_strings): Cast file_off to unsigned long in
982 printf arg list.
983
984 2004-04-07 Benjamin Monate <benjamin.monate@cea.fr>
985
986 PR 86
987 * arsup.c (ar_save): Use smart_rename.
988
989 2004-04-01 Dean Luick <luick@cray.com>
990
991 * readelf.c (display_debug_pubnames): Align offset and data
992 columns.
993 (read_and_display_attr_value): Add missing break;
994 (debug_displays): Enable the display of the .debug_pubtypes
995 section.
996
997 2004-03-30 Stan Shebs <shebs@apple.com>
998
999 * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
1000 support files, no longer used.
1001
1002 2004-03-23 Paul Brook <paul@codesourcery.com>
1003
1004 * readelf.c (decode_ARM_machine_flags): Add EABI v3.
1005
1006 2004-03-21 Richard Henderson <rth@redhat.com>
1007
1008 * readelf.c (display_debug_frames): Don't crash for mismatched
1009 DW_CFA_restore_state.
1010
1011 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1012
1013 * Makefile.am: Run "make dep-am".
1014 * Makefile.in: Regenerate.
1015 * aclocal.m4: Regenerate.
1016 * config.in: Regenerate.
1017 * configure: Regenerate.
1018 * po/binutils.pot: Regenerate.
1019
1020 2004-03-15 Nathan Sidwell <nathan@codesourcery.com>
1021
1022 * objdump.c (struct SFILE): Replace current pointer with pos
1023 offset, rename size to alloc.
1024 (objdump_sprintf): Avoid unnecessary copies in the common case
1025 (disassemble_bytes): Keep sfile live throughout the
1026 function. Adjust usage appropriately.
1027
1028 2004-03-10 Ben Elliston <bje@gnu.org>
1029
1030 * MAINTAINERS: Update my mail address.
1031
1032 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1033
1034 * deflex.l: Handle "PRIVATE" string.
1035 * defparse.y (%token): Add PRIVATE.
1036 (%type): Add opt_PRIVATE.
1037 (expline): Pass opt_PRIVATE to def_exports.
1038 (opt_PRIVATE): Handle PRIVATE token.
1039 * dlltool.h (def_exports): Add 7th param for private flag to
1040 declaration.
1041 * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
1042 (struct export): Add 'private' field.
1043 (def_exports): Set 'private' field of struct exports.
1044 (scan_drectve_symbols): Adjust calls to def_exports.
1045 (scan_filtered_symbols): Likewise.
1046 (dump_def_info): Print 'private' field.
1047 (gen_def_file): Likewise.
1048 (gen_lib_file): Skip generation of lib object if private.
1049 Delete tmp object files in same order as they were generated.
1050 Don't delete non-existent private object files.
1051
1052 2004-02-27 Andreas Schwab <schwab@suse.de>
1053
1054 * ar.c (main): Support POSIX-compatible argument parsing.
1055
1056 2004-02-23 Daniel Lucq <daniel@lucq.org>
1057
1058 * readelf.c (process_mips_specific): Print conflictsno as an
1059 unsigned long.
1060
1061 2004-02-21 Dmitry Timoshkov <dmitry@baikal.ru>
1062
1063 * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
1064
1065 2004-02-19 Jakub Jelinek <jakub@redhat.com>
1066
1067 * objcopy.c (copy_section): Avoid warnings.
1068
1069 2004-02-14 Andrew Cagney <cagney@redhat.com>
1070
1071 * ar.c (remove_output): Use bfd_cache_close.
1072 * arsup.c (ar_end): Ditto.
1073
1074 2004-01-21 Roland McGrath <roland@redhat.com>
1075
1076 * readelf.c (get_note_type): Match NT_AUXV.
1077
1078 2004-01-20 Nick Clifton <nickc@redhat.com>
1079
1080 * version.c (print_version): Update copyright year to 2004.
1081
1082 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1083
1084 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
1085 throughout.
1086 * aclocal.m4: Regenerate.
1087 * configure: Regenerate.
1088
1089 2004-01-12 Jakub Jelinek <jakub@redhat.com>
1090
1091 * objcopy.c: Include elf-bfd.h.
1092 (is_strip_section): Don't strip debugging sections if
1093 STRIP_NONDEBUG.
1094 (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
1095 ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
1096
1097 * objcopy.c (copy_section): Free relpp if relcount == 0.
1098
1099 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1100
1101 * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
1102 (stab_demangle_argtypes): Likewise.
1103 (stab_demangle_v3_argtypes): New static function.
1104 (stab_demangle_v3_arg): New static function.
1105
1106 2004-01-12 Nick Clifton <nickc@redhat.com>
1107
1108 * objcopy.c (copy_object): Make the function boolean, returning
1109 FALSE upon failure.
1110 (copy_archive): Handle the return value from copy_object.
1111 (copy_file): Likewise.
1112
1113 2004-01-07 Nick Clifton <nickc@redhat.com>
1114
1115 * readelf.c (find_section): New function. Locates a named
1116 section.
1117 (get_debug_line_pointer_sizes): New function: Initialises the
1118 debug_line_pointer_sizes array.
1119 (display_debug_lines): Call get_debug_line_pointer_sizes.
1120 (display_debug_loc): Likewise.
1121 (load_debug_loc): Use find_section.
1122 (load_debug_str): Likewise.
1123 (display_debug_info): Likewise.
1124 (prescan_debug_info): Delete.
1125 (debug_displays): Remove prescan field.
1126 (process_section_contents): Do not perform prescans.
1127
1128 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1129
1130 * objcopy.c (filter_bytes): Delete. Move code to..
1131 (copy_section): ..here. Simplify size adjustment. Divide
1132 section lma by interleave.
1133
1134 2004-01-02 Nick Clifton <nickc@redhat.com>
1135
1136 * po/ru.po: New file: Russian translation.
1137 * configure.in (ALL_LINGUAS): Add ru
1138 * configure: Regenerate.
1139
1140 For older changes see ChangeLog-0203
1141 \f
1142 Local Variables:
1143 mode: change-log
1144 left-margin: 8
1145 fill-column: 74
1146 version-control: never
1147 End: