comment typo fixes
[binutils-gdb.git] / bfd / ChangeLog
1 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2
3 * som.c (som_write_space_strings): Comment typo fix.
4
5 2002-01-21 Alan Modra <amodra@bigpond.net.au>
6
7 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
8 is_func_descriptor fields.
9 (link_hash_newfunc): Init them.
10 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
11 dot are candidates for plt entries. When processing .opd relocs,
12 set function descriptor strings to point inside function code
13 string, and set new ppc_link_hash_entry fields.
14 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
15 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
16 function descriptors. It's now done in..
17 (func_desc_adjust): New.
18 (ppc64_elf_func_desc_adjust): New.
19 (define elf_backend_always_size_sections): Define.
20 (ppc64_elf_hide_symbol): New.
21 (define elf_backend_hide_symbol): Define.
22 (allocate_dynrelocs): Remove code looking up function descriptors
23 as that has been done earlier.
24 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
25 table.
26 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
27 up function descriptor.
28 (build_one_stub): Look up the function code sym. Check for
29 invalid plt offsets.
30 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
31 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
32
33 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
34 boolean param.
35 (_bfd_elf_link_hash_hide_symbol): Likewise.
36 * elflink.h (elf_link_add_object_symbols): Adjust call to
37 elf_backend_hide_symbol.
38 (elf_fix_symbol_flags): Likewise.
39 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
40 than bfd_alloc.
41 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
42 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
43 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
44 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
45 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
46 and adjust to suit.
47 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
48 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
49 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
50
51 2002-01-18 Alan Modra <amodra@bigpond.net.au>
52
53 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
54 dynamic function descriptor symbol, not the associated function
55 symbol.
56
57 2002-01-17 Eric Christopher <echristo@redhat.com>
58
59 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
60
61 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
62
63 * po/bfd.pot: Regenerate.
64 * po/fr.po: Regenerate.
65
66 2002-01-17 Alan Modra <amodra@bigpond.net.au>
67
68 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
69 Remove "Elf_Internal_Shdr *" param.
70 (_bfd_mips_elf_section_from_bfd_section): Ditto.
71 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
72 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
73 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
74 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
75 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
76 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
77 function to override special sections. Remove hdr arg from
78 backend call, and don't loop.
79
80 2002-01-16 Eric Christopher <echristo@redhat.com>
81
82 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
83 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
84 relocations requiring gp0 and gp.
85
86 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
87
88 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
89 EF_ARM_VFP_FLOAT.
90 (elf32_arm_print_private_bfd_data): Likewise.
91
92 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
93
94 * po/tr.po: Import new version.
95
96 2002-01-16 Alan Modra <amodra@bigpond.net.au>
97
98 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
99 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
100 (ORI_R0_R0_0): Correct.
101
102 2002-01-16 Alan Modra <amodra@bigpond.net.au>
103
104 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
105 when plt_not_loaded.
106 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
107 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
108 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
109 (ppc64_elf_glink_code): Delete.
110 (PPC64_ELF_GLINK_SIZE): Delete.
111 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
112 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
113 ORI_R0_R0_0): Define.
114 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
115 (struct ppc_link_hash_table): Add sstub and plt_overflow.
116 (ppc64_elf_link_hash_table_create): Init them.
117 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
118 Don't copy to shared lib.
119 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
120 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
121 (allocate_dynrelocs <plt>): Don't change function sym here. Make
122 room for .stub and .glink code.
123 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
124 DT_PPC64_GLINK.
125 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
126 bfd_elf64_bfd_final_link.
127 (bfd_elf64_bfd_final_link): Don't define.
128 (ppc64_elf_size_stubs): New.
129 (build_plt_stub): New.
130 (build_one_stub): New.
131 (ppc64_elf_build_stubs): New.
132 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
133 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
134 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
135 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
136 case output sections not separate. Adjust DT_RELASZ to not
137 include plt relocs. Set reserved got entry. Set got and plt
138 entry size.
139 (elf_backend_got_header_size): Set to 8.
140 * elf64-ppc.h: New file.
141
142 2002-01-16 Alan Modra <amodra@bigpond.net.au>
143
144 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
145 sections, use bfd_section_list_remove.
146 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
147 * elflink.h (elf_link_add_object_symbols): When removing all
148 sections, use bfd_section_list_clear.
149
150 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
151
152 * po/sv.po: New file: Swedish translation.
153 * configure.in (ALL_LINGUAS): Add sv.
154 * configure: Regenerate.
155
156 2002-01-15 Jakub Jelinek <jakub@redhat.com>
157
158 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
159 * elf.c (merge_sections_remove_hook): New function.
160 (_bfd_elf_merge_sections): Pass it as 3rd argument to
161 _bfd_merge_sections.
162 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
163 * libbfd.h: Rebuilt.
164 * merge.c (_bfd_merge_sections): Add remove_hook argument.
165 Call remove_hook if a SEC_EXCLUDE section is encountered.
166
167 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
168
169 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
170 (xstormy16_reloc_map): Initialise new field with correct howto
171 table.
172 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
173 howto entry.
174
175 2002-01-10 Michael Snyder <msnyder@redhat.com>
176
177 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
178 (elfcore_write_pstatus): Use long instead of pid_t;
179 * elf-bfd.h: Change prototypes to use long instead of pid_t;
180
181 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
182
183 * elf.c: Update copyright years.
184 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
185 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
186
187 2002-01-08 Michael Snyder <msnyder@redhat.com>
188
189 Add capability to write corefile note sections, for gdb.
190 * elf.c (elfcore_write_note): New function.
191 (elfcore_write_prpsinfo): New function.
192 (elfcore_write_prstatus): New function.
193 (elfcore_write_pstatus): New function.
194 (elfcore_write_prfpreg): New function.
195 (elfcore_write_prxfpreg): New function.
196 * elf-bfd.h: Add prototypes for above functions.
197
198 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
199
200 * elf.c (elf_fake_sections): Propagate errors from
201 elf_backend_fake_section.
202
203 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
204
205 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
206 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
207 (elf32-sh-nbsd.lo): New rule.
208 * Makefile.in: Regenerate.
209 * config.bfd (sh*le-*-netbsdelf*): New target.
210 (sh*-*-netbsdelf*): New target.
211 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
212 (bfd_elf32_shnbsd_vec): New vector.
213 (bfd_elf32_shlnbsd_vec): New vector.
214 * configure: Regenerate.
215 * elf32-sh-nbsd.c: New file.
216 * targets.c: Update copyright years.
217 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
218 bfd_elf32_shnbsd_vec.
219
220 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
221
222 * coff-rs6000.c (READ20): Use bfd_scan_vma.
223
224 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
225
226 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
227 of a symbol in a section that will be deleted.
228
229 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
230
231 * po/es.po: New file: Spanish translation.
232 * configure.in (ALL_LINGUAS): Add es.
233 * configure: Regenerate.
234
235 2002-01-06 Steve Ellcey <sje@cup.hp.com>
236
237 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
238 argument so we can handle HP-UX specially.
239 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
240 (elfNN_hpux_backend_section_from_bfd_section): New for support
241 of SHN_IA_64_ANSI_COMMON.
242 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
243 (is_unwind_section_name): Add special HP-UX support.
244 (elfNN_ia64_section_from_shdr): Add support for more sections.
245 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
246 add support for more sections.
247 (elfNN_ia64_additional_program_headers): Modify
248 is_unwind_section_name call.
249 (elfNN_ia64_modify_segment_map): Remove assumption that there is
250 only one unwind section in segment.
251
252 2002-01-06 Alan Modra <amodra@bigpond.net.au>
253
254 * syms.c (_bfd_generic_make_empty_symbol): New function.
255 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
256 _bfd_generic_make_empty_symbol.
257 * libbfd.h: Regenerate.
258 * bfd-in2.h: Regenerate.
259 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
260 (hppabsd_core_get_symtab_upper_bound): Don't define.
261 (hppabsd_core_get_symtab): Likewise.
262 (hppabsd_core_print_symbol): Likewise.
263 (hppabsd_core_get_symbol_info): Likewise.
264 (hppabsd_core_bfd_is_local_label_name): Likewise.
265 (hppabsd_core_get_lineno): Likewise.
266 (hppabsd_core_find_nearest_line): Likewise.
267 (hppabsd_core_bfd_make_debug_symbol): Likewise.
268 (hppabsd_core_read_minisymbols): Likewise.
269 (hppabsd_core_minisymbol_to_symbol): Likewise.
270 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
271 Formatting fixes.
272 * hpux-core.c: Similarly.
273 * irix-core.c: Similarly.
274 * osf-core.c: Similarly.
275 * sco5-core.c: Similarly.
276 * binary.c (binary_make_empty_symbol): Remove function, define as
277 _bfd_generic_make_empty_symbol.
278 * ihex.c (ihex_make_empty_symbol): Likewise.
279 * mmo.c (mmo_make_empty_symbol): Likewise.
280 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
281 * srec.c (srec_make_empty_symbol): Likewise.
282 * versados.c (versados_make_empty_symbol): Likewise.
283 * vms.c (_bfd_vms_make_empty_symbol): Remove.
284 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
285 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
286 rather than _bfd_vms_make_empty_symbol.
287 * vms-misc.c (new_symbol): Likewise.
288
289 2002-01-05 Alan Modra <amodra@bigpond.net.au>
290
291 * section.c (bfd_section_init): Remove unnecessary initialisations.
292 (bfd_section_list_clear): New function.
293 (bfd_section_list_remove, bfd_section_list_insert): New macros.
294 (_bfd_strip_section_from_output): Use them.
295 * coffcode.h (coff_set_alignment_hook): Likewise.
296 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
297 * elf64-mips.c (mips_elf64_final_link): Likewise.
298 * elf64-mmix.c (mmix_elf_final_link): Likewise.
299 * sunos.c (sunos_add_dynamic_symbols): Likewise.
300 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
301 * bfd-in2.h: Regenerate.
302
303 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
304 rather than doing our own section handling. Clean up after errors
305 with bfd_release and bfd_section_list_clear. Handle unexpected
306 flags.
307 * aoutf1.h (sunos4_core_file_p): Likewise.
308 * aix386-core.c (aix386_core_file_p): Likewise.
309 * cisco-core.c (cisco_core_file_validate): Likewise.
310 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
311 * trad-core.c (trad_unix_core_file_p): Likewise.
312
313 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
314 with bfd_release and bfd_section_list_clear.
315 * hpux-core.c (hpux_core_core_file_p): Likewise.
316 * irix-core.c (irix_core_core_file_p): Likewise.
317 * lynx-core.c (lynx_core_file_p): Likewise.
318 * osf-core.c (osf_core_core_file_p): Likewise.
319 * rs6000-core.c (rs6000coff_core_p): Likewise.
320 * sco5-core.c (sco5_core_file_p): Likewise.
321
322 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
323 sign extension adjustments without conditionals.
324
325 2002-01-04 Jakub Jelinek <jakub@redhat.com>
326
327 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
328 CIE at .eh_frame start is removed due to no FDEs referencing it.
329
330 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
331
332 * config.bfd (x86_64-*-netbsd*): New target.
333 * configure.in (x86_64-*-netbsd*): Set COREFILE
334 to netbsd-core.lo.
335 * configure: Regenerated.
336
337 2002-01-03 Tom Rix <trix@redhat.com>
338
339 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
340 for recent bfd_make_section_anyway change.
341
342 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
343
344 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
345 R_ARM_THM_PC11 reloc.
346
347 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
348
349 * configure.in (LINGUAS): Add ja.
350 * configure: Regenerate.
351 * po/ja.po: Import from translation project's web site.
352
353 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
354
355 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
356 messages to ease translation into other languages.
357
358 For older changes see ChangeLog-0001
359 \f
360 Local Variables:
361 mode: change-log
362 left-margin: 8
363 fill-column: 74
364 version-control: never
365 End: