1 2001-11-01 Alan Modra <amodra@bigpond.net.au>
3 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
4 .plt relocs in DT_RELASZ.
6 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
8 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
11 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
13 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
15 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
17 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
18 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
19 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
20 Regenerate dependencies.
21 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
22 * config.bfd: [BFD64] (mmix-*-*): New case.
23 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
24 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
25 (bfd_mmix_arch): Declare.
26 (bfd_archures_list): Add bfd_mmix_arch.
27 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
28 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
29 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
31 * reloc.c: Add MMIX relocations.
32 * bfd.c (struct _bfd, tdata): Add mmo_data.
33 * Makefile.in: Regenerate.
34 * configure: Regenerate.
35 * libbfd.h: Regenerate.
36 * bfd-in2.h: Regenerate.
39 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
41 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
42 p_paddr of the segment that contains it.
43 (copy_private_bfd_data): If the LMA for a segment is known, use it
44 for matching sections to segments.
45 (assign_file_positions_for_segments): Use the LMA when adjusting
46 for inter-section alignment padding.
48 2001-10-29 Kazu Hirata <kazu@hxi.com>
52 2001-10-24 Richard Henderson <rth@redhat.com>
54 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
55 timestamp to time_t for ctime.
57 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
59 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
60 unsigned, increasing index.
62 2001-10-23 H.J. Lu <hjl@gnu.org>
64 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
65 m != NULL before accessing it.
67 2001-10-23 Alan Modra <amodra@bigpond.net.au>
69 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
70 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
71 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
73 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
74 (hppa_link_hash_newfunc): Likewise.
75 (elf32_hppa_finish_dynamic_symbol): Likewise.
76 (allocate_dynrelocs): Always allocate .got relocs if shared.
77 (elf32_hppa_relocate_section): Output them too. Similarly
78 consolidate .plt reloc code, and no longer initialise .plt
79 when a reloc is output.
80 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
81 when no reloc is output.
83 From Herbert Xu <herbert@gondor.apana.org.au>
84 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
87 2001-10-22 H.J. Lu <hjl@gnu.org>
89 * configure.in (WIN32LIBADD): Use -L../libiberty for
93 2001-10-21 H.J. Lu <hjl@gnu.org>
95 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
96 if shared library is enabled only for Linux hosts.
99 2001-10-21 H.J. Lu <hjl@gnu.org>
101 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
102 ../libiberty/Makefile instead of $enable_shared.
103 * configure: Rebuild.
105 2001-10-21 H.J. Lu <hjl@gnu.org>
107 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
110 2001-10-20 H.J. Lu <hjl@gnu.org>
112 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
113 if shared library is enabled.
114 * configure: Rebuild.
116 2001-10-20 H.J. Lu <hjl@gnu.org>
118 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
120 2001-10-19 H.J. Lu <hjl@gnu.org>
122 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
125 2001-10-18 H.J. Lu <hjl@gnu.org>
127 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
128 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
130 2001-10-18 Jakub Jelinek <jakub@redhat.com>
132 * section.c (_bfd_strip_section_from_output): Don't count
133 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
135 2001-10-17 Alan Modra <amodra@bigpond.net.au>
137 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
138 Elf_Internal_Shdr.contents now that it's no longer a PTR.
139 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
140 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
141 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
142 * elf32-sh.c (sh_elf_relax_section): Likewise.
143 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
144 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
145 * elf.c (setup_group): Warning fixes.
146 * elflink.h (elf_link_sort_relocs): Likewise.
147 * pdp11.c (slurp_reloc_table): Likewise.
149 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
151 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
154 2001-10-15 H.J. Lu <hjl@gnu.org>
156 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
157 for relocations against discarded link-once section.
159 2001-10-15 Alan Modra <amodra@bigpond.net.au>
161 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
162 bfd_reloc_outofrange and similar errors.
164 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
165 rather than ind->weakdef.
166 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
167 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
168 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
169 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
170 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
172 2001-10-15 Alan Modra <amodra@bigpond.net.au>
173 H.J. Lu <hjl@gnu.org>
175 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
176 counts for aliases instead of aborting.
177 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
178 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
180 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
181 to -1 for non-function symbols.
182 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
183 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
184 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
185 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
186 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
187 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
188 plt.offset instead of plt.refcount when setting to -1.
190 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
192 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
193 like R_ARM_PC24. Include reloc number in error message about
196 2001-10-10 Jakub Jelinek <jakub@redhat.com>
198 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
199 relocations against the same symbol in .rel{,a}.dyn section.
201 2001-10-10 Kazu Hirata <kazu@hxi.com>
203 * aout-encap.c: Fix comment typos.
205 * archive.c: Likewise.
207 * coff64-rs6000.c: Likewise.
208 * coffcode.h: Likewise.
209 * coffgen.c: Likewise.
210 * cofflink.c: Likewise.
211 * coff-mips.c: Likewise.
213 * elf32-m32r.c: Likewise.
214 * libcoff-in.h: Likewise.
215 * libecoff.h: Likewise.
216 * libxcoff.h: Likewise.
217 * nlm32-i386.c: Likewise.
219 * section.c: Likewise.
222 * bfd-in2.h: Regenerate.
223 * libcoff.h: Likewise.
225 2001-10-10 Alan Modra <amodra@bigpond.net.au>
227 * elf.c (elf_map_symbols): Don't create new section symbols; Use
228 existing section syms. Update comments.
229 (copy_private_bfd_data): Formatting fixes.
230 (elfcore_grok_win32pstatus): Likewise.
231 (swap_out_syms): Likewise. Remove unnecessary level of braces.
233 2001-10-09 Alan Modra <amodra@bigpond.net.au>
235 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
237 (elf_group_name): Define.
238 (elf_next_in_group): Define.
239 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
240 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
241 first member section; Instead use elf_next_in_group.
242 (bfd_section_from_shdr): Likewise.
243 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
245 2001-10-09 Alan Modra <amodra@bigpond.net.au>
247 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
248 "next_in_group". Fix gp and gp_size comments.
249 * elf.c (union elf_internal_group): New.
250 (setup_group): New function.
251 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
252 Call setup_group for SHF_GROUP sections.
253 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
254 (elf_fake_sections): Set header type for SEC_GROUP, and header
255 flags for sections in a group.
256 (set_group_contents): New function.
257 (_bfd_elf_compute_section_file_positions): Call it.
258 (assign_section_numbers): Set sh_link for SHT_GROUP.
260 * elflink.h (gc_mark_hook): Handle section groups.
261 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
262 * section.c (SEC_GROUP): Define.
263 (struct sec): Comment fixes.
264 * bfd-in2.h: Regenerate.
266 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
267 out of function args.
268 (_bfd_elf_canonicalize_reloc): Similarly.
269 (_bfd_elf_get_symtab): Here too.
270 (_bfd_elf_canonicalize_dynamic_symtab): And here.
271 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
272 bfd_bread, and remove unnecessary cast.
274 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
276 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
278 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
280 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
283 2001-10-06 Alan Modra <amodra@bigpond.net.au>
285 * bfd.c (bfd_assert): Report bfd version.
286 (_bfd_abort): Likewise.
288 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
289 section sym values. Instead replace any relocs against them with
290 relocs against STN_UNDEF, which has a zero value.
292 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
295 2001-10-05 Jeff Law <law@redhat.com>
297 * som.h (som_exec_data): New field "version_id".
298 * som.c (som_object_setup): Record the version_id if it
300 (som_prep_headers): Do not initialize version_id here.
301 (som_finish_writing): Initialize version_id here.
303 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
305 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
306 according to the MIPS/SGI ELF64 ABI Draft.
307 (mips_elf_sort_hash_table): Typo.
309 2001-10-04 Alan Modra <amodra@bigpond.net.au>
311 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
313 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
314 copying flags if this is a weakdef.
316 2001-10-04 Alan Modra <amodra@bigpond.net.au>
318 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
321 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
322 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
323 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
325 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
326 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
327 backends we configure. Run "make dep-am".
328 (install-data-local): Install symcat.h.
329 * dep-in.sed: Remove symcat.h from dependencies.
330 * Makefile.in: Regenerate.
332 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
334 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
336 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
338 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
339 (elf_backend_default_use_rela_p): New define.
341 2001-10-03 Alan Modra <amodra@bigpond.net.au>
343 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
346 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
347 * configure: Regenerate.
348 * Makefile.am (BFD_H_FILES): Add version.h.
349 * Makefile.in: Regenerate.
350 * po/SRC-POTFILES.in: Regenerate.
352 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
353 elf_backend_copy_indirect_symbol so that backend has a chance to
354 copy other necessary fields.
355 * elf-bfd.h (struct elf_backend_data): Update description of
356 elf_backend_copy_indirect_symbol.
357 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
358 copying flags if this is a weakdef.
359 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
360 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
361 than bfd_link_hash_lookup.
362 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
363 reloc processing for weakdefs.
364 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
365 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
367 2001-10-02 Alan Modra <amodra@bigpond.net.au>
369 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
370 result of ELF64_R_TYPE to enum before using in a switch.
371 (ppc64_elf_gc_mark_hook): Likewise.
372 (ppc64_elf_gc_sweep_hook): Likewise.
373 (ppc64_elf_reloc_type_class): Likewise.
375 2001-10-02 Alan Modra <amodra@bigpond.net.au>
377 * version.h: New file.
378 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
379 (BFD_VERSION_DATE): Define.
380 (BFD_VERSION_STRING): Define.
381 * configure.in: AC_SUBST bfd_version, bfd_version_date and
383 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
384 * bfd-in2.h: Regenerate.
385 * configure: Regenerate.
386 * Makefile.am: Run "make dep-am".
387 * Makefile.in: Regenerate.
389 * bfd-in.h: Include "symcat.h".
390 (CONCAT4): Redefine as for old CAT4.
391 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
392 Add warning regarding whitespace.
393 * aout-cris.c: Likewise.
394 * aout-ns32k.c: Likewise.
395 * aout-sparcle.c: Likewise.
396 * aout-tic30.c: Likewise.
398 * armnetbsd.c: Likewise.
399 * demo64.c: Likewise.
400 * elf-bfd.h: Likewise.
401 * gen-aout.c: Likewise.
402 * host-aout.c: Likewise.
403 * hp300bsd.c: Likewise.
404 * hp300hpux.c: Likewise.
405 * i386aout.c: Likewise.
406 * i386bsd.c: Likewise.
407 * i386dynix.c: Likewise.
408 * i386freebsd.c: Likewise.
409 * i386linux.c: Likewise.
410 * i386lynx.c: Likewise.
411 * i386mach3.c: Likewise.
412 * i386netbsd.c: Likewise.
413 * libaout.h: Likewise.
414 * m68k4knetbsd.c: Likewise.
415 * m68klinux.c: Likewise.
416 * m68klynx.c: Likewise.
417 * m68knetbsd.c: Likewise.
418 * m88kmach3.c: Likewise.
419 * mipsbsd.c: Likewise.
420 * newsos3.c: Likewise.
421 * ns32knetbsd.c: Likewise.
422 * pc532-mach.c: Likewise.
424 * riscix.c: Likewise.
425 * sparclinux.c: Likewise.
426 * sparclynx.c: Likewise.
427 * sparcnetbsd.c: Likewise.
429 * targets.c: Likewise.
430 * vaxnetbsd.c: Likewise.
431 * vms-hdr.c: Likewise.
433 2001-10-01 Alan Modra <amodra@bigpond.net.au>
435 * bfd-in.h: Remove comments regarding generated files.
436 * libbfd-in.h: Likewise.
437 * libcoff-in.h: Likewise.
438 * bfd-in2.h: Regenerate.
439 * libbfd.h: Likewise.
440 * libcoff.h: Likewise.
442 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
443 Hans-Peter Nilsson <hp@bitrange.com>
445 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
446 partial_inplace, matching assembler output. Set src_mask to
448 (sh_elf_relocate_section): Delete misplaced comment.
449 For relocatable linking against section symbol, call
450 _bfd_relocate_contents for partial_inplace relocs and adjust
451 rel->r_addend for others.
452 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
453 bfd_get_32, not at rel->r_addend.
455 2001-09-30 Alan Modra <amodra@bigpond.net.au>
457 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
458 the old dir refcount, so we indirectly set them to init_refcount.
459 Short-circuit asserts when we've just verified they are true.
461 2001-09-29 Alan Modra <amodra@bigpond.net.au>
463 * section.c (struct sec): Remove kept_section.
464 (STD_SECTION): Remove kept_section initialisation.
465 (bfd_make_section_anyway): Here too.
466 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
467 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
468 * elflink.h (elf_link_input_bfd): Set discarded link-once section
469 symbols to zero, and remove all code involved with kept_section
470 and tracking section symbol values.
471 * bfd-in2.h: Regenerate.
472 * configure.in: Bump version number.
473 * configure: Regenerate.
475 2001-09-29 Alan Modra <amodra@bigpond.net.au>
477 * elf64-ppc.c (struct ppc_dyn_relocs): New.
478 (IS_ABSOLUTE_RELOC): Define.
479 (struct ppc_link_hash_entry): New.
480 (struct ppc_link_hash_table): New.
481 (ppc_hash_table): Define.
482 (link_hash_newfunc): New function.
483 (ppc64_elf_link_hash_table_create): New function.
484 (create_got_section): New function.
485 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
486 pointers to our dynamic sections in hash table.
487 (ppc64_elf_copy_indirect_symbol): New function.
488 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
489 dynamic sections. Localise vars. Modify code for refcounts
490 starting from zero. Don't allocate here, or force symbols dynamic.
491 Don't copy all relocs if shared, select ones we need. Add code
492 to track possible copy relocs for non-shared link.
493 (ppc64_elf_gc_mark_hook): Update comment.
494 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
495 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
496 code for reference counting garbage collection. Don't create .plt
497 entries for functions that don't comply with ABI naming convention,
498 and don't allocate .plt space here. Use short-cuts to dynamic
499 sections. If possible, keep dynamic relocations instead of using
500 copy relocs. Remove confused comments.
501 (ppc_adjust_dynindx): Delete.
502 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
503 (allocate_dynrelocs): New function.
504 (readonly_dynrelocs): New function.
505 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
506 space here, and call allocate_dynrelocs to allocate space for
507 global .plt, .got and reloc sections. Use short-cuts to dynamic
508 sections. Call readonly_dynrelocs to determine whether we need
509 DT_TEXTREL. Don't generate section symbols here, the generic
510 ELF linker code does it for us.
511 (ppc64_elf_final_link): Call regular ELF backend linker rather than
512 gc variety, since we do our own .got handling.
513 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
514 dynamic section short-cuts. Localise vars, and delay setting.
515 Handle unknown relocs in main switch statement. Replace ugly
516 complicated tests for unresolvable relocs with a simple direct
517 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
518 before allowing an undefined sym in a shared lib. Do R_*_DS tests
519 after main switch, when we've set addend. Do non-addend insn
520 tweaks before main swithc. Ignore input_section->vma when
521 calculating reloc offsets as it's always zero. Rewrite dynamic
522 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
523 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
524 of dynamic section short-cuts. Reorganise .plt handling code.
525 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
526 Move expressions out of swap_reloca_out function calls.
527 (ppc64_elf_reloc_type_class): New function.
528 (ppc64_elf_info_to_howto): Move common expression to local var.
529 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
530 of dynamic section short-cuts. Don't fiddle with section syms
531 here as the ELF linker does it for us.
532 (elf_backend_can_refcount): Define.
533 (bfd_elf64_bfd_link_hash_table_create): Define.
534 (elf_backend_copy_indirect_symbol): Define.
535 (elf_backend_reloc_type_class): Define.
536 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
538 2001-09-29 Alan Modra <amodra@bigpond.net.au>
540 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
541 (struct elf_backend_data): Add can_refcount.
542 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
543 got.refcount and plt.refcount from init_refcount.
544 (_bfd_elf_link_hash_table_init): Set up init_refcount.
545 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
546 rather than got/plt.offset, and test for <= 0 rather than -1.
547 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
548 * elfxx-target.h (elf_backend_can_refcount): Define.
549 (elfNN_bed): Init can_refcount.
550 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
551 (_bfd_generic_link_hash_newfunc): Likewise.
552 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
554 (elf_backend_can_refcount): Define.
555 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
557 (elf32_hppa_copy_indirect_symbol): Make static to agree with
559 (elf_backend_can_refcount): Define.
560 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
562 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
563 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
564 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
565 (elf_backend_can_refcount): Define.
566 (elf_i386_copy_indirect_symbol): Make static to agree with
567 prototype. Formatting fix.
568 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
570 (elf_backend_can_refcount): Define.
571 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
573 (elf_backend_can_refcount): Define.
574 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
576 (elf_backend_can_refcount): Define.
577 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
579 (elf_backend_can_refcount): Define.
580 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
582 (elf_backend_can_refcount): Define.
584 * som.c (som_write_symbol_strings): Cast current_offset in
585 bfd_seek call to match param type.
587 2001-09-28 J. Brobecker <brobecker@gnat.com>
589 * som.c (som_write_symbol_strings): Fix incorrect type of
590 current_offset to match the function definition. Fixes a build
591 failure on HPUX-11.00.
593 2001-09-28 Richard Henderson <rth@redhat.com>
595 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
596 SEC_MERGE, SEC_STRINGS.
598 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
599 * bfd-in2.h: Rebuild.
601 2001-09-28 Alan Modra <amodra@bigpond.net.au>
603 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
604 reloc code using x86_64_reloc_map.
606 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
607 no longer allocate here. Localise some vars to blocks where they
609 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
610 setting of vars until needed.
611 (allocate_dynrelocs): Don't create a .plt entry without a reloc
612 when symbol visibilty makes a function local.
613 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
614 swap_reloca_out function calls.
615 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
616 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
619 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
620 no longer allocate here. Localise some vars to blocks where they
621 are used. Remove separate switch stmt for creating .got sec.
622 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
623 redundant casts and aborts. Delay setting of vars until needed.
624 (allocate_dynrelocs): Remove redundant casts and aborts.
625 (elf_i386_size_dynamic_sections): Move comment.
626 (elf_i386_finish_dynamic_symbol): Move expressions out of function
628 (elf_i386_relocate_section): Likewise. Comment typo fix.
629 (elf_i386_finish_dynamic_sections): Migrate common code out of
631 (elf_backend_* defines): Sort.
633 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
634 without a reloc when symbol visibilty makes a function local.
636 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
638 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
639 conflicting float flags.
641 2001-09-26 Alan Modra <amodra@bigpond.net.au>
643 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
644 (elf_backend_copy_indirect_symbol): Define.
645 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
646 (struct elf_i386_link_hash_table): Likewise.
647 (link_hash_newfunc): Get rid of unnecessary casts.
648 (elf_i386_link_hash_table_create): Likewise.
649 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
650 Don't test input section SEC_READONLY here to try to avoid copy
651 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
652 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
653 here to properly test whether we need copy relocs. Do so for weak
656 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
657 (elf_backend_copy_indirect_symbol): Define.
658 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
659 (stub_hash_newfunc): Get rid of unnecessary casts.
660 (hppa_link_hash_newfunc): Likewise.
661 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
662 Don't test input section SEC_READONLY here to try to avoid copy
663 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
664 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
665 here to properly test whether we need copy relocs. Do so for weak
668 2001-09-26 Alan Modra <amodra@bigpond.net.au>
670 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
671 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
672 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
674 2001-09-25 Jakub Jelinek <jakub@redhat.com>
676 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
679 2001-09-25 H.J. Lu <hjl@gnu.org>
681 * bfd-in2.h: Regenerated.
683 2001-09-25 Alan Modra <amodra@bigpond.net.au>
685 * elf32-i386.c: Add comment re linker function names and ordering.
686 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
687 (elf_i386_grok_prstatus): Move before linker functions.
688 (elf_i386_grok_psinfo): Likewise.
689 (elf_i386_fake_sections): Move so that functions are ordered.
690 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
692 2001-09-25 Alan Modra <amodra@bigpond.net.au>
694 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
697 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
698 code handling this option.
699 (LONG_BRANCH_VIA_PLT): Likewise.
700 (RELATIVE_DYNRELOCS): Define as zero.
701 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
702 "pc_count" fields. Remove "section" field.
703 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
704 (elf32_hppa_check_relocs): Don't allocate space for dynamic
705 relocs here. Instead, record all needed dynamic relocs via
706 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
708 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
709 (allocate_plt_and_got_and_discard_relocs): Rename to
710 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
711 (readonly_dynrelocs): New function.
712 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
713 Call readonly_dynrelocs to determine need for DT_TEXTREL.
714 Rename "i" to "ibfd". Allocate space for local dyn relocs.
715 (elf32_hppa_relocate_section): Make use of cached sreloc.
716 (elf32_hppa_reloc_type_class): New function.
717 (elf_backend_reloc_type_class): Define.
719 2001-09-25 Alan Modra <amodra@bigpond.net.au>
721 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
723 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
724 "pc_count" fields. Remove "section" field.
725 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
726 allocate space for dynamic relocs here. Instead, record all
727 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
728 pointer to "sreloc" section in elf_section_data.
729 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
730 (allocate_plt_and_got_and_discard_relocs): Rename to
731 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
732 (readonly_dynrelocs): New function.
733 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
734 Rename "i" to "ibfd". Allocate space for local dyn relocs.
735 (elf_i386_relocate_section): Make use of cached sreloc.
737 2001-09-24 Alan Modra <amodra@bigpond.net.au>
739 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
740 reloc rather than just the type.
741 (_bfd_elf_reloc_type_class): Likewise.
742 * elf.c (_bfd_elf_reloc_type_class): Likewise.
743 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
744 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
745 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
746 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
747 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
748 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
749 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
750 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
751 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
752 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
753 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
754 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
755 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
756 * elflink.h: Formatting fixes.
757 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
758 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
759 o->contents to PTR. Update call to elf_backend_reloc_type_class.
761 2001-09-22 John Reiser <jreiser@BitWagon.com>
763 * elfcode.h (elf_object_p): Allow for no section header at all in
764 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
766 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
768 * elfxx-ia64.c: Fix compile time warning messages.
769 * coff-mcore.c: Fix compile time warning messages.
770 * coff-ppc.c: Fix compile time warning messages.
771 * coffcode.h: Fix compile time warning messages.
772 * elf32-mips.c: Fix compile time warning messages.
773 * elf64-alpha.c: Fix compile time warning messages.
774 * libbfd.c: Fix compile time warning messages.
775 * bfd-in2.h: Regenerate.
777 2001-09-21 Alan Modra <amodra@bigpond.net.au>
779 * Makefile.am: Run "make dep-am".
780 * Makefile.in: Regenerate.
782 * aoutx.h: Formatting fixes.
783 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
785 * linker.c: Replace bfd_get_filename with bfd_archive_filename
788 2001-09-21 Alan Modra <amodra@bigpond.net.au>
790 * bfd.c (bfd_archive_filename): New function.
791 * bfd-in2.h: Regenerate.
792 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
793 in error messages where the bfd is an input bfd.
794 * aout-cris.c: Likewise.
795 * coff-arm.c: Likewise.
796 * coff-mcore.c: Likewise.
797 * coff-ppc.c: Likewise.
798 * coff-rs6000.c: Likewise.
799 * coff-sh.c: Likewise.
800 * coff-tic54x.c: Likewise.
801 * coff-tic80.c: Likewise.
802 * coff64-rs6000.c: Likewise.
803 * coffcode.h: Likewise.
804 * coffgen.c: Likewise.
805 * cofflink.c: Likewise.
806 * ecofflink.c: Likewise.
807 * elf-hppa.h: Likewise.
809 * elf32-arm.h: Likewise.
810 * elf32-cris.c: Likewise.
811 * elf32-gen.c: Likewise.
812 * elf32-hppa.c: Likewise.
813 * elf32-i370.c: Likewise.
814 * elf32-i386.c: Likewise.
815 * elf32-m32r.c: Likewise.
816 * elf32-mcore.c: Likewise.
817 * elf32-mips.c: Likewise.
818 * elf32-ppc.c: Likewise.
819 * elf32-s390.c: Likewise.
820 * elf32-sh.c: Likewise.
821 * elf32-sparc.c: Likewise.
822 * elf32-v850.c: Likewise.
823 * elf64-alpha.c: Likewise.
824 * elf64-gen.c: Likewise.
825 * elf64-ppc.c: Likewise.
826 * elf64-s390.c: Likewise.
827 * elf64-sparc.c: Likewise.
828 * elf64-x86-64.c: Likewise.
829 * elflink.h: Likewise.
830 * elfxx-ia64.c: Likewise.
833 * libbfd.c: Likewise.
835 * pe-mips.c: Likewise.
836 * peicode.h: Likewise.
838 * xcofflink.c: Likewise.
840 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
842 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
845 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
848 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
849 Consolidate error messages, and split long messages to two lines.
851 2001-09-20 John Reiser <jreiser@BitWagon.com>
853 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
854 and info->allow_shlib_undefined.
855 * elf32-cris.c: Likewise.
856 * elf32-hppa.c: Likewise.
857 * elf32-m68k.c: Likewise.
858 * elf32-mips.c: Likewise.
859 * elf32-ppc.c: Likewise.
860 * elf32-s390.c: Likewise.
861 * elf32-sh.c: Likewise.
862 * elf32-sparc.c: Likewise.
863 * elf64-alpha.c: Likewise.
864 * elf64-hppa.c: Likewise.
865 * elf64-ppc.c: Likewise.
866 * elf64-s390.c: Likewise.
867 * elf64-sparc.c: Likewise.
868 * elf64-x86-64.c: Likewise.
869 * elfxx-ia64.c: Likewise.
871 2001-09-18 Bruno Haible <haible@clisp.cons.org>
873 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
874 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
875 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
876 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
877 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
878 (bfd_default_scan): Use ISDIGIT instead of isdigit.
879 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
880 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
881 isxdigit/isdigit/islower.
882 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
883 (mangle_name): Use ISALNUM instead of isalnum.
884 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
885 (scan): Use ISDIGIT instead of isdigit.
886 * hosts/alphavms.h: Don't include <ctype.h>.
887 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
888 (ieee_object_p): Use TOUPPER instead of toupper.
889 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
890 (ihex_bad_byte): Use ISPRINT instead of isprint.
891 * merge.c: Don't include <ctype.h>.
892 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
893 (oasys_write_sections): Use ISDIGIT instead of isdigit.
894 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
895 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
896 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
897 (mangle_name): Use ISALNUM instead of isalnum.
898 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
899 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
900 isupper/islower/isdigit.
901 (som_decode_symclass): Use TOUPPER instead of toupper.
902 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
903 (srec_bad_byte): Use ISPRINT instead of isprint.
904 (srec_scan): Use ISSPACE instead of isspace.
905 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
906 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
907 * syms.c: Include "safe-ctype.h"
908 (islower, toupper): Remove macro definitions.
909 (bfd_decode_symclass): Use TOUPPER instead of toupper.
910 * vms-gsd.c: Don't include <ctype.h>.
911 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
912 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
914 * vms-tir.c: Don't include <ctype.h>.
916 2001-09-18 Alan Modra <amodra@bigpond.net.au>
918 * libbfd.c (bfd_bread): New function replacing bfd_read without
919 redundant params. Allow reads up to (size_t) -2 in length.
920 (bfd_bwrite): Similarly for bfd_write.
921 (real_read): Return a size_t.
922 (bfd_read): Call bfd_bread.
923 (bfd_write): Call bfd_bwrite.
924 (warn_deprecated): New function to annoy everybody.
925 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
926 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
927 (bfd_read, bfd_write): Define as macro.
928 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
929 likewise for bfd_write. Ensure function args are correct size by
930 using casts or local vars. In some cases, remove unnecessary
931 casts. Formatting fixes, in some cases removing a large expression
932 from function args by using a local var. Replace CONST with const.
933 Modify variable types to avoid warings. Use casts to avoid
934 warnings when using negative numbers in unsigned expressions.
935 * aout-adobe.c: Likewise.
936 * aout-arm.c: Likewise.
937 * aout-cris.c: Likewise.
938 * aout-encap.c: Likewise.
939 * aout-ns32k.c: Likewise.
940 * aout-target.h: Likewise.
941 * aout-tic30.c: Likewise.
942 * aoutf1.h: Likewise.
944 * archive.c: Likewise.
945 * archures.c: Likewise.
946 * bfd-in.h: Likewise.
948 * binary.c: Likewise.
951 * cisco-core.c: Likewise.
952 * coff-a29k.c: Likewise.
953 * coff-alpha.c: Likewise.
954 * coff-arm.c: Likewise.
955 * coff-h8300.c: Likewise.
956 * coff-h8500.c: Likewise.
957 * coff-i386.c: Likewise.
958 * coff-i860.c: Likewise.
959 * coff-i960.c: Likewise.
960 * coff-ia64.c: Likewise.
961 * coff-m68k.c: Likewise.
962 * coff-m88k.c: Likewise.
963 * coff-mcore.c: Likewise.
964 * coff-mips.c: Likewise.
965 * coff-ppc.c: Likewise.
966 * coff-rs6000.c: Likewise.
967 * coff-sh.c: Likewise.
968 * coff-sparc.c: Likewise.
969 * coff-stgo32.c: Likewise.
970 * coff-tic30.c: Likewise.
971 * coff-tic54x.c: Likewise.
972 * coff-tic80.c: Likewise.
973 * coff-w65.c: Likewise.
974 * coff-z8k.c: Likewise.
975 * coff64-rs6000.c: Likewise.
976 * coffcode.h: Likewise.
977 * coffgen.c: Likewise.
978 * cofflink.c: Likewise.
979 * coffswap.h: Likewise.
980 * corefile.c: Likewise.
981 * cpu-arc.c: Likewise.
982 * cpu-h8300.c: Likewise.
983 * cpu-h8500.c: Likewise.
984 * cpu-i960.c: Likewise.
985 * cpu-ia64-opc.c: Likewise.
986 * cpu-ns32k.c: Likewise.
987 * cpu-pdp11.c: Likewise.
988 * cpu-pj.c: Likewise.
989 * cpu-sh.c: Likewise.
990 * cpu-w65.c: Likewise.
991 * cpu-z8k.c: Likewise.
992 * dwarf1.c: Likewise.
993 * dwarf2.c: Likewise.
995 * ecofflink.c: Likewise.
996 * ecoffswap.h: Likewise.
997 * elf-bfd.h: Likewise.
998 * elf-hppa.h: Likewise.
999 * elf-m10200.c: Likewise.
1000 * elf-m10300.c: Likewise.
1002 * elf32-arc.c: Likewise.
1003 * elf32-arm.h: Likewise.
1004 * elf32-avr.c: Likewise.
1005 * elf32-cris.c: Likewise.
1006 * elf32-fr30.c: Likewise.
1007 * elf32-gen.c: Likewise.
1008 * elf32-h8300.c: Likewise.
1009 * elf32-hppa.c: Likewise.
1010 * elf32-i370.c: Likewise.
1011 * elf32-i386.c: Likewise.
1012 * elf32-i860.c: Likewise.
1013 * elf32-m32r.c: Likewise.
1014 * elf32-m68k.c: Likewise.
1015 * elf32-mcore.c: Likewise.
1016 * elf32-mips.c: Likewise.
1017 * elf32-openrisc.c: Likewise.
1018 * elf32-pj.c: Likewise.
1019 * elf32-ppc.c: Likewise.
1020 * elf32-s390.c: Likewise.
1021 * elf32-sh-lin.c: Likewise.
1022 * elf32-sh.c: Likewise.
1023 * elf32-sparc.c: Likewise.
1024 * elf32-v850.c: Likewise.
1025 * elf64-alpha.c: Likewise.
1026 * elf64-hppa.c: Likewise.
1027 * elf64-mips.c: Likewise.
1028 * elf64-ppc.c: Likewise.
1029 * elf64-s390.c: Likewise.
1030 * elf64-sparc.c: Likewise.
1031 * elf64-x86-64.c: Likewise.
1032 * elfarm-nabi.c: Likewise.
1033 * elfcode.h: Likewise.
1034 * elfcore.h: Likewise.
1035 * elflink.c: Likewise.
1036 * elflink.h: Likewise.
1037 * elfxx-ia64.c: Likewise.
1038 * elfxx-target.h: Likewise.
1039 * format.c: Likewise.
1041 * hp300hpux.c: Likewise.
1042 * hppabsd-core.c: Likewise.
1043 * hpux-core.c: Likewise.
1044 * i386aout.c: Likewise.
1045 * i386dynix.c: Likewise.
1046 * i386linux.c: Likewise.
1047 * i386lynx.c: Likewise.
1048 * i386mach3.c: Likewise.
1049 * i386msdos.c: Likewise.
1050 * i386os9k.c: Likewise.
1053 * irix-core.c: Likewise.
1054 * libaout.h: Likewise.
1055 * libbfd-in.h: Likewise.
1056 * libbfd.c: Likewise.
1057 * libcoff-in.h: Likewise.
1058 * libecoff.h: Likewise.
1059 * libieee.h: Likewise.
1060 * libnlm.h: Likewise.
1061 * libpei.h: Likewise.
1062 * libxcoff.h: Likewise.
1063 * linker.c: Likewise.
1064 * lynx-core.c: Likewise.
1065 * m68klinux.c: Likewise.
1066 * merge.c: Likewise.
1067 * mipsbsd.c: Likewise.
1068 * netbsd-core.c: Likewise.
1070 * nlm32-alpha.c: Likewise.
1071 * nlm32-i386.c: Likewise.
1072 * nlm32-ppc.c: Likewise.
1073 * nlm32-sparc.c: Likewise.
1074 * nlmcode.h: Likewise.
1075 * nlmswap.h: Likewise.
1076 * ns32k.h: Likewise.
1077 * oasys.c: Likewise.
1078 * opncls.c: Likewise.
1079 * osf-core.c: Likewise.
1080 * pc532-mach.c: Likewise.
1081 * pdp11.c: Likewise.
1082 * pe-mips.c: Likewise.
1083 * peXXigen.c: Likewise.
1084 * peicode.h: Likewise.
1085 * ppcboot.c: Likewise.
1086 * ptrace-core.c: Likewise.
1087 * reloc.c: Likewise.
1088 * reloc16.c: Likewise.
1089 * riscix.c: Likewise.
1090 * rs6000-core.c: Likewise.
1091 * sco5-core.c: Likewise.
1092 * section.c: Likewise.
1094 * sparclinux.c: Likewise.
1095 * sparclynx.c: Likewise.
1097 * stabs.c: Likewise.
1098 * sunos.c: Likewise.
1100 * targets.c: Likewise.
1101 * tekhex.c: Likewise.
1102 * trad-core.c: Likewise.
1103 * versados.c: Likewise.
1104 * vms-gsd.c: Likewise.
1105 * vms-hdr.c: Likewise.
1106 * vms-misc.c: Likewise.
1107 * vms-tir.c: Likewise.
1110 * xcofflink.c: Likewise.
1111 * bfd-in2.h: Regenerate.
1112 * libbfd.h: Regenerate.
1113 * libcoff.h: Regenerate.
1115 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1116 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1117 (ufile_ptr): Define.
1118 (bfd_tell): Return a ufile_ptr.
1119 * libbfd.c (bfd_tell): Likewise.
1120 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1122 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1123 * aoutf1.h: Likewise.
1125 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1126 larger than unsigned long can represent.
1128 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1129 size overflows size_t.
1130 (bfd_realloc): Likewise.
1131 (bfd_zmalloc): Likewise.
1132 * opncls.c (bfd_alloc): Likewise.
1133 (bfd_zalloc): Likewise.
1134 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1135 (bfd_alloc, bfd_zalloc): Update.
1137 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1139 (bfd_get_signed_8): Likewise.
1140 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1141 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1142 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1143 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1144 * libaout.h: Likewise define and use here.
1145 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1146 * aout-arm.c: Likewise.
1147 * aout-encap.c: Likewise.
1148 * aout-ns32k.c: Likewise.
1149 * aout-tic30.c: Likewise.
1150 * aoutf1.h: Likewise.
1151 * aoutx.h: Likewise.
1153 * coff-alpha.c: Likewise.
1154 * coff-h8300.c: Likewise.
1155 * coff-h8500.c: Likewise.
1156 * coff-i960.c: Likewise.
1157 * coff-ia64.c: Likewise.
1158 * coff-m88k.c: Likewise.
1159 * coff-mips.c: Likewise.
1160 * coff-ppc.c: Likewise.
1161 * coff-rs6000.c: Likewise.
1162 * coff-sh.c: Likewise.
1163 * coff-sparc.c: Likewise.
1164 * coff-stgo32.c: Likewise.
1165 * coff-tic30.c: Likewise.
1166 * coff-tic80.c: Likewise.
1167 * coff-w65.c: Likewise.
1168 * coff-z8k.c: Likewise.
1169 * coff64-rs6000.c: Likewise.
1170 * coffgen.c: Likewise.
1171 * cofflink.c: Likewise.
1172 * coffswap.h: Likewise.
1173 * ecoff.c: Likewise.
1174 * ecoffswap.h: Likewise.
1176 * elf32-mips.c: Likewise.
1177 * elf64-mips.c: Likewise.
1178 * hp300hpux.c: Likewise.
1179 * i386dynix.c: Likewise.
1180 * i386lynx.c: Likewise.
1181 * i386msdos.c: Likewise.
1182 * i386os9k.c: Likewise.
1183 * libpei.h: Likewise.
1184 * nlm32-alpha.c: Likewise.
1185 * nlm32-i386.c: Likewise.
1186 * nlm32-ppc.c: Likewise.
1187 * nlmcode.h: Likewise.
1188 * nlmswap.h: Likewise.
1189 * oasys.c: Likewise.
1190 * pdp11.c: Likewise.
1191 * pe-mips.c: Likewise.
1192 * peXXigen.c: Likewise.
1193 * peicode.h: Likewise.
1194 * riscix.c: Likewise.
1195 * sunos.c: Likewise.
1196 * xcofflink.c: Likewise.
1197 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1198 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1199 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1200 equivalent H_PUT_* macro instead.
1201 (GETWORD, GETHALF, GETBYTE): Similarly.
1202 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1203 (GETWORD, GETHALF, GETBYTE): Likewise.
1204 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1206 * bfd-in.h (struct orl): Change "pos" to a union.
1207 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1208 (bsd_write_armap): Here too.
1209 (coff_write_armap): And here.
1210 * coff-rs6000.c (xcoff_write_armap_old): And here.
1211 (xcoff_write_one_armap_big): And here.
1212 (xcoff_write_armap_big): And here.
1213 * ecoff.c (_bfd_ecoff_write_armap): And here.
1214 * elf64-mips.c (mips_elf64_write_armap): And here.
1216 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1217 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1218 * elf32-h8300.c (elf32_h8_mach): Likewise.
1219 * elf32-mips.c (elf_mips_mach): Likewise.
1220 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1222 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1224 (aix386_core_vec): Typo fix.
1226 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1227 etc. to avoid redefined macro warning.
1228 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1229 (MY(fix_pcrel_26)): Likewise.
1230 * aout-ns32k.c (MY(put_reloc)): Likewise.
1231 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1232 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1233 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1235 * aout-encap.c: Include "file", not <file> for binutils headers.
1236 (encap_object_p): Half baked attempt to fix compile errors in
1237 code dealing with "magic".
1239 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1240 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1241 bfd_vma's rather than longs.
1242 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1243 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1244 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1246 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1247 Use unsigned comparisons.
1248 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1249 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1250 (_bfd_do_ns32k_reloc_contents): Likewise.
1251 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1252 (_bfd_ns32k_get_immediate): Likewise.
1253 (_bfd_ns32k_put_displacement): Likewise.
1254 (_bfd_ns32k_put_immediate): Likewise.
1255 (bfd_reloc_status_type): Likewise.
1257 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1259 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1260 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1261 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1263 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1264 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1265 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1267 (_bfd_elfcore_strndup): Likewise for "dup".
1268 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1269 "name" to avoid shadowing.
1270 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1271 definition of "off".
1272 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1273 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1275 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1277 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1279 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1281 (elf_link_input_bfd): Likewise.
1282 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1283 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1284 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1286 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1287 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1288 (sunos_write_dynamic_symbol): Remove unused vars.
1289 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1290 innermost "directory_name" and "file_name" vars.
1291 * tekhex.c (first_phase): Rename local var "type" to "stype".
1292 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1293 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1294 doing comparison at caller.
1295 (vms_esecflag_by_name): Likewise.
1296 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1297 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1298 (xcoff_write_global_symbol): Rename "p" param to "inf".
1300 * cisco-core.c: Add missing prototypes.
1301 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1302 (cisco_core_file_failing_signal): Likewise.
1303 (cisco_core_file_matches_executable_p): Likewise.
1304 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1305 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1306 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1307 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1309 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1310 thumb_glue_size and arm_glue_size.
1311 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1313 * coff64-rs6000.c: Group prototypes together.
1315 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1316 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1318 * cpu-arc.c: Add missing prototypes.
1319 * cpu-h8500.c: Likewise.
1320 * cpu-i960.c: Likewise.
1321 * cpu-pj.c: Likewise.
1322 * cpu-sh.c: Likewise.
1323 * cpu-w65.c: Likewise.
1324 * cpu-z8k.c: Likewise.
1325 * elf32-fr30.c: Likewise.
1326 * elf32-h8300.c: Likewise.
1327 * elf32-i370.c: Likewise.
1328 * hpux-core.c: Likewise.
1329 * versados.c: Likewise.
1331 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1332 * cpu-h8500.c: Likewise.
1333 * cpu-i960.c: Likewise.
1334 * cpu-z8k.c: Likewise.
1336 * cpu-ia64-opc.c: Correct comment.
1338 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1340 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1342 (bfd_elf32_write_out_phdrs): Likewise.
1343 (bfd_elf64_write_out_phdrs): Likewise.
1344 (elf_linker_section_pointers): Change addend to bfd_vma.
1345 (_bfd_elf_find_pointer_linker_section): Likewise.
1346 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1347 filepos to unsigned file_ptr.
1348 (_bfd_elfcore_strndup): Change max param to size_t.
1349 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1350 (_bfd_elfcore_strndup): Likewise.
1351 (_bfd_elf_find_pointer_linker_section): Likewise.
1353 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1354 insn and sym_value to ints.
1356 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1358 (elfcore_read_notes): Likewise.
1360 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1361 param from unsigned char to int.
1362 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1363 for info_to_howto call.
1364 (add_dynamic_entry): Define macro.
1365 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1367 * elf32-cris.c (add_dynamic_entry): Define macro.
1368 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1370 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1371 (elf32_h8_object_p): Likewise.
1372 (elf32_h8_merge_private_bfd_data): Likewise.
1373 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1375 * elf32-hppa.c (add_dynamic_entry): Define macro.
1376 (elf32_hppa_size_dynamic_sections): Use it.
1377 * elf32-i370.c (add_dynamic_entry): Define macro.
1378 (i370_elf_size_dynamic_sections): Use it.
1379 (i370_noop): Make static.
1380 * elf32-i386.c (add_dynamic_entry): Define macro.
1381 (elf_i386_size_dynamic_sections): Use it.
1382 * elf32-m68k.c (add_dynamic_entry): Define macro.
1383 (elf_m68k_size_dynamic_sections): Use it.
1384 * elf32-ppc.c (add_dynamic_entry): Define macro.
1385 (ppc_elf_size_dynamic_sections): Use it.
1386 * elf32-s390.c (add_dynamic_entry): Define macro.
1387 (elf_s390_size_dynamic_sections): Use it.
1388 * elf64-alpha.c (add_dynamic_entry): Define macro.
1389 (elf64_alpha_size_dynamic_sections): Use it.
1390 * elf64-hppa.c (add_dynamic_entry): Define macro.
1391 (elf64_hppa_size_dynamic_sections): Use it.
1392 * elf64-ppc.c (add_dynamic_entry): Define macro.
1393 (ppc64_elf_size_dynamic_sections): Use it.
1394 * elf64-s390.c (add_dynamic_entry): Define macro.
1395 (elf_s390_size_dynamic_sections): Use it.
1396 * elf64-sparc.c (add_dynamic_entry): Define macro.
1397 (sparc64_elf_size_dynamic_sections): Use it.
1398 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1399 (elf64_x86_64_size_dynamic_sections): Use it.
1400 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1401 (elfNN_ia64_size_dynamic_sections): Use it.
1403 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1404 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1406 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1407 false if the first malloc fails rather than going via error_return.
1409 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1411 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1413 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1415 * elfxx-ia64.c (global_sym_index): Return a long.
1417 * ieee.c (get_symbol): Use int rather than char param.
1418 (ieee_slurp_sections): Move "section" var to inner blocks.
1419 (copy_expression): Don't init "value" to zero or worry about
1420 clearing to zero after using.
1421 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1424 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1427 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1428 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1430 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1432 * pc532-mach.c (MYNSX): Delete.
1433 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1434 (write_object_contents): Correct prototype.
1436 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1437 than unsigned short.
1439 * section.c (bfd_set_section_contents): Remove redundant
1440 "offset < 0" test. Check that "count" doesn't overflow size_t.
1441 (bfd_get_section_contents): Likewise.
1443 * som.c (som_fixup_formats): Add missing braces.
1444 (som_reloc_addend): Pass a bfd_vma for "addend".
1446 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1447 (srec_write_symbols): Remove an unnecessary var.
1449 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1451 * configure.in: Sort to match. Bump version number.
1452 * configure: Regenerate.
1454 * tekhex.c (move_section_contents): Assert offset == 0.
1456 * versados.c (new_symbol_string): Constify arg.
1457 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1458 (versados_get_symbol_info): Make static.
1459 (versados_print_symbol): Likewise.
1460 (versados_get_reloc_upper_bound): Likewise.
1461 (versados_canonicalize_reloc): Likewise.
1463 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1465 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1467 2001-09-17 H.J. Lu <hjl@gnu.org>
1469 * dwarf1.c (parse_die): Take a new arg for the end of the
1470 section. Return false if die is beyond the section.
1471 (parse_functions_in_unit): Pass the end of the section to
1473 (_bfd_dwarf1_find_nearest_line): Likewise.
1475 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1477 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1478 just like R_SPARC_32.
1480 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1482 * configure.bfd: Add arm-openbsd target.
1484 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1486 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1487 Add support for mips64.
1489 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1491 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1493 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1495 * elf.c (prep_headers): Get the machine code from the elf
1497 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1498 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1499 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1500 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1501 * elf-arc.c (arc_elf_final_write_processing): Don't override
1502 e_machine, it's now properly set in prep_headers.
1503 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1505 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1506 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1507 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1508 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1509 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1510 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1511 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1512 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1513 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1514 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1515 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1516 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1518 2001-09-11 Richard Henderson <rth@redhat.com>
1520 * elf64-alpha.c (elf64_alpha_section_flags): New.
1521 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1523 2001-09-11 Richard Henderson <rth@redhat.com>
1525 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1526 apply HINT relocations against dynamic symbols.
1528 2001-09-11 H.J. Lu <hjl@gnu.org>
1530 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1532 2001-09-09 Richard Henderson <rth@redhat.com>
1534 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1536 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1537 following a call to a near function.
1539 2001-09-08 Richard Henderson <rth@redhat.com>
1541 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1542 relocation errors. Fail gp-relative relocations against
1545 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1547 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1548 as well as DEF_DYNAMIC in test for avoided copy relocs.
1549 (allocate_plt_and_got_and_discard_relocs): Likewise.
1550 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1551 (allocate_plt_and_got_and_discard_relocs): Likewise.
1553 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1555 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1558 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1560 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1562 (mips_elf64_howto_table_rel): Likewise.
1564 2001-09-05 Tom Rix <trix@redhat.com>
1566 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1567 and syscall symbols.
1568 (write_global_symbol) : Same.
1569 (bfd_xcoff_export_symbol): Remove unused syscall param.
1570 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1571 bfd_xcoff_import_symbol.
1573 * bfd-in2.h : Regenerate.
1575 2001-09-04 Richard Henderson <rth@redhat.com>
1577 * elf64-alpha.c (SKIP_HOWTO): New.
1578 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1579 Fix sizes of 16-bit mem format relocs.
1580 (elf64_alpha_reloc_map): Update to match.
1581 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1582 (elf64_alpha_relax_without_lituse): Likewise.
1583 (elf64_alpha_check_relocs): Handle GPREL16.
1584 (elf64_alpha_relocate_section): Likewise.
1585 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1586 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1587 * bfd-in2.h, libbfd.h: Rebuild.
1589 2001-09-04 Jeff Law <law@redhat.com>
1591 * elf32-h8300.c (elf32_h8_relax_section): New function.
1592 (elf32_h8_relax_delete_bytes): Likewise.
1593 (elf32_h8_symbol_address_p): Likewise.
1594 (elf32_h8_get_relocated_section_contents): Likewise.
1595 (bfd_elf32_bfd_relax_section): Define.
1596 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1598 * elf32-h8300.c (special): New function.
1599 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1601 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1602 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1603 Fix minor problems with 8bit and 16bit PC relative relocations.
1605 2001-09-01 Andreas Jaeger <aj@suse.de>
1607 * vms-tir.c: Add missing prototypes.
1608 * vms-hdr.c: Likewise.
1609 * vms-gsd.c: Likewise.
1610 * vms-misc.c: Likewise.
1612 2001-08-31 H.J. Lu <hjl@gnu.org>
1614 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1615 with bad relocation.
1617 2001-08-31 Eric Christopher <echristo@redhat.com>
1618 Jason Eckhardt <jle@redhat.com>
1620 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1621 mips32_4k and mips64.
1622 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1623 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1624 * bfd/cpu-mips.c: Ditto.
1625 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1626 * bfd/bfd-in2.h: Regenerate.
1628 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1630 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1631 value into R_ALPHA_RELATIVE's addend.
1632 (elf64_alpha_finish_dynamic_symbol): Likewise.
1634 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1636 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1637 recomputed addend during relocatable link if not USE_REL.
1639 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1642 2001-08-30 H.J. Lu <hjl@gnu.org>
1644 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1646 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1647 relocations for weak definitions.
1649 2001-08-30 H.J. Lu <hjl@gnu.org>
1651 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1652 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1653 * Makefile.in: Rebuild.
1655 2001-08-30 H.J. Lu <hjl@gnu.org>
1657 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1658 dynamic relocation for undefined weak symbols when creating
1659 executables. Check h->root.root.type, instead of h->root.type.
1661 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1663 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1664 default from coff to elf.
1666 2001-08-29 Jeff Law <law@redhat.com>
1668 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1670 (h8_reloc_map): Similarly.
1671 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1672 Add support for PC relative relocations.
1674 * elf32-h8300.c: Put all prototypes together.
1675 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1676 (elf32_h8_final_link_relocate): New function for linker.
1677 (elf32_h8_relocate_section): Similarly.
1678 (elf_backend_relocate_section): Define.
1680 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1681 (h8300_scan): Handle architecture:machine encodings typically
1682 found in linker scripts.
1683 * elf.c (prep_headers): Do not try to do H8 machine recognition
1685 * elf32-h8300.c: Add some missing prototypes.
1686 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1687 (elf32_h8_object_p): Similarly.
1689 2001-08-29 Tom Rix <trix@redhat.com>
1691 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1692 does not follow a XTY_SD.
1694 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1696 * targmatch.sed: Delete case statements.
1697 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1700 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1702 * Makefile.am (elf32-h8300.lo): New target.
1703 * config.bfd (h8300*-*-elf): New case.
1704 * configure.in (bfd_elf32_h8300_vec): New case.
1705 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1706 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1707 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1708 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1709 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1710 * elf32-h8300.c: New file.
1711 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1713 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1715 * sparclynx.c: Add missing prototypes.
1716 * coff-mcore.c: Add missing prototypes.
1717 * elf32-pj.c: Add missing prototypes.
1718 * nlm32-sparc.c: Add missing prototypes.
1719 * oasys.c: Add missing prototypes.
1720 * pdp11.c: Add missing prototypes.
1721 * pe-mips.c: Add missing prototypes.
1722 * riscix.c: Add missing prototypes.
1724 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1726 * elf32-i386.c: Add missing prototypes.
1727 * elf32-ppc.c: Likewise.
1728 * elf32-sh-lin.c: Likewise.
1729 * elfarm-nabi.c: Likewise.
1731 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1733 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1734 (elf_i386_grok_psinfo): New function.
1735 (elf_backend_grok_prstatus): Define.
1736 (elf_backend_grok_psinfo): Likewise.
1737 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1738 (ppc_elf_grok_psinfo): New function.
1739 (elf_backend_grok_prstatus): Define.
1740 (elf_backend_grok_psinfo): Likewise.
1741 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1742 (elf32_shlin_grok_psinfo): New function.
1743 (elf_backend_grok_prstatus): Define.
1744 (elf_backend_grok_psinfo): Likewise.
1745 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1746 (elf32_arm_nabi_grok_psinfo): New function.
1747 (elf_backend_grok_prstatus): Define.
1748 (elf_backend_grok_psinfo): Likewise.
1750 2001-08-27 H.J. Lu <hjl@gnu.org>
1752 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1754 (mips_elf_calculate_relocation): Create dynamic relocation for
1755 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1758 2001-08-27 H.J. Lu <hjl@gnu.org>
1760 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1761 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1762 (_bfd_elf32_mips_grok_prstatus): Likewise.
1763 (_bfd_elf32_mips_grok_psinfo): Likewise.
1764 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1765 `struct mips_elf_link_hash_entry *'.
1766 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1768 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1770 * mipsbsd.c: Add missing prototypes.
1771 * hp300hpux.c: Add missing prototypes.
1772 * i386aout.c: Add missing prototypes.
1773 * i386lynx.c: Add missing prototypes.
1774 * i386mach3.c: Add missing prototypes.
1775 * i386msdos.c: Add missing prototypes.
1776 * i386os9k.c: Add missing prototypes.
1778 2001-08-27 Linus Nordberg <linus@swox.se>
1779 Torbjorn Granlund <tege@swox.com>
1780 Staffan Ulfberg <staffanu@swox.se>
1781 Alan Modra <amodra@bigpond.net.au>
1783 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1784 targ64_selvecs for 32 bit powerpc targets.
1785 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1786 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1788 * Makefile.in: Regenerate.
1789 * configure.in: Add elf64_powerpc vecs.
1790 * configure: Regenerate.
1791 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1792 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1793 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1794 * elf64-ppc.c: New file.
1795 * reloc.c: Add powerpc64 relocs.
1796 * libbfd.h: Regenerate.
1797 * bfd-in2.h: Regenerate.
1799 2001-08-27 Andreas Schwab <schwab@suse.de>
1801 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1802 reloc is against read-only section.
1803 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1804 looking up section names for DT_TEXTREL.
1805 (elf32_m68k_reloc_type_class): New function.
1806 (elf_backend_reloc_type_class): Define.
1808 2001-08-27 Andreas Jaeger <aj@suse.de>
1810 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1811 reloc is against read-only section.
1812 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1813 looking up section names for DT_TEXTREL.
1814 (elf_s390_reloc_type_class): New.
1815 (elf_backend_reloc_type_class): Define.
1817 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1818 reloc is against read-only section.
1819 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1820 looking up section names for DT_TEXTREL.
1821 (elf_s390_reloc_type_class): New.
1822 (elf_backend_reloc_type_class): Define.
1824 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1825 is against read-only section.
1826 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1827 looking up section names for DT_TEXTREL.
1828 (ppc_elf_reloc_type_class): New.
1829 (elf_backend_reloc_type_class): Define.
1831 2001-08-26 Andreas Jaeger <aj@suse.de>
1833 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1834 reloc is against read-only section.
1835 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1836 looking up section names for DT_TEXTREL.
1837 (elf_cris_reloc_type_class): New.
1838 (elf_backend_reloc_type_class): Define.
1840 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1841 against read-only section.
1842 (elf_backend_reloc_type_class): Define.
1843 (sh_elf_reloc_type_class): New.
1844 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1845 looking up section names for DT_TEXTREL.
1847 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1848 reloc is against read-only section.
1849 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1850 looking up section names for DT_TEXTREL.
1851 (elf32_arm_reloc_type_class): New.
1852 (elf_backend_reloc_type_class): Define.
1854 2001-08-25 Andreas Jaeger <aj@suse.de>
1856 * oasys.c: Add missing prototypes.
1858 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1859 attribute for parameter.
1860 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1862 * versados.c (get_4): Make static.
1863 (get_10): Make static.
1864 Add missing prototypes.
1865 (process_esd): Fix call to versados_new_symbol.
1867 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1869 * coff-a29k.c: Add missing prototypes.
1870 * coff-apollo.c: Add missing prototypes.
1871 * coff-arm.c: Add missing prototypes.
1872 * coff-i860.c: Add missing prototypes.
1873 * coff-rs6000.c: Add missing prototypes.
1874 * coff-tic80.c: Add missing prototypes.
1875 * elf-m10200.c: Add missing prototypes.
1876 * elf-m10300.c: Add missing prototypes.
1877 * elf32-arm.h: Add missing prototypes.
1878 * elf32-d10v.c: Add missing prototypes.
1879 * elf32-m32r.c: Add missing prototypes.
1880 * elf32-mcore.c: Add missing prototypes.
1881 * elf32-openrisc.c: Add missing prototypes.
1882 * elf32-sh.c: Add missing prototypes.
1883 * elf32-sparc.c: Add missing prototypes.
1884 * elf32-v850.c: Add missing prototypes.
1885 * elfarm-nabi.c: Add missing prototypes.
1886 * elfarm-oabi.c: Add missing prototypes.
1888 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1890 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1891 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1893 2001-08-24 H.J. Lu <hjl@gnu.org>
1895 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1898 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1900 * elf-bfd.h (elf_hash_table): Revert definition.
1901 (is_elf_hash_table): New macro.
1902 * elflink.h (elf_link_add_object_symbols): Test
1903 is_elf_hash_table before accessing ELF only fields in hash
1905 (elf_link_create_dynamic_sections): Fail if not using an ELF
1907 (elf_add_dynamic_entry): Fail if not using an ELF hash
1909 (elf_link_record_local_dynamic_symbol): Fail if not using an
1911 (size_dynamic_sections): Fail if not using an ELF hash
1913 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1915 (elf_bfd_final_link): Fail if not using an ELF hash
1918 2001-08-24 H.J. Lu <hjl@gnu.org>
1920 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1921 table is not an ELF linker hash table.
1923 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1924 table type to bfd_link_elf_hash_table.
1926 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1929 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1930 table type to bfd_link_generic_hash_table.
1932 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1934 * bfd.c (bfd_alt_mach_code): New function.
1935 * bfd-in2.h: Rebuilt.
1937 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1939 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1940 `type' field in the hash entry when deciding whether to follow a
1943 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1945 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1947 (elf_link_sort_relocs): Adjust accordingly.
1949 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1950 (elf64_alpha_check_relocs): Set it if section this reloc is against
1951 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1953 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1954 is is against read-only section.
1955 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1956 check section names.
1957 (elf64_alpha_reloc_type_class): New.
1958 (elf_backend_reloc_type_class): Define.
1960 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1962 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1965 2001-08-23 Andreas Jaeger <aj@suse.de>
1967 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1968 the reloc is against read-only section.
1969 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1970 of looking up section names for DT_TEXTREL.
1971 (elf64_x86_64_reloc_type_class): New.
1972 (elf_backend_reloc_type_class): Define.
1974 2001-08-23 H.J. Lu <hjl@gnu.org>
1976 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1977 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1979 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1980 bfd_print_symbol_vandf.
1981 * coffgen.c (coff_print_symbol): Likewise.
1982 * elf.c (bfd_elf_print_symbol): Likewise.
1983 * ieee.c (ieee_print_symbol): Likewise.
1984 * nlmcode.h (nlm_print_symbol): Likewise.
1985 * oasys.c (oasys_print_symbol): Likewise.
1986 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1987 * som.c (som_print_symbol): Likewise.
1988 * srec.c (srec_print_symbol): Likewise.
1989 * tekhex.c (tekhex_print_symbol): Likewise.
1990 * versados.c (versados_print_symbol): Likewise.
1991 * vms.c (vms_print_symbol): Likewise.
1993 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1994 with bfd_fprintf_vma.
1995 (bfd_elf_print_symbol): Likewise.
1996 * syms.c (bfd_print_symbol_vandf): Likewise.
1998 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2000 * aoutf1.h (sunos_write_object_contents): Silence compile time
2002 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2004 * bout.c: Add missing function prototypes. Fix formatting.
2005 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2006 * coff-w65.c: Add missing function prototypes. Fix formatting.
2007 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2008 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2009 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2010 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2011 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2012 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2013 * coff-sh.c: Add missing function prototypes. Fix formatting.
2015 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2017 * elf-bfd.h (enum elf_reloc_type_class): New.
2018 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2019 (_bfd_elf_reloc_type_class): New.
2020 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2021 (elfNN_bed): Add elf_backend_reloc_type_class.
2022 * elf.c (_bfd_elf_reloc_type_class): New.
2023 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2024 is against read-only section.
2025 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2026 looking up section names for DT_TEXTREL.
2027 (elf_i386_reloc_type_class): New.
2028 (elf_backend_reloc_type_class): Define.
2029 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2030 reloc is against read-only section.
2031 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2032 looking up section names for DT_TEXTREL.
2033 (elf32_sparc_reloc_type_class): New.
2034 (elf_backend_reloc_type_class): Define.
2035 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2036 reloc is against read-only section.
2037 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2038 looking up section names for DT_TEXTREL.
2039 (sparc64_elf_reloc_type_class): New.
2040 (elf_backend_reloc_type_class): Define.
2041 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2042 (elfNN_ia64_hash_table_create): Clear ia64_info.
2043 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2045 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2046 instead of looking up section names for DT_TEXTREL.
2047 (elfNN_ia64_reloc_type_class): New.
2048 (elf_backend_reloc_type_class): Define.
2049 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2050 (struct elf_link_sort_rela): New.
2051 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2052 (elf_bfd_final_link): Call elf_link_sort_relocs.
2053 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2056 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2058 * configure.in (x86-bsdi): No corefile support.
2059 * configure: Regenerate.
2061 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2063 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2066 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2068 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2069 the alignment of dwarf2 linkonce sections to 0.
2070 * coff-sto32.c: Likewise.
2072 2001-08-20 Andreas Jaeger <aj@suse.de>
2074 * coff-sparc.c: Add missing prototypes.
2075 * elf32-s390.c: Likewise.
2076 * elf32-i960.c: Likewise.
2077 * aout-target.h: Likewise.
2079 2001-08-20 H.J. Lu <hjl@gnu.org>
2081 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2082 (elf_num_section_syms): New for num_section_syms.
2084 * elf.c (elf_map_symbols): Set num_section_syms.
2085 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2086 the section symbol index.
2088 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2090 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2091 select the generic has table creator. All elf backends need elf
2092 specific fields in the hash table.
2094 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2096 * archive.c (offsetof): Remove define.
2099 * sysdep.h (offsetof): Define.
2101 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2103 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2104 (bfd_set_gp_size): Make param unsigned.
2105 * bfd-in2.h: Regenerate.
2106 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2107 than calling bfd_get_gp_size.
2108 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2109 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2111 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2113 * linker.c (default_fill_link_order): Handle four byte fill value.
2115 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2117 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2119 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2121 * elf64-mips.c (UNUSED_RELOC): Define.
2122 (mips_elf64_howto_table_rel): Use it.
2123 (mips_elf64_howto_table_rela): Here too.
2124 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2126 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2128 * coffgen.c (coff_print_symbol): Fix warnings.
2129 (coff_find_nearest_line): Likewise.
2130 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2131 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2132 * format.c (bfd_check_format_matches): Likewise.
2133 (bfd_set_format): Likewise.
2134 * coff-ia64.c: Add missing prototypes.
2135 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2136 signed to silence warnings.
2137 (elf64_alpha_relocate_section): Likewise.
2138 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2139 (elf64_alpha_add_symbol_hook): Likewise.
2140 (elf64_alpha_final_link): Likewise.
2141 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2142 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2143 (elf64_alpha_size_got_sections): Likewise.
2144 * elfxx-ia64.c: Add missing prototypes.
2145 (elfNN_ia64_relocate_section): Fix warning.
2146 (elfNN_ia64_unwind_entry_compare): Make params const.
2148 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2150 * config.bfd (targ64_selvecs): New.
2151 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2153 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2154 (BFD_DEFAULT_TARGET_SIZE): New.
2155 (BFD_ARCH_SIZE): Comment.
2156 * configure.in (target_size): New. Set instead of target64 in
2157 selvecs case statement. Set target64 from it.
2158 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2159 * bfd-in2.h: Regenerate.
2160 * configure: Regenerate.
2162 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2164 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2165 (bfd_errmsgs): Add corresponding message.
2166 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2167 finding an archive that contains different format object files.
2168 Return bfd_error_wrong_object_format for this case.
2169 * format.c: Formatting fixes. s/CONST/const/.
2170 (bfd_check_format_matches): Accept archives that give
2171 bfd_error_wrong_object_format if no full match is found. Tidy
2172 code handling matching_vector. Don't return a pointer to freed
2173 memory in `matching'. Handle ambiguous matches as for partial
2175 * bfd-in2.h: Regenerate.
2177 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2179 * libieee.h (common_header_type): Add last_byte field.
2181 * ieee.c: Add missing prototypes. Some format fixes.
2182 (struct output_buffer_struct): Move for availability to prototypes.
2183 (ieee_part_after): New function.
2184 (ieee_slurp_debug): Use it here.
2185 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2186 ieee_part_after to set last_byte to one past end of current part.
2188 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2190 (parse_expression): Don't go beyond the end of the current part.
2191 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2192 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2193 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2194 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2195 ieee_set_section_contents, ieee_write_object_contents,
2196 ieee_make_empty_symbol): Make static.
2197 (ieee_archive_p): Correct comments regarding bfd_read.
2198 (ieee_object_p): Similarly.
2199 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2200 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2201 input_bfd, output_bfd, output_buffer.
2202 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2203 do_with_relocs, ie. as a symbol for relocatable files.
2204 (ieee_vec): Add comments showing functions referenced by macros.
2206 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2208 * aout-tic30.c: Add missing prototypes. Fix formatting.
2209 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2210 * peXXigen.c: Add missining prototypes. Fix formatting.
2211 * aout-adobe.c: Add missining prototypes. Fix formatting.
2213 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2215 * elf32-v850.c: Add missing function prototypes.
2216 Fix some formatting.
2218 * cpu-v850.c: Add missing function prototype.
2219 Fix some formatting.
2221 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2223 * elf-bfd.h (struct elf_backend_data): Add new fields
2224 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2225 (bfd_elf_sprintf_vma): Rename function prototype to
2226 '_bfd_elf_sprintf_vma'.
2227 (bfd_elf_fprintf_vma): Rename function prototype to
2228 '_bfd_elf_fprintf_vma'.
2229 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2230 directly, instead indirect via the elf_backend_data structure.
2231 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2232 instead indirect via the elf_backend_data structure.
2233 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2234 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2235 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2237 (elf_backend_fprintf_vma): Initialise if not already defined.
2238 (struct elf_backend_data): Initialise the
2239 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2241 2001-08-10 Andreas Jaeger <aj@suse.de>
2243 * elf64-sparc.c: Add missing prototypes.
2244 * elf32-cris.c: Likewise.
2245 * elf32-i370.c: Likewise.
2246 * elf64-hppa.c: Likewise.
2247 * elf64-s390.c: Likewise.
2249 2001-08-10 Andreas Jaeger <aj@suse.de>
2251 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2252 Add prototypes where needed.
2254 2001-08-10 H.J. Lu <hjl@gnu.org>
2256 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2257 (bfd_fprintf_vma): Likewise.
2259 2001-08-10 H.J. Lu <hjl@gnu.org>
2261 * bfd.c (bfd_sprintf_vma): Don't return void.
2262 (bfd_fprintf_vma): Likewise.
2264 2001-08-10 Andreas Jaeger <aj@suse.de>
2266 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2268 * configure: Regenerate.
2270 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2272 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2273 warning if not BFD64. Add braces so emacs auto format works.
2274 (bfd_elf_fprintf_vma): Likewise.
2276 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2278 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2279 param to agree with libxcoff.h.
2280 (xcoff_swap_ldhdr_out): Likewise.
2281 (xcoff_swap_ldsym_in): Likewise.
2282 (xcoff_swap_ldsym_out): Likewise.
2283 (xcoff_swap_ldrel_in): Likewise.
2284 (xcoff_swap_ldrel_out): Likewise.
2285 (xcoff_create_csect_from_smclas): Likewise.
2286 * coff64-rs6000.c: Add missing prototypes.
2287 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2289 (xcoff64_swap_ldhdr_out): Likewise.
2290 (xcoff64_swap_ldsym_in): Likewise.
2291 (xcoff64_swap_ldsym_out): Likewise.
2292 (xcoff64_swap_ldrel_in): Likewise.
2293 (xcoff64_swap_ldrel_out): Likewise.
2294 (xcoff64_ppc_relocate_section): Make static.
2295 (xcoff64_slurp_armap): Likewise.
2296 (xcoff64_archive_p): Likewise.
2297 (xcoff64_openr_next_archived_file): Likewise.
2298 (xcoff64_sizeof_headers): Likewise.
2299 (xcoff64_is_lineno_count_overflow): Likewise.
2300 (xcoff64_is_reloc_count_overflow): Likewise.
2301 (xcoff64_loader_symbol_offset): Likewise.
2302 (xcoff64_loader_reloc_offset): Likewise.
2303 * elf64-gen.c: Add missing prototypes.
2305 2001-08-09 H.J. Lu <hjl@gnu.org>
2307 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2308 (bfd_elf_fprintf_vma): Likewise.
2310 2001-08-09 H.J. Lu <hjl@gnu.org>
2312 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2315 * bfd-in2.h: Regenerated.
2317 2001-08-09 H.J. Lu <hjl@gnu.org>
2319 * bfd-in.h (bfd_sprintf_vma): New prototype.
2320 (bfd_fprintf_vma): Likewise.
2321 (bfd_elf_sprintf_vma): Likewise.
2322 (bfd_elf_fprintf_vma): Likewise.
2323 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2324 * bfd-in2.h: Regenerated.
2326 * bfd.c (bfd_sprintf_vma): New. Defined.
2327 (bfd_fprintf_vma): Likewise.
2329 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2330 (bfd_elf_fprintf_vma): Likewise.
2332 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2334 * coff-rs6000.c: Add missing prototypes.
2335 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2336 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2337 xcoff_loader_reloc_offset): Make static.
2338 * dwarf1.c: Add missing prototypes.
2339 * dwarf2.c: Add missing prototypes.
2340 (struct abbrev_info): Move definition.
2341 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2342 * elf.c: Add missing prototypes.
2343 * elf32-gen.c: Likewise.
2344 * elf32-i386.c: Likewise.
2345 * elf32-ppc.c: Likewise.
2346 (ppc_elf_sort_rela): Use PTR instead of "void *".
2347 * elflink.h: Add missing prototypes. Formatting fixes.
2348 * merge.c: Add missing prototypes.
2349 (last4_eq): Use PTR instead of "void *".
2350 (last_eq): Likewise.
2351 * syms.c: Add missing prototypes.
2353 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2355 * bfd.c: Fix formatting.
2356 * bfd-in2.h: Regenerate.
2358 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2360 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2361 true (this target uses REL relocations) and 'pcrel_offset' to
2362 false (the PC is implied, not stored in the offset).
2364 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2366 1999-10-19 Linus Nordberg <linus@swox.se>
2367 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2368 * elfxx-target.h (elf_backend_want_got_sym): Define.
2369 (elfNN_bed): Add elf_backend_want_got_sym.
2370 * elflink.c (_bfd_elf_create_got_section): Define
2371 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2373 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2375 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2376 (find_rela_addend): New function.
2377 (parse_comp_unit): Call it to find the abbrev offset addend.
2378 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2379 members of dwarf2_debug as debugging information is read.
2381 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2383 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2384 targets as well as sh-pe.
2386 2001-08-03 Ben Harris <bjh21@netbsd.org>
2388 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2389 reloc from start of section when computing value for R_ARM_REL32
2392 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2394 From H.J. Lu <hjl@gnu.org>
2395 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2396 keep relocs for undefined syms if there are no dynamic sections in
2398 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2400 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2402 * cofflink.c (coff_link_check_ar_symbols): also search for
2403 __imp__symbol as well as _symbol.
2404 * linker.c (_bfd_generic_link_add_archive_symbols): also
2405 search for __imp__symbol as well as _symbol.
2407 2001-08-01 Adam Nemet <anemet@lnxw.com>
2409 * elf.c (elf_sort_sections): Return zero only as the last step.
2411 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2413 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2415 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2416 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2419 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2421 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2422 to match corresponding bfd_coff_backend data member.
2424 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2426 * Makefile.am: Update dependencies with "make dep-am".
2427 * Makefile.in: Regenerate
2429 2001-07-15 H.J. Lu <hjl@gnu.org>
2431 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2432 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2433 * Makefile.in: Regenerate.
2435 2001-07-11 H.J. Lu <hjl@gnu.org>
2437 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2438 flags when creating the reloc section if the ALLOC flag in the
2439 source section is set.
2441 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2443 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2444 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2445 * bfd-in2.h: Regenerate.
2446 * libbfd.h: Regenerate.
2447 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2449 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2450 (elfNN_ia64_check_relocs): Likewise.
2451 (elfNN_ia64_install_value): Likewise.
2452 (elfNN_ia64_relocate_section): Likewise.
2454 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2456 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2458 (elf32_sparc_check_relocs): Likewise.
2459 Only create .rela section for alloced sections in shared libraries.
2460 (elf32_sparc_relocate_section): Likewise.
2461 Remove redundant check.
2462 Optimize unaligned reloc usage.
2463 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2466 2001-07-11 H.J. Lu <hjl@gnu.org>
2468 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2469 ALLOC|LOAD flags as the source section for debugging sections
2470 when creating the reloc section.
2472 2001-07-05 Jim Wilson <wilson@redhat.com>
2474 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2475 the section of the bigger symbol.
2477 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2479 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2481 * peicode.h (coff_swap_scnhdr_in): For sections containing
2482 uninitialised data, only set their size to s_paddr if this does
2483 not reset their size to zero. MS's latest compilers will set
2486 2001-07-04 H.J. Lu <hjl@gnu.org>
2488 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2489 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2492 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2494 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2496 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2497 sections being discarded.
2499 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2501 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2502 instead of _bfd_elfcore_section_from_phdr.
2503 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2504 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2505 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2506 (elfcore_grok_prstatus): Likewise.
2507 (elfcore_grok_lwpstatus): Likewise.
2508 (bfd_get_elf_phdr_upper_bound): Likewise.
2509 (elfcore_make_note_pseudosection): Formatting.
2510 (_bfd_elfcore_strndup): Formatting.
2511 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2512 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2514 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2516 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2517 and _bfd_elfcore_strndup.
2518 (struct elf_backend_data): Add elf_backend_grok_prstatus
2519 and elf_backend_grok_psinfo.
2520 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2521 (elfcore_grok_prstatus): Use it.
2522 (elfcore_make_note_pseudosection): Likewise.
2523 (elfcore_strndup): Rename to...
2524 (_bfd_elfcore_strndup): Here, and make global.
2525 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2526 (elfcore_grok_note): Call elf_backend_grok_prstatus
2527 and elf_backend_grok_psinfo if available.
2528 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2529 (_bfd_elf32_mips_grok_psinfo): New function.
2530 (elf_backend_grok_prstatus): Define.
2531 (elf_backend_grok_psinfo): Define.
2532 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2533 (elf_backend_grok_psinfo): Likewise.
2534 (elfNN_bed): Include elf_backend_grok_prstatus and
2535 elf_backend_grok_psinfo.
2537 2001-06-29 H.J. Lu <hjl@gnu.org>
2539 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2540 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2541 is NULL before filling PLT.
2543 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2545 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2547 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2549 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2551 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2552 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2555 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2556 (IS_ABSOLUTE_RELOC): Define.
2557 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2558 (hppa_link_hash_newfunc): Always init it.
2559 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2560 create COPY relocs only when the reloc is in a read-only section.
2561 Instead, allocate space for a dynamic reloc to reference the
2562 library symbol directly. Keep track of space we allocate using
2564 (hppa_discard_copies): Delete, and move code to..
2565 (allocate_plt_and_got): ..here. Rename to
2566 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2567 relocs for non-shared link.
2568 (elf32_hppa_size_dynamic_sections): Update calls to above.
2569 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2570 in lieu of COPY relocs.
2572 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2574 (elf_i386_adjust_dynamic_symbol): ..nor here..
2575 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2577 (elf_i386_size_dynamic_sections): Fix a comment.
2578 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2579 involved in writing reloc out.
2581 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2583 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2584 Ensure syms are dynamic if we might be emitting a reloc.
2585 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2586 for undefweak or undefined syms..
2587 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2589 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2590 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2591 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2592 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2594 2001-06-24 H.J. Lu <hjl@gnu.org>
2596 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2597 strncasecmp/strcasecmp instead of strncmp/strcmp.
2599 2001-06-23 H.J. Lu <hjl@gnu.org>
2601 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2602 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2603 in the regular object file and treat the weak definition as
2606 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2608 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2609 unresolved_reloc test to exclude cases where we use "relocation"
2610 before setting it to point into the .got. Reinstate fudge for
2611 unresolved relocs in debugging sections.
2613 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2614 complicated tests for unresolvable relocs with a simple direct
2615 scheme using "unresolved_reloc" var.
2617 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2618 elf_i386_dyn_relocs. Update comment.
2619 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2621 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2623 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2625 (elf_i386_size_dynamic_sections): Likewise.
2626 (elf_i386_finish_dynamic_symbol): Likewise.
2627 (elf_i386_finish_dynamic_sections): Likewise.
2628 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2631 Avoid creating COPY relocs if possible.
2632 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2633 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2634 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2635 reloc is in a read-only section. Instead, allocate space for a
2636 dynamic reloc to reference the library symbol directly. Keep
2637 track of space we allocate using pcrel_relocs_copied.
2638 (discard_copies): Delete, and move code to ..
2639 (allocate_plt_and_got): ..here. Rename to
2640 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2641 relocs for non-shared link.
2642 (elf_i386_size_dynamic_sections): Update calls to above functions.
2643 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2644 more ugly logic to avoid "unresolvable relocation" error. Use
2645 htab shortcut in place of elf_hash_table macro.
2646 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2647 not always be created now.
2649 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2651 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2654 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2656 * configure.host (mips64-*-linux): Reformat.
2658 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2660 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2661 allocate local .got space. Use shortcuts from hash table for .got
2662 and .plt rather than comparing section names.
2663 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2664 adjusting index into local_got_refcounts to document what we are
2666 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2667 Tidy .got and .plt error checking.
2669 2001-06-20 Catherine Moore <clm@redhat.com>
2671 * elf-bfd.h (struct elf_backend_data):
2672 elf_backend_emit_relocs: New field: Function for emitting
2674 elf_backend_count_relocs: New field: Function for determining
2675 the number of relocs to be emitted.
2676 * elfxx-target.h: Provide default (NULL) values for
2677 elf_backend_emit_relocs and elf_backend_count_relocs.
2678 * elflink.h (elf_link_size_reloc_section): Make the hash table
2679 big enough to hold the relocs counted by either reloc_count or
2681 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2682 should be emitted, either because of a command line option
2683 stored in the info structure or because the target provides a
2684 special reloc emitting function.
2685 If the target provides a reloc counting function use it,
2686 unless performing a relocatable link or emitting all relocs.
2687 Also set the SEC_RELOC flag on any output section which will
2689 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2690 should be emitted, either because of a command line option
2691 stored in the info structure or because the target provides a
2692 special reloc emitting function.
2693 If the target provides a reloc emitting function, use it,
2694 unless performing a relocatable link or emitting all relocs.
2696 2001-06-20 H.J. Lu <hjl@gnu.org>
2698 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2699 allocate local .got space.
2701 2001-06-19 Andreas Jaeger <aj@suse.de>
2703 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2706 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2708 * elflink.h (struct elf_assign_sym_version_info): Remove member
2709 export_dynamic. All users changed to use info member.
2710 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2711 export_dynamic, instead use member in parameter info.
2712 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2713 bfd_elf64_size_dynamic_sections): Update prototype.
2714 * bfd-in2.h: Regenerate.
2716 2001-06-18 H.J. Lu <hjl@gnu.org>
2718 * elflink.h (elf_info_failed): Add a new field, verdefs.
2719 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2721 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2724 2001-06-17 H.J. Lu <hjl@gnu.org>
2726 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2727 readonly_reloc, to record if a relocation in the .rel.dyn
2728 section is against a read-only section.
2729 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2731 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2732 in the .rel.dyn section against a read-only section by setting
2733 DF_TEXTREL or readonly_reloc.
2734 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2736 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2737 there is a relocation in the .rel.dyn section against a
2739 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2742 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2744 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2745 function. Move flagword result into parameter list. Remove
2746 comment about setting bfd_error_handler to intercept failure
2748 * coffgen.c (make_a_section_from_file): Examine result of
2749 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2751 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2752 function. Move flagword result into parameter list.
2753 * libcoff.h: Regenerate.
2754 * libecoff.h: Regenerate.
2756 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2758 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2759 section is going to follow it.
2761 2001-06-12 Catherine Moore <clm@redhat.com>
2763 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2764 with the file_align entry from elf_backend_data.
2765 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2766 (elf_gc_record_vtentry): Likewise.
2768 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2770 * elflink.h: Whitespace changes.
2771 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2772 rather than "unsigned char".
2773 (elf_link_output_relocs): Likewise.
2774 (elf_link_input_bfd): Likewise.
2775 (elf_reloc_link_order): LIkewise.
2776 * elf.c: s/CONST/const/. Whitespace changes.
2777 * elf32-mips.c: Formatting fix.
2779 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2780 * Makefile.in: Regenerate.
2781 * po/Make-in: Remove trailing tab.
2783 2001-06-09 Philip Blundell <philb@gnu.org>
2785 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2787 (elf32_arm_plt_entry): Likewise.
2789 2001-06-08 H.J. Lu <hjl@gnu.org>
2791 * elf.c (swap_out_syms): Keep names for global section symbols.
2793 2001-06-07 H.J. Lu <hjl@gnu.org>
2795 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2796 MIPS-based machines need it.
2798 2001-06-07 H.J. Lu <hjl@gnu.org>
2800 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2803 * config.bfd: Remove ecoff from Linux/mips.
2805 2001-06-07 Andreas Jaeger <aj@suse.de>
2807 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2809 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2810 alignment of 8 for .rela sections; handle further relocations.
2812 2001-06-06 Christian Groessler <cpg@aladdin.de>
2814 * coff-z8k.c: Fix formatting.
2815 Fix howtos: howto->size was always 1.
2817 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2819 * configure.host (mips64*-*-linux*): Define.
2821 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2823 * elf32-i386.c (elf_i386_discard_copies): Rename to
2824 discard_copies, and use elf_link_hash_entry arg rather than
2825 elf_i386_link_hash_entry.
2826 (elf_i386_link_hash_traverse): Delete.
2827 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2828 Tidy sizing of dynamic sections.
2829 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2830 possible .plt entries.
2831 (elf_i386_gc_sweep_hook): Likewise.
2832 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2833 everything with plt.refcount <= 0.
2835 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2837 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2838 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2840 (allocate_plt_and_got): ..instead do it all here. New function.
2841 (elf_i386_size_dynamic_sections): Allocate local .got space and
2842 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2843 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2844 rather than gc variety).
2845 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2846 (elf_i386_relocate_section): Use it here and correct handling of
2847 R_386_GOT32. Provide section and offset for "unresolvable
2848 relocation" error message.
2849 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2851 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2852 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2853 (elf_i386_link_hash_table_create): Init them.
2854 (create_got_section): New function.
2855 (elf_i386_create_dynamic_sections): New function.
2856 (elf_backend_create_dynamic_sections): Set to above.
2857 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2858 calling bfd_get_section_by_name.
2859 (elf_i386_gc_sweep_hook): Likewise.
2860 (elf_i386_adjust_dynamic_symbol): Likewise.
2861 (elf_i386_size_dynamic_sections): Likewise.
2862 (elf_i386_relocate_section): Likewise.
2863 (elf_i386_finish_dynamic_sections): Likewise.
2865 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2867 2001-06-02 H.J. Lu <hjl@gnu.org>
2869 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2871 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2873 2001-06-02 H.J. Lu <hjl@gnu.org>
2875 * aout-cris.c (MACHTYPE_OK): New. Defined.
2877 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2879 * section.c (_bfd_strip_section_from_output): Handle NULL
2882 2001-06-02 H.J. Lu <hjl@gnu.org>
2884 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2885 rs6000coff64_vec only if BFD64 is defined.
2886 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2888 2001-06-02 H.J. Lu <hjl@gnu.org>
2890 * coff-ia64.c (ia64coff_object_p): Rewrite with
2891 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2893 2001-06-01 Andreas Jaeger <aj@suse.de>
2895 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2896 relocation, small reformatting.
2898 2001-05-29 Andreas Jaeger <aj@suse.de>
2900 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2901 (elf64_x86_64_relocate_section): Likewise.
2903 2001-05-30 Alan Modra <amodra@one.net.au>
2905 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2906 millicode. Don't allocate .got and .rela.got space here..
2907 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2908 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2910 (hppa_handle_PIC_calls): ..nor here..
2911 (allocate_plt_and_got): ..instead do it all here. New function.
2912 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2913 call allocate_plt_and_got. No need to zap .got if not dynamic.
2914 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2915 gc_common_final_link.
2916 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2917 (elf32_hppa_relocate_section): Use it here.
2918 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2919 dynamic_sections_created.
2920 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2922 2001-05-28 Andreas Jaeger <aj@suse.de>
2924 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2925 generic version since we want a hashsize of 4.
2926 (elf_backend_size_info): Likewise.
2928 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2930 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2932 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2933 (elf_link_input_bfd): Likewise.
2934 (elf_reloc_link_order): Likewise.
2935 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2936 relocations correctly.
2938 2001-05-28 Nicolas Pitre <nico@cam.org>
2940 * elf32-arm.h: fix PLT generation for big endian ARM
2942 2001-05-28 Alan Modra <amodra@one.net.au>
2944 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2945 for symbols forced local that need plabels.
2946 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2947 .plt.rela for local syms if non-shared.
2948 (hppa_build_one_stub): Mask lsb of plt.offset.
2949 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2950 (clobber_millicode_symbols): Correct comment.
2951 (elf32_hppa_relocate_section): Likewise.
2952 (elf32_hppa_finish_dynamic_symbol): Likewise.
2954 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2956 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2957 * bfd-in2.h: Regenerate.
2958 * libbfd.h: Regenerate.
2959 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2960 and BFD_RELOC_SPARC_UA64 mapping
2961 * elf64-sparc.c: Likewise.
2963 2001-05-25 H.J. Lu <hjl@gnu.org>
2965 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2966 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2967 (coff-rs6000.lo): Remove the old dependency.
2968 * Makefile.in: Rebuild.
2970 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2973 2001-05-25 H.J. Lu <hjl@gnu.org>
2975 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2976 rs6000coff_core_file_matches_executable_p,
2977 rs6000coff_core_file_failing_command and
2978 rs6000coff_core_file_failing_signal only if AIX_CORE is
2980 (pmac_xcoff_vec): Likewise.
2981 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2983 2001-05-25 Timothy Wall <twall@redhat.com>
2985 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2986 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2988 2001-05-25 H.J. Lu <hjl@gnu.org>
2990 * bfd-in2.h: Regenerated.
2991 * libcoff.h: Likewise.
2993 2001-05-25 Alan Modra <amodra@one.net.au>
2995 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2996 undefined millicode syms in shared libs.
2997 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2998 (elf32_hppa_check_relocs): Likewise.
2999 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3000 (elf32_hppa_size_dynamic_sections): Likewise.
3001 (elf32_hppa_relocate_section): Likewise.
3002 (elf32_hppa_finish_dynamic_symbol): Likewise.
3003 (elf32_hppa_finish_dynamic_sections): Likewise.
3005 2001-05-24 Tom Rix <trix@redhat.com>
3007 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3008 xcoff-target.h not used to define rs6000 or ppc bfd.
3011 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3014 * coff-rs6000.c : Many changes for 64 bit support. Move common
3015 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3018 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3019 linker now supported. Explictly define the rs6000coff64_vec.
3021 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3022 (coff_print_aux) same
3023 (coff_write_object_contents) same
3024 (coff_slurp_line_table) same
3026 * coffgen.c : (coff_fix_symbol_name) formatting
3027 (coff_mangle_symbols) xcoff 64 bit support
3028 (coff_write_symbol) same
3029 (coff_write_alien_symbol) same
3030 (coff_write_native_symbol) same
3031 (coff_write_symbols) same
3032 (coff_get_symbol_info) same
3033 (bfd_coff_get_syment) same
3034 (coff_print_symbol) same
3036 * config.bfd : add powerpc64-*-aix* target
3038 * libcoff-in.h : formatting
3040 * libcoff.h : move xcoff extern declarations to libxcoff.h
3042 * libxcoff.h : New file
3044 * xcofflink.c : Many changes for xcoff64 support. Move common
3045 structures to include/coff/xcoff.h. Move specific structure to
3046 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3047 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3049 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3052 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3054 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3056 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3059 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3061 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3062 * libbfd.h: Regenerate.
3063 * bfd-in2.h: Regenerate.
3065 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3066 * archures.c (bfd_mach_mips12000): Define.
3067 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3068 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3070 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3071 * bfd-in2.h: Regenerate.
3072 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3074 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3076 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3077 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3078 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3079 that is used by GCC.
3081 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3083 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3084 of entries in a structured section.
3085 * elf.c: Use new macro.
3086 * elf32-i386.c: Use new macro.
3087 * elf32-mips.c: Use new macro.
3088 * elf64-alpha.c: Use new macro.
3089 * elf64-sparc.c: Use new macro.
3090 * elfcode.h: Use new macro.
3091 * elflink.h: Use new macro.
3093 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3095 * bfdint.texi: Replace -oformat with --oformat.
3097 2001-05-21 Andreas Jaeger <aj@suse.de>
3099 * dwarf2.c (decode_line_info): Fix error message.
3100 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3101 adjust error message.
3103 2001-05-18 H.J. Lu <hjl@gnu.org>
3105 * elflink.h (elf_link_add_object_symbols): Revert the last
3108 2001-05-17 Alan Modra <amodra@one.net.au>
3110 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3111 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3112 (hppa_build_one_stub): Add an assert to check plt.offset.
3114 2001-05-17 H.J. Lu <hjl@gnu.org>
3116 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3117 version definition to basename of the output filename.
3119 2001-05-17 H.J. Lu <hjl@gnu.org>
3121 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3122 basename of the bfd filename.
3124 2001-05-16 Alan Modra <amodra@one.net.au>
3126 * section.c (asection): Add linker_has_input field.
3127 (STD_SECTION): Adjust initialization to suit.
3128 * ecoff.c (bfd_debug_section): Likewise.
3129 * bfd-in2.h: Regenerate.
3131 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3133 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3134 negative 32-bit operands to 16 operands when the operand is
3135 going to be zero-extended by the modified opcode.
3137 2001-05-12 Peter Targett <peter.targett@arccores.com>
3139 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3140 name for 'arc5' core versions.
3141 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3143 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3145 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3147 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3149 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3151 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3152 to .gnu.linkonce.t.FOO text section.
3154 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3156 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3157 fields, change sec into secinfo.
3158 (struct sec_merge_info): Add chain, remove last fields.
3159 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3160 (sec_merge_hash_lookup): If lookup could not use a string only
3161 because it has bad alignment, mark the old string for deletion.
3162 (sec_merge_add): Add secinfo argument. Don't compute entry's
3163 position, instead record the section.
3164 (sec_merge_emit): Update for the sec into secinfo change in
3165 struct sec_merge_hash_entry.
3166 (_bfd_merge_section): Only record the section for merging, defer
3167 putting strings into the hash table.
3168 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3169 _bfd_merge_sections): New functions.
3170 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3172 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3173 (_bfd_nolink_bfd_merge_sections): Define.
3174 * libbfd.h: Likewise.
3175 (bfd_generic_merge_sections): Add prototype.
3176 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3177 (struct bfd_target): Likewise.
3178 * bfd.c (bfd_merge_sections): Define.
3179 * bfd-in2.h: Rebuilt.
3180 * elf.c (_bfd_elf_merge_sections): New function.
3181 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3182 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3183 * reloc.c (bfd_generic_merge_sections): New function.
3184 * vms.c (vms_bfd_merge_sections): New function.
3185 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3186 * aout-target.h (MY_bfd_merge_sections): Define.
3187 * aout-tic30.c (MY_bfd_merge_sections): Define.
3188 * binary.c (binary_bfd_merge_sections): Define.
3189 * bout.c (b_out_bfd_merge_sections): Define.
3190 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3191 * coffcode.c (coff_bfd_merge_sections): Define.
3192 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3193 * i386msdos.c (msdos_bfd_merge_sections): Define.
3194 * i386os9k.c (os9k_bfd_merge_sections): Define.
3195 * ieee.c (ieee_bfd_merge_sections): Define.
3196 * ihex.c (ihex_bfd_merge_sections): Define.
3197 * nlm-target.h (nlm_bfd_merge_sections): Define.
3198 * oasys.c (oasys_bfd_merge_sections): Define.
3199 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3200 * som.c (som_bfd_merge_sections): Define.
3201 * srec.c (srec_bfd_merge_sections): Define.
3202 * tekhex.c (tekhex_bfd_merge_sections): Define.
3203 * versados.c (versados_bfd_merge_sections): Define.
3204 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3206 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3208 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3209 to be unsigned long, in order to match its use.
3211 2001-05-10 H.J. Lu <hjl@gnu.org>
3213 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3216 2001-05-09 H.J. Lu <hjl@gnu.org>
3218 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3219 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3220 Remove the unused veriable `dynver'.
3222 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3224 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3225 NULL or is not COFF.
3226 (coff_i386_rtype_to_howto): Don't dump core if output section
3229 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3231 * ecoff.c (bfd_debug_section): Fix initialization.
3232 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3233 is always a positive integer. Cast away sign mismatch.
3234 * elf32-mips.c: Fix misleading comment and typo.
3235 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3237 * elflink.c: Fix typo.
3238 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3239 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3241 2001-05-04 Richard Henderson <rth@redhat.com>
3243 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3245 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3247 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3248 EF_ARM_HASENTRY if the start address is set.
3250 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3252 * targets.c (_bfd_target_vector_entries): Compute value based on
3253 the size of the _bfd_target_vector and not bfd_target_vector.
3255 2001-05-03 H.J. Lu <hjl@gnu.org>
3257 * elfcode.h: Include "libiberty.h".
3259 * elflink.h (elf_link_add_object_symbols): Set
3260 elf_dt_name (abfd) to basename of the bfd filename.
3261 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3262 of the bfd filename.
3264 2001-05-03 Andreas Jaeger <aj@suse.de>
3266 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3267 (elf_generic_info_to_howto_rel): Likewise.
3268 * coff-alpha.c (reloc_nil): Likewise.
3269 (alpha_ecoff_bad_format_hook): Likewise.
3270 (alpha_adjust_reloc_out): Likewise.
3271 (alpha_bfd_reloc_type_lookup): Likewise.
3272 (alpha_convert_external_reloc): Likewise.
3273 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3274 (elf64_alpha_reloc_bad): Likewise.
3275 (elf64_alpha_reloc_gpdisp): Likewise.
3276 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3277 (elf64_alpha_info_to_howto): Likewise.
3278 (elf64_alpha_add_symbol_hook): Likewise.
3279 (elf64_alpha_create_got_section): Likewise.
3280 (elf64_alpha_is_local_label_name): Likewise.
3281 (elf64_alpha_merge_ind_symbols): Likewise.
3282 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3283 (mips_elf64_get_reloc_upper_bound): Likewise.
3284 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3285 (nlm_alpha_get_public_offset): Likewise.
3287 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3289 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3290 about overflow in R_OPENRISC_LO_16_IN_INSN and
3291 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3293 2001-04-30 H.J. Lu <hjl@gnu.org>
3295 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3296 only for ELF_LINK_FORCED_LOCAL.
3297 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3298 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3299 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3301 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3302 if the symbol has hidden or internal visibility.
3304 2001-04-30 Alan Modra <amodra@one.net.au>
3306 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3307 calls to undefined weak symbols.
3309 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3311 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3312 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3314 2001-04-27 Andreas Jaeger <aj@suse.de>
3316 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3317 out handled entries.
3318 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3319 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3320 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3323 2001-04-27 Sean McNeil <sean@mcneil.com>
3325 * config.bfd: Add arm-vxworks target.
3326 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3327 addend (fro VXworks targets).
3329 2001-04-26 H.J. Lu <hjl@gnu.org>
3331 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3334 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3336 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3337 * bfd-in2.h: Regenerated.
3339 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3341 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3342 (struct sec_merge_hash): Remove alignment_power.
3343 (sec_merge_hash_newfunc): Clear alignment.
3344 (sec_merge_hash_lookup): Pass alignment as argument.
3345 Use hashp->root.next, not hashp->next to walk the hash chain.
3346 If a string already in the hashtable does not have required
3347 alignment, create a new hashtable entry.
3348 (sec_merge_init): Remove alignment_power argument.
3349 (sec_merge_add): Add alignment argument.
3350 (sec_merge_emit): Alignment is now a per-entity thing, not per
3352 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3353 for proper alignment.
3354 Pass alignment information to sec_merge_add.
3356 2001-04-24 Christian Groessler <cpg@aladdin.de>
3358 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3359 and R_REL16 reloc types; accept odd values for R_REL16 type
3361 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3363 * cpu-openrisc.c: New file.
3364 * elf32-openrisc.c: Likewise.
3366 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3367 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3368 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3369 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3370 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3371 * Makefile.in: Regenerated.
3372 * config.bfd: (openrisc-*-elf): New target.
3373 * configure.in (bfd_elf32_openrisc_vec): New vector.
3374 * configure: Regenerated.
3375 * libbfd.h: Regenerated.
3376 * bfd-in2.h: Regenerated.
3377 * reloc.c: Add OpenRISC relocations.
3378 * targets.c (bfd_elf32_openrisc_vec): Declare.
3379 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3380 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3381 (bfd_openrisc_arch): Declare.
3382 (bfd_archures_list): Add bfd_openrisc_arch.
3383 * elf.c (prep_headers): Add bfd_arch_openrisc.
3385 2001-04-23 Bo Thorsen <bo@suse.de>
3387 * elf64-x86-64.c: Add c++ vtable hack.
3388 Small whitespace and comment changes.
3390 2001-04-19 Andreas Jaeger <aj@suse.de>
3392 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3393 (elf64_x86_64_plt_entry): Likewise.
3394 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3395 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3397 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3399 * elf32-cris.c: Tweak comments related to dynamic linking.
3400 (cris_elf_relocate_section): When not creating shared object, fill
3401 in the .got table for any symbol not in the dynamic symbol table.
3402 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3403 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3405 (cris_elf_check_relocs): Use variable r_type in all places rather
3406 than the original expression. Add default case in switch for
3408 (elf_cris_size_dynamic_sections): Iterate over
3409 elf_cris_discard_excess_program_dynamics when not creating shared
3411 (elf_cris_discard_excess_dso_dynamics): Renamed from
3412 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3413 (elf_cris_discard_excess_program_dynamics): New.
3415 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3417 * coffcode.h (coff_write_object_contents): Use
3418 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3420 2001-04-14 H.J. Lu <hjl@gnu.org>
3422 * bfd-in2.h: Regenerate.
3424 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3426 * section.c (STD_SECTION): Add entsize.
3428 2001-04-13 H.J. Lu <hjl@gnu.org>
3430 * section.c (SEC_MERGE): Define new flag for merging.
3431 (SEC_STRINGS): Likewise.
3432 (entsize): New field.
3434 2001-04-13 Roger Sayle <roger@metaphorics.com>
3436 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3437 flag on pe-i386 targets.
3439 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3441 * libbfd-in.h (_bfd_merge_section): New.
3442 (_bfd_write_merged_section): New.
3443 (_bfd_merged_section_offset): New.
3444 * libbfd.h: Rebuilt.
3445 * linker.c (_bfd_generic_link_output_symbols): Handle
3447 * aoutx.h (aout_link_write_symbols): Likewise.
3448 * pdp11.c (aout_link_write_symbols): Likewise.
3449 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3450 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3452 (elf_link_sec_merge_syms): New.
3453 (elf_link_input_bfd): Call _bfd_merged_section_offset
3454 and _bfd_write_merged_section.
3455 Handle discard_sec_merge.
3456 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3458 (struct bfd_elf_section_data): Likewise.
3459 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3460 SEC_STRINGS section flags and entsize from their ELF counterparts.
3461 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3462 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3463 from their BFD counterparts.
3464 * merge.c: New file.
3465 * Makefile.am: Add strtab.lo.
3466 * Makefile.in: Rebuilt.
3468 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3470 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3471 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3473 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3475 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3476 endian MIPS ELF target.
3477 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3480 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3481 64bit big endian MIPS ELF target.
3482 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3483 endian MIPS ELF target.
3484 * configure: Regenerated.
3486 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3487 little endian targets.
3488 (mips_elf_sym_is_global): Handle traditional targets.
3490 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3491 64bit big endian MIPS ELF target.
3492 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3493 endian MIPS ELF target.
3495 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3496 and bfd_elf64_tradlittlemips_vec.
3498 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3500 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3501 ordinary "progbits" section.
3503 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3505 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3506 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3508 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3510 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3512 2001-03-30 H.J. Lu <hjl@gnu.org>
3514 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3515 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3517 2001-03-26 H.J. Lu <hjl@gnu.org>
3519 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3520 if there are any relocations for generic ELF.
3521 (bfd_elf32_bfd_link_add_symbols): Defined to
3522 elf32_generic_link_add_symbols.
3523 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3524 if there are any relocations for generic ELF.
3525 (bfd_elf64_bfd_link_add_symbols): Defined to
3526 elf64_generic_link_add_symbols.
3528 2001-03-23 Nick Clifton <nickc@redhat.com>
3530 * Makefile.am (BUILD_CFILES): New variable: List of C source
3531 files created in build directory.
3532 (BUILD_HFILES): New variable: List of header files created in
3535 (po/POTFILES.in): Replace rule with empty entry.
3536 (po/SRC-POTFILES.in): New rule: Create a list of source files
3537 in the source directory.
3538 (po/BLD-POTFILES.in): New rule: Create a list of source files
3539 in the build directory.
3540 (MOSTLYCLEAN): Do not delete source files created in build
3542 * Makefile.in: Regenerate.
3543 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3545 * configure: Regenerate.
3547 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3549 Add .. to the search path when building bfd.pot.
3550 Delete POTFILES when performing distclean.
3551 Add comment describing why distclean is broken in maintainer mode.
3552 * po/POTFILES.in: Delete.
3553 * po/SRC-POTFILES.in: New file.
3554 * po/BLD-POTFILES.in: New file.
3555 * po/bfd.pot: Regenerate.
3557 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3559 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3560 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3561 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3562 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3563 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3564 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3566 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3567 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3568 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3569 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3570 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3571 New HOWTO members for new relocs.
3572 (cris_reloc_map): Map new relocs.
3573 (ELF_DYNAMIC_INTERPRETER): Define.
3574 (PLT_ENTRY_SIZE): Define.
3575 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3576 elf_cris_pic_plt_entry): New, PLT templates.
3577 (struct elf_cris_pcrel_relocs_copied, struct
3578 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3579 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3580 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3581 positive values. Adjust PCREL relocs to be relative to location
3583 (cris_elf_relocate_section): Handle relocations to dynamic
3584 objects. Handle new relocations. Call error handler when seeing
3585 non-PIC relocation for read-only sections while generating shared
3587 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3589 (bfd_elf32_bfd_link_hash_table_create,
3590 elf_backend_adjust_dynamic_symbol,
3591 elf_backend_size_dynamic_sections,
3592 elf_backend_finish_dynamic_symbol,
3593 elf_backend_finish_dynamic_sections,
3594 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3595 elf_backend_hide_symbol, elf_backend_want_got_plt,
3596 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3597 elf_backend_got_header_size, elf_backend_plt_header_size):
3600 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3601 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3602 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3603 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3604 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3605 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3606 * bfd-in2.h, libbfd.h: Regenerate.
3608 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3610 (_bfd_mips_elf_relocate_section): Give a better error message when
3611 a relocation is not recognized.
3613 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3615 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3616 non-NULL before attempting to dereference.
3618 2001-03-20 H.J. Lu <hjl@gnu.org>
3620 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3621 * configure: Rebuild.
3623 2001-03-20 Andreas Schwab <schwab@suse.de>
3625 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3626 relocation value when resolving a reference from a debugging
3629 2001-03-16 Scott Thomason <SThomaso@hii.com>
3631 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3632 (xcoff64_swap_sym_out): Fix syntax errors.
3634 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3636 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3638 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3640 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3641 (hppa_link_hash_newfunc): Init it.
3642 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3643 section appears to be non-PIC.
3644 (final_link_relocate): Likewise.
3645 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3646 possible candidate function, and set pic_call for those that will
3647 only have a .plt entry for the PIC call stub.
3648 (hppa_handle_PIC_calls): Set maybe_pic_call.
3650 2001-03-12 DJ Delorie <dj@redhat.com>
3652 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3653 R_SH_DIR8WP* relocs if they're against external symbols, else
3654 they're just for relaxing. Validate the reloc values.
3656 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3658 * binary.c (bfd_external_binary_architecture): Declare.
3659 (binary_object_p): If bfd_external_binary_architecture is defined,
3660 set the architecture to this string.
3662 2001-03-11 Philip Blundell <philb@gnu.org>
3664 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3665 entries that could serve as a definition for a weak symbol.
3667 2001-03-08 Nick Clifton <nickc@redhat.com>
3669 * Most files: Update copyright notices using Perl script created
3670 by Kevin Buettner <kevinb@redhat.com>.
3672 2001-03-07 Nick Clifton <nickc@redhat.com>
3674 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3675 prior patch on ! defined OLD_ARM_ABI.
3677 2001-03-07 Andreas Jaeger <aj@suse.de>
3679 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3680 some relocation values.
3682 2001-03-06 Nick Clifton <nickc@redhat.com>
3684 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3685 of offset in BLX(1) instruction.
3686 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3687 offset in BLX(1) instruction.
3690 2001-03-06 Nick Clifton <nickc@redhat.com>
3692 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3693 BFD_RELOC_THUMB_PCREL_BLX.
3695 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3697 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3698 * bfd-in2.h: Regenerate.
3699 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3700 * ieee.c (ieee_write_processor): Set proper id for
3703 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3705 * configure.in: Add s390 target.
3706 * configure: Regenerate.
3708 2001-02-28 Andreas Jaeger <aj@suse.de>
3710 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3713 2001-02-28 Philip Blundell <pb@futuretv.com>
3715 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3716 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3718 2001-02-27 H.J. Lu <hjl@gnu.org>
3720 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3721 abfd->tdata.aout_data == NULL.
3723 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3725 * elf32-hppa.c: Correct field selector in stub comments.
3726 (clobber_millicode_symbols): Formatting fix.
3728 * configure.in: Bump version to 2.11.90.
3729 * configure: Regenerate.
3730 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3731 (CFILES): $SOURCE_CFILES + generated C files.
3732 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3734 * Makefile.in: Regenerate.
3735 * doc/Makefile.in: This too.
3737 2001-02-26 Timothy Wall <twall@cygnus.com>
3739 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3742 2001-02-26 Nick Clifton <nickc@redhat.com>
3744 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3745 up, replacing multiple if statements with a switch.
3746 (handle_COMDAT): New function.
3748 2001-02-26 H.J. Lu <hjl@gnu.org>
3750 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3751 a warning for section flags we do not handle instead of
3754 2001-02-26 Andreas Jaeger <aj@suse.de>
3756 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3758 2001-02-22 Timothy Wall <twall@cygnus.com>
3760 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3761 * configure.in: Add objects for elf64_ia64_aix vectors.
3762 * configure: Regenerated.
3763 * configure.host: Recognize ia64-*-aix*.
3764 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3765 for AIX. AIX5 requires most relocations to be dynamic (*all*
3766 binaries are somewhat similar to shared libraries).
3767 * targets.c: Add elf64_ia64_aix vectors.
3769 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3771 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3772 C8 said "1" instead of "8". Clarify error string for IMM22:
3773 "signed integer" instead of just "integer".
3775 2001-02-20 Andreas Jaeger <aj@suse.de>
3777 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3778 PLT entries that could serve as a definition for a weak symbol.
3780 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3782 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3783 entries that could serve as a definition for a weak symbol.
3784 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3786 2001-02-18 David O'Brien <obrien@FreeBSD>
3788 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3789 FreeBSD/i386-CURRENT differently until I can figure out the needed
3791 * configure: Regenerate.
3792 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3793 FreeBSD/PowerPC, and FreeBSD/sparc64.
3795 2001-02-18 lars brinkhoff <lars@nocrew.org>
3797 * Makefile.am: Add PDP-11 a.out target.
3798 * config.bfd: Likewise.
3799 * configure.in: Likewise.
3800 * targets.c: Likewise.
3801 * archures.c: Likewise.
3802 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3803 * libbfd.h: Add PDP-11 relocations.
3804 * reloc.c: Likewise.
3805 * cpu-pdp11.c: New file.
3806 * pdp11.c: New file.
3808 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3809 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3810 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3811 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3812 (GET_MAGIC): New macro.
3813 (PUT_MAGIC): Likewise.
3814 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3816 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3818 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3819 multiarch needs it).
3821 2001-02-18 H.J. Lu <hjl@gnu.org>
3823 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3826 2001-02-18 Kazu Hirata <kazu@hxi.com>
3828 * vms-misc.c: Fix formatting.
3830 2001-02-16 Kazu Hirata <kazu@hxi.com>
3832 * vms.c: Fix formatting.
3834 2001-02-14 H.J. Lu <hjl@gnu.org>
3836 * elf.c (elf_find_function): New function.
3837 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3838 the file name and function name.
3840 2001-02-14 Nick Clifton <nickc@redhat.com>
3842 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3845 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3846 (BFD64_BACKENDS): Add pepigen.c
3847 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3849 * Makefile.in: Regenerate.
3850 * configure: Regenerate.
3851 * po/POTFILES.in: Regenerate.
3852 * po/bfd.pot: Regenerate.
3854 2001-02-14 H.J. Lu <hjl@gnu.org>
3856 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3857 force_minimum_alignment.
3859 2001-02-14 Bo Thorsen <bo@suse.de>
3861 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3862 (elf64_86_64_size_info): Struct added to fix a problem
3863 with the hashtable string entries.
3864 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3865 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3866 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3867 remove the FIXME for this.
3868 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3869 section. Also removed the FIXME for it.
3870 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3871 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3872 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3874 2001-02-13 Richard Henderson <rth@redhat.com>
3876 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3877 and not user provided.
3879 2001-02-13 Kazu Hirata <kazu@hxi.com>
3881 * vms.c (vms_print_symbol): Remove unreachable code.
3883 * rs6000-core.c: Fix formatting.
3885 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3887 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3888 as _bfd_XXi_only_swap_filehdr_out.
3889 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3890 pe->force_minimum_alignment to TRUE.
3891 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3892 PEI_TARGET_SUBSYSTEM.
3893 (pe_print_private_bfd_data): Call
3894 _bfd_XX_print_private_bfd_data_common() instead of
3895 _bfd_pe_print_private_bfd_data_common().
3896 (pe_bfd_copy_private_bfd_data): Call
3897 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3898 _bfd_pe_bfd_copy_private_bfd_data_common().
3899 (coff_bfd_copy_private_section_data): Define as
3900 _bfd_XX_bfd_copy_private_section_data instead of
3901 _bfd_pe_bfd_copy_private_section_data.
3902 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3903 of a _bfd_pe_get_symbol_info.
3907 * peXXigen.c: Renamed from peigen.c.
3908 (COFF_WITH_XX): Define this macro (will get expanded into
3909 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3910 compiled as peigen.c or pepigen.c.
3911 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3912 define the canonical PEP structures and definitions.
3913 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3914 effect, enforce minimum file and section alignments. If
3915 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3916 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3917 so, by default, this is a no-op).
3919 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3920 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3921 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3922 _bfd_pefoo if it's not defined. Use these macros to define
3925 * libcoff.h (pe_tdata): Add members target_subsystem and
3926 force_minimum_alignment.
3928 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3930 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3932 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3935 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3936 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3939 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3940 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3941 (peigen.c): Add rule to generate from peXXigen.c.
3943 (pepigen.lo): List dependencies for pepigen.lo.
3945 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3947 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3948 $global$ referenced but not defined, set its value here.
3950 2001-02-09 Bo Thorsen <bo@suse.de>
3952 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3954 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3956 (elf64_x86_64_relocate_section): Fix formatting.
3957 (elf64_x86_64_relocate_section): Fix addend for relocation of
3958 R_X86_64_(8|16|32|PC8|PC16|PC32).
3960 2001-02-12 Jan Hubicka <jh@suse.cz>
3962 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3964 2001-02-11 H.J. Lu <hjl@gnu.org>
3966 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3969 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3971 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3972 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3973 relocations against dynsym symbols.
3975 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3976 the R_MIPS_26 relocation.
3977 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3978 the R_MIPS_26 relocation.
3979 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3981 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3982 the R_MIPS_26 relocation.
3983 (mips_elf64_howto_table_rela): Likewise.
3985 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3986 member to mark symbols that have non-CALL relocations against
3988 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3989 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3991 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3992 non-CALL relocation against it is encountered.
3993 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3994 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3995 no_fn_stub is not set.
3997 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3998 information from the real symbol for indirect ones.
3999 Check no_fn_stub to find out if a symbol has a function stub
4002 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4004 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4005 * Makefile.in: Regenerate.
4007 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4009 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4010 true if section name is an unwind table section name.
4011 (elfNN_ia64_additional_program_headers): Count each unwind section
4013 (elfNN_ia64_modify_segment_map): Install one unwind program header
4014 for each unwind separate section. Note: normally the linker
4015 script merges the unwind sections that go into a single segment,
4016 so this still generates at most one unwind program header per
4019 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4020 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4021 (elfNN_ia64_fake_sections): Mark sections with names that start
4022 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4025 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4026 Use it to make sh_info in unwind section point to the text section
4029 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4031 * Makefile.am: Add linux target for S/390.
4032 * archures.c: Likewise.
4033 * bfd-in2.h: Likewise.
4034 * config.bfd: Likewise.
4035 * configure.in: Likewise.
4037 * libbfd.h: Likewise.
4038 * targets.c: Likewise.
4039 * cpu-s390.c: New file.
4040 * elf32-s390.c: New file.
4041 * elf64-s390.c: New file.
4043 2001-02-09 Nick Clifton <nickc@redhat.com>
4045 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4046 ImageBase. This has already been done by coff_swap_hdr_in.
4048 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4050 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4052 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4054 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4055 (sparc64_elf_relocate_section): Likewise.
4057 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4059 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4060 similar to R_SPARC_32.
4061 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4063 2001-02-08 H.J. Lu <hjl@gnu.org>
4065 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4066 relocation entries for weak definitions when building DSO with
4069 2001-02-08 Richard Henderson <rth@redhat.com>
4071 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4072 before visibility. Locally defined protected symbols are not
4075 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4077 * config.bfd: Enable coff64 for rs6000-*. Patch from
4078 <hzoli@austin.ibm.com>.
4080 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4082 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4083 found, do not attempt to find dwarf2 info before returning.
4085 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4087 * elflink.h (is_global_symbol_definition): Rename to
4088 is_global_data_symbol_definition and have it reject function
4090 (elf_link_is_defined_archive_symbol): Use renamed function.
4092 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4094 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4095 * libbfd.h (bfd_target_vector): Likewise.
4096 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4097 make static; create pointer reference named bfd_target_vector.
4098 (_bfd_target_vector_entries): Calculate this based on the array
4099 typed _bfd_target_vector.
4101 2001-02-06 H.J. Lu <hjl@gnu.org>
4103 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4104 internal symbols are not dynamic.
4105 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4107 2001-02-06 Nick Clifton <nickc@redhat.com>
4109 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4110 that it will not be pulled into the list of files that make up
4112 * Makefile.in: Regenerate.
4113 * po/bfd.pot: Regenerate.
4115 2001-02-06 H.J. Lu <hjl@gnu.org>
4117 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4119 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4120 external_PEI_IMAGE_hdr.
4122 2001-02-06 Kazu Hirata <kazu@hxi.com>
4124 * elf-m10200.c: Fix formatting.
4126 2001-02-04 Nick Clifton <nickc@redhat.com>
4128 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4129 rel, it will be handled later on.
4131 2001-02-02 Fred Fish <fnf@ninemoons.com>
4133 * Makefile.in: Fix typo.
4135 2001-02-01 Kazu Hirata <kazu@hxi.com>
4137 * elf-m10300.c: Fix formatting.
4139 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4141 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4142 (elf_backend_get_symbol_type): Define.
4143 (elf64_hppa_object_p): Set architecture and machine from elf
4146 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4148 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4151 2001-01-26 Richard Henderson <rth@redhat.com>
4153 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4154 for non-default visibility.
4155 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4156 delete ugly macro and replace with pretty function.
4158 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4160 * coff-go32.c: Update copyright.
4161 * coff-stgo32.c: Likewise.
4162 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4163 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4164 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4165 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4167 2001-01-25 Kazu Hirata <kazu@hxi.com>
4169 * bfd-in2.h: Rebuild.
4170 * libbfd.h: Likewise.
4172 2001-01-23 H.J. Lu <hjl@gnu.org>
4174 * bfd-in2.h: Rebuild.
4176 2001-01-23 H.J. Lu <hjl@gnu.org>
4178 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4179 is NULL or PRIV(vms_rec) is outside of the buffer.
4181 2001-01-23 Kazu Hirata <kazu@hxi.com>
4183 * coff64-rs6000.c: Fix formatting.
4184 * coff-arm.c: Likewise.
4185 * coffgen.c: Likewise.
4186 * cofflink.c: Likewise.
4187 * coff-mcore.c: Likewise.
4188 * coff-mips.c: Likewise.
4189 * coff-pmac.c: Likewise.
4190 * coff-ppc.c: Likewise.
4191 * coff-rs6000.c: Likewise.
4192 * elf32.c: Likewise.
4193 * elf32-fr30.c: Likewise.
4194 * elf32-i370.c: Likewise.
4195 * elf32-i860.c: Likewise.
4196 * elf32-m32r.c: Likewise.
4197 * elf32-m68k.c: Likewise.
4198 * elf32-mcore.c: Likewise.
4199 * elf32-ppc.c: Likewise.
4200 * elf32-sh.c: Likewise.
4201 * elf32-v850.c: Likewise.
4202 * elf64-alpha.c: Likewise.
4203 * elf64-sparc.c: Likewise.
4204 * elflink.c: Likewise.
4205 * elflink.h: Likewise.
4206 * elf-m10200.c: Likewise.
4207 * elf-m10300.c: Likewise.
4208 * elfxx-ia64.c: Likewise.
4210 * aoutx.h: Fix formatting.
4212 * bfd-in2.h: Likewise.
4213 * bfd-in.h: Likewise.
4214 * cpu-i386.c: Likewise.
4215 * cpu-m68hc11.c: Likewise.
4216 * dwarf2.c: Likewise.
4217 * elf64-x86-64.c: Likewise.
4218 * format.c: Likewise.
4219 * freebsd.h: Likewise.
4221 * hp300hpux.c: Likewise.
4222 * hppabsd-core.c: Likewise.
4223 * hpux-core.c: Likewise.
4225 2001-01-22 Bo Thorsen <bo@suse.de>
4227 * elf64-x86-64.c: Added PIC support for X86-64.
4228 (elf64_x86_64_link_hash_newfunc): Function added.
4229 (elf64_x86_64_link_hash_table_create): Likewise.
4230 (elf64_x86_64_check_relocs): Likewise.
4231 (elf64_x86_64_gc_mark_hook): Likewise.
4232 (elf64_x86_64_gc_sweep_hook): Likewise.
4233 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4234 (elf64_x86_64_size_dynamic_sections): Likewise.
4235 (elf64_x86_64_discard_copies): Likewise.
4236 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4237 (elf64_x86_64_finish_dynamic_sections): Likewise.
4238 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4240 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4242 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4243 * Makefile.in: Regenerate.
4245 2001-01-21 Kazu Hirata <kazu@hxi.com>
4247 * coff-a29k.c: Fix formatting.
4249 2001-01-19 H.J. Lu <hjl@gnu.org>
4251 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4252 relocation section names.
4253 (elf_i386_relocate_section): Report files with bad relocation
4254 section names and return false.
4256 2001-01-17 Bo Thorsen <bo@suse.de>
4258 * targets.c: Alphabetize list of xvecs.
4260 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4262 * config.bfd: Add linux target variant for elfxx-hppa.
4263 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4264 bfd_elf64_hppa_linux_vec.
4265 * configure: Regenerate.
4266 * elf64-hppa.c: Include elf64-target.h again to support linux
4268 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4269 * elf32-hppa.c: Include elf32-target.h again to support linux
4271 (elf32_hppa_post_process_headers): New function.
4272 (elf_backend_post_process_headers): Define.
4273 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4274 bfd_elf32_hppa_linux_vec.
4276 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4277 and data_segment_base fields.
4278 (elf32_hppa_link_hash_table_create ): Init them.
4279 (elf32_hppa_check_relocs): Update comments.
4280 (hppa_record_segment_addr): New function.
4281 (elf32_hppa_relocate_section): Call it.
4282 (final_link_relocate): Handle R_PARISC_SEGREL32.
4283 (elf32_hppa_final_link): New function.
4284 (bfd_elf32_bfd_final_link): Define to call it.
4285 (hppa_unwind_entry_compare): New function.
4286 * cache.c (bfd_open_file): Create files in write+read mode.
4288 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4289 SEGREL32 and numerous other relocs. Change duplicate
4290 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4292 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4295 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4296 .plt entries for DT_INIT and DT_FINI.
4297 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4298 DT_INIT and DT_FINI.
4300 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4301 offsets for stub .plt access if wide mode. Check offset in range.
4303 2001-01-13 Nick Clifton <nickc@redhat.com>
4305 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4308 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4311 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4313 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4314 * configure: Regenerate.
4316 2001-01-11 Peter Targett <peter.targett@arccores.com>
4318 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4319 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4320 * cpu-arc.c (arch_info_struct): Add entries for variants.
4321 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4322 (arc_get_mach) Don't assume machine names prefixed arc- before
4324 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4326 (arc_elf_final_write_processing) Likewise.
4327 (ELF_MACHINE_CODE) Use EM_ARC.
4329 2001-01-10 Nick Clifton <nickc@redhat.com>
4331 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4333 2001-01-07 Philip Blundell <philb@gnu.org>
4335 * README: Replace `bug-gnu-utils@gnu.org' with
4336 `bug-binutils@gnu.org'.
4338 2001-01-04 Kazu Hirata <kazu@hxi.com>
4340 * som.c: Fix formatting.
4342 2001-01-03 Kazu Hirata <kazu@hxi.com>
4344 * ecoffswap.h: Fix formatting.
4345 * elf-bfd.h: Likewise.
4346 * elfarm-nabi.c: Likewise.
4347 * elfarm-oabi.c: Likewise.
4348 * elfcode.h: Likewise.
4349 * elfcore.h: Likewise.
4350 * elflink.c: Likewise.
4351 * elflink.h: Likewise.
4352 * elfxx-ia64.c: Likewise.
4353 * elfxx-target.h: Likewise.
4354 * libbfd.c: Likewise
4355 * linker.c: Likewise.
4356 * lynx-core.c: Likewise.
4358 2001-01-02 Kazu Hirata <kazu@hxi.com>
4360 * pc532-mach.c: Fix formatting.
4361 * pe-arm.c: Likewise.
4362 * pe-i386.c: Likewise.
4363 * pe-mips.c: Likewise.
4364 * pe-ppc.c: Likewise.
4365 * pe-sh.c: Likewise.
4366 * pei-mips.c: Likewise.
4367 * pei-sh.c: Likewise.
4368 * peicode.h: Likewise.
4369 * ppcboot.c: Likewise.
4370 * ptrace-core.c: Likewise.
4372 2001-01-01 Kazu Hirata <kazu@hxi.com>
4374 * reloc.c: Fix formatting.
4375 * riscix.c: Likewise.
4376 * rs6000-core.c: Likewise.
4377 * xcoff-target.h: Likewise.
4379 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4381 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4382 error, by calling bfd_default_set_arch_mach with incoming
4385 2000-12-26 Kazu Hirata <kazu@hxi.com>
4387 * vaxnetbsd.c: Fix formatting.
4388 * versados.c: Likewise.
4389 * vms-gsd.c: Likewise.
4390 * vms-hdr.c: Likewise.
4391 * vms-misc.c: Likewise.
4393 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4395 * archive.c (coff_write_armap): Don't write more than symbol_count
4396 `archive_member_file_ptr's.
4398 2000-12-25 Kazu Hirata <kazu@hxi.com>
4400 * vms-tir.c: Fix formatting.
4402 2000-12-23 Kazu Hirata <kazu@hxi.com>
4404 * vms.c: Fix formatting.
4407 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4409 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4411 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4413 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4416 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4418 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4420 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4422 * libbfd.c (bfd_get_bits): Added
4423 (bfd_put_bits): Likewise
4424 * bfd-in.h: Declared the above.
4425 * bfd-in2.h: Regenerated.
4427 2000-12-20 Kazu Hirata <kazu@hxi.com>
4429 * targets.c: Fix formatting.
4430 * tekhex.c: Likewise.
4431 * trad-core.c: Likewise.
4433 2000-12-19 Kazu Hirata <kazu@hxi.com>
4435 * sco5-core.c: Fix formatting.
4436 * section.c: Likewise.
4437 * sparclinux.c: Likewise.
4438 * sparclynx.c: Likewise.
4439 * sparcnetbsd.c: Likewise.
4441 * stabs.c: Likewise.
4442 * stab-syms.c: Likewise.
4443 * sunos.c: Likewise.
4445 * sysdep.h: Likewise.
4447 2000-12-18 Nick Clifton <nickc@redhat.com>
4449 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4451 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4452 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4454 2000-12-18 Nick Clifton <nickc@redhat.com>
4456 * vms-misc.c (_bfd_vms_get_record): Add default case to
4459 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4461 * elfcore.h (elf_core_file_p): Move to the start of the program
4462 headers before attempting to read them.
4464 2000-12-14 Kazu Hirata <kazu@hxi.com>
4466 * peigen.c: Fix formatting.
4470 2000-12-13 Kazu Hirata <kazu@hxi.com>
4472 * peigen.c: Fix formatting.
4474 2000-12-12 Jim Wilson <wilson@redhat.com>
4476 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4478 2000-12-08 Mark Salter <msalter@redhat.com>
4480 * binary.c (binary_set_section_contents): Ignore sections
4483 2000-12-12 Kazu Hirata <kazu@hxi.com>
4485 * m68klinux.c: Fix formatting.
4486 * m68knetbsd.c: Likewise.
4487 * mipsbsd.c: Likewise.
4488 * netbsd-core.c: Likewise.
4489 * netbsd.h: Likewise.
4490 * newsos3.c: Likewise.
4491 * nlm32-alpha.c: Likewise.
4492 * nlm32-i386.c: Likewise.
4493 * nlm32-ppc.c: Likewise.
4494 * nlm32-sparc.c: Likewise.
4495 * nlmcode.h: Likewise.
4496 * nlmswap.h: Likewise.
4497 * nlm-target.h: Likewise.
4498 * ns32knetbsd.c: Likewise.
4500 2000-12-10 Fred Fish <fnf@be.com>
4502 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4503 symbols in shared objects if allow_shlib_undefined is true.
4505 2000-12-12 Nick Clifton <nickc@redhat.com>
4507 * cpu-sh.c: Fix formattng.
4508 * elf.c: Fix formattng.
4509 * elf32-mips.c: Fix formattng.
4510 * elf32-sh.c: Fix formattng.
4511 * elf64-alpha.c: Fix formattng.
4513 2000-12-09 Nick Clifton <nickc@redhat.com>
4515 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4516 dwarf2_find_line_info as last parameter to invocation of
4517 _bfd_dwarf2_find_nearest_line.
4518 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4519 dwarf2_find_line_info as last parameter to invocation of
4520 _bfd_dwarf2_find_nearest_line.
4522 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4524 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4525 (BFD_LIBS): ...to here.
4526 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4527 (BFD_LIBS_CFILES): ...to here.
4528 * Makefile.in: Regenerate.
4529 * configure.in: Remove dwarf.lo from the elf shell variable.
4530 * configure: Regenerate.
4531 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4532 * libcoff.h: Regenerate.
4533 * coffgen.c (coff_find_nearest_line): Call
4534 _bfd_dwarf2_find_nearest_line.
4535 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4537 (read_abbrevs): Likewise
4538 (decode_line_info): Likewise.
4539 (parse_comp_unit): Likewise.
4540 (comp_unit_find_nearest_line): Likewise.
4541 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4542 * libbfd.h: Regenerate.
4543 * elf.c (_bfd_elf_find_nearest_line): Update call.
4544 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4545 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4546 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4547 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4548 (styp_to_sec_flags): Handle DWARF2 sections.
4549 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4550 to _bfd_find_nearest_line.
4551 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4552 call to _bfd_find_nearest_line.
4554 2000-12-08 Kazu Hirata <kazu@hxi.com>
4556 * coffgen.c: Fix formatting.
4557 * elf-m10300.c: Likewise.
4558 * elf32-i386.c: Likewise.
4559 * elf32-i960.c: Likewise.
4560 * elf32-m68k.c: Likewise.
4561 * elf32-mcore.c: Likewise.
4562 * elf32-ppc.c: Likewise.
4563 * elf32-sh.c: Likewise.
4564 * elf32-sparc.c: Likewise.
4565 * elf32-v850.c: Likewise.
4566 * elf64-alpha.c: Likewise.
4567 * elf64-hppa.c: Likewise.
4568 * elf64-mips.c: Likewise.
4569 * elf64-sparc.c: Likewise.
4571 2000-12-07 Kazu Hirata <kazu@hxi.com>
4573 * elf32-ppc.c: Fix formatting.
4574 * elf64-x86-64.c: Likewise.
4576 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4578 From Ralf Baechle <ralf@gnu.org>
4580 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4581 BFDs containing no sections or empty .text, .data or .bss sections
4582 to be merged, regardless of their flags.
4584 2000-12-06 Kazu Hirata <kazu@hxi.com>
4586 * elf32-m32r.c: Fix formatting.
4587 * elf32-m68hc11.c: Likewise.
4588 * elf32-m68hc12.c: Likewise.
4589 * elf32-m68k.c: Likewise.
4590 * elf32-mcore.c: Likewise.
4591 * elf32-pj.c: Likewise.
4592 * elf32-ppc.c: Likewise.
4594 2000-12-05 Kazu Hirata <kazu@hxi.com>
4596 * elf32-fr30.c: Fix formatting.
4597 * elf32-hppa.c: Likewise.
4598 * elf32-i370.c: Likewise.
4599 * elf32-i386.c: Likewise.
4600 * elf32-i860.c: Likewise.
4601 * elf32-i960.c: Likewise.
4603 2000-12-03 Kazu Hirata <kazu@hxi.com>
4605 * elf32-arm.h: Fix formatting.
4606 * elf32-avr.c: Likewise.
4607 * elf32-cris.c: Likewise.
4608 * elf32-d10v.c: Likewise.
4609 * elf32-d30v.c: Likewise.
4610 * elf-hppa.h: Likewise.
4611 * elf-m10200.c: Likewise.
4612 * elf-m10300.c: Likewise.
4614 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4616 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4617 bfd_mach_mips32_4k. Update FIXME comment.
4618 * archures.c (bfd_mach_mips32): New constant.
4619 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4620 the latter, renumber it.
4621 * bfd-in2.h (bfd_mach_mips32): New constant.
4622 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4623 the latter, renumber it.
4624 * cpu-mips.c (I_mips32): New constant.
4625 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4626 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4627 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4628 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4629 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4630 with E_MIPS_MACH_MIPS32_4K.
4631 (_bfd_mips_elf_final_write_processing): Replace
4632 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4633 bfd_mach_mips32 case.
4634 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4635 comparison with support for MIPS32.
4636 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4639 * aoutx.h (NAME(aout,machine_type)): Add cases for
4640 bfd_mach_mips5 and bfd_mach_mips64.
4641 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4642 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4643 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4644 (arch_info_struct): Add entries for bfd_mach_mips5 and
4646 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4647 _bfd_mips_elf_print_private_bfd_data): Add cases for
4648 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4649 (_bfd_mips_elf_final_write_processing): Add cases for
4650 bfd_mach_mips5 and bfd_mach_mips64.
4652 * aoutx.h (NAME(aout,machine_type)): Add a
4653 bfd_mach_mips_sb1 case.
4654 * archures.c (bfd_mach_mips_sb1): New constant.
4655 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4656 * cpu-mips.c (I_sb1): New constant.
4657 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4658 * elf32-mips.c (elf_mips_mach): Add case for
4660 (_bfd_mips_elf_final_write_processing): Add case for
4663 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4665 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4666 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4667 (sparc*-*-rtems*): Switched from a.out to ELF.
4669 2000-11-30 Jan Hubicka <jh@suse.cz>
4671 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4672 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4673 (elf64-x86-64.lo): Add dependencies.
4674 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4675 bfd_mach_x86_64_intel_syntax.
4676 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4677 * config.bfd (x86_64): Add.
4678 * configure.in: Add support for bfd_elf64_x86_64_vec.
4679 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4680 (bfd_i386_arch, i8086_ar): Link in.
4681 * elf64-x86-64.c: New file.
4682 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4683 * targets.c (bfd_elf64_x86_64_vec): Add.
4684 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4686 2000-11-30 Kazu Hirata <kazu@hxi.com>
4688 * xcofflink.c: Fix formatting.
4690 2000-11-28 Kazu Hirata <kazu@hxi.com>
4692 * aoutx.h: Fix formatting.
4693 * bfd-in.h: Likewise.
4694 * bfd-in2.h: Likewise.
4695 * cache.c: Likewise.
4696 * cisco-core.c: Likewise.
4697 * coff64-rs6000.c: Likewise.
4698 * coffcode.h: Likewise.
4699 * coffswap.h: Likewise.
4700 * corefile.c: Likewise.
4701 * elf32-mips.c: Likewise.
4703 2000-11-27 Kazu Hirata <kazu@hxi.com>
4705 * aout-adobe.c: Fix formatting.
4706 * coff64-rs6000.c: Likewise.
4707 * coffgen.c: Likewise.
4708 * cofflink.c: Likewise.
4710 2000-11-27 Philip Blundell <pb@futuretv.com>
4712 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4713 (obj_coff_strings_written): New accessor macro for above.
4714 * libcoff.h: Regenerate.
4715 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4717 * coffcode.h (coff_write_object_contents): No need to write out
4718 the string table if it's already been done.
4720 2000-11-22 Philip Blundell <pb@futuretv.com>
4722 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4723 weak undefined symbols.
4725 2000-11-24 Nick Clifton <nickc@redhat.com>
4727 * archures.c (bfd_mach_arm_5TE): Define.
4728 (bfd_mach_arm+XScale): Define.
4729 * bfd-in2.h: Regenerate.
4731 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4732 BFD_RELOC_ARM_PCREL_BLX.
4734 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4735 XScale machine numbers.
4737 * config.bfd (xscale-elf): Add target.
4738 (xscale-coff): Add target.
4740 * cpu-arm.c: Add xscale machine name.
4741 Add v5t, v5te and XScale machine numbers.
4743 2000-11-23 Kazu Hirata <kazu@hxi.com>
4745 * aix386-core.c: Fix formatting.
4747 2000-11-22 Jim Wilson <wilson@redhat.com>
4749 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4750 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4751 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4752 (ins_imms_scaled): Initialize sign_bit at function entry.
4753 (elf64_ia64_operands): Add missing initializers.
4754 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4755 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4756 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4757 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4758 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4760 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4761 and free_extsyms at function entry.
4762 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4763 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4764 (get_got): Delete unused local srel.
4765 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4766 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4768 2000-11-21 Kazu Hirata <kazu@hxi.com>
4770 * coff-a29k.c: Fix formatting.
4771 * coff-h8500.c: Likewise.
4772 * coff-i960.c: Likewise.
4773 * coff-ppc.c: Likewise.
4774 * coff-rs6000.c: Likewise.
4775 * coff-stgo32.c: Likewise.
4776 * coff-tic54x.c: Likewise.
4777 * coff-w65.c: Likewise.
4778 * cpu-h8500.c: Likewise.
4779 * cpu-hppa.c: Likewise.
4780 * cpu-ns32k.c: Likewise.
4781 * ecoff.c: Likewise.
4782 * ecofflink.c: Likewise.
4784 2000-11-21 Nick Clifton <nickc@redhat.com>
4786 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4787 remove possibility of infinite loop.
4789 2000-11-20 Kazu Hirata <kazu@hxi.com>
4791 * aix386-core.c: Fix formatting.
4792 * aout-adobe.c: Likewise.
4793 * aout-arm.c: Likewise.
4794 * aout-encap.c: Likewise.
4795 * aout-ns32k.c: Likewise.
4796 * aout-target.h: Likewise.
4797 * aout-tic30.c: Likewise.
4798 * aoutf1.h: Likewise.
4799 * aoutx.h: Likewise.
4800 * archive.c: Likewise.
4801 * bfd-in.h: Likewise.
4802 * bfd-in2.h: Likewise.
4806 2000-11-17 H.J. Lu <hjl@gnu.org>
4808 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4809 pltoff entries for DT_INIT and DT_FINI.
4810 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4811 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4814 2000-11-16 Richard Henderson <rth@redhat.com>
4816 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4817 (allocate_dynrel_entries): Likewise.
4818 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4819 (set_pltoff_entry): Likewise.
4820 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4821 (elfNN_ia64_reloc_type_lookup): Likewise.
4822 (elfNN_ia64_install_value): Likewise.
4823 (elfNN_ia64_relocate_section): Likewise.
4824 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4825 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4827 2000-11-16 Kazu Hirata <kazu@hxi.com>
4829 * cpu-a29k.c: Fix formatting.
4830 * cpu-alpha.c: Likewise.
4831 * cpu-arm.c: Likewise.
4832 * cpu-avr.c: Likewise.
4833 * cpu-d10v.c: Likewise.
4834 * cpu-h8500.c: Likewise.
4835 * cpu-hppa.c: Likewise.
4836 * cpu-i370.c: Likewise.
4837 * cpu-i386.c: Likewise.
4838 * cpu-i960.c: Likewise.
4839 * cpu-ia64-opc.c: Likewise.
4840 * cpu-ia64.c: Likewise.
4841 * cpu-m32r.c: Likewise.
4842 * cpu-m68hc11.c: Likewise.
4843 * cpu-m68hc12.c: Likewise.
4844 * cpu-m68k.c: Likewise.
4845 * cpu-m88k.c: Likewise.
4846 * cpu-mips.c: Likewise.
4847 * cpu-ns32k.c: Likewise.
4848 * cpu-pj.c: Likewise.
4849 * cpu-powerpc.c: Likewise.
4850 * cpu-sh.c: Likewise.
4851 * cpu-sparc.c: Likewise.
4852 * cpu-tic54x.c: Likewise.
4853 * cpu-v850.c: Likewise.
4854 * cpu-vax.c: Likewise.
4855 * cpu-w65.c: Likewise.
4856 * cpu-we32k.c: Likewise.
4857 * cpu-z8k.c: Likewise.
4858 * dwarf1.c: Likewise.
4859 * dwarf2.c: Likewise.
4861 2000-11-15 Kazu Hirata <kazu@hxi.com>
4863 * coff-arm.c: Fix formatting.
4864 * coff-ppc.c: Likewise.
4865 * coff-rs6000.c: Likewise.
4866 * coff-sh.c: Likewise.
4867 * coff-sparc.c: Likewise.
4868 * coff-tic30.c: Likewise.
4869 * coff-tic54x.c: Likewise.
4870 * coff-tic80.c: Likewise.
4871 * coff-w65.c: Likewise.
4872 * coff-we32k.c: Likewise.
4873 * coff-z8k.c: Likewise.
4875 2000-11-15 Richard Henderson <rth@redhat.com>
4877 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4878 section with the same ALLOC|LOAD flags as the source section.
4880 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4882 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4883 by STO_ALPHA constants.
4885 2000-11-14 Kazu Hirata <kazu@hxi.com>
4887 * coff-pmac.c: Fix formatting.
4888 * coff-ppc.c: Likewise.
4890 2000-11-13 H.J. Lu <hjl@gnu.org>
4892 * elflink.h (elf_link_add_object_symbols): Also add indirect
4893 symbols for common symbols with the default version.
4895 2000-11-09 Philip Blundell <pb@futuretv.com>
4897 * section.c (STD_SECTION): Set gc_mark flag.
4899 2000-11-11 Kazu Hirata <kazu@hxi.com>
4901 * coff-i960.c: Likewise.
4902 * coff-m68k.c: Likewise.
4903 * coff-m88k.c: Likewise.
4904 * coff-mcore.c: Likewise.
4905 * coff-mips.c: Likewise.
4907 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4909 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4911 2000-11-10 Kazu Hirata <kazu@hxi.com>
4913 * coff-h8300.c: Fix formatting.
4914 * coff-h8500.c: Likewise.
4915 * coff-i386.c: Likewise.
4916 * coff-i860.c: Likewise.
4917 * coff-i960.c: Likewise.
4918 * coff-ia64.c: Likewise.
4920 2000-11-09 Kazu Hirata <kazu@hxi.com>
4922 * archive.c: Fix formatting.
4923 * archures.c: Likewise.
4925 2000-11-07 Richard Henderson <rth@redhat.com>
4927 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4928 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4929 * section.c (bfd_set_section_contents): Call memcpy if
4930 section->contents set and location not equal to contents plus offset.
4932 2000-11-08 Kazu Hirata <kazu@hxi.com>
4934 * bfd-in.h: Fix formatting.
4935 * bfd-in2.h: Likewise.
4937 * binary.c: Likewise.
4939 * coff-a29k.c: Likewise.
4940 * coff-alpha.c: Likewise.
4941 * coff-apollo.c: Likewise.
4942 * coff-aux.c: Likewise.
4944 2000-11-07 Kazu Hirata <kazu@hxi.com>
4946 * aix386-core.c: Fix formatting.
4947 * aoutf1.h: Likewise.
4948 * aoutx.h: Likewise.
4949 * archures.c: Likewise.
4950 * armnetbsd.c: Likewise.
4952 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4954 * coff-h8300.c (special): Adjust reloc address.
4956 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4958 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4959 to differentiate elf32 and elf64 on ia64.
4960 * bfd-in2.h: Regenerate.
4961 * config.bfd: Add target for "ia64*-*-hpux*".
4962 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4963 * configure: Regenerate.
4964 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4965 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4967 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4968 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4969 * Makefile.in: Regnerate.
4970 * elf64-ia64.c: Deleted.
4971 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4973 2000-11-06 Kazu Hirata <kazu@hxi.com>
4975 * aout-adobe.c: Fix formatting.
4976 * aout-arm.c: Likewise.
4977 * aout-cris.c: Likewise.
4978 * aout-encap.c: Likewise.
4979 * aout-ns32k.c: Likewise.
4980 * aout-target.h: Likewise.
4981 * aout-tic30.c: Likewise.
4983 2000-11-05 Philip Blundell <philb@gnu.org>
4985 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4986 BFDs containing no sections to be merged, regardless of their flags.
4988 2000-11-04 Philip Blundell <philb@gnu.org>
4990 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4991 if a relocation for an undefined symbol also results in an
4994 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4996 * config.bfd: Add support for Sun Chorus.
4998 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5000 * configure.in: Recognize alpha-*-freebsd*.
5001 * configure: Regenerate.
5003 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5005 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5006 (Chunk): New global variable set by a parameter in objcopy.c.
5007 (S3Forced): New global variable set by a parameter in
5009 (srec_set_section_contents): If S3Forced is true, always generate
5011 (srec_write_section): Use 'Chunk' to limit maximum length of S
5014 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5016 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5017 * Makefile.in: Regenerate.
5018 * bfd-in2.h: Regenerate.
5019 * po/bfd.pot: Regenerate.
5021 2000-10-31 Philip Blundell <philb@gnu.org>
5023 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5024 EF_SOFT_FLOAT if it is defined.
5026 2000-10-27 Philip Blundell <philb@gnu.org>
5028 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5029 attempts to mix PIC code with non-PIC, just mark the output as
5030 being position dependent.
5031 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5032 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5033 all mismatches, not just the first one.
5035 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5037 * ieee.c (ieee_archive_p): Plug one of many possible
5038 memory leaks in error handling.
5040 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5042 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5043 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5045 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5046 sparc64_elf_object_p): Support v9b.
5047 * archures.c: Declare v8plusb and v9b machines.
5049 * cpu-sparc.c: Ditto.
5051 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5053 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5056 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5057 (SYMBOL_CALLS_LOCAL): New macro.
5058 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5059 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5060 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5061 (ppc_elf_relocate_section): Use flag variable to determine
5062 whether the relocation refers to a local symbol.
5063 Test whether a PLTREL24 reloc will produce a reloc by looking
5064 to see whether a PLT entry was made.
5066 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5068 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5069 entries that could serve as a definition for a weak symbol.
5071 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5073 From Ralf Baechle <ralf@gnu.org>
5075 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5076 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5077 against local symbols.
5078 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5080 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5082 * section.c (struct sec): Add kept_section.
5083 (struct bfd_comdat_info): Remove sec, we can use above.
5084 (STD_SECTION): Add initializer.
5085 (bfd_make_section_anyway): Init here too.
5087 * bfd-in2.h: Regenerate.
5089 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5091 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5092 fudge values for discarded link-once section symbols.
5094 * elf64-hppa.c: Include alloca-conf.h
5096 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5098 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5100 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5102 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5104 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5106 2000-10-10 Tom Rix <trix@redhat.com>
5108 * section.c (bfd_make_section_anyway): Release newsect ptr when
5109 newsect->symbol fails to alloc. Use bfd_release instead of free.
5111 2000-10-09 Richard Henderson <rth@cygnus.com
5113 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5114 (elf64_ia64_unwind_entry_compare): New.
5115 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5117 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5119 * elflink.h (size_dynamic_sections): Don't create various tags if
5120 .dynstr is excluded from the link. Don't set first dynsym entry
5121 if dynsymcount is zero.
5122 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5123 .dynsym excluded from the link. Don't try to write any dynamic
5124 sections excluded from the link.
5126 * elf.c (swap_out_syms): Handle global section symbols.
5128 2000-10-05 DJ Delorie <dj@redhat.com>
5130 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5131 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5132 (coff_write_relocs): write extended reloc count
5133 (coff_write_object_contents): account for extended relocs
5135 2000-10-05 Jim Wilson <wilson@cygnus.com>
5137 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5139 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5140 elf_backend_section_flags function.
5141 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5143 (elf64_ia64_section_flags): New function containing flag conversion
5145 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5146 * elfxx-target.h (elf_backend_section_flags): Define.
5147 (elfNN_bed): Initialize elf_backend_section_flags field.
5149 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5151 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5152 _bfd_elf32_gc_record_vtable. Correct a comment.
5154 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5156 From Ralf Baechle <ralf@gnu.org>
5158 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5159 produces binaries with got[1] = 0x80000001 to differenciate them
5160 for the dynamic linker from the broken binaries produced by old
5163 2000-09-30 Petr Sorfa <petrs@sco.com>
5165 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5166 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5167 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5168 * configure: Regenerate.
5170 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5172 Define two bfd_targets for absence and presence of leading
5173 underscore on symbols. Make sure to only link same kind.
5174 * elf32-cris.c (cris_elf_object_p,
5175 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5176 cris_elf_merge_private_bfd_data): New.
5177 (elf_backend_object_p, elf_backend_final_write_processing,
5178 bfd_elf32_bfd_print_private_bfd_data,
5179 bfd_elf32_bfd_merge_private_bfd_data): Define.
5180 <Target vector definition>: Include elf32-target.h twice with
5181 different macro settings:
5182 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5183 bfd_elf32_us_cris_vec.
5184 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5185 (elf_symbol_leading_char): First as 0, then '_'.
5186 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5187 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5188 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5189 * configure: Regenerate.
5190 * targets.c: Declare bfd_elf32_us_cris_vec.
5191 * po/bfd.pot: Regenerate.
5193 2000-09-29 Momchil Velikov <velco@fadata.bg>
5195 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5196 R_ARM_THM_PC22 relocations.
5198 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5200 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5202 2000-09-29 Momchil Velikov <velco@fadata.bg>
5204 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5205 is has the SEC_HAS_CONTENTS flag set.
5207 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5208 Hans-Peter Nilsson <hp@axis.com>
5210 * aout-cris.c (N_TXTADDR): Define.
5212 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5214 * som.c: Include alloca-conf.h.
5215 * Makefile.am: "make dep-am"
5216 * Makefile.in: Regenerate.
5218 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5220 * elf32-hppa.c (plt_stub): New.
5221 (PLT_STUB_ENTRY): Define.
5222 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5223 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5224 (elf32_hppa_link_hash_table_create): Init to suit.
5225 (elf32_hppa_check_relocs): Set has_12bit_branch and
5226 has_17bit_branch as appropriate.
5227 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5228 non-local functions.
5229 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5230 Add space for plt_stub as needed.
5231 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5232 functions at plt_stub.
5233 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5234 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5236 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5237 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5238 of fixed size, and if negative, disable handling of input sections
5239 before stub section. Set up default stub group size depending
5240 on detected branch relocs.
5241 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5242 ensure different offsets from sym_value aren't rounded to
5243 different 2k blocks. Use lrsel and rrsel for other stubs too for
5244 consistency rather than necessity.
5245 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5246 (final_link_relocate): Likewise.
5247 (elf32_hppa_relocate_section): Likewise.
5249 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5250 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5251 (elf_hppa_final_link_relocate): Handle them.
5252 (elf_hppa_relocate_insn): Likewise.
5253 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5255 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5257 * elfcode.h (elf_object_p): Preserve and clear abfd section
5258 information. Restore at error.
5260 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5262 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5263 is empty, make sure that its rva also 0. NT loader dislikes
5266 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5268 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5271 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5273 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5274 currently unused RELATIVE_DYNAMIC_RELOCS code.
5275 (hppa_discard_copies): Likewise.
5276 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5277 comments. Don't check non-code output sections for stub grouping.
5279 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5281 * section.c (bfd_get_unique_section_name): Return NULL if
5284 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5286 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5287 instruction sequence to actually work.
5288 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5291 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5293 * elf32-sh.c (sh_elf_relocate_section): Use
5294 _bfd_final_link_relocate to apply the relocation against a section
5295 symbol, when doing relocatable links.
5297 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5299 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5301 (stub_hash_newfunc): Here too.
5302 (hppa_add_stub): And here.
5303 (elf32_hppa_link_hash_table): Remove stub_section_created,
5304 reloc_section_created, first_init_sec and first_fini_sec. Add
5306 (elf32_hppa_link_hash_table_create): Init to suit.
5307 (hppa_get_stub_entry): Add support for grouping stub sections.
5308 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5309 section code. Index stub vars by section->id.
5310 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5311 exit paths. Zap allocation of above removed vars. Refine
5314 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5315 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5316 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5317 rather than pointer to bfd_link_info.
5318 (hppa_add_stub): Likewise.
5319 (final_link_relocate): Likewise.
5321 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5323 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5326 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5328 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5329 ld/emulparams/shelf.sh.
5331 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5333 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5334 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5335 * bfd-in2.h: Regenerate.
5337 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5339 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5340 LITUSE relocations incorrectly if -relax is specified on the ld
5341 command line and the displacement field of the load or store
5342 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5344 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5346 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5347 first_fini_sec here.
5348 (elf32_hppa_size_stubs): Instead correctly find the first .init
5349 and .fini section here.
5351 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5353 * elf32-hppa.c (clobber_millicode_symbols): New function.
5354 (elf32_hppa_size_dynamic_sections): Call it.
5356 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5358 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5359 packed. Add plabel, plt_abs packed booleans.
5360 (hppa_link_hash_newfunc): Init new fields.
5361 (PLABEL_PLT_ENTRY_SIZE): Define.
5362 (hppa_stub_name): Use size_t len vars.
5363 (hppa_add_stub): Likewise.
5364 (elf32_hppa_build_stubs): Likewise.
5365 (hppa_build_one_stub): Kill some compiler warnings.
5366 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5367 if dynamic linking. Munge the local plt offsets into
5368 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5369 size_t len vars. Add assert for plabel addend.
5370 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5371 (elf32_hppa_hide_symbol): New function.
5372 (elf_backend_hide_symbol): Define.
5373 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5374 with h->plabel set. Don't make plt entries to have dynamic syms
5375 when they have been forced local. If plt entry is used by a
5376 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5377 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5378 Set up .plt offsets for local syms.
5379 (elf32_hppa_relocate_section): Initialise plt entries for local
5380 syms. Leave weak undefined plabels zero. Make global plabel
5381 relocs against function symbol, and leave the addend zero.
5382 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5383 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5384 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5385 relocs instead of SEGREL32 for dynamic got relocs.
5386 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5387 (elf_backend_got_header_size): Adjust.
5388 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5390 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5391 (hppa_type_of_stub): Use it instead of #if 0
5392 (hppa_discard_copies): Use it here too.
5393 (elf32_hppa_size_dynamic_sections): And here.
5395 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5396 (elf32_hppa_link_hash_table_create): And here.
5397 (hppa_build_one_stub): And here. Instead keep track of stub
5398 offset using _raw_size.
5399 (elf32_hppa_size_stubs): Likewise.
5400 (elf32_hppa_build_stubs): Likewise.
5401 (hppa_size_one_stub): Likewise. Resize reloc section too.
5403 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5404 first_fini_sec handling. Don't search for reloc section or set
5405 hplink->reloc_section_created here.
5406 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5407 set reloc_section_created here.
5408 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5409 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5411 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5413 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5414 with `hplink->root.'.
5415 (elf32_hppa_check_relocs): Likewise.
5416 (elf32_hppa_gc_sweep_hook): Likewise.
5417 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5418 (hppa_handle_PIC_calls): Likewise.
5419 (elf32_hppa_size_dynamic_sections): Likewise.
5420 (elf32_hppa_set_gp): Likewise.
5421 (elf32_hppa_relocate_section): Likewise.
5422 (elf32_hppa_finish_dynamic_symbol): Likewise.
5423 (elf32_hppa_finish_dynamic_sections): Likewise.
5425 From David Huggins-Daines <dhd@linuxcare.com>
5426 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5427 defined weak symbols in shared links.
5428 (final_link_relocate): Calls to defined weak symbols in shared
5429 objects must go via import stubs, as the target might not be known
5432 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5434 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5435 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5436 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5437 the original entries with EMPTY_HOWTOs, and added new ones to fill
5439 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5440 (sh_elf_relocate_section): Likewise.
5442 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5444 * cpu-mips.c (arch_info_struct): Add mips:4K
5445 * bfd-in2.h (bfd_mach_mips4K): New define.
5446 * archures.c: Add bfd_mach_mips4K to comment.
5447 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5448 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5450 2000-09-13 Marco Franzen <marcof@thyron.com>
5452 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5453 use size_t as a counter.
5454 (som_write_space_strings): Similarly.
5456 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5458 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5460 (elf32_i860_relocate_section): Invoke new function from here.
5462 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5464 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5467 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5469 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5470 target section name instead of dumping core when the target symbol is
5473 2000-09-09 Kazu Hirata <kazu@hxi.com>
5475 * riscix.c: Remove DEFUN.
5477 2000-09-08 Nick Clifton <nickc@redhat.com>
5479 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5480 initialise flags in output bfd if the input bfd is the default
5481 architecture with the default flags.
5483 2000-09-08 Kazu Hirata <kazu@hxi.com>
5485 * archive.c: Fix formatting.
5486 * coff-arm.c: Likewise.
5487 * doc/chew.c: Likewise.
5489 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5491 * section.c (bfd_get_unique_section_name): Put a dot before the
5494 2000-09-07 Kazu Hirata <kazu@hxi.com>
5496 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5497 * elf.c: Fix formatting.
5499 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5501 * config.bfd (sh-*-linux*): Added.
5502 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5503 * targets.c: Declare them.
5504 * elf32-sh-lin.c: New file.
5505 * Makefile.am: Compile it.
5506 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5507 * configure, Makefile.in: Rebuilt.
5509 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5511 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5512 pseduo-section when determining where the TOC ends.
5514 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5515 output x_tvndx as it is only two bytes wide.
5517 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5518 reloc is 26 or 32 bits wide.
5520 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5521 for relocs that don't change anything. Also look at the full
5524 2000-09-06 Philip Blundell <philb@gnu.org>
5526 * config.bfd (arm*-*-uclinux*): New target.
5528 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5530 * configure: Rebuilt with new libtool.m4.
5532 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5534 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5535 word for variable name.
5536 * bfd-in2.h: Regenerate.
5538 2000-09-05 Nick Clifton <nickc@redhat.com>
5540 * config.in: Regenerate.
5541 * libbfd.h: Regenerate.
5542 * po/bfd.pot: Regenerate.
5543 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5546 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5548 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5550 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5552 Shared library and PIC support.
5553 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5554 (GOT_ENTRY_SIZE): New.
5555 (ELF_DYNAMIC_INTERPRETER): New.
5556 (STUB_SUFFIX): Define.
5557 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5558 (RELATIVE_DYNAMIC_RELOCS): Define.
5559 (enum elf32_hppa_stub_type): New.
5560 (struct elf32_hppa_stub_hash_entry): Rename offset to
5561 stub_offset. Add a number of new fields.
5562 (struct elf32_hppa_link_hash_entry): New.
5563 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5565 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5566 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5567 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5569 (hppa_link_hash_newfunc): New function.
5570 (elf32_hppa_link_hash_table_create): Use above function. Init new
5572 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5573 instead of addend, and remove sym_name from args. Don't use
5574 symbol name for local syms, instead use sym index.
5575 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5576 stub type rather than size. Pass in hash and handle import stub
5577 case. Also pass in reloc instead of offset so we can calculate
5578 PCREL22F and PCREL12F branches properly.
5579 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5580 import and export stubs too.
5581 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5582 import and export stub sizing.
5583 (elf32_hppa_check_relocs): New function.
5584 (elf32_hppa_adjust_dynamic_symbol): New function.
5585 (hppa_discard_copies): New function.
5586 (elf32_hppa_size_dynamic_sections): New function.
5587 (elf_backend_size_dynamic_sections): Define.
5588 (elf32_hppa_finish_dynamic_symbol): New function.
5589 (elf_backend_finish_dynamic_symbol): Define.
5590 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5591 some local vars into the link hash table too. For shared links,
5592 trundle over function syms, generating export stubs. Handle
5593 PCREL22F branches. Break out stub creation code from here..
5594 (hppa_add_stub): .. to here. New function.
5595 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5596 call the bfd linker. Use elf_gp to record global pointer.
5597 Calculate a value from sections if $global$ is missing.
5598 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5599 (elf32_hppa_gc_mark_hook): New function.
5600 (elf_backend_gc_mark_hook): Define.
5601 (elf32_hppa_gc_sweep_hook): New function.
5602 (elf_backend_gc_sweep_hook): Define.
5603 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5604 Add rel to args, and remove howto, input_bfd, offset, addend,
5605 sym_name as we can recalculate these locally. Handle calls to
5606 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5607 handling of undefined weak syms. Check that stubs are in range.
5608 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5609 message on hitting a DPREL21L reloc that needs fixing. Subtract
5610 off PC for PCREL14F. Break out code that does a stub lookup from
5612 (hppa_get_stub_entry): ..to here. New function.
5613 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5614 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5616 (elf32_hppa_finish_dynamic_sections): New function.
5617 (elf_backend_finish_dynamic_sections): Define.
5618 (elf_backend_final_write_processing) Define.
5619 (hppa_handle_PIC_calls): New function.
5620 (elf32_hppa_build_stubs): Call it. Pass link_info to
5621 hppa_build_one_stub.
5622 (elf32_hppa_create_dynamic_sections): New function
5623 to create .plt and .got then set .plt flags correctly.
5624 (elf_backend_create_dynamic_sections): Define.
5625 (elf32_hppa_object_p): New function.
5626 (elf_backend_object_p): Define.
5627 (elf32_hppa_elf_get_symbol_type): New function.
5628 (elf_backend_get_symbol_type): Define.
5629 (elf_backend_can_gc_sections): Define.
5630 (elf_backend_want_got_plt): Define.
5631 (elf_backend_plt_alignment): Set to 2.
5632 (elf_backend_plt_readonly): Define.
5633 (elf_backend_want_plt_sym): Define.
5634 (elf_backend_got_header_size): Reserve one entry.
5636 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5637 (elf32_hppa_size_stubs): Pass in multi_subspace.
5638 (elf32_hppa_set_gp): Declare.
5640 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5641 (bfd_get_unique_section_name): New function.
5642 * bfd-in2.h: Regenerate.
5644 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5645 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5648 From David Huggins-Daines <dhd@linuxcare.com>
5649 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5650 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5651 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5652 been updated in finish_dynamic_symbol before modifying function
5655 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5656 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5657 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5658 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5659 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5660 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5661 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5662 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5664 From David Huggins-Daines <dhd@linuxcare.com>
5665 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5666 style of local labels as well.
5668 2000-09-03 Philip Blundell <philb@gnu.org>
5670 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5671 references to undefined symbols in debugging sections.
5673 2000-09-02 H.J. Lu <hjl@gnu.org>
5675 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5676 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5677 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5680 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5682 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5683 (elf32_i860_is_local_label_name): New function and prototype.
5685 2000-09-02 Nick Clifton <nickc@redhat.com>
5687 * configure.in: Increase version number to 2.10.91.
5688 * configure: Regenerate.
5689 * aclocal.m4: Regenerate.
5690 * config.in: Regenerate.
5691 * po/bfd.pot: Regenerate.
5693 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5695 * elf.c (_bfd_elf_make_section_from_shdr): Add
5696 .gnu.linkobce.wi. to the list of debug section names.
5698 2000-09-02 Nick Clifton <nickc@redhat.com>
5700 * dwarf2.c (find_debug_info): New function: Locate a section
5701 containing dwarf2 debug information.
5702 (bfd_dwarf2_find_nearest_line): Find all sections containing
5703 debug information and include them in the stash.
5705 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5707 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5708 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5709 (sh_reloc_map): Add new relocs.
5710 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5711 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5712 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5713 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5715 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5716 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5717 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5718 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5719 New array constants.
5720 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5722 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5723 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5724 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5725 elf_sh_plt_reloc_offset): Define.
5726 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5727 elf_sh_link_hash_table): New structs.
5728 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5729 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5731 (elf_backend_create_dynamic_sections,
5732 bfd_elf32_bfd_link_hash_table_create,
5733 elf_backend_adjust_dynamic_symbol,
5734 elf_backend_size_dynamic_sections,
5735 elf_backend_finish_dynamic_symbol,
5736 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5737 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5738 elf_backend_got_header_size, elf_backend_plt_header_size):
5740 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5741 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5743 * bfd-in2.h, libbfd.h: Rebuilt.
5745 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5747 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5750 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5752 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5753 not initialized, set them to indicate the SH1 instruction set.
5755 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5757 * acinclude.m4: Include libtool and gettext macros from the
5759 * aclocal.m4, configure: Rebuilt.
5761 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5763 * elf.c: Eliminate references to __sparcv9 macro; replace with
5764 autoconf variables HAVE_PSINFO32_T etc.
5765 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5766 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5768 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5769 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5770 * aclocal.m4: Ditto.
5771 * configure: Regenerate.
5773 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5775 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5776 for any shared link, not just shared -Bsymbolic.
5777 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5778 any shared link, and pass link info to it.
5779 (elf_i386_size_dynamic_sections): Update comment.
5780 (elf_i386_discard_copies): Modify to discard relocs for symbols
5781 that have been forced local.
5782 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5783 that have been forced local.
5785 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5787 * elflink.h (elf_link_add_object_symbols): Allow common
5788 symbols to have an alignment of 1 if explicitly requested, and
5789 not overridden by other definitions.
5791 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5793 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5794 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5796 2000-08-22 H.J. Lu <hjl@gnu.org>
5798 * elf-bfd.h (elf_link_hash_table): Add runpath.
5800 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5801 * bfd-in2.h: Rebuilt.
5803 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5804 "runpath" field to NULL.
5805 (bfd_elf_get_runpath_list): New function.
5807 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5810 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5812 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5813 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5814 explicitly. Improve validation of r_type.
5816 2000-08-21 H.J. Lu <hjl@gnu.org>
5818 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5819 dynamic allocated content space. Add a comment to remind us that
5820 one day this ought to be fixed.
5821 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5822 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5823 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5825 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5827 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5828 field with the newly relocated value instead of adding it to the
5829 existing immediate field.
5830 (elf32_i860_relocate_splitn): Likewise.
5831 (elf32_i860_relocate_highadj): Likewise.
5833 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5835 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5836 was previously just a stub).
5838 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5840 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5842 (_bfd_elf_create_dynamic_sections): Likewise.
5844 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5846 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5847 for undefined symbols to be the beginning of the section.
5849 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5850 four extra entries at the beginning of the .rela.plt section.
5851 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5852 section to account for the four reserved entries in the .plt section.
5854 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5856 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5857 to the list of NOPs we recognize after a branch-and-link.
5858 Use the ori NOP when one is needed.
5860 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5863 2000-08-14 Jim Wilson <wilson@cygnus.com>
5865 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5866 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5867 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5870 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5872 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5874 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5876 * elf32-i860.c (elf32_i860_relocate_section): New function.
5877 (i860_final_link_relocate): New function.
5878 (elf32_i860_relocate_splitn): New function.
5879 (elf32_i860_relocate_pc16): New function.
5880 (elf32_i860_relocate_highadj): New function.
5881 (elf32_i860_howto): Minor adjustments to some relocations.
5882 (elf_info_to_howto_rel): Define.
5883 (elf_backend_relocate_section): Define.
5885 2000-08-10 Nick Clifton <nickc@cygnus.com>
5887 * elf32-arm.h: Fix formatting.
5889 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5891 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5893 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5895 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5897 2000-08-07 Kazu Hirata <kazu@hxi.com>
5899 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5900 * elf64-ia64.c: Fix a typo.
5902 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5904 * elf32-i860.c (elf32_i860_howto_table): New structure.
5905 (lookup_howto): New function.
5906 (elf32_i860_reloc_type_lookup): New function.
5907 (elf32_i860_info_to_howto_rela): New function.
5908 (elf_code_to_howto_index): New structure.
5909 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5910 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5911 elf32_i860_reloc_type_lookup.
5913 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5915 * som.c (struct fixup_format): Constify `format'.
5916 (som_hppa_howto_table): Use SOM_HOWTO macro.
5917 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5918 (som_bfd_reloc_type_lookup): Likewise.
5919 (compare_subspaces): Remove unused `count1', `count2'.
5920 (som_begin_writing): Remove unused `total_reloc_size'.
5921 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5922 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5923 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5924 (som_find_nearest_line): Decorate unused parameter(s).
5925 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5926 (som_bfd_link_split_section): Likewise.
5928 2000-08-03 Nick Clifton <nickc@cygnus.com>
5930 * section.c: Restore backed out code.
5931 * elf.c: Restore backed out code.
5932 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5933 binaries from working.
5934 * bfd-in2.h: Regenerate.
5936 2000-08-03 H.J. Lu <hjl@gnu.org>
5938 * section.c: Back out the change made by Nick Clifton
5939 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5941 * bfd-in2.h: Likewise.
5944 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5946 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5948 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5950 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5951 * bfd-in2.h, libbfd.h: Regenerate.
5953 2000-07-31 Nick Clifton <nickc@cygnus.com>
5955 * section.c (struct sec): Add new boolean field 'segment_mark'.
5956 (STD_SECTION): Initialise new field to zero.
5958 * bfd-in2.h: Regenerate.
5960 * elf.c (copy_private_bfd_data): Reorganise section to segment
5961 mapping to cope with moved sections requiring new segments,
5962 and overlapping segments.
5963 (SEGMENT_END): New macro: Return the end address of a segment.
5964 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5965 contains a section by comparing their VMA addresses.
5966 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5967 contains a section by comparing their LMA addresses.
5968 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5969 section should be included in a segment.
5970 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5971 follows another in memory.
5972 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5975 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5977 * cpu-i860.c: Added comments.
5979 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5980 bfd_elf32_i860_little_vec.
5981 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5982 (ELF_MAXPAGESIZE): Changed to 4096.
5984 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5986 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5988 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5989 config for little endian elf32 i860.
5990 (targ_defvec): Define for the new config above
5991 as "bfd_elf32_i860_little_vec".
5992 (targ_selvecs): Define for the new config above
5993 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5995 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5998 * configure: Regenerated.
6000 2000-07-27 H.J. Lu <hjl@gnu.org>
6002 * elflink.h (elf_merge_symbol): Take one more argument,
6003 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6004 entry. Don't overide the existing weak definition if dt_needed
6006 (elf_link_add_object_symbols): Pass dt_needed to
6007 elf_merge_symbol ().
6009 2000-07-27 Nick Clifton <nickc@cygnus.com>
6011 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6014 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6016 * configure.host (*-*-aix*): AIX has 'long long' always.
6018 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6019 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6020 (xcoff_write_archive_contents_big): Don't update the offset
6021 of the symbol table, xcoff_write_armap will do it.
6023 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6025 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6026 of dynobj for SGI_COMPAT checks.
6028 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6030 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6031 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6032 * bfd-in2.h: Regenerate.
6034 2000-07-21 Nick Clifton <nickc@cygnus.com>
6036 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6037 range symbol indices in relocs and issue an error message.
6039 2000-07-20 H.J. Lu <hjl@gnu.org>
6041 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6042 info->new_dtags when setting DT_FLAGS_1. It will only be set
6043 by the new linker options. It shouldn't break anything.
6045 2000-07-20 H.J. Lu <hjl@gnu.org>
6047 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6048 only if info->new_dtags is true.
6050 2000-07-20 H.J. Lu <hjl@gnu.org>
6052 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6053 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6055 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6057 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6058 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6059 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6060 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6061 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6062 * Makefile.in: Rebuild.
6063 * aclocal.m4: Rebuild.
6064 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6065 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6066 (bfd_cris_arch): Declare.
6067 (bfd_archures_list): Add bfd_cris_arch.
6068 * bfd-in2.h: Rebuild.
6069 * config.bfd: (cris-*-*): New target.
6070 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6071 * configure: Rebuild.
6072 * elf.c (prep_headers): Add bfd_arch_cris.
6073 * libbfd.h: Rebuild.
6074 * libaout.h (enum machine_type): Add M_CRIS.
6075 * reloc.c: Add CRIS relocations.
6076 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6077 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6078 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6079 * po/POTFILES.in, po/bfd.pot: Regenerate.
6081 2000-07-19 H.J. Lu <hjl@gnu.org>
6083 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6084 DF_TEXTREL if DT_TEXTREL is set.
6085 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6086 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6087 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6088 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6089 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6090 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6091 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6092 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6093 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6094 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6096 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6097 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6099 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6101 2000-07-19 H.J. Lu <hjl@gnu.org>
6103 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6104 * bfd-in2.h: Rebuild.
6106 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6107 (elf_dt_soname): New.
6109 * elf.c (bfd_elf_set_dt_needed_soname): New.
6111 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6112 entry if the shared object loaded by DT_NEEDED is used to
6113 resolve the reference in a regular object.
6115 2000-07-19 H.J. Lu <hjl@gnu.org>
6117 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6118 DT_DEPAUDIT and DT_AUDIT as strings.
6120 2000-07-19 Nick Clifton <nickc@cygnus.com>
6122 * format.c: Fix formatting.
6124 2000-07-19 H.J. Lu <hjl@gnu.org>
6126 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6128 2000-07-19 H.J. Lu <hjl@gnu.org>
6130 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6131 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6132 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6133 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6134 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6135 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6136 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6138 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6140 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6141 renamed functions from here...
6142 (assign_section_numbers): Use renamed functions.
6143 (prep_headers): Use renamed functions.
6145 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6146 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6147 * bfd-in2.h: Regenerate.
6149 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6151 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6152 parenthesis in if statement.
6154 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6156 Enable the support for Traditional MIPS.
6157 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6158 return ict_none appropriately for traditional mips targets.
6159 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6160 (STUB_MOVE): Conditionalize for traditonal mips.
6161 (STUB_LI16): Likewise.
6162 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6163 room for RTPROC header.
6164 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6165 the permission for the PT_DYNAMIC as read, write and execute.
6166 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6167 for traditonal mips.
6168 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6169 _DYNAMIC_LINKING for traditonal mips.
6170 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6171 in case of traditonal mips.
6172 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6173 entry is required. For a function if PLT is not required then set the
6174 corresponding hash table entry to 0.
6175 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6177 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6178 shared object set the value to 0.
6179 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6180 _DYNAMIC_LINKING for traditonal mips.
6181 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6182 for traditonal mips.
6184 2000-07-15 H.J. Lu <hjl@gnu.org>
6186 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6188 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6190 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6191 out a structure that is BFD_IN_MEMORY.
6193 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6195 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6196 bfd pointer. Print section id instead of bfd pointer for local
6197 syms. Prefix addend with `+' for global syms as well as local.
6198 Correct calculation of name component lengths.
6199 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6201 From David Huggins-Daines <dhd@linuxcare.com>
6202 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6203 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6204 (elf64_hppa_modify_segment_map): Likewise.
6206 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6208 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6209 addresses to be "naturally" sign extended. Return -1 if unknown.
6210 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6211 * bfd-in2.h: Regenerate.
6213 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6215 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6216 and ECOF_SIGNED_64 to list ways to extract an offset.
6217 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6218 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6220 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6221 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6223 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6225 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6226 bfd_get_start_address.
6227 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6228 (elf_swap_ehdr_out): Ditto.
6230 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6232 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6233 compatibility with older binutils.
6235 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6237 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6238 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6240 From Ryan Bradetich <rbradetich@uswest.net>
6241 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6242 (parse_line_table): Ditto.
6243 (_bfd_dwarf1_find_nearest_line): Ditto.
6244 * syms.c (cmpindexentry): Remove extra `*' from params.
6246 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6248 * elf32-mips.c (sort_dynamic_relocs): New Function.
6249 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6250 via qsort to sort the dynamic relocations in increasing r_symndx
6253 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6255 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6256 ATTRIBUTE_UNUSED to unused args.
6257 (get_opd): Likewise.
6258 (get_plt): Likewise.
6259 (get_dlt): Likewise.
6260 (get_stub): Likewise.
6261 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6262 (elf64_hppa_link_output_symbol_hook): Likewise.
6263 (elf64_hppa_check_relocs): Delete unused var.
6264 (elf64_hppa_size_dynamic_sections): Likewise.
6265 (elf64_hppa_finalize_opd): Likewise.
6266 (elf64_hppa_finalize_dynreloc): Likewise.
6267 (elf64_hppa_modify_segment_map): Likewise.
6268 (elf64_hppa_finish_dynamic_sections): Likewise.
6270 * elf-hppa.h (elf_hppa_final_write_processing): Add
6271 ATTRIBUTE_UNUSED to unused args.
6272 (elf_hppa_final_link_relocate): Likewise.
6273 (elf_hppa_record_segment_addrs): Add paretheses.
6274 (elf_hppa_relocate_section): Constify dyn_name.
6276 From David Huggins-Daines <dhd@linuxcare.com>
6277 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6278 rearrange case statement so that it gets preferred to 32-bit ones.
6280 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6281 asection->id instead of address of asection structure.
6282 (elf32_hppa_size_stubs): Likewise.
6284 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6285 for .init* and .fini*.
6287 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6288 and addends used in stub names to 32 bits.
6289 (elf32_hppa_size_stubs): Likewise.
6291 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6292 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6293 not bfd_put_64. Fix minor comment typo and formatting.
6295 Changes to create multiple linker stubs, positioned immediately
6296 before the section where they are required.
6297 * elf32-hppa.c: Don't include hppa_stubs.h.
6298 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6299 (elf32_hppa_stub_hash_table): Delete.
6300 (elf32_hppa_link_hash_entry): Delete.
6301 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6302 stub_hash_table, and store the struct here rather than a pointer.
6303 Delete output_symbol_count. Add offset array. Change
6304 global_value to a bfd_vma.
6305 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6306 (elf32_hppa_stub_hash_traverse): Delete.
6307 (elf32_hppa_name_of_stub): Delete.
6308 (elf32_hppa_link_hash_lookup): Delete.
6309 (elf32_hppa_link_hash_traverse): Delete.
6310 (elf32_hppa_stub_hash_table_init): Delete.
6311 (elf32_hppa_size_of_stub): Pass input section and offset rather
6312 than location and calculate location here. Don't pass name as all
6313 stubs are now the same size.
6314 (elf32_hppa_stub_hash_newfunc): Init new fields.
6315 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6317 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6318 comparing against ints. Rewrite stub handling code.
6319 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6320 Case enums to int before comparing against ints. Remove
6321 bfd_reloc_dangerous case.
6322 (elf32_hppa_build_one_stub): Rewrite.
6323 (elf32_hppa_size_one_stub): New function.
6324 (elf32_hppa_build_stubs): Rewrite.
6325 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6326 Rewrite stub-handling specific code.
6328 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6330 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6332 * hppa_stubs.h: Delete.
6333 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6334 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6335 * Makefile.in: Regenerate.
6337 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6340 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6342 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6343 and section name for bfd_reloc_notsupported error message.
6344 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6345 bfd_reloc_notsupported.
6346 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6348 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6349 undefined weak symbols for all relocs.
6350 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6351 offsets are relative to one past the delay slot.
6352 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6353 branch destination. Put addend into stub name too.
6354 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6355 adjust by 8 when deciding whether a linker stub is needed. Put
6356 addend into stub name as for above.
6358 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6359 various args and vars.
6360 (elf32_hppa_bfd_final_link_relocate): Here too.
6361 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6362 inner block var to avoid shadowing.
6364 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6366 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6367 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6368 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6370 * libhppa.h: Change practically all unsigned ints to plain ints.
6371 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6374 From Ryan Bradetich <rbradetich@uswest.net>
6375 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6376 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6378 From David Huggins-Daines <dhd@linuxcare.com>
6379 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6380 to the new OP_* ones.
6382 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6383 error exit. Bail out earlier on plabel relocs that we aren't
6384 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6385 string, and then don't free our copy.
6386 (elf32_hppa_build_one_stub): Make insn unsigned int.
6388 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6389 available with BL, not BE and BLE.
6391 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6392 code for elf arg relocs.
6393 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6394 argument with elf_link_hash_entry h. Handle undefined weak
6395 symbols. Move $global$ lookup from here...
6396 (elf32_hppa_relocate_section): ...to here. Return correct error
6397 message for non-handled relocs.
6398 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6399 wrong test was -0x3ffff to +0x40000.
6401 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6402 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6403 Handle them as such.
6404 (elf_hppa_relocate_insn): Fix a typo.
6406 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6407 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6408 assemble_17, assemble_21): Delete.
6409 Supply defines for all 64 possible opcodes.
6410 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6411 formats. Handle COMICLR.
6412 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6415 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6416 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6417 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6419 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6420 the local syms - did this code get deleted accidentally? Ignore
6421 undefined and undefweak syms.
6423 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6424 block. Use it instead of elf64_hppa_hash_table (info).
6425 (elf_hppa_final_link_relocate): Use hppa_info instead of
6426 elf64_hppa_hash_table (info).
6428 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6429 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6430 (hppa_rebuild_insn): Mask immediate bits here instead.
6431 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6433 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6435 * section.c (struct sec): Add id field. Tidy comment formatting.
6436 (bfd_make_section_anyway): Set id.
6437 (STD_SECTION): Init id too.
6438 Change CONST to const throughout.
6439 * archures.c (bfd_arch_info): Tidy comment.
6440 (bfd_arch_list): Change a CONST to const.
6441 * libbfd-in.h: Tidy comments and replace CONST with const.
6442 * elf-bfd.h: Likewise.
6443 * libbfd.h: Regenerate.
6444 * bfd-in2.h: Regenerate.
6445 * libcoff.h: Regenerate.
6447 2000-07-07 DJ Delorie <dj@redhat.com>
6449 * archive.c (_bfd_write_archive_contents): Add an informative
6452 2000-07-06 Kazu Hirata <kazu@hxi.com>
6454 * srec.c: Fix formatting.
6456 2000-06-05 DJ Delorie <dj@redhat.com>
6460 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6462 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6463 value of PC-relative offsets.
6465 2000-07-03 Jim Wilson <wilson@cygnus.com>
6467 * elf64-alpha.c (alpha_elf_size_info): New.
6468 (elf_backend_size_info): Define to alpha_elf_size_info.
6469 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6471 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6473 * elf32-mips.c: Include elf32-target.h again for the traditional
6476 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6478 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6479 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6480 (avr_info_to_howto_rela): Likewise.
6481 (elf32_avr_gc_mark_hook): Likewise.
6482 (elf32_avr_gc_sweep_hook): Likewise.
6483 (elf32_avr_relocate_section): Likewise.
6485 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6487 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6488 an external symbol for a non-shared, non-relocatable link.
6490 2000-07-03 Nick Clifton <nickc@redhat.com>
6492 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6493 is an external symbol.
6494 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6497 2000-07-03 Kazu Hirata <kazu@hxi.com>
6499 * reloc16.c: Fix formatting.
6501 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6503 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6504 to add a new target for traditional mips i.e
6505 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6506 * configure.in: Likewise.
6507 * configure: Rebuild.
6508 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6510 (bfd_elf32_tradlittlemips_vec): Likewise.
6511 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6512 to see that elfNN_bed does not get redefined even if the target file
6513 is included twice for a chip. See elf32-mips.c.
6515 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6517 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6518 (CLEANFILES): Add DEPA.
6519 * Makefile.in: Regenerate.
6521 2000-06-30 DJ Delorie <dj@cygnus.com>
6523 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6524 can't assume the PE header is at 0x80.
6526 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6528 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6530 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6532 * go32stub.h: Update stub.
6534 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6536 * archures.c (bfd_mach_avr5): Define.
6537 * bfd-in2.h (bfd_mach_avr5): Define.
6538 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6539 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6540 (compatible): Update comment. Add missing test.
6541 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6542 for avr2 and avr4. Simplify 8K wrap code.
6543 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6544 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6546 2000-06-26 Kazu Hirata <kazu@hxi.com>
6548 * coff-h8300.c: Fix formatting.
6549 * cpu-h8300.c: Likewise.
6551 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6553 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6554 for local symbols whose names are unknown.
6556 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6558 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6560 * Makefile.in: Regenerate.
6561 * doc/Makefile.in: Regenerate.
6563 2000-06-20 H.J. Lu <hjl@gnu.org>
6565 * Makefile.am: Rebuild dependency.
6566 * Makefile.in: Rebuild.
6568 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6570 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6571 (elf_backend_copy_indirect_symbol): Map to the new function.
6573 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6575 * archive.c (normalize): Correct pointer comparison when checking
6577 (bfd_bsd_truncate_arname): Likewise.
6578 (bfd_gnu_truncate_arname): Likewise.
6580 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6582 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6583 sections elf_{text,data}_{section,symbol}.
6584 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6585 (_bfd_mips_elf_hide_symbol): New function.
6586 (elf_backend_hide_symbol): Map to the new function.
6587 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6588 definitions of mips_elf_{text,data}_{section,symbol}.
6589 (mips_elf_local_relocation_p): Try to find the direct symbol
6590 based on new check_forced argument.
6591 (mips_elf_calculate_relocation): Use new version of
6592 mips_elf_local_relocation_p.
6593 (mips_elf_relocate_section): Likewise.
6594 (_bfd_mips_elf_relocate_section): Likewise.
6595 (mips_elf_sort_hash_table): Only assert that have enough GOT
6597 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6598 entry if the relocation based on the new external argument.
6599 (mips_elf_create_dynamic_relocation): Assert that we have a
6600 section contents allocated where we can swap out the dynamic
6602 (mips_elf_calculate_relocation): Find the real hash-table entry
6603 correctly by using h->root.root.type. Only create a dynamic
6604 relocation entry if the symbol is defined in a shared library.
6605 Create an external GOT entry for the GOT16 relocation if the
6606 symbol was forced local.
6607 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6608 dynamic index if the symbol was forced local.
6610 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6612 * elf32-mips.c: Fix typos in comments.
6614 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6616 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6619 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6621 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6622 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6623 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6624 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6625 (bfd_elf32_m68hc11_vec): Likewise.
6626 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6627 Supports 68hc11 & 68hc12 at the same time.
6628 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6630 (bfd_elf32_m68hc11_vec): Likewise.
6631 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6632 * archures.c (bfd_m68hc12_arch): Define and register in global list
6633 (bfd_m68hc11_arch): Likewise.
6634 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6635 BFD_RELOC_M68HC11_3B): Define.
6636 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6637 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6639 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6641 * elf_bfd.h (struct elf_backend_data): Add info argument to
6642 elf_backend_hide_symbol.
6643 (_bfd_elf_link_hash_hide_symbol): Likewise.
6644 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6645 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6646 * elflink.h (elf_link_add_object_symbols): Likewise.
6647 (elf_link_assign_sym_version): Likewise.
6649 2000-06-18 H.J. Lu <hjl@gnu.org>
6651 * coff-i386.c (coff_i386_reloc): Don't return in case of
6652 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6653 Compensate PE relocations when linking with non-PE object
6654 files to generate a non-PE executable.
6656 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6658 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6659 GOT entries if we're doing a static link or -Bsymbolic link.
6661 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6663 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6664 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6666 (elf_link_output_relocs): Likewise.
6667 (elf_reloc_link_order): Likewise.
6669 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6671 * archures.c (enum bfd_architecture): #define constants for
6672 PowerPc and RS6000 machine numbers.
6673 * bfd-in2.h: Regenerate.
6674 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6675 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6676 and RS6000 machine numbers using #defined constants from
6678 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6679 machine numbers using #defined constants from archures.c. Add
6680 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6681 64-bit words in 620 entry.
6682 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6684 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6686 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6688 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6689 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6690 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6692 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6694 * bfd-in.h (bfd_family_coff): Define.
6695 * bfd-in2.h: Regenerate.
6696 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6697 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6698 instead of bfd_target_coff_flavour.
6699 * cofflink.c (_bfd_coff_final_link): Likewise.
6700 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6701 exclude XCOFF files.
6702 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6704 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6705 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6706 * xcofflink.c (XCOFF_XVECP): Delete.
6707 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6708 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6709 bfd_xcoff_record_link_assignment,
6710 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6711 check for bfd_target_xcoff_flavour.
6713 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6715 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6717 (read_hdr): New function.
6718 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6719 of trying to extract individual registers. Set abfd->arch_info
6720 to match the architecture that created the core file.
6721 (rs6000coff_get_section_contents): Delete.
6722 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6724 2000-06-14 H.J. Lu <hjl@gnu.org>
6726 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6729 2000-06-13 H.J. Lu <hjl@gnu.org>
6731 * configure: Regenerate.
6733 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6735 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6738 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6740 * configure.in (VERSION): Update to show this is the CVS mainline.
6742 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6744 * elf32-d10v.c: Include elf/d10v.h
6745 (enum reloc_type): Delete.
6746 * elf32-d30v.c: Include elf/d30v.h
6747 (enum reloc_type): Delete.
6749 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6750 * Makefile.in: Regenerate.
6752 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6753 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6754 move HOWTOs into elf_howto_table.
6755 (R_386_standard, R_386_ext_offset): Define.
6756 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6757 (elf_i386_reloc_type_lookup): Modify calculation of index into
6758 elf_howto_table since we've removed the padding.
6759 (elf_i386_info_to_howto_rel): Likewise.
6760 (elf_i386_relocate_section): Likewise.
6762 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6764 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6766 2000-06-05 H.J. Lu <hjl@gnu.org>
6768 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6769 an error when seeing an undefined symbol with hidden/internal
6770 attribute. It is handled in *_relocate_section ().
6772 2000-06-05 H.J. Lu <hjl@gnu.org>
6774 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6775 indirect symbol for the ELF_LINK_NON_ELF bit.
6776 (elf_link_output_extsym): Don't output the indirect symbol even
6777 if the ELF_LINK_NON_ELF bit is set.
6779 2000-06-01 J.T. Conklin <jtc@redback.com>
6781 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6782 (i[3456]86-*-netbsdaout*): New target.
6783 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6784 (i[3456]86-*-openbsd*): Likewise.
6786 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6788 * trad-core.c: From hpux-core.c, include <dirent.h> or
6789 <sys/ndir.h> when possible.
6791 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6793 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6794 definitions. We must not assume they are sorted in the file
6795 according to their index numbers.
6797 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6799 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6800 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6801 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6803 2000-05-30 Nick Clifton <nickc@cygnus.com>
6805 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6806 80960CA, 80960MC as valid machine names.
6808 2000-05-30 H.J. Lu <hjl@gnu.org>
6810 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6811 visibility bits if the symbol is undefined. Correctly handle
6812 weak undefined symbols with hidden and internal attributes.
6814 * elflink.h (elf_link_add_object_symbols): Always turn the
6815 symbol into local if it has the hidden or internal attribute.
6817 2000-05-29 Philip Blundell <philb@gnu.org>
6819 * ppcboot.c: Add packed attribute if compiling with GCC.
6821 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6823 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6825 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6827 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6828 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6829 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6832 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6834 * Makefile.am: Update dependencies with "make dep-am"
6835 * Makefile.in: Regenerate.
6837 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6838 bindtextdomain): Replace defines with those from intl/libgettext.h
6839 to quieten gcc warnings.
6841 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6843 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6845 * archive.c (normalize, bfd_bsd_truncate_arname,
6846 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6847 file names with backslashes.
6849 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6852 * sysdep.h: Include filenames.h.
6854 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6856 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6858 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6860 * elf64-sparc.c (sparc64_elf_relax_section): New.
6861 (sparc64_elf_relocate_section): Optimize tail call into branch always
6863 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6864 (elf32_sparc_relax_section): New.
6866 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6868 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6869 Remove unusued variables.
6870 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6871 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6872 previous fix, so that shared libs really don't influence targets
6873 extension mask and memory model.
6875 2000-05-23 H.J. Lu <hjl@gnu.org>
6877 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6878 h->root.other not h->other.
6879 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6881 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6883 2000-05-23 H.J. Lu <hjl@gnu.org>
6885 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6886 undefined symbol with the non-default visibility attributes.
6887 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6888 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6889 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6890 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6891 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6892 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6893 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6894 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6895 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6896 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6897 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6899 2000-05-22 Richard Henderson <rth@cygnus.com>
6901 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6902 PCREL22, PCREL64I. Zero size of special relocs.
6903 (elf64_ia64_reloc_type_lookup): Likewise.
6904 (USE_BRL, oor_brl, oor_ip): New.
6905 (elf64_ia64_relax_section): New.
6906 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6907 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6908 (elf64_ia64_relocate_section): Likewise.
6909 (bfd_elf64_bfd_relax_section): New.
6910 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6911 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6912 * bfd-in2.h, libbfd.h: Regenerate.
6914 2000-05-22 Nick Clifton <nickc@cygnus.com>
6916 * configure.in : Add peigen.lo to MIPS PE targets.
6917 * configure: Regenerate.
6919 2000-05-22 Momchil Velikov <velco@fadata.bg>
6921 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6922 only if it is known for both input and output bfds. Separate
6923 error message strings as in some languages, it may be necessary
6924 to change more than one place in the string to change between
6927 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6928 endianess checks, call _bfd_generic_verify_endian_match() instead.
6930 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6932 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6934 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6935 endianess before checking bfd flavours.
6937 2000-05-22 H.J. Lu <hjl@gnu.org>
6939 * elflink.h (elf_link_output_extsym): Clear the visibility
6940 field for symbols not defined locally.
6942 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6944 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6945 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6946 (hppa_rebuild_insn): Mask immediate bits here instead.
6947 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6949 2000-05-18 Momchil Velikov <velco@fadata.bg>
6951 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6952 relocs for an executable, ensure that they are virtual addresses.
6954 2000-05-18 Jeffrey A Law (law@cygnus.com)
6956 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6958 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6959 Rick Gorton <gorton@scrugs.lkg.dec.com>
6961 * elflink.h: Add emitrelocations support: when enabled, relocation
6962 information and relocation sections are put into final output
6963 executables. If the emitrelocations flag is set, do the following:
6964 (elf_bfd_final_link): Emit relocation sections.
6965 (elf_link_input_bfd): Compute relocation section contents.
6966 (elf_gc_sections): Don't clean relocation sections.
6968 2000-05-16 Catherine Moore <clm@cygnus.com>
6970 * som.c (som_decode_symclass): Recognize weak symbols.
6972 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6974 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6975 read idata section only from dataoff.
6976 (pe_print_edata): Correctly check for valid eat_member.
6978 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6980 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6982 2000-05-14 Philip Blundell <philb@gnu.org>
6984 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6986 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6988 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6990 * peigen.c (pe_print_idata): Look for .idata section and print
6991 info even if data directory has zero entries. Read idata section
6992 starting from dataoff, and adjust all data offsets to suit. Cast
6993 all bfd_vma vars to unsigned long before passing to fprintf.
6994 * peigen.c (pe_print_edata): Similarly, look for .edata section
6995 and print info even if data directory has zero entries. Cast
6996 all bfd_vma vars to unsigned long before passing to fprintf.
6998 From Szabolcs Szakacsits <szaka@F-Secure.com>
6999 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7000 directory size which may be bogus.
7001 * peigen.c (pe_print_edata): Similarly.
7003 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7005 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7007 (copy_private_bfd_data): Allow for space possibly taken up by elf
7008 headers when calculating segment physical address from lma.
7010 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7012 * versados.c (versados_scan): Init stringlen and pass_2_done.
7014 * trad-core.c (trad_unix_core_file_p): Return
7015 bfd_error_wrong_format rather than bfd_error_file_truncated.
7017 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7018 add_data_entry. DataDirectory virtual address is relative.
7019 (pe_print_idata): Account for relative DataDirectory virtual
7020 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7021 (pe_print_edata): Similarly.
7023 From Szabolcs Szakacsits <szaka@F-Secure.com>
7024 * peigen.c (dir_names): Add Delay Import Directory.
7025 (pe_print_idata): Always search for bfd section containing
7026 idata address rather than looking up section name. Print this
7027 section name rather than .idata.
7028 (pe_print_edata): Similarly. Also print some fields as %08lx.
7029 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7032 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7034 * xcoff.h: Rename to xcoff-target.h
7035 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7036 * coff-rs6000.c: Ditto.
7037 * coff64-rs6000.c: Ditto.
7038 * coff-pmac.c: Ditto.
7039 * Makefile.in: Regenerate.
7041 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7043 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7044 Change U802TOC64MAGIC to U803XTOCMAGIC.
7046 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7048 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7049 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7050 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7052 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7054 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7056 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
7058 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7059 hidden and internal symbols.
7060 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7062 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7063 assign a PLT or GOT entry to symbols with hidden and
7064 internal visibility.
7066 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7068 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7070 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7072 2000-05-02 H.J. Lu <hjl@gnu.org>
7074 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7077 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7079 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7080 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7082 * Makefile.in: Regenerate.
7084 2000-05-01 Jim Wilson <wilson@cygnus.com>
7086 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7087 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7088 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7089 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7090 * Makefile.in: Rebuild.
7092 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7094 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7095 doesn't work very well.
7097 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7098 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7099 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7100 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7101 (elf_hppa_info_to_howto): Likewise.
7102 (elf_hppa_info_to_howto_rel): Likewise.
7103 (elf_hppa_reloc_type_lookup): Likewise.
7104 (elf_hppa_is_local_label_name): Likewise.
7105 (elf_hppa_fake_sections): Likewise.
7106 (elf_hppa_final_write_processing): Likewise.
7107 (elf_hppa_howto_table): Fully initialise all entries.
7108 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7109 (elf_hppa_info_to_howto): Likewise.
7110 (elf_hppa_info_to_howto_rel): Likewise.
7111 (elf_hppa_reloc_type_lookup): Likewise.
7112 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7113 elf_hppa_unmark_useless_dynamic_symbols,
7114 elf_hppa_remark_useless_dynamic_symbols,
7115 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7116 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7117 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7118 elf32-hppa.c mess is cleaned up.
7119 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7120 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7121 r_field then call hppa_field_adjust inline func with variable
7122 r_field arg, instead call hppa_field_adjust with fixed arg.
7123 In case R_PARISC_PCREL22F, don't set r_field.
7124 (elf_hppa_relocate_insn): Change args and return type to unsigned
7125 int. Call re_assemble_* funcs to do the work.
7127 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7130 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7132 (sign_extend): Mask first before sign extending.
7133 (low_sign_extend): Rewrite without condition expression.
7134 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7135 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7136 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7137 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7138 result as function return value rather than through pointer arg.
7139 Accept unsigned int args, and return unsigned int.
7140 (re_assemble_3): New. Combines function of dis_assemble_3 with
7141 re-assembly of opcode and immediate.
7142 (re_assemble_12): Likewise.
7143 (re_assemble_16): Likewise.
7144 (re_assemble_17): Likewise.
7145 (re_assemble_21): Likewise.
7146 (re_assemble_22): Likewise.
7147 (hppa_field_adjust): Rewrite and document, paying attention to
7148 size of types and signed/unsigned issues.
7149 (get_opcode): Shift before masking.
7150 (FDLW): Rename to FLDW.
7151 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7152 (hppa_rebuild_insn): Change args and return value to unsigned
7153 int. Make use of re_assemble_*. Correct case 11.
7155 * dep-in.sed: Handle ../opcodes/.
7156 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7157 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7158 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7159 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7160 elfarm-nabi.lo dependencies outside of auto-dependency area.
7161 Regenerate dependencies.
7162 * Makefile.in: Regenerate.
7164 * configure.in (TRAD_HEADER): Test non-null before
7166 * configure: Regenerate.
7168 * reloc.c: Fix mis-spelling in comment.
7170 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7172 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7173 * vms.c (vms_openr_next_archived_file): Return NULL.
7175 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7177 * coffcode.h Copy changes mistakenly done to libcoff.h in
7180 2000-04-29 Andreas Jaeger <aj@suse.de>
7182 * libbfd-in.h: Correctly check GCC version.
7183 * bfd-in.h: Likewise.
7184 * libhppa.h: Likewise.
7185 * libbfd.h: Regenerate.
7186 * bfd-in2.h: Regenerate.
7188 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7190 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7191 coffdu-rs6000.{lo,c}.
7192 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7194 * Makefile.in: Regenerate.
7195 * xcoff.h: New file.
7196 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7197 * coff-rs6000.c: Move all declarations and defines that are
7198 common to the xcoff backends into xcoff.h
7199 * coff64-rs6000.c: Ditto,
7201 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7203 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7204 _bfd_coff_force_symnames in strings and
7205 _bfd_coff_debug_string_prefix_length to their default values.
7206 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7208 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7210 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7211 _bfd_coff_force_symnames in strings and
7212 _bfd_coff_debug_string_prefix_length to their default values.
7214 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7216 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7217 Check local_got_refcounts before dereferencing.
7219 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7220 before deciding we don't need R_PPC_PLT32 relocation.
7221 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7224 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7226 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7228 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7229 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7230 (elf_i386_relocate_section): Allow for .plt to go missing.
7231 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7232 can use a relative reloc for got as elf_i386_relocate_section.
7233 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7235 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7237 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7239 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7241 * Makefile.am (coff64-rs6000.lo): New rule.
7242 * Makefile.in: Regenerate.
7243 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7244 xcoff_is_local_label_name, xcoff_rtype2howto,
7245 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7246 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7247 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7248 (NO_COFF_SYMBOLS): Define.
7249 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7250 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7252 (MINUS_ONE): New macro.
7253 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7255 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7256 coff_SWAP_aux_out): Map to the new functions.
7257 * coff64-rs6000.c: New file.
7258 * libcoff.h (bfd_coff_backend_data): Add new fields
7259 _bfd_coff_force_symnames_in_strings and
7260 _bfd_coff_debug_string_prefix_length.
7261 (bfd_coff_force_symnames_in_strings,
7262 bfd_coff_debug_string_prefix_length): New macros for above fields.
7263 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7264 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7265 of using coff_swap_sym_in directly.
7266 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7267 (coff_set_flags) Set magic for XCOFF64.
7268 (coff_compute_section_file_positions): Add symbol name length to
7269 string section length if bfd_coff_debug_string_prefix_length is
7271 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7272 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7273 using coff_swap_lineno_in directly.
7274 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7275 and _bfd_coff_debug_string_prefix_length fields.
7276 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7277 symbol names into strings table when
7278 bfd_coff_force_symnames_in_strings is true.
7279 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7280 SET_RELOC_VADDR): New macros.
7281 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7282 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7284 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7285 changes within RS6000COFF_C specific code.
7286 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7287 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7288 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7289 Extend existing hack on target name.
7290 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7292 * coff-tic54x.c (ticof): Keep up to date with new fields
7293 in bfd_coff_backend_data.
7294 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7295 targ_selvecs to include rs6000coff64_vec for rs6000.
7296 * configure.in: Add rs6000coff64_vec case.
7297 * cpu-powerpc.c: New bfd_arch_info_type.
7299 2000-04-24 Jeffrey A Law (law@cygnus.com)
7301 * config.bfd: Only disable elf32-hppa vectors, not all of the
7302 BSD and OSF configuration support. Provide (disabled) clauses
7304 * configure.in: Add clause for PA64 support.
7305 * configure: Rebuilt.
7307 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7308 (bfd_elf64_hppa_vec): Declare.
7310 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7311 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7312 (elf64-hppa.lo): Add dependencies.
7313 * Makefile.in: Rebuilt.
7315 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7317 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7319 * libhppa.h (dis_assemble_16): New function.
7320 (pa_arch): Added pa20w element.
7322 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7324 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7325 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7326 bfd_elf64_slurp_reloc_table.
7328 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7329 definitions to get external names.
7330 (elf_write_relocs): Renamed from write_relocs and make global.
7331 (elf_slurp_reloc_table): Make global.
7332 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7334 * archive.c (hpux_uid_gid_encode): New function.
7335 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7336 defined and the ID is greater than 99999.
7337 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7338 special uid/gid fields into 32 bit values.
7340 2000-04-21 Matthew Green <mrg@cygnus.com>
7342 * config.bfd: Add NetBSD/sparc64 support.
7344 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7345 David Mosberger <davidm@hpl.hp.com>
7346 Timothy Wall <twall@cygnus.com>
7347 Jim Wilson <wilson@cygnus.com>
7349 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7350 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7351 (BFD64_BACKENDS): Add elf64-ia64.lo.
7352 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7353 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7354 * Makefile.in: Rebuild.
7355 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7356 (bfd_ia64_arch): Declare.
7357 (bfd_archures_list): Add bfd_ia64_arch.
7358 * bfd-in2.h: Rebuild.
7359 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7360 * configure: Rebuild.
7361 * configure.host: (ia64-*-linux*): New host.
7362 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7363 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7364 * elf.c (prep_headers): Add bfd_arch_ia64.
7365 * libbfd.h: Rebuild.
7366 * reloc.c: Add IA-64 relocations.
7367 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7369 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7370 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7372 2000-04-21 Richard Henderson <rth@cygnus.com>
7374 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7375 contents when performing a partial link.
7376 (bfd_elf_d30v_reloc_21): Likewise.
7378 2000-04-20 H.J. Lu <hjl@gnu.org>
7380 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7381 patch to symbols defined by a shared object.
7382 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7384 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7387 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7388 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7390 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7392 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7393 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7394 (coff-ia64.lo): Add dependency.
7395 * Makefile.in: Regenerate.
7396 * coff-ia64.c: New file.
7397 * efi-app-ia32.c: Ditto.
7398 * efi-app-ia64.c: Ditto.
7399 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7400 (coff_set_flags): Ditto.
7401 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7402 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7403 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7404 * configure: Regenerate.
7405 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7406 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7407 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7408 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7409 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7410 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7411 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7412 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7413 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7414 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7415 (GET_PDATA_ENTRY): Ditto.
7416 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7417 data_start. Use above macros to read fields that are 64 bit wide for
7418 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7419 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7420 FileAlignment and SectionAlignment to minimum alignment if they
7422 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7423 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7424 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7425 Use above macros to write fields that are 64 bit wide for
7427 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7428 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7429 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7430 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7431 begin address, end address, and unwind info address only. Use
7432 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7434 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7435 HIGH3ADJ relocation names.
7436 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7437 * targets.c: Declare bfd_efi_app_ia32_vec and
7438 bfd_efi_app_ia64_vec.
7439 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7440 bfd_efi_app_ia64_vec.
7442 2000-04-17 Timothy Wall <twall@cygnus.com>
7444 * bfd-in2.h: Add prototypes for tic54x load page access.
7445 * bfd-in.h: Regenerate.
7446 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7447 in customized _set_arch_mach function.
7448 * coffcode.h (coff_set_alignment_hook): Set section load page if
7449 the appropriate macro is defined.
7450 (write_object_contents): Read section load page.
7452 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7454 * elf32-hppa.h: Update copyright date.
7456 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7457 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7459 * elf32-d30v.c (MAX32): Don't use LL suffix.
7460 (MIN32): Define in terms of MAX32.
7461 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7463 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7466 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7468 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7470 * dep-in.sed: Match space before file name, not after.
7471 * Makefile.am: Regenerate dependencies.
7472 * Makefile.in: Regenerate.
7474 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7475 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7476 extend without an if statement.
7478 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7480 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7482 * elf32-mips.c (gprel16_with_gp): Likewise.
7483 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7484 here using -0x40000, not (int)0xfffc0000.
7485 (elf32_hppa_size_of_stub): Likewise.
7487 2000-04-11 Timothy Wall <twall@cygnus.com>
7489 * coff-tic54x.c: Now builds with all targets.
7490 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7491 * Makefile.in: Regenerate.
7492 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7493 unitialized variable.
7495 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7497 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7498 --enable-build-warnings option.
7499 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7500 * Makefile.in, configure: Re-generate.
7502 2000-04-07 Nick Clifton <nickc@cygnus.com>
7504 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7505 BFD_RELOC_THUMB_PCREL_BLX.
7507 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7508 R_ARM_XPC25 and R_ARM_THM_PC22.
7510 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7511 R_ARM_XPC25 and R_ARM_THM_XPC22.
7512 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7513 R_ARM_[XPC25|THM_XPC22].
7515 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7516 elf/arm-oabi.h to elf/arm.h
7518 * Makefile.am: Fix dependency for elfarm-oabi.c
7519 * Makefile.in: Regenerate.
7521 * bfd-in2.h: Regenerate.
7522 * libbfd.h: Regenerate.
7524 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7526 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7527 and restore it on failure. Release newly allocated tdata on
7530 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7532 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7533 (decode_line_info): Set it. Report error if unit->line_offset is
7534 equal to or larger than it.
7536 2000-04-07 Timothy Wall <twall@cygnus.com>
7538 * targets.c: Added vecs for tic54x.
7539 * reloc.c: Added relocs for tic54x.
7540 * libbfd.h: Regenerated.
7541 * configure: Add TI COFF vecs for tic54x.
7542 * configure.in: Ditto.
7543 * config.bfd (targ_cpu): Recognize new tic54x target.
7544 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7545 * bfd-in2.h: Add tic54x target and relocations.
7546 * Makefile.am, Makefile.in: Add tic54x target.
7547 * archures.c (bfd_archures_list): Add tic54x target.
7548 * coff-tic54x.c: New.
7549 * cpu-tic54x.c: New.
7551 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7553 * elfcore.h (elf_core_file_p): call backend_object_p which
7554 thereby gets an opportunity to update the arch/machine type.
7556 2000-04-06 Timothy Wall <twall@cygnus.com>
7558 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7559 class. Handle SEC_CLINK and SEC_BLOCK flags.
7560 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7561 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7563 2000-04-06 Nick Clifton <nickc@cygnus.com>
7565 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7566 EF_INTERWORK if this is an unknown EABI.
7567 (elf32_arm_merge_private_bfd_data): Check EABI version
7568 numbers. Only check EF_xxx flags if the EABI version number
7570 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7571 if the EABI version number is unknown.
7572 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7573 if the EABI version number is unknown.
7575 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7577 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7578 BFD_RELOC_SH_LOOP_END.
7579 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7580 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7581 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7582 (sh_elf_reloc_loop): New function.
7583 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7585 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7586 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7587 * bfd-in2.h, libbfd.h: Regenerate.
7589 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7591 * po/bfd.pot: Regenerate.
7593 * Makefile.am: Remove extraneous mkdep comment.
7594 (MKDEP): Use gcc -MM rather than mkdep.
7595 (DEP): Quote when passing vars to sub-make. Add warning
7597 (DEP1): Rewrite for "gcc -MM".
7598 (CLEANFILES): Add DEP2.
7599 Update dependencies.
7600 * Makefile.in: Regenerate.
7602 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7604 * configure.in: Added corefile support for AIX 4.3. In particular,
7605 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7606 compiling rs6000-core.c.
7607 * configure: Regenerated.
7609 2000-04-03 H.J. Lu <hjl@gnu.org>
7611 * cache.c (bfd_open_file): Unlink the output file only if
7612 it has non-zero size.
7614 2000-04-01 Ken Block USG <block@zk3.dec.com>
7616 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7617 relative relocations for non-loaded sections in shared objects.
7618 (elf64_alpha_check_relocs): Similarly.
7620 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7622 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7623 BFD_RELOC_16 to switch for extended relocs.
7624 (MY_swap_ext_reloc_in): New.
7625 (MY_swap_ext_reloc_out): New.
7626 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7627 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7628 (NAME(aout,squirt_out_relocs)): Similarly use
7629 MY_swap_ext_reloc_out.
7630 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7632 2000-04-03 Kazu Hirata <kazu@hxi.com>
7634 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7635 the R_PCRWORD_B case.
7637 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7639 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7643 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7645 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7646 HOWTO references to bfd_elf_generic_reloc, that have
7647 partial_inplace == true, now use the new function. The function
7648 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7649 extends its fixes to the R_M32R_{16,24,32} relocs.
7650 The new logic in m32r_elf_lo16_reloc() has been removed, and
7651 it instead calls the new routine to obtain that functionality.
7653 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7655 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7656 elf32_avr_check_relocs, avr_final_link_relocate,
7657 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7658 elf32_avr_object_p): Add prototypes.
7659 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7660 (bfd_elf_avr_final_write_processing): Make static.
7662 2000-03-27 Denis Chertykov <denisc@overta.ru>
7664 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7665 * archures.c (bfd_architecture): Add AVR architecture.
7666 (bfd_archures_list): Add reference to AVR architecture info.
7667 * elf.c (prep_headers): Handle bfd_arch_avr.
7668 * reloc.c: Add various AVR relocation enums.
7669 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7671 * Makefile.am: Add support for AVR elf.
7672 * configure.in: Likewise.
7673 * config.bfd: Likewise.
7674 * Makefile.in: Regenerate.
7675 * configure: This too.
7676 * bfd-in2.h: And this.
7677 * libbfd.h: And this.
7679 2000-03-24 H.J. Lu <hjl@gnu.org>
7681 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7682 (elf64_alpha_find_reloc_at_ofs): Likewise.
7684 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7686 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7687 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7688 allowable range used to be -2**(n-1) to 2**n-1.
7689 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7690 "boolean overflow" with "bfd_reloc_status_type flag".
7692 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7694 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7696 2000-03-14 Kazu Hirata <kazu@hxi.com>
7698 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7699 of shrinks properly, including the last reloc.
7701 2000-03-13 Kazu Hirata <kazu@hxi.com>
7703 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7706 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7708 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7709 a format mismatch rather than an "error" from bfd_read such as
7710 bfd_error_file_truncated.
7712 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7714 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7715 sign-extension and big-endian compensation for
7716 R_MIPS_64 even in ld -r.
7718 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7720 * elf32-mips.c (mips_elf_next_relocation): Rename from
7721 mips_elf_next_lo16_relocation, and generalize to look
7722 for any relocation type.
7723 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7724 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7725 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7726 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7727 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7728 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7729 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7730 (mips_rtype_to_howto): Likewise.
7731 (mips_elf_calculate_relocation): Handle new relocs.
7732 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7733 are paired. The addend for R_MIPS_GNU_REL16_S2
7734 is shifted right two bits.
7736 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7738 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7739 comment, and ensure it doesn't happen again.
7740 (bfd_install_relocation): Same here.
7741 (_bfd_relocate_contents): Don't bother assigning unused signmask
7742 shift result. Fix typos in comments.
7743 Remove trailing whitespace throughout file.
7745 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7747 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7748 * bfd-in2.h: Rebuild.
7750 2000-03-06 Nick Clifton <nickc@cygnus.com>
7752 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7754 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7755 (SIZEOF_ILF_STRINGS): Redefine.
7756 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7757 relative reloc, as opposed to a section relative reloc.
7758 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7760 Add length of symbol's prefix to string pointer.
7761 Store a pointer to the symbol in the symbol pointer table.
7762 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7763 Initialise the symbol pointer table.
7764 Store the hint in the Hint/Name table.
7765 Make the jump reloc be symbol realtive, not section relative.
7766 Create an import symbol for imported code.
7768 2000-03-06 Catherine Moore <clm@cygnus.com>
7770 * elf.c (swap_out_syms): Check for null type_ptr.
7772 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7774 * aout-target.h (MY(write_object_contents)): Remove unused
7775 and unusable "#if CHOOSE_RELOC_SIZE".
7776 * pc532-mach.c (MY(write_object_contents)): Ditto.
7777 * netbsd.h (MY(write_object_contents)): Ditto.
7778 * hp300hpux.c (MY(write_object_contents)): Ditto.
7779 * freebsd.h (MY(write_object_contents)): Ditto.
7780 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7782 2000-02-29 H.J. Lu <hjl@gnu.org>
7784 * peicode.h (jtab): Make it static.
7786 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7787 defined and COFF_IMAGE_WITH_PE is not defined.
7788 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7789 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7791 2000-03-01 Nick Clifton <nickc@cygnus.com>
7793 * coff-arm.c (bfd_arm_process_before_allocation): Make
7794 'symndx' signed to prevent compile time warning.
7796 * coff-mcore.c: Remove unused prototype for pe_object_p.
7798 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7799 functions that are not used when COFF_IMAGE_WITH_PE is
7801 (struct sh_opcode): Change type of 'flags' field to unsigned
7802 long so that it can hold the USESAS flag.
7804 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7806 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7809 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7811 Remove unusued variables and code.
7812 (elf_backend_add_symbol_hook): Fix prototype.
7814 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7817 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7820 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7822 Remove unusued variables and code.
7823 (elf_backend_add_symbol_hook): Fix prototype.
7825 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7827 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7828 to unused function parameter.
7830 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7832 Use EMPTY_HOWTO to initialise empty howto slots.
7833 Remove unused variables.
7835 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7837 2000-03-01 H.J. Lu <hjl@gnu.org>
7839 * aoutx.h (aout_link_input_section_std): Pass "true" to
7840 the undefined_symbol callback.
7841 (aout_link_input_section_ext): Likewise.
7842 * bout.c (get_value): Likewise.
7843 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7844 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7846 (alpha_relocate_section): Likewise.
7847 * coff-arm.c (coff_arm_relocate_section): Likewise.
7848 * coff-i960.c (coff_i960_relocate_section): Likewise.
7849 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7850 * coff-mips.c (mips_relocate_section): Likewise.
7851 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7852 * coff-sh.c (sh_relocate_section): Likewise.
7853 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7854 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7855 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7856 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7857 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7858 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7859 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7860 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7861 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7862 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7863 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7864 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7865 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7866 * elflink.h (elf_link_output_extsym): Likewise.
7867 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7868 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7869 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7871 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7872 undefined_symbol callback when building shared library with
7873 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7875 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7876 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7877 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7878 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7879 (elf32_mips_get_relocated_section_content): Likewise.
7880 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7881 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7882 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7883 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7885 2000-02-28 Nick Clifton <nickc@cygnus.com>
7887 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7888 * Makefile.in: Regenerate.
7890 * configure.in: Add support for mips and sh pe vectors.
7891 * configure: regenerate.
7893 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7896 * targets.c: Add mips and sh pe vectors.
7898 * libpei.h (coff_final_link_postscript): Only define if not
7901 * coffcode.h: Add support for WinCE magic numbers.
7903 * peigen.c (pe_print_reloc): Update comment and rearrange
7904 appending of newline character.
7906 * peicode.h: Add support for Image Library Format.
7907 (pe_ILF_vars): Structure containing data used by ILF code.
7908 (pe_ILF_make_a_section): New function. Create a section based
7910 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7912 (pe_ILF_make_a_symbol): New function. Create a symbol based
7914 (pe_ILF_save_relocs): New function. Store the relocs created
7915 by pe_ILF_make_a_reloc in a section.
7916 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7918 (pe_ILF_object_p): New function. Return a bfd_target pointer
7920 (pe_bfd_object_p): If an ILF object is detected call
7921 pe_ILF_object_p on it.
7923 * coff-arm.c: Add support for WinCE relocs which are different
7924 from normal ARM COFF relocs.
7925 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7927 * coff-sh.c: Add support for sh-pe target.
7928 * pe-sh.c: New file. Support code for sh-pe target.
7929 * pei-sh.c: New file. Support code for sh-pe target.
7931 * pe-mips.c: New file. Support code for mips-pe target.
7932 * pei-mips.c: New file. Support code for mips-pe target.
7934 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7936 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7937 architecture if the object causing the bump is dynamic.
7938 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7939 and also don't it for memory ordering.
7940 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7942 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7944 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7945 calling bfd_get_section_size_before_reloc.
7946 (decode_line_info): Likewise.
7947 (_bfd_dwarf2_find_nearest_line): Likewise.
7949 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7951 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7952 name of the libtool directory.
7953 * Makefile.in: Rebuild.
7955 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7957 * som.c (SOM_HOWTO): Define.
7958 (som_hppa_howto_table): Use it.
7960 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7962 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7964 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7966 2000-02-24 Catherine Moore <clm@cygnus.com>
7968 * som.c (som_misc_symbol_info): Add field
7970 (som_bfd_derive_misc_symbol_info): Initialize
7972 (som_build_and_write_symbol_table): Keep track
7973 of secondary_def field.
7974 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7975 if secondary_def field is set.
7976 (som_bfd_ar_write_symbol_stuff): Initialize
7979 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7981 * dwarf2.c (read_address): Read 16-bits addresses.
7982 (parse_comp_unit): Accept addr_size == 2.
7984 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7986 * bfd-in.h: Update copyright date.
7988 2000-02-23 Linas Vepstas <linas@linas.org>
7990 * cpu-i370.c: New file.
7991 * elf32-i370.c: New file.
7992 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7993 (bfd_i370_arch): New.
7994 (bfd_archures_list): Add bfd_i370_arch.
7995 * elf.c (prep_headers): Add bfd_arch_i370.
7996 * Makefile.am: Add support for IBM 370 elf.
7997 * config.bfd: Likewise.
7998 * configure.in: Likewise.
7999 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8000 * reloc.c (bfd_reloc_code_type): Likewise.
8001 * targets.c: Likewise.
8003 * Makefile.in: Regenerate.
8004 * configure: Regenerate.
8005 * bfd-in2.h: Regenerate.
8007 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8009 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8010 invalid relocation types, and change them to R_386_NONE.
8012 2000-02-22 H.J. Lu <hjl@gnu.org>
8014 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8015 not defined, don't add a second ELF_VER_CHR.
8017 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8018 symbols converted to local symbols even when stripping all
8020 (elf_link_output_extsym): Process global symbols converted to
8021 local symbols even if they are being stripped.
8023 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8025 * archures.c (bfd_octets_per_byte): Return unsigned int.
8026 (bfd_arch_mach_octets_per_byte): Ditto.
8027 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8029 * section.c (bfd_get_section_size_before_reloc): Quell signed
8030 vs. unsigned comparison warning.
8031 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8032 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8033 change. What was I thinking?
8034 * bfd-in2.h: Regenerate.
8036 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8037 (elf_gc_sections): Same here.
8038 (elf_gc_common_finalize_got_offsets): And here.
8040 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8042 ELF HPPA doesn't work at present; remove it until it does.
8043 * config.bfd: Comment out setting targ_defvec to
8045 * Makefile.am: Rebuild dependencies.
8046 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8047 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8048 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8049 * Makefile.in: Rebuild.
8050 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8052 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8054 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8055 is no bfd_free(). Revert bfd_free part of previous change.
8057 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8059 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8061 (coff_compute_section_file_positions): Use bfd_free to pair
8063 (coff_write_object_contents): Likewise.
8065 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8066 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8068 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8070 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8071 (xcoff_ar_file_hdr_big): New structure.
8072 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8073 (xcoff_ar_hdr_big): New structure.
8074 (SIZEOF_AR_HDR_BIG): New macro.
8075 (xcoff_big_format_p): New macro.
8076 (xcoff_ardata_big): New macro.
8077 (arch_xhdr_big): New macro.
8078 (xcoff_slurp_armap): Handle large archives.
8079 (xcoff_archive_p): Detect large archives.
8080 (xcoff_read_ar_hdr): Handle large archives.
8081 (xcoff_openr_next_archived_file): Handle large archives.
8082 (xcoff_generic_stat_arch_elt): Handle large archives.
8083 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8084 (xcoff_write_armap_big): New function.
8085 (xcoff_write_armap): New function, dispatch to _old or _big.
8086 (xcoff_write_archive_contents_old): Rename from
8087 xcoff_write_archive_contents.
8088 (xcoff_write_archive_contents_big): New function.
8089 (xcoff_write_archive_contents): New function, dispatch to _old or
8092 2000-02-18 Richard Henderson <rth@cygnus.com>
8094 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8095 and hide_symbol members.
8096 (elf_link_hash_copy_indirect): Remove.
8097 (elf_link_hash_hide_symbol): Remove.
8098 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8099 and elf_backend_hide_symbol.
8100 (_bfd_elf_link_hash_copy_indirect): Declare.
8101 (_bfd_elf_link_hash_hide_symbol): Declare.
8102 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8103 (_bfd_elf_link_hash_hide_symbol): Likewise.
8104 (_bfd_elf_link_hash_table_init): Don't init killed members.
8105 * elflink.h (elf_link_add_object_symbols): Use the bed function
8106 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8107 (elf_link_assign_sym_version): Likewise.
8108 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8109 (elf_backend_hide_symbol): Likewise.
8110 (elfNN_bed): Update for new members.
8112 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8114 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8115 STACK_END_ADDR): Define for new core file format.
8116 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8117 for handling the vagaries of the various core file structures used
8118 by AIX over the years.
8119 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8120 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8121 core_dumpx structure.
8123 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8125 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8126 (bfd_mach_sh3_dsp): Likewise.
8127 (bfd_mach_sh4): Reinstate.
8128 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8129 * bfd-in2.h: Regenerate.
8130 * coff-sh.c (struct sh_opcode): flags is no longer short.
8131 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8132 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8133 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8134 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8135 (sh_opcodes): No longer const.
8136 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8137 (sh_insn_uses_reg): Check for USESAS and USESR8.
8138 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8139 (_bfd_sh_align_load_span): Return early for SH4.
8140 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8141 Take into account that field b of a parallel processing insn
8142 could be mistaken for a separate insn.
8143 * cpu-sh.c (arch_info_struct): New array elements for
8144 sh2, sh-dsp and sh3-dsp.
8145 Reinstate element for sh4.
8146 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8147 (SH4_NEXT): Reinstate.
8148 (SH3_NEXT, SH3E_NEXT): Adjust.
8149 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8150 * elf32-sh.c (sh_elf_set_private_flags): New function.
8151 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8152 (sh_elf_merge_private_data): New function.
8153 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8154 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8155 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8156 sh_elf_merge_private_data.
8158 2000-02-13 Richard Henderson <rth@cygnus.com>
8160 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8161 hide_symbol members.
8162 (elf_link_hash_copy_indirect): New.
8163 (elf_link_hash_hide_symbol): New.
8164 * elflink.h (elf_link_add_object_symbols): Break out copy from
8165 indirect new new symbol to elf.c.
8166 (elf_link_assign_sym_version): Break out privatization of
8167 non-exported symbol to elf.c.
8168 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8169 (_bfd_elf_link_hash_hide_symbol): New.
8170 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8172 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8174 * section.c (_bfd_strip_section_from_output): Add info parameter.
8175 If it passed as non-NULL, use it to check whether any input BFD
8176 has an input section which uses this output section. Change all
8178 * bfd-in2.h: Rebuild.
8180 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8181 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8183 * bfd-in2.h: Rebuild.
8185 2000-02-10 Timothy Wall <twall@cygnus.com>
8187 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8188 allow final modifications of swapped-in symbol.
8189 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8190 * coffcode.h (coff_write_relocs): Use macro
8191 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8192 symbol index should be set to -1.
8194 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8196 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8197 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8198 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8199 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8200 sh_insns_uses_or_sets_freg): New functions.
8201 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8202 * (sh_insns_conflict): Use new functions and new macros to
8203 detect conflicts when two instructions both set same integer registers,
8204 both set same fp register, and both set special register.
8206 2000-02-09 Timothy Wall <twall@cygnus.com>
8208 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8209 swapping in sections, so that the swapping routines have access to
8212 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8214 * coff-go32.c: Update comment. Update copyright.
8216 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8218 * syms.c (bfd_decode_symclass)
8219 Two new class characters were added - 'V' and 'v'. The
8220 meaning of 'W' is now restricted to just weak non-object
8221 symbols. This allows differentiation between, for example,
8222 weak functions vs weak objects. nm for example now dumps:
8224 'w' = weak unresolved
8225 'V' = weak global object
8226 'v' = weak unresolved object
8228 (bfd_is_undefined_symclass): New function. Return true if the
8229 given symbol class represents and undefined/unresolved symbol.
8231 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8234 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8236 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8237 STT_ARM_16BIT flag set, but it is not attached to a data object
8238 return STT_ARM_16BIT so that it will be treated as code by the
8241 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8243 * coff-i386.c (i3coff_object_p): Remove prototype.
8246 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8247 to name. Update copyright.
8249 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8250 assignment to avoid warning. Update copyright.
8252 2000-01-24 Robert Lipe (robertl@sco.com)
8254 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8255 instead of using GNU C extension.
8257 2000-01-21 Nick Clifton <nickc@cygnus.com>
8259 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8260 amount from a bfd_in_memory structure.
8261 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8264 2000-01-14 Nick Clifton <nickc@cygnus.com>
8266 * linker.c (default_indirect_link_order): oops - fix incorrectly
8267 applied patch from Tim Wall.
8269 2000-01-13 Timothy Wall (twall@tiac.net>
8271 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8272 = scnhsz, filhsz, relsz, aoutsz, etc)
8274 * coffswap.h: Ditto.
8276 2000-01-13 Nick Clifton <nickc@cygnus.com>
8278 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8279 interwork thumb to arm stub.
8281 2000-01-13 Timothy Wall (twall@tiac.net>
8283 * archures.c (bfd_octets_per_byte): New function: Return
8285 (bfd_arch_mach_octets_per_byte): New function: Return target
8288 * section.c: Distinguish between octets and bytes for usage of
8289 _cooked_size, _raw_size, and output_offset. Clarify
8290 description of bfd_set_section_contents.
8292 * bfd-in2.h: Regenerate.
8294 * coffgen.c: Indicate that the offset parameter is in bytes, not
8297 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8298 where appropriate to get the octet offset when calling
8299 bfd_set_section_contents.
8300 (bfd_coff_reloc_link_order): Ditto.
8302 * linker.c (bfd_generic_reloc_link_order): Ditto.
8303 (_bfd_default_link_order): Ditto.
8305 * reloc.c (bfd_perform_relocation): Distinguish between octets
8306 and bytes. Use octets when indexing into octet data; use bytes
8307 when calculating target addresses.
8308 (bfd_install_relocation): Ditto.
8310 * srec.c (srec_write_section): Ditto.
8312 2000-01-13 Nick Clifton <nickc@cygnus.com>
8314 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8315 3 to 2. This allows 4 byte sized sections, which is necessary for
8316 dlltool to build functioning DLLs.
8318 2000-01-10 Philip Blundell <pb@futuretv.com>
8320 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8321 (arm*-*-conix*): New target.
8323 2000-01-10 Egor Duda <deo@logos-m.ru>
8325 * config.bfd: Include elf32_i386 vector to target list for cygwin
8328 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8329 * configure.in: Test for structure win32_pstatus_t in
8331 * configure: Regenerate.
8333 * elf.c (elfcore_grok_win32pstatus): New function: process
8334 win32_pstatus_t notes in elf core file.
8335 (elfcore_grok_note): Detect win32_pstatus notes.
8337 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8339 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8341 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8342 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8344 For older changes see ChangeLog-9899
8350 version-control: never