1 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3 * som.c (setup_sections): Initialize subspace_sections.
5 2001-11-02 H.J. Lu (hjl@gnu.org)
7 * coffgen.c (coff_object_p): Return 0 if the header is too big.
9 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
11 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
12 information. Save bfd arch and mach values. Restore on error.
14 2001-11-02 Alan Modra <amodra@bigpond.net.au>
16 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
17 (allocate_PIC_calls): New function.
18 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
19 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
20 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
22 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
24 * elf32-cris.c (cris_elf_grok_prstatus): New function.
25 (cris_elf_grok_psinfo): New function.
26 (elf_backend_grok_prstatus): Define.
27 (elf_backend_grok_psinfo): Define.
29 2001-11-01 Alan Modra <amodra@bigpond.net.au>
31 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
34 2001-10-31 Chris Demetriou <cgd@demetriou.com>
36 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
39 2001-10-31 H.J. Lu <hjl@gnu.org>
41 * elflink.h (elf_link_output_extsym): Don't clear the visibility
42 field for relocateable.
44 2001-11-01 Alan Modra <amodra@bigpond.net.au>
46 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
47 .plt relocs in DT_RELASZ.
49 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
51 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
54 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
56 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
58 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
60 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
61 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
62 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
63 Regenerate dependencies.
64 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
65 * config.bfd: [BFD64] (mmix-*-*): New case.
66 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
67 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
68 (bfd_mmix_arch): Declare.
69 (bfd_archures_list): Add bfd_mmix_arch.
70 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
71 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
72 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
74 * reloc.c: Add MMIX relocations.
75 * bfd.c (struct _bfd, tdata): Add mmo_data.
76 * Makefile.in: Regenerate.
77 * configure: Regenerate.
78 * libbfd.h: Regenerate.
79 * bfd-in2.h: Regenerate.
82 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
84 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
85 p_paddr of the segment that contains it.
86 (copy_private_bfd_data): If the LMA for a segment is known, use it
87 for matching sections to segments.
88 (assign_file_positions_for_segments): Use the LMA when adjusting
89 for inter-section alignment padding.
91 2001-10-29 Kazu Hirata <kazu@hxi.com>
95 2001-10-24 Richard Henderson <rth@redhat.com>
97 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
98 timestamp to time_t for ctime.
100 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
102 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
103 unsigned, increasing index.
105 2001-10-23 H.J. Lu <hjl@gnu.org>
107 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
108 m != NULL before accessing it.
110 2001-10-23 Alan Modra <amodra@bigpond.net.au>
112 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
113 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
114 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
116 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
117 (hppa_link_hash_newfunc): Likewise.
118 (elf32_hppa_finish_dynamic_symbol): Likewise.
119 (allocate_dynrelocs): Always allocate .got relocs if shared.
120 (elf32_hppa_relocate_section): Output them too. Similarly
121 consolidate .plt reloc code, and no longer initialise .plt
122 when a reloc is output.
123 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
124 when no reloc is output.
126 From Herbert Xu <herbert@gondor.apana.org.au>
127 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
128 unreachable branches.
130 2001-10-22 H.J. Lu <hjl@gnu.org>
132 * configure.in (WIN32LIBADD): Use -L../libiberty for
134 * configure: Rebuild.
136 2001-10-21 H.J. Lu <hjl@gnu.org>
138 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
139 if shared library is enabled only for Linux hosts.
140 * configure: Rebuild.
142 2001-10-21 H.J. Lu <hjl@gnu.org>
144 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
145 ../libiberty/Makefile instead of $enable_shared.
146 * configure: Rebuild.
148 2001-10-21 H.J. Lu <hjl@gnu.org>
150 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
153 2001-10-20 H.J. Lu <hjl@gnu.org>
155 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
156 if shared library is enabled.
157 * configure: Rebuild.
159 2001-10-20 H.J. Lu <hjl@gnu.org>
161 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
163 2001-10-19 H.J. Lu <hjl@gnu.org>
165 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
168 2001-10-18 H.J. Lu <hjl@gnu.org>
170 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
171 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
173 2001-10-18 Jakub Jelinek <jakub@redhat.com>
175 * section.c (_bfd_strip_section_from_output): Don't count
176 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
178 2001-10-17 Alan Modra <amodra@bigpond.net.au>
180 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
181 Elf_Internal_Shdr.contents now that it's no longer a PTR.
182 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
183 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
184 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
185 * elf32-sh.c (sh_elf_relax_section): Likewise.
186 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
187 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
188 * elf.c (setup_group): Warning fixes.
189 * elflink.h (elf_link_sort_relocs): Likewise.
190 * pdp11.c (slurp_reloc_table): Likewise.
192 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
194 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
197 2001-10-15 H.J. Lu <hjl@gnu.org>
199 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
200 for relocations against discarded link-once section.
202 2001-10-15 Alan Modra <amodra@bigpond.net.au>
204 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
205 bfd_reloc_outofrange and similar errors.
207 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
208 rather than ind->weakdef.
209 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
210 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
211 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
212 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
213 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
215 2001-10-15 Alan Modra <amodra@bigpond.net.au>
216 H.J. Lu <hjl@gnu.org>
218 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
219 counts for aliases instead of aborting.
220 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
221 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
223 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
224 to -1 for non-function symbols.
225 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
226 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
227 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
228 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
229 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
230 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
231 plt.offset instead of plt.refcount when setting to -1.
233 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
235 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
236 like R_ARM_PC24. Include reloc number in error message about
239 2001-10-10 Jakub Jelinek <jakub@redhat.com>
241 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
242 relocations against the same symbol in .rel{,a}.dyn section.
244 2001-10-10 Kazu Hirata <kazu@hxi.com>
246 * aout-encap.c: Fix comment typos.
248 * archive.c: Likewise.
250 * coff64-rs6000.c: Likewise.
251 * coffcode.h: Likewise.
252 * coffgen.c: Likewise.
253 * cofflink.c: Likewise.
254 * coff-mips.c: Likewise.
256 * elf32-m32r.c: Likewise.
257 * libcoff-in.h: Likewise.
258 * libecoff.h: Likewise.
259 * libxcoff.h: Likewise.
260 * nlm32-i386.c: Likewise.
262 * section.c: Likewise.
265 * bfd-in2.h: Regenerate.
266 * libcoff.h: Likewise.
268 2001-10-10 Alan Modra <amodra@bigpond.net.au>
270 * elf.c (elf_map_symbols): Don't create new section symbols; Use
271 existing section syms. Update comments.
272 (copy_private_bfd_data): Formatting fixes.
273 (elfcore_grok_win32pstatus): Likewise.
274 (swap_out_syms): Likewise. Remove unnecessary level of braces.
276 2001-10-09 Alan Modra <amodra@bigpond.net.au>
278 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
280 (elf_group_name): Define.
281 (elf_next_in_group): Define.
282 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
283 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
284 first member section; Instead use elf_next_in_group.
285 (bfd_section_from_shdr): Likewise.
286 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
288 2001-10-09 Alan Modra <amodra@bigpond.net.au>
290 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
291 "next_in_group". Fix gp and gp_size comments.
292 * elf.c (union elf_internal_group): New.
293 (setup_group): New function.
294 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
295 Call setup_group for SHF_GROUP sections.
296 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
297 (elf_fake_sections): Set header type for SEC_GROUP, and header
298 flags for sections in a group.
299 (set_group_contents): New function.
300 (_bfd_elf_compute_section_file_positions): Call it.
301 (assign_section_numbers): Set sh_link for SHT_GROUP.
303 * elflink.h (gc_mark_hook): Handle section groups.
304 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
305 * section.c (SEC_GROUP): Define.
306 (struct sec): Comment fixes.
307 * bfd-in2.h: Regenerate.
309 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
310 out of function args.
311 (_bfd_elf_canonicalize_reloc): Similarly.
312 (_bfd_elf_get_symtab): Here too.
313 (_bfd_elf_canonicalize_dynamic_symtab): And here.
314 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
315 bfd_bread, and remove unnecessary cast.
317 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
319 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
321 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
323 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
326 2001-10-06 Alan Modra <amodra@bigpond.net.au>
328 * bfd.c (bfd_assert): Report bfd version.
329 (_bfd_abort): Likewise.
331 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
332 section sym values. Instead replace any relocs against them with
333 relocs against STN_UNDEF, which has a zero value.
335 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
338 2001-10-05 Jeff Law <law@redhat.com>
340 * som.h (som_exec_data): New field "version_id".
341 * som.c (som_object_setup): Record the version_id if it
343 (som_prep_headers): Do not initialize version_id here.
344 (som_finish_writing): Initialize version_id here.
346 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
348 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
349 according to the MIPS/SGI ELF64 ABI Draft.
350 (mips_elf_sort_hash_table): Typo.
352 2001-10-04 Alan Modra <amodra@bigpond.net.au>
354 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
356 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
357 copying flags if this is a weakdef.
359 2001-10-04 Alan Modra <amodra@bigpond.net.au>
361 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
364 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
365 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
366 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
368 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
369 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
370 backends we configure. Run "make dep-am".
371 (install-data-local): Install symcat.h.
372 * dep-in.sed: Remove symcat.h from dependencies.
373 * Makefile.in: Regenerate.
375 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
377 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
379 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
381 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
382 (elf_backend_default_use_rela_p): New define.
384 2001-10-03 Alan Modra <amodra@bigpond.net.au>
386 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
389 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
390 * configure: Regenerate.
391 * Makefile.am (BFD_H_FILES): Add version.h.
392 * Makefile.in: Regenerate.
393 * po/SRC-POTFILES.in: Regenerate.
395 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
396 elf_backend_copy_indirect_symbol so that backend has a chance to
397 copy other necessary fields.
398 * elf-bfd.h (struct elf_backend_data): Update description of
399 elf_backend_copy_indirect_symbol.
400 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
401 copying flags if this is a weakdef.
402 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
403 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
404 than bfd_link_hash_lookup.
405 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
406 reloc processing for weakdefs.
407 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
408 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
410 2001-10-02 Alan Modra <amodra@bigpond.net.au>
412 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
413 result of ELF64_R_TYPE to enum before using in a switch.
414 (ppc64_elf_gc_mark_hook): Likewise.
415 (ppc64_elf_gc_sweep_hook): Likewise.
416 (ppc64_elf_reloc_type_class): Likewise.
418 2001-10-02 Alan Modra <amodra@bigpond.net.au>
420 * version.h: New file.
421 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
422 (BFD_VERSION_DATE): Define.
423 (BFD_VERSION_STRING): Define.
424 * configure.in: AC_SUBST bfd_version, bfd_version_date and
426 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
427 * bfd-in2.h: Regenerate.
428 * configure: Regenerate.
429 * Makefile.am: Run "make dep-am".
430 * Makefile.in: Regenerate.
432 * bfd-in.h: Include "symcat.h".
433 (CONCAT4): Redefine as for old CAT4.
434 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
435 Add warning regarding whitespace.
436 * aout-cris.c: Likewise.
437 * aout-ns32k.c: Likewise.
438 * aout-sparcle.c: Likewise.
439 * aout-tic30.c: Likewise.
441 * armnetbsd.c: Likewise.
442 * demo64.c: Likewise.
443 * elf-bfd.h: Likewise.
444 * gen-aout.c: Likewise.
445 * host-aout.c: Likewise.
446 * hp300bsd.c: Likewise.
447 * hp300hpux.c: Likewise.
448 * i386aout.c: Likewise.
449 * i386bsd.c: Likewise.
450 * i386dynix.c: Likewise.
451 * i386freebsd.c: Likewise.
452 * i386linux.c: Likewise.
453 * i386lynx.c: Likewise.
454 * i386mach3.c: Likewise.
455 * i386netbsd.c: Likewise.
456 * libaout.h: Likewise.
457 * m68k4knetbsd.c: Likewise.
458 * m68klinux.c: Likewise.
459 * m68klynx.c: Likewise.
460 * m68knetbsd.c: Likewise.
461 * m88kmach3.c: Likewise.
462 * mipsbsd.c: Likewise.
463 * newsos3.c: Likewise.
464 * ns32knetbsd.c: Likewise.
465 * pc532-mach.c: Likewise.
467 * riscix.c: Likewise.
468 * sparclinux.c: Likewise.
469 * sparclynx.c: Likewise.
470 * sparcnetbsd.c: Likewise.
472 * targets.c: Likewise.
473 * vaxnetbsd.c: Likewise.
474 * vms-hdr.c: Likewise.
476 2001-10-01 Alan Modra <amodra@bigpond.net.au>
478 * bfd-in.h: Remove comments regarding generated files.
479 * libbfd-in.h: Likewise.
480 * libcoff-in.h: Likewise.
481 * bfd-in2.h: Regenerate.
482 * libbfd.h: Likewise.
483 * libcoff.h: Likewise.
485 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
486 Hans-Peter Nilsson <hp@bitrange.com>
488 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
489 partial_inplace, matching assembler output. Set src_mask to
491 (sh_elf_relocate_section): Delete misplaced comment.
492 For relocatable linking against section symbol, call
493 _bfd_relocate_contents for partial_inplace relocs and adjust
494 rel->r_addend for others.
495 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
496 bfd_get_32, not at rel->r_addend.
498 2001-09-30 Alan Modra <amodra@bigpond.net.au>
500 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
501 the old dir refcount, so we indirectly set them to init_refcount.
502 Short-circuit asserts when we've just verified they are true.
504 2001-09-29 Alan Modra <amodra@bigpond.net.au>
506 * section.c (struct sec): Remove kept_section.
507 (STD_SECTION): Remove kept_section initialisation.
508 (bfd_make_section_anyway): Here too.
509 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
510 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
511 * elflink.h (elf_link_input_bfd): Set discarded link-once section
512 symbols to zero, and remove all code involved with kept_section
513 and tracking section symbol values.
514 * bfd-in2.h: Regenerate.
515 * configure.in: Bump version number.
516 * configure: Regenerate.
518 2001-09-29 Alan Modra <amodra@bigpond.net.au>
520 * elf64-ppc.c (struct ppc_dyn_relocs): New.
521 (IS_ABSOLUTE_RELOC): Define.
522 (struct ppc_link_hash_entry): New.
523 (struct ppc_link_hash_table): New.
524 (ppc_hash_table): Define.
525 (link_hash_newfunc): New function.
526 (ppc64_elf_link_hash_table_create): New function.
527 (create_got_section): New function.
528 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
529 pointers to our dynamic sections in hash table.
530 (ppc64_elf_copy_indirect_symbol): New function.
531 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
532 dynamic sections. Localise vars. Modify code for refcounts
533 starting from zero. Don't allocate here, or force symbols dynamic.
534 Don't copy all relocs if shared, select ones we need. Add code
535 to track possible copy relocs for non-shared link.
536 (ppc64_elf_gc_mark_hook): Update comment.
537 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
538 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
539 code for reference counting garbage collection. Don't create .plt
540 entries for functions that don't comply with ABI naming convention,
541 and don't allocate .plt space here. Use short-cuts to dynamic
542 sections. If possible, keep dynamic relocations instead of using
543 copy relocs. Remove confused comments.
544 (ppc_adjust_dynindx): Delete.
545 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
546 (allocate_dynrelocs): New function.
547 (readonly_dynrelocs): New function.
548 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
549 space here, and call allocate_dynrelocs to allocate space for
550 global .plt, .got and reloc sections. Use short-cuts to dynamic
551 sections. Call readonly_dynrelocs to determine whether we need
552 DT_TEXTREL. Don't generate section symbols here, the generic
553 ELF linker code does it for us.
554 (ppc64_elf_final_link): Call regular ELF backend linker rather than
555 gc variety, since we do our own .got handling.
556 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
557 dynamic section short-cuts. Localise vars, and delay setting.
558 Handle unknown relocs in main switch statement. Replace ugly
559 complicated tests for unresolvable relocs with a simple direct
560 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
561 before allowing an undefined sym in a shared lib. Do R_*_DS tests
562 after main switch, when we've set addend. Do non-addend insn
563 tweaks before main swithc. Ignore input_section->vma when
564 calculating reloc offsets as it's always zero. Rewrite dynamic
565 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
566 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
567 of dynamic section short-cuts. Reorganise .plt handling code.
568 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
569 Move expressions out of swap_reloca_out function calls.
570 (ppc64_elf_reloc_type_class): New function.
571 (ppc64_elf_info_to_howto): Move common expression to local var.
572 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
573 of dynamic section short-cuts. Don't fiddle with section syms
574 here as the ELF linker does it for us.
575 (elf_backend_can_refcount): Define.
576 (bfd_elf64_bfd_link_hash_table_create): Define.
577 (elf_backend_copy_indirect_symbol): Define.
578 (elf_backend_reloc_type_class): Define.
579 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
581 2001-09-29 Alan Modra <amodra@bigpond.net.au>
583 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
584 (struct elf_backend_data): Add can_refcount.
585 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
586 got.refcount and plt.refcount from init_refcount.
587 (_bfd_elf_link_hash_table_init): Set up init_refcount.
588 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
589 rather than got/plt.offset, and test for <= 0 rather than -1.
590 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
591 * elfxx-target.h (elf_backend_can_refcount): Define.
592 (elfNN_bed): Init can_refcount.
593 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
594 (_bfd_generic_link_hash_newfunc): Likewise.
595 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
597 (elf_backend_can_refcount): Define.
598 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
600 (elf32_hppa_copy_indirect_symbol): Make static to agree with
602 (elf_backend_can_refcount): Define.
603 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
605 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
606 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
607 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
608 (elf_backend_can_refcount): Define.
609 (elf_i386_copy_indirect_symbol): Make static to agree with
610 prototype. Formatting fix.
611 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
613 (elf_backend_can_refcount): Define.
614 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
616 (elf_backend_can_refcount): Define.
617 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
619 (elf_backend_can_refcount): Define.
620 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
622 (elf_backend_can_refcount): Define.
623 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
625 (elf_backend_can_refcount): Define.
627 * som.c (som_write_symbol_strings): Cast current_offset in
628 bfd_seek call to match param type.
630 2001-09-28 J. Brobecker <brobecker@gnat.com>
632 * som.c (som_write_symbol_strings): Fix incorrect type of
633 current_offset to match the function definition. Fixes a build
634 failure on HPUX-11.00.
636 2001-09-28 Richard Henderson <rth@redhat.com>
638 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
639 SEC_MERGE, SEC_STRINGS.
641 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
642 * bfd-in2.h: Rebuild.
644 2001-09-28 Alan Modra <amodra@bigpond.net.au>
646 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
647 reloc code using x86_64_reloc_map.
649 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
650 no longer allocate here. Localise some vars to blocks where they
652 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
653 setting of vars until needed.
654 (allocate_dynrelocs): Don't create a .plt entry without a reloc
655 when symbol visibilty makes a function local.
656 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
657 swap_reloca_out function calls.
658 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
659 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
662 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
663 no longer allocate here. Localise some vars to blocks where they
664 are used. Remove separate switch stmt for creating .got sec.
665 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
666 redundant casts and aborts. Delay setting of vars until needed.
667 (allocate_dynrelocs): Remove redundant casts and aborts.
668 (elf_i386_size_dynamic_sections): Move comment.
669 (elf_i386_finish_dynamic_symbol): Move expressions out of function
671 (elf_i386_relocate_section): Likewise. Comment typo fix.
672 (elf_i386_finish_dynamic_sections): Migrate common code out of
674 (elf_backend_* defines): Sort.
676 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
677 without a reloc when symbol visibilty makes a function local.
679 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
681 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
682 conflicting float flags.
684 2001-09-26 Alan Modra <amodra@bigpond.net.au>
686 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
687 (elf_backend_copy_indirect_symbol): Define.
688 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
689 (struct elf_i386_link_hash_table): Likewise.
690 (link_hash_newfunc): Get rid of unnecessary casts.
691 (elf_i386_link_hash_table_create): Likewise.
692 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
693 Don't test input section SEC_READONLY here to try to avoid copy
694 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
695 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
696 here to properly test whether we need copy relocs. Do so for weak
699 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
700 (elf_backend_copy_indirect_symbol): Define.
701 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
702 (stub_hash_newfunc): Get rid of unnecessary casts.
703 (hppa_link_hash_newfunc): Likewise.
704 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
705 Don't test input section SEC_READONLY here to try to avoid copy
706 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
707 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
708 here to properly test whether we need copy relocs. Do so for weak
711 2001-09-26 Alan Modra <amodra@bigpond.net.au>
713 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
714 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
715 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
717 2001-09-25 Jakub Jelinek <jakub@redhat.com>
719 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
722 2001-09-25 H.J. Lu <hjl@gnu.org>
724 * bfd-in2.h: Regenerated.
726 2001-09-25 Alan Modra <amodra@bigpond.net.au>
728 * elf32-i386.c: Add comment re linker function names and ordering.
729 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
730 (elf_i386_grok_prstatus): Move before linker functions.
731 (elf_i386_grok_psinfo): Likewise.
732 (elf_i386_fake_sections): Move so that functions are ordered.
733 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
735 2001-09-25 Alan Modra <amodra@bigpond.net.au>
737 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
740 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
741 code handling this option.
742 (LONG_BRANCH_VIA_PLT): Likewise.
743 (RELATIVE_DYNRELOCS): Define as zero.
744 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
745 "pc_count" fields. Remove "section" field.
746 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
747 (elf32_hppa_check_relocs): Don't allocate space for dynamic
748 relocs here. Instead, record all needed dynamic relocs via
749 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
751 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
752 (allocate_plt_and_got_and_discard_relocs): Rename to
753 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
754 (readonly_dynrelocs): New function.
755 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
756 Call readonly_dynrelocs to determine need for DT_TEXTREL.
757 Rename "i" to "ibfd". Allocate space for local dyn relocs.
758 (elf32_hppa_relocate_section): Make use of cached sreloc.
759 (elf32_hppa_reloc_type_class): New function.
760 (elf_backend_reloc_type_class): Define.
762 2001-09-25 Alan Modra <amodra@bigpond.net.au>
764 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
766 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
767 "pc_count" fields. Remove "section" field.
768 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
769 allocate space for dynamic relocs here. Instead, record all
770 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
771 pointer to "sreloc" section in elf_section_data.
772 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
773 (allocate_plt_and_got_and_discard_relocs): Rename to
774 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
775 (readonly_dynrelocs): New function.
776 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
777 Rename "i" to "ibfd". Allocate space for local dyn relocs.
778 (elf_i386_relocate_section): Make use of cached sreloc.
780 2001-09-24 Alan Modra <amodra@bigpond.net.au>
782 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
783 reloc rather than just the type.
784 (_bfd_elf_reloc_type_class): Likewise.
785 * elf.c (_bfd_elf_reloc_type_class): Likewise.
786 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
787 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
788 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
789 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
790 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
791 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
792 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
793 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
794 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
795 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
796 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
797 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
798 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
799 * elflink.h: Formatting fixes.
800 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
801 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
802 o->contents to PTR. Update call to elf_backend_reloc_type_class.
804 2001-09-22 John Reiser <jreiser@BitWagon.com>
806 * elfcode.h (elf_object_p): Allow for no section header at all in
807 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
809 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
811 * elfxx-ia64.c: Fix compile time warning messages.
812 * coff-mcore.c: Fix compile time warning messages.
813 * coff-ppc.c: Fix compile time warning messages.
814 * coffcode.h: Fix compile time warning messages.
815 * elf32-mips.c: Fix compile time warning messages.
816 * elf64-alpha.c: Fix compile time warning messages.
817 * libbfd.c: Fix compile time warning messages.
818 * bfd-in2.h: Regenerate.
820 2001-09-21 Alan Modra <amodra@bigpond.net.au>
822 * Makefile.am: Run "make dep-am".
823 * Makefile.in: Regenerate.
825 * aoutx.h: Formatting fixes.
826 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
828 * linker.c: Replace bfd_get_filename with bfd_archive_filename
831 2001-09-21 Alan Modra <amodra@bigpond.net.au>
833 * bfd.c (bfd_archive_filename): New function.
834 * bfd-in2.h: Regenerate.
835 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
836 in error messages where the bfd is an input bfd.
837 * aout-cris.c: Likewise.
838 * coff-arm.c: Likewise.
839 * coff-mcore.c: Likewise.
840 * coff-ppc.c: Likewise.
841 * coff-rs6000.c: Likewise.
842 * coff-sh.c: Likewise.
843 * coff-tic54x.c: Likewise.
844 * coff-tic80.c: Likewise.
845 * coff64-rs6000.c: Likewise.
846 * coffcode.h: Likewise.
847 * coffgen.c: Likewise.
848 * cofflink.c: Likewise.
849 * ecofflink.c: Likewise.
850 * elf-hppa.h: Likewise.
852 * elf32-arm.h: Likewise.
853 * elf32-cris.c: Likewise.
854 * elf32-gen.c: Likewise.
855 * elf32-hppa.c: Likewise.
856 * elf32-i370.c: Likewise.
857 * elf32-i386.c: Likewise.
858 * elf32-m32r.c: Likewise.
859 * elf32-mcore.c: Likewise.
860 * elf32-mips.c: Likewise.
861 * elf32-ppc.c: Likewise.
862 * elf32-s390.c: Likewise.
863 * elf32-sh.c: Likewise.
864 * elf32-sparc.c: Likewise.
865 * elf32-v850.c: Likewise.
866 * elf64-alpha.c: Likewise.
867 * elf64-gen.c: Likewise.
868 * elf64-ppc.c: Likewise.
869 * elf64-s390.c: Likewise.
870 * elf64-sparc.c: Likewise.
871 * elf64-x86-64.c: Likewise.
872 * elflink.h: Likewise.
873 * elfxx-ia64.c: Likewise.
876 * libbfd.c: Likewise.
878 * pe-mips.c: Likewise.
879 * peicode.h: Likewise.
881 * xcofflink.c: Likewise.
883 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
885 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
888 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
891 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
892 Consolidate error messages, and split long messages to two lines.
894 2001-09-20 John Reiser <jreiser@BitWagon.com>
896 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
897 and info->allow_shlib_undefined.
898 * elf32-cris.c: Likewise.
899 * elf32-hppa.c: Likewise.
900 * elf32-m68k.c: Likewise.
901 * elf32-mips.c: Likewise.
902 * elf32-ppc.c: Likewise.
903 * elf32-s390.c: Likewise.
904 * elf32-sh.c: Likewise.
905 * elf32-sparc.c: Likewise.
906 * elf64-alpha.c: Likewise.
907 * elf64-hppa.c: Likewise.
908 * elf64-ppc.c: Likewise.
909 * elf64-s390.c: Likewise.
910 * elf64-sparc.c: Likewise.
911 * elf64-x86-64.c: Likewise.
912 * elfxx-ia64.c: Likewise.
914 2001-09-18 Bruno Haible <haible@clisp.cons.org>
916 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
917 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
918 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
919 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
920 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
921 (bfd_default_scan): Use ISDIGIT instead of isdigit.
922 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
923 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
924 isxdigit/isdigit/islower.
925 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
926 (mangle_name): Use ISALNUM instead of isalnum.
927 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
928 (scan): Use ISDIGIT instead of isdigit.
929 * hosts/alphavms.h: Don't include <ctype.h>.
930 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
931 (ieee_object_p): Use TOUPPER instead of toupper.
932 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
933 (ihex_bad_byte): Use ISPRINT instead of isprint.
934 * merge.c: Don't include <ctype.h>.
935 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
936 (oasys_write_sections): Use ISDIGIT instead of isdigit.
937 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
938 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
939 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
940 (mangle_name): Use ISALNUM instead of isalnum.
941 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
942 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
943 isupper/islower/isdigit.
944 (som_decode_symclass): Use TOUPPER instead of toupper.
945 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
946 (srec_bad_byte): Use ISPRINT instead of isprint.
947 (srec_scan): Use ISSPACE instead of isspace.
948 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
949 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
950 * syms.c: Include "safe-ctype.h"
951 (islower, toupper): Remove macro definitions.
952 (bfd_decode_symclass): Use TOUPPER instead of toupper.
953 * vms-gsd.c: Don't include <ctype.h>.
954 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
955 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
957 * vms-tir.c: Don't include <ctype.h>.
959 2001-09-18 Alan Modra <amodra@bigpond.net.au>
961 * libbfd.c (bfd_bread): New function replacing bfd_read without
962 redundant params. Allow reads up to (size_t) -2 in length.
963 (bfd_bwrite): Similarly for bfd_write.
964 (real_read): Return a size_t.
965 (bfd_read): Call bfd_bread.
966 (bfd_write): Call bfd_bwrite.
967 (warn_deprecated): New function to annoy everybody.
968 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
969 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
970 (bfd_read, bfd_write): Define as macro.
971 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
972 likewise for bfd_write. Ensure function args are correct size by
973 using casts or local vars. In some cases, remove unnecessary
974 casts. Formatting fixes, in some cases removing a large expression
975 from function args by using a local var. Replace CONST with const.
976 Modify variable types to avoid warings. Use casts to avoid
977 warnings when using negative numbers in unsigned expressions.
978 * aout-adobe.c: Likewise.
979 * aout-arm.c: Likewise.
980 * aout-cris.c: Likewise.
981 * aout-encap.c: Likewise.
982 * aout-ns32k.c: Likewise.
983 * aout-target.h: Likewise.
984 * aout-tic30.c: Likewise.
985 * aoutf1.h: Likewise.
987 * archive.c: Likewise.
988 * archures.c: Likewise.
989 * bfd-in.h: Likewise.
991 * binary.c: Likewise.
994 * cisco-core.c: Likewise.
995 * coff-a29k.c: Likewise.
996 * coff-alpha.c: Likewise.
997 * coff-arm.c: Likewise.
998 * coff-h8300.c: Likewise.
999 * coff-h8500.c: Likewise.
1000 * coff-i386.c: Likewise.
1001 * coff-i860.c: Likewise.
1002 * coff-i960.c: Likewise.
1003 * coff-ia64.c: Likewise.
1004 * coff-m68k.c: Likewise.
1005 * coff-m88k.c: Likewise.
1006 * coff-mcore.c: Likewise.
1007 * coff-mips.c: Likewise.
1008 * coff-ppc.c: Likewise.
1009 * coff-rs6000.c: Likewise.
1010 * coff-sh.c: Likewise.
1011 * coff-sparc.c: Likewise.
1012 * coff-stgo32.c: Likewise.
1013 * coff-tic30.c: Likewise.
1014 * coff-tic54x.c: Likewise.
1015 * coff-tic80.c: Likewise.
1016 * coff-w65.c: Likewise.
1017 * coff-z8k.c: Likewise.
1018 * coff64-rs6000.c: Likewise.
1019 * coffcode.h: Likewise.
1020 * coffgen.c: Likewise.
1021 * cofflink.c: Likewise.
1022 * coffswap.h: Likewise.
1023 * corefile.c: Likewise.
1024 * cpu-arc.c: Likewise.
1025 * cpu-h8300.c: Likewise.
1026 * cpu-h8500.c: Likewise.
1027 * cpu-i960.c: Likewise.
1028 * cpu-ia64-opc.c: Likewise.
1029 * cpu-ns32k.c: Likewise.
1030 * cpu-pdp11.c: Likewise.
1031 * cpu-pj.c: Likewise.
1032 * cpu-sh.c: Likewise.
1033 * cpu-w65.c: Likewise.
1034 * cpu-z8k.c: Likewise.
1035 * dwarf1.c: Likewise.
1036 * dwarf2.c: Likewise.
1037 * ecoff.c: Likewise.
1038 * ecofflink.c: Likewise.
1039 * ecoffswap.h: Likewise.
1040 * elf-bfd.h: Likewise.
1041 * elf-hppa.h: Likewise.
1042 * elf-m10200.c: Likewise.
1043 * elf-m10300.c: Likewise.
1045 * elf32-arc.c: Likewise.
1046 * elf32-arm.h: Likewise.
1047 * elf32-avr.c: Likewise.
1048 * elf32-cris.c: Likewise.
1049 * elf32-fr30.c: Likewise.
1050 * elf32-gen.c: Likewise.
1051 * elf32-h8300.c: Likewise.
1052 * elf32-hppa.c: Likewise.
1053 * elf32-i370.c: Likewise.
1054 * elf32-i386.c: Likewise.
1055 * elf32-i860.c: Likewise.
1056 * elf32-m32r.c: Likewise.
1057 * elf32-m68k.c: Likewise.
1058 * elf32-mcore.c: Likewise.
1059 * elf32-mips.c: Likewise.
1060 * elf32-openrisc.c: Likewise.
1061 * elf32-pj.c: Likewise.
1062 * elf32-ppc.c: Likewise.
1063 * elf32-s390.c: Likewise.
1064 * elf32-sh-lin.c: Likewise.
1065 * elf32-sh.c: Likewise.
1066 * elf32-sparc.c: Likewise.
1067 * elf32-v850.c: Likewise.
1068 * elf64-alpha.c: Likewise.
1069 * elf64-hppa.c: Likewise.
1070 * elf64-mips.c: Likewise.
1071 * elf64-ppc.c: Likewise.
1072 * elf64-s390.c: Likewise.
1073 * elf64-sparc.c: Likewise.
1074 * elf64-x86-64.c: Likewise.
1075 * elfarm-nabi.c: Likewise.
1076 * elfcode.h: Likewise.
1077 * elfcore.h: Likewise.
1078 * elflink.c: Likewise.
1079 * elflink.h: Likewise.
1080 * elfxx-ia64.c: Likewise.
1081 * elfxx-target.h: Likewise.
1082 * format.c: Likewise.
1084 * hp300hpux.c: Likewise.
1085 * hppabsd-core.c: Likewise.
1086 * hpux-core.c: Likewise.
1087 * i386aout.c: Likewise.
1088 * i386dynix.c: Likewise.
1089 * i386linux.c: Likewise.
1090 * i386lynx.c: Likewise.
1091 * i386mach3.c: Likewise.
1092 * i386msdos.c: Likewise.
1093 * i386os9k.c: Likewise.
1096 * irix-core.c: Likewise.
1097 * libaout.h: Likewise.
1098 * libbfd-in.h: Likewise.
1099 * libbfd.c: Likewise.
1100 * libcoff-in.h: Likewise.
1101 * libecoff.h: Likewise.
1102 * libieee.h: Likewise.
1103 * libnlm.h: Likewise.
1104 * libpei.h: Likewise.
1105 * libxcoff.h: Likewise.
1106 * linker.c: Likewise.
1107 * lynx-core.c: Likewise.
1108 * m68klinux.c: Likewise.
1109 * merge.c: Likewise.
1110 * mipsbsd.c: Likewise.
1111 * netbsd-core.c: Likewise.
1113 * nlm32-alpha.c: Likewise.
1114 * nlm32-i386.c: Likewise.
1115 * nlm32-ppc.c: Likewise.
1116 * nlm32-sparc.c: Likewise.
1117 * nlmcode.h: Likewise.
1118 * nlmswap.h: Likewise.
1119 * ns32k.h: Likewise.
1120 * oasys.c: Likewise.
1121 * opncls.c: Likewise.
1122 * osf-core.c: Likewise.
1123 * pc532-mach.c: Likewise.
1124 * pdp11.c: Likewise.
1125 * pe-mips.c: Likewise.
1126 * peXXigen.c: Likewise.
1127 * peicode.h: Likewise.
1128 * ppcboot.c: Likewise.
1129 * ptrace-core.c: Likewise.
1130 * reloc.c: Likewise.
1131 * reloc16.c: Likewise.
1132 * riscix.c: Likewise.
1133 * rs6000-core.c: Likewise.
1134 * sco5-core.c: Likewise.
1135 * section.c: Likewise.
1137 * sparclinux.c: Likewise.
1138 * sparclynx.c: Likewise.
1140 * stabs.c: Likewise.
1141 * sunos.c: Likewise.
1143 * targets.c: Likewise.
1144 * tekhex.c: Likewise.
1145 * trad-core.c: Likewise.
1146 * versados.c: Likewise.
1147 * vms-gsd.c: Likewise.
1148 * vms-hdr.c: Likewise.
1149 * vms-misc.c: Likewise.
1150 * vms-tir.c: Likewise.
1153 * xcofflink.c: Likewise.
1154 * bfd-in2.h: Regenerate.
1155 * libbfd.h: Regenerate.
1156 * libcoff.h: Regenerate.
1158 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1159 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1160 (ufile_ptr): Define.
1161 (bfd_tell): Return a ufile_ptr.
1162 * libbfd.c (bfd_tell): Likewise.
1163 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1165 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1166 * aoutf1.h: Likewise.
1168 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1169 larger than unsigned long can represent.
1171 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1172 size overflows size_t.
1173 (bfd_realloc): Likewise.
1174 (bfd_zmalloc): Likewise.
1175 * opncls.c (bfd_alloc): Likewise.
1176 (bfd_zalloc): Likewise.
1177 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1178 (bfd_alloc, bfd_zalloc): Update.
1180 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1182 (bfd_get_signed_8): Likewise.
1183 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1184 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1185 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1186 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1187 * libaout.h: Likewise define and use here.
1188 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1189 * aout-arm.c: Likewise.
1190 * aout-encap.c: Likewise.
1191 * aout-ns32k.c: Likewise.
1192 * aout-tic30.c: Likewise.
1193 * aoutf1.h: Likewise.
1194 * aoutx.h: Likewise.
1196 * coff-alpha.c: Likewise.
1197 * coff-h8300.c: Likewise.
1198 * coff-h8500.c: Likewise.
1199 * coff-i960.c: Likewise.
1200 * coff-ia64.c: Likewise.
1201 * coff-m88k.c: Likewise.
1202 * coff-mips.c: Likewise.
1203 * coff-ppc.c: Likewise.
1204 * coff-rs6000.c: Likewise.
1205 * coff-sh.c: Likewise.
1206 * coff-sparc.c: Likewise.
1207 * coff-stgo32.c: Likewise.
1208 * coff-tic30.c: Likewise.
1209 * coff-tic80.c: Likewise.
1210 * coff-w65.c: Likewise.
1211 * coff-z8k.c: Likewise.
1212 * coff64-rs6000.c: Likewise.
1213 * coffgen.c: Likewise.
1214 * cofflink.c: Likewise.
1215 * coffswap.h: Likewise.
1216 * ecoff.c: Likewise.
1217 * ecoffswap.h: Likewise.
1219 * elf32-mips.c: Likewise.
1220 * elf64-mips.c: Likewise.
1221 * hp300hpux.c: Likewise.
1222 * i386dynix.c: Likewise.
1223 * i386lynx.c: Likewise.
1224 * i386msdos.c: Likewise.
1225 * i386os9k.c: Likewise.
1226 * libpei.h: Likewise.
1227 * nlm32-alpha.c: Likewise.
1228 * nlm32-i386.c: Likewise.
1229 * nlm32-ppc.c: Likewise.
1230 * nlmcode.h: Likewise.
1231 * nlmswap.h: Likewise.
1232 * oasys.c: Likewise.
1233 * pdp11.c: Likewise.
1234 * pe-mips.c: Likewise.
1235 * peXXigen.c: Likewise.
1236 * peicode.h: Likewise.
1237 * riscix.c: Likewise.
1238 * sunos.c: Likewise.
1239 * xcofflink.c: Likewise.
1240 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1241 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1242 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1243 equivalent H_PUT_* macro instead.
1244 (GETWORD, GETHALF, GETBYTE): Similarly.
1245 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1246 (GETWORD, GETHALF, GETBYTE): Likewise.
1247 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1249 * bfd-in.h (struct orl): Change "pos" to a union.
1250 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1251 (bsd_write_armap): Here too.
1252 (coff_write_armap): And here.
1253 * coff-rs6000.c (xcoff_write_armap_old): And here.
1254 (xcoff_write_one_armap_big): And here.
1255 (xcoff_write_armap_big): And here.
1256 * ecoff.c (_bfd_ecoff_write_armap): And here.
1257 * elf64-mips.c (mips_elf64_write_armap): And here.
1259 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1260 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1261 * elf32-h8300.c (elf32_h8_mach): Likewise.
1262 * elf32-mips.c (elf_mips_mach): Likewise.
1263 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1265 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1267 (aix386_core_vec): Typo fix.
1269 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1270 etc. to avoid redefined macro warning.
1271 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1272 (MY(fix_pcrel_26)): Likewise.
1273 * aout-ns32k.c (MY(put_reloc)): Likewise.
1274 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1275 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1276 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1278 * aout-encap.c: Include "file", not <file> for binutils headers.
1279 (encap_object_p): Half baked attempt to fix compile errors in
1280 code dealing with "magic".
1282 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1283 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1284 bfd_vma's rather than longs.
1285 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1286 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1287 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1289 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1290 Use unsigned comparisons.
1291 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1292 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1293 (_bfd_do_ns32k_reloc_contents): Likewise.
1294 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1295 (_bfd_ns32k_get_immediate): Likewise.
1296 (_bfd_ns32k_put_displacement): Likewise.
1297 (_bfd_ns32k_put_immediate): Likewise.
1298 (bfd_reloc_status_type): Likewise.
1300 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1302 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1303 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1304 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1306 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1307 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1308 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1310 (_bfd_elfcore_strndup): Likewise for "dup".
1311 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1312 "name" to avoid shadowing.
1313 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1314 definition of "off".
1315 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1316 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1318 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1320 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1322 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1324 (elf_link_input_bfd): Likewise.
1325 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1326 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1327 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1329 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1330 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1331 (sunos_write_dynamic_symbol): Remove unused vars.
1332 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1333 innermost "directory_name" and "file_name" vars.
1334 * tekhex.c (first_phase): Rename local var "type" to "stype".
1335 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1336 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1337 doing comparison at caller.
1338 (vms_esecflag_by_name): Likewise.
1339 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1340 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1341 (xcoff_write_global_symbol): Rename "p" param to "inf".
1343 * cisco-core.c: Add missing prototypes.
1344 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1345 (cisco_core_file_failing_signal): Likewise.
1346 (cisco_core_file_matches_executable_p): Likewise.
1347 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1348 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1349 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1350 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1352 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1353 thumb_glue_size and arm_glue_size.
1354 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1356 * coff64-rs6000.c: Group prototypes together.
1358 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1359 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1361 * cpu-arc.c: Add missing prototypes.
1362 * cpu-h8500.c: Likewise.
1363 * cpu-i960.c: Likewise.
1364 * cpu-pj.c: Likewise.
1365 * cpu-sh.c: Likewise.
1366 * cpu-w65.c: Likewise.
1367 * cpu-z8k.c: Likewise.
1368 * elf32-fr30.c: Likewise.
1369 * elf32-h8300.c: Likewise.
1370 * elf32-i370.c: Likewise.
1371 * hpux-core.c: Likewise.
1372 * versados.c: Likewise.
1374 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1375 * cpu-h8500.c: Likewise.
1376 * cpu-i960.c: Likewise.
1377 * cpu-z8k.c: Likewise.
1379 * cpu-ia64-opc.c: Correct comment.
1381 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1383 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1385 (bfd_elf32_write_out_phdrs): Likewise.
1386 (bfd_elf64_write_out_phdrs): Likewise.
1387 (elf_linker_section_pointers): Change addend to bfd_vma.
1388 (_bfd_elf_find_pointer_linker_section): Likewise.
1389 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1390 filepos to unsigned file_ptr.
1391 (_bfd_elfcore_strndup): Change max param to size_t.
1392 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1393 (_bfd_elfcore_strndup): Likewise.
1394 (_bfd_elf_find_pointer_linker_section): Likewise.
1396 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1397 insn and sym_value to ints.
1399 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1401 (elfcore_read_notes): Likewise.
1403 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1404 param from unsigned char to int.
1405 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1406 for info_to_howto call.
1407 (add_dynamic_entry): Define macro.
1408 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1410 * elf32-cris.c (add_dynamic_entry): Define macro.
1411 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1413 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1414 (elf32_h8_object_p): Likewise.
1415 (elf32_h8_merge_private_bfd_data): Likewise.
1416 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1418 * elf32-hppa.c (add_dynamic_entry): Define macro.
1419 (elf32_hppa_size_dynamic_sections): Use it.
1420 * elf32-i370.c (add_dynamic_entry): Define macro.
1421 (i370_elf_size_dynamic_sections): Use it.
1422 (i370_noop): Make static.
1423 * elf32-i386.c (add_dynamic_entry): Define macro.
1424 (elf_i386_size_dynamic_sections): Use it.
1425 * elf32-m68k.c (add_dynamic_entry): Define macro.
1426 (elf_m68k_size_dynamic_sections): Use it.
1427 * elf32-ppc.c (add_dynamic_entry): Define macro.
1428 (ppc_elf_size_dynamic_sections): Use it.
1429 * elf32-s390.c (add_dynamic_entry): Define macro.
1430 (elf_s390_size_dynamic_sections): Use it.
1431 * elf64-alpha.c (add_dynamic_entry): Define macro.
1432 (elf64_alpha_size_dynamic_sections): Use it.
1433 * elf64-hppa.c (add_dynamic_entry): Define macro.
1434 (elf64_hppa_size_dynamic_sections): Use it.
1435 * elf64-ppc.c (add_dynamic_entry): Define macro.
1436 (ppc64_elf_size_dynamic_sections): Use it.
1437 * elf64-s390.c (add_dynamic_entry): Define macro.
1438 (elf_s390_size_dynamic_sections): Use it.
1439 * elf64-sparc.c (add_dynamic_entry): Define macro.
1440 (sparc64_elf_size_dynamic_sections): Use it.
1441 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1442 (elf64_x86_64_size_dynamic_sections): Use it.
1443 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1444 (elfNN_ia64_size_dynamic_sections): Use it.
1446 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1447 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1449 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1450 false if the first malloc fails rather than going via error_return.
1452 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1454 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1456 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1458 * elfxx-ia64.c (global_sym_index): Return a long.
1460 * ieee.c (get_symbol): Use int rather than char param.
1461 (ieee_slurp_sections): Move "section" var to inner blocks.
1462 (copy_expression): Don't init "value" to zero or worry about
1463 clearing to zero after using.
1464 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1467 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1470 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1471 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1473 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1475 * pc532-mach.c (MYNSX): Delete.
1476 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1477 (write_object_contents): Correct prototype.
1479 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1480 than unsigned short.
1482 * section.c (bfd_set_section_contents): Remove redundant
1483 "offset < 0" test. Check that "count" doesn't overflow size_t.
1484 (bfd_get_section_contents): Likewise.
1486 * som.c (som_fixup_formats): Add missing braces.
1487 (som_reloc_addend): Pass a bfd_vma for "addend".
1489 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1490 (srec_write_symbols): Remove an unnecessary var.
1492 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1494 * configure.in: Sort to match. Bump version number.
1495 * configure: Regenerate.
1497 * tekhex.c (move_section_contents): Assert offset == 0.
1499 * versados.c (new_symbol_string): Constify arg.
1500 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1501 (versados_get_symbol_info): Make static.
1502 (versados_print_symbol): Likewise.
1503 (versados_get_reloc_upper_bound): Likewise.
1504 (versados_canonicalize_reloc): Likewise.
1506 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1508 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1510 2001-09-17 H.J. Lu <hjl@gnu.org>
1512 * dwarf1.c (parse_die): Take a new arg for the end of the
1513 section. Return false if die is beyond the section.
1514 (parse_functions_in_unit): Pass the end of the section to
1516 (_bfd_dwarf1_find_nearest_line): Likewise.
1518 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1520 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1521 just like R_SPARC_32.
1523 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1525 * configure.bfd: Add arm-openbsd target.
1527 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1529 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1530 Add support for mips64.
1532 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1534 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1536 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1538 * elf.c (prep_headers): Get the machine code from the elf
1540 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1541 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1542 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1543 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1544 * elf-arc.c (arc_elf_final_write_processing): Don't override
1545 e_machine, it's now properly set in prep_headers.
1546 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1548 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1549 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1550 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1551 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1552 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1553 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1554 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1555 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1556 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1557 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1558 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1559 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1561 2001-09-11 Richard Henderson <rth@redhat.com>
1563 * elf64-alpha.c (elf64_alpha_section_flags): New.
1564 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1566 2001-09-11 Richard Henderson <rth@redhat.com>
1568 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1569 apply HINT relocations against dynamic symbols.
1571 2001-09-11 H.J. Lu <hjl@gnu.org>
1573 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1575 2001-09-09 Richard Henderson <rth@redhat.com>
1577 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1579 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1580 following a call to a near function.
1582 2001-09-08 Richard Henderson <rth@redhat.com>
1584 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1585 relocation errors. Fail gp-relative relocations against
1588 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1590 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1591 as well as DEF_DYNAMIC in test for avoided copy relocs.
1592 (allocate_plt_and_got_and_discard_relocs): Likewise.
1593 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1594 (allocate_plt_and_got_and_discard_relocs): Likewise.
1596 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1598 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1601 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1603 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1605 (mips_elf64_howto_table_rel): Likewise.
1607 2001-09-05 Tom Rix <trix@redhat.com>
1609 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1610 and syscall symbols.
1611 (write_global_symbol) : Same.
1612 (bfd_xcoff_export_symbol): Remove unused syscall param.
1613 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1614 bfd_xcoff_import_symbol.
1616 * bfd-in2.h : Regenerate.
1618 2001-09-04 Richard Henderson <rth@redhat.com>
1620 * elf64-alpha.c (SKIP_HOWTO): New.
1621 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1622 Fix sizes of 16-bit mem format relocs.
1623 (elf64_alpha_reloc_map): Update to match.
1624 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1625 (elf64_alpha_relax_without_lituse): Likewise.
1626 (elf64_alpha_check_relocs): Handle GPREL16.
1627 (elf64_alpha_relocate_section): Likewise.
1628 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1629 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1630 * bfd-in2.h, libbfd.h: Rebuild.
1632 2001-09-04 Jeff Law <law@redhat.com>
1634 * elf32-h8300.c (elf32_h8_relax_section): New function.
1635 (elf32_h8_relax_delete_bytes): Likewise.
1636 (elf32_h8_symbol_address_p): Likewise.
1637 (elf32_h8_get_relocated_section_contents): Likewise.
1638 (bfd_elf32_bfd_relax_section): Define.
1639 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1641 * elf32-h8300.c (special): New function.
1642 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1644 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1645 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1646 Fix minor problems with 8bit and 16bit PC relative relocations.
1648 2001-09-01 Andreas Jaeger <aj@suse.de>
1650 * vms-tir.c: Add missing prototypes.
1651 * vms-hdr.c: Likewise.
1652 * vms-gsd.c: Likewise.
1653 * vms-misc.c: Likewise.
1655 2001-08-31 H.J. Lu <hjl@gnu.org>
1657 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1658 with bad relocation.
1660 2001-08-31 Eric Christopher <echristo@redhat.com>
1661 Jason Eckhardt <jle@redhat.com>
1663 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1664 mips32_4k and mips64.
1665 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1666 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1667 * bfd/cpu-mips.c: Ditto.
1668 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1669 * bfd/bfd-in2.h: Regenerate.
1671 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1673 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1674 value into R_ALPHA_RELATIVE's addend.
1675 (elf64_alpha_finish_dynamic_symbol): Likewise.
1677 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1679 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1680 recomputed addend during relocatable link if not USE_REL.
1682 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1685 2001-08-30 H.J. Lu <hjl@gnu.org>
1687 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1689 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1690 relocations for weak definitions.
1692 2001-08-30 H.J. Lu <hjl@gnu.org>
1694 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1695 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1696 * Makefile.in: Rebuild.
1698 2001-08-30 H.J. Lu <hjl@gnu.org>
1700 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1701 dynamic relocation for undefined weak symbols when creating
1702 executables. Check h->root.root.type, instead of h->root.type.
1704 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1706 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1707 default from coff to elf.
1709 2001-08-29 Jeff Law <law@redhat.com>
1711 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1713 (h8_reloc_map): Similarly.
1714 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1715 Add support for PC relative relocations.
1717 * elf32-h8300.c: Put all prototypes together.
1718 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1719 (elf32_h8_final_link_relocate): New function for linker.
1720 (elf32_h8_relocate_section): Similarly.
1721 (elf_backend_relocate_section): Define.
1723 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1724 (h8300_scan): Handle architecture:machine encodings typically
1725 found in linker scripts.
1726 * elf.c (prep_headers): Do not try to do H8 machine recognition
1728 * elf32-h8300.c: Add some missing prototypes.
1729 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1730 (elf32_h8_object_p): Similarly.
1732 2001-08-29 Tom Rix <trix@redhat.com>
1734 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1735 does not follow a XTY_SD.
1737 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1739 * targmatch.sed: Delete case statements.
1740 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1743 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1745 * Makefile.am (elf32-h8300.lo): New target.
1746 * config.bfd (h8300*-*-elf): New case.
1747 * configure.in (bfd_elf32_h8300_vec): New case.
1748 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1749 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1750 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1751 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1752 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1753 * elf32-h8300.c: New file.
1754 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1756 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1758 * sparclynx.c: Add missing prototypes.
1759 * coff-mcore.c: Add missing prototypes.
1760 * elf32-pj.c: Add missing prototypes.
1761 * nlm32-sparc.c: Add missing prototypes.
1762 * oasys.c: Add missing prototypes.
1763 * pdp11.c: Add missing prototypes.
1764 * pe-mips.c: Add missing prototypes.
1765 * riscix.c: Add missing prototypes.
1767 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1769 * elf32-i386.c: Add missing prototypes.
1770 * elf32-ppc.c: Likewise.
1771 * elf32-sh-lin.c: Likewise.
1772 * elfarm-nabi.c: Likewise.
1774 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1776 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1777 (elf_i386_grok_psinfo): New function.
1778 (elf_backend_grok_prstatus): Define.
1779 (elf_backend_grok_psinfo): Likewise.
1780 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1781 (ppc_elf_grok_psinfo): New function.
1782 (elf_backend_grok_prstatus): Define.
1783 (elf_backend_grok_psinfo): Likewise.
1784 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1785 (elf32_shlin_grok_psinfo): New function.
1786 (elf_backend_grok_prstatus): Define.
1787 (elf_backend_grok_psinfo): Likewise.
1788 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1789 (elf32_arm_nabi_grok_psinfo): New function.
1790 (elf_backend_grok_prstatus): Define.
1791 (elf_backend_grok_psinfo): Likewise.
1793 2001-08-27 H.J. Lu <hjl@gnu.org>
1795 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1797 (mips_elf_calculate_relocation): Create dynamic relocation for
1798 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1801 2001-08-27 H.J. Lu <hjl@gnu.org>
1803 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1804 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1805 (_bfd_elf32_mips_grok_prstatus): Likewise.
1806 (_bfd_elf32_mips_grok_psinfo): Likewise.
1807 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1808 `struct mips_elf_link_hash_entry *'.
1809 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1811 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1813 * mipsbsd.c: Add missing prototypes.
1814 * hp300hpux.c: Add missing prototypes.
1815 * i386aout.c: Add missing prototypes.
1816 * i386lynx.c: Add missing prototypes.
1817 * i386mach3.c: Add missing prototypes.
1818 * i386msdos.c: Add missing prototypes.
1819 * i386os9k.c: Add missing prototypes.
1821 2001-08-27 Linus Nordberg <linus@swox.se>
1822 Torbjorn Granlund <tege@swox.com>
1823 Staffan Ulfberg <staffanu@swox.se>
1824 Alan Modra <amodra@bigpond.net.au>
1826 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1827 targ64_selvecs for 32 bit powerpc targets.
1828 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1829 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1831 * Makefile.in: Regenerate.
1832 * configure.in: Add elf64_powerpc vecs.
1833 * configure: Regenerate.
1834 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1835 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1836 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1837 * elf64-ppc.c: New file.
1838 * reloc.c: Add powerpc64 relocs.
1839 * libbfd.h: Regenerate.
1840 * bfd-in2.h: Regenerate.
1842 2001-08-27 Andreas Schwab <schwab@suse.de>
1844 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1845 reloc is against read-only section.
1846 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1847 looking up section names for DT_TEXTREL.
1848 (elf32_m68k_reloc_type_class): New function.
1849 (elf_backend_reloc_type_class): Define.
1851 2001-08-27 Andreas Jaeger <aj@suse.de>
1853 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1854 reloc is against read-only section.
1855 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1856 looking up section names for DT_TEXTREL.
1857 (elf_s390_reloc_type_class): New.
1858 (elf_backend_reloc_type_class): Define.
1860 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1861 reloc is against read-only section.
1862 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1863 looking up section names for DT_TEXTREL.
1864 (elf_s390_reloc_type_class): New.
1865 (elf_backend_reloc_type_class): Define.
1867 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1868 is against read-only section.
1869 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1870 looking up section names for DT_TEXTREL.
1871 (ppc_elf_reloc_type_class): New.
1872 (elf_backend_reloc_type_class): Define.
1874 2001-08-26 Andreas Jaeger <aj@suse.de>
1876 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1877 reloc is against read-only section.
1878 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1879 looking up section names for DT_TEXTREL.
1880 (elf_cris_reloc_type_class): New.
1881 (elf_backend_reloc_type_class): Define.
1883 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1884 against read-only section.
1885 (elf_backend_reloc_type_class): Define.
1886 (sh_elf_reloc_type_class): New.
1887 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1888 looking up section names for DT_TEXTREL.
1890 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1891 reloc is against read-only section.
1892 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1893 looking up section names for DT_TEXTREL.
1894 (elf32_arm_reloc_type_class): New.
1895 (elf_backend_reloc_type_class): Define.
1897 2001-08-25 Andreas Jaeger <aj@suse.de>
1899 * oasys.c: Add missing prototypes.
1901 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1902 attribute for parameter.
1903 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1905 * versados.c (get_4): Make static.
1906 (get_10): Make static.
1907 Add missing prototypes.
1908 (process_esd): Fix call to versados_new_symbol.
1910 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1912 * coff-a29k.c: Add missing prototypes.
1913 * coff-apollo.c: Add missing prototypes.
1914 * coff-arm.c: Add missing prototypes.
1915 * coff-i860.c: Add missing prototypes.
1916 * coff-rs6000.c: Add missing prototypes.
1917 * coff-tic80.c: Add missing prototypes.
1918 * elf-m10200.c: Add missing prototypes.
1919 * elf-m10300.c: Add missing prototypes.
1920 * elf32-arm.h: Add missing prototypes.
1921 * elf32-d10v.c: Add missing prototypes.
1922 * elf32-m32r.c: Add missing prototypes.
1923 * elf32-mcore.c: Add missing prototypes.
1924 * elf32-openrisc.c: Add missing prototypes.
1925 * elf32-sh.c: Add missing prototypes.
1926 * elf32-sparc.c: Add missing prototypes.
1927 * elf32-v850.c: Add missing prototypes.
1928 * elfarm-nabi.c: Add missing prototypes.
1929 * elfarm-oabi.c: Add missing prototypes.
1931 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1933 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1934 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1936 2001-08-24 H.J. Lu <hjl@gnu.org>
1938 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1941 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1943 * elf-bfd.h (elf_hash_table): Revert definition.
1944 (is_elf_hash_table): New macro.
1945 * elflink.h (elf_link_add_object_symbols): Test
1946 is_elf_hash_table before accessing ELF only fields in hash
1948 (elf_link_create_dynamic_sections): Fail if not using an ELF
1950 (elf_add_dynamic_entry): Fail if not using an ELF hash
1952 (elf_link_record_local_dynamic_symbol): Fail if not using an
1954 (size_dynamic_sections): Fail if not using an ELF hash
1956 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1958 (elf_bfd_final_link): Fail if not using an ELF hash
1961 2001-08-24 H.J. Lu <hjl@gnu.org>
1963 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1964 table is not an ELF linker hash table.
1966 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1967 table type to bfd_link_elf_hash_table.
1969 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1972 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1973 table type to bfd_link_generic_hash_table.
1975 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1977 * bfd.c (bfd_alt_mach_code): New function.
1978 * bfd-in2.h: Rebuilt.
1980 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1982 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1983 `type' field in the hash entry when deciding whether to follow a
1986 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1988 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1990 (elf_link_sort_relocs): Adjust accordingly.
1992 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1993 (elf64_alpha_check_relocs): Set it if section this reloc is against
1994 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1996 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1997 is is against read-only section.
1998 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1999 check section names.
2000 (elf64_alpha_reloc_type_class): New.
2001 (elf_backend_reloc_type_class): Define.
2003 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2005 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2008 2001-08-23 Andreas Jaeger <aj@suse.de>
2010 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2011 the reloc is against read-only section.
2012 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2013 of looking up section names for DT_TEXTREL.
2014 (elf64_x86_64_reloc_type_class): New.
2015 (elf_backend_reloc_type_class): Define.
2017 2001-08-23 H.J. Lu <hjl@gnu.org>
2019 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2020 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2022 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2023 bfd_print_symbol_vandf.
2024 * coffgen.c (coff_print_symbol): Likewise.
2025 * elf.c (bfd_elf_print_symbol): Likewise.
2026 * ieee.c (ieee_print_symbol): Likewise.
2027 * nlmcode.h (nlm_print_symbol): Likewise.
2028 * oasys.c (oasys_print_symbol): Likewise.
2029 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2030 * som.c (som_print_symbol): Likewise.
2031 * srec.c (srec_print_symbol): Likewise.
2032 * tekhex.c (tekhex_print_symbol): Likewise.
2033 * versados.c (versados_print_symbol): Likewise.
2034 * vms.c (vms_print_symbol): Likewise.
2036 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2037 with bfd_fprintf_vma.
2038 (bfd_elf_print_symbol): Likewise.
2039 * syms.c (bfd_print_symbol_vandf): Likewise.
2041 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2043 * aoutf1.h (sunos_write_object_contents): Silence compile time
2045 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2047 * bout.c: Add missing function prototypes. Fix formatting.
2048 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2049 * coff-w65.c: Add missing function prototypes. Fix formatting.
2050 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2051 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2052 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2053 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2054 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2055 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2056 * coff-sh.c: Add missing function prototypes. Fix formatting.
2058 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2060 * elf-bfd.h (enum elf_reloc_type_class): New.
2061 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2062 (_bfd_elf_reloc_type_class): New.
2063 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2064 (elfNN_bed): Add elf_backend_reloc_type_class.
2065 * elf.c (_bfd_elf_reloc_type_class): New.
2066 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2067 is against read-only section.
2068 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2069 looking up section names for DT_TEXTREL.
2070 (elf_i386_reloc_type_class): New.
2071 (elf_backend_reloc_type_class): Define.
2072 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2073 reloc is against read-only section.
2074 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2075 looking up section names for DT_TEXTREL.
2076 (elf32_sparc_reloc_type_class): New.
2077 (elf_backend_reloc_type_class): Define.
2078 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2079 reloc is against read-only section.
2080 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2081 looking up section names for DT_TEXTREL.
2082 (sparc64_elf_reloc_type_class): New.
2083 (elf_backend_reloc_type_class): Define.
2084 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2085 (elfNN_ia64_hash_table_create): Clear ia64_info.
2086 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2088 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2089 instead of looking up section names for DT_TEXTREL.
2090 (elfNN_ia64_reloc_type_class): New.
2091 (elf_backend_reloc_type_class): Define.
2092 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2093 (struct elf_link_sort_rela): New.
2094 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2095 (elf_bfd_final_link): Call elf_link_sort_relocs.
2096 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2099 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2101 * configure.in (x86-bsdi): No corefile support.
2102 * configure: Regenerate.
2104 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2106 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2109 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2111 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2112 the alignment of dwarf2 linkonce sections to 0.
2113 * coff-sto32.c: Likewise.
2115 2001-08-20 Andreas Jaeger <aj@suse.de>
2117 * coff-sparc.c: Add missing prototypes.
2118 * elf32-s390.c: Likewise.
2119 * elf32-i960.c: Likewise.
2120 * aout-target.h: Likewise.
2122 2001-08-20 H.J. Lu <hjl@gnu.org>
2124 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2125 (elf_num_section_syms): New for num_section_syms.
2127 * elf.c (elf_map_symbols): Set num_section_syms.
2128 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2129 the section symbol index.
2131 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2133 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2134 select the generic has table creator. All elf backends need elf
2135 specific fields in the hash table.
2137 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2139 * archive.c (offsetof): Remove define.
2142 * sysdep.h (offsetof): Define.
2144 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2146 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2147 (bfd_set_gp_size): Make param unsigned.
2148 * bfd-in2.h: Regenerate.
2149 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2150 than calling bfd_get_gp_size.
2151 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2152 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2154 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2156 * linker.c (default_fill_link_order): Handle four byte fill value.
2158 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2160 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2162 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2164 * elf64-mips.c (UNUSED_RELOC): Define.
2165 (mips_elf64_howto_table_rel): Use it.
2166 (mips_elf64_howto_table_rela): Here too.
2167 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2169 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2171 * coffgen.c (coff_print_symbol): Fix warnings.
2172 (coff_find_nearest_line): Likewise.
2173 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2174 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2175 * format.c (bfd_check_format_matches): Likewise.
2176 (bfd_set_format): Likewise.
2177 * coff-ia64.c: Add missing prototypes.
2178 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2179 signed to silence warnings.
2180 (elf64_alpha_relocate_section): Likewise.
2181 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2182 (elf64_alpha_add_symbol_hook): Likewise.
2183 (elf64_alpha_final_link): Likewise.
2184 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2185 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2186 (elf64_alpha_size_got_sections): Likewise.
2187 * elfxx-ia64.c: Add missing prototypes.
2188 (elfNN_ia64_relocate_section): Fix warning.
2189 (elfNN_ia64_unwind_entry_compare): Make params const.
2191 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2193 * config.bfd (targ64_selvecs): New.
2194 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2196 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2197 (BFD_DEFAULT_TARGET_SIZE): New.
2198 (BFD_ARCH_SIZE): Comment.
2199 * configure.in (target_size): New. Set instead of target64 in
2200 selvecs case statement. Set target64 from it.
2201 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2202 * bfd-in2.h: Regenerate.
2203 * configure: Regenerate.
2205 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2207 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2208 (bfd_errmsgs): Add corresponding message.
2209 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2210 finding an archive that contains different format object files.
2211 Return bfd_error_wrong_object_format for this case.
2212 * format.c: Formatting fixes. s/CONST/const/.
2213 (bfd_check_format_matches): Accept archives that give
2214 bfd_error_wrong_object_format if no full match is found. Tidy
2215 code handling matching_vector. Don't return a pointer to freed
2216 memory in `matching'. Handle ambiguous matches as for partial
2218 * bfd-in2.h: Regenerate.
2220 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2222 * libieee.h (common_header_type): Add last_byte field.
2224 * ieee.c: Add missing prototypes. Some format fixes.
2225 (struct output_buffer_struct): Move for availability to prototypes.
2226 (ieee_part_after): New function.
2227 (ieee_slurp_debug): Use it here.
2228 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2229 ieee_part_after to set last_byte to one past end of current part.
2231 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2233 (parse_expression): Don't go beyond the end of the current part.
2234 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2235 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2236 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2237 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2238 ieee_set_section_contents, ieee_write_object_contents,
2239 ieee_make_empty_symbol): Make static.
2240 (ieee_archive_p): Correct comments regarding bfd_read.
2241 (ieee_object_p): Similarly.
2242 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2243 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2244 input_bfd, output_bfd, output_buffer.
2245 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2246 do_with_relocs, ie. as a symbol for relocatable files.
2247 (ieee_vec): Add comments showing functions referenced by macros.
2249 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2251 * aout-tic30.c: Add missing prototypes. Fix formatting.
2252 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2253 * peXXigen.c: Add missining prototypes. Fix formatting.
2254 * aout-adobe.c: Add missining prototypes. Fix formatting.
2256 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2258 * elf32-v850.c: Add missing function prototypes.
2259 Fix some formatting.
2261 * cpu-v850.c: Add missing function prototype.
2262 Fix some formatting.
2264 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2266 * elf-bfd.h (struct elf_backend_data): Add new fields
2267 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2268 (bfd_elf_sprintf_vma): Rename function prototype to
2269 '_bfd_elf_sprintf_vma'.
2270 (bfd_elf_fprintf_vma): Rename function prototype to
2271 '_bfd_elf_fprintf_vma'.
2272 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2273 directly, instead indirect via the elf_backend_data structure.
2274 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2275 instead indirect via the elf_backend_data structure.
2276 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2277 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2278 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2280 (elf_backend_fprintf_vma): Initialise if not already defined.
2281 (struct elf_backend_data): Initialise the
2282 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2284 2001-08-10 Andreas Jaeger <aj@suse.de>
2286 * elf64-sparc.c: Add missing prototypes.
2287 * elf32-cris.c: Likewise.
2288 * elf32-i370.c: Likewise.
2289 * elf64-hppa.c: Likewise.
2290 * elf64-s390.c: Likewise.
2292 2001-08-10 Andreas Jaeger <aj@suse.de>
2294 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2295 Add prototypes where needed.
2297 2001-08-10 H.J. Lu <hjl@gnu.org>
2299 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2300 (bfd_fprintf_vma): Likewise.
2302 2001-08-10 H.J. Lu <hjl@gnu.org>
2304 * bfd.c (bfd_sprintf_vma): Don't return void.
2305 (bfd_fprintf_vma): Likewise.
2307 2001-08-10 Andreas Jaeger <aj@suse.de>
2309 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2311 * configure: Regenerate.
2313 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2315 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2316 warning if not BFD64. Add braces so emacs auto format works.
2317 (bfd_elf_fprintf_vma): Likewise.
2319 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2321 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2322 param to agree with libxcoff.h.
2323 (xcoff_swap_ldhdr_out): Likewise.
2324 (xcoff_swap_ldsym_in): Likewise.
2325 (xcoff_swap_ldsym_out): Likewise.
2326 (xcoff_swap_ldrel_in): Likewise.
2327 (xcoff_swap_ldrel_out): Likewise.
2328 (xcoff_create_csect_from_smclas): Likewise.
2329 * coff64-rs6000.c: Add missing prototypes.
2330 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2332 (xcoff64_swap_ldhdr_out): Likewise.
2333 (xcoff64_swap_ldsym_in): Likewise.
2334 (xcoff64_swap_ldsym_out): Likewise.
2335 (xcoff64_swap_ldrel_in): Likewise.
2336 (xcoff64_swap_ldrel_out): Likewise.
2337 (xcoff64_ppc_relocate_section): Make static.
2338 (xcoff64_slurp_armap): Likewise.
2339 (xcoff64_archive_p): Likewise.
2340 (xcoff64_openr_next_archived_file): Likewise.
2341 (xcoff64_sizeof_headers): Likewise.
2342 (xcoff64_is_lineno_count_overflow): Likewise.
2343 (xcoff64_is_reloc_count_overflow): Likewise.
2344 (xcoff64_loader_symbol_offset): Likewise.
2345 (xcoff64_loader_reloc_offset): Likewise.
2346 * elf64-gen.c: Add missing prototypes.
2348 2001-08-09 H.J. Lu <hjl@gnu.org>
2350 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2351 (bfd_elf_fprintf_vma): Likewise.
2353 2001-08-09 H.J. Lu <hjl@gnu.org>
2355 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2358 * bfd-in2.h: Regenerated.
2360 2001-08-09 H.J. Lu <hjl@gnu.org>
2362 * bfd-in.h (bfd_sprintf_vma): New prototype.
2363 (bfd_fprintf_vma): Likewise.
2364 (bfd_elf_sprintf_vma): Likewise.
2365 (bfd_elf_fprintf_vma): Likewise.
2366 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2367 * bfd-in2.h: Regenerated.
2369 * bfd.c (bfd_sprintf_vma): New. Defined.
2370 (bfd_fprintf_vma): Likewise.
2372 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2373 (bfd_elf_fprintf_vma): Likewise.
2375 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2377 * coff-rs6000.c: Add missing prototypes.
2378 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2379 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2380 xcoff_loader_reloc_offset): Make static.
2381 * dwarf1.c: Add missing prototypes.
2382 * dwarf2.c: Add missing prototypes.
2383 (struct abbrev_info): Move definition.
2384 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2385 * elf.c: Add missing prototypes.
2386 * elf32-gen.c: Likewise.
2387 * elf32-i386.c: Likewise.
2388 * elf32-ppc.c: Likewise.
2389 (ppc_elf_sort_rela): Use PTR instead of "void *".
2390 * elflink.h: Add missing prototypes. Formatting fixes.
2391 * merge.c: Add missing prototypes.
2392 (last4_eq): Use PTR instead of "void *".
2393 (last_eq): Likewise.
2394 * syms.c: Add missing prototypes.
2396 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2398 * bfd.c: Fix formatting.
2399 * bfd-in2.h: Regenerate.
2401 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2403 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2404 true (this target uses REL relocations) and 'pcrel_offset' to
2405 false (the PC is implied, not stored in the offset).
2407 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2409 1999-10-19 Linus Nordberg <linus@swox.se>
2410 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2411 * elfxx-target.h (elf_backend_want_got_sym): Define.
2412 (elfNN_bed): Add elf_backend_want_got_sym.
2413 * elflink.c (_bfd_elf_create_got_section): Define
2414 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2416 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2418 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2419 (find_rela_addend): New function.
2420 (parse_comp_unit): Call it to find the abbrev offset addend.
2421 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2422 members of dwarf2_debug as debugging information is read.
2424 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2426 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2427 targets as well as sh-pe.
2429 2001-08-03 Ben Harris <bjh21@netbsd.org>
2431 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2432 reloc from start of section when computing value for R_ARM_REL32
2435 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2437 From H.J. Lu <hjl@gnu.org>
2438 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2439 keep relocs for undefined syms if there are no dynamic sections in
2441 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2443 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2445 * cofflink.c (coff_link_check_ar_symbols): also search for
2446 __imp__symbol as well as _symbol.
2447 * linker.c (_bfd_generic_link_add_archive_symbols): also
2448 search for __imp__symbol as well as _symbol.
2450 2001-08-01 Adam Nemet <anemet@lnxw.com>
2452 * elf.c (elf_sort_sections): Return zero only as the last step.
2454 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2456 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2458 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2459 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2462 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2464 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2465 to match corresponding bfd_coff_backend data member.
2467 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2469 * Makefile.am: Update dependencies with "make dep-am".
2470 * Makefile.in: Regenerate
2472 2001-07-15 H.J. Lu <hjl@gnu.org>
2474 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2475 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2476 * Makefile.in: Regenerate.
2478 2001-07-11 H.J. Lu <hjl@gnu.org>
2480 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2481 flags when creating the reloc section if the ALLOC flag in the
2482 source section is set.
2484 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2486 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2487 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2488 * bfd-in2.h: Regenerate.
2489 * libbfd.h: Regenerate.
2490 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2492 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2493 (elfNN_ia64_check_relocs): Likewise.
2494 (elfNN_ia64_install_value): Likewise.
2495 (elfNN_ia64_relocate_section): Likewise.
2497 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2499 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2501 (elf32_sparc_check_relocs): Likewise.
2502 Only create .rela section for alloced sections in shared libraries.
2503 (elf32_sparc_relocate_section): Likewise.
2504 Remove redundant check.
2505 Optimize unaligned reloc usage.
2506 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2509 2001-07-11 H.J. Lu <hjl@gnu.org>
2511 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2512 ALLOC|LOAD flags as the source section for debugging sections
2513 when creating the reloc section.
2515 2001-07-05 Jim Wilson <wilson@redhat.com>
2517 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2518 the section of the bigger symbol.
2520 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2522 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2524 * peicode.h (coff_swap_scnhdr_in): For sections containing
2525 uninitialised data, only set their size to s_paddr if this does
2526 not reset their size to zero. MS's latest compilers will set
2529 2001-07-04 H.J. Lu <hjl@gnu.org>
2531 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2532 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2535 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2537 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2539 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2540 sections being discarded.
2542 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2544 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2545 instead of _bfd_elfcore_section_from_phdr.
2546 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2547 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2548 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2549 (elfcore_grok_prstatus): Likewise.
2550 (elfcore_grok_lwpstatus): Likewise.
2551 (bfd_get_elf_phdr_upper_bound): Likewise.
2552 (elfcore_make_note_pseudosection): Formatting.
2553 (_bfd_elfcore_strndup): Formatting.
2554 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2555 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2557 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2559 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2560 and _bfd_elfcore_strndup.
2561 (struct elf_backend_data): Add elf_backend_grok_prstatus
2562 and elf_backend_grok_psinfo.
2563 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2564 (elfcore_grok_prstatus): Use it.
2565 (elfcore_make_note_pseudosection): Likewise.
2566 (elfcore_strndup): Rename to...
2567 (_bfd_elfcore_strndup): Here, and make global.
2568 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2569 (elfcore_grok_note): Call elf_backend_grok_prstatus
2570 and elf_backend_grok_psinfo if available.
2571 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2572 (_bfd_elf32_mips_grok_psinfo): New function.
2573 (elf_backend_grok_prstatus): Define.
2574 (elf_backend_grok_psinfo): Define.
2575 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2576 (elf_backend_grok_psinfo): Likewise.
2577 (elfNN_bed): Include elf_backend_grok_prstatus and
2578 elf_backend_grok_psinfo.
2580 2001-06-29 H.J. Lu <hjl@gnu.org>
2582 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2583 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2584 is NULL before filling PLT.
2586 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2588 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2590 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2592 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2594 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2595 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2598 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2599 (IS_ABSOLUTE_RELOC): Define.
2600 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2601 (hppa_link_hash_newfunc): Always init it.
2602 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2603 create COPY relocs only when the reloc is in a read-only section.
2604 Instead, allocate space for a dynamic reloc to reference the
2605 library symbol directly. Keep track of space we allocate using
2607 (hppa_discard_copies): Delete, and move code to..
2608 (allocate_plt_and_got): ..here. Rename to
2609 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2610 relocs for non-shared link.
2611 (elf32_hppa_size_dynamic_sections): Update calls to above.
2612 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2613 in lieu of COPY relocs.
2615 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2617 (elf_i386_adjust_dynamic_symbol): ..nor here..
2618 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2620 (elf_i386_size_dynamic_sections): Fix a comment.
2621 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2622 involved in writing reloc out.
2624 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2626 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2627 Ensure syms are dynamic if we might be emitting a reloc.
2628 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2629 for undefweak or undefined syms..
2630 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2632 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2633 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2634 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2635 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2637 2001-06-24 H.J. Lu <hjl@gnu.org>
2639 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2640 strncasecmp/strcasecmp instead of strncmp/strcmp.
2642 2001-06-23 H.J. Lu <hjl@gnu.org>
2644 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2645 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2646 in the regular object file and treat the weak definition as
2649 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2651 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2652 unresolved_reloc test to exclude cases where we use "relocation"
2653 before setting it to point into the .got. Reinstate fudge for
2654 unresolved relocs in debugging sections.
2656 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2657 complicated tests for unresolvable relocs with a simple direct
2658 scheme using "unresolved_reloc" var.
2660 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2661 elf_i386_dyn_relocs. Update comment.
2662 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2664 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2666 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2668 (elf_i386_size_dynamic_sections): Likewise.
2669 (elf_i386_finish_dynamic_symbol): Likewise.
2670 (elf_i386_finish_dynamic_sections): Likewise.
2671 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2674 Avoid creating COPY relocs if possible.
2675 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2676 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2677 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2678 reloc is in a read-only section. Instead, allocate space for a
2679 dynamic reloc to reference the library symbol directly. Keep
2680 track of space we allocate using pcrel_relocs_copied.
2681 (discard_copies): Delete, and move code to ..
2682 (allocate_plt_and_got): ..here. Rename to
2683 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2684 relocs for non-shared link.
2685 (elf_i386_size_dynamic_sections): Update calls to above functions.
2686 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2687 more ugly logic to avoid "unresolvable relocation" error. Use
2688 htab shortcut in place of elf_hash_table macro.
2689 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2690 not always be created now.
2692 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2694 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2697 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2699 * configure.host (mips64-*-linux): Reformat.
2701 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2703 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2704 allocate local .got space. Use shortcuts from hash table for .got
2705 and .plt rather than comparing section names.
2706 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2707 adjusting index into local_got_refcounts to document what we are
2709 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2710 Tidy .got and .plt error checking.
2712 2001-06-20 Catherine Moore <clm@redhat.com>
2714 * elf-bfd.h (struct elf_backend_data):
2715 elf_backend_emit_relocs: New field: Function for emitting
2717 elf_backend_count_relocs: New field: Function for determining
2718 the number of relocs to be emitted.
2719 * elfxx-target.h: Provide default (NULL) values for
2720 elf_backend_emit_relocs and elf_backend_count_relocs.
2721 * elflink.h (elf_link_size_reloc_section): Make the hash table
2722 big enough to hold the relocs counted by either reloc_count or
2724 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2725 should be emitted, either because of a command line option
2726 stored in the info structure or because the target provides a
2727 special reloc emitting function.
2728 If the target provides a reloc counting function use it,
2729 unless performing a relocatable link or emitting all relocs.
2730 Also set the SEC_RELOC flag on any output section which will
2732 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2733 should be emitted, either because of a command line option
2734 stored in the info structure or because the target provides a
2735 special reloc emitting function.
2736 If the target provides a reloc emitting function, use it,
2737 unless performing a relocatable link or emitting all relocs.
2739 2001-06-20 H.J. Lu <hjl@gnu.org>
2741 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2742 allocate local .got space.
2744 2001-06-19 Andreas Jaeger <aj@suse.de>
2746 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2749 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2751 * elflink.h (struct elf_assign_sym_version_info): Remove member
2752 export_dynamic. All users changed to use info member.
2753 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2754 export_dynamic, instead use member in parameter info.
2755 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2756 bfd_elf64_size_dynamic_sections): Update prototype.
2757 * bfd-in2.h: Regenerate.
2759 2001-06-18 H.J. Lu <hjl@gnu.org>
2761 * elflink.h (elf_info_failed): Add a new field, verdefs.
2762 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2764 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2767 2001-06-17 H.J. Lu <hjl@gnu.org>
2769 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2770 readonly_reloc, to record if a relocation in the .rel.dyn
2771 section is against a read-only section.
2772 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2774 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2775 in the .rel.dyn section against a read-only section by setting
2776 DF_TEXTREL or readonly_reloc.
2777 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2779 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2780 there is a relocation in the .rel.dyn section against a
2782 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2785 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2787 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2788 function. Move flagword result into parameter list. Remove
2789 comment about setting bfd_error_handler to intercept failure
2791 * coffgen.c (make_a_section_from_file): Examine result of
2792 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2794 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2795 function. Move flagword result into parameter list.
2796 * libcoff.h: Regenerate.
2797 * libecoff.h: Regenerate.
2799 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2801 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2802 section is going to follow it.
2804 2001-06-12 Catherine Moore <clm@redhat.com>
2806 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2807 with the file_align entry from elf_backend_data.
2808 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2809 (elf_gc_record_vtentry): Likewise.
2811 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2813 * elflink.h: Whitespace changes.
2814 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2815 rather than "unsigned char".
2816 (elf_link_output_relocs): Likewise.
2817 (elf_link_input_bfd): Likewise.
2818 (elf_reloc_link_order): LIkewise.
2819 * elf.c: s/CONST/const/. Whitespace changes.
2820 * elf32-mips.c: Formatting fix.
2822 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2823 * Makefile.in: Regenerate.
2824 * po/Make-in: Remove trailing tab.
2826 2001-06-09 Philip Blundell <philb@gnu.org>
2828 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2830 (elf32_arm_plt_entry): Likewise.
2832 2001-06-08 H.J. Lu <hjl@gnu.org>
2834 * elf.c (swap_out_syms): Keep names for global section symbols.
2836 2001-06-07 H.J. Lu <hjl@gnu.org>
2838 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2839 MIPS-based machines need it.
2841 2001-06-07 H.J. Lu <hjl@gnu.org>
2843 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2846 * config.bfd: Remove ecoff from Linux/mips.
2848 2001-06-07 Andreas Jaeger <aj@suse.de>
2850 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2852 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2853 alignment of 8 for .rela sections; handle further relocations.
2855 2001-06-06 Christian Groessler <cpg@aladdin.de>
2857 * coff-z8k.c: Fix formatting.
2858 Fix howtos: howto->size was always 1.
2860 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2862 * configure.host (mips64*-*-linux*): Define.
2864 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2866 * elf32-i386.c (elf_i386_discard_copies): Rename to
2867 discard_copies, and use elf_link_hash_entry arg rather than
2868 elf_i386_link_hash_entry.
2869 (elf_i386_link_hash_traverse): Delete.
2870 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2871 Tidy sizing of dynamic sections.
2872 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2873 possible .plt entries.
2874 (elf_i386_gc_sweep_hook): Likewise.
2875 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2876 everything with plt.refcount <= 0.
2878 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2880 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2881 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2883 (allocate_plt_and_got): ..instead do it all here. New function.
2884 (elf_i386_size_dynamic_sections): Allocate local .got space and
2885 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2886 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2887 rather than gc variety).
2888 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2889 (elf_i386_relocate_section): Use it here and correct handling of
2890 R_386_GOT32. Provide section and offset for "unresolvable
2891 relocation" error message.
2892 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2894 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2895 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2896 (elf_i386_link_hash_table_create): Init them.
2897 (create_got_section): New function.
2898 (elf_i386_create_dynamic_sections): New function.
2899 (elf_backend_create_dynamic_sections): Set to above.
2900 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2901 calling bfd_get_section_by_name.
2902 (elf_i386_gc_sweep_hook): Likewise.
2903 (elf_i386_adjust_dynamic_symbol): Likewise.
2904 (elf_i386_size_dynamic_sections): Likewise.
2905 (elf_i386_relocate_section): Likewise.
2906 (elf_i386_finish_dynamic_sections): Likewise.
2908 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2910 2001-06-02 H.J. Lu <hjl@gnu.org>
2912 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2914 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2916 2001-06-02 H.J. Lu <hjl@gnu.org>
2918 * aout-cris.c (MACHTYPE_OK): New. Defined.
2920 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2922 * section.c (_bfd_strip_section_from_output): Handle NULL
2925 2001-06-02 H.J. Lu <hjl@gnu.org>
2927 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2928 rs6000coff64_vec only if BFD64 is defined.
2929 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2931 2001-06-02 H.J. Lu <hjl@gnu.org>
2933 * coff-ia64.c (ia64coff_object_p): Rewrite with
2934 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2936 2001-06-01 Andreas Jaeger <aj@suse.de>
2938 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2939 relocation, small reformatting.
2941 2001-05-29 Andreas Jaeger <aj@suse.de>
2943 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2944 (elf64_x86_64_relocate_section): Likewise.
2946 2001-05-30 Alan Modra <amodra@one.net.au>
2948 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2949 millicode. Don't allocate .got and .rela.got space here..
2950 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2951 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2953 (hppa_handle_PIC_calls): ..nor here..
2954 (allocate_plt_and_got): ..instead do it all here. New function.
2955 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2956 call allocate_plt_and_got. No need to zap .got if not dynamic.
2957 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2958 gc_common_final_link.
2959 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2960 (elf32_hppa_relocate_section): Use it here.
2961 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2962 dynamic_sections_created.
2963 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2965 2001-05-28 Andreas Jaeger <aj@suse.de>
2967 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2968 generic version since we want a hashsize of 4.
2969 (elf_backend_size_info): Likewise.
2971 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2973 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2975 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2976 (elf_link_input_bfd): Likewise.
2977 (elf_reloc_link_order): Likewise.
2978 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2979 relocations correctly.
2981 2001-05-28 Nicolas Pitre <nico@cam.org>
2983 * elf32-arm.h: fix PLT generation for big endian ARM
2985 2001-05-28 Alan Modra <amodra@one.net.au>
2987 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2988 for symbols forced local that need plabels.
2989 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2990 .plt.rela for local syms if non-shared.
2991 (hppa_build_one_stub): Mask lsb of plt.offset.
2992 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2993 (clobber_millicode_symbols): Correct comment.
2994 (elf32_hppa_relocate_section): Likewise.
2995 (elf32_hppa_finish_dynamic_symbol): Likewise.
2997 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2999 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3000 * bfd-in2.h: Regenerate.
3001 * libbfd.h: Regenerate.
3002 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3003 and BFD_RELOC_SPARC_UA64 mapping
3004 * elf64-sparc.c: Likewise.
3006 2001-05-25 H.J. Lu <hjl@gnu.org>
3008 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3009 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3010 (coff-rs6000.lo): Remove the old dependency.
3011 * Makefile.in: Rebuild.
3013 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3016 2001-05-25 H.J. Lu <hjl@gnu.org>
3018 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3019 rs6000coff_core_file_matches_executable_p,
3020 rs6000coff_core_file_failing_command and
3021 rs6000coff_core_file_failing_signal only if AIX_CORE is
3023 (pmac_xcoff_vec): Likewise.
3024 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3026 2001-05-25 Timothy Wall <twall@redhat.com>
3028 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3029 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3031 2001-05-25 H.J. Lu <hjl@gnu.org>
3033 * bfd-in2.h: Regenerated.
3034 * libcoff.h: Likewise.
3036 2001-05-25 Alan Modra <amodra@one.net.au>
3038 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3039 undefined millicode syms in shared libs.
3040 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3041 (elf32_hppa_check_relocs): Likewise.
3042 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3043 (elf32_hppa_size_dynamic_sections): Likewise.
3044 (elf32_hppa_relocate_section): Likewise.
3045 (elf32_hppa_finish_dynamic_symbol): Likewise.
3046 (elf32_hppa_finish_dynamic_sections): Likewise.
3048 2001-05-24 Tom Rix <trix@redhat.com>
3050 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3051 xcoff-target.h not used to define rs6000 or ppc bfd.
3054 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3057 * coff-rs6000.c : Many changes for 64 bit support. Move common
3058 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3061 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3062 linker now supported. Explictly define the rs6000coff64_vec.
3064 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3065 (coff_print_aux) same
3066 (coff_write_object_contents) same
3067 (coff_slurp_line_table) same
3069 * coffgen.c : (coff_fix_symbol_name) formatting
3070 (coff_mangle_symbols) xcoff 64 bit support
3071 (coff_write_symbol) same
3072 (coff_write_alien_symbol) same
3073 (coff_write_native_symbol) same
3074 (coff_write_symbols) same
3075 (coff_get_symbol_info) same
3076 (bfd_coff_get_syment) same
3077 (coff_print_symbol) same
3079 * config.bfd : add powerpc64-*-aix* target
3081 * libcoff-in.h : formatting
3083 * libcoff.h : move xcoff extern declarations to libxcoff.h
3085 * libxcoff.h : New file
3087 * xcofflink.c : Many changes for xcoff64 support. Move common
3088 structures to include/coff/xcoff.h. Move specific structure to
3089 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3090 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3092 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3095 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3097 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3099 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3102 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3104 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3105 * libbfd.h: Regenerate.
3106 * bfd-in2.h: Regenerate.
3108 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3109 * archures.c (bfd_mach_mips12000): Define.
3110 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3111 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3113 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3114 * bfd-in2.h: Regenerate.
3115 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3117 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3119 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3120 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3121 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3122 that is used by GCC.
3124 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3126 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3127 of entries in a structured section.
3128 * elf.c: Use new macro.
3129 * elf32-i386.c: Use new macro.
3130 * elf32-mips.c: Use new macro.
3131 * elf64-alpha.c: Use new macro.
3132 * elf64-sparc.c: Use new macro.
3133 * elfcode.h: Use new macro.
3134 * elflink.h: Use new macro.
3136 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3138 * bfdint.texi: Replace -oformat with --oformat.
3140 2001-05-21 Andreas Jaeger <aj@suse.de>
3142 * dwarf2.c (decode_line_info): Fix error message.
3143 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3144 adjust error message.
3146 2001-05-18 H.J. Lu <hjl@gnu.org>
3148 * elflink.h (elf_link_add_object_symbols): Revert the last
3151 2001-05-17 Alan Modra <amodra@one.net.au>
3153 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3154 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3155 (hppa_build_one_stub): Add an assert to check plt.offset.
3157 2001-05-17 H.J. Lu <hjl@gnu.org>
3159 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3160 version definition to basename of the output filename.
3162 2001-05-17 H.J. Lu <hjl@gnu.org>
3164 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3165 basename of the bfd filename.
3167 2001-05-16 Alan Modra <amodra@one.net.au>
3169 * section.c (asection): Add linker_has_input field.
3170 (STD_SECTION): Adjust initialization to suit.
3171 * ecoff.c (bfd_debug_section): Likewise.
3172 * bfd-in2.h: Regenerate.
3174 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3176 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3177 negative 32-bit operands to 16 operands when the operand is
3178 going to be zero-extended by the modified opcode.
3180 2001-05-12 Peter Targett <peter.targett@arccores.com>
3182 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3183 name for 'arc5' core versions.
3184 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3186 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3188 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3190 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3192 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3194 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3195 to .gnu.linkonce.t.FOO text section.
3197 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3199 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3200 fields, change sec into secinfo.
3201 (struct sec_merge_info): Add chain, remove last fields.
3202 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3203 (sec_merge_hash_lookup): If lookup could not use a string only
3204 because it has bad alignment, mark the old string for deletion.
3205 (sec_merge_add): Add secinfo argument. Don't compute entry's
3206 position, instead record the section.
3207 (sec_merge_emit): Update for the sec into secinfo change in
3208 struct sec_merge_hash_entry.
3209 (_bfd_merge_section): Only record the section for merging, defer
3210 putting strings into the hash table.
3211 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3212 _bfd_merge_sections): New functions.
3213 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3215 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3216 (_bfd_nolink_bfd_merge_sections): Define.
3217 * libbfd.h: Likewise.
3218 (bfd_generic_merge_sections): Add prototype.
3219 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3220 (struct bfd_target): Likewise.
3221 * bfd.c (bfd_merge_sections): Define.
3222 * bfd-in2.h: Rebuilt.
3223 * elf.c (_bfd_elf_merge_sections): New function.
3224 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3225 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3226 * reloc.c (bfd_generic_merge_sections): New function.
3227 * vms.c (vms_bfd_merge_sections): New function.
3228 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3229 * aout-target.h (MY_bfd_merge_sections): Define.
3230 * aout-tic30.c (MY_bfd_merge_sections): Define.
3231 * binary.c (binary_bfd_merge_sections): Define.
3232 * bout.c (b_out_bfd_merge_sections): Define.
3233 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3234 * coffcode.c (coff_bfd_merge_sections): Define.
3235 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3236 * i386msdos.c (msdos_bfd_merge_sections): Define.
3237 * i386os9k.c (os9k_bfd_merge_sections): Define.
3238 * ieee.c (ieee_bfd_merge_sections): Define.
3239 * ihex.c (ihex_bfd_merge_sections): Define.
3240 * nlm-target.h (nlm_bfd_merge_sections): Define.
3241 * oasys.c (oasys_bfd_merge_sections): Define.
3242 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3243 * som.c (som_bfd_merge_sections): Define.
3244 * srec.c (srec_bfd_merge_sections): Define.
3245 * tekhex.c (tekhex_bfd_merge_sections): Define.
3246 * versados.c (versados_bfd_merge_sections): Define.
3247 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3249 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3251 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3252 to be unsigned long, in order to match its use.
3254 2001-05-10 H.J. Lu <hjl@gnu.org>
3256 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3259 2001-05-09 H.J. Lu <hjl@gnu.org>
3261 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3262 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3263 Remove the unused veriable `dynver'.
3265 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3267 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3268 NULL or is not COFF.
3269 (coff_i386_rtype_to_howto): Don't dump core if output section
3272 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3274 * ecoff.c (bfd_debug_section): Fix initialization.
3275 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3276 is always a positive integer. Cast away sign mismatch.
3277 * elf32-mips.c: Fix misleading comment and typo.
3278 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3280 * elflink.c: Fix typo.
3281 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3282 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3284 2001-05-04 Richard Henderson <rth@redhat.com>
3286 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3288 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3290 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3291 EF_ARM_HASENTRY if the start address is set.
3293 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3295 * targets.c (_bfd_target_vector_entries): Compute value based on
3296 the size of the _bfd_target_vector and not bfd_target_vector.
3298 2001-05-03 H.J. Lu <hjl@gnu.org>
3300 * elfcode.h: Include "libiberty.h".
3302 * elflink.h (elf_link_add_object_symbols): Set
3303 elf_dt_name (abfd) to basename of the bfd filename.
3304 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3305 of the bfd filename.
3307 2001-05-03 Andreas Jaeger <aj@suse.de>
3309 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3310 (elf_generic_info_to_howto_rel): Likewise.
3311 * coff-alpha.c (reloc_nil): Likewise.
3312 (alpha_ecoff_bad_format_hook): Likewise.
3313 (alpha_adjust_reloc_out): Likewise.
3314 (alpha_bfd_reloc_type_lookup): Likewise.
3315 (alpha_convert_external_reloc): Likewise.
3316 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3317 (elf64_alpha_reloc_bad): Likewise.
3318 (elf64_alpha_reloc_gpdisp): Likewise.
3319 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3320 (elf64_alpha_info_to_howto): Likewise.
3321 (elf64_alpha_add_symbol_hook): Likewise.
3322 (elf64_alpha_create_got_section): Likewise.
3323 (elf64_alpha_is_local_label_name): Likewise.
3324 (elf64_alpha_merge_ind_symbols): Likewise.
3325 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3326 (mips_elf64_get_reloc_upper_bound): Likewise.
3327 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3328 (nlm_alpha_get_public_offset): Likewise.
3330 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3332 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3333 about overflow in R_OPENRISC_LO_16_IN_INSN and
3334 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3336 2001-04-30 H.J. Lu <hjl@gnu.org>
3338 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3339 only for ELF_LINK_FORCED_LOCAL.
3340 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3341 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3342 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3344 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3345 if the symbol has hidden or internal visibility.
3347 2001-04-30 Alan Modra <amodra@one.net.au>
3349 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3350 calls to undefined weak symbols.
3352 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3354 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3355 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3357 2001-04-27 Andreas Jaeger <aj@suse.de>
3359 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3360 out handled entries.
3361 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3362 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3363 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3366 2001-04-27 Sean McNeil <sean@mcneil.com>
3368 * config.bfd: Add arm-vxworks target.
3369 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3370 addend (fro VXworks targets).
3372 2001-04-26 H.J. Lu <hjl@gnu.org>
3374 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3377 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3379 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3380 * bfd-in2.h: Regenerated.
3382 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3384 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3385 (struct sec_merge_hash): Remove alignment_power.
3386 (sec_merge_hash_newfunc): Clear alignment.
3387 (sec_merge_hash_lookup): Pass alignment as argument.
3388 Use hashp->root.next, not hashp->next to walk the hash chain.
3389 If a string already in the hashtable does not have required
3390 alignment, create a new hashtable entry.
3391 (sec_merge_init): Remove alignment_power argument.
3392 (sec_merge_add): Add alignment argument.
3393 (sec_merge_emit): Alignment is now a per-entity thing, not per
3395 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3396 for proper alignment.
3397 Pass alignment information to sec_merge_add.
3399 2001-04-24 Christian Groessler <cpg@aladdin.de>
3401 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3402 and R_REL16 reloc types; accept odd values for R_REL16 type
3404 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3406 * cpu-openrisc.c: New file.
3407 * elf32-openrisc.c: Likewise.
3409 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3410 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3411 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3412 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3413 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3414 * Makefile.in: Regenerated.
3415 * config.bfd: (openrisc-*-elf): New target.
3416 * configure.in (bfd_elf32_openrisc_vec): New vector.
3417 * configure: Regenerated.
3418 * libbfd.h: Regenerated.
3419 * bfd-in2.h: Regenerated.
3420 * reloc.c: Add OpenRISC relocations.
3421 * targets.c (bfd_elf32_openrisc_vec): Declare.
3422 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3423 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3424 (bfd_openrisc_arch): Declare.
3425 (bfd_archures_list): Add bfd_openrisc_arch.
3426 * elf.c (prep_headers): Add bfd_arch_openrisc.
3428 2001-04-23 Bo Thorsen <bo@suse.de>
3430 * elf64-x86-64.c: Add c++ vtable hack.
3431 Small whitespace and comment changes.
3433 2001-04-19 Andreas Jaeger <aj@suse.de>
3435 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3436 (elf64_x86_64_plt_entry): Likewise.
3437 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3438 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3440 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3442 * elf32-cris.c: Tweak comments related to dynamic linking.
3443 (cris_elf_relocate_section): When not creating shared object, fill
3444 in the .got table for any symbol not in the dynamic symbol table.
3445 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3446 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3448 (cris_elf_check_relocs): Use variable r_type in all places rather
3449 than the original expression. Add default case in switch for
3451 (elf_cris_size_dynamic_sections): Iterate over
3452 elf_cris_discard_excess_program_dynamics when not creating shared
3454 (elf_cris_discard_excess_dso_dynamics): Renamed from
3455 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3456 (elf_cris_discard_excess_program_dynamics): New.
3458 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3460 * coffcode.h (coff_write_object_contents): Use
3461 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3463 2001-04-14 H.J. Lu <hjl@gnu.org>
3465 * bfd-in2.h: Regenerate.
3467 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3469 * section.c (STD_SECTION): Add entsize.
3471 2001-04-13 H.J. Lu <hjl@gnu.org>
3473 * section.c (SEC_MERGE): Define new flag for merging.
3474 (SEC_STRINGS): Likewise.
3475 (entsize): New field.
3477 2001-04-13 Roger Sayle <roger@metaphorics.com>
3479 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3480 flag on pe-i386 targets.
3482 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3484 * libbfd-in.h (_bfd_merge_section): New.
3485 (_bfd_write_merged_section): New.
3486 (_bfd_merged_section_offset): New.
3487 * libbfd.h: Rebuilt.
3488 * linker.c (_bfd_generic_link_output_symbols): Handle
3490 * aoutx.h (aout_link_write_symbols): Likewise.
3491 * pdp11.c (aout_link_write_symbols): Likewise.
3492 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3493 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3495 (elf_link_sec_merge_syms): New.
3496 (elf_link_input_bfd): Call _bfd_merged_section_offset
3497 and _bfd_write_merged_section.
3498 Handle discard_sec_merge.
3499 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3501 (struct bfd_elf_section_data): Likewise.
3502 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3503 SEC_STRINGS section flags and entsize from their ELF counterparts.
3504 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3505 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3506 from their BFD counterparts.
3507 * merge.c: New file.
3508 * Makefile.am: Add strtab.lo.
3509 * Makefile.in: Rebuilt.
3511 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3513 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3514 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3516 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3518 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3519 endian MIPS ELF target.
3520 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3523 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3524 64bit big endian MIPS ELF target.
3525 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3526 endian MIPS ELF target.
3527 * configure: Regenerated.
3529 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3530 little endian targets.
3531 (mips_elf_sym_is_global): Handle traditional targets.
3533 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3534 64bit big endian MIPS ELF target.
3535 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3536 endian MIPS ELF target.
3538 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3539 and bfd_elf64_tradlittlemips_vec.
3541 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3543 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3544 ordinary "progbits" section.
3546 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3548 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3549 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3551 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3553 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3555 2001-03-30 H.J. Lu <hjl@gnu.org>
3557 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3558 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3560 2001-03-26 H.J. Lu <hjl@gnu.org>
3562 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3563 if there are any relocations for generic ELF.
3564 (bfd_elf32_bfd_link_add_symbols): Defined to
3565 elf32_generic_link_add_symbols.
3566 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3567 if there are any relocations for generic ELF.
3568 (bfd_elf64_bfd_link_add_symbols): Defined to
3569 elf64_generic_link_add_symbols.
3571 2001-03-23 Nick Clifton <nickc@redhat.com>
3573 * Makefile.am (BUILD_CFILES): New variable: List of C source
3574 files created in build directory.
3575 (BUILD_HFILES): New variable: List of header files created in
3578 (po/POTFILES.in): Replace rule with empty entry.
3579 (po/SRC-POTFILES.in): New rule: Create a list of source files
3580 in the source directory.
3581 (po/BLD-POTFILES.in): New rule: Create a list of source files
3582 in the build directory.
3583 (MOSTLYCLEAN): Do not delete source files created in build
3585 * Makefile.in: Regenerate.
3586 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3588 * configure: Regenerate.
3590 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3592 Add .. to the search path when building bfd.pot.
3593 Delete POTFILES when performing distclean.
3594 Add comment describing why distclean is broken in maintainer mode.
3595 * po/POTFILES.in: Delete.
3596 * po/SRC-POTFILES.in: New file.
3597 * po/BLD-POTFILES.in: New file.
3598 * po/bfd.pot: Regenerate.
3600 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3602 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3603 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3604 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3605 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3606 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3607 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3609 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3610 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3611 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3612 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3613 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3614 New HOWTO members for new relocs.
3615 (cris_reloc_map): Map new relocs.
3616 (ELF_DYNAMIC_INTERPRETER): Define.
3617 (PLT_ENTRY_SIZE): Define.
3618 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3619 elf_cris_pic_plt_entry): New, PLT templates.
3620 (struct elf_cris_pcrel_relocs_copied, struct
3621 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3622 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3623 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3624 positive values. Adjust PCREL relocs to be relative to location
3626 (cris_elf_relocate_section): Handle relocations to dynamic
3627 objects. Handle new relocations. Call error handler when seeing
3628 non-PIC relocation for read-only sections while generating shared
3630 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3632 (bfd_elf32_bfd_link_hash_table_create,
3633 elf_backend_adjust_dynamic_symbol,
3634 elf_backend_size_dynamic_sections,
3635 elf_backend_finish_dynamic_symbol,
3636 elf_backend_finish_dynamic_sections,
3637 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3638 elf_backend_hide_symbol, elf_backend_want_got_plt,
3639 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3640 elf_backend_got_header_size, elf_backend_plt_header_size):
3643 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3644 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3645 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3646 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3647 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3648 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3649 * bfd-in2.h, libbfd.h: Regenerate.
3651 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3653 (_bfd_mips_elf_relocate_section): Give a better error message when
3654 a relocation is not recognized.
3656 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3658 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3659 non-NULL before attempting to dereference.
3661 2001-03-20 H.J. Lu <hjl@gnu.org>
3663 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3664 * configure: Rebuild.
3666 2001-03-20 Andreas Schwab <schwab@suse.de>
3668 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3669 relocation value when resolving a reference from a debugging
3672 2001-03-16 Scott Thomason <SThomaso@hii.com>
3674 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3675 (xcoff64_swap_sym_out): Fix syntax errors.
3677 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3679 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3681 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3683 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3684 (hppa_link_hash_newfunc): Init it.
3685 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3686 section appears to be non-PIC.
3687 (final_link_relocate): Likewise.
3688 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3689 possible candidate function, and set pic_call for those that will
3690 only have a .plt entry for the PIC call stub.
3691 (hppa_handle_PIC_calls): Set maybe_pic_call.
3693 2001-03-12 DJ Delorie <dj@redhat.com>
3695 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3696 R_SH_DIR8WP* relocs if they're against external symbols, else
3697 they're just for relaxing. Validate the reloc values.
3699 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3701 * binary.c (bfd_external_binary_architecture): Declare.
3702 (binary_object_p): If bfd_external_binary_architecture is defined,
3703 set the architecture to this string.
3705 2001-03-11 Philip Blundell <philb@gnu.org>
3707 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3708 entries that could serve as a definition for a weak symbol.
3710 2001-03-08 Nick Clifton <nickc@redhat.com>
3712 * Most files: Update copyright notices using Perl script created
3713 by Kevin Buettner <kevinb@redhat.com>.
3715 2001-03-07 Nick Clifton <nickc@redhat.com>
3717 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3718 prior patch on ! defined OLD_ARM_ABI.
3720 2001-03-07 Andreas Jaeger <aj@suse.de>
3722 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3723 some relocation values.
3725 2001-03-06 Nick Clifton <nickc@redhat.com>
3727 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3728 of offset in BLX(1) instruction.
3729 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3730 offset in BLX(1) instruction.
3733 2001-03-06 Nick Clifton <nickc@redhat.com>
3735 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3736 BFD_RELOC_THUMB_PCREL_BLX.
3738 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3740 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3741 * bfd-in2.h: Regenerate.
3742 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3743 * ieee.c (ieee_write_processor): Set proper id for
3746 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3748 * configure.in: Add s390 target.
3749 * configure: Regenerate.
3751 2001-02-28 Andreas Jaeger <aj@suse.de>
3753 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3756 2001-02-28 Philip Blundell <pb@futuretv.com>
3758 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3759 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3761 2001-02-27 H.J. Lu <hjl@gnu.org>
3763 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3764 abfd->tdata.aout_data == NULL.
3766 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3768 * elf32-hppa.c: Correct field selector in stub comments.
3769 (clobber_millicode_symbols): Formatting fix.
3771 * configure.in: Bump version to 2.11.90.
3772 * configure: Regenerate.
3773 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3774 (CFILES): $SOURCE_CFILES + generated C files.
3775 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3777 * Makefile.in: Regenerate.
3778 * doc/Makefile.in: This too.
3780 2001-02-26 Timothy Wall <twall@cygnus.com>
3782 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3785 2001-02-26 Nick Clifton <nickc@redhat.com>
3787 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3788 up, replacing multiple if statements with a switch.
3789 (handle_COMDAT): New function.
3791 2001-02-26 H.J. Lu <hjl@gnu.org>
3793 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3794 a warning for section flags we do not handle instead of
3797 2001-02-26 Andreas Jaeger <aj@suse.de>
3799 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3801 2001-02-22 Timothy Wall <twall@cygnus.com>
3803 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3804 * configure.in: Add objects for elf64_ia64_aix vectors.
3805 * configure: Regenerated.
3806 * configure.host: Recognize ia64-*-aix*.
3807 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3808 for AIX. AIX5 requires most relocations to be dynamic (*all*
3809 binaries are somewhat similar to shared libraries).
3810 * targets.c: Add elf64_ia64_aix vectors.
3812 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3814 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3815 C8 said "1" instead of "8". Clarify error string for IMM22:
3816 "signed integer" instead of just "integer".
3818 2001-02-20 Andreas Jaeger <aj@suse.de>
3820 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3821 PLT entries that could serve as a definition for a weak symbol.
3823 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3825 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3826 entries that could serve as a definition for a weak symbol.
3827 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3829 2001-02-18 David O'Brien <obrien@FreeBSD>
3831 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3832 FreeBSD/i386-CURRENT differently until I can figure out the needed
3834 * configure: Regenerate.
3835 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3836 FreeBSD/PowerPC, and FreeBSD/sparc64.
3838 2001-02-18 lars brinkhoff <lars@nocrew.org>
3840 * Makefile.am: Add PDP-11 a.out target.
3841 * config.bfd: Likewise.
3842 * configure.in: Likewise.
3843 * targets.c: Likewise.
3844 * archures.c: Likewise.
3845 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3846 * libbfd.h: Add PDP-11 relocations.
3847 * reloc.c: Likewise.
3848 * cpu-pdp11.c: New file.
3849 * pdp11.c: New file.
3851 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3852 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3853 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3854 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3855 (GET_MAGIC): New macro.
3856 (PUT_MAGIC): Likewise.
3857 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3859 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3861 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3862 multiarch needs it).
3864 2001-02-18 H.J. Lu <hjl@gnu.org>
3866 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3869 2001-02-18 Kazu Hirata <kazu@hxi.com>
3871 * vms-misc.c: Fix formatting.
3873 2001-02-16 Kazu Hirata <kazu@hxi.com>
3875 * vms.c: Fix formatting.
3877 2001-02-14 H.J. Lu <hjl@gnu.org>
3879 * elf.c (elf_find_function): New function.
3880 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3881 the file name and function name.
3883 2001-02-14 Nick Clifton <nickc@redhat.com>
3885 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3888 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3889 (BFD64_BACKENDS): Add pepigen.c
3890 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3892 * Makefile.in: Regenerate.
3893 * configure: Regenerate.
3894 * po/POTFILES.in: Regenerate.
3895 * po/bfd.pot: Regenerate.
3897 2001-02-14 H.J. Lu <hjl@gnu.org>
3899 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3900 force_minimum_alignment.
3902 2001-02-14 Bo Thorsen <bo@suse.de>
3904 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3905 (elf64_86_64_size_info): Struct added to fix a problem
3906 with the hashtable string entries.
3907 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3908 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3909 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3910 remove the FIXME for this.
3911 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3912 section. Also removed the FIXME for it.
3913 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3914 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3915 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3917 2001-02-13 Richard Henderson <rth@redhat.com>
3919 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3920 and not user provided.
3922 2001-02-13 Kazu Hirata <kazu@hxi.com>
3924 * vms.c (vms_print_symbol): Remove unreachable code.
3926 * rs6000-core.c: Fix formatting.
3928 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3930 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3931 as _bfd_XXi_only_swap_filehdr_out.
3932 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3933 pe->force_minimum_alignment to TRUE.
3934 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3935 PEI_TARGET_SUBSYSTEM.
3936 (pe_print_private_bfd_data): Call
3937 _bfd_XX_print_private_bfd_data_common() instead of
3938 _bfd_pe_print_private_bfd_data_common().
3939 (pe_bfd_copy_private_bfd_data): Call
3940 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3941 _bfd_pe_bfd_copy_private_bfd_data_common().
3942 (coff_bfd_copy_private_section_data): Define as
3943 _bfd_XX_bfd_copy_private_section_data instead of
3944 _bfd_pe_bfd_copy_private_section_data.
3945 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3946 of a _bfd_pe_get_symbol_info.
3950 * peXXigen.c: Renamed from peigen.c.
3951 (COFF_WITH_XX): Define this macro (will get expanded into
3952 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3953 compiled as peigen.c or pepigen.c.
3954 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3955 define the canonical PEP structures and definitions.
3956 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3957 effect, enforce minimum file and section alignments. If
3958 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3959 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3960 so, by default, this is a no-op).
3962 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3963 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3964 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3965 _bfd_pefoo if it's not defined. Use these macros to define
3968 * libcoff.h (pe_tdata): Add members target_subsystem and
3969 force_minimum_alignment.
3971 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3973 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3975 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3978 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3979 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3982 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3983 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3984 (peigen.c): Add rule to generate from peXXigen.c.
3986 (pepigen.lo): List dependencies for pepigen.lo.
3988 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3990 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3991 $global$ referenced but not defined, set its value here.
3993 2001-02-09 Bo Thorsen <bo@suse.de>
3995 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3997 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3999 (elf64_x86_64_relocate_section): Fix formatting.
4000 (elf64_x86_64_relocate_section): Fix addend for relocation of
4001 R_X86_64_(8|16|32|PC8|PC16|PC32).
4003 2001-02-12 Jan Hubicka <jh@suse.cz>
4005 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4007 2001-02-11 H.J. Lu <hjl@gnu.org>
4009 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4012 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4014 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4015 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4016 relocations against dynsym symbols.
4018 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4019 the R_MIPS_26 relocation.
4020 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4021 the R_MIPS_26 relocation.
4022 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4024 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4025 the R_MIPS_26 relocation.
4026 (mips_elf64_howto_table_rela): Likewise.
4028 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4029 member to mark symbols that have non-CALL relocations against
4031 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4032 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4034 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4035 non-CALL relocation against it is encountered.
4036 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4037 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4038 no_fn_stub is not set.
4040 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4041 information from the real symbol for indirect ones.
4042 Check no_fn_stub to find out if a symbol has a function stub
4045 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4047 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4048 * Makefile.in: Regenerate.
4050 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4052 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4053 true if section name is an unwind table section name.
4054 (elfNN_ia64_additional_program_headers): Count each unwind section
4056 (elfNN_ia64_modify_segment_map): Install one unwind program header
4057 for each unwind separate section. Note: normally the linker
4058 script merges the unwind sections that go into a single segment,
4059 so this still generates at most one unwind program header per
4062 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4063 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4064 (elfNN_ia64_fake_sections): Mark sections with names that start
4065 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4068 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4069 Use it to make sh_info in unwind section point to the text section
4072 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4074 * Makefile.am: Add linux target for S/390.
4075 * archures.c: Likewise.
4076 * bfd-in2.h: Likewise.
4077 * config.bfd: Likewise.
4078 * configure.in: Likewise.
4080 * libbfd.h: Likewise.
4081 * targets.c: Likewise.
4082 * cpu-s390.c: New file.
4083 * elf32-s390.c: New file.
4084 * elf64-s390.c: New file.
4086 2001-02-09 Nick Clifton <nickc@redhat.com>
4088 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4089 ImageBase. This has already been done by coff_swap_hdr_in.
4091 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4093 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4095 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4097 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4098 (sparc64_elf_relocate_section): Likewise.
4100 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4102 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4103 similar to R_SPARC_32.
4104 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4106 2001-02-08 H.J. Lu <hjl@gnu.org>
4108 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4109 relocation entries for weak definitions when building DSO with
4112 2001-02-08 Richard Henderson <rth@redhat.com>
4114 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4115 before visibility. Locally defined protected symbols are not
4118 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4120 * config.bfd: Enable coff64 for rs6000-*. Patch from
4121 <hzoli@austin.ibm.com>.
4123 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4125 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4126 found, do not attempt to find dwarf2 info before returning.
4128 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4130 * elflink.h (is_global_symbol_definition): Rename to
4131 is_global_data_symbol_definition and have it reject function
4133 (elf_link_is_defined_archive_symbol): Use renamed function.
4135 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4137 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4138 * libbfd.h (bfd_target_vector): Likewise.
4139 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4140 make static; create pointer reference named bfd_target_vector.
4141 (_bfd_target_vector_entries): Calculate this based on the array
4142 typed _bfd_target_vector.
4144 2001-02-06 H.J. Lu <hjl@gnu.org>
4146 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4147 internal symbols are not dynamic.
4148 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4150 2001-02-06 Nick Clifton <nickc@redhat.com>
4152 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4153 that it will not be pulled into the list of files that make up
4155 * Makefile.in: Regenerate.
4156 * po/bfd.pot: Regenerate.
4158 2001-02-06 H.J. Lu <hjl@gnu.org>
4160 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4162 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4163 external_PEI_IMAGE_hdr.
4165 2001-02-06 Kazu Hirata <kazu@hxi.com>
4167 * elf-m10200.c: Fix formatting.
4169 2001-02-04 Nick Clifton <nickc@redhat.com>
4171 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4172 rel, it will be handled later on.
4174 2001-02-02 Fred Fish <fnf@ninemoons.com>
4176 * Makefile.in: Fix typo.
4178 2001-02-01 Kazu Hirata <kazu@hxi.com>
4180 * elf-m10300.c: Fix formatting.
4182 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4184 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4185 (elf_backend_get_symbol_type): Define.
4186 (elf64_hppa_object_p): Set architecture and machine from elf
4189 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4191 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4194 2001-01-26 Richard Henderson <rth@redhat.com>
4196 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4197 for non-default visibility.
4198 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4199 delete ugly macro and replace with pretty function.
4201 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4203 * coff-go32.c: Update copyright.
4204 * coff-stgo32.c: Likewise.
4205 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4206 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4207 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4208 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4210 2001-01-25 Kazu Hirata <kazu@hxi.com>
4212 * bfd-in2.h: Rebuild.
4213 * libbfd.h: Likewise.
4215 2001-01-23 H.J. Lu <hjl@gnu.org>
4217 * bfd-in2.h: Rebuild.
4219 2001-01-23 H.J. Lu <hjl@gnu.org>
4221 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4222 is NULL or PRIV(vms_rec) is outside of the buffer.
4224 2001-01-23 Kazu Hirata <kazu@hxi.com>
4226 * coff64-rs6000.c: Fix formatting.
4227 * coff-arm.c: Likewise.
4228 * coffgen.c: Likewise.
4229 * cofflink.c: Likewise.
4230 * coff-mcore.c: Likewise.
4231 * coff-mips.c: Likewise.
4232 * coff-pmac.c: Likewise.
4233 * coff-ppc.c: Likewise.
4234 * coff-rs6000.c: Likewise.
4235 * elf32.c: Likewise.
4236 * elf32-fr30.c: Likewise.
4237 * elf32-i370.c: Likewise.
4238 * elf32-i860.c: Likewise.
4239 * elf32-m32r.c: Likewise.
4240 * elf32-m68k.c: Likewise.
4241 * elf32-mcore.c: Likewise.
4242 * elf32-ppc.c: Likewise.
4243 * elf32-sh.c: Likewise.
4244 * elf32-v850.c: Likewise.
4245 * elf64-alpha.c: Likewise.
4246 * elf64-sparc.c: Likewise.
4247 * elflink.c: Likewise.
4248 * elflink.h: Likewise.
4249 * elf-m10200.c: Likewise.
4250 * elf-m10300.c: Likewise.
4251 * elfxx-ia64.c: Likewise.
4253 * aoutx.h: Fix formatting.
4255 * bfd-in2.h: Likewise.
4256 * bfd-in.h: Likewise.
4257 * cpu-i386.c: Likewise.
4258 * cpu-m68hc11.c: Likewise.
4259 * dwarf2.c: Likewise.
4260 * elf64-x86-64.c: Likewise.
4261 * format.c: Likewise.
4262 * freebsd.h: Likewise.
4264 * hp300hpux.c: Likewise.
4265 * hppabsd-core.c: Likewise.
4266 * hpux-core.c: Likewise.
4268 2001-01-22 Bo Thorsen <bo@suse.de>
4270 * elf64-x86-64.c: Added PIC support for X86-64.
4271 (elf64_x86_64_link_hash_newfunc): Function added.
4272 (elf64_x86_64_link_hash_table_create): Likewise.
4273 (elf64_x86_64_check_relocs): Likewise.
4274 (elf64_x86_64_gc_mark_hook): Likewise.
4275 (elf64_x86_64_gc_sweep_hook): Likewise.
4276 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4277 (elf64_x86_64_size_dynamic_sections): Likewise.
4278 (elf64_x86_64_discard_copies): Likewise.
4279 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4280 (elf64_x86_64_finish_dynamic_sections): Likewise.
4281 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4283 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4285 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4286 * Makefile.in: Regenerate.
4288 2001-01-21 Kazu Hirata <kazu@hxi.com>
4290 * coff-a29k.c: Fix formatting.
4292 2001-01-19 H.J. Lu <hjl@gnu.org>
4294 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4295 relocation section names.
4296 (elf_i386_relocate_section): Report files with bad relocation
4297 section names and return false.
4299 2001-01-17 Bo Thorsen <bo@suse.de>
4301 * targets.c: Alphabetize list of xvecs.
4303 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4305 * config.bfd: Add linux target variant for elfxx-hppa.
4306 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4307 bfd_elf64_hppa_linux_vec.
4308 * configure: Regenerate.
4309 * elf64-hppa.c: Include elf64-target.h again to support linux
4311 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4312 * elf32-hppa.c: Include elf32-target.h again to support linux
4314 (elf32_hppa_post_process_headers): New function.
4315 (elf_backend_post_process_headers): Define.
4316 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4317 bfd_elf32_hppa_linux_vec.
4319 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4320 and data_segment_base fields.
4321 (elf32_hppa_link_hash_table_create ): Init them.
4322 (elf32_hppa_check_relocs): Update comments.
4323 (hppa_record_segment_addr): New function.
4324 (elf32_hppa_relocate_section): Call it.
4325 (final_link_relocate): Handle R_PARISC_SEGREL32.
4326 (elf32_hppa_final_link): New function.
4327 (bfd_elf32_bfd_final_link): Define to call it.
4328 (hppa_unwind_entry_compare): New function.
4329 * cache.c (bfd_open_file): Create files in write+read mode.
4331 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4332 SEGREL32 and numerous other relocs. Change duplicate
4333 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4335 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4338 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4339 .plt entries for DT_INIT and DT_FINI.
4340 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4341 DT_INIT and DT_FINI.
4343 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4344 offsets for stub .plt access if wide mode. Check offset in range.
4346 2001-01-13 Nick Clifton <nickc@redhat.com>
4348 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4351 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4354 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4356 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4357 * configure: Regenerate.
4359 2001-01-11 Peter Targett <peter.targett@arccores.com>
4361 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4362 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4363 * cpu-arc.c (arch_info_struct): Add entries for variants.
4364 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4365 (arc_get_mach) Don't assume machine names prefixed arc- before
4367 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4369 (arc_elf_final_write_processing) Likewise.
4370 (ELF_MACHINE_CODE) Use EM_ARC.
4372 2001-01-10 Nick Clifton <nickc@redhat.com>
4374 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4376 2001-01-07 Philip Blundell <philb@gnu.org>
4378 * README: Replace `bug-gnu-utils@gnu.org' with
4379 `bug-binutils@gnu.org'.
4381 2001-01-04 Kazu Hirata <kazu@hxi.com>
4383 * som.c: Fix formatting.
4385 2001-01-03 Kazu Hirata <kazu@hxi.com>
4387 * ecoffswap.h: Fix formatting.
4388 * elf-bfd.h: Likewise.
4389 * elfarm-nabi.c: Likewise.
4390 * elfarm-oabi.c: Likewise.
4391 * elfcode.h: Likewise.
4392 * elfcore.h: Likewise.
4393 * elflink.c: Likewise.
4394 * elflink.h: Likewise.
4395 * elfxx-ia64.c: Likewise.
4396 * elfxx-target.h: Likewise.
4397 * libbfd.c: Likewise
4398 * linker.c: Likewise.
4399 * lynx-core.c: Likewise.
4401 2001-01-02 Kazu Hirata <kazu@hxi.com>
4403 * pc532-mach.c: Fix formatting.
4404 * pe-arm.c: Likewise.
4405 * pe-i386.c: Likewise.
4406 * pe-mips.c: Likewise.
4407 * pe-ppc.c: Likewise.
4408 * pe-sh.c: Likewise.
4409 * pei-mips.c: Likewise.
4410 * pei-sh.c: Likewise.
4411 * peicode.h: Likewise.
4412 * ppcboot.c: Likewise.
4413 * ptrace-core.c: Likewise.
4415 2001-01-01 Kazu Hirata <kazu@hxi.com>
4417 * reloc.c: Fix formatting.
4418 * riscix.c: Likewise.
4419 * rs6000-core.c: Likewise.
4420 * xcoff-target.h: Likewise.
4422 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4424 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4425 error, by calling bfd_default_set_arch_mach with incoming
4428 2000-12-26 Kazu Hirata <kazu@hxi.com>
4430 * vaxnetbsd.c: Fix formatting.
4431 * versados.c: Likewise.
4432 * vms-gsd.c: Likewise.
4433 * vms-hdr.c: Likewise.
4434 * vms-misc.c: Likewise.
4436 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4438 * archive.c (coff_write_armap): Don't write more than symbol_count
4439 `archive_member_file_ptr's.
4441 2000-12-25 Kazu Hirata <kazu@hxi.com>
4443 * vms-tir.c: Fix formatting.
4445 2000-12-23 Kazu Hirata <kazu@hxi.com>
4447 * vms.c: Fix formatting.
4450 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4452 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4454 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4456 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4459 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4461 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4463 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4465 * libbfd.c (bfd_get_bits): Added
4466 (bfd_put_bits): Likewise
4467 * bfd-in.h: Declared the above.
4468 * bfd-in2.h: Regenerated.
4470 2000-12-20 Kazu Hirata <kazu@hxi.com>
4472 * targets.c: Fix formatting.
4473 * tekhex.c: Likewise.
4474 * trad-core.c: Likewise.
4476 2000-12-19 Kazu Hirata <kazu@hxi.com>
4478 * sco5-core.c: Fix formatting.
4479 * section.c: Likewise.
4480 * sparclinux.c: Likewise.
4481 * sparclynx.c: Likewise.
4482 * sparcnetbsd.c: Likewise.
4484 * stabs.c: Likewise.
4485 * stab-syms.c: Likewise.
4486 * sunos.c: Likewise.
4488 * sysdep.h: Likewise.
4490 2000-12-18 Nick Clifton <nickc@redhat.com>
4492 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4494 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4495 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4497 2000-12-18 Nick Clifton <nickc@redhat.com>
4499 * vms-misc.c (_bfd_vms_get_record): Add default case to
4502 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4504 * elfcore.h (elf_core_file_p): Move to the start of the program
4505 headers before attempting to read them.
4507 2000-12-14 Kazu Hirata <kazu@hxi.com>
4509 * peigen.c: Fix formatting.
4513 2000-12-13 Kazu Hirata <kazu@hxi.com>
4515 * peigen.c: Fix formatting.
4517 2000-12-12 Jim Wilson <wilson@redhat.com>
4519 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4521 2000-12-08 Mark Salter <msalter@redhat.com>
4523 * binary.c (binary_set_section_contents): Ignore sections
4526 2000-12-12 Kazu Hirata <kazu@hxi.com>
4528 * m68klinux.c: Fix formatting.
4529 * m68knetbsd.c: Likewise.
4530 * mipsbsd.c: Likewise.
4531 * netbsd-core.c: Likewise.
4532 * netbsd.h: Likewise.
4533 * newsos3.c: Likewise.
4534 * nlm32-alpha.c: Likewise.
4535 * nlm32-i386.c: Likewise.
4536 * nlm32-ppc.c: Likewise.
4537 * nlm32-sparc.c: Likewise.
4538 * nlmcode.h: Likewise.
4539 * nlmswap.h: Likewise.
4540 * nlm-target.h: Likewise.
4541 * ns32knetbsd.c: Likewise.
4543 2000-12-10 Fred Fish <fnf@be.com>
4545 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4546 symbols in shared objects if allow_shlib_undefined is true.
4548 2000-12-12 Nick Clifton <nickc@redhat.com>
4550 * cpu-sh.c: Fix formattng.
4551 * elf.c: Fix formattng.
4552 * elf32-mips.c: Fix formattng.
4553 * elf32-sh.c: Fix formattng.
4554 * elf64-alpha.c: Fix formattng.
4556 2000-12-09 Nick Clifton <nickc@redhat.com>
4558 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4559 dwarf2_find_line_info as last parameter to invocation of
4560 _bfd_dwarf2_find_nearest_line.
4561 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4562 dwarf2_find_line_info as last parameter to invocation of
4563 _bfd_dwarf2_find_nearest_line.
4565 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4567 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4568 (BFD_LIBS): ...to here.
4569 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4570 (BFD_LIBS_CFILES): ...to here.
4571 * Makefile.in: Regenerate.
4572 * configure.in: Remove dwarf.lo from the elf shell variable.
4573 * configure: Regenerate.
4574 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4575 * libcoff.h: Regenerate.
4576 * coffgen.c (coff_find_nearest_line): Call
4577 _bfd_dwarf2_find_nearest_line.
4578 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4580 (read_abbrevs): Likewise
4581 (decode_line_info): Likewise.
4582 (parse_comp_unit): Likewise.
4583 (comp_unit_find_nearest_line): Likewise.
4584 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4585 * libbfd.h: Regenerate.
4586 * elf.c (_bfd_elf_find_nearest_line): Update call.
4587 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4588 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4589 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4590 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4591 (styp_to_sec_flags): Handle DWARF2 sections.
4592 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4593 to _bfd_find_nearest_line.
4594 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4595 call to _bfd_find_nearest_line.
4597 2000-12-08 Kazu Hirata <kazu@hxi.com>
4599 * coffgen.c: Fix formatting.
4600 * elf-m10300.c: Likewise.
4601 * elf32-i386.c: Likewise.
4602 * elf32-i960.c: Likewise.
4603 * elf32-m68k.c: Likewise.
4604 * elf32-mcore.c: Likewise.
4605 * elf32-ppc.c: Likewise.
4606 * elf32-sh.c: Likewise.
4607 * elf32-sparc.c: Likewise.
4608 * elf32-v850.c: Likewise.
4609 * elf64-alpha.c: Likewise.
4610 * elf64-hppa.c: Likewise.
4611 * elf64-mips.c: Likewise.
4612 * elf64-sparc.c: Likewise.
4614 2000-12-07 Kazu Hirata <kazu@hxi.com>
4616 * elf32-ppc.c: Fix formatting.
4617 * elf64-x86-64.c: Likewise.
4619 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4621 From Ralf Baechle <ralf@gnu.org>
4623 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4624 BFDs containing no sections or empty .text, .data or .bss sections
4625 to be merged, regardless of their flags.
4627 2000-12-06 Kazu Hirata <kazu@hxi.com>
4629 * elf32-m32r.c: Fix formatting.
4630 * elf32-m68hc11.c: Likewise.
4631 * elf32-m68hc12.c: Likewise.
4632 * elf32-m68k.c: Likewise.
4633 * elf32-mcore.c: Likewise.
4634 * elf32-pj.c: Likewise.
4635 * elf32-ppc.c: Likewise.
4637 2000-12-05 Kazu Hirata <kazu@hxi.com>
4639 * elf32-fr30.c: Fix formatting.
4640 * elf32-hppa.c: Likewise.
4641 * elf32-i370.c: Likewise.
4642 * elf32-i386.c: Likewise.
4643 * elf32-i860.c: Likewise.
4644 * elf32-i960.c: Likewise.
4646 2000-12-03 Kazu Hirata <kazu@hxi.com>
4648 * elf32-arm.h: Fix formatting.
4649 * elf32-avr.c: Likewise.
4650 * elf32-cris.c: Likewise.
4651 * elf32-d10v.c: Likewise.
4652 * elf32-d30v.c: Likewise.
4653 * elf-hppa.h: Likewise.
4654 * elf-m10200.c: Likewise.
4655 * elf-m10300.c: Likewise.
4657 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4659 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4660 bfd_mach_mips32_4k. Update FIXME comment.
4661 * archures.c (bfd_mach_mips32): New constant.
4662 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4663 the latter, renumber it.
4664 * bfd-in2.h (bfd_mach_mips32): New constant.
4665 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4666 the latter, renumber it.
4667 * cpu-mips.c (I_mips32): New constant.
4668 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4669 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4670 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4671 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4672 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4673 with E_MIPS_MACH_MIPS32_4K.
4674 (_bfd_mips_elf_final_write_processing): Replace
4675 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4676 bfd_mach_mips32 case.
4677 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4678 comparison with support for MIPS32.
4679 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4682 * aoutx.h (NAME(aout,machine_type)): Add cases for
4683 bfd_mach_mips5 and bfd_mach_mips64.
4684 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4685 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4686 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4687 (arch_info_struct): Add entries for bfd_mach_mips5 and
4689 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4690 _bfd_mips_elf_print_private_bfd_data): Add cases for
4691 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4692 (_bfd_mips_elf_final_write_processing): Add cases for
4693 bfd_mach_mips5 and bfd_mach_mips64.
4695 * aoutx.h (NAME(aout,machine_type)): Add a
4696 bfd_mach_mips_sb1 case.
4697 * archures.c (bfd_mach_mips_sb1): New constant.
4698 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4699 * cpu-mips.c (I_sb1): New constant.
4700 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4701 * elf32-mips.c (elf_mips_mach): Add case for
4703 (_bfd_mips_elf_final_write_processing): Add case for
4706 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4708 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4709 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4710 (sparc*-*-rtems*): Switched from a.out to ELF.
4712 2000-11-30 Jan Hubicka <jh@suse.cz>
4714 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4715 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4716 (elf64-x86-64.lo): Add dependencies.
4717 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4718 bfd_mach_x86_64_intel_syntax.
4719 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4720 * config.bfd (x86_64): Add.
4721 * configure.in: Add support for bfd_elf64_x86_64_vec.
4722 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4723 (bfd_i386_arch, i8086_ar): Link in.
4724 * elf64-x86-64.c: New file.
4725 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4726 * targets.c (bfd_elf64_x86_64_vec): Add.
4727 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4729 2000-11-30 Kazu Hirata <kazu@hxi.com>
4731 * xcofflink.c: Fix formatting.
4733 2000-11-28 Kazu Hirata <kazu@hxi.com>
4735 * aoutx.h: Fix formatting.
4736 * bfd-in.h: Likewise.
4737 * bfd-in2.h: Likewise.
4738 * cache.c: Likewise.
4739 * cisco-core.c: Likewise.
4740 * coff64-rs6000.c: Likewise.
4741 * coffcode.h: Likewise.
4742 * coffswap.h: Likewise.
4743 * corefile.c: Likewise.
4744 * elf32-mips.c: Likewise.
4746 2000-11-27 Kazu Hirata <kazu@hxi.com>
4748 * aout-adobe.c: Fix formatting.
4749 * coff64-rs6000.c: Likewise.
4750 * coffgen.c: Likewise.
4751 * cofflink.c: Likewise.
4753 2000-11-27 Philip Blundell <pb@futuretv.com>
4755 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4756 (obj_coff_strings_written): New accessor macro for above.
4757 * libcoff.h: Regenerate.
4758 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4760 * coffcode.h (coff_write_object_contents): No need to write out
4761 the string table if it's already been done.
4763 2000-11-22 Philip Blundell <pb@futuretv.com>
4765 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4766 weak undefined symbols.
4768 2000-11-24 Nick Clifton <nickc@redhat.com>
4770 * archures.c (bfd_mach_arm_5TE): Define.
4771 (bfd_mach_arm+XScale): Define.
4772 * bfd-in2.h: Regenerate.
4774 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4775 BFD_RELOC_ARM_PCREL_BLX.
4777 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4778 XScale machine numbers.
4780 * config.bfd (xscale-elf): Add target.
4781 (xscale-coff): Add target.
4783 * cpu-arm.c: Add xscale machine name.
4784 Add v5t, v5te and XScale machine numbers.
4786 2000-11-23 Kazu Hirata <kazu@hxi.com>
4788 * aix386-core.c: Fix formatting.
4790 2000-11-22 Jim Wilson <wilson@redhat.com>
4792 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4793 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4794 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4795 (ins_imms_scaled): Initialize sign_bit at function entry.
4796 (elf64_ia64_operands): Add missing initializers.
4797 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4798 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4799 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4800 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4801 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4803 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4804 and free_extsyms at function entry.
4805 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4806 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4807 (get_got): Delete unused local srel.
4808 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4809 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4811 2000-11-21 Kazu Hirata <kazu@hxi.com>
4813 * coff-a29k.c: Fix formatting.
4814 * coff-h8500.c: Likewise.
4815 * coff-i960.c: Likewise.
4816 * coff-ppc.c: Likewise.
4817 * coff-rs6000.c: Likewise.
4818 * coff-stgo32.c: Likewise.
4819 * coff-tic54x.c: Likewise.
4820 * coff-w65.c: Likewise.
4821 * cpu-h8500.c: Likewise.
4822 * cpu-hppa.c: Likewise.
4823 * cpu-ns32k.c: Likewise.
4824 * ecoff.c: Likewise.
4825 * ecofflink.c: Likewise.
4827 2000-11-21 Nick Clifton <nickc@redhat.com>
4829 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4830 remove possibility of infinite loop.
4832 2000-11-20 Kazu Hirata <kazu@hxi.com>
4834 * aix386-core.c: Fix formatting.
4835 * aout-adobe.c: Likewise.
4836 * aout-arm.c: Likewise.
4837 * aout-encap.c: Likewise.
4838 * aout-ns32k.c: Likewise.
4839 * aout-target.h: Likewise.
4840 * aout-tic30.c: Likewise.
4841 * aoutf1.h: Likewise.
4842 * aoutx.h: Likewise.
4843 * archive.c: Likewise.
4844 * bfd-in.h: Likewise.
4845 * bfd-in2.h: Likewise.
4849 2000-11-17 H.J. Lu <hjl@gnu.org>
4851 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4852 pltoff entries for DT_INIT and DT_FINI.
4853 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4854 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4857 2000-11-16 Richard Henderson <rth@redhat.com>
4859 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4860 (allocate_dynrel_entries): Likewise.
4861 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4862 (set_pltoff_entry): Likewise.
4863 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4864 (elfNN_ia64_reloc_type_lookup): Likewise.
4865 (elfNN_ia64_install_value): Likewise.
4866 (elfNN_ia64_relocate_section): Likewise.
4867 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4868 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4870 2000-11-16 Kazu Hirata <kazu@hxi.com>
4872 * cpu-a29k.c: Fix formatting.
4873 * cpu-alpha.c: Likewise.
4874 * cpu-arm.c: Likewise.
4875 * cpu-avr.c: Likewise.
4876 * cpu-d10v.c: Likewise.
4877 * cpu-h8500.c: Likewise.
4878 * cpu-hppa.c: Likewise.
4879 * cpu-i370.c: Likewise.
4880 * cpu-i386.c: Likewise.
4881 * cpu-i960.c: Likewise.
4882 * cpu-ia64-opc.c: Likewise.
4883 * cpu-ia64.c: Likewise.
4884 * cpu-m32r.c: Likewise.
4885 * cpu-m68hc11.c: Likewise.
4886 * cpu-m68hc12.c: Likewise.
4887 * cpu-m68k.c: Likewise.
4888 * cpu-m88k.c: Likewise.
4889 * cpu-mips.c: Likewise.
4890 * cpu-ns32k.c: Likewise.
4891 * cpu-pj.c: Likewise.
4892 * cpu-powerpc.c: Likewise.
4893 * cpu-sh.c: Likewise.
4894 * cpu-sparc.c: Likewise.
4895 * cpu-tic54x.c: Likewise.
4896 * cpu-v850.c: Likewise.
4897 * cpu-vax.c: Likewise.
4898 * cpu-w65.c: Likewise.
4899 * cpu-we32k.c: Likewise.
4900 * cpu-z8k.c: Likewise.
4901 * dwarf1.c: Likewise.
4902 * dwarf2.c: Likewise.
4904 2000-11-15 Kazu Hirata <kazu@hxi.com>
4906 * coff-arm.c: Fix formatting.
4907 * coff-ppc.c: Likewise.
4908 * coff-rs6000.c: Likewise.
4909 * coff-sh.c: Likewise.
4910 * coff-sparc.c: Likewise.
4911 * coff-tic30.c: Likewise.
4912 * coff-tic54x.c: Likewise.
4913 * coff-tic80.c: Likewise.
4914 * coff-w65.c: Likewise.
4915 * coff-we32k.c: Likewise.
4916 * coff-z8k.c: Likewise.
4918 2000-11-15 Richard Henderson <rth@redhat.com>
4920 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4921 section with the same ALLOC|LOAD flags as the source section.
4923 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4925 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4926 by STO_ALPHA constants.
4928 2000-11-14 Kazu Hirata <kazu@hxi.com>
4930 * coff-pmac.c: Fix formatting.
4931 * coff-ppc.c: Likewise.
4933 2000-11-13 H.J. Lu <hjl@gnu.org>
4935 * elflink.h (elf_link_add_object_symbols): Also add indirect
4936 symbols for common symbols with the default version.
4938 2000-11-09 Philip Blundell <pb@futuretv.com>
4940 * section.c (STD_SECTION): Set gc_mark flag.
4942 2000-11-11 Kazu Hirata <kazu@hxi.com>
4944 * coff-i960.c: Likewise.
4945 * coff-m68k.c: Likewise.
4946 * coff-m88k.c: Likewise.
4947 * coff-mcore.c: Likewise.
4948 * coff-mips.c: Likewise.
4950 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4952 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4954 2000-11-10 Kazu Hirata <kazu@hxi.com>
4956 * coff-h8300.c: Fix formatting.
4957 * coff-h8500.c: Likewise.
4958 * coff-i386.c: Likewise.
4959 * coff-i860.c: Likewise.
4960 * coff-i960.c: Likewise.
4961 * coff-ia64.c: Likewise.
4963 2000-11-09 Kazu Hirata <kazu@hxi.com>
4965 * archive.c: Fix formatting.
4966 * archures.c: Likewise.
4968 2000-11-07 Richard Henderson <rth@redhat.com>
4970 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4971 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4972 * section.c (bfd_set_section_contents): Call memcpy if
4973 section->contents set and location not equal to contents plus offset.
4975 2000-11-08 Kazu Hirata <kazu@hxi.com>
4977 * bfd-in.h: Fix formatting.
4978 * bfd-in2.h: Likewise.
4980 * binary.c: Likewise.
4982 * coff-a29k.c: Likewise.
4983 * coff-alpha.c: Likewise.
4984 * coff-apollo.c: Likewise.
4985 * coff-aux.c: Likewise.
4987 2000-11-07 Kazu Hirata <kazu@hxi.com>
4989 * aix386-core.c: Fix formatting.
4990 * aoutf1.h: Likewise.
4991 * aoutx.h: Likewise.
4992 * archures.c: Likewise.
4993 * armnetbsd.c: Likewise.
4995 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4997 * coff-h8300.c (special): Adjust reloc address.
4999 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5001 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5002 to differentiate elf32 and elf64 on ia64.
5003 * bfd-in2.h: Regenerate.
5004 * config.bfd: Add target for "ia64*-*-hpux*".
5005 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5006 * configure: Regenerate.
5007 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5008 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5010 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5011 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5012 * Makefile.in: Regnerate.
5013 * elf64-ia64.c: Deleted.
5014 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5016 2000-11-06 Kazu Hirata <kazu@hxi.com>
5018 * aout-adobe.c: Fix formatting.
5019 * aout-arm.c: Likewise.
5020 * aout-cris.c: Likewise.
5021 * aout-encap.c: Likewise.
5022 * aout-ns32k.c: Likewise.
5023 * aout-target.h: Likewise.
5024 * aout-tic30.c: Likewise.
5026 2000-11-05 Philip Blundell <philb@gnu.org>
5028 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5029 BFDs containing no sections to be merged, regardless of their flags.
5031 2000-11-04 Philip Blundell <philb@gnu.org>
5033 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5034 if a relocation for an undefined symbol also results in an
5037 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5039 * config.bfd: Add support for Sun Chorus.
5041 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5043 * configure.in: Recognize alpha-*-freebsd*.
5044 * configure: Regenerate.
5046 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5048 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5049 (Chunk): New global variable set by a parameter in objcopy.c.
5050 (S3Forced): New global variable set by a parameter in
5052 (srec_set_section_contents): If S3Forced is true, always generate
5054 (srec_write_section): Use 'Chunk' to limit maximum length of S
5057 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5059 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5060 * Makefile.in: Regenerate.
5061 * bfd-in2.h: Regenerate.
5062 * po/bfd.pot: Regenerate.
5064 2000-10-31 Philip Blundell <philb@gnu.org>
5066 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5067 EF_SOFT_FLOAT if it is defined.
5069 2000-10-27 Philip Blundell <philb@gnu.org>
5071 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5072 attempts to mix PIC code with non-PIC, just mark the output as
5073 being position dependent.
5074 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5075 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5076 all mismatches, not just the first one.
5078 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5080 * ieee.c (ieee_archive_p): Plug one of many possible
5081 memory leaks in error handling.
5083 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5085 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5086 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5088 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5089 sparc64_elf_object_p): Support v9b.
5090 * archures.c: Declare v8plusb and v9b machines.
5092 * cpu-sparc.c: Ditto.
5094 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5096 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5099 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5100 (SYMBOL_CALLS_LOCAL): New macro.
5101 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5102 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5103 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5104 (ppc_elf_relocate_section): Use flag variable to determine
5105 whether the relocation refers to a local symbol.
5106 Test whether a PLTREL24 reloc will produce a reloc by looking
5107 to see whether a PLT entry was made.
5109 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5111 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5112 entries that could serve as a definition for a weak symbol.
5114 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5116 From Ralf Baechle <ralf@gnu.org>
5118 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5119 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5120 against local symbols.
5121 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5123 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5125 * section.c (struct sec): Add kept_section.
5126 (struct bfd_comdat_info): Remove sec, we can use above.
5127 (STD_SECTION): Add initializer.
5128 (bfd_make_section_anyway): Init here too.
5130 * bfd-in2.h: Regenerate.
5132 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5134 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5135 fudge values for discarded link-once section symbols.
5137 * elf64-hppa.c: Include alloca-conf.h
5139 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5141 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5143 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5145 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5147 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5149 2000-10-10 Tom Rix <trix@redhat.com>
5151 * section.c (bfd_make_section_anyway): Release newsect ptr when
5152 newsect->symbol fails to alloc. Use bfd_release instead of free.
5154 2000-10-09 Richard Henderson <rth@cygnus.com
5156 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5157 (elf64_ia64_unwind_entry_compare): New.
5158 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5160 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5162 * elflink.h (size_dynamic_sections): Don't create various tags if
5163 .dynstr is excluded from the link. Don't set first dynsym entry
5164 if dynsymcount is zero.
5165 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5166 .dynsym excluded from the link. Don't try to write any dynamic
5167 sections excluded from the link.
5169 * elf.c (swap_out_syms): Handle global section symbols.
5171 2000-10-05 DJ Delorie <dj@redhat.com>
5173 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5174 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5175 (coff_write_relocs): write extended reloc count
5176 (coff_write_object_contents): account for extended relocs
5178 2000-10-05 Jim Wilson <wilson@cygnus.com>
5180 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5182 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5183 elf_backend_section_flags function.
5184 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5186 (elf64_ia64_section_flags): New function containing flag conversion
5188 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5189 * elfxx-target.h (elf_backend_section_flags): Define.
5190 (elfNN_bed): Initialize elf_backend_section_flags field.
5192 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5194 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5195 _bfd_elf32_gc_record_vtable. Correct a comment.
5197 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5199 From Ralf Baechle <ralf@gnu.org>
5201 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5202 produces binaries with got[1] = 0x80000001 to differenciate them
5203 for the dynamic linker from the broken binaries produced by old
5206 2000-09-30 Petr Sorfa <petrs@sco.com>
5208 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5209 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5210 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5211 * configure: Regenerate.
5213 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5215 Define two bfd_targets for absence and presence of leading
5216 underscore on symbols. Make sure to only link same kind.
5217 * elf32-cris.c (cris_elf_object_p,
5218 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5219 cris_elf_merge_private_bfd_data): New.
5220 (elf_backend_object_p, elf_backend_final_write_processing,
5221 bfd_elf32_bfd_print_private_bfd_data,
5222 bfd_elf32_bfd_merge_private_bfd_data): Define.
5223 <Target vector definition>: Include elf32-target.h twice with
5224 different macro settings:
5225 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5226 bfd_elf32_us_cris_vec.
5227 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5228 (elf_symbol_leading_char): First as 0, then '_'.
5229 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5230 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5231 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5232 * configure: Regenerate.
5233 * targets.c: Declare bfd_elf32_us_cris_vec.
5234 * po/bfd.pot: Regenerate.
5236 2000-09-29 Momchil Velikov <velco@fadata.bg>
5238 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5239 R_ARM_THM_PC22 relocations.
5241 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5243 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5245 2000-09-29 Momchil Velikov <velco@fadata.bg>
5247 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5248 is has the SEC_HAS_CONTENTS flag set.
5250 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5251 Hans-Peter Nilsson <hp@axis.com>
5253 * aout-cris.c (N_TXTADDR): Define.
5255 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5257 * som.c: Include alloca-conf.h.
5258 * Makefile.am: "make dep-am"
5259 * Makefile.in: Regenerate.
5261 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5263 * elf32-hppa.c (plt_stub): New.
5264 (PLT_STUB_ENTRY): Define.
5265 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5266 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5267 (elf32_hppa_link_hash_table_create): Init to suit.
5268 (elf32_hppa_check_relocs): Set has_12bit_branch and
5269 has_17bit_branch as appropriate.
5270 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5271 non-local functions.
5272 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5273 Add space for plt_stub as needed.
5274 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5275 functions at plt_stub.
5276 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5277 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5279 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5280 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5281 of fixed size, and if negative, disable handling of input sections
5282 before stub section. Set up default stub group size depending
5283 on detected branch relocs.
5284 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5285 ensure different offsets from sym_value aren't rounded to
5286 different 2k blocks. Use lrsel and rrsel for other stubs too for
5287 consistency rather than necessity.
5288 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5289 (final_link_relocate): Likewise.
5290 (elf32_hppa_relocate_section): Likewise.
5292 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5293 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5294 (elf_hppa_final_link_relocate): Handle them.
5295 (elf_hppa_relocate_insn): Likewise.
5296 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5298 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5300 * elfcode.h (elf_object_p): Preserve and clear abfd section
5301 information. Restore at error.
5303 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5305 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5306 is empty, make sure that its rva also 0. NT loader dislikes
5309 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5311 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5314 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5316 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5317 currently unused RELATIVE_DYNAMIC_RELOCS code.
5318 (hppa_discard_copies): Likewise.
5319 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5320 comments. Don't check non-code output sections for stub grouping.
5322 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5324 * section.c (bfd_get_unique_section_name): Return NULL if
5327 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5329 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5330 instruction sequence to actually work.
5331 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5334 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5336 * elf32-sh.c (sh_elf_relocate_section): Use
5337 _bfd_final_link_relocate to apply the relocation against a section
5338 symbol, when doing relocatable links.
5340 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5342 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5344 (stub_hash_newfunc): Here too.
5345 (hppa_add_stub): And here.
5346 (elf32_hppa_link_hash_table): Remove stub_section_created,
5347 reloc_section_created, first_init_sec and first_fini_sec. Add
5349 (elf32_hppa_link_hash_table_create): Init to suit.
5350 (hppa_get_stub_entry): Add support for grouping stub sections.
5351 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5352 section code. Index stub vars by section->id.
5353 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5354 exit paths. Zap allocation of above removed vars. Refine
5357 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5358 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5359 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5360 rather than pointer to bfd_link_info.
5361 (hppa_add_stub): Likewise.
5362 (final_link_relocate): Likewise.
5364 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5366 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5369 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5371 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5372 ld/emulparams/shelf.sh.
5374 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5376 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5377 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5378 * bfd-in2.h: Regenerate.
5380 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5382 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5383 LITUSE relocations incorrectly if -relax is specified on the ld
5384 command line and the displacement field of the load or store
5385 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5387 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5389 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5390 first_fini_sec here.
5391 (elf32_hppa_size_stubs): Instead correctly find the first .init
5392 and .fini section here.
5394 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5396 * elf32-hppa.c (clobber_millicode_symbols): New function.
5397 (elf32_hppa_size_dynamic_sections): Call it.
5399 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5401 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5402 packed. Add plabel, plt_abs packed booleans.
5403 (hppa_link_hash_newfunc): Init new fields.
5404 (PLABEL_PLT_ENTRY_SIZE): Define.
5405 (hppa_stub_name): Use size_t len vars.
5406 (hppa_add_stub): Likewise.
5407 (elf32_hppa_build_stubs): Likewise.
5408 (hppa_build_one_stub): Kill some compiler warnings.
5409 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5410 if dynamic linking. Munge the local plt offsets into
5411 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5412 size_t len vars. Add assert for plabel addend.
5413 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5414 (elf32_hppa_hide_symbol): New function.
5415 (elf_backend_hide_symbol): Define.
5416 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5417 with h->plabel set. Don't make plt entries to have dynamic syms
5418 when they have been forced local. If plt entry is used by a
5419 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5420 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5421 Set up .plt offsets for local syms.
5422 (elf32_hppa_relocate_section): Initialise plt entries for local
5423 syms. Leave weak undefined plabels zero. Make global plabel
5424 relocs against function symbol, and leave the addend zero.
5425 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5426 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5427 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5428 relocs instead of SEGREL32 for dynamic got relocs.
5429 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5430 (elf_backend_got_header_size): Adjust.
5431 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5433 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5434 (hppa_type_of_stub): Use it instead of #if 0
5435 (hppa_discard_copies): Use it here too.
5436 (elf32_hppa_size_dynamic_sections): And here.
5438 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5439 (elf32_hppa_link_hash_table_create): And here.
5440 (hppa_build_one_stub): And here. Instead keep track of stub
5441 offset using _raw_size.
5442 (elf32_hppa_size_stubs): Likewise.
5443 (elf32_hppa_build_stubs): Likewise.
5444 (hppa_size_one_stub): Likewise. Resize reloc section too.
5446 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5447 first_fini_sec handling. Don't search for reloc section or set
5448 hplink->reloc_section_created here.
5449 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5450 set reloc_section_created here.
5451 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5452 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5454 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5456 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5457 with `hplink->root.'.
5458 (elf32_hppa_check_relocs): Likewise.
5459 (elf32_hppa_gc_sweep_hook): Likewise.
5460 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5461 (hppa_handle_PIC_calls): Likewise.
5462 (elf32_hppa_size_dynamic_sections): Likewise.
5463 (elf32_hppa_set_gp): Likewise.
5464 (elf32_hppa_relocate_section): Likewise.
5465 (elf32_hppa_finish_dynamic_symbol): Likewise.
5466 (elf32_hppa_finish_dynamic_sections): Likewise.
5468 From David Huggins-Daines <dhd@linuxcare.com>
5469 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5470 defined weak symbols in shared links.
5471 (final_link_relocate): Calls to defined weak symbols in shared
5472 objects must go via import stubs, as the target might not be known
5475 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5477 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5478 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5479 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5480 the original entries with EMPTY_HOWTOs, and added new ones to fill
5482 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5483 (sh_elf_relocate_section): Likewise.
5485 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5487 * cpu-mips.c (arch_info_struct): Add mips:4K
5488 * bfd-in2.h (bfd_mach_mips4K): New define.
5489 * archures.c: Add bfd_mach_mips4K to comment.
5490 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5491 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5493 2000-09-13 Marco Franzen <marcof@thyron.com>
5495 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5496 use size_t as a counter.
5497 (som_write_space_strings): Similarly.
5499 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5501 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5503 (elf32_i860_relocate_section): Invoke new function from here.
5505 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5507 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5510 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5512 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5513 target section name instead of dumping core when the target symbol is
5516 2000-09-09 Kazu Hirata <kazu@hxi.com>
5518 * riscix.c: Remove DEFUN.
5520 2000-09-08 Nick Clifton <nickc@redhat.com>
5522 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5523 initialise flags in output bfd if the input bfd is the default
5524 architecture with the default flags.
5526 2000-09-08 Kazu Hirata <kazu@hxi.com>
5528 * archive.c: Fix formatting.
5529 * coff-arm.c: Likewise.
5530 * doc/chew.c: Likewise.
5532 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5534 * section.c (bfd_get_unique_section_name): Put a dot before the
5537 2000-09-07 Kazu Hirata <kazu@hxi.com>
5539 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5540 * elf.c: Fix formatting.
5542 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5544 * config.bfd (sh-*-linux*): Added.
5545 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5546 * targets.c: Declare them.
5547 * elf32-sh-lin.c: New file.
5548 * Makefile.am: Compile it.
5549 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5550 * configure, Makefile.in: Rebuilt.
5552 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5554 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5555 pseduo-section when determining where the TOC ends.
5557 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5558 output x_tvndx as it is only two bytes wide.
5560 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5561 reloc is 26 or 32 bits wide.
5563 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5564 for relocs that don't change anything. Also look at the full
5567 2000-09-06 Philip Blundell <philb@gnu.org>
5569 * config.bfd (arm*-*-uclinux*): New target.
5571 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5573 * configure: Rebuilt with new libtool.m4.
5575 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5577 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5578 word for variable name.
5579 * bfd-in2.h: Regenerate.
5581 2000-09-05 Nick Clifton <nickc@redhat.com>
5583 * config.in: Regenerate.
5584 * libbfd.h: Regenerate.
5585 * po/bfd.pot: Regenerate.
5586 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5589 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5591 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5593 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5595 Shared library and PIC support.
5596 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5597 (GOT_ENTRY_SIZE): New.
5598 (ELF_DYNAMIC_INTERPRETER): New.
5599 (STUB_SUFFIX): Define.
5600 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5601 (RELATIVE_DYNAMIC_RELOCS): Define.
5602 (enum elf32_hppa_stub_type): New.
5603 (struct elf32_hppa_stub_hash_entry): Rename offset to
5604 stub_offset. Add a number of new fields.
5605 (struct elf32_hppa_link_hash_entry): New.
5606 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5608 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5609 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5610 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5612 (hppa_link_hash_newfunc): New function.
5613 (elf32_hppa_link_hash_table_create): Use above function. Init new
5615 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5616 instead of addend, and remove sym_name from args. Don't use
5617 symbol name for local syms, instead use sym index.
5618 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5619 stub type rather than size. Pass in hash and handle import stub
5620 case. Also pass in reloc instead of offset so we can calculate
5621 PCREL22F and PCREL12F branches properly.
5622 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5623 import and export stubs too.
5624 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5625 import and export stub sizing.
5626 (elf32_hppa_check_relocs): New function.
5627 (elf32_hppa_adjust_dynamic_symbol): New function.
5628 (hppa_discard_copies): New function.
5629 (elf32_hppa_size_dynamic_sections): New function.
5630 (elf_backend_size_dynamic_sections): Define.
5631 (elf32_hppa_finish_dynamic_symbol): New function.
5632 (elf_backend_finish_dynamic_symbol): Define.
5633 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5634 some local vars into the link hash table too. For shared links,
5635 trundle over function syms, generating export stubs. Handle
5636 PCREL22F branches. Break out stub creation code from here..
5637 (hppa_add_stub): .. to here. New function.
5638 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5639 call the bfd linker. Use elf_gp to record global pointer.
5640 Calculate a value from sections if $global$ is missing.
5641 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5642 (elf32_hppa_gc_mark_hook): New function.
5643 (elf_backend_gc_mark_hook): Define.
5644 (elf32_hppa_gc_sweep_hook): New function.
5645 (elf_backend_gc_sweep_hook): Define.
5646 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5647 Add rel to args, and remove howto, input_bfd, offset, addend,
5648 sym_name as we can recalculate these locally. Handle calls to
5649 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5650 handling of undefined weak syms. Check that stubs are in range.
5651 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5652 message on hitting a DPREL21L reloc that needs fixing. Subtract
5653 off PC for PCREL14F. Break out code that does a stub lookup from
5655 (hppa_get_stub_entry): ..to here. New function.
5656 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5657 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5659 (elf32_hppa_finish_dynamic_sections): New function.
5660 (elf_backend_finish_dynamic_sections): Define.
5661 (elf_backend_final_write_processing) Define.
5662 (hppa_handle_PIC_calls): New function.
5663 (elf32_hppa_build_stubs): Call it. Pass link_info to
5664 hppa_build_one_stub.
5665 (elf32_hppa_create_dynamic_sections): New function
5666 to create .plt and .got then set .plt flags correctly.
5667 (elf_backend_create_dynamic_sections): Define.
5668 (elf32_hppa_object_p): New function.
5669 (elf_backend_object_p): Define.
5670 (elf32_hppa_elf_get_symbol_type): New function.
5671 (elf_backend_get_symbol_type): Define.
5672 (elf_backend_can_gc_sections): Define.
5673 (elf_backend_want_got_plt): Define.
5674 (elf_backend_plt_alignment): Set to 2.
5675 (elf_backend_plt_readonly): Define.
5676 (elf_backend_want_plt_sym): Define.
5677 (elf_backend_got_header_size): Reserve one entry.
5679 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5680 (elf32_hppa_size_stubs): Pass in multi_subspace.
5681 (elf32_hppa_set_gp): Declare.
5683 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5684 (bfd_get_unique_section_name): New function.
5685 * bfd-in2.h: Regenerate.
5687 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5688 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5691 From David Huggins-Daines <dhd@linuxcare.com>
5692 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5693 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5694 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5695 been updated in finish_dynamic_symbol before modifying function
5698 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5699 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5700 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5701 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5702 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5703 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5704 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5705 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5707 From David Huggins-Daines <dhd@linuxcare.com>
5708 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5709 style of local labels as well.
5711 2000-09-03 Philip Blundell <philb@gnu.org>
5713 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5714 references to undefined symbols in debugging sections.
5716 2000-09-02 H.J. Lu <hjl@gnu.org>
5718 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5719 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5720 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5723 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5725 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5726 (elf32_i860_is_local_label_name): New function and prototype.
5728 2000-09-02 Nick Clifton <nickc@redhat.com>
5730 * configure.in: Increase version number to 2.10.91.
5731 * configure: Regenerate.
5732 * aclocal.m4: Regenerate.
5733 * config.in: Regenerate.
5734 * po/bfd.pot: Regenerate.
5736 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5738 * elf.c (_bfd_elf_make_section_from_shdr): Add
5739 .gnu.linkobce.wi. to the list of debug section names.
5741 2000-09-02 Nick Clifton <nickc@redhat.com>
5743 * dwarf2.c (find_debug_info): New function: Locate a section
5744 containing dwarf2 debug information.
5745 (bfd_dwarf2_find_nearest_line): Find all sections containing
5746 debug information and include them in the stash.
5748 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5750 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5751 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5752 (sh_reloc_map): Add new relocs.
5753 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5754 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5755 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5756 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5758 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5759 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5760 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5761 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5762 New array constants.
5763 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5765 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5766 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5767 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5768 elf_sh_plt_reloc_offset): Define.
5769 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5770 elf_sh_link_hash_table): New structs.
5771 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5772 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5774 (elf_backend_create_dynamic_sections,
5775 bfd_elf32_bfd_link_hash_table_create,
5776 elf_backend_adjust_dynamic_symbol,
5777 elf_backend_size_dynamic_sections,
5778 elf_backend_finish_dynamic_symbol,
5779 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5780 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5781 elf_backend_got_header_size, elf_backend_plt_header_size):
5783 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5784 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5786 * bfd-in2.h, libbfd.h: Rebuilt.
5788 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5790 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5793 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5795 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5796 not initialized, set them to indicate the SH1 instruction set.
5798 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5800 * acinclude.m4: Include libtool and gettext macros from the
5802 * aclocal.m4, configure: Rebuilt.
5804 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5806 * elf.c: Eliminate references to __sparcv9 macro; replace with
5807 autoconf variables HAVE_PSINFO32_T etc.
5808 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5809 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5811 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5812 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5813 * aclocal.m4: Ditto.
5814 * configure: Regenerate.
5816 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5818 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5819 for any shared link, not just shared -Bsymbolic.
5820 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5821 any shared link, and pass link info to it.
5822 (elf_i386_size_dynamic_sections): Update comment.
5823 (elf_i386_discard_copies): Modify to discard relocs for symbols
5824 that have been forced local.
5825 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5826 that have been forced local.
5828 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5830 * elflink.h (elf_link_add_object_symbols): Allow common
5831 symbols to have an alignment of 1 if explicitly requested, and
5832 not overridden by other definitions.
5834 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5836 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5837 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5839 2000-08-22 H.J. Lu <hjl@gnu.org>
5841 * elf-bfd.h (elf_link_hash_table): Add runpath.
5843 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5844 * bfd-in2.h: Rebuilt.
5846 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5847 "runpath" field to NULL.
5848 (bfd_elf_get_runpath_list): New function.
5850 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5853 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5855 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5856 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5857 explicitly. Improve validation of r_type.
5859 2000-08-21 H.J. Lu <hjl@gnu.org>
5861 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5862 dynamic allocated content space. Add a comment to remind us that
5863 one day this ought to be fixed.
5864 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5865 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5866 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5868 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5870 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5871 field with the newly relocated value instead of adding it to the
5872 existing immediate field.
5873 (elf32_i860_relocate_splitn): Likewise.
5874 (elf32_i860_relocate_highadj): Likewise.
5876 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5878 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5879 was previously just a stub).
5881 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5883 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5885 (_bfd_elf_create_dynamic_sections): Likewise.
5887 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5889 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5890 for undefined symbols to be the beginning of the section.
5892 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5893 four extra entries at the beginning of the .rela.plt section.
5894 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5895 section to account for the four reserved entries in the .plt section.
5897 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5899 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5900 to the list of NOPs we recognize after a branch-and-link.
5901 Use the ori NOP when one is needed.
5903 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5906 2000-08-14 Jim Wilson <wilson@cygnus.com>
5908 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5909 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5910 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5913 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5915 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5917 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5919 * elf32-i860.c (elf32_i860_relocate_section): New function.
5920 (i860_final_link_relocate): New function.
5921 (elf32_i860_relocate_splitn): New function.
5922 (elf32_i860_relocate_pc16): New function.
5923 (elf32_i860_relocate_highadj): New function.
5924 (elf32_i860_howto): Minor adjustments to some relocations.
5925 (elf_info_to_howto_rel): Define.
5926 (elf_backend_relocate_section): Define.
5928 2000-08-10 Nick Clifton <nickc@cygnus.com>
5930 * elf32-arm.h: Fix formatting.
5932 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5934 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5936 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5938 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5940 2000-08-07 Kazu Hirata <kazu@hxi.com>
5942 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5943 * elf64-ia64.c: Fix a typo.
5945 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5947 * elf32-i860.c (elf32_i860_howto_table): New structure.
5948 (lookup_howto): New function.
5949 (elf32_i860_reloc_type_lookup): New function.
5950 (elf32_i860_info_to_howto_rela): New function.
5951 (elf_code_to_howto_index): New structure.
5952 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5953 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5954 elf32_i860_reloc_type_lookup.
5956 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5958 * som.c (struct fixup_format): Constify `format'.
5959 (som_hppa_howto_table): Use SOM_HOWTO macro.
5960 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5961 (som_bfd_reloc_type_lookup): Likewise.
5962 (compare_subspaces): Remove unused `count1', `count2'.
5963 (som_begin_writing): Remove unused `total_reloc_size'.
5964 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5965 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5966 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5967 (som_find_nearest_line): Decorate unused parameter(s).
5968 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5969 (som_bfd_link_split_section): Likewise.
5971 2000-08-03 Nick Clifton <nickc@cygnus.com>
5973 * section.c: Restore backed out code.
5974 * elf.c: Restore backed out code.
5975 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5976 binaries from working.
5977 * bfd-in2.h: Regenerate.
5979 2000-08-03 H.J. Lu <hjl@gnu.org>
5981 * section.c: Back out the change made by Nick Clifton
5982 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5984 * bfd-in2.h: Likewise.
5987 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5989 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5991 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5993 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5994 * bfd-in2.h, libbfd.h: Regenerate.
5996 2000-07-31 Nick Clifton <nickc@cygnus.com>
5998 * section.c (struct sec): Add new boolean field 'segment_mark'.
5999 (STD_SECTION): Initialise new field to zero.
6001 * bfd-in2.h: Regenerate.
6003 * elf.c (copy_private_bfd_data): Reorganise section to segment
6004 mapping to cope with moved sections requiring new segments,
6005 and overlapping segments.
6006 (SEGMENT_END): New macro: Return the end address of a segment.
6007 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6008 contains a section by comparing their VMA addresses.
6009 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6010 contains a section by comparing their LMA addresses.
6011 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6012 section should be included in a segment.
6013 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6014 follows another in memory.
6015 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6018 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6020 * cpu-i860.c: Added comments.
6022 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6023 bfd_elf32_i860_little_vec.
6024 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6025 (ELF_MAXPAGESIZE): Changed to 4096.
6027 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6029 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6031 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6032 config for little endian elf32 i860.
6033 (targ_defvec): Define for the new config above
6034 as "bfd_elf32_i860_little_vec".
6035 (targ_selvecs): Define for the new config above
6036 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6038 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6041 * configure: Regenerated.
6043 2000-07-27 H.J. Lu <hjl@gnu.org>
6045 * elflink.h (elf_merge_symbol): Take one more argument,
6046 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6047 entry. Don't overide the existing weak definition if dt_needed
6049 (elf_link_add_object_symbols): Pass dt_needed to
6050 elf_merge_symbol ().
6052 2000-07-27 Nick Clifton <nickc@cygnus.com>
6054 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6057 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6059 * configure.host (*-*-aix*): AIX has 'long long' always.
6061 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6062 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6063 (xcoff_write_archive_contents_big): Don't update the offset
6064 of the symbol table, xcoff_write_armap will do it.
6066 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6068 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6069 of dynobj for SGI_COMPAT checks.
6071 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6073 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6074 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6075 * bfd-in2.h: Regenerate.
6077 2000-07-21 Nick Clifton <nickc@cygnus.com>
6079 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6080 range symbol indices in relocs and issue an error message.
6082 2000-07-20 H.J. Lu <hjl@gnu.org>
6084 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6085 info->new_dtags when setting DT_FLAGS_1. It will only be set
6086 by the new linker options. It shouldn't break anything.
6088 2000-07-20 H.J. Lu <hjl@gnu.org>
6090 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6091 only if info->new_dtags is true.
6093 2000-07-20 H.J. Lu <hjl@gnu.org>
6095 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6096 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6098 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6100 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6101 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6102 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6103 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6104 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6105 * Makefile.in: Rebuild.
6106 * aclocal.m4: Rebuild.
6107 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6108 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6109 (bfd_cris_arch): Declare.
6110 (bfd_archures_list): Add bfd_cris_arch.
6111 * bfd-in2.h: Rebuild.
6112 * config.bfd: (cris-*-*): New target.
6113 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6114 * configure: Rebuild.
6115 * elf.c (prep_headers): Add bfd_arch_cris.
6116 * libbfd.h: Rebuild.
6117 * libaout.h (enum machine_type): Add M_CRIS.
6118 * reloc.c: Add CRIS relocations.
6119 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6120 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6121 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6122 * po/POTFILES.in, po/bfd.pot: Regenerate.
6124 2000-07-19 H.J. Lu <hjl@gnu.org>
6126 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6127 DF_TEXTREL if DT_TEXTREL is set.
6128 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6129 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6130 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6131 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6132 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6133 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6134 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6135 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6136 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6137 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6139 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6140 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6142 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6144 2000-07-19 H.J. Lu <hjl@gnu.org>
6146 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6147 * bfd-in2.h: Rebuild.
6149 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6150 (elf_dt_soname): New.
6152 * elf.c (bfd_elf_set_dt_needed_soname): New.
6154 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6155 entry if the shared object loaded by DT_NEEDED is used to
6156 resolve the reference in a regular object.
6158 2000-07-19 H.J. Lu <hjl@gnu.org>
6160 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6161 DT_DEPAUDIT and DT_AUDIT as strings.
6163 2000-07-19 Nick Clifton <nickc@cygnus.com>
6165 * format.c: Fix formatting.
6167 2000-07-19 H.J. Lu <hjl@gnu.org>
6169 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6171 2000-07-19 H.J. Lu <hjl@gnu.org>
6173 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6174 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6175 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6176 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6177 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6178 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6179 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6181 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6183 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6184 renamed functions from here...
6185 (assign_section_numbers): Use renamed functions.
6186 (prep_headers): Use renamed functions.
6188 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6189 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6190 * bfd-in2.h: Regenerate.
6192 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6194 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6195 parenthesis in if statement.
6197 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6199 Enable the support for Traditional MIPS.
6200 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6201 return ict_none appropriately for traditional mips targets.
6202 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6203 (STUB_MOVE): Conditionalize for traditonal mips.
6204 (STUB_LI16): Likewise.
6205 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6206 room for RTPROC header.
6207 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6208 the permission for the PT_DYNAMIC as read, write and execute.
6209 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6210 for traditonal mips.
6211 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6212 _DYNAMIC_LINKING for traditonal mips.
6213 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6214 in case of traditonal mips.
6215 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6216 entry is required. For a function if PLT is not required then set the
6217 corresponding hash table entry to 0.
6218 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6220 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6221 shared object set the value to 0.
6222 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6223 _DYNAMIC_LINKING for traditonal mips.
6224 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6225 for traditonal mips.
6227 2000-07-15 H.J. Lu <hjl@gnu.org>
6229 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6231 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6233 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6234 out a structure that is BFD_IN_MEMORY.
6236 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6238 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6239 bfd pointer. Print section id instead of bfd pointer for local
6240 syms. Prefix addend with `+' for global syms as well as local.
6241 Correct calculation of name component lengths.
6242 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6244 From David Huggins-Daines <dhd@linuxcare.com>
6245 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6246 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6247 (elf64_hppa_modify_segment_map): Likewise.
6249 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6251 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6252 addresses to be "naturally" sign extended. Return -1 if unknown.
6253 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6254 * bfd-in2.h: Regenerate.
6256 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6258 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6259 and ECOF_SIGNED_64 to list ways to extract an offset.
6260 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6261 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6263 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6264 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6266 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6268 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6269 bfd_get_start_address.
6270 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6271 (elf_swap_ehdr_out): Ditto.
6273 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6275 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6276 compatibility with older binutils.
6278 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6280 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6281 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6283 From Ryan Bradetich <rbradetich@uswest.net>
6284 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6285 (parse_line_table): Ditto.
6286 (_bfd_dwarf1_find_nearest_line): Ditto.
6287 * syms.c (cmpindexentry): Remove extra `*' from params.
6289 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6291 * elf32-mips.c (sort_dynamic_relocs): New Function.
6292 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6293 via qsort to sort the dynamic relocations in increasing r_symndx
6296 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6298 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6299 ATTRIBUTE_UNUSED to unused args.
6300 (get_opd): Likewise.
6301 (get_plt): Likewise.
6302 (get_dlt): Likewise.
6303 (get_stub): Likewise.
6304 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6305 (elf64_hppa_link_output_symbol_hook): Likewise.
6306 (elf64_hppa_check_relocs): Delete unused var.
6307 (elf64_hppa_size_dynamic_sections): Likewise.
6308 (elf64_hppa_finalize_opd): Likewise.
6309 (elf64_hppa_finalize_dynreloc): Likewise.
6310 (elf64_hppa_modify_segment_map): Likewise.
6311 (elf64_hppa_finish_dynamic_sections): Likewise.
6313 * elf-hppa.h (elf_hppa_final_write_processing): Add
6314 ATTRIBUTE_UNUSED to unused args.
6315 (elf_hppa_final_link_relocate): Likewise.
6316 (elf_hppa_record_segment_addrs): Add paretheses.
6317 (elf_hppa_relocate_section): Constify dyn_name.
6319 From David Huggins-Daines <dhd@linuxcare.com>
6320 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6321 rearrange case statement so that it gets preferred to 32-bit ones.
6323 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6324 asection->id instead of address of asection structure.
6325 (elf32_hppa_size_stubs): Likewise.
6327 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6328 for .init* and .fini*.
6330 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6331 and addends used in stub names to 32 bits.
6332 (elf32_hppa_size_stubs): Likewise.
6334 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6335 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6336 not bfd_put_64. Fix minor comment typo and formatting.
6338 Changes to create multiple linker stubs, positioned immediately
6339 before the section where they are required.
6340 * elf32-hppa.c: Don't include hppa_stubs.h.
6341 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6342 (elf32_hppa_stub_hash_table): Delete.
6343 (elf32_hppa_link_hash_entry): Delete.
6344 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6345 stub_hash_table, and store the struct here rather than a pointer.
6346 Delete output_symbol_count. Add offset array. Change
6347 global_value to a bfd_vma.
6348 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6349 (elf32_hppa_stub_hash_traverse): Delete.
6350 (elf32_hppa_name_of_stub): Delete.
6351 (elf32_hppa_link_hash_lookup): Delete.
6352 (elf32_hppa_link_hash_traverse): Delete.
6353 (elf32_hppa_stub_hash_table_init): Delete.
6354 (elf32_hppa_size_of_stub): Pass input section and offset rather
6355 than location and calculate location here. Don't pass name as all
6356 stubs are now the same size.
6357 (elf32_hppa_stub_hash_newfunc): Init new fields.
6358 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6360 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6361 comparing against ints. Rewrite stub handling code.
6362 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6363 Case enums to int before comparing against ints. Remove
6364 bfd_reloc_dangerous case.
6365 (elf32_hppa_build_one_stub): Rewrite.
6366 (elf32_hppa_size_one_stub): New function.
6367 (elf32_hppa_build_stubs): Rewrite.
6368 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6369 Rewrite stub-handling specific code.
6371 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6373 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6375 * hppa_stubs.h: Delete.
6376 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6377 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6378 * Makefile.in: Regenerate.
6380 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6383 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6385 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6386 and section name for bfd_reloc_notsupported error message.
6387 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6388 bfd_reloc_notsupported.
6389 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6391 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6392 undefined weak symbols for all relocs.
6393 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6394 offsets are relative to one past the delay slot.
6395 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6396 branch destination. Put addend into stub name too.
6397 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6398 adjust by 8 when deciding whether a linker stub is needed. Put
6399 addend into stub name as for above.
6401 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6402 various args and vars.
6403 (elf32_hppa_bfd_final_link_relocate): Here too.
6404 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6405 inner block var to avoid shadowing.
6407 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6409 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6410 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6411 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6413 * libhppa.h: Change practically all unsigned ints to plain ints.
6414 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6417 From Ryan Bradetich <rbradetich@uswest.net>
6418 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6419 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6421 From David Huggins-Daines <dhd@linuxcare.com>
6422 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6423 to the new OP_* ones.
6425 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6426 error exit. Bail out earlier on plabel relocs that we aren't
6427 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6428 string, and then don't free our copy.
6429 (elf32_hppa_build_one_stub): Make insn unsigned int.
6431 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6432 available with BL, not BE and BLE.
6434 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6435 code for elf arg relocs.
6436 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6437 argument with elf_link_hash_entry h. Handle undefined weak
6438 symbols. Move $global$ lookup from here...
6439 (elf32_hppa_relocate_section): ...to here. Return correct error
6440 message for non-handled relocs.
6441 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6442 wrong test was -0x3ffff to +0x40000.
6444 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6445 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6446 Handle them as such.
6447 (elf_hppa_relocate_insn): Fix a typo.
6449 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6450 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6451 assemble_17, assemble_21): Delete.
6452 Supply defines for all 64 possible opcodes.
6453 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6454 formats. Handle COMICLR.
6455 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6458 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6459 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6460 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6462 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6463 the local syms - did this code get deleted accidentally? Ignore
6464 undefined and undefweak syms.
6466 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6467 block. Use it instead of elf64_hppa_hash_table (info).
6468 (elf_hppa_final_link_relocate): Use hppa_info instead of
6469 elf64_hppa_hash_table (info).
6471 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6472 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6473 (hppa_rebuild_insn): Mask immediate bits here instead.
6474 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6476 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6478 * section.c (struct sec): Add id field. Tidy comment formatting.
6479 (bfd_make_section_anyway): Set id.
6480 (STD_SECTION): Init id too.
6481 Change CONST to const throughout.
6482 * archures.c (bfd_arch_info): Tidy comment.
6483 (bfd_arch_list): Change a CONST to const.
6484 * libbfd-in.h: Tidy comments and replace CONST with const.
6485 * elf-bfd.h: Likewise.
6486 * libbfd.h: Regenerate.
6487 * bfd-in2.h: Regenerate.
6488 * libcoff.h: Regenerate.
6490 2000-07-07 DJ Delorie <dj@redhat.com>
6492 * archive.c (_bfd_write_archive_contents): Add an informative
6495 2000-07-06 Kazu Hirata <kazu@hxi.com>
6497 * srec.c: Fix formatting.
6499 2000-06-05 DJ Delorie <dj@redhat.com>
6503 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6505 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6506 value of PC-relative offsets.
6508 2000-07-03 Jim Wilson <wilson@cygnus.com>
6510 * elf64-alpha.c (alpha_elf_size_info): New.
6511 (elf_backend_size_info): Define to alpha_elf_size_info.
6512 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6514 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6516 * elf32-mips.c: Include elf32-target.h again for the traditional
6519 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6521 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6522 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6523 (avr_info_to_howto_rela): Likewise.
6524 (elf32_avr_gc_mark_hook): Likewise.
6525 (elf32_avr_gc_sweep_hook): Likewise.
6526 (elf32_avr_relocate_section): Likewise.
6528 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6530 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6531 an external symbol for a non-shared, non-relocatable link.
6533 2000-07-03 Nick Clifton <nickc@redhat.com>
6535 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6536 is an external symbol.
6537 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6540 2000-07-03 Kazu Hirata <kazu@hxi.com>
6542 * reloc16.c: Fix formatting.
6544 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6546 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6547 to add a new target for traditional mips i.e
6548 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6549 * configure.in: Likewise.
6550 * configure: Rebuild.
6551 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6553 (bfd_elf32_tradlittlemips_vec): Likewise.
6554 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6555 to see that elfNN_bed does not get redefined even if the target file
6556 is included twice for a chip. See elf32-mips.c.
6558 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6560 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6561 (CLEANFILES): Add DEPA.
6562 * Makefile.in: Regenerate.
6564 2000-06-30 DJ Delorie <dj@cygnus.com>
6566 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6567 can't assume the PE header is at 0x80.
6569 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6571 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6573 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6575 * go32stub.h: Update stub.
6577 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6579 * archures.c (bfd_mach_avr5): Define.
6580 * bfd-in2.h (bfd_mach_avr5): Define.
6581 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6582 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6583 (compatible): Update comment. Add missing test.
6584 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6585 for avr2 and avr4. Simplify 8K wrap code.
6586 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6587 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6589 2000-06-26 Kazu Hirata <kazu@hxi.com>
6591 * coff-h8300.c: Fix formatting.
6592 * cpu-h8300.c: Likewise.
6594 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6596 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6597 for local symbols whose names are unknown.
6599 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6601 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6603 * Makefile.in: Regenerate.
6604 * doc/Makefile.in: Regenerate.
6606 2000-06-20 H.J. Lu <hjl@gnu.org>
6608 * Makefile.am: Rebuild dependency.
6609 * Makefile.in: Rebuild.
6611 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6613 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6614 (elf_backend_copy_indirect_symbol): Map to the new function.
6616 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6618 * archive.c (normalize): Correct pointer comparison when checking
6620 (bfd_bsd_truncate_arname): Likewise.
6621 (bfd_gnu_truncate_arname): Likewise.
6623 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6625 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6626 sections elf_{text,data}_{section,symbol}.
6627 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6628 (_bfd_mips_elf_hide_symbol): New function.
6629 (elf_backend_hide_symbol): Map to the new function.
6630 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6631 definitions of mips_elf_{text,data}_{section,symbol}.
6632 (mips_elf_local_relocation_p): Try to find the direct symbol
6633 based on new check_forced argument.
6634 (mips_elf_calculate_relocation): Use new version of
6635 mips_elf_local_relocation_p.
6636 (mips_elf_relocate_section): Likewise.
6637 (_bfd_mips_elf_relocate_section): Likewise.
6638 (mips_elf_sort_hash_table): Only assert that have enough GOT
6640 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6641 entry if the relocation based on the new external argument.
6642 (mips_elf_create_dynamic_relocation): Assert that we have a
6643 section contents allocated where we can swap out the dynamic
6645 (mips_elf_calculate_relocation): Find the real hash-table entry
6646 correctly by using h->root.root.type. Only create a dynamic
6647 relocation entry if the symbol is defined in a shared library.
6648 Create an external GOT entry for the GOT16 relocation if the
6649 symbol was forced local.
6650 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6651 dynamic index if the symbol was forced local.
6653 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6655 * elf32-mips.c: Fix typos in comments.
6657 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6659 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6662 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6664 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6665 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6666 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6667 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6668 (bfd_elf32_m68hc11_vec): Likewise.
6669 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6670 Supports 68hc11 & 68hc12 at the same time.
6671 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6673 (bfd_elf32_m68hc11_vec): Likewise.
6674 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6675 * archures.c (bfd_m68hc12_arch): Define and register in global list
6676 (bfd_m68hc11_arch): Likewise.
6677 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6678 BFD_RELOC_M68HC11_3B): Define.
6679 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6680 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6682 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6684 * elf_bfd.h (struct elf_backend_data): Add info argument to
6685 elf_backend_hide_symbol.
6686 (_bfd_elf_link_hash_hide_symbol): Likewise.
6687 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6688 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6689 * elflink.h (elf_link_add_object_symbols): Likewise.
6690 (elf_link_assign_sym_version): Likewise.
6692 2000-06-18 H.J. Lu <hjl@gnu.org>
6694 * coff-i386.c (coff_i386_reloc): Don't return in case of
6695 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6696 Compensate PE relocations when linking with non-PE object
6697 files to generate a non-PE executable.
6699 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6701 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6702 GOT entries if we're doing a static link or -Bsymbolic link.
6704 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6706 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6707 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6709 (elf_link_output_relocs): Likewise.
6710 (elf_reloc_link_order): Likewise.
6712 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6714 * archures.c (enum bfd_architecture): #define constants for
6715 PowerPc and RS6000 machine numbers.
6716 * bfd-in2.h: Regenerate.
6717 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6718 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6719 and RS6000 machine numbers using #defined constants from
6721 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6722 machine numbers using #defined constants from archures.c. Add
6723 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6724 64-bit words in 620 entry.
6725 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6727 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6729 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6731 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6732 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6733 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6735 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6737 * bfd-in.h (bfd_family_coff): Define.
6738 * bfd-in2.h: Regenerate.
6739 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6740 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6741 instead of bfd_target_coff_flavour.
6742 * cofflink.c (_bfd_coff_final_link): Likewise.
6743 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6744 exclude XCOFF files.
6745 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6747 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6748 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6749 * xcofflink.c (XCOFF_XVECP): Delete.
6750 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6751 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6752 bfd_xcoff_record_link_assignment,
6753 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6754 check for bfd_target_xcoff_flavour.
6756 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6758 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6760 (read_hdr): New function.
6761 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6762 of trying to extract individual registers. Set abfd->arch_info
6763 to match the architecture that created the core file.
6764 (rs6000coff_get_section_contents): Delete.
6765 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6767 2000-06-14 H.J. Lu <hjl@gnu.org>
6769 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6772 2000-06-13 H.J. Lu <hjl@gnu.org>
6774 * configure: Regenerate.
6776 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6778 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6781 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6783 * configure.in (VERSION): Update to show this is the CVS mainline.
6785 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6787 * elf32-d10v.c: Include elf/d10v.h
6788 (enum reloc_type): Delete.
6789 * elf32-d30v.c: Include elf/d30v.h
6790 (enum reloc_type): Delete.
6792 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6793 * Makefile.in: Regenerate.
6795 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6796 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6797 move HOWTOs into elf_howto_table.
6798 (R_386_standard, R_386_ext_offset): Define.
6799 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6800 (elf_i386_reloc_type_lookup): Modify calculation of index into
6801 elf_howto_table since we've removed the padding.
6802 (elf_i386_info_to_howto_rel): Likewise.
6803 (elf_i386_relocate_section): Likewise.
6805 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6807 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6809 2000-06-05 H.J. Lu <hjl@gnu.org>
6811 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6812 an error when seeing an undefined symbol with hidden/internal
6813 attribute. It is handled in *_relocate_section ().
6815 2000-06-05 H.J. Lu <hjl@gnu.org>
6817 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6818 indirect symbol for the ELF_LINK_NON_ELF bit.
6819 (elf_link_output_extsym): Don't output the indirect symbol even
6820 if the ELF_LINK_NON_ELF bit is set.
6822 2000-06-01 J.T. Conklin <jtc@redback.com>
6824 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6825 (i[3456]86-*-netbsdaout*): New target.
6826 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6827 (i[3456]86-*-openbsd*): Likewise.
6829 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6831 * trad-core.c: From hpux-core.c, include <dirent.h> or
6832 <sys/ndir.h> when possible.
6834 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6836 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6837 definitions. We must not assume they are sorted in the file
6838 according to their index numbers.
6840 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6842 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6843 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6844 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6846 2000-05-30 Nick Clifton <nickc@cygnus.com>
6848 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6849 80960CA, 80960MC as valid machine names.
6851 2000-05-30 H.J. Lu <hjl@gnu.org>
6853 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6854 visibility bits if the symbol is undefined. Correctly handle
6855 weak undefined symbols with hidden and internal attributes.
6857 * elflink.h (elf_link_add_object_symbols): Always turn the
6858 symbol into local if it has the hidden or internal attribute.
6860 2000-05-29 Philip Blundell <philb@gnu.org>
6862 * ppcboot.c: Add packed attribute if compiling with GCC.
6864 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6866 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6868 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6870 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6871 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6872 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6875 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6877 * Makefile.am: Update dependencies with "make dep-am"
6878 * Makefile.in: Regenerate.
6880 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6881 bindtextdomain): Replace defines with those from intl/libgettext.h
6882 to quieten gcc warnings.
6884 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6886 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6888 * archive.c (normalize, bfd_bsd_truncate_arname,
6889 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6890 file names with backslashes.
6892 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6895 * sysdep.h: Include filenames.h.
6897 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6899 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6901 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6903 * elf64-sparc.c (sparc64_elf_relax_section): New.
6904 (sparc64_elf_relocate_section): Optimize tail call into branch always
6906 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6907 (elf32_sparc_relax_section): New.
6909 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6911 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6912 Remove unusued variables.
6913 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6914 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6915 previous fix, so that shared libs really don't influence targets
6916 extension mask and memory model.
6918 2000-05-23 H.J. Lu <hjl@gnu.org>
6920 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6921 h->root.other not h->other.
6922 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6924 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6926 2000-05-23 H.J. Lu <hjl@gnu.org>
6928 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6929 undefined symbol with the non-default visibility attributes.
6930 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6931 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6932 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6933 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6934 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6935 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6936 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6937 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6938 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6939 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6940 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6942 2000-05-22 Richard Henderson <rth@cygnus.com>
6944 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6945 PCREL22, PCREL64I. Zero size of special relocs.
6946 (elf64_ia64_reloc_type_lookup): Likewise.
6947 (USE_BRL, oor_brl, oor_ip): New.
6948 (elf64_ia64_relax_section): New.
6949 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6950 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6951 (elf64_ia64_relocate_section): Likewise.
6952 (bfd_elf64_bfd_relax_section): New.
6953 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6954 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6955 * bfd-in2.h, libbfd.h: Regenerate.
6957 2000-05-22 Nick Clifton <nickc@cygnus.com>
6959 * configure.in : Add peigen.lo to MIPS PE targets.
6960 * configure: Regenerate.
6962 2000-05-22 Momchil Velikov <velco@fadata.bg>
6964 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6965 only if it is known for both input and output bfds. Separate
6966 error message strings as in some languages, it may be necessary
6967 to change more than one place in the string to change between
6970 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6971 endianess checks, call _bfd_generic_verify_endian_match() instead.
6973 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6975 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6977 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6978 endianess before checking bfd flavours.
6980 2000-05-22 H.J. Lu <hjl@gnu.org>
6982 * elflink.h (elf_link_output_extsym): Clear the visibility
6983 field for symbols not defined locally.
6985 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6987 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6988 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6989 (hppa_rebuild_insn): Mask immediate bits here instead.
6990 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6992 2000-05-18 Momchil Velikov <velco@fadata.bg>
6994 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6995 relocs for an executable, ensure that they are virtual addresses.
6997 2000-05-18 Jeffrey A Law (law@cygnus.com)
6999 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7001 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7002 Rick Gorton <gorton@scrugs.lkg.dec.com>
7004 * elflink.h: Add emitrelocations support: when enabled, relocation
7005 information and relocation sections are put into final output
7006 executables. If the emitrelocations flag is set, do the following:
7007 (elf_bfd_final_link): Emit relocation sections.
7008 (elf_link_input_bfd): Compute relocation section contents.
7009 (elf_gc_sections): Don't clean relocation sections.
7011 2000-05-16 Catherine Moore <clm@cygnus.com>
7013 * som.c (som_decode_symclass): Recognize weak symbols.
7015 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7017 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7018 read idata section only from dataoff.
7019 (pe_print_edata): Correctly check for valid eat_member.
7021 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7023 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7025 2000-05-14 Philip Blundell <philb@gnu.org>
7027 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7029 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7031 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7033 * peigen.c (pe_print_idata): Look for .idata section and print
7034 info even if data directory has zero entries. Read idata section
7035 starting from dataoff, and adjust all data offsets to suit. Cast
7036 all bfd_vma vars to unsigned long before passing to fprintf.
7037 * peigen.c (pe_print_edata): Similarly, look for .edata section
7038 and print info even if data directory has zero entries. Cast
7039 all bfd_vma vars to unsigned long before passing to fprintf.
7041 From Szabolcs Szakacsits <szaka@F-Secure.com>
7042 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7043 directory size which may be bogus.
7044 * peigen.c (pe_print_edata): Similarly.
7046 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7048 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7050 (copy_private_bfd_data): Allow for space possibly taken up by elf
7051 headers when calculating segment physical address from lma.
7053 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7055 * versados.c (versados_scan): Init stringlen and pass_2_done.
7057 * trad-core.c (trad_unix_core_file_p): Return
7058 bfd_error_wrong_format rather than bfd_error_file_truncated.
7060 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7061 add_data_entry. DataDirectory virtual address is relative.
7062 (pe_print_idata): Account for relative DataDirectory virtual
7063 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7064 (pe_print_edata): Similarly.
7066 From Szabolcs Szakacsits <szaka@F-Secure.com>
7067 * peigen.c (dir_names): Add Delay Import Directory.
7068 (pe_print_idata): Always search for bfd section containing
7069 idata address rather than looking up section name. Print this
7070 section name rather than .idata.
7071 (pe_print_edata): Similarly. Also print some fields as %08lx.
7072 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7075 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7077 * xcoff.h: Rename to xcoff-target.h
7078 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7079 * coff-rs6000.c: Ditto.
7080 * coff64-rs6000.c: Ditto.
7081 * coff-pmac.c: Ditto.
7082 * Makefile.in: Regenerate.
7084 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7086 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7087 Change U802TOC64MAGIC to U803XTOCMAGIC.
7089 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7091 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7092 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7093 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7095 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7097 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7099 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
7101 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7102 hidden and internal symbols.
7103 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7105 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7106 assign a PLT or GOT entry to symbols with hidden and
7107 internal visibility.
7109 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7111 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7113 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7115 2000-05-02 H.J. Lu <hjl@gnu.org>
7117 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7120 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7122 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7123 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7125 * Makefile.in: Regenerate.
7127 2000-05-01 Jim Wilson <wilson@cygnus.com>
7129 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7130 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7131 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7132 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7133 * Makefile.in: Rebuild.
7135 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7137 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7138 doesn't work very well.
7140 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7141 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7142 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7143 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7144 (elf_hppa_info_to_howto): Likewise.
7145 (elf_hppa_info_to_howto_rel): Likewise.
7146 (elf_hppa_reloc_type_lookup): Likewise.
7147 (elf_hppa_is_local_label_name): Likewise.
7148 (elf_hppa_fake_sections): Likewise.
7149 (elf_hppa_final_write_processing): Likewise.
7150 (elf_hppa_howto_table): Fully initialise all entries.
7151 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7152 (elf_hppa_info_to_howto): Likewise.
7153 (elf_hppa_info_to_howto_rel): Likewise.
7154 (elf_hppa_reloc_type_lookup): Likewise.
7155 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7156 elf_hppa_unmark_useless_dynamic_symbols,
7157 elf_hppa_remark_useless_dynamic_symbols,
7158 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7159 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7160 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7161 elf32-hppa.c mess is cleaned up.
7162 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7163 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7164 r_field then call hppa_field_adjust inline func with variable
7165 r_field arg, instead call hppa_field_adjust with fixed arg.
7166 In case R_PARISC_PCREL22F, don't set r_field.
7167 (elf_hppa_relocate_insn): Change args and return type to unsigned
7168 int. Call re_assemble_* funcs to do the work.
7170 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7173 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7175 (sign_extend): Mask first before sign extending.
7176 (low_sign_extend): Rewrite without condition expression.
7177 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7178 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7179 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7180 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7181 result as function return value rather than through pointer arg.
7182 Accept unsigned int args, and return unsigned int.
7183 (re_assemble_3): New. Combines function of dis_assemble_3 with
7184 re-assembly of opcode and immediate.
7185 (re_assemble_12): Likewise.
7186 (re_assemble_16): Likewise.
7187 (re_assemble_17): Likewise.
7188 (re_assemble_21): Likewise.
7189 (re_assemble_22): Likewise.
7190 (hppa_field_adjust): Rewrite and document, paying attention to
7191 size of types and signed/unsigned issues.
7192 (get_opcode): Shift before masking.
7193 (FDLW): Rename to FLDW.
7194 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7195 (hppa_rebuild_insn): Change args and return value to unsigned
7196 int. Make use of re_assemble_*. Correct case 11.
7198 * dep-in.sed: Handle ../opcodes/.
7199 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7200 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7201 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7202 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7203 elfarm-nabi.lo dependencies outside of auto-dependency area.
7204 Regenerate dependencies.
7205 * Makefile.in: Regenerate.
7207 * configure.in (TRAD_HEADER): Test non-null before
7209 * configure: Regenerate.
7211 * reloc.c: Fix mis-spelling in comment.
7213 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7215 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7216 * vms.c (vms_openr_next_archived_file): Return NULL.
7218 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7220 * coffcode.h Copy changes mistakenly done to libcoff.h in
7223 2000-04-29 Andreas Jaeger <aj@suse.de>
7225 * libbfd-in.h: Correctly check GCC version.
7226 * bfd-in.h: Likewise.
7227 * libhppa.h: Likewise.
7228 * libbfd.h: Regenerate.
7229 * bfd-in2.h: Regenerate.
7231 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7233 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7234 coffdu-rs6000.{lo,c}.
7235 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7237 * Makefile.in: Regenerate.
7238 * xcoff.h: New file.
7239 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7240 * coff-rs6000.c: Move all declarations and defines that are
7241 common to the xcoff backends into xcoff.h
7242 * coff64-rs6000.c: Ditto,
7244 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7246 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7247 _bfd_coff_force_symnames in strings and
7248 _bfd_coff_debug_string_prefix_length to their default values.
7249 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7251 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7253 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7254 _bfd_coff_force_symnames in strings and
7255 _bfd_coff_debug_string_prefix_length to their default values.
7257 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7259 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7260 Check local_got_refcounts before dereferencing.
7262 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7263 before deciding we don't need R_PPC_PLT32 relocation.
7264 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7267 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7269 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7271 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7272 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7273 (elf_i386_relocate_section): Allow for .plt to go missing.
7274 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7275 can use a relative reloc for got as elf_i386_relocate_section.
7276 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7278 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7280 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7282 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7284 * Makefile.am (coff64-rs6000.lo): New rule.
7285 * Makefile.in: Regenerate.
7286 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7287 xcoff_is_local_label_name, xcoff_rtype2howto,
7288 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7289 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7290 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7291 (NO_COFF_SYMBOLS): Define.
7292 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7293 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7295 (MINUS_ONE): New macro.
7296 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7298 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7299 coff_SWAP_aux_out): Map to the new functions.
7300 * coff64-rs6000.c: New file.
7301 * libcoff.h (bfd_coff_backend_data): Add new fields
7302 _bfd_coff_force_symnames_in_strings and
7303 _bfd_coff_debug_string_prefix_length.
7304 (bfd_coff_force_symnames_in_strings,
7305 bfd_coff_debug_string_prefix_length): New macros for above fields.
7306 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7307 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7308 of using coff_swap_sym_in directly.
7309 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7310 (coff_set_flags) Set magic for XCOFF64.
7311 (coff_compute_section_file_positions): Add symbol name length to
7312 string section length if bfd_coff_debug_string_prefix_length is
7314 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7315 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7316 using coff_swap_lineno_in directly.
7317 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7318 and _bfd_coff_debug_string_prefix_length fields.
7319 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7320 symbol names into strings table when
7321 bfd_coff_force_symnames_in_strings is true.
7322 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7323 SET_RELOC_VADDR): New macros.
7324 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7325 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7327 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7328 changes within RS6000COFF_C specific code.
7329 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7330 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7331 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7332 Extend existing hack on target name.
7333 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7335 * coff-tic54x.c (ticof): Keep up to date with new fields
7336 in bfd_coff_backend_data.
7337 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7338 targ_selvecs to include rs6000coff64_vec for rs6000.
7339 * configure.in: Add rs6000coff64_vec case.
7340 * cpu-powerpc.c: New bfd_arch_info_type.
7342 2000-04-24 Jeffrey A Law (law@cygnus.com)
7344 * config.bfd: Only disable elf32-hppa vectors, not all of the
7345 BSD and OSF configuration support. Provide (disabled) clauses
7347 * configure.in: Add clause for PA64 support.
7348 * configure: Rebuilt.
7350 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7351 (bfd_elf64_hppa_vec): Declare.
7353 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7354 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7355 (elf64-hppa.lo): Add dependencies.
7356 * Makefile.in: Rebuilt.
7358 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7360 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7362 * libhppa.h (dis_assemble_16): New function.
7363 (pa_arch): Added pa20w element.
7365 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7367 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7368 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7369 bfd_elf64_slurp_reloc_table.
7371 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7372 definitions to get external names.
7373 (elf_write_relocs): Renamed from write_relocs and make global.
7374 (elf_slurp_reloc_table): Make global.
7375 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7377 * archive.c (hpux_uid_gid_encode): New function.
7378 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7379 defined and the ID is greater than 99999.
7380 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7381 special uid/gid fields into 32 bit values.
7383 2000-04-21 Matthew Green <mrg@cygnus.com>
7385 * config.bfd: Add NetBSD/sparc64 support.
7387 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7388 David Mosberger <davidm@hpl.hp.com>
7389 Timothy Wall <twall@cygnus.com>
7390 Jim Wilson <wilson@cygnus.com>
7392 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7393 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7394 (BFD64_BACKENDS): Add elf64-ia64.lo.
7395 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7396 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7397 * Makefile.in: Rebuild.
7398 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7399 (bfd_ia64_arch): Declare.
7400 (bfd_archures_list): Add bfd_ia64_arch.
7401 * bfd-in2.h: Rebuild.
7402 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7403 * configure: Rebuild.
7404 * configure.host: (ia64-*-linux*): New host.
7405 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7406 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7407 * elf.c (prep_headers): Add bfd_arch_ia64.
7408 * libbfd.h: Rebuild.
7409 * reloc.c: Add IA-64 relocations.
7410 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7412 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7413 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7415 2000-04-21 Richard Henderson <rth@cygnus.com>
7417 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7418 contents when performing a partial link.
7419 (bfd_elf_d30v_reloc_21): Likewise.
7421 2000-04-20 H.J. Lu <hjl@gnu.org>
7423 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7424 patch to symbols defined by a shared object.
7425 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7427 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7430 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7431 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7433 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7435 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7436 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7437 (coff-ia64.lo): Add dependency.
7438 * Makefile.in: Regenerate.
7439 * coff-ia64.c: New file.
7440 * efi-app-ia32.c: Ditto.
7441 * efi-app-ia64.c: Ditto.
7442 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7443 (coff_set_flags): Ditto.
7444 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7445 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7446 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7447 * configure: Regenerate.
7448 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7449 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7450 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7451 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7452 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7453 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7454 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7455 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7456 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7457 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7458 (GET_PDATA_ENTRY): Ditto.
7459 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7460 data_start. Use above macros to read fields that are 64 bit wide for
7461 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7462 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7463 FileAlignment and SectionAlignment to minimum alignment if they
7465 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7466 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7467 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7468 Use above macros to write fields that are 64 bit wide for
7470 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7471 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7472 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7473 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7474 begin address, end address, and unwind info address only. Use
7475 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7477 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7478 HIGH3ADJ relocation names.
7479 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7480 * targets.c: Declare bfd_efi_app_ia32_vec and
7481 bfd_efi_app_ia64_vec.
7482 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7483 bfd_efi_app_ia64_vec.
7485 2000-04-17 Timothy Wall <twall@cygnus.com>
7487 * bfd-in2.h: Add prototypes for tic54x load page access.
7488 * bfd-in.h: Regenerate.
7489 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7490 in customized _set_arch_mach function.
7491 * coffcode.h (coff_set_alignment_hook): Set section load page if
7492 the appropriate macro is defined.
7493 (write_object_contents): Read section load page.
7495 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7497 * elf32-hppa.h: Update copyright date.
7499 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7500 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7502 * elf32-d30v.c (MAX32): Don't use LL suffix.
7503 (MIN32): Define in terms of MAX32.
7504 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7506 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7509 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7511 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7513 * dep-in.sed: Match space before file name, not after.
7514 * Makefile.am: Regenerate dependencies.
7515 * Makefile.in: Regenerate.
7517 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7518 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7519 extend without an if statement.
7521 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7523 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7525 * elf32-mips.c (gprel16_with_gp): Likewise.
7526 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7527 here using -0x40000, not (int)0xfffc0000.
7528 (elf32_hppa_size_of_stub): Likewise.
7530 2000-04-11 Timothy Wall <twall@cygnus.com>
7532 * coff-tic54x.c: Now builds with all targets.
7533 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7534 * Makefile.in: Regenerate.
7535 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7536 unitialized variable.
7538 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7540 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7541 --enable-build-warnings option.
7542 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7543 * Makefile.in, configure: Re-generate.
7545 2000-04-07 Nick Clifton <nickc@cygnus.com>
7547 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7548 BFD_RELOC_THUMB_PCREL_BLX.
7550 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7551 R_ARM_XPC25 and R_ARM_THM_PC22.
7553 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7554 R_ARM_XPC25 and R_ARM_THM_XPC22.
7555 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7556 R_ARM_[XPC25|THM_XPC22].
7558 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7559 elf/arm-oabi.h to elf/arm.h
7561 * Makefile.am: Fix dependency for elfarm-oabi.c
7562 * Makefile.in: Regenerate.
7564 * bfd-in2.h: Regenerate.
7565 * libbfd.h: Regenerate.
7567 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7569 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7570 and restore it on failure. Release newly allocated tdata on
7573 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7575 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7576 (decode_line_info): Set it. Report error if unit->line_offset is
7577 equal to or larger than it.
7579 2000-04-07 Timothy Wall <twall@cygnus.com>
7581 * targets.c: Added vecs for tic54x.
7582 * reloc.c: Added relocs for tic54x.
7583 * libbfd.h: Regenerated.
7584 * configure: Add TI COFF vecs for tic54x.
7585 * configure.in: Ditto.
7586 * config.bfd (targ_cpu): Recognize new tic54x target.
7587 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7588 * bfd-in2.h: Add tic54x target and relocations.
7589 * Makefile.am, Makefile.in: Add tic54x target.
7590 * archures.c (bfd_archures_list): Add tic54x target.
7591 * coff-tic54x.c: New.
7592 * cpu-tic54x.c: New.
7594 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7596 * elfcore.h (elf_core_file_p): call backend_object_p which
7597 thereby gets an opportunity to update the arch/machine type.
7599 2000-04-06 Timothy Wall <twall@cygnus.com>
7601 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7602 class. Handle SEC_CLINK and SEC_BLOCK flags.
7603 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7604 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7606 2000-04-06 Nick Clifton <nickc@cygnus.com>
7608 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7609 EF_INTERWORK if this is an unknown EABI.
7610 (elf32_arm_merge_private_bfd_data): Check EABI version
7611 numbers. Only check EF_xxx flags if the EABI version number
7613 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7614 if the EABI version number is unknown.
7615 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7616 if the EABI version number is unknown.
7618 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7620 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7621 BFD_RELOC_SH_LOOP_END.
7622 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7623 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7624 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7625 (sh_elf_reloc_loop): New function.
7626 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7628 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7629 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7630 * bfd-in2.h, libbfd.h: Regenerate.
7632 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7634 * po/bfd.pot: Regenerate.
7636 * Makefile.am: Remove extraneous mkdep comment.
7637 (MKDEP): Use gcc -MM rather than mkdep.
7638 (DEP): Quote when passing vars to sub-make. Add warning
7640 (DEP1): Rewrite for "gcc -MM".
7641 (CLEANFILES): Add DEP2.
7642 Update dependencies.
7643 * Makefile.in: Regenerate.
7645 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7647 * configure.in: Added corefile support for AIX 4.3. In particular,
7648 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7649 compiling rs6000-core.c.
7650 * configure: Regenerated.
7652 2000-04-03 H.J. Lu <hjl@gnu.org>
7654 * cache.c (bfd_open_file): Unlink the output file only if
7655 it has non-zero size.
7657 2000-04-01 Ken Block USG <block@zk3.dec.com>
7659 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7660 relative relocations for non-loaded sections in shared objects.
7661 (elf64_alpha_check_relocs): Similarly.
7663 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7665 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7666 BFD_RELOC_16 to switch for extended relocs.
7667 (MY_swap_ext_reloc_in): New.
7668 (MY_swap_ext_reloc_out): New.
7669 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7670 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7671 (NAME(aout,squirt_out_relocs)): Similarly use
7672 MY_swap_ext_reloc_out.
7673 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7675 2000-04-03 Kazu Hirata <kazu@hxi.com>
7677 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7678 the R_PCRWORD_B case.
7680 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7682 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7686 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7688 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7689 HOWTO references to bfd_elf_generic_reloc, that have
7690 partial_inplace == true, now use the new function. The function
7691 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7692 extends its fixes to the R_M32R_{16,24,32} relocs.
7693 The new logic in m32r_elf_lo16_reloc() has been removed, and
7694 it instead calls the new routine to obtain that functionality.
7696 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7698 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7699 elf32_avr_check_relocs, avr_final_link_relocate,
7700 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7701 elf32_avr_object_p): Add prototypes.
7702 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7703 (bfd_elf_avr_final_write_processing): Make static.
7705 2000-03-27 Denis Chertykov <denisc@overta.ru>
7707 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7708 * archures.c (bfd_architecture): Add AVR architecture.
7709 (bfd_archures_list): Add reference to AVR architecture info.
7710 * elf.c (prep_headers): Handle bfd_arch_avr.
7711 * reloc.c: Add various AVR relocation enums.
7712 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7714 * Makefile.am: Add support for AVR elf.
7715 * configure.in: Likewise.
7716 * config.bfd: Likewise.
7717 * Makefile.in: Regenerate.
7718 * configure: This too.
7719 * bfd-in2.h: And this.
7720 * libbfd.h: And this.
7722 2000-03-24 H.J. Lu <hjl@gnu.org>
7724 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7725 (elf64_alpha_find_reloc_at_ofs): Likewise.
7727 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7729 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7730 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7731 allowable range used to be -2**(n-1) to 2**n-1.
7732 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7733 "boolean overflow" with "bfd_reloc_status_type flag".
7735 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7737 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7739 2000-03-14 Kazu Hirata <kazu@hxi.com>
7741 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7742 of shrinks properly, including the last reloc.
7744 2000-03-13 Kazu Hirata <kazu@hxi.com>
7746 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7749 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7751 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7752 a format mismatch rather than an "error" from bfd_read such as
7753 bfd_error_file_truncated.
7755 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7757 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7758 sign-extension and big-endian compensation for
7759 R_MIPS_64 even in ld -r.
7761 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7763 * elf32-mips.c (mips_elf_next_relocation): Rename from
7764 mips_elf_next_lo16_relocation, and generalize to look
7765 for any relocation type.
7766 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7767 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7768 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7769 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7770 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7771 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7772 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7773 (mips_rtype_to_howto): Likewise.
7774 (mips_elf_calculate_relocation): Handle new relocs.
7775 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7776 are paired. The addend for R_MIPS_GNU_REL16_S2
7777 is shifted right two bits.
7779 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7781 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7782 comment, and ensure it doesn't happen again.
7783 (bfd_install_relocation): Same here.
7784 (_bfd_relocate_contents): Don't bother assigning unused signmask
7785 shift result. Fix typos in comments.
7786 Remove trailing whitespace throughout file.
7788 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7790 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7791 * bfd-in2.h: Rebuild.
7793 2000-03-06 Nick Clifton <nickc@cygnus.com>
7795 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7797 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7798 (SIZEOF_ILF_STRINGS): Redefine.
7799 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7800 relative reloc, as opposed to a section relative reloc.
7801 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7803 Add length of symbol's prefix to string pointer.
7804 Store a pointer to the symbol in the symbol pointer table.
7805 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7806 Initialise the symbol pointer table.
7807 Store the hint in the Hint/Name table.
7808 Make the jump reloc be symbol realtive, not section relative.
7809 Create an import symbol for imported code.
7811 2000-03-06 Catherine Moore <clm@cygnus.com>
7813 * elf.c (swap_out_syms): Check for null type_ptr.
7815 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7817 * aout-target.h (MY(write_object_contents)): Remove unused
7818 and unusable "#if CHOOSE_RELOC_SIZE".
7819 * pc532-mach.c (MY(write_object_contents)): Ditto.
7820 * netbsd.h (MY(write_object_contents)): Ditto.
7821 * hp300hpux.c (MY(write_object_contents)): Ditto.
7822 * freebsd.h (MY(write_object_contents)): Ditto.
7823 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7825 2000-02-29 H.J. Lu <hjl@gnu.org>
7827 * peicode.h (jtab): Make it static.
7829 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7830 defined and COFF_IMAGE_WITH_PE is not defined.
7831 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7832 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7834 2000-03-01 Nick Clifton <nickc@cygnus.com>
7836 * coff-arm.c (bfd_arm_process_before_allocation): Make
7837 'symndx' signed to prevent compile time warning.
7839 * coff-mcore.c: Remove unused prototype for pe_object_p.
7841 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7842 functions that are not used when COFF_IMAGE_WITH_PE is
7844 (struct sh_opcode): Change type of 'flags' field to unsigned
7845 long so that it can hold the USESAS flag.
7847 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7849 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7852 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7854 Remove unusued variables and code.
7855 (elf_backend_add_symbol_hook): Fix prototype.
7857 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7860 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7863 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7865 Remove unusued variables and code.
7866 (elf_backend_add_symbol_hook): Fix prototype.
7868 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7870 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7871 to unused function parameter.
7873 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7875 Use EMPTY_HOWTO to initialise empty howto slots.
7876 Remove unused variables.
7878 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7880 2000-03-01 H.J. Lu <hjl@gnu.org>
7882 * aoutx.h (aout_link_input_section_std): Pass "true" to
7883 the undefined_symbol callback.
7884 (aout_link_input_section_ext): Likewise.
7885 * bout.c (get_value): Likewise.
7886 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7887 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7889 (alpha_relocate_section): Likewise.
7890 * coff-arm.c (coff_arm_relocate_section): Likewise.
7891 * coff-i960.c (coff_i960_relocate_section): Likewise.
7892 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7893 * coff-mips.c (mips_relocate_section): Likewise.
7894 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7895 * coff-sh.c (sh_relocate_section): Likewise.
7896 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7897 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7898 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7899 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7900 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7901 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7902 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7903 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7904 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7905 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7906 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7907 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7908 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7909 * elflink.h (elf_link_output_extsym): Likewise.
7910 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7911 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7912 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7914 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7915 undefined_symbol callback when building shared library with
7916 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7918 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7919 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7920 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7921 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7922 (elf32_mips_get_relocated_section_content): Likewise.
7923 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7924 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7925 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7926 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7928 2000-02-28 Nick Clifton <nickc@cygnus.com>
7930 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7931 * Makefile.in: Regenerate.
7933 * configure.in: Add support for mips and sh pe vectors.
7934 * configure: regenerate.
7936 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7939 * targets.c: Add mips and sh pe vectors.
7941 * libpei.h (coff_final_link_postscript): Only define if not
7944 * coffcode.h: Add support for WinCE magic numbers.
7946 * peigen.c (pe_print_reloc): Update comment and rearrange
7947 appending of newline character.
7949 * peicode.h: Add support for Image Library Format.
7950 (pe_ILF_vars): Structure containing data used by ILF code.
7951 (pe_ILF_make_a_section): New function. Create a section based
7953 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7955 (pe_ILF_make_a_symbol): New function. Create a symbol based
7957 (pe_ILF_save_relocs): New function. Store the relocs created
7958 by pe_ILF_make_a_reloc in a section.
7959 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7961 (pe_ILF_object_p): New function. Return a bfd_target pointer
7963 (pe_bfd_object_p): If an ILF object is detected call
7964 pe_ILF_object_p on it.
7966 * coff-arm.c: Add support for WinCE relocs which are different
7967 from normal ARM COFF relocs.
7968 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7970 * coff-sh.c: Add support for sh-pe target.
7971 * pe-sh.c: New file. Support code for sh-pe target.
7972 * pei-sh.c: New file. Support code for sh-pe target.
7974 * pe-mips.c: New file. Support code for mips-pe target.
7975 * pei-mips.c: New file. Support code for mips-pe target.
7977 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7979 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7980 architecture if the object causing the bump is dynamic.
7981 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7982 and also don't it for memory ordering.
7983 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7985 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7987 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7988 calling bfd_get_section_size_before_reloc.
7989 (decode_line_info): Likewise.
7990 (_bfd_dwarf2_find_nearest_line): Likewise.
7992 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7994 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7995 name of the libtool directory.
7996 * Makefile.in: Rebuild.
7998 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
8000 * som.c (SOM_HOWTO): Define.
8001 (som_hppa_howto_table): Use it.
8003 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8005 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8007 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8009 2000-02-24 Catherine Moore <clm@cygnus.com>
8011 * som.c (som_misc_symbol_info): Add field
8013 (som_bfd_derive_misc_symbol_info): Initialize
8015 (som_build_and_write_symbol_table): Keep track
8016 of secondary_def field.
8017 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8018 if secondary_def field is set.
8019 (som_bfd_ar_write_symbol_stuff): Initialize
8022 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8024 * dwarf2.c (read_address): Read 16-bits addresses.
8025 (parse_comp_unit): Accept addr_size == 2.
8027 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8029 * bfd-in.h: Update copyright date.
8031 2000-02-23 Linas Vepstas <linas@linas.org>
8033 * cpu-i370.c: New file.
8034 * elf32-i370.c: New file.
8035 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8036 (bfd_i370_arch): New.
8037 (bfd_archures_list): Add bfd_i370_arch.
8038 * elf.c (prep_headers): Add bfd_arch_i370.
8039 * Makefile.am: Add support for IBM 370 elf.
8040 * config.bfd: Likewise.
8041 * configure.in: Likewise.
8042 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8043 * reloc.c (bfd_reloc_code_type): Likewise.
8044 * targets.c: Likewise.
8046 * Makefile.in: Regenerate.
8047 * configure: Regenerate.
8048 * bfd-in2.h: Regenerate.
8050 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8052 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8053 invalid relocation types, and change them to R_386_NONE.
8055 2000-02-22 H.J. Lu <hjl@gnu.org>
8057 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8058 not defined, don't add a second ELF_VER_CHR.
8060 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8061 symbols converted to local symbols even when stripping all
8063 (elf_link_output_extsym): Process global symbols converted to
8064 local symbols even if they are being stripped.
8066 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8068 * archures.c (bfd_octets_per_byte): Return unsigned int.
8069 (bfd_arch_mach_octets_per_byte): Ditto.
8070 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8072 * section.c (bfd_get_section_size_before_reloc): Quell signed
8073 vs. unsigned comparison warning.
8074 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8075 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8076 change. What was I thinking?
8077 * bfd-in2.h: Regenerate.
8079 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8080 (elf_gc_sections): Same here.
8081 (elf_gc_common_finalize_got_offsets): And here.
8083 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8085 ELF HPPA doesn't work at present; remove it until it does.
8086 * config.bfd: Comment out setting targ_defvec to
8088 * Makefile.am: Rebuild dependencies.
8089 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8090 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8091 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8092 * Makefile.in: Rebuild.
8093 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8095 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8097 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8098 is no bfd_free(). Revert bfd_free part of previous change.
8100 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8102 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8104 (coff_compute_section_file_positions): Use bfd_free to pair
8106 (coff_write_object_contents): Likewise.
8108 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8109 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8111 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8113 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8114 (xcoff_ar_file_hdr_big): New structure.
8115 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8116 (xcoff_ar_hdr_big): New structure.
8117 (SIZEOF_AR_HDR_BIG): New macro.
8118 (xcoff_big_format_p): New macro.
8119 (xcoff_ardata_big): New macro.
8120 (arch_xhdr_big): New macro.
8121 (xcoff_slurp_armap): Handle large archives.
8122 (xcoff_archive_p): Detect large archives.
8123 (xcoff_read_ar_hdr): Handle large archives.
8124 (xcoff_openr_next_archived_file): Handle large archives.
8125 (xcoff_generic_stat_arch_elt): Handle large archives.
8126 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8127 (xcoff_write_armap_big): New function.
8128 (xcoff_write_armap): New function, dispatch to _old or _big.
8129 (xcoff_write_archive_contents_old): Rename from
8130 xcoff_write_archive_contents.
8131 (xcoff_write_archive_contents_big): New function.
8132 (xcoff_write_archive_contents): New function, dispatch to _old or
8135 2000-02-18 Richard Henderson <rth@cygnus.com>
8137 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8138 and hide_symbol members.
8139 (elf_link_hash_copy_indirect): Remove.
8140 (elf_link_hash_hide_symbol): Remove.
8141 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8142 and elf_backend_hide_symbol.
8143 (_bfd_elf_link_hash_copy_indirect): Declare.
8144 (_bfd_elf_link_hash_hide_symbol): Declare.
8145 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8146 (_bfd_elf_link_hash_hide_symbol): Likewise.
8147 (_bfd_elf_link_hash_table_init): Don't init killed members.
8148 * elflink.h (elf_link_add_object_symbols): Use the bed function
8149 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8150 (elf_link_assign_sym_version): Likewise.
8151 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8152 (elf_backend_hide_symbol): Likewise.
8153 (elfNN_bed): Update for new members.
8155 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8157 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8158 STACK_END_ADDR): Define for new core file format.
8159 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8160 for handling the vagaries of the various core file structures used
8161 by AIX over the years.
8162 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8163 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8164 core_dumpx structure.
8166 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8168 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8169 (bfd_mach_sh3_dsp): Likewise.
8170 (bfd_mach_sh4): Reinstate.
8171 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8172 * bfd-in2.h: Regenerate.
8173 * coff-sh.c (struct sh_opcode): flags is no longer short.
8174 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8175 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8176 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8177 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8178 (sh_opcodes): No longer const.
8179 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8180 (sh_insn_uses_reg): Check for USESAS and USESR8.
8181 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8182 (_bfd_sh_align_load_span): Return early for SH4.
8183 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8184 Take into account that field b of a parallel processing insn
8185 could be mistaken for a separate insn.
8186 * cpu-sh.c (arch_info_struct): New array elements for
8187 sh2, sh-dsp and sh3-dsp.
8188 Reinstate element for sh4.
8189 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8190 (SH4_NEXT): Reinstate.
8191 (SH3_NEXT, SH3E_NEXT): Adjust.
8192 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8193 * elf32-sh.c (sh_elf_set_private_flags): New function.
8194 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8195 (sh_elf_merge_private_data): New function.
8196 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8197 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8198 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8199 sh_elf_merge_private_data.
8201 2000-02-13 Richard Henderson <rth@cygnus.com>
8203 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8204 hide_symbol members.
8205 (elf_link_hash_copy_indirect): New.
8206 (elf_link_hash_hide_symbol): New.
8207 * elflink.h (elf_link_add_object_symbols): Break out copy from
8208 indirect new new symbol to elf.c.
8209 (elf_link_assign_sym_version): Break out privatization of
8210 non-exported symbol to elf.c.
8211 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8212 (_bfd_elf_link_hash_hide_symbol): New.
8213 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8215 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8217 * section.c (_bfd_strip_section_from_output): Add info parameter.
8218 If it passed as non-NULL, use it to check whether any input BFD
8219 has an input section which uses this output section. Change all
8221 * bfd-in2.h: Rebuild.
8223 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8224 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8226 * bfd-in2.h: Rebuild.
8228 2000-02-10 Timothy Wall <twall@cygnus.com>
8230 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8231 allow final modifications of swapped-in symbol.
8232 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8233 * coffcode.h (coff_write_relocs): Use macro
8234 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8235 symbol index should be set to -1.
8237 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8239 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8240 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8241 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8242 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8243 sh_insns_uses_or_sets_freg): New functions.
8244 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8245 * (sh_insns_conflict): Use new functions and new macros to
8246 detect conflicts when two instructions both set same integer registers,
8247 both set same fp register, and both set special register.
8249 2000-02-09 Timothy Wall <twall@cygnus.com>
8251 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8252 swapping in sections, so that the swapping routines have access to
8255 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8257 * coff-go32.c: Update comment. Update copyright.
8259 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8261 * syms.c (bfd_decode_symclass)
8262 Two new class characters were added - 'V' and 'v'. The
8263 meaning of 'W' is now restricted to just weak non-object
8264 symbols. This allows differentiation between, for example,
8265 weak functions vs weak objects. nm for example now dumps:
8267 'w' = weak unresolved
8268 'V' = weak global object
8269 'v' = weak unresolved object
8271 (bfd_is_undefined_symclass): New function. Return true if the
8272 given symbol class represents and undefined/unresolved symbol.
8274 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8277 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8279 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8280 STT_ARM_16BIT flag set, but it is not attached to a data object
8281 return STT_ARM_16BIT so that it will be treated as code by the
8284 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8286 * coff-i386.c (i3coff_object_p): Remove prototype.
8289 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8290 to name. Update copyright.
8292 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8293 assignment to avoid warning. Update copyright.
8295 2000-01-24 Robert Lipe (robertl@sco.com)
8297 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8298 instead of using GNU C extension.
8300 2000-01-21 Nick Clifton <nickc@cygnus.com>
8302 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8303 amount from a bfd_in_memory structure.
8304 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8307 2000-01-14 Nick Clifton <nickc@cygnus.com>
8309 * linker.c (default_indirect_link_order): oops - fix incorrectly
8310 applied patch from Tim Wall.
8312 2000-01-13 Timothy Wall (twall@tiac.net>
8314 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8315 = scnhsz, filhsz, relsz, aoutsz, etc)
8317 * coffswap.h: Ditto.
8319 2000-01-13 Nick Clifton <nickc@cygnus.com>
8321 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8322 interwork thumb to arm stub.
8324 2000-01-13 Timothy Wall (twall@tiac.net>
8326 * archures.c (bfd_octets_per_byte): New function: Return
8328 (bfd_arch_mach_octets_per_byte): New function: Return target
8331 * section.c: Distinguish between octets and bytes for usage of
8332 _cooked_size, _raw_size, and output_offset. Clarify
8333 description of bfd_set_section_contents.
8335 * bfd-in2.h: Regenerate.
8337 * coffgen.c: Indicate that the offset parameter is in bytes, not
8340 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8341 where appropriate to get the octet offset when calling
8342 bfd_set_section_contents.
8343 (bfd_coff_reloc_link_order): Ditto.
8345 * linker.c (bfd_generic_reloc_link_order): Ditto.
8346 (_bfd_default_link_order): Ditto.
8348 * reloc.c (bfd_perform_relocation): Distinguish between octets
8349 and bytes. Use octets when indexing into octet data; use bytes
8350 when calculating target addresses.
8351 (bfd_install_relocation): Ditto.
8353 * srec.c (srec_write_section): Ditto.
8355 2000-01-13 Nick Clifton <nickc@cygnus.com>
8357 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8358 3 to 2. This allows 4 byte sized sections, which is necessary for
8359 dlltool to build functioning DLLs.
8361 2000-01-10 Philip Blundell <pb@futuretv.com>
8363 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8364 (arm*-*-conix*): New target.
8366 2000-01-10 Egor Duda <deo@logos-m.ru>
8368 * config.bfd: Include elf32_i386 vector to target list for cygwin
8371 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8372 * configure.in: Test for structure win32_pstatus_t in
8374 * configure: Regenerate.
8376 * elf.c (elfcore_grok_win32pstatus): New function: process
8377 win32_pstatus_t notes in elf core file.
8378 (elfcore_grok_note): Detect win32_pstatus notes.
8380 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8382 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8384 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8385 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8387 For older changes see ChangeLog-9899
8393 version-control: never