readelf.c (get_note_type): Handle notes not in core files.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2004-10-26 Mark Mitchell <mark@codesourcery.com>
2
3 * readelf.c (get_note_type): Handle notes not in core files.
4 (process_note_sections): New function.
5 (process_corefile_contents): Rename to ...
6 (process_notes): ... this.
7 (process_object): Call process_notes, not
8 process_corefile_contents.
9 * doc/binutils.texi: Update readelf -n documentation.
10
11 2004-10-26 Jakub Jelinek <jakub@redhat.com>
12
13 * ar.c (extract_file): Set atime to mtime for ar xo.
14
15 2004-10-25 Ian Lance Taylor <ian@wasabisystems.com>
16
17 * stabs.c (stab_demangle_v3_arglist): New static function, broken
18 out of stab_demangle_v3_argtypes.
19 (stab_demangle_v3_argtypes): Call it.
20 (stab_demangle_v3_arg): Handle DEMANGLE_COMPONENT_FUNCTION_TYPE.
21 If we find an unrecognized component, print out its number.
22
23 2004-10-25 David Mosberger <davidm@hpl.hp.com>
24
25 * readelf.c (slurp_ia64_unwind_table): Support relocations against
26 non-section symbols by adding in the symbol value.
27
28 2004-10-25 Nick Clifton <nickc@redhat.com>
29
30 PR 465
31 * readelf.c (dynamic_strings_length): New global variable.
32 (VALID_DYNAMIC_NAME, GET_DYNAMIC_NAME): New macros for accessing
33 strings in the dynamic string table.
34 (process_section_headers): Initialise dynamic_strings_length.
35 (process_dynamic_section): Likewise.
36 (process_object): Reset dynamic_string_length when the buffer is freed.
37 (dynamic_sections_mips_val): Use the new macros.
38 (process_dynamic_section): Likewise.
39 (process_version_sections): Likewise.
40 (process_symbol_table): Likewise.
41 (process_syminfo): Likewise.
42 (process_mips_specific): Likewise.
43 (dump_relocations): Add a new parameter 'strtablen' and use this
44 to verify that string offset in a given reloc is valid. Print a
45 suitable error message otherwise.
46 (process_relocs): Pass the new argument to dump_relocations.
47
48 2004-10-23 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
49
50 * dlltool.c: Include <assert.h>.
51 (PREFIX_ALIAS_BASE): Define.
52 (struct export): Add member import_name;
53 (def_exports): Set import_name.
54 (make_one_lib_file): Remove prefix alias code, use import_name
55 in .idata$6.
56 (gen_lib_file): Create and delete aliases.
57
58 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
59
60 * readelf.c (process_section_groups): Free symtab after use.
61
62 2004-10-18 Tommy Pettersson <ptp@lysator.liu.se>
63 Nick Clifton <nickc@redhat.com>
64
65 * strings.c (usage): Place radix values for -t option into the
66 correct order.
67
68 * objcopy.c (add_redefine_syms_file): Change error messages to use
69 <filename>:<linenumber>: format for easier parsing by automatic
70 tools.
71
72 * srconv.c (show_usage): Fix spelling typo.
73
74 * windres.c (format_from_filename): Suggest the use of -J instead
75 of -I if the file type cannot be determined.
76
77 2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
78
79 * strings.c: Include <sys/stat.h>.
80
81 2004-10-18 Alan Modra <amodra@bigpond.net.au>
82
83 * budemang.c (demangle): Fix thinko.
84
85 * budemang.c (demangle): Handle "@plt" suffix.
86
87 2004-10-14 Nick Clifton <nickc@redhat.com>
88
89 * nm.c (usage): Fix description of --special-syms switch.
90
91 2004-10-13 Jakub Jelinek <jakub@redhat.com>
92
93 * strings.c (statbuf): New typedef.
94 (file_stat): Define.
95 (strings_object_file): Avoid using get_file_size, instead do the
96 checks here, using file_stat.
97 * configure.in (HAVE_STAT64): New test.
98 * configure: Rebuilt.
99 * config.in: Rebuilt.
100
101 2004-10-12 Paul Brook <paul@codesourcery.com>
102
103 * readelf.c (decode_ARM_machine_flags): Support EABI version 4.
104
105 2004-10-11 Alan Modra <amodra@bigpond.net.au>
106
107 * objdump.c (dump_symbols): Fix thinko last change. Improve error
108 messages.
109
110 2004-10-08 Nick Clifton <nickc@redhat.com>
111
112 * nm.c: Add a new switch --special-syms which, if enabled, will
113 include the ARM Mapping symbols in nm's output.
114 (usage): Mention the switch.
115 (filter_symbols): Handle the switch.
116 * objdump.c: Add a similar switch.
117 (usage): Mention the switch.
118 (dump_symbols): Handle the switch.
119 * doc/binutils.texi: Document the new switches.
120 * NEWS: Mention the new switches.
121
122 2004-10-08 Daniel Jacobowitz <dan@debian.org>
123
124 * readelf.c (get_x86_64_section_type_name): New function.
125 (get_section_type_name): Use it.
126
127 2004-10-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
128
129 * dlltool.c (make_one_lib_file): Revert 2004-09-02 and 2004-09-04
130 patches.
131 * doc/binutils.texi (dlltool): Revert 2004-09-06 patch.
132
133 2004-10-07 Alexandre Oliva <aoliva@redhat.com>
134
135 * readelf.c (get_machine_flags): Don't fall through into m68k cpu
136 types.
137
138 2004-10-01 Paul Brook <paul@codesourcery.com>
139
140 * readelf.c (get_arm_section_type_name): New function.
141 (get_section_type_name): Use it.
142
143 2004-09-28 Nick Clifton <nickc@redhat.com>
144
145 * nm.c: Reorder functions to eliminate most of the static function
146 prototypes.
147
148 2004-09-22 Alan Modra <amodra@bigpond.net.au>
149
150 * readelf.c (process_program_headers): Don't include .tbss in non-TLS
151 segments.
152
153 2004-09-17 Alan Modra <amodra@bigpond.net.au>
154
155 * Makefile.am: Run "make dep-am".
156 * Makefile.in: Regenerate.
157 * config.in: Regenerate.
158 * configure: Regenerate.
159 * doc/Makefile.in: Regenerate.
160 * po/binutils.pot: Regenerate.
161
162 2004-09-12 Alan Modra <amodra@bigpond.net.au>
163
164 * readelf.c (decode_location_expression): Sign extend value for
165 DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.
166
167 2004-09-09 Nick Clifton <nickc@redhat.com>
168
169 PR 363
170 * ar.c (replace_members): Do not use get_file_size as
171 ar_emul_append correctly handles missing files.
172
173 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
174
175 * configure: Regenerated with autconfig 2.13.
176
177 2004-09-06 Danny Smith <dannysmith@users.sourceforge.net>
178
179 * doc/binutils.texi (dlltool): Update --add-underscore, --kill-at
180 documentation.
181
182 2004-09-06 Michael Wardle <mbw@endbracket.net>
183
184 * doc/binutils.texi (objdump): Document that the -x switch includes
185 the effect of the -p switch.
186
187 2004-09-04 Danny Smith <dannysmith@users.sourceforge.net>
188
189 * dlltool.c (make_one_lib_file): Test if internal_name was
190 specified by user before using it.
191
192 2004-09-02 Carlo Wood <carlo@alinoe.com>
193
194 PR binutils/351
195 * dlltool.c (make_one_lib_file): For IDATA6 take the name from
196 exp->internal_name if it is present.
197
198 2004-09-02 Alexandre Oliva <aoliva@redhat.com>
199
200 * MAINTAINERS: Add self as co-maintainer of FR-V.
201 * readelf.c (get_machine_flags): Print FR-V cpu types.
202
203 2004-08-28 Alan Modra <amodra@bigpond.net.au>
204
205 * nm.c (show_synthetic): New var.
206 (long_options): Add "synthetic".
207 (usage): Here too.
208 (display_rel_file): Handle show_synthetic.
209
210 2004-08-28 Alan Modra <amodra@bigpond.net.au>
211
212 * objdump.c (dump_bfd): Pass both symbol tables to
213 bfd_get_synthetic_symtab.
214
215 2004-08-17 Jakub Jelinek <jakub@redhat.com>
216
217 * objdump.c (dump_bfd): For relocatable objects, pass syms instead
218 of dynsyms to bfd_get_synthetic_symtab.
219
220 2004-08-16 Alan Modra <amodra@bigpond.net.au>
221
222 * readelf.c (debug_apply_rela_addends): New function, extracted from..
223 (display_debug_info): ..here.
224 (display_debug_frames): Call debug_apply_rela_addends. Don't do
225 DW_EH_PE_pcrel adjustment for ET_REL.
226
227 2004-08-06 Andreas Schwab <schwab@suse.de>
228
229 * readelf.c (dump_relocations): Fix typo when calculating
230 sec_index.
231
232 2004-08-02 Jakub Bogusz <qboosh@pld-linux.org>
233
234 * dllwrap.c (deduce_name): Fix typos introduced when program_name
235 was renamed to prog_name.
236
237 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
238
239 * readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
240 EF_SH2A_NOFPU.
241
242 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
243
244 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
245 * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
246 EF_SH4A_NOFPU.
247 2003-06-12 Alexandre Oliva <aoliva@redhat.com>
248 * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
249
250 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
251
252 * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section
253 to access comdat.
254 * objdump.c (dump_section_header): Likewise.
255
256 2004-07-15 Aravinda PR <aravindapr@rediffmail.com>
257
258 * nlmconv.c (main): Pass map_file argument to link_inputs.
259 (link_inputs): Use map_file argument if it is defined.
260
261 2004-07-13 Nick Clifton <nickc@redhat.com>
262
263 * dllwrap.c: Replace 'program_name' with 'prog_name' to avoid
264 conflicts with exported global defined in bucomm.h.
265 (deduce_name): Rename parameter 'program_name' to 'name' to avoid
266 shadowing the global defined in bucomm.h.
267
268 2004-07-12 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
269
270 * dlltool.c (ext_prefix_alias): New global variable.
271 (make_one_lib_file): Add aliases with prefixes for external
272 and import definitions.
273 (usage): Document -p option.
274 (long_options): Add --ext-prefix-alias option.
275 (main): Handle -p.
276 * doc/binutils.texi: Document new switch.
277 * NEWS: Mention new switch.
278
279 2004-07-09 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
280
281 * binutils/dlltool.c (asm_prefix): Add parameter: name.
282 No underscore for symbols beginning with ?.
283 (ASM_PREFIX): Add parameter: NAME.
284 (gen_exp_file): Use new parameter.
285 (make_label): Likewise.
286 (make_imp_label): Likewise.
287 (make_one_lib_file): Likewise.
288
289 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
290
291 * MAINTAINERS: Added myself to the list.
292 * readelf.c: Include "elf/crx.h".
293 (guess_is_rela): Handle EM_CRX.
294 (get_machine_name): Likewise.
295 (dump_relocations): Likewise.
296
297 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
298
299 * doc/binutils.texi (nm): Clarify weak symbol description.
300
301 2004-06-24 Ben Elliston <bje@au.ibm.com>
302
303 * readelf.c (get_segment_type): Display "GNU_STACK", not just
304 "STACK", when a PT_GNU_STACK segment is encountered.
305
306 2004-06-24 Alan Modra <amodra@bigpond.net.au>
307
308 * objcopy.c (copy_section): Don't set _cooked_size.
309
310 2004-06-22 Alan Modra <amodra@bigpond.net.au>
311
312 * readelf.c (Elf32_Word): Delete.
313 (get_32bit_dynamic_section): Handle SGI ELF dynamic segment.
314 (get_64bit_dynamic_section): Likewise.
315
316 * readelf.c (get_32bit_dynamic_section): Stop at first DT_NULL entry.
317 (get_64bit_dynamic_section): Likewise.
318
319 * readelf.c (dynamic_nent): New variable.
320 (get_32bit_dynamic_section): Set it.
321 (get_64bit_dynamic_section): Here too.
322 (process_dynamic_section): Use it instead of dynamic_size.
323 (process_syminfo): Likewise.
324
325 * readelf.c (get_32bit_dynamic_section): Correct number of entries
326 translated from external to internal form.
327 (get_64bit_dynamic_section): Likewise.
328
329 2004-06-18 Jie Zhang <zhangjie@magima.com.cn>
330
331 * readelf.c (process_program_headers): When locating the dynamic
332 section use the section table if it is present.
333 (dynamic_segment): Renamed to dynamic_section.
334 Replace references to dynamic segment with references to dynamic
335 section, except where appropriate.
336 (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
337 (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
338 (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
339 (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
340 Remove tag counting code as it is no longer needed.
341 (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
342 Remove tag counting code as it is no longer needed.
343 (process_dynamic_segment): Rename to process_dynamic_section.
344
345 2004-06-15 Alan Modra <amodra@bigpond.net.au>
346
347 * objcopy.c (copy_section): Use bfd_get_section_size instead of
348 _raw_size or bfd_get_section_size_before_reloc. Don't set reloc_done.
349 (compare_section_lma): Likewise.
350 * addr2line.c (find_address_in_section): Likewise.
351 * coffgrok.c (do_sections_p1): Likewise.
352 * dlltool.c (scan_drectve_symbols): Likewise.
353 * nlmconv.c (main): Likewise.
354 (copy_sections): Likewise.
355 (powerpc_mangle_relocs): Likewise.
356 * objdump.c (disassemble_section): Likewise.
357 * prdbg.c (find_address_in_section): Likewise.
358 * size.c (berkeley_sum): Likewise.
359 * srconv.c (wr_ob): Likewise.
360 * strings.c (strings_a_section): Likewise.
361
362 2004-05-28 Ian Lance Taylor <ian@wasabisystems.com>
363
364 * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
365
366 2004-05-17 David Heine <dlheine@tensilica.com>
367
368 * objcopy.c (setup_bfd_headers): New function.
369 (copy_object): Call setup_bfd_headers.
370
371 2004-05-13 Paul Brook <paul@codesourcery.com>
372
373 * readelf.c (display_debug_frames): Handle dwarf3 format CIE
374 entries.
375
376 2004-05-13 Nick Clifton <nickc@redhat.com>
377
378 * po/fr.po: Updated French translation.
379
380 2004-05-11 Jakub Jelinek <jakub@redhat.com>
381
382 * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
383
384 2004-05-07 H.J. Lu <hongjiu.lu@intel.com>
385
386 * readelf.c (section_groups): New.
387 (group_count): New.
388 (section_headers_groups): New.
389 (process_section_groups): Populate group_count, section_groups
390 and section_headers_groups.
391 (process_unwind): Support section group.
392 (process_object): Always call process_section_groups. Free
393 section_groups and section_headers_groups.
394
395 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
396
397 * readelf.c (process_section_headers): Use %3lu on sh_info.
398
399 2004-04-30 Michael Deutschmann <michael@talamasca.ocis.net>
400
401 * ranlib.sh: Quote $1 argument in case it contains spaces.
402
403 2004-04-27 John Paul Wallington <jpw@gnu.org>
404
405 * objcopy.c (copy_usage, strip_usage): Fix spelling.
406
407 2004-04-26 H.J. Lu <hongjiu.lu@intel.com>
408
409 * readelf.c (do_section_groups): New.
410 (options): Add --section-groups/-g.
411 (usage): Mention --section-groups/-g.
412 (parse_args): Support --section-groups/-g.
413 (get_group_flags): New.
414 (process_section_groups): New.
415 (process_object): Call process_section_groups.
416
417 2004-04-24 Alan Modra <amodra@bigpond.net.au>
418
419 * objdump.c (disassemble_section): Don't disassemble sections
420 without SEC_HAS_CONTENTS.
421
422 2004-04-22 Jakub Jelinek <jakub@redhat.com>
423
424 * objdump.c (synthsyms, synthcount): New variables.
425 (disassemble_data): Use dynsyms for stripped binaries or libraries.
426 Add synthetized symbols.
427 (dump_bfd): For disassemble, initialize dynsyms always and
428 also synthsyms. Free synthsyms and clear {sym,dynsym,synth}count
429 before returning.
430
431 2004-04-14 Alan Modra <amodra@bigpond.net.au>
432
433 * strings.c (print_strings): Cast file_off to unsigned long in
434 printf arg list.
435
436 2004-04-07 Benjamin Monate <benjamin.monate@cea.fr>
437
438 PR 86
439 * arsup.c (ar_save): Use smart_rename.
440
441 2004-04-01 Dean Luick <luick@cray.com>
442
443 * readelf.c (display_debug_pubnames): Align offset and data
444 columns.
445 (read_and_display_attr_value): Add missing break;
446 (debug_displays): Enable the display of the .debug_pubtypes
447 section.
448
449 2004-03-30 Stan Shebs <shebs@apple.com>
450
451 * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
452 support files, no longer used.
453
454 2004-03-23 Paul Brook <paul@codesourcery.com>
455
456 * readelf.c (decode_ARM_machine_flags): Add EABI v3.
457
458 2004-03-21 Richard Henderson <rth@redhat.com>
459
460 * readelf.c (display_debug_frames): Don't crash for mismatched
461 DW_CFA_restore_state.
462
463 2004-03-19 Alan Modra <amodra@bigpond.net.au>
464
465 * Makefile.am: Run "make dep-am".
466 * Makefile.in: Regenerate.
467 * aclocal.m4: Regenerate.
468 * config.in: Regenerate.
469 * configure: Regenerate.
470 * po/binutils.pot: Regenerate.
471
472 2004-03-15 Nathan Sidwell <nathan@codesourcery.com>
473
474 * objdump.c (struct SFILE): Replace current pointer with pos
475 offset, rename size to alloc.
476 (objdump_sprintf): Avoid unnecessary copies in the common case
477 (disassemble_bytes): Keep sfile live throughout the
478 function. Adjust usage appropriately.
479
480 2004-03-10 Ben Elliston <bje@gnu.org>
481
482 * MAINTAINERS: Update my mail address.
483
484 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
485
486 * deflex.l: Handle "PRIVATE" string.
487 * defparse.y (%token): Add PRIVATE.
488 (%type): Add opt_PRIVATE.
489 (expline): Pass opt_PRIVATE to def_exports.
490 (opt_PRIVATE): Handle PRIVATE token.
491 * dlltool.h (def_exports): Add 7th param for private flag to
492 declaration.
493 * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
494 (struct export): Add 'private' field.
495 (def_exports): Set 'private' field of struct exports.
496 (scan_drectve_symbols): Adjust calls to def_exports.
497 (scan_filtered_symbols): Likewise.
498 (dump_def_info): Print 'private' field.
499 (gen_def_file): Likewise.
500 (gen_lib_file): Skip generation of lib object if private.
501 Delete tmp object files in same order as they were generated.
502 Don't delete non-existent private object files.
503
504 2004-02-27 Andreas Schwab <schwab@suse.de>
505
506 * ar.c (main): Support POSIX-compatible argument parsing.
507
508 2004-02-23 Daniel Lucq <daniel@lucq.org>
509
510 * readelf.c (process_mips_specific): Print conflictsno as an
511 unsigned long.
512
513 2004-02-21 Dmitry Timoshkov <dmitry@baikal.ru>
514
515 * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
516
517 2004-02-19 Jakub Jelinek <jakub@redhat.com>
518
519 * objcopy.c (copy_section): Avoid warnings.
520
521 2004-02-14 Andrew Cagney <cagney@redhat.com>
522
523 * ar.c (remove_output): Use bfd_cache_close.
524 * arsup.c (ar_end): Ditto.
525
526 2004-01-21 Roland McGrath <roland@redhat.com>
527
528 * readelf.c (get_note_type): Match NT_AUXV.
529
530 2004-01-20 Nick Clifton <nickc@redhat.com>
531
532 * version.c (print_version): Update copyright year to 2004.
533
534 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
535
536 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
537 throughout.
538 * aclocal.m4: Regenerate.
539 * configure: Regenerate.
540
541 2004-01-12 Jakub Jelinek <jakub@redhat.com>
542
543 * objcopy.c: Include elf-bfd.h.
544 (is_strip_section): Don't strip debugging sections if
545 STRIP_NONDEBUG.
546 (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
547 ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
548
549 * objcopy.c (copy_section): Free relpp if relcount == 0.
550
551 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
552
553 * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
554 (stab_demangle_argtypes): Likewise.
555 (stab_demangle_v3_argtypes): New static function.
556 (stab_demangle_v3_arg): New static function.
557
558 2004-01-12 Nick Clifton <nickc@redhat.com>
559
560 * objcopy.c (copy_object): Make the function boolean, returning
561 FALSE upon failure.
562 (copy_archive): Handle the return value from copy_object.
563 (copy_file): Likewise.
564
565 2004-01-07 Nick Clifton <nickc@redhat.com>
566
567 * readelf.c (find_section): New function. Locates a named
568 section.
569 (get_debug_line_pointer_sizes): New function: Initialises the
570 debug_line_pointer_sizes array.
571 (display_debug_lines): Call get_debug_line_pointer_sizes.
572 (display_debug_loc): Likewise.
573 (load_debug_loc): Use find_section.
574 (load_debug_str): Likewise.
575 (display_debug_info): Likewise.
576 (prescan_debug_info): Delete.
577 (debug_displays): Remove prescan field.
578 (process_section_contents): Do not perform prescans.
579
580 2004-01-03 Alan Modra <amodra@bigpond.net.au>
581
582 * objcopy.c (filter_bytes): Delete. Move code to..
583 (copy_section): ..here. Simplify size adjustment. Divide
584 section lma by interleave.
585
586 2004-01-02 Nick Clifton <nickc@redhat.com>
587
588 * po/ru.po: New file: Russian translation.
589 * configure.in (ALL_LINGUAS): Add ru
590 * configure: Regenerate.
591
592 For older changes see ChangeLog-0203
593 \f
594 Local Variables:
595 mode: change-log
596 left-margin: 8
597 fill-column: 74
598 version-control: never
599 End:
This page took 0.04258 seconds and 5 git commands to generate.