* cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2
3 * linker.c (link_action): Ignore duplicate warning syms.
4 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
5 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
6 (elf_adjust_dynamic_symbol): Likewise.
7 (elf_export_symbol): Likewise.
8 (elf_link_find_version_dependencies): Likewise.
9 (elf_link_assign_sym_version): Likewise.
10 (elf_link_sec_merge_syms): Likewise.
11 (elf_link_output_extsym): Likewise.
12 (elf_gc_sweep_symbol): Likewise.
13 (elf_gc_propagate_vtable_entries_used): Likewise.
14 (elf_gc_smash_unused_vtentry_relocs): Likewise.
15 (elf_gc_allocate_got_offsets): Likewise.
16 (elf_collect_hash_codes): Likewise.
17 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
18 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
19 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
20 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
21 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
22 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
23 (elf_cris_discard_excess_dso_dynamics): Likewise.
24 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
25 (mark_PIC_calls): Likewise.
26 (allocate_plt_static): Likewise.
27 (allocate_dynrelocs): Likewise.
28 (readonly_dynrelocs): Likewise.
29 * elf32-i386.c (allocate_dynrelocs): Likewise.
30 (readonly_dynrelocs): Likewise.
31 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
32 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
33 * elf32-mips.c (mips_elf_output_extsym): Likewise.
34 (mips_elf_sort_hash_table_f): Likewise.
35 (mips_elf_check_mips16_stubs): Likewise.
36 * elf32-s390.c (allocate_dynrelocs): Likewise.
37 (readonly_dynrelocs): Likewise.
38 * elf32-sh.c (sh_elf_discard_copies): Likewise.
39 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
40 (xstormy16_relax_plt_realloc): Likewise.
41 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
42 (elf64_alpha_output_extsym): Likewise.
43 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
44 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
45 (mips_elf64_check_mips16_stubs): Likewise.
46 (mips_elf64_output_extsym): Likewise.
47 * elf64-ppc.c (func_desc_adjust): Likewise.
48 (allocate_dynrelocs): Likewise.
49 (readonly_dynrelocs): Likewise.
50 * elf64-s390.c (allocate_dynrelocs): Likewise.
51 (readonly_dynrelocs): Likewise.
52 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
53 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
54 (readonly_dynrelocs): Likewise.
55 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
56 * aoutx.h (aout_link_write_other_symbol): Likewise.
57 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
58 (_bfd_coff_write_global_sym): Likewise.
59 * i386linux.c (linux_tally_symbols): Likewise.
60 * m68klinux.c (linux_tally_symbols): Likewise.
61 * sparclinux.c (linux_tally_symbols): Likewise.
62 * pdp11.c (aout_link_write_other_symbol): Likewise.
63 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
64 * xcofflink.c (xcoff_build_ldsyms): Likewise.
65 (xcoff_write_global_symbol): Likewise.
66
67 * cofflink.c (_bfd_coff_final_link): Formatting.
68 * cpu-mips.c (mips_compatible): Make static, prototype.
69 * elf32-i386.c (elf_i386_check_relocs): Formatting.
70 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
71 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
72 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
73 (mips_elf64_final_link): Likewise.
74 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
75 prototype.
76
77 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
78
79 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
80 (SWAP_OUT_RELOC_OFFSET): Define.
81
82 2002-03-27 Gregory Steuck <greg@nest.cx>
83
84 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
85 terminating NULL if empty symbol table.
86 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
87
88 2002-03-26 H.J. Lu (hjl@gnu.org)
89
90 * elflink.h (elf_link_input_bfd): Revert the last change since
91 the gcc exception handling isn't fixed yet.
92
93 2002-03-26 H.J. Lu (hjl@gnu.org)
94
95 * elflink.h (elf_link_input_bfd): Complain about relocations
96 against local symbols in discarded sections.
97
98 2002-03-26 Alan Modra <amodra@bigpond.net.au>
99
100 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
101
102 2002-03-23 Alan Modra <amodra@bigpond.net.au>
103
104 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
105 section file offset for !SEC_LOAD sections.
106
107 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
108
109 * elf32-arm.h (elf32_arm_final_link_relocate case R_ARM_GOTOFF)
110 (case R_ARM_GOT): Handle relocations to Thumb functions.
111
112 2002-03-21 Alan Modra <amodra@bigpond.net.au>
113
114 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
115 Whitespace changes.
116 * archive.c: Update copyright date.
117 * bfd-in2.h: Regenerate.
118 * libbfd.h: Regenerate.
119 * Makefile.am: Run "make dep-am"
120 * Makefile.in: Regenerate.
121 * po/SRC-POTFILES.in: Regenerate.
122
123 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
124
125 * dwarf2.c (struct funcinfo): Move up.
126 (lookup_address_in_function_table): New argument function_ptr.
127 Set it.
128 (lookup_address_in_line_table): New argument function. If function
129 is non-NULL, use it to handle ``addr'' before the first line note of
130 the function.
131 (comp_unit_find_nearest_line): Update and swap calls to
132 lookup_address_in_function_table and lookup_address_in_line_table.
133 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
134 N_SLINE encountered if we see an N_FUN before any N_SLINE.
135
136 2002-03-20 Tom Rix <trix@redhat.com>
137
138 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
139 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
140 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
141
142 2002-03-19 Tom Rix <trix@redhat.com>
143
144 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
145 dynamic objects in archives.
146
147 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
148
149 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
150 STT_NOTYPE symbols to STT_OBJECT.
151
152 Mon Mar 18 17:38:03 CET 2002 Jan Hubicka <jh@suse.cz>
153
154 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
155
156 2002-03-18 Tom Rix <trix@redhat.com>
157
158 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
159 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
160 * coff-rs6000 (do_pad) : New function for archive padding.
161 (do_copy) : New function for object file copying in archives.
162 (do_shared_object_padding) : New function for padding shared
163 objects to their text section alignment in archives.
164 (bfd_xcoff_ar_achive_set_magic) : Stub.
165 (xcoff_write_armap_big) : Use do_copy and do_pad.
166 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
167 do_copy and do_pad.
168 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
169 bfd_xcoff_magic_number.
170 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
171 fop.
172 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
173 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
174 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
175 * rs6000-core.c : Update copyright date.
176 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
177 csectpp.
178 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
179 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
180 (coff_set_flags) : Use bfd_xcoff_magic_number.
181 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
182 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
183 * Makefile.am : Same.
184 * config.bfd : Same.
185 * targets.c : Same.
186 * configure : Regnerate.
187 * Makefile.in : Same.
188 * bfd-in2.h : Same.
189
190 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
191
192 * po/fr.po: Updated version.
193
194 2002-03-18 Alan Modra <amodra@bigpond.net.au>
195
196 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
197 * libbfd.h: Regenerate.
198 * archive.c (coff_write_armap): Pass on failures from
199 bfd_write_bigendian_4byte_int.
200
201 2002-03-14 H.J. Lu <hjl@gnu.org>
202
203 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
204 error to bfd_error_nonrepresentable_section for reinit_array
205 section in DSO.
206
207 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
208
209 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
210 OR it in rather than replacing previously selected flags.
211
212 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
213 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
214
215 2002-03-14 Alan Modra <amodra@bigpond.net.au>
216
217 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
218 (N): Use the above.
219 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
220 ensure reloc size matches before calling elf_link_input_bfd.
221 Add an assert to check reloc size when counting output relocs.
222
223 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
224
225 * mmo.c (mmo_get_loc): Return NULL rather than false.
226
227 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
228
229 * po/fr.po: Updated version.
230
231 2002-03-13 Alan Modra <amodra@bigpond.net.au>
232
233 * archures.c (bfd_default_compatible): Test bits_per_word.
234 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
235 bfd_default_compatible.
236 * cpu-i370.c (i370_compatible): Likewise.
237 * cpu-sparc.c (sparc_compatible): Likewise.
238 * cpu-h8300.c (compatible): Test in->arch == out->arch.
239
240 * elflink.h: Formatting fixes.
241 (elf_link_output_extsym): Merge undefined and undef weak cases.
242
243 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
244 when word size of input matches output word size.
245
246 2002-03-12 Andreas Jaeger <aj@suse.de>
247
248 * cpu-i386.c (i386_compatible): New. Use it instead of
249 bfd_default_compatible.
250
251 2002-03-07 H.J. Lu (hjl@gnu.org)
252
253 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
254 as the type for bfd_reloc_val.
255
256 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
257
258 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
259 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
260 (elf_hppa_final_link_relocate): Correct relocations for indirect
261 references to local data through the DLT. Fix .opd creation for
262 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
263 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
264 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
265 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
266 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
267 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
268 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
269
270 2002-03-05 Jakub Jelinek <jakub@redhat.com>
271
272 * merge.c (_bfd_merge_sections): Don't segfault if there
273 is nothing to merge due to GC.
274
275 2002-03-05 Alan Modra <amodra@bigpond.net.au>
276
277 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
278 symbols that have been forced local.
279
280 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
281 to output forced local syms for non-shared link.
282 (elf_link_output_extsym): Tweak condition for calling backend
283 adjust_dynamic_symbol so that previous behaviour is kept.
284 Whitespace changes throughout file.
285
286 2002-03-04 H.J. Lu <hjl@gnu.org>
287
288 * elf.c (bfd_section_from_shdr): Handle special sections,
289 .init_array, .fini_array and .preinit_array.
290 (elf_fake_sections): Likewise.
291
292 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
293 DT entry only if the section is in output for .init_array,
294 .fini_array and .preinit_array. Complain about .preinit_array
295 section in DSO.
296 (elf_bfd_final_link): Warn zero size for .init_array,
297 .fini_array and .preinit_array sections.
298
299 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
300 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
301 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
302 .preinit_array.
303
304 2002-03-04 Alan Modra <amodra@bigpond.net.au>
305
306 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
307 * configure: Regenerate.
308
309 2002-03-02 Tom Rix <trix@redhat.com>
310
311 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
312 symbolic equiv.
313 * coff-rs6000.c (xcoff_howto_table): Same.
314
315 2002-03-01 David Mosberger <davidm@hpl.hp.com>
316
317 * elflink.h (size_dynamic_sections): If section named
318 ".preinit_array" exists, create DT_PREINIT_ARRAY and
319 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
320 ".init_array" and ".fini_array".
321 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
322 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
323 DT_FINI_ARRAY.
324
325 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
326
327 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
328 dynsyms.
329
330 2002-02-25 Alan Modra <amodra@bigpond.net.au>
331
332 * elf64-hppa.h: Update copyright date.
333
334 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
335 (ppc64_elf_relocate_section): Don't generate power4 style branch
336 hints for *_BRTAKEN and *_BRNTAKEN relocs.
337
338 2002-02-22 Jakub Jelinek <jakub@redhat.com>
339
340 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
341 last patch.
342 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
343
344 2002-02-21 Andreas Jaeger <aj@suse.de>
345
346 * elf64-x86-64.c: Major rework that introduces all recent changes
347 to the x86-64 backend. Get a closer match to elf32-i386.
348 (struct elf64_x86_64_dyn_relocs): Rename from
349 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
350 all users.
351 (struct elf64_x86_64_link_hash_table): Add short cuts to some
352 sections.
353 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
354 remove casts, initialize new hash members.
355 (create_got_section): New.
356 (elf64_x86_64_create_dynamic_sections): New.
357 (elf64_x86_64_copy_indirect_symbol): New.
358 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
359 relocs, .got or .relgot here but do it in allocate_dynrelocs.
360 Reference count possible .plt and .got entries. Don't test input
361 section SEC_READONLY here to try to avoid copy relocs, and keep
362 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
363 DF_TEXTREL here. Delay setting of variables until needed. Cache
364 pointer to "sreloc" section in elf_section_data. Tweak condition
365 under which .got created. Report files with bad relocation
366 section names.
367 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
368 Reference count possible .plt entries. Don't deallocate .got and
369 .relgot space here.
370 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
371 do copy reloc processing for weakdefs. Remove redundant casts and
372 aborts. Delay setting of vars until needed. Move creation of
373 dynamic symbols and allocation of .plt and .rela.plt to
374 allocate_dynrelocs. Replace BFD_ASSERT with abort.
375 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
376 (allocate_dynrelocs): New.
377 (readonly_dynrelocs): New.
378 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
379 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
380 Zero out the dynamic allocated content space.
381 (elf64_x86_64_discard_copies): Removed.
382 (elf64_x86_64_relocate_section): Make use of dynamic section
383 short-cuts. Localise vars, and delay setting. Better error
384 reporting, replace BFD_ASSERT with abort. Check
385 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
386 regular object file and tread the weak definition as the normal
387 one. Don't discard relocs for undefweak or undefined symbols and
388 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
389 relocs.
390 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
391 symbols that have been forced local. Use same test to decide if
392 we can use a relative reloc for got as relocate_section. Expand
393 SHN_UNDEF comment. Move expressions out of function calls.
394 Replace BFD_ASSERT with abort.
395 (bfd_elf64_bfd_final_link): Removed.
396 (elf_backend_copy_indirect_symbol): Define.
397
398 2002-02-20 Tom Rix <trix@redhat.com>
399
400 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
401 (_bfd_xcoff_reloc_type_lookup): Use it.
402 * coff64-rs6000.c (xcoff64_howto_table): Same.
403 (xcoff64_reloc_type_lookup): Same.
404
405 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
406
407 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
408 little endian.
409
410 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
411
412 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
413 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
414 * bfd-in2.h: Regenerate.
415 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
416 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
417 with "s390:64-bit".
418 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
419 (elf_s390_reloc_type_lookup): Likewise.
420 (elf_s390_check_relocs): Likewise.
421 (elf_s390_gc_sweep_hook): Likewise.
422 (elf_s390_relocate_section): Likewise.
423 (elf_s390_object_p): Use renamed architecture define.
424 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
425
426 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
427
428 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
429
430 2002-02-19 Jakub Jelinek <jakub@redhat.com>
431
432 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
433 absptr -> pcrel optimization for shared libs.
434 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
435 library cannot be converted to pcrel.
436 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
437 relative.
438 * elf32-i386.c (elf_i386_relocate_section): If
439 _bfd_elf_section_offset returned -2, skip, but make sure the
440 relocation is installed.
441 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
442 * elf32-cris.c (cris_elf_relocate_section): Likewise.
443 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
444 * elf32-i370.c (i370_elf_relocate_section): Likewise.
445 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
446 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
447 * elf32-s390.c (elf_s390_relocate_section): Likewise.
448 * elf32-sh.c (sh_elf_relocate_section): Likewise.
449 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
450 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
451 * elf64-s390.c (elf_s390_relocate_section): Likewise.
452 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
453 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
454 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
455 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
456 _bfd_elf_section_offset returning -2 the same way as -1.
457 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
458 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
459 and BFD_ASSERT.
460 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
461
462 2002-02-18 Tom Rix <trix@redhat.com>
463
464 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
465 (bfd_xcoff_size_dynamic_sections): Same.
466 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
467 (bfd_xcoff_size_dynamic_sections): Same.
468 * coff-rs6000.c (xcoff_generate_rtinit): Same.
469 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
470 * libxcoff.h (struct xcoff_backend_data_rec): Same.
471 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
472 * bfd-in2.h: Regenerate.
473
474 2002-02-18 Alan Modra <amodra@bigpond.net.au>
475
476 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
477 (struct ppc_link_hash_table): Add sfpr.
478 (ppc64_elf_link_hash_table_create): Init it.
479 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
480 .glink out to..
481 (create_linkage_sections): ..here. Make .sfpr too.
482 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
483 dynobj early.
484 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
485 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
486 ._restf* functions, and create as needed.
487 (func_desc_adjust): Only force_local for shared libs.
488
489 2002-02-18 David O'Brien <obrien@FreeBSD.org>
490
491 * configure.in: Bump version number post 2.12 branching.
492 * configure: Regenerate.
493
494 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
495
496 * mmo.c: Correct and improve comments.
497 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
498 zero-pad. Use input to fill up non-empty bfd buffer.
499 (mmo_flush_chunk): New function.
500 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
501 changed. Don't emit location specifier if VMA is same as
502 *LAST_VMAP after omitting leading zero contents. Call
503 mmo_flush_chunk before emitting location specifier.
504 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
505 with mmo_write_loc_chunk calls.
506 (mmo_internal_write_section): Call mmo_flush_chunk after
507 mmo_write_chunk.
508 (mmo_write_symbols_and_terminator): Move :Main to first position
509 in symbol array. Add faked one if it does not exist if there are
510 other symbols. Don't add it if there are no symbols at all. Move
511 out test for value of :Main from symbol loop. Rename table
512 fakemain to maintable and variable mainsym to fakemain.
513
514 2002-02-15 Richard Henderson <rth@redhat.com>
515
516 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
517 section with no got matches any got. Simplify error generaion.
518
519 2002-02-15 Alan Modra <amodra@bigpond.net.au>
520
521 Support arbitrary length fill patterns.
522 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
523 (_bfd_default_link_order): Remove bfd_fill_link_order code.
524 Call default_data_link_order.
525 (default_fill_link_order): Delete.
526 (default_data_link_order): New function.
527 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
528 of bfd_fill_link_order with bfd_data_link_order.
529 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
530 * elf64-mips.c (mips_elf64_final_link): Likewise.
531
532 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
533 Correct value returned in "end" for "0x<non-hex>".
534
535 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
536
537 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
538 (scan): Test against 'mach' field in info structure.
539
540 2002-02-14 Alan Modra <amodra@bigpond.net.au>
541
542 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
543
544 2002-02-14 Matt Fredette <fredette@netbsd.org>
545
546 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
547 EF_M68000.
548
549 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
550
551 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
552 non-zero physical addresses when adjusting the LMAs of new
553 sections.
554
555 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
556
557 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
558 from _bfd_elf_hppa_gen_reloc_type.
559 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
560 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
561 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
562 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
563
564 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
565
566 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
567 loading its contents if there's nothing to do in it.
568
569 2002-02-12 Alan Modra <amodra@bigpond.net.au>
570
571 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
572 64k boundary.
573
574 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
575 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
576 (ppc64_elf_finish_dynamic_sections): Set values for them.
577
578 2002-02-11 Michael Snyder <msnyder@redhat.com>
579
580 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
581 * elf.c (elfcore_grok_pstatus): Add prototype.
582 (elfcore_grok_lwpstatus): Add prototype.
583 (elfcore_write_lwpstatus): New function.
584 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
585
586 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
587
588 * elf32-sh.c: Added missing prototypes.
589 * elf32-sh64.c: Likewise.
590 (sh_elf_align_loads): Mark unused args as such.
591 * elf64-sh64.c: Added missing prototypes.
592 (struct elf_sh64_link_hash_entry): Fix typo.
593 (sh_elf64_relocate_section): Fix info argument passed to
594 _bfd_elf_section_offset.
595
596 2002-02-11 Alan Modra <amodra@bigpond.net.au>
597
598 * Makefile.am: "make dep-am".
599 * Makefile.in: Regenerate.
600 * aclocal.m4: Regenerate.
601 * config.in: Regenerate.
602 * configure: Regenerate.
603
604 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
605
606 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
607 variable warnings.
608 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
609 comparison warning.
610 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
611 cast warnings for the common case.
612
613 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
614
615 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
616 vectors.
617 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
618 vectors.
619
620 2002-02-09 Richard Henderson <rth@redhat.com>
621
622 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
623 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
624 (elf64_alpha_relocate_section): Likewise.
625 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
626 * bfd-in2.h, libbfd.h: Rebuild.
627
628 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
629
630 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
631 that base-plus-offset reloc accounting is consistent.
632 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
633 up to date for undefined symbols.
634
635 2002-02-08 Eric Christopher <echristo@redhat.com>
636
637 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
638
639 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
640 sections for the O32 ABI.
641
642 2002-02-08 Chris Demetriou <cgd@broadcom.com>
643
644 * elf32-arm.h: Fix formatting of _("...").
645 * elf32-d10v.c: Likewise.
646 * elf32-m68k.c: Likewise.
647 * elf32-mips.c: Likewise.
648
649 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
650
651 * coff-or32.c: Fix compile time warning messages.
652
653 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
654
655 Contribute sh64-elf.
656 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
657 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
658 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
659 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
660 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
661 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
662 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
663 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
664 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
665 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
666 New relocs.
667 * libbfd.h, bfd-in2.h: Rebuilt.
668 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
669 (sh_reloc_map): Map them.
670 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
671 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
672 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
673 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
674 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
675 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
676 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
677 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
678 datalabel_got_offset.
679 (sh_elf_link_hash_newfunc): Initialize it.
680 (sh_elf_relocate_section): Augment the scope of
681 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
682 GOT and GOTOFF handling to new SHmedia relocation types. Support
683 GOT_BIAS.
684 (sh_elf_check_relocs): Likewise.
685 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
686 PLT entries using movi_shori_putval. Support GOT_BIAS.
687 (sh_elf_finish_dynamic_sections): Likewise.
688 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
689 relocation, it's now done by the caller.
690 (GOT_BIAS): New.
691 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
692 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
693 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
694 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
695 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
696 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
697 sh64_elf64_hash_table): New.
698 (sh_elf64_howto_table): Introduce new relocs.
699 (sh_elf64_info_to_howto): Accept new PIC relocs.
700 (sh_elf64_relocate_section): Augment the scope of
701 seen_stt_datalabel. Support new PIC relocs.
702 (sh_elf64_check_relocs): Support new PIC relocs.
703 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
704 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
705 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
706 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
707 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
708 movi_shori_putval, movi_3shori_putval,
709 sh64_elf64_create_dynamic_sections,
710 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
711 sh64_elf64_size_dynamic_sections,
712 sh64_elf64_finish_dynamic_symbol,
713 sh64_elf64_finish_dynamic_sections): New.
714 (elf_backend_create_dynamic-sections,
715 bfd_elf64_bfd_link_hash_table_create,
716 elf_backend_adjust_dynamic_symbol,
717 elf_backend_size_dynamic_sections,
718 elf_backend_finish_dynamic_symbol,
719 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
720 elf_backend_plt_readonly, elf_backend_want_plt_sym,
721 elf_backend_got_header_size, elf_backend_plt_header_size):
722 Define.
723 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
724 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
725 match official numbers and names; moved unmaching ones to the
726 range 0xf2-0xff.
727 * elf32-sh64.c, elf64-sh64.c: Likewise.
728 2001-03-12 DJ Delorie <dj@redhat.com>
729 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
730 sections.
731 2001-03-12 DJ Delorie <dj@redhat.com>
732 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
733 be aligned.
734 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
735 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
736 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
737 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
738 .cranges section with SEC_SORT_ENTRIES set.
739 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
740 incoming sorted .cranges section.
741 (sh64_bfd_elf_copy_private_section_data): New.
742 (sh64_elf_final_write_processing): Only sort .cranges and modify
743 start address if called by linker.
744 2001-01-08 Ben Elliston <bje@redhat.com>
745 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
746 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
747 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
748 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
749 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
750 line. Add comments before all entries.
751 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
752 comment.
753 (sh_elf64_reloc): Correct head comment.
754 (sh_elf64_relocate_section): Correct spacing.
755 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
756 instead call reloc_dangerous callback.
757 <case R_SH_SHMEDIA_CODE>: New case.
758 (sh_elf64_gc_mark_hook): Correct spacing.
759 (sh_elf64_check_relocs): Ditto.
760 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
761 New case.
762 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
763 functions.
764 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
765 clarify describing comment. Add comments before all entries.
766 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
767 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
768 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
769 Sort .cranges section in final link. Prepare to set bit 0 on
770 entry address.
771 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
772 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
773 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
774 .cranges section.
775 (sh64_backend_section_from_shdr): New, to recognize
776 SHT_SH5_CR_SORTED on incoming .cranges section.
777 (elf_backend_section_from_shdr): Define.
778 (sh64_elf_final_write_processing): Sort outgoing .cranges
779 section. (New, temporarily disabled:) Set bit 0 on entry address
780 according to ISA type.
781 (sh64_find_section_for_address): New.
782 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
783 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
784 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
785 bfd_malloc, not xmalloc.
786 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
787 global.
788 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
789 temporarily disabled) setting bit 0 on entry address.
790 (elf_backend_final_write_processing): Define.
791 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
792 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
793 be a proper relocation for PTA and PTB rather than a marker.
794 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
795 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
796 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
797 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
798 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
799 Zero src_mask.
800 * elf64-sh64.c: Ditto.
801 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
802 * elf32-sh64.c: Include opcodes/sh64-opc.h
803 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
804 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
805 parameters. No unused parameters. Caller changed.
806 <case R_SH_PT_16>: New case.
807 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
808 * Makefile.in: Regenerate.
809 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
810 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
811 all code sections.
812 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
813 (sh64_elf_merge_private_data): Ditto.
814 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
815 to access stored section flags.
816 (sh64_elf_final_write_processing): Return immediately unless
817 called by linker. Use sh64_elf_section_data (cranges) to get size
818 of linker-generated cranges entries.
819 (sh64_elf_copy_private_data): Add missing "return true".
820 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
821 (sh_elf64_merge_private_data): Ditto.
822 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
823 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
824 elf64-sh64.c:sh64_elf_fake_sections.
825 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
826 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
827 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
828 (sh64_elf_final_write_processing): New.
829 (elf_backend_final_write_processing): Define.
830 (sh64_elf_fake_sections): Get header flags from tdata field.
831 (sh64_elf_copy_private_data): Do not call
832 sh64_elf_copy_private_data_internal, just copy e_flags field.
833 (sh64_elf_merge_private_data): Do not call
834 sh64_elf_copy_private_data_internal.
835 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
836 Remove EF_SH64_ABI64, let ELF size make difference.
837 Remove SH64-specific BFD section flag.
838 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
839 containing SHmedia through elf_section_data (asect)->tdata
840 non-zero, not using a BFD section flag.
841 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
842 (sh64_elf_merge_private_data): Similar.
843 (elf_backend_section_flags): Don't define.
844 (sh64_elf_backend_section_flags): Delete.
845 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
846 not EF_SH64_ABI64.
847 (sh_elf64_merge_private_data): Similar.
848 * section.c (Section flags definitions): Don't define
849 SEC_SH_ISA_SHMEDIA.
850 (bfd-in2.h): Regenerate.
851 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
852 Make DataLabel references work with partial linking.
853 * elf32-sh64.c: Fix formatting.
854 (sh64_elf_link_output_symbol_hook): New.
855 (elf_backend_link_output_symbol_hook): Define to
856 sh64_elf_link_output_symbol_hook.
857 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
858 undefined if partial linking. Adjust sanity check.
859 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
860 (elf_backend_link_output_symbol_hook): Define to
861 sh64_elf64_link_output_symbol_hook.
862 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
863 undefined if partial linking. Adjust sanity check.
864 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
865 Implement semantics for inter-file DataLabel references.
866 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
867 (sh64_elf64_add_symbol_hook): New.
868 (sh_elf64_relocate_section): If passing an indirect symbol with
869 st_type STT_DATALABEL on the way to a symbol with st_other
870 STO_SH5_ISA32, do not bitor 1 to the relocation.
871 (elf_backend_add_symbol_hook): Define to
872 sh64_elf64_add_symbol_hook.
873 * elf64-sh32.c: Tweak comments.
874 (DATALABEL_SUFFIX): Define.
875 (sh64_elf_add_symbol_hook): New.
876 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
877 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
878 symbol with st_type STT_DATALABEL on the way to a symbol with
879 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
880 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
881 Pass through STT_DATALABEL.
882 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
883 (elf_backend_get_symbol_type): Define.
884 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
885 (elf_backend_get_symbol_type): Define.
886 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
887 * elf32-sh64.c: Tweak comments.
888 (sh64_elf_copy_private_data_internal): Add prototype.
889 (bfd_elf32_bfd_set_private_flags): Define.
890 (sh64_elf_copy_private_data_internal): Compare machine name, not
891 textual BFD target name, to check whether to copy section flag
892 SHF_SH5_ISA32.
893 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
894 Tweak section-contents-type-mismatch message.
895 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
896 Validize reloc-types.
897 * elf64-sh64.c: New file.
898 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
899 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
900 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
901 Regenerate dependencies.
902 * Makefile.in: Regenerate.
903 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
904 bfd_elf64_sh64l_vec.
905 * configure.in: Handle bfd_elf64_sh64_vec and
906 bfd_elf64_sh64l_vec.
907 * configure: Regenerate.
908 * po/POTFILES.in: Regenerate.
909 * po/bfd.pot: Regenerate.
910 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
911 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
912 anything else but EF_SH64 and EF_SH64_ABI64.
913 (sh64_elf_merge_private_data): Emit error for anything else but
914 EF_SH64 and EF_SH64_ABI64.
915 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
916 from targ_selvecs.
917 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
918 bfd_elf32_sh64l_vec as a temporary measure.
919 * configure: Regenerate.
920 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
921 * cpu-sh.c (arch_info_struct): Include sh5 item
922 unconditionalized.
923 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
924 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
925 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
926 * elf32-sh64.c: Tweak comments.
927 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
928 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
929 (sh64_elf_copy_private_data_internal): Wrap long line.
930 (sh64_elf_merge_private_data): Rewrite to allow objects from
931 SH64 subsets to be linked together.
932 (INCLUDE_SHMEDIA): Define.
933 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
934 Parenthesize plus-expression inside or-expression.
935 <global symbol>: Ditto.
936 (sh_elf_set_mach_from_flags): Remove code refusing
937 deleted EF_SH64_32BIT_ABI flag.
938 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
939 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
940 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
941 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
942 (sh_elf_relocate_section) <local symbol>: Or 1 in
943 calculation of relocation if sym->st_other & STO_SH5_ISA32.
944 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
945 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
946 relocation.
947 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
948 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
949 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
950 Regenerate dependencies.
951 * Makefile.in: Regenerate.
952 * archures.c: Add bfd_mach_sh5.
953 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
954 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
955 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
956 * configure: Regenerate.
957 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
958 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
959 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
960 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
961 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
962 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
963 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
964 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
965 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
966 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
967 in item for SH5.
968 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
969 for SHmedia relocs.
970 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
971 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
972 shmedia_prepare_reloc, goto final_link_relocate if it returns
973 non-zero, else fail as before.
974 (sh_elf_set_mach_from_flags): Provide function only if not defined
975 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
976 (sh_elf_set_private_flags): Provide function only if not defined
977 as a macro.
978 (sh_elf_copy_private_data): Similar.
979 (sh_elf_merge_private_data): Similar.
980 * section.c (SEC_SH_ISA_SHMEDIA): New.
981 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
982 * elf32-sh64.c: New file.
983 * libbfd.h: Regenerate.
984 * bfd-in2.h: Regenerate.
985 * po/POTFILES.in: Regenerate.
986 * po/bfd.pot: Regenerate.
987 * bfd-in2.h: Regenerate.
988 * libbfd.h: Regenerate.
989
990 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
991
992 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
993 been included, not drag it in.
994 * bfd-in2.h: Regenerate.
995
996 2002-02-06 H.J. Lu (hjl@gnu.org)
997
998 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
999 the mach and ISA fields if necessary.
1000
1001 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1002
1003 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1004 ARM architecture when an F_ARM_5 flag is detected, since we cannot
1005 be sure exactly which architecture this represents.
1006
1007 2002-02-05 Nick Clifton <nickc@redhat.com>
1008
1009 * po/tr.po: Updated translation.
1010
1011 2002-02-05 Alan Modra <amodra@bigpond.net.au>
1012
1013 From Jimi X <jimix@watson.ibm.com>
1014 * archures (bfd_mach_ppc64): Define.
1015 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1016 (bfd_powerpc_arch): Define.
1017 * bfd-in2.h: Regenerate.
1018 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1019 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1020 (bfd_powerpc_archs): Add default powerpc64 arch.
1021
1022 2002-02-05 Alan Modra <amodra@bigpond.net.au>
1023
1024 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1025 against section syms in readonly sections. Don't do the global
1026 sym check if we find one.
1027 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1028 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1029 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1030 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1031 (elf_s390_grok_prstatus): Add missing prototype.
1032
1033 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1034
1035 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1036 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1037 Call bfd_get_section_by_name only once. Initialize
1038 bpodata->n_bpo_relocs_this_section.
1039 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1040 referring to DSOs.
1041 (bpo_reloc_request_sort_fn): Don't use difference of values as
1042 return-value.
1043
1044 2002-02-02 David O'Brien <obrien@FreeBSD>
1045
1046 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
1047 version 4.5 and later the same as 5-CURRENT.
1048 * configure: Re-generate.
1049
1050 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1051
1052 * config.bfd (hppa*-*-netbsd*): New target.
1053
1054 2002-01-31 Philipp Thomas <pthomas@suse.de>
1055
1056 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1057 to front of message. Unify messages with elf32-arm.h. Use
1058 commas where neccessary.
1059 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1060 ERROR in messages. Unify messages with coff-arm.c. Correct
1061 VFP/FPA error message.
1062 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1063 APCS-32 for translation.
1064
1065 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1066
1067 Perform on-demand global register allocation from
1068 R_MMIX_BASE_PLUS_OFFSET relocs.
1069 * elf64-mmix.c (struct bpo_reloc_section_info, struct
1070 bpo_reloc_request, struct bpo_greg_section_info): New.
1071 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1072 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1073 _bfd_mmix_check_all_relocs,
1074 _bfd_mmix_prepare_linker_allocated_gregs,
1075 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1076 (elf_mmix_howto_table): Correct src_mask for most relocs.
1077 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1078 case.
1079 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1080 case. Fix typo in comment. New label do_mmix_reloc.
1081 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1082 store first object file with a base-plus-offset reloc. Call
1083 mmix_elf_check_common_relocs for the part common with mmo.
1084 (mmix_elf_final_link): Write out linker-allocated register
1085 contents section.
1086 (elf_backend_gc_sweep_hook): Define.
1087 (bfd_elf64_bfd_relax_section): Define.
1088
1089 * mmo.c: Don't include <ctype.h>
1090 (mmo_init): Correct init-once logic.
1091
1092 2002-02-01 Tom Rix <trix@redhat.com>
1093
1094 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1095
1096 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1097
1098 * Makefile.am: Run "make dep-am"
1099 * Makefile.in: Regenerate.
1100
1101 2002-01-31 David O'Brien <obrien@FreeBSD>
1102
1103 * configure.in: Recognize the differences in core files from FreeBSD
1104 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
1105 5-CURRENT.
1106 * configure: Regenerate.
1107
1108 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1109
1110 * coff-or32.c: New file.
1111 * cpu-or32.c: New file.
1112 * elf32-or32.c: New file.
1113 * archures.c: Add support for or32.
1114 * targets.c: Add support for or32.
1115 * bfd-in2.h: Regenerate.
1116 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
1117 coff_write_object_contents): Add support for or32.
1118 * config.bfd: Add target.
1119 * configure.in: Add support for or32.
1120 * configure: Regenerate.
1121 * Makefile.am: Add support for or32.
1122 * Makefile.in: Regenerate.
1123 * po/SRC-POTFILES.in: Add or32 files.
1124 * po/bfd.pot: Regenerate.
1125
1126 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
1127 Don Lindsay <lindsayd@cisco.com>
1128
1129 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1130 false' with a return of a bfd_reloc_ error code.
1131
1132 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
1133
1134 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1135 unexport unreferenced symbols when --export-dynamic. Call
1136 _bfd_elf_strtab_delref when unexporting.
1137
1138 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
1139
1140 * bfd-in.h: Include <stdbool.h> if it is available.
1141 * bfd-in2.h: Regenerated.
1142
1143 2002-01-31 Alan Modra <amodra@bigpond.net.au>
1144
1145 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1146 not go via the plt.
1147
1148 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1149
1150 * archures.c: Tidy up formatting of embedded comments.
1151 * bfd.c: Tidy up formatting of embedded comments.
1152 * bfd-in.h: Fix formatting of comments.
1153 * reloc.c: Tidy up formatting of ordinary & embedded comments.
1154 * section.c: Tidy up formatting of embedded comments.
1155 * syms.c: Tidy up formatting of embedded comments.
1156 * targets.c: Tidy up formatting of embedded comments.
1157
1158 * bfd-in2.h: Regenerate.
1159
1160 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1161
1162 * vms-tir.c (cmd_name): New function.
1163 (tir_cmd_name): New function.
1164 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1165 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1166 Fix formatting.
1167
1168 * peXXigen.c (pe_print_idata): Rearrange message to aid in
1169 translation.
1170 (pe_print_pdata): Rearrange message to aid in translation.
1171
1172 * libbfd.c (warn_deprecated): Rearrange error message to aid in
1173 translation.
1174
1175 * ihex.c (ihex_write_object_contents): Fix spelling typo.
1176
1177 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1178
1179 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1180 message to aid in translation.
1181
1182 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1183 to aid in translation.
1184
1185 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1186
1187 2002-01-30 Philipp Thomas <pthomas@suse.de>
1188
1189 * coff-arm.c, elf32-elf.h: Unify messages.
1190
1191 2002-01-30 Nick Clifton <nickc@redhat.com>
1192
1193 * po/sv.po: Updated translation.
1194
1195 2002-01-30 Philipp Thomas <pthomas@suse.de>
1196
1197 * dwarf2.c (read_abbrev): Use full section name in error message.
1198 (decode_line_info): Likewise.
1199
1200 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1201 message.
1202
1203 2002-01-30 Alan Modra <amodra@bigpond.net.au>
1204
1205 * elf64-ppc.c (func_desc_adjust): Only provide missing function
1206 descriptor symbols for undefined function code syms. Clear
1207 ELF_LINK_NON_ELF so that they can stay weak.
1208
1209 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1210 Mitch Lichtenberg <mpl@broadcom.com>
1211
1212 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
1213 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
1214 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
1215 generation.
1216 * bfd-in2.h: Regenerate.
1217
1218 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1219
1220 * elf32-mips.c: Add additional comments about HI16 relocation
1221 processing.
1222 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
1223 pc-relative relocations. (Reverts change made on 2001-10-31.)
1224 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
1225 for pc-relative relocations.
1226 (mips_elf_calculate_relocation): Add a comment about a kludge
1227 in the R_MIPS_GNU_REL_HI16 handling.
1228 (_bfd_mips_elf_relocate_section): Implement that kludge;
1229 adjust pc-relative HI16 relocation for difference in HI16 and
1230 LO16 addresses, since it can't easily be done in
1231 mips_elf_calculate_relocation.
1232
1233 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
1234
1235 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
1236 relocations with PC32 relocations for undefined or weak symbols.
1237 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
1238 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
1239
1240 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
1241
1242 * elfcore.h (elf_core_file_p): Improve comment for last change.
1243
1244 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1245
1246 * configure: Regenerated.
1247
1248 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
1249
1250 * elfcore.h (elf_core_file_p): Set the machine architecture
1251 before processing the program headers.
1252
1253 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1254
1255 * configure.in <64-bit configuration>: If using gcc, check and
1256 emit error for egcs-1.1.2.
1257 * configure: Regenerate.
1258
1259 2002-01-26 Egor Duda <deo@logos-m.ru>
1260
1261 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
1262 as possible to avoid stack corruption.
1263
1264 2002-01-26 Richard Henderson <rth@redhat.com>
1265
1266 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
1267 for non-allocated sections.
1268
1269 2002-01-25 Mark Kettenis <kettenis@gnu.org>
1270
1271 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
1272 prstat.pr_reg even if it is a struct.
1273
1274 2002-01-25 Steve Ellcey <sje@cup.hp.com>
1275
1276 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
1277
1278 2002-01-25 Philipp Thomas <pthomas@suse.de>
1279
1280 * coffgen.c (coff_print_symbol): Don't mark info message
1281 for translation.
1282
1283 2002-01-25 Nick Clifton <nickc@redhat.com>
1284
1285 * po/fr.po: Updated translation.
1286 * po/es.po: Updated translation.
1287
1288 2002-01-25 Philipp Thomas <pthomas@suse.de>
1289
1290 * coff-alpha.c (alpha_relocate_section): Unify warning message
1291 for GP relative relocations without GP defined.
1292 * coff-mips.c (mips_relocate_section): Likewise.
1293
1294 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1295
1296 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
1297 unsigned overflow when new_offset < old_offset.
1298
1299 2002-01-24 Philipp Thomas <pthomas@suse.de>
1300
1301 * bfd.c (_bfd_abort): Fix typo.
1302
1303 2002-01-23 Richard Henderson <rth@redhat.com>
1304
1305 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
1306 plt entries for undefweak symbols.
1307
1308 2002-01-23 Steve Ellcey <sje@cup.hp.com>
1309
1310 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
1311 DEFAULT_VECTOR.
1312 (bfd_elf64_ia64_hpux_big_vec): Ditto.
1313 (bfd_elf32_h8300_vec): Ditto.
1314
1315 2002-01-23 Alan Modra <amodra@bigpond.net.au>
1316
1317 * elf64-ppc.c: Remove stale part of ABI comment.
1318 (NO_OPD_RELOCS): Define.
1319 (ppc64_elf_check_relocs): Use it.
1320 (ppc64_elf_relocate_section): Here too.
1321 (build_one_stub): Don't point function syms at the stub. Instead,
1322 hijack plt.offset.
1323 (ppc64_elf_relocate_section): Check whether REL24 relocs should
1324 really go to the stub. Make all dynamic relocs in opd against
1325 locals.
1326 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
1327 plt.offset.
1328
1329 2002-01-22 Richard Henderson <rth@redhat.com>
1330
1331 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
1332
1333 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1334
1335 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
1336 TOC_BASE_OFF adjustment.
1337
1338 * Makefile.am: Run "make dep-am".
1339 * Makefile.in: Regenerate.
1340 * po/SRC-POTFILES.in: Regenerate.
1341
1342 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1343
1344 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
1345 host defines.
1346
1347 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
1348
1349 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
1350 Check for and emit error if sgot is NULL at this point.
1351
1352 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1353
1354 * config.bfd (ia64*-*-netbsd*): New target.
1355
1356 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
1357
1358 * som.c (som_write_space_strings): Comment typo fix.
1359
1360 2002-01-21 Alan Modra <amodra@bigpond.net.au>
1361
1362 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
1363 is_func_descriptor fields.
1364 (link_hash_newfunc): Init them.
1365 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
1366 dot are candidates for plt entries. When processing .opd relocs,
1367 set function descriptor strings to point inside function code
1368 string, and set new ppc_link_hash_entry fields.
1369 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
1370 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
1371 function descriptors. It's now done in..
1372 (func_desc_adjust): New.
1373 (ppc64_elf_func_desc_adjust): New.
1374 (define elf_backend_always_size_sections): Define.
1375 (ppc64_elf_hide_symbol): New.
1376 (define elf_backend_hide_symbol): Define.
1377 (allocate_dynrelocs): Remove code looking up function descriptors
1378 as that has been done earlier.
1379 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
1380 table.
1381 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
1382 up function descriptor.
1383 (build_one_stub): Look up the function code sym. Check for
1384 invalid plt offsets.
1385 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
1386 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
1387
1388 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
1389 boolean param.
1390 (_bfd_elf_link_hash_hide_symbol): Likewise.
1391 * elflink.h (elf_link_add_object_symbols): Adjust call to
1392 elf_backend_hide_symbol.
1393 (elf_fix_symbol_flags): Likewise.
1394 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
1395 than bfd_alloc.
1396 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
1397 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1398 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1399 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1400 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1401 and adjust to suit.
1402 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1403 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1404 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1405
1406 2002-01-18 Alan Modra <amodra@bigpond.net.au>
1407
1408 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1409 dynamic function descriptor symbol, not the associated function
1410 symbol.
1411
1412 2002-01-17 Eric Christopher <echristo@redhat.com>
1413
1414 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1415
1416 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1417
1418 * po/bfd.pot: Regenerate.
1419 * po/fr.po: Regenerate.
1420
1421 2002-01-17 Alan Modra <amodra@bigpond.net.au>
1422
1423 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1424 Remove "Elf_Internal_Shdr *" param.
1425 (_bfd_mips_elf_section_from_bfd_section): Ditto.
1426 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1427 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1428 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1429 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1430 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1431 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1432 function to override special sections. Remove hdr arg from
1433 backend call, and don't loop.
1434
1435 2002-01-16 Eric Christopher <echristo@redhat.com>
1436
1437 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
1438 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
1439 relocations requiring gp0 and gp.
1440
1441 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
1442
1443 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
1444 EF_ARM_VFP_FLOAT.
1445 (elf32_arm_print_private_bfd_data): Likewise.
1446
1447 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
1448
1449 * po/tr.po: Import new version.
1450
1451 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1452
1453 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
1454 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
1455 (ORI_R0_R0_0): Correct.
1456
1457 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1458
1459 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
1460 when plt_not_loaded.
1461 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
1462 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
1463 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
1464 (ppc64_elf_glink_code): Delete.
1465 (PPC64_ELF_GLINK_SIZE): Delete.
1466 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
1467 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
1468 ORI_R0_R0_0): Define.
1469 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
1470 (struct ppc_link_hash_table): Add sstub and plt_overflow.
1471 (ppc64_elf_link_hash_table_create): Init them.
1472 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
1473 Don't copy to shared lib.
1474 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
1475 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
1476 (allocate_dynrelocs <plt>): Don't change function sym here. Make
1477 room for .stub and .glink code.
1478 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
1479 DT_PPC64_GLINK.
1480 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
1481 bfd_elf64_bfd_final_link.
1482 (bfd_elf64_bfd_final_link): Don't define.
1483 (ppc64_elf_size_stubs): New.
1484 (build_plt_stub): New.
1485 (build_one_stub): New.
1486 (ppc64_elf_build_stubs): New.
1487 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
1488 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
1489 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
1490 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
1491 case output sections not separate. Adjust DT_RELASZ to not
1492 include plt relocs. Set reserved got entry. Set got and plt
1493 entry size.
1494 (elf_backend_got_header_size): Set to 8.
1495 * elf64-ppc.h: New file.
1496
1497 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1498
1499 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
1500 sections, use bfd_section_list_remove.
1501 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1502 * elflink.h (elf_link_add_object_symbols): When removing all
1503 sections, use bfd_section_list_clear.
1504
1505 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1506
1507 * po/sv.po: New file: Swedish translation.
1508 * configure.in (ALL_LINGUAS): Add sv.
1509 * configure: Regenerate.
1510
1511 2002-01-15 Jakub Jelinek <jakub@redhat.com>
1512
1513 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
1514 * elf.c (merge_sections_remove_hook): New function.
1515 (_bfd_elf_merge_sections): Pass it as 3rd argument to
1516 _bfd_merge_sections.
1517 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
1518 * libbfd.h: Rebuilt.
1519 * merge.c (_bfd_merge_sections): Add remove_hook argument.
1520 Call remove_hook if a SEC_EXCLUDE section is encountered.
1521
1522 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1523
1524 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
1525 (xstormy16_reloc_map): Initialise new field with correct howto
1526 table.
1527 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
1528 howto entry.
1529
1530 2002-01-10 Michael Snyder <msnyder@redhat.com>
1531
1532 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
1533 (elfcore_write_pstatus): Use long instead of pid_t;
1534 * elf-bfd.h: Change prototypes to use long instead of pid_t;
1535
1536 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
1537
1538 * elf.c: Update copyright years.
1539 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
1540 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
1541
1542 2002-01-08 Michael Snyder <msnyder@redhat.com>
1543
1544 Add capability to write corefile note sections, for gdb.
1545 * elf.c (elfcore_write_note): New function.
1546 (elfcore_write_prpsinfo): New function.
1547 (elfcore_write_prstatus): New function.
1548 (elfcore_write_pstatus): New function.
1549 (elfcore_write_prfpreg): New function.
1550 (elfcore_write_prxfpreg): New function.
1551 * elf-bfd.h: Add prototypes for above functions.
1552
1553 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1554
1555 * elf.c (elf_fake_sections): Propagate errors from
1556 elf_backend_fake_section.
1557
1558 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1559
1560 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
1561 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
1562 (elf32-sh-nbsd.lo): New rule.
1563 * Makefile.in: Regenerate.
1564 * config.bfd (sh*le-*-netbsdelf*): New target.
1565 (sh*-*-netbsdelf*): New target.
1566 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
1567 (bfd_elf32_shnbsd_vec): New vector.
1568 (bfd_elf32_shlnbsd_vec): New vector.
1569 * configure: Regenerate.
1570 * elf32-sh-nbsd.c: New file.
1571 * targets.c: Update copyright years.
1572 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
1573 bfd_elf32_shnbsd_vec.
1574
1575 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
1576
1577 * coff-rs6000.c (READ20): Use bfd_scan_vma.
1578
1579 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
1580
1581 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
1582 of a symbol in a section that will be deleted.
1583
1584 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1585
1586 * po/es.po: New file: Spanish translation.
1587 * configure.in (ALL_LINGUAS): Add es.
1588 * configure: Regenerate.
1589
1590 2002-01-06 Steve Ellcey <sje@cup.hp.com>
1591
1592 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
1593 argument so we can handle HP-UX specially.
1594 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
1595 (elfNN_hpux_backend_section_from_bfd_section): New for support
1596 of SHN_IA_64_ANSI_COMMON.
1597 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
1598 (is_unwind_section_name): Add special HP-UX support.
1599 (elfNN_ia64_section_from_shdr): Add support for more sections.
1600 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
1601 add support for more sections.
1602 (elfNN_ia64_additional_program_headers): Modify
1603 is_unwind_section_name call.
1604 (elfNN_ia64_modify_segment_map): Remove assumption that there is
1605 only one unwind section in segment.
1606
1607 2002-01-06 Alan Modra <amodra@bigpond.net.au>
1608
1609 * syms.c (_bfd_generic_make_empty_symbol): New function.
1610 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
1611 _bfd_generic_make_empty_symbol.
1612 * libbfd.h: Regenerate.
1613 * bfd-in2.h: Regenerate.
1614 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
1615 (hppabsd_core_get_symtab_upper_bound): Don't define.
1616 (hppabsd_core_get_symtab): Likewise.
1617 (hppabsd_core_print_symbol): Likewise.
1618 (hppabsd_core_get_symbol_info): Likewise.
1619 (hppabsd_core_bfd_is_local_label_name): Likewise.
1620 (hppabsd_core_get_lineno): Likewise.
1621 (hppabsd_core_find_nearest_line): Likewise.
1622 (hppabsd_core_bfd_make_debug_symbol): Likewise.
1623 (hppabsd_core_read_minisymbols): Likewise.
1624 (hppabsd_core_minisymbol_to_symbol): Likewise.
1625 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
1626 Formatting fixes.
1627 * hpux-core.c: Similarly.
1628 * irix-core.c: Similarly.
1629 * osf-core.c: Similarly.
1630 * sco5-core.c: Similarly.
1631 * binary.c (binary_make_empty_symbol): Remove function, define as
1632 _bfd_generic_make_empty_symbol.
1633 * ihex.c (ihex_make_empty_symbol): Likewise.
1634 * mmo.c (mmo_make_empty_symbol): Likewise.
1635 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
1636 * srec.c (srec_make_empty_symbol): Likewise.
1637 * versados.c (versados_make_empty_symbol): Likewise.
1638 * vms.c (_bfd_vms_make_empty_symbol): Remove.
1639 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
1640 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
1641 rather than _bfd_vms_make_empty_symbol.
1642 * vms-misc.c (new_symbol): Likewise.
1643
1644 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1645
1646 * section.c (bfd_section_init): Remove unnecessary initialisations.
1647 (bfd_section_list_clear): New function.
1648 (bfd_section_list_remove, bfd_section_list_insert): New macros.
1649 (_bfd_strip_section_from_output): Use them.
1650 * coffcode.h (coff_set_alignment_hook): Likewise.
1651 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
1652 * elf64-mips.c (mips_elf64_final_link): Likewise.
1653 * elf64-mmix.c (mmix_elf_final_link): Likewise.
1654 * sunos.c (sunos_add_dynamic_symbols): Likewise.
1655 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
1656 * bfd-in2.h: Regenerate.
1657
1658 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
1659 rather than doing our own section handling. Clean up after errors
1660 with bfd_release and bfd_section_list_clear. Handle unexpected
1661 flags.
1662 * aoutf1.h (sunos4_core_file_p): Likewise.
1663 * aix386-core.c (aix386_core_file_p): Likewise.
1664 * cisco-core.c (cisco_core_file_validate): Likewise.
1665 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
1666 * trad-core.c (trad_unix_core_file_p): Likewise.
1667
1668 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
1669 with bfd_release and bfd_section_list_clear.
1670 * hpux-core.c (hpux_core_core_file_p): Likewise.
1671 * irix-core.c (irix_core_core_file_p): Likewise.
1672 * lynx-core.c (lynx_core_file_p): Likewise.
1673 * osf-core.c (osf_core_core_file_p): Likewise.
1674 * rs6000-core.c (rs6000coff_core_p): Likewise.
1675 * sco5-core.c (sco5_core_file_p): Likewise.
1676
1677 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
1678 sign extension adjustments without conditionals.
1679
1680 2002-01-04 Jakub Jelinek <jakub@redhat.com>
1681
1682 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
1683 CIE at .eh_frame start is removed due to no FDEs referencing it.
1684
1685 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1686
1687 * config.bfd (x86_64-*-netbsd*): New target.
1688 * configure.in (x86_64-*-netbsd*): Set COREFILE
1689 to netbsd-core.lo.
1690 * configure: Regenerated.
1691
1692 2002-01-03 Tom Rix <trix@redhat.com>
1693
1694 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
1695 for recent bfd_make_section_anyway change.
1696
1697 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
1698
1699 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1700 R_ARM_THM_PC11 reloc.
1701
1702 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1703
1704 * configure.in (LINGUAS): Add ja.
1705 * configure: Regenerate.
1706 * po/ja.po: Import from translation project's web site.
1707
1708 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1709
1710 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
1711 messages to ease translation into other languages.
1712
1713 For older changes see ChangeLog-0001
1714 \f
1715 Local Variables:
1716 mode: change-log
1717 left-margin: 8
1718 fill-column: 74
1719 version-control: never
1720 End:
This page took 0.063725 seconds and 4 git commands to generate.