1 2002-06-25 Alan Modra <amodra@bigpond.net.au>
3 * aout-adobe.c: Don't compare against "true" or "false.
4 * aout-target.h: Likewise.
9 * coff-a29k.c: Likewise.
10 * coff-alpha.c: Likewise.
11 * coff-i386.c: Likewise.
12 * coff-mips.c: Likewise.
13 * coff-or32.c: Likewise.
14 * coff64-rs6000.c: Likewise.
15 * coffcode.h: Likewise.
16 * coffgen.c: Likewise.
17 * cpu-ns32k.c: Likewise.
19 * ecofflink.c: Likewise.
21 * elf32-arm.h: Likewise.
22 * elf32-cris.c: Likewise.
23 * elf32-d30v.c: Likewise.
24 * elf32-i386.c: Likewise.
25 * elf32-mcore.c: Likewise.
26 * elf32-ppc.c: Likewise.
27 * elf32-sh.c: Likewise.
28 * elf32-sh64.c: Likewise.
29 * elf32-v850.c: Likewise.
30 * elf64-alpha.c: Likewise.
31 * elf64-sh64.c: Likewise.
32 * elfcode.h: Likewise.
33 * elfcore.h: Likewise.
34 * elflink.h: Likewise.
35 * elfxx-mips.c: Likewise.
36 * i386os9k.c: Likewise.
41 * nlm32-alpha.c: Likewise.
42 * nlm32-i386.c: Likewise.
43 * nlm32-ppc.c: Likewise.
44 * nlm32-sparc.c: Likewise.
45 * nlmcode.h: Likewise.
48 * peicode.h: Likewise.
54 * xcofflink.c: Likewise.
55 * elf64-sparc.c: Edit comment to not use "== false".
57 * aoutf1.h: Don't use "? true : false".
65 2002-06-23 H.J. Lu <hjl@gnu.org>
67 * elflink.h (elf_link_add_archive_symbols): For the default
68 version, check references with only one `@' first.
70 2002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
72 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
74 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
76 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
77 (elf64_hppa_size_dynamic_sections): Revise to use
78 elf64_hppa_mark_milli_and_exported_functions.
79 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
80 symbols out of dynamic symbol table.
82 2002-06-23 Alan Modra <amodra@bigpond.net.au>
84 * Makefile.in: Regenerate.
85 * libbfd.h: Regenerate.
86 * bfd-in2.h: Regenerate.
87 * configure: Regenerate.
88 * po/SRC-POTFILES.in: Regenerate.
90 * elflink.h: Comment typo fixes.
92 2002-06-23 H.J. Lu <hjl@gnu.org>
94 * elf-bfd.h (elf_link_loaded_list): New structure.
95 (elf_link_hash_table): Add "loaded".
96 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
97 * elflink.h (elf_link_check_versioned_symbol): New function.
98 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
100 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
102 * elflink.h (size_dynamic_sections): If the target does not
103 support an ELF style hash table, return true, indicating that
104 nothing needed to be done, rather than false, indicating that the
105 section's size could not be computed.
107 2002-06-18 Dave Brolley <brolley@redhat.com>
109 From Catherine Moore, Michael Meissner, Dave Brolley:
110 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
111 * targets.c: Support bfd_elf32_frv_vec.
112 * reloc.c: Add FRV relocs.
113 * configure.in: Add support for bfd-elf32-frv-vec.
114 * config.bfd (targ_cpu): Add support for frv-*-elf.
115 * archures.c: Add frv arch and machines.
116 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
117 (ALL_MACHINES_CFILES): Add cpu-frv.c.
118 (BFD32_BACKENDS): Add elf32-frv.lo.
119 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
120 (cpu-frv.lo): New target.
121 (elf32-frv.lo): New target.
122 * cpu-frv.c: New file.
123 * elf32-frv.c: New file.
125 2002-06-18 Jakub Jelinek <jakub@redhat.com>
127 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
129 Only read the first section header if e_shoff is non-zero.
130 Don't consider e_shstrndx if there are no sections.
132 2002-06-17 Tom Rix <trix@redhat.com>
134 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
135 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
136 complain_overflow_bitfield.
138 2002-06-17 Alan Modra <amodra@bigpond.net.au>
140 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
141 (bfd_fdopenr): Likewise.
142 (bfd_openstreamr): Likewise.
143 (bfd_openw): Likewise.
145 * targets.c: Sort target vecs.
146 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
147 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
148 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
149 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
150 * configure.in: Sort target vecs. Add m88kmach3_vec.
151 * configure: Regenerate.
153 2002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
155 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
156 bpo_reloc_no to break sort order ties, not address of items.
158 2002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
160 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
161 Skip excluded sections in determing __gp value.
162 (elf_hppa_final_link_relocate): Use the symbol's address in
163 R_PARISC_FPTR64 relocations that don't need an opd entry.
164 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
165 (elf64_hppa_finalize_dynreloc): Likewise.
166 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
167 (elf64_hppa_finish_dynamic_symbol): Break up assert.
169 2002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
171 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
172 alignment for .bss, .data and .text sections so that sse and sse2
174 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
176 2002-06013 J"orn Rennecke <joern.rennecke@superh.com>
178 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
181 2002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
183 * elflink.h (elf_bfd_final_link): Improve error handling for missing
186 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
187 for a symbol that has no output section.
188 (allocate_dynrel_entries): Correct comment.
189 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
191 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
192 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
193 with no section. Remove unnecessary parentheses.
195 2002-06-11 Tom Rix <trix@redhat.com>
197 * coffcode.h (coff_compute_section_file_positions): Add data
198 section to AIX loader alignment check.
200 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
201 alignment to 4 bytes.
202 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
203 power accessor macro.
204 (do_shared_object_padding): Remove invalid assertion.
206 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
208 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
209 for removed output sections.
211 2002-06-10 Geoffrey Keating <geoffk@redhat.com>
213 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
215 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
217 2002-06-08 H.J. Lu <hjl@gnu.org>
219 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
220 work around a long long bug in gcc 2.96 on mips.
222 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
224 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
225 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
226 Regenerate dependency lists.
227 * Makefile.in: Regenerate.
228 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
229 vax1knetbsd_vec to targ_selvecs.
230 * configure.in: Add vax1knetbsd_vec.
231 * configure: Regenerate.
232 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
233 * vax1knetbsd.c: New file.
234 * vaxnetbsd.c: Update copyright years.
235 (TARGET_PAGE_SIZE): Set to 0x1000.
236 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
238 2002-06-08 Matt Thomas <matt@3am-software.com>
240 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
242 2002-06-08 Alan Modra <amodra@bigpond.net.au>
244 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
246 2002-06-08 Alan Modra <amodra@bigpond.net.au>
248 * Makefile.am: Run "make dep-am".
249 * Makefile.in: Regenerate.
251 * armnetbsd.c: Replace CONST with const.
252 * corefile.c: Likewise.
253 * elf32-dlx.c: Likewise.
254 * elf64-mips.c: Likewise.
256 * ns32knetbsd.c: Likewise.
258 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
259 table is elf64-sparc.
261 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
263 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
264 Fix RELA addends to get not shifted in the result. Don't do special
265 handling of R_MIPS_64 for NewABI.
267 2002-06-07 Alan Modra <amodra@bigpond.net.au>
269 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
270 (NAME(aout,slurp_reloc_table)): Likewise.
271 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
272 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
273 (xcoff_write_archive_contents_big): Likewise.
274 (xcoff_generate_rtinit): Likewise.
275 (xcoff_generate_rtinit): Likewise, and check error return.
276 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
277 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
278 (coff_get_normalized_symtab): Likewise.
279 (coff_make_empty_symbol): Likewise.
280 (bfd_coff_set_symbol_class): Likewise.
281 * cofflink.c (coff_link_add_symbols): Likewise.
282 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
283 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
284 (bfd_ecoff_write_accumulated_debug): Likewise.
285 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
286 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
287 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
288 * ieee.c (do_with_relocs): Use bfd_zalloc.
289 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
290 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
291 (NAME(aout,slurp_reloc_table)): Likewise.
292 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
293 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
294 * som.c (som_build_and_write_symbol_table): Likewise.
295 (som_slurp_string_table): Likewise.
296 (som_slurp_symbol_table): Likewise.
297 (som_bfd_ar_write_symbol_stuff): Likewise.
298 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
299 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
300 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
301 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
302 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
304 2002-06-07 Alan Modra <amodra@bigpond.net.au>
306 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
308 (elf_group_name): Update.
309 (elf_group_id): Define.
310 (bfd_elf_set_group_contents): Declare.
311 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
312 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
313 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
314 that sym for the signature.
315 (_bfd_elf_compute_section_file_positions): Don't call
316 set_group_contents for "ld -r" case.
317 (swap_out_syms): Use bfd_zalloc.
318 * elflink.h (elf_link_add_archive_symbols): Likewise.
319 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
320 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
322 2002-06-07 Alan Modra <amodra@bigpond.net.au>
324 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
325 relocs in opd for non-shared too.
327 2002-06-06 Jeffrey Law <law@redhat.com
329 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
332 2002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
334 * merge.c: Include libiberty.h.
335 * elf-strtab.c: Include libiberty.h.
337 2002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
339 * peXXigen.c (pe_print_idata): Remove unused variable.
341 2002-06-06 David Heine <dlheine@tensilica.com>
343 * elf.c (assign_file_positions_for_segments): Remove unallocated
344 sections from the section to segment mapping for PT_LOAD segments.
345 Update comment about empty loadable segments.
347 2002-06-06 Richard Sandiford <rsandifo@redhat.com>
349 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
350 is within the .stabstr section.
352 2002-06-06 Alan Modra <amodra@bigpond.net.au>
354 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
355 are "const PTR", not "const PTR *".
356 (bfd_elf32_swap_symbol_in): Likewise.
357 (bfd_elf64_swap_symbol_in): Likewise.
358 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
359 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
360 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
361 (elf_link_add_object_symbols): Likewise.
362 (elf_link_record_local_dynamic_symbol): Likewise.
363 (elf_link_input_bfd): Likewise.
364 (elf_gc_mark): Likewise.
365 (elf_reloc_symbol_deleted_p): Likewise.
366 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
367 (mn10200_elf_relax_delete_bytes): Likewise.
368 (mn10200_elf_symbol_address_p): Likewise.
369 (mn10200_elf_get_relocated_section_contents): Likewise.
370 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
371 (mn10300_elf_relax_section): Likewise.
372 (mn10300_elf_relax_delete_bytes): Likewise.
373 (mn10300_elf_symbol_address_p): Likewise.
374 (mn10300_elf_get_relocated_section_contents): Likewise.
375 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
376 (elf32_h8_relax_delete_bytes): Likewise.
377 (elf32_h8_symbol_address_p): Likewise.
378 (elf32_h8_get_relocated_section_contents): Likewise.
379 * elf32-hppa.c (get_local_syms): Likewise.
380 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
381 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
382 * elf32-sh.c (sh_elf_relax_section): Likewise.
383 (sh_elf_relax_delete_bytes): Likewise.
384 (sh_elf_get_relocated_section_contents): Likewise.
385 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
386 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
387 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
388 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
389 * elf64-ppc.c (get_local_syms): Likewise.
390 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
391 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
393 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
395 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
397 2002-06-05 Alan Modra <amodra@bigpond.net.au>
399 * elf.c (group_signature): Swap in the whole symbol, and handle
400 extracting section symbol names.
401 (setup_group): Add comment.
402 (set_group_contents): When called from objcopy or ld, arrange for
403 section contents to be written. Write group member output section
404 indices to allow objcopy to reorganize sections.
405 (_bfd_elf_copy_private_section_data): Copy group info.
407 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
408 (bfd_elf32_swap_symbol_in): Update prototype.
409 (bfd_elf64_swap_symbol_in): Likewise.
410 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
411 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
412 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
413 (elf_link_add_object_symbols): Likewise.
414 (elf_link_record_local_dynamic_symbol): Likewise.
415 (elf_link_input_bfd): Likewise.
416 (elf_gc_mark): Likewise.
417 (elf_reloc_symbol_deleted_p): Likewise.
418 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
419 (mn10200_elf_relax_delete_bytes): Likewise.
420 (mn10200_elf_symbol_address_p): Likewise.
421 (mn10200_elf_get_relocated_section_contents): Likewise.
422 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
423 (mn10300_elf_relax_section): Likewise.
424 (mn10300_elf_relax_delete_bytes): Likewise.
425 (mn10300_elf_symbol_address_p): Likewise.
426 (mn10300_elf_get_relocated_section_contents): Likewise.
427 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
428 (elf32_h8_relax_delete_bytes): Likewise.
429 (elf32_h8_symbol_address_p): Likewise.
430 (elf32_h8_get_relocated_section_contents): Likewise.
431 * elf32-hppa.c (get_local_syms): Likewise.
432 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
433 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
434 * elf32-sh.c (sh_elf_relax_section): Likewise.
435 (sh_elf_relax_delete_bytes): Likewise.
436 (sh_elf_get_relocated_section_contents): Likewise.
437 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
438 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
439 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
440 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
441 * elf64-ppc.c (get_local_syms): Likewise.
442 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
443 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
444 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
445 * elf64-alpha.c (alpha_elf_size_info): Likewise.
446 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
447 * elf64-mips.c (mips_elf64_size_info): Likewise.
448 * elf64-s390.c (s390_elf64_size_info): Likewise.
449 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
451 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
453 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
454 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
455 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
456 _bfd_mips_elf_ignore_discarded_relocs.
457 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
459 2002-06-05 H.J. Lu <hjl@gnu.org>
461 * elfxx-mips.c (mips_elf_calculate_relocation): Call
462 _bfd_elf_rel_local_sym for STT_SECTION relocations against
463 the SEC_MERGE section.
465 2002-06-05 Alan Modra <amodra@bigpond.net.au>
467 * coff-alpha.c: Update copyright date.
468 * coff-mips.c: Likewise.
469 * xcoff-target.h: Likewise.
471 * bfd-in.h: Remove "taken from the source" comment.
472 * libbfd-in.h: Likewise.
473 * libcoff-in.h: Likewise.
474 * bfd-in2.h: Regenerate.
475 * libbfd.h: Regenerate.
476 * libcoff.h: Regenerate.
478 * elf.c (bfd_elf_discard_group): Return true.
479 * elf-bfd.h (bfd_elf_discard_group): Declare.
480 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
481 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
482 * bfd.c (bfd_discard_group): Define.
483 * targets.c (struct bfd_target): Add _bfd_discard_group.
484 (BFD_JUMP_TABLE_LINK): Here too.
485 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
486 * aout-adobe.c (aout_32_bfd_discard_group): Define.
487 * aout-target.h (MY_bfd_discard_group): Define.
488 * aout-tic30.c (MY_bfd_discard_group): Define.
489 * binary.c (binary_bfd_discard_group): Define.
490 * bout.c (b_out_bfd_discard_group): Define.
491 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
492 * coffcode.h (coff_bfd_discard_group): Define.
493 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
494 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
495 * i386msdos.c (msdos_bfd_discard_group): Define.
496 * i386os9k.c (os9k_bfd_discard_group): Define.
497 * ieee.c (ieee_bfd_discard_group): Define.
498 * ihex.c (ihex_bfd_discard_group): Define.
499 * mmo.c (mmo_bfd_discard_group): Define.
500 * nlm-target.h (nlm_bfd_discard_group): Define.
501 * oasys.c (oasys_bfd_discard_group): Define.
502 * ppcboot.c (ppcboot_bfd_discard_group): Define.
503 * som.c (som_bfd_discard_group): Define.
504 * srec.c (srec_bfd_discard_group): Define.
505 * tekhex.c (tekhex_bfd_discard_group): Define.
506 * versados.c (versados_bfd_discard_group): Define.
507 * vms.c (vms_bfd_discard_group): Define.
508 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
509 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
510 (aix5coff64_vec): Likewise.
511 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
513 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
515 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
516 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
517 (elf32-sh64-com.lo): New dependency list.
518 * Makefile.in: Regenerate.
519 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
520 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
522 * configure: Regenerate.
523 * elf32-sh64.c (sh64_address_in_cranges)
524 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
525 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
526 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
527 * elf32-sh64-com.c: ...here. New file.
529 2002-06-04 Alan Modra <amodra@bigpond.net.au>
531 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
532 ATTRIBUTE_UNUSED on used params.
533 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
534 before calling bfd_section_from_elf_index on local syms.
535 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
537 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
539 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
540 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
541 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
542 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
543 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
544 * Makefile.in: Regenerate.
545 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
546 (sh64-*-netbsd*): New targets.
547 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
548 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
549 * configure: Regenerate.
550 * elf32-sh64-nbsd.c: New file.
551 * elf64-sh64-nbsd.c: New file.
552 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
553 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
554 bfd_elf64_sh64lnbsd_vec.
556 2002-06-04 Alan Modra <amodra@bigpond.net.au>
558 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
559 (bfd_section_from_shdr): Likewise. Set section name of group
560 sections from signature.
561 (group_signature): Split out from setup_group. Ensure symbol table
563 (bfd_elf_discard_group): New function.
564 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
565 .gnu.linkonce* sections if they are members of a group.
566 (set_group_contents): Set GRP_COMDAT flag.
567 * section.c (bfd_discard_group): New function.
568 * bfd-in.h (bfd_elf_discard_group): Declare.
569 * bfd-in2.h: Regenerate.
570 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
571 (elf_linkonce_p): Define.
573 2002-06-04 Alan Modra <amodra@bigpond.net.au>
575 * elf.c (bfd_section_from_shdr): Make "name" const.
576 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
577 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
578 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
579 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
580 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
581 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
582 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
583 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
584 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
585 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
586 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
588 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
590 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
593 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
595 * elf32-arc.c: Fix formatting.
596 * elf32-arm.h: Likewise.
597 * elf32-cris.c: Likewise.
598 * elf32-dlx.c: Likewise.
599 * elf32-hppa.c: Likewise.
600 * elf32-i386.c: Likewise.
601 * elf32-i386qnx.c: Likewise.
602 * elf32-or32.c: Likewise.
603 * elf32-s390.c: Likewise.
604 * elf32-sh64.c: Likewise.
605 * elf32-vax.c: Likewise.
606 * elf32-xstormy16.c: Likewise.
607 * elf64-alpha.c: Likewise.
608 * elf64-mmix.c: Likewise.
609 * elf64-ppc.c: Likewise.
610 * elf64-s390.c: Likewise.
611 * elf64-sh64.c: Likewise.
612 * elf64-x86-64.c: Likewise.
614 2002-06-02 Richard Henderson <rth@redhat.com>
616 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
617 null when there are no got entries for a symbol.
618 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
619 uninitialized variable warning.
621 2002-06-01 Richard Henderson <rth@redhat.com>
623 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
624 undefined symbols here.
625 (elf64_alpha_relax_section): Do it here. Also test for not
626 defined in the current module.
627 (elf64_alpha_relocate_section_r): Split out of ...
628 (elf64_alpha_relocate_section): ... here. Don't dereference
629 NULL when looking up local got entries.
631 2002-06-01 Richard Henderson <rth@redhat.com>
633 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
634 symbols from JSR relaxation.
635 (elf64_alpha_size_plt_section_1): New.
636 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
637 (elf64_alpha_size_rela_got_1): ... here.
638 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
639 (elf64_alpha_size_rela_got_section): ... here.
640 (elf64_alpha_size_plt_section): New.
641 (elf64_alpha_relax_section): Call them.
642 (elf64_alpha_size_got_sections): Remove output_bfd arg.
643 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
645 2002-06-01 Richard Henderson <rth@redhat.com>
647 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
648 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
649 in shared libraries. Fix DTPRELHI and TPRELHI value.
650 (INSN_ADDQ, INSN_RDUNIQ): New.
651 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
652 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
653 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
654 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
655 Handle GOTDTPREL and GOTTPREL relocations.
656 (elf64_alpha_relax_gprelhilo): New.
657 (elf64_alpha_relax_tls_get_addr): New.
658 (elf64_alpha_relax_find_tls_segment): New.
659 (elf64_alpha_relax_section): Handle TLS relocations.
660 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
661 (elf64_alpha_check_relocs): Set it.
663 2002-06-01 Richard Henderson <rth@redhat.com>
665 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
667 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
668 check; don't suppress dynamic relocs for non-allocated sections.
670 * elf64-alpha.c: Remove dead code.
672 2002-05-31 Alan Modra <amodra@bigpond.net.au>
674 * bfd-in2.h: Regenerate.
675 * libbfd.h: Regenerate.
676 * po/SRC-POTFILES.in: Regenerate.
678 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
681 2002-05-31 Graeme Peterson <gp@qnx.com>
683 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
684 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
686 * Makefile.in: Regenerate.
687 * config.bfd: Add i[3456]86-*-nto-qnx* support.
688 * configure.in: Add bfd_elf32_i386qnx_vec support.
689 * configure: Regenerate.
690 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
691 is_contained_by_filepos, and copy_private_bfd_data_p.
692 * elf.c (assign_file_positions_for_segments): Call backend
693 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
694 (IS_CONTAINED_BY_FILEPOS): Define.
695 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
696 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
697 Fix non-K&R call to _bfd_error_handler.
698 (_bfd_elf_copy_private_section_data): Use backend
699 copy_private_bfd_data_p.
700 * elf32-i386.c: Don't include elfxx-target.h when
701 ELF32_I386_C_INCLUDED is defined.
702 * elf32-i386qnx.c: New QNX elf backend file.
703 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
704 elf_backend_is_contained_by_filepos, and
705 elf_backend_do_copy_private_bfd_data.
706 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
708 2002-05-31 Alan Modra <amodra@bigpond.net.au>
710 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
711 Move other similar defines to start of file.
713 2002-05-30 Tom Rix <trix@redhat.com>
715 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
716 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
718 2002-05-30 Richard Henderson <rth@redhat.com>
720 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
721 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
722 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
723 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
724 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
725 (struct alpha_elf_obj_tdata): Rename total_got_entries and
726 n_local_got_entries to total_got_size and local_got_size.
727 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
728 (alpha_got_entry_size): New.
729 (elf64_alpha_relax_with_lituse): Use it.
730 (elf64_alpha_relax_without_lituse): Likewise.
731 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
732 (get_got_entry): New.
733 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
734 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
735 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
736 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
737 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
738 (elf64_alpha_calc_got_offsets): Likewise.
739 (alpha_dynamic_entries_for_reloc): New.
740 (elf64_alpha_calc_dynrel_sizes): Use it.
741 (elf64_alpha_size_dynamic_sections): Likewise.
742 (elf64_alpha_relocate_section): Handle TLS relocations.
743 * reloc.c: Add Alpha TLS relocations.
744 * bfd-in2.h, libbfd.h: Rebuild.
746 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
748 * peXXigen.c (pe_print_idata): Remove double printed
749 import table lines; add Bound-To comment.
751 2002-05-29 Matt Thomas <matt@3am-software.com>
753 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
754 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
755 (elf32-vax.lo): New rule.
756 * Makefile.in: Regenerate.
757 * configure.in (bfd_elf32_vax_vec)
758 (vaxnetbsd_vec): New vectors.
759 * configure: Regenerate.
760 * config.bfd (vax-*-netbsdelf*)
762 (vax-*-netbsd*): New targets.
763 * elf32-vax.c: New file.
764 * reloc.c: Add VAX relocations.
765 * bfd-in2.h: Regenerate.
766 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
768 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
770 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
771 and bfd_elf32_bigarm_vec to targ_selvecs.
773 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
775 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
776 with auto-imported symbols.
778 2002-05-29 Adam Nemet <anemet@lnxw.com>
780 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
781 sections only record bfd.
782 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
783 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
784 * bfd-in2.h: Regenerate.
786 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
788 * syms.c (_bfd_stab_section_find_nearest_line): Move
789 declaration and initialisation of saw_line and saw_func out of
792 2002-05-29 Alan Modra <amodra@bigpond.net.au>
794 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
795 (bfd_elf64_get_symbol_info): Define.
796 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
798 2002-05-29 Andrey Volkov <avolkov@transas.com>
800 * cpu-h8300.c: Make default h8300 machine first in machine list.
802 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
804 * config.bfd: Added DLX configuraton.
805 * Makefile.am: Added DLX configuraton.
806 * configure.in: Added DLX configuraton.
807 * archures.c: Add DLX architecure.
808 * reloc.c: Add DLX relocs.
809 * targets.c: Added DLX target vector.
810 * configure: Regenerate.
811 * Makefile.in: Regenreate.
812 * bfd-in2.h: Regenreate.
813 * elf32-dlx.c: New file: Support DLX target.
814 * cpu-dlx.c: New file: Support DLX target.
816 2002-05-25 Alan Modra <amodra@bigpond.net.au>
818 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
820 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
821 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
822 strings to point inside function code sym string.
823 (func_desc_adjust): Likewise.
824 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
826 2002-05-24 Michal Ludvig <mludvig@suse.cz>
828 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
829 (elf64_x86_64_grok_psinfo): Added.
831 2002-05-24 TAMURA Kent <kent@netbsd.org>
833 * config.bfd: Add a target for i386-netbsdpe.
835 2002-05-24 Alan Modra <amodra@bigpond.net.au>
837 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
838 and is_func_descriptor.
839 (func_desc_adjust): Hide function code sym in shared libs unless
840 there is a matching exported function descriptor sym.
842 2002-05-23 Jakub Jelinek <jakub@redhat.com>
844 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
845 for symbols from SHF_TLS section.
846 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
847 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
848 (map_sections_to_segments): Build PT_TLS segment if necessary.
849 (assign_file_positions_for_segments): Likewise.
850 (get_program_header_size): Account for PT_TLS segment.
851 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
852 SEC_THREAD_LOCAL sections to STT_TLS.
853 * reloc.c: Add 386 and IA-64 TLS relocs.
854 * section.c (SEC_THREAD_LOCAL): Define.
855 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
857 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
858 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
860 (struct elf_final_link_info): Add first_tls_sec.
861 (elf_bfd_final_link): Set first_tls_sec.
862 Compute elf_hash_table (info)->tls_segment.
863 (elf_link_output_extsym): Handle STT_TLS symbols.
864 (elf_link_input_bfd): Likewise.
865 * syms.c (BSF_THREAD_LOCAL): Define.
866 * bfd-in2.h: Rebuilt.
868 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
869 elf_i386_mkobject, elf_i386_object_p): New functions.
870 (elf_howto_table): Add TLS relocs.
871 (elf_i386_reloc_type_lookup): Support TLS relocs.
872 (elf_i386_info_to_howto_rel): Likewise.
873 (struct elf_i386_link_hash_entry): Add tls_type.
874 (struct elf_i386_obj_tdata): New.
875 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
877 (struct elf_i386_link_hash_table): Add tls_ldm_got.
878 (link_hash_newfunc): Clear tls_type.
879 (elf_i386_check_relocs): Support TLS relocs.
880 (elf_i386_gc_sweep_hook): Likewise.
881 (allocate_dynrelocs): Likewise.
882 (elf_i386_size_dynamic_sections): Likewise.
883 (elf_i386_relocate_section): Likewise.
884 (elf_i386_finish_dynamic_symbol): Likewise.
885 (bfd_elf32_mkobject, elf_backend_object_p): Define.
886 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
887 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
888 want_tprel, want_dtpmod, want_dtprel.
889 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
890 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
891 R_IA64_LTOFF_TPREL22.
892 (elf_code_to_howto_index): Add TLS relocs.
893 (elfNN_ia64_check_relocs): Support TLS relocs.
894 (allocate_global_data_got): Account for TLS .got data.
895 (allocate_dynrel_entries): Account for TLS dynamic relocations.
896 (elfNN_ia64_install_value): Supprt TLS relocs.
897 (set_got_entry): Support TLS relocs.
898 (elfNN_ia64_relocate_section): Likewise.
900 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
902 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
903 BLX reloc round the relocation up rather than down.
904 * coff-arm.c (coff_arm_relocate_section): Likewise.
906 2002-05-21 H.J. Lu (hjl@gnu.org)
908 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
911 2002-05-22 Alan Modra <amodra@bigpond.net.au>
913 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
914 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
916 2002-05-22 Alan Modra <amodra@bigpond.net.au>
918 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
920 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
922 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
924 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
927 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
929 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
931 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
932 return with false on error.
933 (elf_link_input_bfd): Check reloc_emitter return value.
935 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
937 * config.bfd (armeb-*-netbsdelf*): New target.
939 2002-05-20 Alan Modra <amodra@bigpond.net.au>
941 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
942 at the plt call stub.
944 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
946 * cpu-mips.c (mips_compatible): Don't try to check machine
949 2002-05-18 Tom Rix <trix@redhat.com>
951 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
953 2002-05-17 Alan Modra <amodra@bigpond.net.au>
955 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
956 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
957 we've already warned about an undefined symbol. Report more
958 detail on reloc errors.
960 2002-05-17 Alan Modra <amodra@bigpond.net.au>
962 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
963 * configure.in: Invoke AM_INSTALL_LIBBFD.
964 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
965 (install_libbfd): .. New target.
966 (uninstall_libbfd): Likewise.
967 (install-bfdlibLTLIBRARIES): Likewise.
968 (uninstall-bfdlibLTLIBRARIES): Likewise.
970 (bfdincludedir): New.
971 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
972 * aclocal.m4: Regenerate.
973 * configure: Regenerate.
974 * Makefile.in: Regenerate.
976 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
978 * hash.c (bfd_hash_lookup): Remove computation of len from inside
981 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
983 * config.bfd: Add targets for sh64-linux (little endian and
986 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
988 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
989 is located in the same section as the import table. Instead
990 check, and if necessary load the section containing the thunk.
992 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
994 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
996 (xcoff64_core_file_matches_executable_p): Replace bfd_read
999 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1001 * aix5ppc-core.c: Warning fixes.
1002 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
1003 * aout-target.h (MY_bfd_link_just_syms): Define.
1004 * aout-tic30.c (MY_bfd_link_just_syms): Define.
1005 * bfd.c (bfd_link_just_syms): Define.
1006 * binary.c (binary_bfd_link_just_syms): Define.
1007 * bout.c (b_out_bfd_link_just_syms): Define.
1008 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
1009 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1010 * coffcode.h (coff_bfd_link_just_syms): Define.
1011 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
1012 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
1013 (_bfd_elf_link_just_syms): Declare.
1014 * elf.c (_bfd_elf_link_just_syms): New function.
1015 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
1016 sections haven't already been discarded by the linker.
1017 * elflink.h (elf_link_add_object_symbols): Likewise for stab
1018 sections and SEC_MERGE sections.
1019 (elf_bfd_discard_info): Similarly here.
1020 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
1021 * i386msdos.c (msdos_bfd_link_just_syms): Define.
1022 * i386os9k.c (os9k_bfd_link_just_syms): Define.
1023 * ieee.c (ieee_bfd_link_just_syms): Define.
1024 * ihex.c (ihex_bfd_link_just_syms): Define.
1025 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
1026 (_bfd_generic_link_just_syms): Declare.
1027 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
1028 * linker.c (_bfd_generic_link_just_syms): New function.
1029 * mmo.c (mmo_bfd_link_just_syms): Define.
1030 * nlm-target.h (nlm_bfd_link_just_syms): Define.
1031 * oasys.c (oasys_bfd_link_just_syms): Define.
1032 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
1033 * som.c (som_bfd_link_just_syms): Define.
1034 * srec.c (srec_bfd_link_just_syms): Define.
1035 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
1036 (BFD_JUMP_TABLE_LINK): And here.
1037 * tekhex.c (tekhex_bfd_link_just_syms): Define.
1038 * versados.c (versados_bfd_link_just_syms): Define.
1039 * vms.c (vms_bfd_link_just_syms): Define.
1040 * libbfd.h: Regenerate.
1041 * bfd-in2.h: Regenerate.
1043 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1045 * elf32-mips.c: Remove superfluous definitions copied from
1047 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
1048 SGIish vectors to check the special case.
1049 (mips_elf_hi16_reloc): Fix comment.
1050 (mips_elf_got16_reloc): Likewise.
1051 (_bfd_mips_elf32_gprel16_reloc): Likewise.
1052 (elf_reloc_map): Code cleanup.
1053 (mips_reloc_map): Add comment.
1054 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
1055 (mips_elf32_rtype_to_howto): Likewise.
1056 (mips_elf32_discard_info): Likewise.
1057 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
1058 lead to IRIX compatibility now.
1060 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1062 * elfxx-mips.c: Call it IRIX, not Irix in comments.
1064 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
1066 * config.bfd (shle-*-netbsdelf*): Add target which includes
1069 2002-05-13 David Edelsohn <edelsohn@gnu.org>
1071 * configure.in: Revert 2002-04-07. Instead, auto-configure
1073 * configure: Regenerate.
1074 * config.in: Regenerate.
1075 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
1078 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
1080 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
1082 * configure: Regenerate.
1084 2002-05-13 Alan Modra <amodra@bigpond.net.au>
1086 * Makefile.am (install-data-local): Install headers to
1087 $(exec_prefix)/include.
1088 * Makefile.in: Regenerate.
1090 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1091 Daniel Jacobowitz <drow@mvista.com>
1093 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
1096 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
1098 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
1099 hppa*-*-openbsd*): New targets.
1100 * configure.in (alpha*-*-openbsd*): Set COREFILE.
1101 * configure: Regenerate.
1103 2002-05-10 Tom Rix <trix@redhat.com>
1105 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
1106 xcoff64_ppc_relocate_section.
1107 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
1108 * libxcoff.h: Common xcoff_reloc_type function declaration.
1110 2002-05-10 Alan Modra <amodra@bigpond.net.au>
1112 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
1113 added in 2002-05-09 commit.
1115 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
1116 don't look for stubs on all undefined syms.
1118 2002-05-09 Alan Modra <amodra@bigpond.net.au>
1120 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
1121 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
1124 * elf32-i386.c (elf_howto_table): Comments.
1125 (elf_i386_relocate_section): Handle more relocs for relocatable
1126 linking and against SEC_MERGE sections.
1128 2002-05-08 Alan Modra <amodra@bigpond.net.au>
1130 * elf32-ppc.c (ppc_elf_create_got): New function.
1131 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
1132 _bfd_elf_create_dynamic_sections. Correct .plt flags.
1133 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
1134 _bfd_elf_create_got_section.
1136 2002-05-07 Alan Modra <amodra@bigpond.net.au>
1138 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
1139 * elfxx-target.h (elf_backend_rela_normal): Define.
1140 (elfNN_bed): Init rela_normal.
1141 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
1142 for section symbols here if rela_normal. Simplify abs section test.
1143 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
1144 return immediately. Remove code handling relocatable linking.
1145 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1146 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1147 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1148 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1149 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1150 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1151 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1152 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1153 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1154 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1155 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1156 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1157 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1158 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1159 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
1160 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1161 * elf-m10200.c (elf_backend_rela_normal): Define.
1162 * elf-m10300.c (elf_backend_rela_normal): Define.
1163 * elf32-fr30.c (elf_backend_rela_normal): Define.
1164 * elf32-i370.c (elf_backend_rela_normal): Define.
1165 * elf32-i860.c (elf_backend_rela_normal): Define.
1166 * elf32-m68k.c (elf_backend_rela_normal): Define.
1167 * elf32-mcore.c (elf_backend_rela_normal): Define.
1168 * elf32-openrisc.c (elf_backend_rela_normal): Define.
1169 * elf32-ppc.c (elf_backend_rela_normal): Define.
1170 * elf32-s390.c (elf_backend_rela_normal): Define.
1171 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
1172 * elf64-ppc.c (elf_backend_rela_normal): Define.
1173 * elf64-s390.c (elf_backend_rela_normal): Define.
1174 * elf64-x86-64.c (elf_backend_rela_normal): Define.
1175 * elfxx-ia64.c (elf_backend_rela_normal): Define.
1176 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
1177 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
1179 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
1181 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
1182 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
1184 2002-05-06 Alan Modra <amodra@bigpond.net.au>
1186 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
1187 when not relocatable. Fix reloc_emitter call for K&R.
1189 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1191 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
1192 reloading local sym addend mistakenly removed in 2002-05-01 change.
1194 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
1195 (read_abbrevs): Change "offset" param to bfd_vma.
1196 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
1197 Change "abbrev_offset" to bfd_vma.
1198 (read_indirect_string): Use correct conversion chars in error
1199 message format string, cast bfd_vma's to unsigned long.
1200 (read_abbrevs): Likewise.
1201 (read_attribute_value): Likewise.
1202 (decode_line_info): Likewise.
1203 (scan_unit_for_functions): Likewise.
1204 (parse_comp_unit): Likewise.
1206 2002-05-04 Tom Rix <trix@redhat.com>
1208 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
1209 (coff_swap_reloc_out): Same.
1210 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
1211 (xcoff_swap_reloc_out): Same.
1212 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
1213 case some 16 bit relocs. Add reloc value to output.
1214 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
1215 R_RBR. Improve names.
1216 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
1217 (bfd_xcoff_backend_data): Update with new reloc swap names.
1218 (bfd_pmac_xcoff_backend_data) : Same.
1219 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
1220 (xcoff64_swap_reloc_out): Same.
1221 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
1222 R_POS. Add reloc value to output.
1223 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
1224 bit R_RBR. Improve names, masks.
1225 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
1226 (bfd_xcoff_backend_data): Update with new reloc swap names.
1227 (bfd_xcoff_aix5_backend_data) : Same.
1229 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1231 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
1232 bfd_count top_index, input_list, all_local_syms.
1233 (elf32_hppa_setup_section_lists): New function, split from
1234 elf32_hppa_size_stubs.
1235 (elf32_hppa_next_input_section): Likewise.
1236 (group_sections): Likewise.
1237 (get_local_syms): Likewise.
1238 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
1239 stubs on undefined syms too.
1240 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
1241 Only access htab elf fields when we have an elf hash table.
1242 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
1243 (elf32_hppa_next_input_section): Declare.
1245 2002-05-04 Bob Byrnes <byrnes@curl.com>
1247 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
1250 2002-05-03 H.J. Lu (hjl@gnu.org)
1252 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
1253 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
1254 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
1255 to hide a global symbol.
1256 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
1257 forced_local to true.
1259 2002-05-02 Richard Henderson <rth@redhat.com>
1261 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
1262 vs SHN_UNDEF to zero.
1264 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1266 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
1268 <R_PPC64_SECTOFF_DS>: Likewise.
1269 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1271 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
1272 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1275 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
1276 (ppc64_elf_ha_reloc): New function.
1277 (ppc64_elf_brtaken_reloc): New function.
1278 (ppc64_elf_sectoff_reloc): New function.
1279 (ppc64_elf_sectoff_ha_reloc): New function.
1280 (ppc64_elf_toc_reloc): New function.
1281 (ppc64_elf_toc_ha_reloc): New function.
1282 (ppc64_elf_toc64_reloc): New function.
1283 (ppc64_elf_unhandled_reloc): New function.
1284 (ppc64_elf_howto_raw): Use the above.
1285 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
1286 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
1287 <R_PPC64_SECTOFF_DS>: Likewise.
1288 (IS_ABSOLUTE_RELOC): Update.
1289 (struct ppc_link_hash_table): Add have_undefweak.
1290 (ppc64_elf_link_hash_table_create): Init.
1291 (func_desc_adjust): Set have_undefweak.
1292 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
1293 add the .sfpr blr when have_undefweak.
1294 (ppc64_elf_setup_section_lists): Check hash table flavour.
1295 (ppc64_elf_next_input_section): Move output_section->owner test to
1297 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
1298 and relocatable test. Return TOCstart and don't set elf_gp.
1299 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
1300 offset calculation. Add assert on weak sym branch tweaks.
1301 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
1302 (ppc64_elf_toc): Declare.
1303 (ppc64_elf_next_input_section): Update.
1305 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1307 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
1310 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1312 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
1313 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
1314 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
1315 call branches. Correct undefined weak destination.
1316 (ppc64_elf_func_desc_adjust): Always create at least one blr in
1317 .sfpr, and correct case where either only savef* or restf* is
1320 Long branch stubs, multiple stub sections.
1321 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
1322 (ppc64_elf_next_input_section): Declare.
1323 * elf64-ppc.c: Move linker-only prototypes.
1324 (STUB_SUFFIX): Define.
1325 (enum ppc_stub_type): New.
1326 (struct ppc_stub_hash_entry): New.
1327 (struct ppc_branch_hash_entry): New.
1328 (struct ppc_link_hash_entry): Add stub_cache, oh.
1329 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
1330 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
1331 Rename plt_overflow to stub_error.
1332 (ppc_stub_hash_lookup): Define.
1333 (ppc_branch_hash_lookup): Define.
1334 (stub_hash_newfunc): New function.
1335 (branch_hash_newfunc): New function.
1336 (link_hash_newfunc): Init new fields.
1337 (ppc64_elf_link_hash_table_create): Likewise.
1338 (ppc64_elf_link_hash_table_free): New function.
1339 (ppc_stub_name): New function.
1340 (ppc_get_stub_entry): New function.
1341 (ppc_add_stub): New function.
1342 (create_linkage_sections): Use bfd_make_section_anyway. Create
1343 .branch_lt and .rela.branch_lt sections. Don't create .stub.
1344 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
1345 and set up for plt call stubs. Link func and func desc syms.
1346 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
1347 (func_desc_adjust): Avoid hash lookup when func desc sym available
1348 via shortcut, and set links when processing.
1349 (ppc64_elf_hide_symbol): Likewise.
1350 (allocate_dynrelocs): Don't allocate stub section here.
1351 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
1353 (ppc_type_of_stub): New function.
1354 (build_one_stub): Delete.
1355 (ppc_build_one_stub): New function.
1356 (ppc_size_one_stub): New function.
1357 (ppc64_elf_setup_section_lists): New function.
1358 (ppc64_elf_next_input_section): New function.
1359 (group_sections): New function.
1360 (get_local_syms): New function.
1361 (ppc64_elf_size_stubs): Rewrite.
1362 (ppc64_elf_build_stubs): Rewrite.
1363 (ppc64_elf_relocate_section): Look up stub entry for REL24
1364 relocs. Don't propagate REL14* to dynamic objects. Look for long
1365 branch stubs if REL14* or REL24 relocs won't reach.
1366 (bfd_elf64_bfd_link_hash_table_free): Define.
1368 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1370 * bfd/config.bfd: Add support for powerpc-*-windiss.
1372 2002-04-30 Tom Rix <trix@redhat.com>
1374 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
1375 symbol names into the hash table.
1377 2002-04-28 Tom Rix <trix@redhat.com>
1379 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
1380 calulating relocations.
1381 (xcoff_complain_overflow) : Function table for relocation errors.
1382 (xcoff_ppc_relocate_section): Use relocation and complain function
1384 (xcoff_complain_overflow_unsigned_func): New complain function.
1385 (xcoff_complain_overflow_signed_func): Same.
1386 (xcoff_complain_overflow_bitfield_func): Same.
1387 (xcoff_complain_overflow_dont_func): Same.
1388 (xcoff_reloc_type_crel): New recot function.
1389 (xcoff_reloc_type_br): Same.
1390 (xcoff_reloc_type_ba): Same.
1391 (xcoff_reloc_type_toc): Same.
1392 (xcoff_reloc_type_rel): Same.
1393 (xcoff_reloc_type_neg): Same.
1394 (xcoff_reloc_type_pos): Same.
1395 (xcoff_reloc_type_fail): Same.
1396 (xcoff_reloc_type_noop): Same.
1397 * libxcoff.h : Declare common parts for xcoff64.
1398 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
1399 and complain function tables.
1401 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1403 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
1404 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
1406 2002-04-26 Alan Modra <amodra@bigpond.net.au>
1408 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
1409 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1411 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
1412 same as the output before calling elf_link_input_bfd.
1414 * coffcode.h (coff_compute_section_file_positions): Set
1415 section_tail after shuffling section list.
1417 2002-04-24 Christian Groessler <chris@groessler.org>
1419 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
1420 addresses are 23bit with a special layout, not plain 32bit
1421 values. Prevent relocation of immediate values.
1423 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1425 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
1426 MIPS-16 ASE flags are set, print something to indicate that.
1428 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1430 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
1431 under which a plt call stub is used.
1432 (final_link_relocate): Similarly.
1433 (allocate_plt_static): Clear h-plabel except when plt entry is
1434 exclusively used for a plabel.
1435 (allocate_dynrelocs): Use the above to simplify plt sizing.
1436 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
1437 (elf32_hppa_link_hash_table_create): Init.
1439 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
1440 (elf32_hppa_check_relocs): Set has_22bit_branch.
1442 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
1443 (final_link_relocate): Likewise.
1445 2002-04-22 Jakub Jelinek <jakub@redhat.com>
1447 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
1448 search table if some FDE is DW_EH_PE_aligned encoded either.
1449 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
1451 2002-04-22 Richard Smith <richard@ex-parrot.com>
1452 Jakub Jelinek <jakub@redhat.com>
1454 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
1455 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
1456 encoded personality.
1457 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
1458 for CIE/FDE removal.
1460 2002-04-20 Tom Rix <trix@redhat.com>
1462 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
1464 2002-04-20 Alan Modra <amodra@bigpond.net.au>
1466 * archures.c (bfd_lookup_arch): Move the list order comment..
1467 (struct bfd_arch_info): ..to where it belongs.
1468 * bfd-in2.h: Regenerate.
1470 * archures.c (bfd_lookup_arch): Add comment on list order.
1471 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
1472 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
1473 is always at head of list.
1475 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1477 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
1478 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
1479 definition of these functions for ARM_WINCE builds as they are
1481 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
1482 for ARM_WINCE builds.
1484 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1486 * coff-arm.c (bfd_arm_process_before_allocation):
1488 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1490 * cpu-sh.c (scan_mach): Delete.
1491 (arch_info_struct): Replace scan_mach with bfd_default_scan.
1492 (bfd_sh_arch): Likewise.
1494 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
1496 * ihex.c (ihex_write_object_contents): Fix check for records
1497 crossing 64K boundaries.
1499 2002-04-16 Alan Modra <amodra@bigpond.net.au>
1501 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
1502 type rather than just assuming entries are ELF.
1503 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1504 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1505 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
1506 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
1507 rather than elf_link_hash_entry.
1509 2002-04-15 Richard Henderson <rth@redhat.com>
1511 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
1514 2002-04-15 Michael Snyder <msnyder@redhat.com>
1516 * opncls.c (bfd_close): Write contents if writeable.
1517 Minor formatting tidy-ups.
1519 2002-04-15 Alan Modra <amodra@bigpond.net.au>
1521 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
1523 2002-04-12 Michael Snyder <msnyder@redhat.com>
1525 * bfd-in.h (bfd_get_section_lma): New access macro.
1526 Minor white-space fix-up.
1528 2002-04-12 Alan Modra <amodra@bigpond.net.au>
1530 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
1533 2002-04-09 DJ Delorie <dj@redhat.com>
1535 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
1537 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
1539 * coffcode.h (coff_read_word): New.
1540 (coff_compute_checksum): New.
1541 (coff_apply_checksum): New.
1542 (coff_write_object_contents): Call coff_apply_checksum () to
1543 apply checksum to PE image.
1545 2002-04-08 Randolph Chung <tausq@debian.org>
1547 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
1548 (elf32_hppa_final_link): Split out sorting logic to..
1549 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
1550 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
1552 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1554 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
1556 * configure: Re-generate.
1558 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1560 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
1561 is greater or equal to 4.3.3.
1562 * configure: Regenerate.
1565 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
1567 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
1568 R_CRIS_32_PCREL>: Fix typo in name.
1569 (cris_elf_check_relocs): Always create .rela.got here when
1570 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
1571 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
1572 assume it's created.
1574 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1576 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
1577 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
1579 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
1580 * bfd.c (bfd_link_hash_table_free): Define.
1581 * binary.c (binary_bfd_link_hash_table_free): Define.
1582 * bout.c (b_out_bfd_link_hash_table_free): Define.
1583 * coff-rs6000.c (rs6000coff_vec): Include
1584 _bfd_generic_link_hash_table_free.
1585 (pmac_xcoff_vec): Likewise.
1586 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1587 (aix5coff64_vec): Likewise.
1588 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
1589 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
1590 (bfd_elf32_bfd_link_hash_table_free): Define.
1591 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
1592 (bfd_elf32_bfd_link_hash_table_free): Define.
1593 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
1595 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
1596 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
1597 * ieee.c (ieee_bfd_link_hash_table_free): Define.
1598 * ihex.c (ihex_bfd_link_hash_table_free): Define.
1599 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
1600 (_bfd_generic_link_hash_table_free): Add prototype.
1601 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
1602 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
1603 * linker.c (_bfd_generic_link_hash_table_free): New function.
1604 * mmo.c (mmo_bfd_link_hash_table_free): Define.
1605 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
1606 * oasys.c (oasys_bfd_link_hash_table_free): Define.
1607 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
1608 * som.c (som_bfd_link_hash_table_free): Define.
1609 * srec.c (srec_bfd_link_hash_table_free): Define.
1610 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
1611 * versados.c (versados_bfd_link_hash_table_free): Define.
1612 * vms.c (vms_bfd_link_hash_table_free): New function.
1613 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
1615 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
1616 instead of bfd_alloc.
1617 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1618 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
1619 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
1620 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
1621 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
1622 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1623 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
1624 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
1625 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1626 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1627 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1628 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1629 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1630 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
1631 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
1632 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1633 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1634 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1635 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
1636 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
1637 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1638 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
1639 * m68klinux.c (linux_link_hash_table_create): Likewise.
1640 * sparclinux.c (linux_link_hash_table_create): Likewise.
1641 * sunos.c (sunos_link_hash_table_create): Likewise.
1642 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1644 * targets.c: Add _bfd_link_hash_table_free to xvec.
1646 * bfd-in2.h: Regenerate.
1647 * libbfd.h: Regenerate.
1648 * libcoff.h: Regenerate.
1650 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1652 * dep-in.sed: Cope with absolute paths.
1653 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
1655 * Makefile.in: Regenerate.
1656 * coff-arm.c: Fix copyright date.
1657 * cpu-h8300.c: Likewise.
1658 * cpu-i370.c: Likewise.
1659 * cpu-s390.c: Likewise.
1660 * cpu-mips.c: Likewise.
1661 * po/SRC-POTFILES.in: Regenerate.
1663 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1665 * Makefile.am: Add elfxx-mips.c to the known backends.
1666 (elf32-mips.lo): remove dependency to coff/external.h.
1667 * Makefile.in: Regenerate.
1668 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
1669 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
1671 * configure: Regenerate.
1672 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
1673 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
1674 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
1675 MIPS specific backend functions.
1676 * elf32-mips.c: Moved most code to elfxx-mips.c.
1677 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
1679 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
1680 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
1681 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
1682 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
1683 interface to allow selection of the right REL or RELA howto table.
1684 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
1685 static. Let it refuse n32 objects.
1686 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
1687 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
1688 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
1689 (elf32_mips_ignore_discarded_relocs): Rename from
1690 _bfd_elf32_mips_ignore_discarded_relocs.
1691 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
1692 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
1693 (elf_mips_howto_table_rela): Remove.
1694 * elf64-mips.c: Moved most code to elfxx-mips.c.
1695 (bfd_elf64_bfd_reloc_type_lookup): Make static.
1696 (mips_elf64_rtype_to_howto): New function.
1697 (mips_elf64_object_p): Likewise.
1698 (elf64_mips_irix_compat): Likewise.
1699 * elfxx-mips.c: New file containing common code merged together from
1700 elf32-mips.c and elf64-mips.c.
1701 * elfxx-mips.h: New file containing MIPS specific prototypes from
1703 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
1704 elf_backend_mips_rtype_to_howto.
1706 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1708 * srec.c (MAXCHUNK, Chunk): Revise comments.
1709 (srec_write_record): Correct buffer size.
1710 (srec_write_header): Do without intermediate buffer.
1711 (srec_write_section): Validate Chunk.
1712 (srec_write_terminator): Pass NULL instead of dummy buffer.
1713 (srec_write_symbols): Pass file and symbol names directly to
1714 bfd_bwrite so sprintf won't overflow buffer.
1716 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1718 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
1719 PC relative relocs against hidden symbols.
1720 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1722 2002-04-03 Alan Modra <amodra@bigpond.net.au>
1724 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
1725 LMAs, loop over segments until p_vaddr and p_memsz specify an
1726 extent enclosing the section.
1728 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
1730 * ihex.c (ihex_write_object_contents): Do not allow records to
1731 cross a 64K boundary - wrap if necessary.
1733 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
1735 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
1736 which caused the returned LWP ID to always be 0.
1738 2002-04-01 Richard Henderson <rth@redhat.com>
1740 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1741 (elf32_sparc_relocate_section): Use it to figure out when to
1742 initialize .got entries.
1743 * elf64-sparc.c: Similarly.
1745 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1747 * linker.c (link_action): Ignore duplicate warning syms.
1748 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
1749 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
1750 (elf_adjust_dynamic_symbol): Likewise.
1751 (elf_export_symbol): Likewise.
1752 (elf_link_find_version_dependencies): Likewise.
1753 (elf_link_assign_sym_version): Likewise.
1754 (elf_link_sec_merge_syms): Likewise.
1755 (elf_link_output_extsym): Likewise.
1756 (elf_gc_sweep_symbol): Likewise.
1757 (elf_gc_propagate_vtable_entries_used): Likewise.
1758 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1759 (elf_gc_allocate_got_offsets): Likewise.
1760 (elf_collect_hash_codes): Likewise.
1761 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
1762 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
1763 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
1764 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
1765 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
1766 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
1767 (elf_cris_discard_excess_dso_dynamics): Likewise.
1768 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
1769 (mark_PIC_calls): Likewise.
1770 (allocate_plt_static): Likewise.
1771 (allocate_dynrelocs): Likewise.
1772 (readonly_dynrelocs): Likewise.
1773 * elf32-i386.c (allocate_dynrelocs): Likewise.
1774 (readonly_dynrelocs): Likewise.
1775 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
1776 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
1777 * elf32-mips.c (mips_elf_output_extsym): Likewise.
1778 (mips_elf_sort_hash_table_f): Likewise.
1779 (mips_elf_check_mips16_stubs): Likewise.
1780 * elf32-s390.c (allocate_dynrelocs): Likewise.
1781 (readonly_dynrelocs): Likewise.
1782 * elf32-sh.c (sh_elf_discard_copies): Likewise.
1783 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
1784 (xstormy16_relax_plt_realloc): Likewise.
1785 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
1786 (elf64_alpha_output_extsym): Likewise.
1787 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
1788 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
1789 (mips_elf64_check_mips16_stubs): Likewise.
1790 (mips_elf64_output_extsym): Likewise.
1791 * elf64-ppc.c (func_desc_adjust): Likewise.
1792 (allocate_dynrelocs): Likewise.
1793 (readonly_dynrelocs): Likewise.
1794 * elf64-s390.c (allocate_dynrelocs): Likewise.
1795 (readonly_dynrelocs): Likewise.
1796 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
1797 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1798 (readonly_dynrelocs): Likewise.
1799 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
1800 * aoutx.h (aout_link_write_other_symbol): Likewise.
1801 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
1802 (_bfd_coff_write_global_sym): Likewise.
1803 * i386linux.c (linux_tally_symbols): Likewise.
1804 * m68klinux.c (linux_tally_symbols): Likewise.
1805 * sparclinux.c (linux_tally_symbols): Likewise.
1806 * pdp11.c (aout_link_write_other_symbol): Likewise.
1807 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
1808 * xcofflink.c (xcoff_build_ldsyms): Likewise.
1809 (xcoff_write_global_symbol): Likewise.
1811 * cofflink.c (_bfd_coff_final_link): Formatting.
1812 * cpu-mips.c (mips_compatible): Make static, prototype.
1813 * elf32-i386.c (elf_i386_check_relocs): Formatting.
1814 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1815 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
1816 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
1817 (mips_elf64_final_link): Likewise.
1818 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
1821 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
1823 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
1824 (SWAP_OUT_RELOC_OFFSET): Define.
1826 2002-03-27 Gregory Steuck <greg@nest.cx>
1828 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
1829 terminating NULL if empty symbol table.
1830 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
1832 2002-03-26 H.J. Lu (hjl@gnu.org)
1834 * elflink.h (elf_link_input_bfd): Revert the last change since
1835 the gcc exception handling isn't fixed yet.
1837 2002-03-26 H.J. Lu (hjl@gnu.org)
1839 * elflink.h (elf_link_input_bfd): Complain about relocations
1840 against local symbols in discarded sections.
1842 2002-03-26 Alan Modra <amodra@bigpond.net.au>
1844 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
1846 2002-03-23 Alan Modra <amodra@bigpond.net.au>
1848 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1849 section file offset for !SEC_LOAD sections.
1851 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
1853 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
1854 <case R_ARM_GOT>): Handle relocations to Thumb functions.
1856 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1858 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
1860 * archive.c: Update copyright date.
1861 * bfd-in2.h: Regenerate.
1862 * libbfd.h: Regenerate.
1863 * Makefile.am: Run "make dep-am"
1864 * Makefile.in: Regenerate.
1865 * po/SRC-POTFILES.in: Regenerate.
1867 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1869 * dwarf2.c (struct funcinfo): Move up.
1870 (lookup_address_in_function_table): New argument function_ptr.
1872 (lookup_address_in_line_table): New argument function. If function
1873 is non-NULL, use it to handle ``addr'' before the first line note of
1875 (comp_unit_find_nearest_line): Update and swap calls to
1876 lookup_address_in_function_table and lookup_address_in_line_table.
1877 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
1878 N_SLINE encountered if we see an N_FUN before any N_SLINE.
1880 2002-03-20 Tom Rix <trix@redhat.com>
1882 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
1883 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
1884 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
1886 2002-03-19 Tom Rix <trix@redhat.com>
1888 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
1889 dynamic objects in archives.
1891 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
1893 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
1894 STT_NOTYPE symbols to STT_OBJECT.
1896 2002-03-18 Jan Hubicka <jh@suse.cz>
1898 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
1900 2002-03-18 Tom Rix <trix@redhat.com>
1902 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
1903 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
1904 * coff-rs6000 (do_pad) : New function for archive padding.
1905 (do_copy) : New function for object file copying in archives.
1906 (do_shared_object_padding) : New function for padding shared
1907 objects to their text section alignment in archives.
1908 (bfd_xcoff_ar_achive_set_magic) : Stub.
1909 (xcoff_write_armap_big) : Use do_copy and do_pad.
1910 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
1912 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
1913 bfd_xcoff_magic_number.
1914 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
1916 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
1917 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
1918 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
1919 * rs6000-core.c : Update copyright date.
1920 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
1922 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
1923 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
1924 (coff_set_flags) : Use bfd_xcoff_magic_number.
1925 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
1926 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
1927 * Makefile.am : Same.
1928 * config.bfd : Same.
1930 * configure : Regnerate.
1931 * Makefile.in : Same.
1934 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1936 * po/fr.po: Updated version.
1938 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1940 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
1941 * libbfd.h: Regenerate.
1942 * archive.c (coff_write_armap): Pass on failures from
1943 bfd_write_bigendian_4byte_int.
1945 2002-03-14 H.J. Lu <hjl@gnu.org>
1947 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
1948 error to bfd_error_nonrepresentable_section for reinit_array
1951 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1953 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
1954 OR it in rather than replacing previously selected flags.
1956 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
1957 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
1959 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1961 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
1963 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
1964 ensure reloc size matches before calling elf_link_input_bfd.
1965 Add an assert to check reloc size when counting output relocs.
1967 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1969 * mmo.c (mmo_get_loc): Return NULL rather than false.
1971 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1973 * po/fr.po: Updated version.
1975 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1977 * archures.c (bfd_default_compatible): Test bits_per_word.
1978 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
1979 bfd_default_compatible.
1980 * cpu-i370.c (i370_compatible): Likewise.
1981 * cpu-sparc.c (sparc_compatible): Likewise.
1982 * cpu-h8300.c (compatible): Test in->arch == out->arch.
1984 * elflink.h: Formatting fixes.
1985 (elf_link_output_extsym): Merge undefined and undef weak cases.
1987 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
1988 when word size of input matches output word size.
1990 2002-03-12 Andreas Jaeger <aj@suse.de>
1992 * cpu-i386.c (i386_compatible): New. Use it instead of
1993 bfd_default_compatible.
1995 2002-03-07 H.J. Lu (hjl@gnu.org)
1997 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
1998 as the type for bfd_reloc_val.
2000 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2002 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
2003 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
2004 (elf_hppa_final_link_relocate): Correct relocations for indirect
2005 references to local data through the DLT. Fix .opd creation for
2006 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
2007 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
2008 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
2009 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2010 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
2011 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
2012 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2014 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2016 * merge.c (_bfd_merge_sections): Don't segfault if there
2017 is nothing to merge due to GC.
2019 2002-03-05 Alan Modra <amodra@bigpond.net.au>
2021 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
2022 symbols that have been forced local.
2024 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
2025 to output forced local syms for non-shared link.
2026 (elf_link_output_extsym): Tweak condition for calling backend
2027 adjust_dynamic_symbol so that previous behaviour is kept.
2028 Whitespace changes throughout file.
2030 2002-03-04 H.J. Lu <hjl@gnu.org>
2032 * elf.c (bfd_section_from_shdr): Handle special sections,
2033 .init_array, .fini_array and .preinit_array.
2034 (elf_fake_sections): Likewise.
2036 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
2037 DT entry only if the section is in output for .init_array,
2038 .fini_array and .preinit_array. Complain about .preinit_array
2040 (elf_bfd_final_link): Warn zero size for .init_array,
2041 .fini_array and .preinit_array sections.
2043 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
2044 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
2045 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
2048 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2050 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
2051 * configure: Regenerate.
2053 2002-03-02 Tom Rix <trix@redhat.com>
2055 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
2057 * coff-rs6000.c (xcoff_howto_table): Same.
2059 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2061 * elflink.h (size_dynamic_sections): If section named
2062 ".preinit_array" exists, create DT_PREINIT_ARRAY and
2063 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
2064 ".init_array" and ".fini_array".
2065 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
2066 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
2069 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
2071 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
2074 2002-02-25 Alan Modra <amodra@bigpond.net.au>
2076 * elf64-hppa.h: Update copyright date.
2078 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
2079 (ppc64_elf_relocate_section): Don't generate power4 style branch
2080 hints for *_BRTAKEN and *_BRNTAKEN relocs.
2082 2002-02-22 Jakub Jelinek <jakub@redhat.com>
2084 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
2086 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2088 2002-02-21 Andreas Jaeger <aj@suse.de>
2090 * elf64-x86-64.c: Major rework that introduces all recent changes
2091 to the x86-64 backend. Get a closer match to elf32-i386.
2092 (struct elf64_x86_64_dyn_relocs): Rename from
2093 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
2095 (struct elf64_x86_64_link_hash_table): Add short cuts to some
2097 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
2098 remove casts, initialize new hash members.
2099 (create_got_section): New.
2100 (elf64_x86_64_create_dynamic_sections): New.
2101 (elf64_x86_64_copy_indirect_symbol): New.
2102 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
2103 relocs, .got or .relgot here but do it in allocate_dynrelocs.
2104 Reference count possible .plt and .got entries. Don't test input
2105 section SEC_READONLY here to try to avoid copy relocs, and keep
2106 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
2107 DF_TEXTREL here. Delay setting of variables until needed. Cache
2108 pointer to "sreloc" section in elf_section_data. Tweak condition
2109 under which .got created. Report files with bad relocation
2111 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
2112 Reference count possible .plt entries. Don't deallocate .got and
2114 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
2115 do copy reloc processing for weakdefs. Remove redundant casts and
2116 aborts. Delay setting of vars until needed. Move creation of
2117 dynamic symbols and allocation of .plt and .rela.plt to
2118 allocate_dynrelocs. Replace BFD_ASSERT with abort.
2119 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2120 (allocate_dynrelocs): New.
2121 (readonly_dynrelocs): New.
2122 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
2123 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
2124 Zero out the dynamic allocated content space.
2125 (elf64_x86_64_discard_copies): Removed.
2126 (elf64_x86_64_relocate_section): Make use of dynamic section
2127 short-cuts. Localise vars, and delay setting. Better error
2128 reporting, replace BFD_ASSERT with abort. Check
2129 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
2130 regular object file and tread the weak definition as the normal
2131 one. Don't discard relocs for undefweak or undefined symbols and
2132 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
2134 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
2135 symbols that have been forced local. Use same test to decide if
2136 we can use a relative reloc for got as relocate_section. Expand
2137 SHN_UNDEF comment. Move expressions out of function calls.
2138 Replace BFD_ASSERT with abort.
2139 (bfd_elf64_bfd_final_link): Removed.
2140 (elf_backend_copy_indirect_symbol): Define.
2142 2002-02-20 Tom Rix <trix@redhat.com>
2144 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
2145 (_bfd_xcoff_reloc_type_lookup): Use it.
2146 * coff64-rs6000.c (xcoff64_howto_table): Same.
2147 (xcoff64_reloc_type_lookup): Same.
2149 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2151 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
2154 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2156 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
2157 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
2158 * bfd-in2.h: Regenerate.
2159 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
2160 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
2162 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
2163 (elf_s390_reloc_type_lookup): Likewise.
2164 (elf_s390_check_relocs): Likewise.
2165 (elf_s390_gc_sweep_hook): Likewise.
2166 (elf_s390_relocate_section): Likewise.
2167 (elf_s390_object_p): Use renamed architecture define.
2168 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
2170 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
2172 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
2174 2002-02-19 Jakub Jelinek <jakub@redhat.com>
2176 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
2177 absptr -> pcrel optimization for shared libs.
2178 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
2179 library cannot be converted to pcrel.
2180 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
2182 * elf32-i386.c (elf_i386_relocate_section): If
2183 _bfd_elf_section_offset returned -2, skip, but make sure the
2184 relocation is installed.
2185 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
2186 * elf32-cris.c (cris_elf_relocate_section): Likewise.
2187 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
2188 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2189 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2190 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2191 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2192 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2193 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2194 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2195 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2196 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2197 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2198 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2199 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
2200 _bfd_elf_section_offset returning -2 the same way as -1.
2201 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
2202 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
2204 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
2206 2002-02-18 Tom Rix <trix@redhat.com>
2208 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
2209 (bfd_xcoff_size_dynamic_sections): Same.
2210 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
2211 (bfd_xcoff_size_dynamic_sections): Same.
2212 * coff-rs6000.c (xcoff_generate_rtinit): Same.
2213 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
2214 * libxcoff.h (struct xcoff_backend_data_rec): Same.
2215 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
2216 * bfd-in2.h: Regenerate.
2218 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2220 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
2221 (struct ppc_link_hash_table): Add sfpr.
2222 (ppc64_elf_link_hash_table_create): Init it.
2223 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
2225 (create_linkage_sections): ..here. Make .sfpr too.
2226 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
2228 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
2229 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
2230 ._restf* functions, and create as needed.
2231 (func_desc_adjust): Only force_local for shared libs.
2233 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2235 * configure.in: Bump version number post 2.12 branching.
2236 * configure: Regenerate.
2238 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2240 * mmo.c: Correct and improve comments.
2241 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
2242 zero-pad. Use input to fill up non-empty bfd buffer.
2243 (mmo_flush_chunk): New function.
2244 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
2245 changed. Don't emit location specifier if VMA is same as
2246 *LAST_VMAP after omitting leading zero contents. Call
2247 mmo_flush_chunk before emitting location specifier.
2248 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
2249 with mmo_write_loc_chunk calls.
2250 (mmo_internal_write_section): Call mmo_flush_chunk after
2252 (mmo_write_symbols_and_terminator): Move :Main to first position
2253 in symbol array. Add faked one if it does not exist if there are
2254 other symbols. Don't add it if there are no symbols at all. Move
2255 out test for value of :Main from symbol loop. Rename table
2256 fakemain to maintable and variable mainsym to fakemain.
2258 2002-02-15 Richard Henderson <rth@redhat.com>
2260 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
2261 section with no got matches any got. Simplify error generaion.
2263 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2265 Support arbitrary length fill patterns.
2266 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
2267 (_bfd_default_link_order): Remove bfd_fill_link_order code.
2268 Call default_data_link_order.
2269 (default_fill_link_order): Delete.
2270 (default_data_link_order): New function.
2271 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
2272 of bfd_fill_link_order with bfd_data_link_order.
2273 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
2274 * elf64-mips.c (mips_elf64_final_link): Likewise.
2276 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
2277 Correct value returned in "end" for "0x<non-hex>".
2279 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
2281 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
2282 (scan): Test against 'mach' field in info structure.
2284 2002-02-14 Alan Modra <amodra@bigpond.net.au>
2286 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
2288 2002-02-14 Matt Fredette <fredette@netbsd.org>
2290 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
2293 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
2295 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
2296 non-zero physical addresses when adjusting the LMAs of new
2299 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2301 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
2302 from _bfd_elf_hppa_gen_reloc_type.
2303 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
2304 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
2305 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
2306 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
2308 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
2310 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
2311 loading its contents if there's nothing to do in it.
2313 2002-02-12 Alan Modra <amodra@bigpond.net.au>
2315 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
2318 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
2319 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
2320 (ppc64_elf_finish_dynamic_sections): Set values for them.
2322 2002-02-11 Michael Snyder <msnyder@redhat.com>
2324 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
2325 * elf.c (elfcore_grok_pstatus): Add prototype.
2326 (elfcore_grok_lwpstatus): Add prototype.
2327 (elfcore_write_lwpstatus): New function.
2328 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
2330 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2332 * elf32-sh.c: Added missing prototypes.
2333 * elf32-sh64.c: Likewise.
2334 (sh_elf_align_loads): Mark unused args as such.
2335 * elf64-sh64.c: Added missing prototypes.
2336 (struct elf_sh64_link_hash_entry): Fix typo.
2337 (sh_elf64_relocate_section): Fix info argument passed to
2338 _bfd_elf_section_offset.
2340 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2342 * Makefile.am: "make dep-am".
2343 * Makefile.in: Regenerate.
2344 * aclocal.m4: Regenerate.
2345 * config.in: Regenerate.
2346 * configure: Regenerate.
2348 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2350 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
2352 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
2354 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
2355 cast warnings for the common case.
2357 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2359 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
2361 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
2364 2002-02-09 Richard Henderson <rth@redhat.com>
2366 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
2367 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
2368 (elf64_alpha_relocate_section): Likewise.
2369 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
2370 * bfd-in2.h, libbfd.h: Rebuild.
2372 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2374 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
2375 that base-plus-offset reloc accounting is consistent.
2376 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
2377 up to date for undefined symbols.
2379 2002-02-08 Eric Christopher <echristo@redhat.com>
2381 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2383 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
2384 sections for the O32 ABI.
2386 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2388 * elf32-arm.h: Fix formatting of _("...").
2389 * elf32-d10v.c: Likewise.
2390 * elf32-m68k.c: Likewise.
2391 * elf32-mips.c: Likewise.
2393 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2395 * coff-or32.c: Fix compile time warning messages.
2397 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2399 Contribute sh64-elf.
2400 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
2401 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
2402 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
2403 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
2404 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
2405 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
2406 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
2407 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
2408 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
2409 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
2411 * libbfd.h, bfd-in2.h: Rebuilt.
2412 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
2413 (sh_reloc_map): Map them.
2414 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2415 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
2416 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
2417 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2418 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
2419 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
2420 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
2421 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
2422 datalabel_got_offset.
2423 (sh_elf_link_hash_newfunc): Initialize it.
2424 (sh_elf_relocate_section): Augment the scope of
2425 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
2426 GOT and GOTOFF handling to new SHmedia relocation types. Support
2428 (sh_elf_check_relocs): Likewise.
2429 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
2430 PLT entries using movi_shori_putval. Support GOT_BIAS.
2431 (sh_elf_finish_dynamic_sections): Likewise.
2432 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
2433 relocation, it's now done by the caller.
2435 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
2436 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
2437 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
2438 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
2439 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
2440 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
2441 sh64_elf64_hash_table): New.
2442 (sh_elf64_howto_table): Introduce new relocs.
2443 (sh_elf64_info_to_howto): Accept new PIC relocs.
2444 (sh_elf64_relocate_section): Augment the scope of
2445 seen_stt_datalabel. Support new PIC relocs.
2446 (sh_elf64_check_relocs): Support new PIC relocs.
2447 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
2448 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
2449 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
2450 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
2451 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
2452 movi_shori_putval, movi_3shori_putval,
2453 sh64_elf64_create_dynamic_sections,
2454 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
2455 sh64_elf64_size_dynamic_sections,
2456 sh64_elf64_finish_dynamic_symbol,
2457 sh64_elf64_finish_dynamic_sections): New.
2458 (elf_backend_create_dynamic-sections,
2459 bfd_elf64_bfd_link_hash_table_create,
2460 elf_backend_adjust_dynamic_symbol,
2461 elf_backend_size_dynamic_sections,
2462 elf_backend_finish_dynamic_symbol,
2463 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2464 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2465 elf_backend_got_header_size, elf_backend_plt_header_size):
2467 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2468 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
2469 match official numbers and names; moved unmaching ones to the
2471 * elf32-sh64.c, elf64-sh64.c: Likewise.
2472 2001-03-12 DJ Delorie <dj@redhat.com>
2473 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
2475 2001-03-12 DJ Delorie <dj@redhat.com>
2476 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
2478 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
2479 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2480 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
2481 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
2482 .cranges section with SEC_SORT_ENTRIES set.
2483 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
2484 incoming sorted .cranges section.
2485 (sh64_bfd_elf_copy_private_section_data): New.
2486 (sh64_elf_final_write_processing): Only sort .cranges and modify
2487 start address if called by linker.
2488 2001-01-08 Ben Elliston <bje@redhat.com>
2489 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
2490 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
2491 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
2492 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2493 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
2494 line. Add comments before all entries.
2495 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
2497 (sh_elf64_reloc): Correct head comment.
2498 (sh_elf64_relocate_section): Correct spacing.
2499 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
2500 instead call reloc_dangerous callback.
2501 <case R_SH_SHMEDIA_CODE>: New case.
2502 (sh_elf64_gc_mark_hook): Correct spacing.
2503 (sh_elf64_check_relocs): Ditto.
2504 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
2506 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
2508 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
2509 clarify describing comment. Add comments before all entries.
2510 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
2511 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
2512 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2513 Sort .cranges section in final link. Prepare to set bit 0 on
2515 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
2516 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
2517 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
2519 (sh64_backend_section_from_shdr): New, to recognize
2520 SHT_SH5_CR_SORTED on incoming .cranges section.
2521 (elf_backend_section_from_shdr): Define.
2522 (sh64_elf_final_write_processing): Sort outgoing .cranges
2523 section. (New, temporarily disabled:) Set bit 0 on entry address
2524 according to ISA type.
2525 (sh64_find_section_for_address): New.
2526 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
2527 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
2528 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
2529 bfd_malloc, not xmalloc.
2530 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
2532 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
2533 temporarily disabled) setting bit 0 on entry address.
2534 (elf_backend_final_write_processing): Define.
2535 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2536 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
2537 be a proper relocation for PTA and PTB rather than a marker.
2538 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
2539 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
2540 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
2541 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
2542 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
2544 * elf64-sh64.c: Ditto.
2545 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
2546 * elf32-sh64.c: Include opcodes/sh64-opc.h
2547 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
2548 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
2549 parameters. No unused parameters. Caller changed.
2550 <case R_SH_PT_16>: New case.
2551 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
2552 * Makefile.in: Regenerate.
2553 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2554 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
2556 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2557 (sh64_elf_merge_private_data): Ditto.
2558 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
2559 to access stored section flags.
2560 (sh64_elf_final_write_processing): Return immediately unless
2561 called by linker. Use sh64_elf_section_data (cranges) to get size
2562 of linker-generated cranges entries.
2563 (sh64_elf_copy_private_data): Add missing "return true".
2564 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2565 (sh_elf64_merge_private_data): Ditto.
2566 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2567 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
2568 elf64-sh64.c:sh64_elf_fake_sections.
2569 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
2570 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2571 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
2572 (sh64_elf_final_write_processing): New.
2573 (elf_backend_final_write_processing): Define.
2574 (sh64_elf_fake_sections): Get header flags from tdata field.
2575 (sh64_elf_copy_private_data): Do not call
2576 sh64_elf_copy_private_data_internal, just copy e_flags field.
2577 (sh64_elf_merge_private_data): Do not call
2578 sh64_elf_copy_private_data_internal.
2579 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2580 Remove EF_SH64_ABI64, let ELF size make difference.
2581 Remove SH64-specific BFD section flag.
2582 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
2583 containing SHmedia through elf_section_data (asect)->tdata
2584 non-zero, not using a BFD section flag.
2585 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
2586 (sh64_elf_merge_private_data): Similar.
2587 (elf_backend_section_flags): Don't define.
2588 (sh64_elf_backend_section_flags): Delete.
2589 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
2591 (sh_elf64_merge_private_data): Similar.
2592 * section.c (Section flags definitions): Don't define
2594 (bfd-in2.h): Regenerate.
2595 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
2596 Make DataLabel references work with partial linking.
2597 * elf32-sh64.c: Fix formatting.
2598 (sh64_elf_link_output_symbol_hook): New.
2599 (elf_backend_link_output_symbol_hook): Define to
2600 sh64_elf_link_output_symbol_hook.
2601 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
2602 undefined if partial linking. Adjust sanity check.
2603 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
2604 (elf_backend_link_output_symbol_hook): Define to
2605 sh64_elf64_link_output_symbol_hook.
2606 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
2607 undefined if partial linking. Adjust sanity check.
2608 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
2609 Implement semantics for inter-file DataLabel references.
2610 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
2611 (sh64_elf64_add_symbol_hook): New.
2612 (sh_elf64_relocate_section): If passing an indirect symbol with
2613 st_type STT_DATALABEL on the way to a symbol with st_other
2614 STO_SH5_ISA32, do not bitor 1 to the relocation.
2615 (elf_backend_add_symbol_hook): Define to
2616 sh64_elf64_add_symbol_hook.
2617 * elf64-sh32.c: Tweak comments.
2618 (DATALABEL_SUFFIX): Define.
2619 (sh64_elf_add_symbol_hook): New.
2620 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
2621 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
2622 symbol with st_type STT_DATALABEL on the way to a symbol with
2623 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
2624 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
2625 Pass through STT_DATALABEL.
2626 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
2627 (elf_backend_get_symbol_type): Define.
2628 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
2629 (elf_backend_get_symbol_type): Define.
2630 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
2631 * elf32-sh64.c: Tweak comments.
2632 (sh64_elf_copy_private_data_internal): Add prototype.
2633 (bfd_elf32_bfd_set_private_flags): Define.
2634 (sh64_elf_copy_private_data_internal): Compare machine name, not
2635 textual BFD target name, to check whether to copy section flag
2637 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
2638 Tweak section-contents-type-mismatch message.
2639 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
2640 Validize reloc-types.
2641 * elf64-sh64.c: New file.
2642 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
2643 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
2644 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
2645 Regenerate dependencies.
2646 * Makefile.in: Regenerate.
2647 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
2648 bfd_elf64_sh64l_vec.
2649 * configure.in: Handle bfd_elf64_sh64_vec and
2650 bfd_elf64_sh64l_vec.
2651 * configure: Regenerate.
2652 * po/POTFILES.in: Regenerate.
2653 * po/bfd.pot: Regenerate.
2654 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
2655 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
2656 anything else but EF_SH64 and EF_SH64_ABI64.
2657 (sh64_elf_merge_private_data): Emit error for anything else but
2658 EF_SH64 and EF_SH64_ABI64.
2659 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
2661 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
2662 bfd_elf32_sh64l_vec as a temporary measure.
2663 * configure: Regenerate.
2664 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
2665 * cpu-sh.c (arch_info_struct): Include sh5 item
2667 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
2668 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
2669 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
2670 * elf32-sh64.c: Tweak comments.
2671 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
2672 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
2673 (sh64_elf_copy_private_data_internal): Wrap long line.
2674 (sh64_elf_merge_private_data): Rewrite to allow objects from
2675 SH64 subsets to be linked together.
2676 (INCLUDE_SHMEDIA): Define.
2677 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
2678 Parenthesize plus-expression inside or-expression.
2679 <global symbol>: Ditto.
2680 (sh_elf_set_mach_from_flags): Remove code refusing
2681 deleted EF_SH64_32BIT_ABI flag.
2682 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
2683 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
2684 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
2685 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
2686 (sh_elf_relocate_section) <local symbol>: Or 1 in
2687 calculation of relocation if sym->st_other & STO_SH5_ISA32.
2688 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
2689 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
2691 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
2692 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
2693 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
2694 Regenerate dependencies.
2695 * Makefile.in: Regenerate.
2696 * archures.c: Add bfd_mach_sh5.
2697 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
2698 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
2699 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
2700 * configure: Regenerate.
2701 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
2702 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
2703 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
2704 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
2705 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
2706 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
2707 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
2708 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
2709 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
2710 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
2712 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
2714 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
2715 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
2716 shmedia_prepare_reloc, goto final_link_relocate if it returns
2717 non-zero, else fail as before.
2718 (sh_elf_set_mach_from_flags): Provide function only if not defined
2719 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
2720 (sh_elf_set_private_flags): Provide function only if not defined
2722 (sh_elf_copy_private_data): Similar.
2723 (sh_elf_merge_private_data): Similar.
2724 * section.c (SEC_SH_ISA_SHMEDIA): New.
2725 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
2726 * elf32-sh64.c: New file.
2727 * libbfd.h: Regenerate.
2728 * bfd-in2.h: Regenerate.
2729 * po/POTFILES.in: Regenerate.
2730 * po/bfd.pot: Regenerate.
2731 * bfd-in2.h: Regenerate.
2732 * libbfd.h: Regenerate.
2734 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
2736 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
2737 been included, not drag it in.
2738 * bfd-in2.h: Regenerate.
2740 2002-02-06 H.J. Lu (hjl@gnu.org)
2742 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
2743 the mach and ISA fields if necessary.
2745 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2747 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
2748 ARM architecture when an F_ARM_5 flag is detected, since we cannot
2749 be sure exactly which architecture this represents.
2751 2002-02-05 Nick Clifton <nickc@redhat.com>
2753 * po/tr.po: Updated translation.
2755 2002-02-05 Alan Modra <amodra@bigpond.net.au>
2757 From Jimi X <jimix@watson.ibm.com>
2758 * archures (bfd_mach_ppc64): Define.
2759 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
2760 (bfd_powerpc_arch): Define.
2761 * bfd-in2.h: Regenerate.
2762 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
2763 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
2764 (bfd_powerpc_archs): Add default powerpc64 arch.
2766 2002-02-05 Alan Modra <amodra@bigpond.net.au>
2768 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
2769 against section syms in readonly sections. Don't do the global
2770 sym check if we find one.
2771 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
2772 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
2773 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2774 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
2775 (elf_s390_grok_prstatus): Add missing prototype.
2777 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
2779 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
2780 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
2781 Call bfd_get_section_by_name only once. Initialize
2782 bpodata->n_bpo_relocs_this_section.
2783 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
2785 (bpo_reloc_request_sort_fn): Don't use difference of values as
2788 2002-02-02 David O'Brien <obrien@FreeBSD>
2790 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
2791 version 4.5 and later the same as 5-CURRENT.
2792 * configure: Re-generate.
2794 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
2796 * config.bfd (hppa*-*-netbsd*): New target.
2798 2002-01-31 Philipp Thomas <pthomas@suse.de>
2800 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
2801 to front of message. Unify messages with elf32-arm.h. Use
2802 commas where neccessary.
2803 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
2804 ERROR in messages. Unify messages with coff-arm.c. Correct
2805 VFP/FPA error message.
2806 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
2807 APCS-32 for translation.
2809 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
2811 Perform on-demand global register allocation from
2812 R_MMIX_BASE_PLUS_OFFSET relocs.
2813 * elf64-mmix.c (struct bpo_reloc_section_info, struct
2814 bpo_reloc_request, struct bpo_greg_section_info): New.
2815 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
2816 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
2817 _bfd_mmix_check_all_relocs,
2818 _bfd_mmix_prepare_linker_allocated_gregs,
2819 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
2820 (elf_mmix_howto_table): Correct src_mask for most relocs.
2821 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
2823 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
2824 case. Fix typo in comment. New label do_mmix_reloc.
2825 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
2826 store first object file with a base-plus-offset reloc. Call
2827 mmix_elf_check_common_relocs for the part common with mmo.
2828 (mmix_elf_final_link): Write out linker-allocated register
2830 (elf_backend_gc_sweep_hook): Define.
2831 (bfd_elf64_bfd_relax_section): Define.
2833 * mmo.c: Don't include <ctype.h>
2834 (mmo_init): Correct init-once logic.
2836 2002-02-01 Tom Rix <trix@redhat.com>
2838 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
2840 2002-02-01 Alan Modra <amodra@bigpond.net.au>
2842 * Makefile.am: Run "make dep-am"
2843 * Makefile.in: Regenerate.
2845 2002-01-31 David O'Brien <obrien@FreeBSD>
2847 * configure.in: Recognize the differences in core files from FreeBSD
2848 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
2850 * configure: Regenerate.
2852 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
2854 * coff-or32.c: New file.
2855 * cpu-or32.c: New file.
2856 * elf32-or32.c: New file.
2857 * archures.c: Add support for or32.
2858 * targets.c: Add support for or32.
2859 * bfd-in2.h: Regenerate.
2860 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
2861 coff_write_object_contents): Add support for or32.
2862 * config.bfd: Add target.
2863 * configure.in: Add support for or32.
2864 * configure: Regenerate.
2865 * Makefile.am: Add support for or32.
2866 * Makefile.in: Regenerate.
2867 * po/SRC-POTFILES.in: Add or32 files.
2868 * po/bfd.pot: Regenerate.
2870 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
2871 Don Lindsay <lindsayd@cisco.com>
2873 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
2874 false' with a return of a bfd_reloc_ error code.
2876 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
2878 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
2879 unexport unreferenced symbols when --export-dynamic. Call
2880 _bfd_elf_strtab_delref when unexporting.
2882 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
2884 * bfd-in.h: Include <stdbool.h> if it is available.
2885 * bfd-in2.h: Regenerated.
2887 2002-01-31 Alan Modra <amodra@bigpond.net.au>
2889 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
2892 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2894 * archures.c: Tidy up formatting of embedded comments.
2895 * bfd.c: Tidy up formatting of embedded comments.
2896 * bfd-in.h: Fix formatting of comments.
2897 * reloc.c: Tidy up formatting of ordinary & embedded comments.
2898 * section.c: Tidy up formatting of embedded comments.
2899 * syms.c: Tidy up formatting of embedded comments.
2900 * targets.c: Tidy up formatting of embedded comments.
2902 * bfd-in2.h: Regenerate.
2904 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
2906 * vms-tir.c (cmd_name): New function.
2907 (tir_cmd_name): New function.
2908 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
2909 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
2912 * peXXigen.c (pe_print_idata): Rearrange message to aid in
2914 (pe_print_pdata): Rearrange message to aid in translation.
2916 * libbfd.c (warn_deprecated): Rearrange error message to aid in
2919 * ihex.c (ihex_write_object_contents): Fix spelling typo.
2921 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
2923 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
2924 message to aid in translation.
2926 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
2927 to aid in translation.
2929 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
2931 2002-01-30 Philipp Thomas <pthomas@suse.de>
2933 * coff-arm.c, elf32-elf.h: Unify messages.
2935 2002-01-30 Nick Clifton <nickc@redhat.com>
2937 * po/sv.po: Updated translation.
2939 2002-01-30 Philipp Thomas <pthomas@suse.de>
2941 * dwarf2.c (read_abbrev): Use full section name in error message.
2942 (decode_line_info): Likewise.
2944 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
2947 2002-01-30 Alan Modra <amodra@bigpond.net.au>
2949 * elf64-ppc.c (func_desc_adjust): Only provide missing function
2950 descriptor symbols for undefined function code syms. Clear
2951 ELF_LINK_NON_ELF so that they can stay weak.
2953 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2954 Mitch Lichtenberg <mpl@broadcom.com>
2956 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
2957 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
2958 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
2960 * bfd-in2.h: Regenerate.
2962 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2964 * elf32-mips.c: Add additional comments about HI16 relocation
2966 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
2967 pc-relative relocations. (Reverts change made on 2001-10-31.)
2968 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
2969 for pc-relative relocations.
2970 (mips_elf_calculate_relocation): Add a comment about a kludge
2971 in the R_MIPS_GNU_REL_HI16 handling.
2972 (_bfd_mips_elf_relocate_section): Implement that kludge;
2973 adjust pc-relative HI16 relocation for difference in HI16 and
2974 LO16 addresses, since it can't easily be done in
2975 mips_elf_calculate_relocation.
2977 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2979 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
2980 relocations with PC32 relocations for undefined or weak symbols.
2981 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
2982 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
2984 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2986 * elfcore.h (elf_core_file_p): Improve comment for last change.
2988 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2990 * configure: Regenerated.
2992 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
2994 * elfcore.h (elf_core_file_p): Set the machine architecture
2995 before processing the program headers.
2997 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2999 * configure.in <64-bit configuration>: If using gcc, check and
3000 emit error for egcs-1.1.2.
3001 * configure: Regenerate.
3003 2002-01-26 Egor Duda <deo@logos-m.ru>
3005 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
3006 as possible to avoid stack corruption.
3008 2002-01-26 Richard Henderson <rth@redhat.com>
3010 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
3011 for non-allocated sections.
3013 2002-01-25 Mark Kettenis <kettenis@gnu.org>
3015 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
3016 prstat.pr_reg even if it is a struct.
3018 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3020 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
3022 2002-01-25 Philipp Thomas <pthomas@suse.de>
3024 * coffgen.c (coff_print_symbol): Don't mark info message
3027 2002-01-25 Nick Clifton <nickc@redhat.com>
3029 * po/fr.po: Updated translation.
3030 * po/es.po: Updated translation.
3032 2002-01-25 Philipp Thomas <pthomas@suse.de>
3034 * coff-alpha.c (alpha_relocate_section): Unify warning message
3035 for GP relative relocations without GP defined.
3036 * coff-mips.c (mips_relocate_section): Likewise.
3038 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3040 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
3041 unsigned overflow when new_offset < old_offset.
3043 2002-01-24 Philipp Thomas <pthomas@suse.de>
3045 * bfd.c (_bfd_abort): Fix typo.
3047 2002-01-23 Richard Henderson <rth@redhat.com>
3049 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
3050 plt entries for undefweak symbols.
3052 2002-01-23 Steve Ellcey <sje@cup.hp.com>
3054 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
3056 (bfd_elf64_ia64_hpux_big_vec): Ditto.
3057 (bfd_elf32_h8300_vec): Ditto.
3059 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3061 * elf64-ppc.c: Remove stale part of ABI comment.
3062 (NO_OPD_RELOCS): Define.
3063 (ppc64_elf_check_relocs): Use it.
3064 (ppc64_elf_relocate_section): Here too.
3065 (build_one_stub): Don't point function syms at the stub. Instead,
3067 (ppc64_elf_relocate_section): Check whether REL24 relocs should
3068 really go to the stub. Make all dynamic relocs in opd against
3070 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
3073 2002-01-22 Richard Henderson <rth@redhat.com>
3075 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
3077 2002-01-22 Alan Modra <amodra@bigpond.net.au>
3079 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
3080 TOC_BASE_OFF adjustment.
3082 * Makefile.am: Run "make dep-am".
3083 * Makefile.in: Regenerate.
3084 * po/SRC-POTFILES.in: Regenerate.
3086 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
3088 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
3091 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
3093 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
3094 Check for and emit error if sgot is NULL at this point.
3096 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3098 * config.bfd (ia64*-*-netbsd*): New target.
3100 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
3102 * som.c (som_write_space_strings): Comment typo fix.
3104 2002-01-21 Alan Modra <amodra@bigpond.net.au>
3106 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
3107 is_func_descriptor fields.
3108 (link_hash_newfunc): Init them.
3109 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
3110 dot are candidates for plt entries. When processing .opd relocs,
3111 set function descriptor strings to point inside function code
3112 string, and set new ppc_link_hash_entry fields.
3113 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
3114 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
3115 function descriptors. It's now done in..
3116 (func_desc_adjust): New.
3117 (ppc64_elf_func_desc_adjust): New.
3118 (define elf_backend_always_size_sections): Define.
3119 (ppc64_elf_hide_symbol): New.
3120 (define elf_backend_hide_symbol): Define.
3121 (allocate_dynrelocs): Remove code looking up function descriptors
3122 as that has been done earlier.
3123 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
3125 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
3126 up function descriptor.
3127 (build_one_stub): Look up the function code sym. Check for
3128 invalid plt offsets.
3129 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
3130 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
3132 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
3134 (_bfd_elf_link_hash_hide_symbol): Likewise.
3135 * elflink.h (elf_link_add_object_symbols): Adjust call to
3136 elf_backend_hide_symbol.
3137 (elf_fix_symbol_flags): Likewise.
3138 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
3140 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
3141 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
3142 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3143 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
3144 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
3146 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
3147 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
3148 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3150 2002-01-18 Alan Modra <amodra@bigpond.net.au>
3152 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
3153 dynamic function descriptor symbol, not the associated function
3156 2002-01-17 Eric Christopher <echristo@redhat.com>
3158 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
3160 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3162 * po/bfd.pot: Regenerate.
3163 * po/fr.po: Regenerate.
3165 2002-01-17 Alan Modra <amodra@bigpond.net.au>
3167 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
3168 Remove "Elf_Internal_Shdr *" param.
3169 (_bfd_mips_elf_section_from_bfd_section): Ditto.
3170 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
3171 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
3172 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
3173 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
3174 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
3175 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
3176 function to override special sections. Remove hdr arg from
3177 backend call, and don't loop.
3179 2002-01-16 Eric Christopher <echristo@redhat.com>
3181 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
3182 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
3183 relocations requiring gp0 and gp.
3185 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
3187 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
3189 (elf32_arm_print_private_bfd_data): Likewise.
3191 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3193 * po/tr.po: Import new version.
3195 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3197 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
3198 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
3199 (ORI_R0_R0_0): Correct.
3201 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3203 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
3204 when plt_not_loaded.
3205 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
3206 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
3207 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
3208 (ppc64_elf_glink_code): Delete.
3209 (PPC64_ELF_GLINK_SIZE): Delete.
3210 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
3211 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
3212 ORI_R0_R0_0): Define.
3213 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
3214 (struct ppc_link_hash_table): Add sstub and plt_overflow.
3215 (ppc64_elf_link_hash_table_create): Init them.
3216 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
3217 Don't copy to shared lib.
3218 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
3219 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
3220 (allocate_dynrelocs <plt>): Don't change function sym here. Make
3221 room for .stub and .glink code.
3222 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
3224 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
3225 bfd_elf64_bfd_final_link.
3226 (bfd_elf64_bfd_final_link): Don't define.
3227 (ppc64_elf_size_stubs): New.
3228 (build_plt_stub): New.
3229 (build_one_stub): New.
3230 (ppc64_elf_build_stubs): New.
3231 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
3232 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
3233 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
3234 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
3235 case output sections not separate. Adjust DT_RELASZ to not
3236 include plt relocs. Set reserved got entry. Set got and plt
3238 (elf_backend_got_header_size): Set to 8.
3239 * elf64-ppc.h: New file.
3241 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3243 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
3244 sections, use bfd_section_list_remove.
3245 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3246 * elflink.h (elf_link_add_object_symbols): When removing all
3247 sections, use bfd_section_list_clear.
3249 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3251 * po/sv.po: New file: Swedish translation.
3252 * configure.in (ALL_LINGUAS): Add sv.
3253 * configure: Regenerate.
3255 2002-01-15 Jakub Jelinek <jakub@redhat.com>
3257 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
3258 * elf.c (merge_sections_remove_hook): New function.
3259 (_bfd_elf_merge_sections): Pass it as 3rd argument to
3260 _bfd_merge_sections.
3261 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
3262 * libbfd.h: Rebuilt.
3263 * merge.c (_bfd_merge_sections): Add remove_hook argument.
3264 Call remove_hook if a SEC_EXCLUDE section is encountered.
3266 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3268 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
3269 (xstormy16_reloc_map): Initialise new field with correct howto
3271 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
3274 2002-01-10 Michael Snyder <msnyder@redhat.com>
3276 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
3277 (elfcore_write_pstatus): Use long instead of pid_t;
3278 * elf-bfd.h: Change prototypes to use long instead of pid_t;
3280 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
3282 * elf.c: Update copyright years.
3283 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
3284 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
3286 2002-01-08 Michael Snyder <msnyder@redhat.com>
3288 Add capability to write corefile note sections, for gdb.
3289 * elf.c (elfcore_write_note): New function.
3290 (elfcore_write_prpsinfo): New function.
3291 (elfcore_write_prstatus): New function.
3292 (elfcore_write_pstatus): New function.
3293 (elfcore_write_prfpreg): New function.
3294 (elfcore_write_prxfpreg): New function.
3295 * elf-bfd.h: Add prototypes for above functions.
3297 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3299 * elf.c (elf_fake_sections): Propagate errors from
3300 elf_backend_fake_section.
3302 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3304 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
3305 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
3306 (elf32-sh-nbsd.lo): New rule.
3307 * Makefile.in: Regenerate.
3308 * config.bfd (sh*le-*-netbsdelf*): New target.
3309 (sh*-*-netbsdelf*): New target.
3310 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
3311 (bfd_elf32_shnbsd_vec): New vector.
3312 (bfd_elf32_shlnbsd_vec): New vector.
3313 * configure: Regenerate.
3314 * elf32-sh-nbsd.c: New file.
3315 * targets.c: Update copyright years.
3316 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
3317 bfd_elf32_shnbsd_vec.
3319 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
3321 * coff-rs6000.c (READ20): Use bfd_scan_vma.
3323 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
3325 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
3326 of a symbol in a section that will be deleted.
3328 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3330 * po/es.po: New file: Spanish translation.
3331 * configure.in (ALL_LINGUAS): Add es.
3332 * configure: Regenerate.
3334 2002-01-06 Steve Ellcey <sje@cup.hp.com>
3336 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
3337 argument so we can handle HP-UX specially.
3338 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
3339 (elfNN_hpux_backend_section_from_bfd_section): New for support
3340 of SHN_IA_64_ANSI_COMMON.
3341 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
3342 (is_unwind_section_name): Add special HP-UX support.
3343 (elfNN_ia64_section_from_shdr): Add support for more sections.
3344 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
3345 add support for more sections.
3346 (elfNN_ia64_additional_program_headers): Modify
3347 is_unwind_section_name call.
3348 (elfNN_ia64_modify_segment_map): Remove assumption that there is
3349 only one unwind section in segment.
3351 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3353 * syms.c (_bfd_generic_make_empty_symbol): New function.
3354 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
3355 _bfd_generic_make_empty_symbol.
3356 * libbfd.h: Regenerate.
3357 * bfd-in2.h: Regenerate.
3358 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
3359 (hppabsd_core_get_symtab_upper_bound): Don't define.
3360 (hppabsd_core_get_symtab): Likewise.
3361 (hppabsd_core_print_symbol): Likewise.
3362 (hppabsd_core_get_symbol_info): Likewise.
3363 (hppabsd_core_bfd_is_local_label_name): Likewise.
3364 (hppabsd_core_get_lineno): Likewise.
3365 (hppabsd_core_find_nearest_line): Likewise.
3366 (hppabsd_core_bfd_make_debug_symbol): Likewise.
3367 (hppabsd_core_read_minisymbols): Likewise.
3368 (hppabsd_core_minisymbol_to_symbol): Likewise.
3369 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
3371 * hpux-core.c: Similarly.
3372 * irix-core.c: Similarly.
3373 * osf-core.c: Similarly.
3374 * sco5-core.c: Similarly.
3375 * binary.c (binary_make_empty_symbol): Remove function, define as
3376 _bfd_generic_make_empty_symbol.
3377 * ihex.c (ihex_make_empty_symbol): Likewise.
3378 * mmo.c (mmo_make_empty_symbol): Likewise.
3379 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
3380 * srec.c (srec_make_empty_symbol): Likewise.
3381 * versados.c (versados_make_empty_symbol): Likewise.
3382 * vms.c (_bfd_vms_make_empty_symbol): Remove.
3383 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
3384 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
3385 rather than _bfd_vms_make_empty_symbol.
3386 * vms-misc.c (new_symbol): Likewise.
3388 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3390 * section.c (bfd_section_init): Remove unnecessary initialisations.
3391 (bfd_section_list_clear): New function.
3392 (bfd_section_list_remove, bfd_section_list_insert): New macros.
3393 (_bfd_strip_section_from_output): Use them.
3394 * coffcode.h (coff_set_alignment_hook): Likewise.
3395 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
3396 * elf64-mips.c (mips_elf64_final_link): Likewise.
3397 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3398 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3399 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3400 * bfd-in2.h: Regenerate.
3402 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
3403 rather than doing our own section handling. Clean up after errors
3404 with bfd_release and bfd_section_list_clear. Handle unexpected
3406 * aoutf1.h (sunos4_core_file_p): Likewise.
3407 * aix386-core.c (aix386_core_file_p): Likewise.
3408 * cisco-core.c (cisco_core_file_validate): Likewise.
3409 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3410 * trad-core.c (trad_unix_core_file_p): Likewise.
3412 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
3413 with bfd_release and bfd_section_list_clear.
3414 * hpux-core.c (hpux_core_core_file_p): Likewise.
3415 * irix-core.c (irix_core_core_file_p): Likewise.
3416 * lynx-core.c (lynx_core_file_p): Likewise.
3417 * osf-core.c (osf_core_core_file_p): Likewise.
3418 * rs6000-core.c (rs6000coff_core_p): Likewise.
3419 * sco5-core.c (sco5_core_file_p): Likewise.
3421 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
3422 sign extension adjustments without conditionals.
3424 2002-01-04 Jakub Jelinek <jakub@redhat.com>
3426 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
3427 CIE at .eh_frame start is removed due to no FDEs referencing it.
3429 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3431 * config.bfd (x86_64-*-netbsd*): New target.
3432 * configure.in (x86_64-*-netbsd*): Set COREFILE
3434 * configure: Regenerated.
3436 2002-01-03 Tom Rix <trix@redhat.com>
3438 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
3439 for recent bfd_make_section_anyway change.
3441 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
3443 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3444 R_ARM_THM_PC11 reloc.
3446 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3448 * configure.in (LINGUAS): Add ja.
3449 * configure: Regenerate.
3450 * po/ja.po: Import from translation project's web site.
3452 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3454 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
3455 messages to ease translation into other languages.
3457 For older changes see ChangeLog-0001
3463 version-control: never