* readelf.c (process_program_headers): When locating the dynamic section use
[platform/upstream/binutils.git] / binutils / ChangeLog
1 2004-06-18  Jie Zhang  <zhangjie@magima.com.cn>
2
3         * readelf.c (process_program_headers): When locating the dynamic
4         section use the section table if it is present.
5         (dynamic_segment): Renamed to dynamic_section.
6         Replace references to dynamic segment with references to dynamic
7         section, except where appropriate.
8         (dynamic_segment_mips_val): Rename to dynamic_section_mips_val.
9         (dynamic_segment_parisc_val): Rename to dynamic_section_parisc_val.
10         (dynamic_segment_ia64_val): Rename to dynamic_section_ia64_val.
11         (get_32bit_dynamic_segment): Rename to get_32bit_dynamic_section.
12         Remove tag counting code as it is no longer needed.
13         (get_64bit_dynamic_segment): Rename to get_64bit_dynamic_section.
14         Remove tag counting code as it is no longer needed.
15         (process_dynamic_segment): Rename to process_dynamic_section.
16         
17 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
18
19         * objcopy.c (copy_section): Use bfd_get_section_size instead of
20         _raw_size or bfd_get_section_size_before_reloc.  Don't set reloc_done.
21         (compare_section_lma): Likewise.
22         * addr2line.c (find_address_in_section): Likewise.
23         * coffgrok.c (do_sections_p1): Likewise.
24         * dlltool.c (scan_drectve_symbols): Likewise.
25         * nlmconv.c (main): Likewise.
26         (copy_sections): Likewise.
27         (powerpc_mangle_relocs): Likewise.
28         * objdump.c (disassemble_section): Likewise.
29         * prdbg.c (find_address_in_section): Likewise.
30         * size.c (berkeley_sum): Likewise.
31         * srconv.c (wr_ob): Likewise.
32         * strings.c (strings_a_section): Likewise.
33
34 2004-05-28  Ian Lance Taylor  <ian@wasabisystems.com>
35
36         * readelf.c (decode_ARM_machine_flags): Add EF_ARM_VFP_FLOAT.
37
38 2004-05-17  David Heine  <dlheine@tensilica.com>
39
40         * objcopy.c (setup_bfd_headers): New function.
41         (copy_object): Call setup_bfd_headers.
42
43 2004-05-13  Paul Brook  <paul@codesourcery.com>
44
45         * readelf.c (display_debug_frames): Handle dwarf3 format CIE
46         entries.
47
48 2004-05-13  Nick Clifton  <nickc@redhat.com>
49
50         * po/fr.po: Updated French translation.
51
52 2004-05-11  Jakub Jelinek  <jakub@redhat.com>
53
54         * readelf.c (get_segment_type): Handle PT_GNU_RELRO.
55
56 2004-05-07  H.J. Lu  <hongjiu.lu@intel.com>
57
58         * readelf.c (section_groups): New.
59         (group_count): New.
60         (section_headers_groups): New.
61         (process_section_groups): Populate group_count, section_groups
62         and section_headers_groups.
63         (process_unwind): Support section group.
64         (process_object): Always call process_section_groups. Free
65         section_groups and section_headers_groups.
66
67 2004-04-30  H.J. Lu  <hongjiu.lu@intel.com>
68
69         * readelf.c (process_section_headers): Use %3lu on sh_info.
70
71 2004-04-30  Michael Deutschmann  <michael@talamasca.ocis.net>
72
73         * ranlib.sh: Quote $1 argument in case it contains spaces.
74
75 2004-04-27  John Paul Wallington  <jpw@gnu.org>
76
77         * objcopy.c (copy_usage, strip_usage): Fix spelling.
78
79 2004-04-26  H.J. Lu  <hongjiu.lu@intel.com>
80
81         * readelf.c (do_section_groups): New.
82         (options): Add --section-groups/-g.
83         (usage): Mention --section-groups/-g.
84         (parse_args): Support --section-groups/-g.
85         (get_group_flags): New.
86         (process_section_groups): New.
87         (process_object): Call process_section_groups.
88
89 2004-04-24  Alan Modra  <amodra@bigpond.net.au>
90
91         * objdump.c (disassemble_section): Don't disassemble sections
92         without SEC_HAS_CONTENTS.
93
94 2004-04-22  Jakub Jelinek  <jakub@redhat.com>
95
96         * objdump.c (synthsyms, synthcount): New variables.
97         (disassemble_data): Use dynsyms for stripped binaries or libraries.
98         Add synthetized symbols.
99         (dump_bfd): For disassemble, initialize dynsyms always and
100         also synthsyms.  Free synthsyms and clear {sym,dynsym,synth}count
101         before returning.
102
103 2004-04-14  Alan Modra  <amodra@bigpond.net.au>
104
105         * strings.c (print_strings): Cast file_off to unsigned long in
106         printf arg list.
107
108 2004-04-07  Benjamin Monate  <benjamin.monate@cea.fr>
109
110         PR 86
111         * arsup.c (ar_save): Use smart_rename.
112
113 2004-04-01  Dean Luick <luick@cray.com>
114
115         * readelf.c (display_debug_pubnames): Align offset and data
116         columns.
117         (read_and_display_attr_value): Add missing break;
118         (debug_displays): Enable the display of the .debug_pubtypes
119         section.
120
121 2004-03-30  Stan Shebs  <shebs@apple.com>
122
123         * mpw-config.in, mpw-make.sed, mac-binutils.r: Remove MPW
124         support files, no longer used.
125
126 2004-03-23  Paul Brook  <paul@codesourcery.com>
127
128         * readelf.c (decode_ARM_machine_flags): Add EABI v3.
129
130 2004-03-21  Richard Henderson  <rth@redhat.com>
131
132         * readelf.c (display_debug_frames): Don't crash for mismatched
133         DW_CFA_restore_state.
134
135 2004-03-19  Alan Modra  <amodra@bigpond.net.au>
136
137         * Makefile.am: Run "make dep-am".
138         * Makefile.in: Regenerate.
139         * aclocal.m4: Regenerate.
140         * config.in: Regenerate.
141         * configure: Regenerate.
142         * po/binutils.pot: Regenerate.
143
144 2004-03-15  Nathan Sidwell  <nathan@codesourcery.com>
145
146         * objdump.c (struct SFILE): Replace current pointer with pos
147         offset, rename size to alloc.
148         (objdump_sprintf): Avoid unnecessary copies in the common case
149         (disassemble_bytes): Keep sfile live throughout the
150         function. Adjust usage appropriately.
151
152 2004-03-10  Ben Elliston  <bje@gnu.org>
153
154         * MAINTAINERS: Update my mail address.
155
156 2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
157
158         * deflex.l: Handle "PRIVATE" string.
159         * defparse.y (%token): Add PRIVATE.
160         (%type): Add opt_PRIVATE.
161         (expline): Pass opt_PRIVATE to def_exports.
162         (opt_PRIVATE): Handle PRIVATE token.
163         * dlltool.h (def_exports): Add 7th param for private flag to
164         declaration.
165         * dlltool.c: Add PRIVATE to comment on EXPORTS syntax.
166         (struct export): Add 'private' field.
167         (def_exports): Set 'private' field of struct exports.
168         (scan_drectve_symbols): Adjust calls to def_exports.
169         (scan_filtered_symbols): Likewise.
170         (dump_def_info): Print 'private' field.
171         (gen_def_file): Likewise.
172         (gen_lib_file): Skip generation of lib object if private.
173         Delete tmp object files in same order as they were generated.
174         Don't delete non-existent private object files.
175
176 2004-02-27  Andreas Schwab  <schwab@suse.de>
177
178         * ar.c (main): Support POSIX-compatible argument parsing.
179
180 2004-02-23  Daniel Lucq  <daniel@lucq.org>
181
182         * readelf.c (process_mips_specific): Print conflictsno as an
183         unsigned long.
184
185 2004-02-21  Dmitry Timoshkov  <dmitry@baikal.ru>
186
187         * dlltool.c (gen_exp_file): Always output names for forwarded symbols.
188
189 2004-02-19  Jakub Jelinek  <jakub@redhat.com>
190
191         * objcopy.c (copy_section): Avoid warnings.
192
193 2004-02-14  Andrew Cagney  <cagney@redhat.com>
194
195         * ar.c (remove_output): Use bfd_cache_close.
196         * arsup.c (ar_end): Ditto.
197
198 2004-01-21  Roland McGrath  <roland@redhat.com>
199
200         * readelf.c (get_note_type): Match NT_AUXV.
201
202 2004-01-20  Nick Clifton  <nickc@redhat.com>
203
204         * version.c (print_version): Update copyright year to 2004.
205
206 2004-01-14  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
207
208         * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
209         throughout.
210         * aclocal.m4: Regenerate.
211         * configure: Regenerate.
212
213 2004-01-12  Jakub Jelinek  <jakub@redhat.com>
214
215         * objcopy.c: Include elf-bfd.h.
216         (is_strip_section): Don't strip debugging sections if
217         STRIP_NONDEBUG.
218         (setup_section): If STRIP_NONDEBUG make SEC_ALLOC sections
219         ~(SEC_LOAD | SEC_HAS_CONTENTS) and on ELF targets also SHT_NOBITS.
220
221         * objcopy.c (copy_section): Free relpp if relcount == 0.
222
223 2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>
224
225         * stabs.c (parse_stab_argtypes): Handle g++ ABI version 3 names.
226         (stab_demangle_argtypes): Likewise.
227         (stab_demangle_v3_argtypes): New static function.
228         (stab_demangle_v3_arg): New static function.
229
230 2004-01-12  Nick Clifton  <nickc@redhat.com>
231
232         * objcopy.c (copy_object): Make the function boolean, returning
233         FALSE upon failure.
234         (copy_archive): Handle the return value from copy_object.
235         (copy_file): Likewise.
236
237 2004-01-07  Nick Clifton  <nickc@redhat.com>
238
239         * readelf.c (find_section): New function.  Locates a named
240         section.
241         (get_debug_line_pointer_sizes): New function:  Initialises the
242         debug_line_pointer_sizes array.
243         (display_debug_lines): Call get_debug_line_pointer_sizes.
244         (display_debug_loc): Likewise.
245         (load_debug_loc): Use find_section.
246         (load_debug_str): Likewise.
247         (display_debug_info): Likewise.
248         (prescan_debug_info): Delete.
249         (debug_displays): Remove prescan field.
250         (process_section_contents): Do not perform prescans.
251
252 2004-01-03  Alan Modra  <amodra@bigpond.net.au>
253
254         * objcopy.c (filter_bytes): Delete.  Move code to..
255         (copy_section): ..here.  Simplify size adjustment.  Divide
256         section lma by interleave.
257
258 2004-01-02  Nick Clifton  <nickc@redhat.com>
259
260         * po/ru.po: New file: Russian translation.
261         * configure.in (ALL_LINGUAS): Add ru
262         * configure: Regenerate.
263
264 For older changes see ChangeLog-0203
265 \f
266 Local Variables:
267 mode: change-log
268 left-margin: 8
269 fill-column: 74
270 version-control: never
271 End: