1 2001-10-15 Alan Modra <amodra@bigpond.net.au>
3 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
4 rather than ind->weakdef.
5 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
6 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
7 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
8 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
9 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
11 2001-10-15 Alan Modra <amodra@bigpond.net.au>
14 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
15 counts for aliases instead of aborting.
16 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
17 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
19 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
20 to -1 for non-function symbols.
21 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
22 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
23 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
24 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
25 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
26 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
27 plt.offset instead of plt.refcount when setting to -1.
29 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
31 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
32 like R_ARM_PC24. Include reloc number in error message about
35 2001-10-10 Jakub Jelinek <jakub@redhat.com>
37 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
38 relocations against the same symbol in .rel{,a}.dyn section.
40 2001-10-10 Kazu Hirata <kazu@hxi.com>
42 * aout-encap.c: Fix comment typos.
44 * archive.c: Likewise.
46 * coff64-rs6000.c: Likewise.
47 * coffcode.h: Likewise.
48 * coffgen.c: Likewise.
49 * cofflink.c: Likewise.
50 * coff-mips.c: Likewise.
52 * elf32-m32r.c: Likewise.
53 * libcoff-in.h: Likewise.
54 * libecoff.h: Likewise.
55 * libxcoff.h: Likewise.
56 * nlm32-i386.c: Likewise.
58 * section.c: Likewise.
61 * bfd-in2.h: Regenerate.
62 * libcoff.h: Likewise.
64 2001-10-10 Alan Modra <amodra@bigpond.net.au>
66 * elf.c (elf_map_symbols): Don't create new section symbols; Use
67 existing section syms. Update comments.
68 (copy_private_bfd_data): Formatting fixes.
69 (elfcore_grok_win32pstatus): Likewise.
70 (swap_out_syms): Likewise. Remove unnecessary level of braces.
72 2001-10-09 Alan Modra <amodra@bigpond.net.au>
74 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
76 (elf_group_name): Define.
77 (elf_next_in_group): Define.
78 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
79 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
80 first member section; Instead use elf_next_in_group.
81 (bfd_section_from_shdr): Likewise.
82 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
84 2001-10-09 Alan Modra <amodra@bigpond.net.au>
86 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
87 "next_in_group". Fix gp and gp_size comments.
88 * elf.c (union elf_internal_group): New.
89 (setup_group): New function.
90 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
91 Call setup_group for SHF_GROUP sections.
92 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
93 (elf_fake_sections): Set header type for SEC_GROUP, and header
94 flags for sections in a group.
95 (set_group_contents): New function.
96 (_bfd_elf_compute_section_file_positions): Call it.
97 (assign_section_numbers): Set sh_link for SHT_GROUP.
99 * elflink.h (gc_mark_hook): Handle section groups.
100 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
101 * section.c (SEC_GROUP): Define.
102 (struct sec): Comment fixes.
103 * bfd-in2.h: Regenerate.
105 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
106 out of function args.
107 (_bfd_elf_canonicalize_reloc): Similarly.
108 (_bfd_elf_get_symtab): Here too.
109 (_bfd_elf_canonicalize_dynamic_symtab): And here.
110 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
111 bfd_bread, and remove unnecessary cast.
113 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
115 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
117 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
119 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
122 2001-10-06 Alan Modra <amodra@bigpond.net.au>
124 * bfd.c (bfd_assert): Report bfd version.
125 (_bfd_abort): Likewise.
127 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
128 section sym values. Instead replace any relocs against them with
129 relocs against STN_UNDEF, which has a zero value.
131 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
134 2001-10-05 Jeff Law <law@redhat.com>
136 * som.h (som_exec_data): New field "version_id".
137 * som.c (som_object_setup): Record the version_id if it
139 (som_prep_headers): Do not initialize version_id here.
140 (som_finish_writing): Initialize version_id here.
142 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
144 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
145 according to the MIPS/SGI ELF64 ABI Draft.
146 (mips_elf_sort_hash_table): Typo.
148 2001-10-04 Alan Modra <amodra@bigpond.net.au>
150 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
152 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
153 copying flags if this is a weakdef.
155 2001-10-04 Alan Modra <amodra@bigpond.net.au>
157 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
160 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
161 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
162 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
164 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
165 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
166 backends we configure. Run "make dep-am".
167 (install-data-local): Install symcat.h.
168 * dep-in.sed: Remove symcat.h from dependencies.
169 * Makefile.in: Regenerate.
171 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
173 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
175 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
177 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
178 (elf_backend_default_use_rela_p): New define.
180 2001-10-03 Alan Modra <amodra@bigpond.net.au>
182 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
185 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
186 * configure: Regenerate.
187 * Makefile.am (BFD_H_FILES): Add version.h.
188 * Makefile.in: Regenerate.
189 * po/SRC-POTFILES.in: Regenerate.
191 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
192 elf_backend_copy_indirect_symbol so that backend has a chance to
193 copy other necessary fields.
194 * elf-bfd.h (struct elf_backend_data): Update description of
195 elf_backend_copy_indirect_symbol.
196 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
197 copying flags if this is a weakdef.
198 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
199 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
200 than bfd_link_hash_lookup.
201 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
202 reloc processing for weakdefs.
203 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
204 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
206 2001-10-02 Alan Modra <amodra@bigpond.net.au>
208 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
209 result of ELF64_R_TYPE to enum before using in a switch.
210 (ppc64_elf_gc_mark_hook): Likewise.
211 (ppc64_elf_gc_sweep_hook): Likewise.
212 (ppc64_elf_reloc_type_class): Likewise.
214 2001-10-02 Alan Modra <amodra@bigpond.net.au>
216 * version.h: New file.
217 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
218 (BFD_VERSION_DATE): Define.
219 (BFD_VERSION_STRING): Define.
220 * configure.in: AC_SUBST bfd_version, bfd_version_date and
222 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
223 * bfd-in2.h: Regenerate.
224 * configure: Regenerate.
225 * Makefile.am: Run "make dep-am".
226 * Makefile.in: Regenerate.
228 * bfd-in.h: Include "symcat.h".
229 (CONCAT4): Redefine as for old CAT4.
230 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
231 Add warning regarding whitespace.
232 * aout-cris.c: Likewise.
233 * aout-ns32k.c: Likewise.
234 * aout-sparcle.c: Likewise.
235 * aout-tic30.c: Likewise.
237 * armnetbsd.c: Likewise.
238 * demo64.c: Likewise.
239 * elf-bfd.h: Likewise.
240 * gen-aout.c: Likewise.
241 * host-aout.c: Likewise.
242 * hp300bsd.c: Likewise.
243 * hp300hpux.c: Likewise.
244 * i386aout.c: Likewise.
245 * i386bsd.c: Likewise.
246 * i386dynix.c: Likewise.
247 * i386freebsd.c: Likewise.
248 * i386linux.c: Likewise.
249 * i386lynx.c: Likewise.
250 * i386mach3.c: Likewise.
251 * i386netbsd.c: Likewise.
252 * libaout.h: Likewise.
253 * m68k4knetbsd.c: Likewise.
254 * m68klinux.c: Likewise.
255 * m68klynx.c: Likewise.
256 * m68knetbsd.c: Likewise.
257 * m88kmach3.c: Likewise.
258 * mipsbsd.c: Likewise.
259 * newsos3.c: Likewise.
260 * ns32knetbsd.c: Likewise.
261 * pc532-mach.c: Likewise.
263 * riscix.c: Likewise.
264 * sparclinux.c: Likewise.
265 * sparclynx.c: Likewise.
266 * sparcnetbsd.c: Likewise.
268 * targets.c: Likewise.
269 * vaxnetbsd.c: Likewise.
270 * vms-hdr.c: Likewise.
272 2001-10-01 Alan Modra <amodra@bigpond.net.au>
274 * bfd-in.h: Remove comments regarding generated files.
275 * libbfd-in.h: Likewise.
276 * libcoff-in.h: Likewise.
277 * bfd-in2.h: Regenerate.
278 * libbfd.h: Likewise.
279 * libcoff.h: Likewise.
281 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
282 Hans-Peter Nilsson <hp@bitrange.com>
284 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
285 partial_inplace, matching assembler output. Set src_mask to
287 (sh_elf_relocate_section): Delete misplaced comment.
288 For relocatable linking against section symbol, call
289 _bfd_relocate_contents for partial_inplace relocs and adjust
290 rel->r_addend for others.
291 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
292 bfd_get_32, not at rel->r_addend.
294 2001-09-30 Alan Modra <amodra@bigpond.net.au>
296 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
297 the old dir refcount, so we indirectly set them to init_refcount.
298 Short-circuit asserts when we've just verified they are true.
300 2001-09-29 Alan Modra <amodra@bigpond.net.au>
302 * section.c (struct sec): Remove kept_section.
303 (STD_SECTION): Remove kept_section initialisation.
304 (bfd_make_section_anyway): Here too.
305 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
306 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
307 * elflink.h (elf_link_input_bfd): Set discarded link-once section
308 symbols to zero, and remove all code involved with kept_section
309 and tracking section symbol values.
310 * bfd-in2.h: Regenerate.
311 * configure.in: Bump version number.
312 * configure: Regenerate.
314 2001-09-29 Alan Modra <amodra@bigpond.net.au>
316 * elf64-ppc.c (struct ppc_dyn_relocs): New.
317 (IS_ABSOLUTE_RELOC): Define.
318 (struct ppc_link_hash_entry): New.
319 (struct ppc_link_hash_table): New.
320 (ppc_hash_table): Define.
321 (link_hash_newfunc): New function.
322 (ppc64_elf_link_hash_table_create): New function.
323 (create_got_section): New function.
324 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
325 pointers to our dynamic sections in hash table.
326 (ppc64_elf_copy_indirect_symbol): New function.
327 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
328 dynamic sections. Localise vars. Modify code for refcounts
329 starting from zero. Don't allocate here, or force symbols dynamic.
330 Don't copy all relocs if shared, select ones we need. Add code
331 to track possible copy relocs for non-shared link.
332 (ppc64_elf_gc_mark_hook): Update comment.
333 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
334 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
335 code for reference counting garbage collection. Don't create .plt
336 entries for functions that don't comply with ABI naming convention,
337 and don't allocate .plt space here. Use short-cuts to dynamic
338 sections. If possible, keep dynamic relocations instead of using
339 copy relocs. Remove confused comments.
340 (ppc_adjust_dynindx): Delete.
341 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
342 (allocate_dynrelocs): New function.
343 (readonly_dynrelocs): New function.
344 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
345 space here, and call allocate_dynrelocs to allocate space for
346 global .plt, .got and reloc sections. Use short-cuts to dynamic
347 sections. Call readonly_dynrelocs to determine whether we need
348 DT_TEXTREL. Don't generate section symbols here, the generic
349 ELF linker code does it for us.
350 (ppc64_elf_final_link): Call regular ELF backend linker rather than
351 gc variety, since we do our own .got handling.
352 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
353 dynamic section short-cuts. Localise vars, and delay setting.
354 Handle unknown relocs in main switch statement. Replace ugly
355 complicated tests for unresolvable relocs with a simple direct
356 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
357 before allowing an undefined sym in a shared lib. Do R_*_DS tests
358 after main switch, when we've set addend. Do non-addend insn
359 tweaks before main swithc. Ignore input_section->vma when
360 calculating reloc offsets as it's always zero. Rewrite dynamic
361 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
362 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
363 of dynamic section short-cuts. Reorganise .plt handling code.
364 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
365 Move expressions out of swap_reloca_out function calls.
366 (ppc64_elf_reloc_type_class): New function.
367 (ppc64_elf_info_to_howto): Move common expression to local var.
368 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
369 of dynamic section short-cuts. Don't fiddle with section syms
370 here as the ELF linker does it for us.
371 (elf_backend_can_refcount): Define.
372 (bfd_elf64_bfd_link_hash_table_create): Define.
373 (elf_backend_copy_indirect_symbol): Define.
374 (elf_backend_reloc_type_class): Define.
375 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
377 2001-09-29 Alan Modra <amodra@bigpond.net.au>
379 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
380 (struct elf_backend_data): Add can_refcount.
381 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
382 got.refcount and plt.refcount from init_refcount.
383 (_bfd_elf_link_hash_table_init): Set up init_refcount.
384 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
385 rather than got/plt.offset, and test for <= 0 rather than -1.
386 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
387 * elfxx-target.h (elf_backend_can_refcount): Define.
388 (elfNN_bed): Init can_refcount.
389 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
390 (_bfd_generic_link_hash_newfunc): Likewise.
391 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
393 (elf_backend_can_refcount): Define.
394 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
396 (elf32_hppa_copy_indirect_symbol): Make static to agree with
398 (elf_backend_can_refcount): Define.
399 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
401 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
402 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
403 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
404 (elf_backend_can_refcount): Define.
405 (elf_i386_copy_indirect_symbol): Make static to agree with
406 prototype. Formatting fix.
407 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
409 (elf_backend_can_refcount): Define.
410 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
412 (elf_backend_can_refcount): Define.
413 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
415 (elf_backend_can_refcount): Define.
416 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
418 (elf_backend_can_refcount): Define.
419 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
421 (elf_backend_can_refcount): Define.
423 * som.c (som_write_symbol_strings): Cast current_offset in
424 bfd_seek call to match param type.
426 2001-09-28 J. Brobecker <brobecker@gnat.com>
428 * som.c (som_write_symbol_strings): Fix incorrect type of
429 current_offset to match the function definition. Fixes a build
430 failure on HPUX-11.00.
432 2001-09-28 Richard Henderson <rth@redhat.com>
434 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
435 SEC_MERGE, SEC_STRINGS.
437 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
438 * bfd-in2.h: Rebuild.
440 2001-09-28 Alan Modra <amodra@bigpond.net.au>
442 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
443 reloc code using x86_64_reloc_map.
445 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
446 no longer allocate here. Localise some vars to blocks where they
448 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
449 setting of vars until needed.
450 (allocate_dynrelocs): Don't create a .plt entry without a reloc
451 when symbol visibilty makes a function local.
452 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
453 swap_reloca_out function calls.
454 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
455 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
458 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
459 no longer allocate here. Localise some vars to blocks where they
460 are used. Remove separate switch stmt for creating .got sec.
461 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
462 redundant casts and aborts. Delay setting of vars until needed.
463 (allocate_dynrelocs): Remove redundant casts and aborts.
464 (elf_i386_size_dynamic_sections): Move comment.
465 (elf_i386_finish_dynamic_symbol): Move expressions out of function
467 (elf_i386_relocate_section): Likewise. Comment typo fix.
468 (elf_i386_finish_dynamic_sections): Migrate common code out of
470 (elf_backend_* defines): Sort.
472 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
473 without a reloc when symbol visibilty makes a function local.
475 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
477 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
478 conflicting float flags.
480 2001-09-26 Alan Modra <amodra@bigpond.net.au>
482 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
483 (elf_backend_copy_indirect_symbol): Define.
484 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
485 (struct elf_i386_link_hash_table): Likewise.
486 (link_hash_newfunc): Get rid of unnecessary casts.
487 (elf_i386_link_hash_table_create): Likewise.
488 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
489 Don't test input section SEC_READONLY here to try to avoid copy
490 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
491 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
492 here to properly test whether we need copy relocs. Do so for weak
495 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
496 (elf_backend_copy_indirect_symbol): Define.
497 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
498 (stub_hash_newfunc): Get rid of unnecessary casts.
499 (hppa_link_hash_newfunc): Likewise.
500 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
501 Don't test input section SEC_READONLY here to try to avoid copy
502 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
503 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
504 here to properly test whether we need copy relocs. Do so for weak
507 2001-09-26 Alan Modra <amodra@bigpond.net.au>
509 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
510 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
511 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
513 2001-09-25 Jakub Jelinek <jakub@redhat.com>
515 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
518 2001-09-25 H.J. Lu <hjl@gnu.org>
520 * bfd-in2.h: Regenerated.
522 2001-09-25 Alan Modra <amodra@bigpond.net.au>
524 * elf32-i386.c: Add comment re linker function names and ordering.
525 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
526 (elf_i386_grok_prstatus): Move before linker functions.
527 (elf_i386_grok_psinfo): Likewise.
528 (elf_i386_fake_sections): Move so that functions are ordered.
529 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
531 2001-09-25 Alan Modra <amodra@bigpond.net.au>
533 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
536 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
537 code handling this option.
538 (LONG_BRANCH_VIA_PLT): Likewise.
539 (RELATIVE_DYNRELOCS): Define as zero.
540 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
541 "pc_count" fields. Remove "section" field.
542 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
543 (elf32_hppa_check_relocs): Don't allocate space for dynamic
544 relocs here. Instead, record all needed dynamic relocs via
545 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
547 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
548 (allocate_plt_and_got_and_discard_relocs): Rename to
549 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
550 (readonly_dynrelocs): New function.
551 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
552 Call readonly_dynrelocs to determine need for DT_TEXTREL.
553 Rename "i" to "ibfd". Allocate space for local dyn relocs.
554 (elf32_hppa_relocate_section): Make use of cached sreloc.
555 (elf32_hppa_reloc_type_class): New function.
556 (elf_backend_reloc_type_class): Define.
558 2001-09-25 Alan Modra <amodra@bigpond.net.au>
560 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
562 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
563 "pc_count" fields. Remove "section" field.
564 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
565 allocate space for dynamic relocs here. Instead, record all
566 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
567 pointer to "sreloc" section in elf_section_data.
568 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
569 (allocate_plt_and_got_and_discard_relocs): Rename to
570 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
571 (readonly_dynrelocs): New function.
572 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
573 Rename "i" to "ibfd". Allocate space for local dyn relocs.
574 (elf_i386_relocate_section): Make use of cached sreloc.
576 2001-09-24 Alan Modra <amodra@bigpond.net.au>
578 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
579 reloc rather than just the type.
580 (_bfd_elf_reloc_type_class): Likewise.
581 * elf.c (_bfd_elf_reloc_type_class): Likewise.
582 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
583 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
584 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
585 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
586 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
587 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
588 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
589 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
590 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
591 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
592 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
593 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
594 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
595 * elflink.h: Formatting fixes.
596 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
597 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
598 o->contents to PTR. Update call to elf_backend_reloc_type_class.
600 2001-09-22 John Reiser <jreiser@BitWagon.com>
602 * elfcode.h (elf_object_p): Allow for no section header at all in
603 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
605 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
607 * elfxx-ia64.c: Fix compile time warning messages.
608 * coff-mcore.c: Fix compile time warning messages.
609 * coff-ppc.c: Fix compile time warning messages.
610 * coffcode.h: Fix compile time warning messages.
611 * elf32-mips.c: Fix compile time warning messages.
612 * elf64-alpha.c: Fix compile time warning messages.
613 * libbfd.c: Fix compile time warning messages.
614 * bfd-in2.h: Regenerate.
616 2001-09-21 Alan Modra <amodra@bigpond.net.au>
618 * Makefile.am: Run "make dep-am".
619 * Makefile.in: Regenerate.
621 * aoutx.h: Formatting fixes.
622 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
624 * linker.c: Replace bfd_get_filename with bfd_archive_filename
627 2001-09-21 Alan Modra <amodra@bigpond.net.au>
629 * bfd.c (bfd_archive_filename): New function.
630 * bfd-in2.h: Regenerate.
631 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
632 in error messages where the bfd is an input bfd.
633 * aout-cris.c: Likewise.
634 * coff-arm.c: Likewise.
635 * coff-mcore.c: Likewise.
636 * coff-ppc.c: Likewise.
637 * coff-rs6000.c: Likewise.
638 * coff-sh.c: Likewise.
639 * coff-tic54x.c: Likewise.
640 * coff-tic80.c: Likewise.
641 * coff64-rs6000.c: Likewise.
642 * coffcode.h: Likewise.
643 * coffgen.c: Likewise.
644 * cofflink.c: Likewise.
645 * ecofflink.c: Likewise.
646 * elf-hppa.h: Likewise.
648 * elf32-arm.h: Likewise.
649 * elf32-cris.c: Likewise.
650 * elf32-gen.c: Likewise.
651 * elf32-hppa.c: Likewise.
652 * elf32-i370.c: Likewise.
653 * elf32-i386.c: Likewise.
654 * elf32-m32r.c: Likewise.
655 * elf32-mcore.c: Likewise.
656 * elf32-mips.c: Likewise.
657 * elf32-ppc.c: Likewise.
658 * elf32-s390.c: Likewise.
659 * elf32-sh.c: Likewise.
660 * elf32-sparc.c: Likewise.
661 * elf32-v850.c: Likewise.
662 * elf64-alpha.c: Likewise.
663 * elf64-gen.c: Likewise.
664 * elf64-ppc.c: Likewise.
665 * elf64-s390.c: Likewise.
666 * elf64-sparc.c: Likewise.
667 * elf64-x86-64.c: Likewise.
668 * elflink.h: Likewise.
669 * elfxx-ia64.c: Likewise.
672 * libbfd.c: Likewise.
674 * pe-mips.c: Likewise.
675 * peicode.h: Likewise.
677 * xcofflink.c: Likewise.
679 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
681 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
684 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
687 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
688 Consolidate error messages, and split long messages to two lines.
690 2001-09-20 John Reiser <jreiser@BitWagon.com>
692 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
693 and info->allow_shlib_undefined.
694 * elf32-cris.c: Likewise.
695 * elf32-hppa.c: Likewise.
696 * elf32-m68k.c: Likewise.
697 * elf32-mips.c: Likewise.
698 * elf32-ppc.c: Likewise.
699 * elf32-s390.c: Likewise.
700 * elf32-sh.c: Likewise.
701 * elf32-sparc.c: Likewise.
702 * elf64-alpha.c: Likewise.
703 * elf64-hppa.c: Likewise.
704 * elf64-ppc.c: Likewise.
705 * elf64-s390.c: Likewise.
706 * elf64-sparc.c: Likewise.
707 * elf64-x86-64.c: Likewise.
708 * elfxx-ia64.c: Likewise.
710 2001-09-18 Bruno Haible <haible@clisp.cons.org>
712 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
713 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
714 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
715 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
716 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
717 (bfd_default_scan): Use ISDIGIT instead of isdigit.
718 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
719 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
720 isxdigit/isdigit/islower.
721 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
722 (mangle_name): Use ISALNUM instead of isalnum.
723 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
724 (scan): Use ISDIGIT instead of isdigit.
725 * hosts/alphavms.h: Don't include <ctype.h>.
726 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
727 (ieee_object_p): Use TOUPPER instead of toupper.
728 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
729 (ihex_bad_byte): Use ISPRINT instead of isprint.
730 * merge.c: Don't include <ctype.h>.
731 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
732 (oasys_write_sections): Use ISDIGIT instead of isdigit.
733 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
734 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
735 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
736 (mangle_name): Use ISALNUM instead of isalnum.
737 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
738 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
739 isupper/islower/isdigit.
740 (som_decode_symclass): Use TOUPPER instead of toupper.
741 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
742 (srec_bad_byte): Use ISPRINT instead of isprint.
743 (srec_scan): Use ISSPACE instead of isspace.
744 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
745 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
746 * syms.c: Include "safe-ctype.h"
747 (islower, toupper): Remove macro definitions.
748 (bfd_decode_symclass): Use TOUPPER instead of toupper.
749 * vms-gsd.c: Don't include <ctype.h>.
750 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
751 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
753 * vms-tir.c: Don't include <ctype.h>.
755 2001-09-18 Alan Modra <amodra@bigpond.net.au>
757 * libbfd.c (bfd_bread): New function replacing bfd_read without
758 redundant params. Allow reads up to (size_t) -2 in length.
759 (bfd_bwrite): Similarly for bfd_write.
760 (real_read): Return a size_t.
761 (bfd_read): Call bfd_bread.
762 (bfd_write): Call bfd_bwrite.
763 (warn_deprecated): New function to annoy everybody.
764 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
765 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
766 (bfd_read, bfd_write): Define as macro.
767 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
768 likewise for bfd_write. Ensure function args are correct size by
769 using casts or local vars. In some cases, remove unnecessary
770 casts. Formatting fixes, in some cases removing a large expression
771 from function args by using a local var. Replace CONST with const.
772 Modify variable types to avoid warings. Use casts to avoid
773 warnings when using negative numbers in unsigned expressions.
774 * aout-adobe.c: Likewise.
775 * aout-arm.c: Likewise.
776 * aout-cris.c: Likewise.
777 * aout-encap.c: Likewise.
778 * aout-ns32k.c: Likewise.
779 * aout-target.h: Likewise.
780 * aout-tic30.c: Likewise.
781 * aoutf1.h: Likewise.
783 * archive.c: Likewise.
784 * archures.c: Likewise.
785 * bfd-in.h: Likewise.
787 * binary.c: Likewise.
790 * cisco-core.c: Likewise.
791 * coff-a29k.c: Likewise.
792 * coff-alpha.c: Likewise.
793 * coff-arm.c: Likewise.
794 * coff-h8300.c: Likewise.
795 * coff-h8500.c: Likewise.
796 * coff-i386.c: Likewise.
797 * coff-i860.c: Likewise.
798 * coff-i960.c: Likewise.
799 * coff-ia64.c: Likewise.
800 * coff-m68k.c: Likewise.
801 * coff-m88k.c: Likewise.
802 * coff-mcore.c: Likewise.
803 * coff-mips.c: Likewise.
804 * coff-ppc.c: Likewise.
805 * coff-rs6000.c: Likewise.
806 * coff-sh.c: Likewise.
807 * coff-sparc.c: Likewise.
808 * coff-stgo32.c: Likewise.
809 * coff-tic30.c: Likewise.
810 * coff-tic54x.c: Likewise.
811 * coff-tic80.c: Likewise.
812 * coff-w65.c: Likewise.
813 * coff-z8k.c: Likewise.
814 * coff64-rs6000.c: Likewise.
815 * coffcode.h: Likewise.
816 * coffgen.c: Likewise.
817 * cofflink.c: Likewise.
818 * coffswap.h: Likewise.
819 * corefile.c: Likewise.
820 * cpu-arc.c: Likewise.
821 * cpu-h8300.c: Likewise.
822 * cpu-h8500.c: Likewise.
823 * cpu-i960.c: Likewise.
824 * cpu-ia64-opc.c: Likewise.
825 * cpu-ns32k.c: Likewise.
826 * cpu-pdp11.c: Likewise.
827 * cpu-pj.c: Likewise.
828 * cpu-sh.c: Likewise.
829 * cpu-w65.c: Likewise.
830 * cpu-z8k.c: Likewise.
831 * dwarf1.c: Likewise.
832 * dwarf2.c: Likewise.
834 * ecofflink.c: Likewise.
835 * ecoffswap.h: Likewise.
836 * elf-bfd.h: Likewise.
837 * elf-hppa.h: Likewise.
838 * elf-m10200.c: Likewise.
839 * elf-m10300.c: Likewise.
841 * elf32-arc.c: Likewise.
842 * elf32-arm.h: Likewise.
843 * elf32-avr.c: Likewise.
844 * elf32-cris.c: Likewise.
845 * elf32-fr30.c: Likewise.
846 * elf32-gen.c: Likewise.
847 * elf32-h8300.c: Likewise.
848 * elf32-hppa.c: Likewise.
849 * elf32-i370.c: Likewise.
850 * elf32-i386.c: Likewise.
851 * elf32-i860.c: Likewise.
852 * elf32-m32r.c: Likewise.
853 * elf32-m68k.c: Likewise.
854 * elf32-mcore.c: Likewise.
855 * elf32-mips.c: Likewise.
856 * elf32-openrisc.c: Likewise.
857 * elf32-pj.c: Likewise.
858 * elf32-ppc.c: Likewise.
859 * elf32-s390.c: Likewise.
860 * elf32-sh-lin.c: Likewise.
861 * elf32-sh.c: Likewise.
862 * elf32-sparc.c: Likewise.
863 * elf32-v850.c: Likewise.
864 * elf64-alpha.c: Likewise.
865 * elf64-hppa.c: Likewise.
866 * elf64-mips.c: Likewise.
867 * elf64-ppc.c: Likewise.
868 * elf64-s390.c: Likewise.
869 * elf64-sparc.c: Likewise.
870 * elf64-x86-64.c: Likewise.
871 * elfarm-nabi.c: Likewise.
872 * elfcode.h: Likewise.
873 * elfcore.h: Likewise.
874 * elflink.c: Likewise.
875 * elflink.h: Likewise.
876 * elfxx-ia64.c: Likewise.
877 * elfxx-target.h: Likewise.
878 * format.c: Likewise.
880 * hp300hpux.c: Likewise.
881 * hppabsd-core.c: Likewise.
882 * hpux-core.c: Likewise.
883 * i386aout.c: Likewise.
884 * i386dynix.c: Likewise.
885 * i386linux.c: Likewise.
886 * i386lynx.c: Likewise.
887 * i386mach3.c: Likewise.
888 * i386msdos.c: Likewise.
889 * i386os9k.c: Likewise.
892 * irix-core.c: Likewise.
893 * libaout.h: Likewise.
894 * libbfd-in.h: Likewise.
895 * libbfd.c: Likewise.
896 * libcoff-in.h: Likewise.
897 * libecoff.h: Likewise.
898 * libieee.h: Likewise.
899 * libnlm.h: Likewise.
900 * libpei.h: Likewise.
901 * libxcoff.h: Likewise.
902 * linker.c: Likewise.
903 * lynx-core.c: Likewise.
904 * m68klinux.c: Likewise.
906 * mipsbsd.c: Likewise.
907 * netbsd-core.c: Likewise.
909 * nlm32-alpha.c: Likewise.
910 * nlm32-i386.c: Likewise.
911 * nlm32-ppc.c: Likewise.
912 * nlm32-sparc.c: Likewise.
913 * nlmcode.h: Likewise.
914 * nlmswap.h: Likewise.
917 * opncls.c: Likewise.
918 * osf-core.c: Likewise.
919 * pc532-mach.c: Likewise.
921 * pe-mips.c: Likewise.
922 * peXXigen.c: Likewise.
923 * peicode.h: Likewise.
924 * ppcboot.c: Likewise.
925 * ptrace-core.c: Likewise.
927 * reloc16.c: Likewise.
928 * riscix.c: Likewise.
929 * rs6000-core.c: Likewise.
930 * sco5-core.c: Likewise.
931 * section.c: Likewise.
933 * sparclinux.c: Likewise.
934 * sparclynx.c: Likewise.
939 * targets.c: Likewise.
940 * tekhex.c: Likewise.
941 * trad-core.c: Likewise.
942 * versados.c: Likewise.
943 * vms-gsd.c: Likewise.
944 * vms-hdr.c: Likewise.
945 * vms-misc.c: Likewise.
946 * vms-tir.c: Likewise.
949 * xcofflink.c: Likewise.
950 * bfd-in2.h: Regenerate.
951 * libbfd.h: Regenerate.
952 * libcoff.h: Regenerate.
954 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
955 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
957 (bfd_tell): Return a ufile_ptr.
958 * libbfd.c (bfd_tell): Likewise.
959 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
961 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
962 * aoutf1.h: Likewise.
964 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
965 larger than unsigned long can represent.
967 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
968 size overflows size_t.
969 (bfd_realloc): Likewise.
970 (bfd_zmalloc): Likewise.
971 * opncls.c (bfd_alloc): Likewise.
972 (bfd_zalloc): Likewise.
973 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
974 (bfd_alloc, bfd_zalloc): Update.
976 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
978 (bfd_get_signed_8): Likewise.
979 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
980 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
981 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
982 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
983 * libaout.h: Likewise define and use here.
984 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
985 * aout-arm.c: Likewise.
986 * aout-encap.c: Likewise.
987 * aout-ns32k.c: Likewise.
988 * aout-tic30.c: Likewise.
989 * aoutf1.h: Likewise.
992 * coff-alpha.c: Likewise.
993 * coff-h8300.c: Likewise.
994 * coff-h8500.c: Likewise.
995 * coff-i960.c: Likewise.
996 * coff-ia64.c: Likewise.
997 * coff-m88k.c: Likewise.
998 * coff-mips.c: Likewise.
999 * coff-ppc.c: Likewise.
1000 * coff-rs6000.c: Likewise.
1001 * coff-sh.c: Likewise.
1002 * coff-sparc.c: Likewise.
1003 * coff-stgo32.c: Likewise.
1004 * coff-tic30.c: Likewise.
1005 * coff-tic80.c: Likewise.
1006 * coff-w65.c: Likewise.
1007 * coff-z8k.c: Likewise.
1008 * coff64-rs6000.c: Likewise.
1009 * coffgen.c: Likewise.
1010 * cofflink.c: Likewise.
1011 * coffswap.h: Likewise.
1012 * ecoff.c: Likewise.
1013 * ecoffswap.h: Likewise.
1015 * elf32-mips.c: Likewise.
1016 * elf64-mips.c: Likewise.
1017 * hp300hpux.c: Likewise.
1018 * i386dynix.c: Likewise.
1019 * i386lynx.c: Likewise.
1020 * i386msdos.c: Likewise.
1021 * i386os9k.c: Likewise.
1022 * libpei.h: Likewise.
1023 * nlm32-alpha.c: Likewise.
1024 * nlm32-i386.c: Likewise.
1025 * nlm32-ppc.c: Likewise.
1026 * nlmcode.h: Likewise.
1027 * nlmswap.h: Likewise.
1028 * oasys.c: Likewise.
1029 * pdp11.c: Likewise.
1030 * pe-mips.c: Likewise.
1031 * peXXigen.c: Likewise.
1032 * peicode.h: Likewise.
1033 * riscix.c: Likewise.
1034 * sunos.c: Likewise.
1035 * xcofflink.c: Likewise.
1036 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1037 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1038 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1039 equivalent H_PUT_* macro instead.
1040 (GETWORD, GETHALF, GETBYTE): Similarly.
1041 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1042 (GETWORD, GETHALF, GETBYTE): Likewise.
1043 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1045 * bfd-in.h (struct orl): Change "pos" to a union.
1046 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1047 (bsd_write_armap): Here too.
1048 (coff_write_armap): And here.
1049 * coff-rs6000.c (xcoff_write_armap_old): And here.
1050 (xcoff_write_one_armap_big): And here.
1051 (xcoff_write_armap_big): And here.
1052 * ecoff.c (_bfd_ecoff_write_armap): And here.
1053 * elf64-mips.c (mips_elf64_write_armap): And here.
1055 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1056 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1057 * elf32-h8300.c (elf32_h8_mach): Likewise.
1058 * elf32-mips.c (elf_mips_mach): Likewise.
1059 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1061 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1063 (aix386_core_vec): Typo fix.
1065 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1066 etc. to avoid redefined macro warning.
1067 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1068 (MY(fix_pcrel_26)): Likewise.
1069 * aout-ns32k.c (MY(put_reloc)): Likewise.
1070 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1071 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1072 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1074 * aout-encap.c: Include "file", not <file> for binutils headers.
1075 (encap_object_p): Half baked attempt to fix compile errors in
1076 code dealing with "magic".
1078 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1079 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1080 bfd_vma's rather than longs.
1081 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1082 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1083 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1085 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1086 Use unsigned comparisons.
1087 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1088 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1089 (_bfd_do_ns32k_reloc_contents): Likewise.
1090 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1091 (_bfd_ns32k_get_immediate): Likewise.
1092 (_bfd_ns32k_put_displacement): Likewise.
1093 (_bfd_ns32k_put_immediate): Likewise.
1094 (bfd_reloc_status_type): Likewise.
1096 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1098 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1099 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1100 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1102 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1103 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1104 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1106 (_bfd_elfcore_strndup): Likewise for "dup".
1107 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1108 "name" to avoid shadowing.
1109 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1110 definition of "off".
1111 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1112 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1114 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1116 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1118 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1120 (elf_link_input_bfd): Likewise.
1121 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1122 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1123 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1125 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1126 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1127 (sunos_write_dynamic_symbol): Remove unused vars.
1128 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1129 innermost "directory_name" and "file_name" vars.
1130 * tekhex.c (first_phase): Rename local var "type" to "stype".
1131 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1132 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1133 doing comparison at caller.
1134 (vms_esecflag_by_name): Likewise.
1135 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1136 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1137 (xcoff_write_global_symbol): Rename "p" param to "inf".
1139 * cisco-core.c: Add missing prototypes.
1140 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1141 (cisco_core_file_failing_signal): Likewise.
1142 (cisco_core_file_matches_executable_p): Likewise.
1143 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1144 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1145 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1146 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1148 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1149 thumb_glue_size and arm_glue_size.
1150 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1152 * coff64-rs6000.c: Group prototypes together.
1154 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1155 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1157 * cpu-arc.c: Add missing prototypes.
1158 * cpu-h8500.c: Likewise.
1159 * cpu-i960.c: Likewise.
1160 * cpu-pj.c: Likewise.
1161 * cpu-sh.c: Likewise.
1162 * cpu-w65.c: Likewise.
1163 * cpu-z8k.c: Likewise.
1164 * elf32-fr30.c: Likewise.
1165 * elf32-h8300.c: Likewise.
1166 * elf32-i370.c: Likewise.
1167 * hpux-core.c: Likewise.
1168 * versados.c: Likewise.
1170 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1171 * cpu-h8500.c: Likewise.
1172 * cpu-i960.c: Likewise.
1173 * cpu-z8k.c: Likewise.
1175 * cpu-ia64-opc.c: Correct comment.
1177 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1179 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1181 (bfd_elf32_write_out_phdrs): Likewise.
1182 (bfd_elf64_write_out_phdrs): Likewise.
1183 (elf_linker_section_pointers): Change addend to bfd_vma.
1184 (_bfd_elf_find_pointer_linker_section): Likewise.
1185 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1186 filepos to unsigned file_ptr.
1187 (_bfd_elfcore_strndup): Change max param to size_t.
1188 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1189 (_bfd_elfcore_strndup): Likewise.
1190 (_bfd_elf_find_pointer_linker_section): Likewise.
1192 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1193 insn and sym_value to ints.
1195 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1197 (elfcore_read_notes): Likewise.
1199 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1200 param from unsigned char to int.
1201 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1202 for info_to_howto call.
1203 (add_dynamic_entry): Define macro.
1204 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1206 * elf32-cris.c (add_dynamic_entry): Define macro.
1207 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1209 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1210 (elf32_h8_object_p): Likewise.
1211 (elf32_h8_merge_private_bfd_data): Likewise.
1212 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1214 * elf32-hppa.c (add_dynamic_entry): Define macro.
1215 (elf32_hppa_size_dynamic_sections): Use it.
1216 * elf32-i370.c (add_dynamic_entry): Define macro.
1217 (i370_elf_size_dynamic_sections): Use it.
1218 (i370_noop): Make static.
1219 * elf32-i386.c (add_dynamic_entry): Define macro.
1220 (elf_i386_size_dynamic_sections): Use it.
1221 * elf32-m68k.c (add_dynamic_entry): Define macro.
1222 (elf_m68k_size_dynamic_sections): Use it.
1223 * elf32-ppc.c (add_dynamic_entry): Define macro.
1224 (ppc_elf_size_dynamic_sections): Use it.
1225 * elf32-s390.c (add_dynamic_entry): Define macro.
1226 (elf_s390_size_dynamic_sections): Use it.
1227 * elf64-alpha.c (add_dynamic_entry): Define macro.
1228 (elf64_alpha_size_dynamic_sections): Use it.
1229 * elf64-hppa.c (add_dynamic_entry): Define macro.
1230 (elf64_hppa_size_dynamic_sections): Use it.
1231 * elf64-ppc.c (add_dynamic_entry): Define macro.
1232 (ppc64_elf_size_dynamic_sections): Use it.
1233 * elf64-s390.c (add_dynamic_entry): Define macro.
1234 (elf_s390_size_dynamic_sections): Use it.
1235 * elf64-sparc.c (add_dynamic_entry): Define macro.
1236 (sparc64_elf_size_dynamic_sections): Use it.
1237 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1238 (elf64_x86_64_size_dynamic_sections): Use it.
1239 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1240 (elfNN_ia64_size_dynamic_sections): Use it.
1242 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1243 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1245 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1246 false if the first malloc fails rather than going via error_return.
1248 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1250 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1252 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1254 * elfxx-ia64.c (global_sym_index): Return a long.
1256 * ieee.c (get_symbol): Use int rather than char param.
1257 (ieee_slurp_sections): Move "section" var to inner blocks.
1258 (copy_expression): Don't init "value" to zero or worry about
1259 clearing to zero after using.
1260 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1263 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1266 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1267 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1269 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1271 * pc532-mach.c (MYNSX): Delete.
1272 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1273 (write_object_contents): Correct prototype.
1275 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1276 than unsigned short.
1278 * section.c (bfd_set_section_contents): Remove redundant
1279 "offset < 0" test. Check that "count" doesn't overflow size_t.
1280 (bfd_get_section_contents): Likewise.
1282 * som.c (som_fixup_formats): Add missing braces.
1283 (som_reloc_addend): Pass a bfd_vma for "addend".
1285 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1286 (srec_write_symbols): Remove an unnecessary var.
1288 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1290 * configure.in: Sort to match. Bump version number.
1291 * configure: Regenerate.
1293 * tekhex.c (move_section_contents): Assert offset == 0.
1295 * versados.c (new_symbol_string): Constify arg.
1296 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1297 (versados_get_symbol_info): Make static.
1298 (versados_print_symbol): Likewise.
1299 (versados_get_reloc_upper_bound): Likewise.
1300 (versados_canonicalize_reloc): Likewise.
1302 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1304 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1306 2001-09-17 H.J. Lu <hjl@gnu.org>
1308 * dwarf1.c (parse_die): Take a new arg for the end of the
1309 section. Return false if die is beyond the section.
1310 (parse_functions_in_unit): Pass the end of the section to
1312 (_bfd_dwarf1_find_nearest_line): Likewise.
1314 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1316 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1317 just like R_SPARC_32.
1319 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1321 * configure.bfd: Add arm-openbsd target.
1323 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1325 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1326 Add support for mips64.
1328 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1330 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1332 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1334 * elf.c (prep_headers): Get the machine code from the elf
1336 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1337 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1338 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1339 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1340 * elf-arc.c (arc_elf_final_write_processing): Don't override
1341 e_machine, it's now properly set in prep_headers.
1342 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1344 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1345 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1346 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1347 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1348 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1349 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1350 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1351 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1352 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1353 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1354 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1355 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1357 2001-09-11 Richard Henderson <rth@redhat.com>
1359 * elf64-alpha.c (elf64_alpha_section_flags): New.
1360 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1362 2001-09-11 Richard Henderson <rth@redhat.com>
1364 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1365 apply HINT relocations against dynamic symbols.
1367 2001-09-11 H.J. Lu <hjl@gnu.org>
1369 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1371 2001-09-09 Richard Henderson <rth@redhat.com>
1373 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1375 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1376 following a call to a near function.
1378 2001-09-08 Richard Henderson <rth@redhat.com>
1380 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1381 relocation errors. Fail gp-relative relocations against
1384 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1386 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1387 as well as DEF_DYNAMIC in test for avoided copy relocs.
1388 (allocate_plt_and_got_and_discard_relocs): Likewise.
1389 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1390 (allocate_plt_and_got_and_discard_relocs): Likewise.
1392 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1394 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1397 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1399 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1401 (mips_elf64_howto_table_rel): Likewise.
1403 2001-09-05 Tom Rix <trix@redhat.com>
1405 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1406 and syscall symbols.
1407 (write_global_symbol) : Same.
1408 (bfd_xcoff_export_symbol): Remove unused syscall param.
1409 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1410 bfd_xcoff_import_symbol.
1412 * bfd-in2.h : Regenerate.
1414 2001-09-04 Richard Henderson <rth@redhat.com>
1416 * elf64-alpha.c (SKIP_HOWTO): New.
1417 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1418 Fix sizes of 16-bit mem format relocs.
1419 (elf64_alpha_reloc_map): Update to match.
1420 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1421 (elf64_alpha_relax_without_lituse): Likewise.
1422 (elf64_alpha_check_relocs): Handle GPREL16.
1423 (elf64_alpha_relocate_section): Likewise.
1424 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1425 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1426 * bfd-in2.h, libbfd.h: Rebuild.
1428 2001-09-04 Jeff Law <law@redhat.com>
1430 * elf32-h8300.c (elf32_h8_relax_section): New function.
1431 (elf32_h8_relax_delete_bytes): Likewise.
1432 (elf32_h8_symbol_address_p): Likewise.
1433 (elf32_h8_get_relocated_section_contents): Likewise.
1434 (bfd_elf32_bfd_relax_section): Define.
1435 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1437 * elf32-h8300.c (special): New function.
1438 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1440 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1441 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1442 Fix minor problems with 8bit and 16bit PC relative relocations.
1444 2001-09-01 Andreas Jaeger <aj@suse.de>
1446 * vms-tir.c: Add missing prototypes.
1447 * vms-hdr.c: Likewise.
1448 * vms-gsd.c: Likewise.
1449 * vms-misc.c: Likewise.
1451 2001-08-31 H.J. Lu <hjl@gnu.org>
1453 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1454 with bad relocation.
1456 2001-08-31 Eric Christopher <echristo@redhat.com>
1457 Jason Eckhardt <jle@redhat.com>
1459 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1460 mips32_4k and mips64.
1461 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1462 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1463 * bfd/cpu-mips.c: Ditto.
1464 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1465 * bfd/bfd-in2.h: Regenerate.
1467 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1469 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1470 value into R_ALPHA_RELATIVE's addend.
1471 (elf64_alpha_finish_dynamic_symbol): Likewise.
1473 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1475 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1476 recomputed addend during relocatable link if not USE_REL.
1478 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1481 2001-08-30 H.J. Lu <hjl@gnu.org>
1483 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1485 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1486 relocations for weak definitions.
1488 2001-08-30 H.J. Lu <hjl@gnu.org>
1490 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1491 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1492 * Makefile.in: Rebuild.
1494 2001-08-30 H.J. Lu <hjl@gnu.org>
1496 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1497 dynamic relocation for undefined weak symbols when creating
1498 executables. Check h->root.root.type, instead of h->root.type.
1500 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1502 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1503 default from coff to elf.
1505 2001-08-29 Jeff Law <law@redhat.com>
1507 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1509 (h8_reloc_map): Similarly.
1510 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1511 Add support for PC relative relocations.
1513 * elf32-h8300.c: Put all prototypes together.
1514 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1515 (elf32_h8_final_link_relocate): New function for linker.
1516 (elf32_h8_relocate_section): Similarly.
1517 (elf_backend_relocate_section): Define.
1519 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1520 (h8300_scan): Handle architecture:machine encodings typically
1521 found in linker scripts.
1522 * elf.c (prep_headers): Do not try to do H8 machine recognition
1524 * elf32-h8300.c: Add some missing prototypes.
1525 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1526 (elf32_h8_object_p): Similarly.
1528 2001-08-29 Tom Rix <trix@redhat.com>
1530 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1531 does not follow a XTY_SD.
1533 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1535 * targmatch.sed: Delete case statements.
1536 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1539 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1541 * Makefile.am (elf32-h8300.lo): New target.
1542 * config.bfd (h8300*-*-elf): New case.
1543 * configure.in (bfd_elf32_h8300_vec): New case.
1544 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1545 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1546 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1547 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1548 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1549 * elf32-h8300.c: New file.
1550 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1552 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1554 * sparclynx.c: Add missing prototypes.
1555 * coff-mcore.c: Add missing prototypes.
1556 * elf32-pj.c: Add missing prototypes.
1557 * nlm32-sparc.c: Add missing prototypes.
1558 * oasys.c: Add missing prototypes.
1559 * pdp11.c: Add missing prototypes.
1560 * pe-mips.c: Add missing prototypes.
1561 * riscix.c: Add missing prototypes.
1563 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1565 * elf32-i386.c: Add missing prototypes.
1566 * elf32-ppc.c: Likewise.
1567 * elf32-sh-lin.c: Likewise.
1568 * elfarm-nabi.c: Likewise.
1570 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1572 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1573 (elf_i386_grok_psinfo): New function.
1574 (elf_backend_grok_prstatus): Define.
1575 (elf_backend_grok_psinfo): Likewise.
1576 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1577 (ppc_elf_grok_psinfo): New function.
1578 (elf_backend_grok_prstatus): Define.
1579 (elf_backend_grok_psinfo): Likewise.
1580 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1581 (elf32_shlin_grok_psinfo): New function.
1582 (elf_backend_grok_prstatus): Define.
1583 (elf_backend_grok_psinfo): Likewise.
1584 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1585 (elf32_arm_nabi_grok_psinfo): New function.
1586 (elf_backend_grok_prstatus): Define.
1587 (elf_backend_grok_psinfo): Likewise.
1589 2001-08-27 H.J. Lu <hjl@gnu.org>
1591 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1593 (mips_elf_calculate_relocation): Create dynamic relocation for
1594 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1597 2001-08-27 H.J. Lu <hjl@gnu.org>
1599 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1600 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1601 (_bfd_elf32_mips_grok_prstatus): Likewise.
1602 (_bfd_elf32_mips_grok_psinfo): Likewise.
1603 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1604 `struct mips_elf_link_hash_entry *'.
1605 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1607 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1609 * mipsbsd.c: Add missing prototypes.
1610 * hp300hpux.c: Add missing prototypes.
1611 * i386aout.c: Add missing prototypes.
1612 * i386lynx.c: Add missing prototypes.
1613 * i386mach3.c: Add missing prototypes.
1614 * i386msdos.c: Add missing prototypes.
1615 * i386os9k.c: Add missing prototypes.
1617 2001-08-27 Linus Nordberg <linus@swox.se>
1618 Torbjorn Granlund <tege@swox.com>
1619 Staffan Ulfberg <staffanu@swox.se>
1620 Alan Modra <amodra@bigpond.net.au>
1622 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1623 targ64_selvecs for 32 bit powerpc targets.
1624 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1625 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1627 * Makefile.in: Regenerate.
1628 * configure.in: Add elf64_powerpc vecs.
1629 * configure: Regenerate.
1630 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1631 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1632 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1633 * elf64-ppc.c: New file.
1634 * reloc.c: Add powerpc64 relocs.
1635 * libbfd.h: Regenerate.
1636 * bfd-in2.h: Regenerate.
1638 2001-08-27 Andreas Schwab <schwab@suse.de>
1640 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1641 reloc is against read-only section.
1642 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1643 looking up section names for DT_TEXTREL.
1644 (elf32_m68k_reloc_type_class): New function.
1645 (elf_backend_reloc_type_class): Define.
1647 2001-08-27 Andreas Jaeger <aj@suse.de>
1649 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1650 reloc is against read-only section.
1651 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1652 looking up section names for DT_TEXTREL.
1653 (elf_s390_reloc_type_class): New.
1654 (elf_backend_reloc_type_class): Define.
1656 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1657 reloc is against read-only section.
1658 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1659 looking up section names for DT_TEXTREL.
1660 (elf_s390_reloc_type_class): New.
1661 (elf_backend_reloc_type_class): Define.
1663 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1664 is against read-only section.
1665 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1666 looking up section names for DT_TEXTREL.
1667 (ppc_elf_reloc_type_class): New.
1668 (elf_backend_reloc_type_class): Define.
1670 2001-08-26 Andreas Jaeger <aj@suse.de>
1672 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1673 reloc is against read-only section.
1674 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1675 looking up section names for DT_TEXTREL.
1676 (elf_cris_reloc_type_class): New.
1677 (elf_backend_reloc_type_class): Define.
1679 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1680 against read-only section.
1681 (elf_backend_reloc_type_class): Define.
1682 (sh_elf_reloc_type_class): New.
1683 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1684 looking up section names for DT_TEXTREL.
1686 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1687 reloc is against read-only section.
1688 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1689 looking up section names for DT_TEXTREL.
1690 (elf32_arm_reloc_type_class): New.
1691 (elf_backend_reloc_type_class): Define.
1693 2001-08-25 Andreas Jaeger <aj@suse.de>
1695 * oasys.c: Add missing prototypes.
1697 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1698 attribute for parameter.
1699 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1701 * versados.c (get_4): Make static.
1702 (get_10): Make static.
1703 Add missing prototypes.
1704 (process_esd): Fix call to versados_new_symbol.
1706 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1708 * coff-a29k.c: Add missing prototypes.
1709 * coff-apollo.c: Add missing prototypes.
1710 * coff-arm.c: Add missing prototypes.
1711 * coff-i860.c: Add missing prototypes.
1712 * coff-rs6000.c: Add missing prototypes.
1713 * coff-tic80.c: Add missing prototypes.
1714 * elf-m10200.c: Add missing prototypes.
1715 * elf-m10300.c: Add missing prototypes.
1716 * elf32-arm.h: Add missing prototypes.
1717 * elf32-d10v.c: Add missing prototypes.
1718 * elf32-m32r.c: Add missing prototypes.
1719 * elf32-mcore.c: Add missing prototypes.
1720 * elf32-openrisc.c: Add missing prototypes.
1721 * elf32-sh.c: Add missing prototypes.
1722 * elf32-sparc.c: Add missing prototypes.
1723 * elf32-v850.c: Add missing prototypes.
1724 * elfarm-nabi.c: Add missing prototypes.
1725 * elfarm-oabi.c: Add missing prototypes.
1727 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1729 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1730 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1732 2001-08-24 H.J. Lu <hjl@gnu.org>
1734 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1737 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1739 * elf-bfd.h (elf_hash_table): Revert definition.
1740 (is_elf_hash_table): New macro.
1741 * elflink.h (elf_link_add_object_symbols): Test
1742 is_elf_hash_table before accessing ELF only fields in hash
1744 (elf_link_create_dynamic_sections): Fail if not using an ELF
1746 (elf_add_dynamic_entry): Fail if not using an ELF hash
1748 (elf_link_record_local_dynamic_symbol): Fail if not using an
1750 (size_dynamic_sections): Fail if not using an ELF hash
1752 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1754 (elf_bfd_final_link): Fail if not using an ELF hash
1757 2001-08-24 H.J. Lu <hjl@gnu.org>
1759 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1760 table is not an ELF linker hash table.
1762 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1763 table type to bfd_link_elf_hash_table.
1765 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1768 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1769 table type to bfd_link_generic_hash_table.
1771 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1773 * bfd.c (bfd_alt_mach_code): New function.
1774 * bfd-in2.h: Rebuilt.
1776 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1778 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1779 `type' field in the hash entry when deciding whether to follow a
1782 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1784 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1786 (elf_link_sort_relocs): Adjust accordingly.
1788 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1789 (elf64_alpha_check_relocs): Set it if section this reloc is against
1790 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1792 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1793 is is against read-only section.
1794 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1795 check section names.
1796 (elf64_alpha_reloc_type_class): New.
1797 (elf_backend_reloc_type_class): Define.
1799 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1801 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1804 2001-08-23 Andreas Jaeger <aj@suse.de>
1806 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1807 the reloc is against read-only section.
1808 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1809 of looking up section names for DT_TEXTREL.
1810 (elf64_x86_64_reloc_type_class): New.
1811 (elf_backend_reloc_type_class): Define.
1813 2001-08-23 H.J. Lu <hjl@gnu.org>
1815 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1816 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1818 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1819 bfd_print_symbol_vandf.
1820 * coffgen.c (coff_print_symbol): Likewise.
1821 * elf.c (bfd_elf_print_symbol): Likewise.
1822 * ieee.c (ieee_print_symbol): Likewise.
1823 * nlmcode.h (nlm_print_symbol): Likewise.
1824 * oasys.c (oasys_print_symbol): Likewise.
1825 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1826 * som.c (som_print_symbol): Likewise.
1827 * srec.c (srec_print_symbol): Likewise.
1828 * tekhex.c (tekhex_print_symbol): Likewise.
1829 * versados.c (versados_print_symbol): Likewise.
1830 * vms.c (vms_print_symbol): Likewise.
1832 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1833 with bfd_fprintf_vma.
1834 (bfd_elf_print_symbol): Likewise.
1835 * syms.c (bfd_print_symbol_vandf): Likewise.
1837 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1839 * aoutf1.h (sunos_write_object_contents): Silence compile time
1841 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1843 * bout.c: Add missing function prototypes. Fix formatting.
1844 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1845 * coff-w65.c: Add missing function prototypes. Fix formatting.
1846 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1847 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1848 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1849 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1850 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1851 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1852 * coff-sh.c: Add missing function prototypes. Fix formatting.
1854 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1856 * elf-bfd.h (enum elf_reloc_type_class): New.
1857 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1858 (_bfd_elf_reloc_type_class): New.
1859 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1860 (elfNN_bed): Add elf_backend_reloc_type_class.
1861 * elf.c (_bfd_elf_reloc_type_class): New.
1862 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1863 is against read-only section.
1864 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1865 looking up section names for DT_TEXTREL.
1866 (elf_i386_reloc_type_class): New.
1867 (elf_backend_reloc_type_class): Define.
1868 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1869 reloc is against read-only section.
1870 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1871 looking up section names for DT_TEXTREL.
1872 (elf32_sparc_reloc_type_class): New.
1873 (elf_backend_reloc_type_class): Define.
1874 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1875 reloc is against read-only section.
1876 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1877 looking up section names for DT_TEXTREL.
1878 (sparc64_elf_reloc_type_class): New.
1879 (elf_backend_reloc_type_class): Define.
1880 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1881 (elfNN_ia64_hash_table_create): Clear ia64_info.
1882 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1884 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1885 instead of looking up section names for DT_TEXTREL.
1886 (elfNN_ia64_reloc_type_class): New.
1887 (elf_backend_reloc_type_class): Define.
1888 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1889 (struct elf_link_sort_rela): New.
1890 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1891 (elf_bfd_final_link): Call elf_link_sort_relocs.
1892 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1895 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1897 * configure.in (x86-bsdi): No corefile support.
1898 * configure: Regenerate.
1900 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1902 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1905 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1907 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1908 the alignment of dwarf2 linkonce sections to 0.
1909 * coff-sto32.c: Likewise.
1911 2001-08-20 Andreas Jaeger <aj@suse.de>
1913 * coff-sparc.c: Add missing prototypes.
1914 * elf32-s390.c: Likewise.
1915 * elf32-i960.c: Likewise.
1916 * aout-target.h: Likewise.
1918 2001-08-20 H.J. Lu <hjl@gnu.org>
1920 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1921 (elf_num_section_syms): New for num_section_syms.
1923 * elf.c (elf_map_symbols): Set num_section_syms.
1924 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1925 the section symbol index.
1927 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1929 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1930 select the generic has table creator. All elf backends need elf
1931 specific fields in the hash table.
1933 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1935 * archive.c (offsetof): Remove define.
1938 * sysdep.h (offsetof): Define.
1940 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1942 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1943 (bfd_set_gp_size): Make param unsigned.
1944 * bfd-in2.h: Regenerate.
1945 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1946 than calling bfd_get_gp_size.
1947 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1948 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1950 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1952 * linker.c (default_fill_link_order): Handle four byte fill value.
1954 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1956 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1958 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1960 * elf64-mips.c (UNUSED_RELOC): Define.
1961 (mips_elf64_howto_table_rel): Use it.
1962 (mips_elf64_howto_table_rela): Here too.
1963 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1965 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1967 * coffgen.c (coff_print_symbol): Fix warnings.
1968 (coff_find_nearest_line): Likewise.
1969 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1970 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1971 * format.c (bfd_check_format_matches): Likewise.
1972 (bfd_set_format): Likewise.
1973 * coff-ia64.c: Add missing prototypes.
1974 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1975 signed to silence warnings.
1976 (elf64_alpha_relocate_section): Likewise.
1977 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1978 (elf64_alpha_add_symbol_hook): Likewise.
1979 (elf64_alpha_final_link): Likewise.
1980 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1981 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1982 (elf64_alpha_size_got_sections): Likewise.
1983 * elfxx-ia64.c: Add missing prototypes.
1984 (elfNN_ia64_relocate_section): Fix warning.
1985 (elfNN_ia64_unwind_entry_compare): Make params const.
1987 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1989 * config.bfd (targ64_selvecs): New.
1990 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1992 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1993 (BFD_DEFAULT_TARGET_SIZE): New.
1994 (BFD_ARCH_SIZE): Comment.
1995 * configure.in (target_size): New. Set instead of target64 in
1996 selvecs case statement. Set target64 from it.
1997 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1998 * bfd-in2.h: Regenerate.
1999 * configure: Regenerate.
2001 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2003 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2004 (bfd_errmsgs): Add corresponding message.
2005 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2006 finding an archive that contains different format object files.
2007 Return bfd_error_wrong_object_format for this case.
2008 * format.c: Formatting fixes. s/CONST/const/.
2009 (bfd_check_format_matches): Accept archives that give
2010 bfd_error_wrong_object_format if no full match is found. Tidy
2011 code handling matching_vector. Don't return a pointer to freed
2012 memory in `matching'. Handle ambiguous matches as for partial
2014 * bfd-in2.h: Regenerate.
2016 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2018 * libieee.h (common_header_type): Add last_byte field.
2020 * ieee.c: Add missing prototypes. Some format fixes.
2021 (struct output_buffer_struct): Move for availability to prototypes.
2022 (ieee_part_after): New function.
2023 (ieee_slurp_debug): Use it here.
2024 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2025 ieee_part_after to set last_byte to one past end of current part.
2027 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2029 (parse_expression): Don't go beyond the end of the current part.
2030 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2031 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2032 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2033 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2034 ieee_set_section_contents, ieee_write_object_contents,
2035 ieee_make_empty_symbol): Make static.
2036 (ieee_archive_p): Correct comments regarding bfd_read.
2037 (ieee_object_p): Similarly.
2038 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2039 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2040 input_bfd, output_bfd, output_buffer.
2041 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2042 do_with_relocs, ie. as a symbol for relocatable files.
2043 (ieee_vec): Add comments showing functions referenced by macros.
2045 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2047 * aout-tic30.c: Add missing prototypes. Fix formatting.
2048 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2049 * peXXigen.c: Add missining prototypes. Fix formatting.
2050 * aout-adobe.c: Add missining prototypes. Fix formatting.
2052 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2054 * elf32-v850.c: Add missing function prototypes.
2055 Fix some formatting.
2057 * cpu-v850.c: Add missing function prototype.
2058 Fix some formatting.
2060 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2062 * elf-bfd.h (struct elf_backend_data): Add new fields
2063 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2064 (bfd_elf_sprintf_vma): Rename function prototype to
2065 '_bfd_elf_sprintf_vma'.
2066 (bfd_elf_fprintf_vma): Rename function prototype to
2067 '_bfd_elf_fprintf_vma'.
2068 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2069 directly, instead indirect via the elf_backend_data structure.
2070 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2071 instead indirect via the elf_backend_data structure.
2072 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2073 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2074 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2076 (elf_backend_fprintf_vma): Initialise if not already defined.
2077 (struct elf_backend_data): Initialise the
2078 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2080 2001-08-10 Andreas Jaeger <aj@suse.de>
2082 * elf64-sparc.c: Add missing prototypes.
2083 * elf32-cris.c: Likewise.
2084 * elf32-i370.c: Likewise.
2085 * elf64-hppa.c: Likewise.
2086 * elf64-s390.c: Likewise.
2088 2001-08-10 Andreas Jaeger <aj@suse.de>
2090 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2091 Add prototypes where needed.
2093 2001-08-10 H.J. Lu <hjl@gnu.org>
2095 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2096 (bfd_fprintf_vma): Likewise.
2098 2001-08-10 H.J. Lu <hjl@gnu.org>
2100 * bfd.c (bfd_sprintf_vma): Don't return void.
2101 (bfd_fprintf_vma): Likewise.
2103 2001-08-10 Andreas Jaeger <aj@suse.de>
2105 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2107 * configure: Regenerate.
2109 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2111 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2112 warning if not BFD64. Add braces so emacs auto format works.
2113 (bfd_elf_fprintf_vma): Likewise.
2115 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2117 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2118 param to agree with libxcoff.h.
2119 (xcoff_swap_ldhdr_out): Likewise.
2120 (xcoff_swap_ldsym_in): Likewise.
2121 (xcoff_swap_ldsym_out): Likewise.
2122 (xcoff_swap_ldrel_in): Likewise.
2123 (xcoff_swap_ldrel_out): Likewise.
2124 (xcoff_create_csect_from_smclas): Likewise.
2125 * coff64-rs6000.c: Add missing prototypes.
2126 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2128 (xcoff64_swap_ldhdr_out): Likewise.
2129 (xcoff64_swap_ldsym_in): Likewise.
2130 (xcoff64_swap_ldsym_out): Likewise.
2131 (xcoff64_swap_ldrel_in): Likewise.
2132 (xcoff64_swap_ldrel_out): Likewise.
2133 (xcoff64_ppc_relocate_section): Make static.
2134 (xcoff64_slurp_armap): Likewise.
2135 (xcoff64_archive_p): Likewise.
2136 (xcoff64_openr_next_archived_file): Likewise.
2137 (xcoff64_sizeof_headers): Likewise.
2138 (xcoff64_is_lineno_count_overflow): Likewise.
2139 (xcoff64_is_reloc_count_overflow): Likewise.
2140 (xcoff64_loader_symbol_offset): Likewise.
2141 (xcoff64_loader_reloc_offset): Likewise.
2142 * elf64-gen.c: Add missing prototypes.
2144 2001-08-09 H.J. Lu <hjl@gnu.org>
2146 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2147 (bfd_elf_fprintf_vma): Likewise.
2149 2001-08-09 H.J. Lu <hjl@gnu.org>
2151 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2154 * bfd-in2.h: Regenerated.
2156 2001-08-09 H.J. Lu <hjl@gnu.org>
2158 * bfd-in.h (bfd_sprintf_vma): New prototype.
2159 (bfd_fprintf_vma): Likewise.
2160 (bfd_elf_sprintf_vma): Likewise.
2161 (bfd_elf_fprintf_vma): Likewise.
2162 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2163 * bfd-in2.h: Regenerated.
2165 * bfd.c (bfd_sprintf_vma): New. Defined.
2166 (bfd_fprintf_vma): Likewise.
2168 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2169 (bfd_elf_fprintf_vma): Likewise.
2171 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2173 * coff-rs6000.c: Add missing prototypes.
2174 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2175 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2176 xcoff_loader_reloc_offset): Make static.
2177 * dwarf1.c: Add missing prototypes.
2178 * dwarf2.c: Add missing prototypes.
2179 (struct abbrev_info): Move definition.
2180 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2181 * elf.c: Add missing prototypes.
2182 * elf32-gen.c: Likewise.
2183 * elf32-i386.c: Likewise.
2184 * elf32-ppc.c: Likewise.
2185 (ppc_elf_sort_rela): Use PTR instead of "void *".
2186 * elflink.h: Add missing prototypes. Formatting fixes.
2187 * merge.c: Add missing prototypes.
2188 (last4_eq): Use PTR instead of "void *".
2189 (last_eq): Likewise.
2190 * syms.c: Add missing prototypes.
2192 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2194 * bfd.c: Fix formatting.
2195 * bfd-in2.h: Regenerate.
2197 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2199 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2200 true (this target uses REL relocations) and 'pcrel_offset' to
2201 false (the PC is implied, not stored in the offset).
2203 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2205 1999-10-19 Linus Nordberg <linus@swox.se>
2206 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2207 * elfxx-target.h (elf_backend_want_got_sym): Define.
2208 (elfNN_bed): Add elf_backend_want_got_sym.
2209 * elflink.c (_bfd_elf_create_got_section): Define
2210 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2212 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2214 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2215 (find_rela_addend): New function.
2216 (parse_comp_unit): Call it to find the abbrev offset addend.
2217 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2218 members of dwarf2_debug as debugging information is read.
2220 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2222 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2223 targets as well as sh-pe.
2225 2001-08-03 Ben Harris <bjh21@netbsd.org>
2227 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2228 reloc from start of section when computing value for R_ARM_REL32
2231 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2233 From H.J. Lu <hjl@gnu.org>
2234 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2235 keep relocs for undefined syms if there are no dynamic sections in
2237 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2239 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2241 * cofflink.c (coff_link_check_ar_symbols): also search for
2242 __imp__symbol as well as _symbol.
2243 * linker.c (_bfd_generic_link_add_archive_symbols): also
2244 search for __imp__symbol as well as _symbol.
2246 2001-08-01 Adam Nemet <anemet@lnxw.com>
2248 * elf.c (elf_sort_sections): Return zero only as the last step.
2250 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2252 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2254 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2255 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2258 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2260 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2261 to match corresponding bfd_coff_backend data member.
2263 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2265 * Makefile.am: Update dependencies with "make dep-am".
2266 * Makefile.in: Regenerate
2268 2001-07-15 H.J. Lu <hjl@gnu.org>
2270 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2271 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2272 * Makefile.in: Regenerate.
2274 2001-07-11 H.J. Lu <hjl@gnu.org>
2276 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2277 flags when creating the reloc section if the ALLOC flag in the
2278 source section is set.
2280 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2282 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2283 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2284 * bfd-in2.h: Regenerate.
2285 * libbfd.h: Regenerate.
2286 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2288 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2289 (elfNN_ia64_check_relocs): Likewise.
2290 (elfNN_ia64_install_value): Likewise.
2291 (elfNN_ia64_relocate_section): Likewise.
2293 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2295 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2297 (elf32_sparc_check_relocs): Likewise.
2298 Only create .rela section for alloced sections in shared libraries.
2299 (elf32_sparc_relocate_section): Likewise.
2300 Remove redundant check.
2301 Optimize unaligned reloc usage.
2302 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2305 2001-07-11 H.J. Lu <hjl@gnu.org>
2307 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2308 ALLOC|LOAD flags as the source section for debugging sections
2309 when creating the reloc section.
2311 2001-07-05 Jim Wilson <wilson@redhat.com>
2313 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2314 the section of the bigger symbol.
2316 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2318 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2320 * peicode.h (coff_swap_scnhdr_in): For sections containing
2321 uninitialised data, only set their size to s_paddr if this does
2322 not reset their size to zero. MS's latest compilers will set
2325 2001-07-04 H.J. Lu <hjl@gnu.org>
2327 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2328 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2331 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2333 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2335 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2336 sections being discarded.
2338 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2340 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2341 instead of _bfd_elfcore_section_from_phdr.
2342 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2343 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2344 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2345 (elfcore_grok_prstatus): Likewise.
2346 (elfcore_grok_lwpstatus): Likewise.
2347 (bfd_get_elf_phdr_upper_bound): Likewise.
2348 (elfcore_make_note_pseudosection): Formatting.
2349 (_bfd_elfcore_strndup): Formatting.
2350 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2351 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2353 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2355 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2356 and _bfd_elfcore_strndup.
2357 (struct elf_backend_data): Add elf_backend_grok_prstatus
2358 and elf_backend_grok_psinfo.
2359 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2360 (elfcore_grok_prstatus): Use it.
2361 (elfcore_make_note_pseudosection): Likewise.
2362 (elfcore_strndup): Rename to...
2363 (_bfd_elfcore_strndup): Here, and make global.
2364 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2365 (elfcore_grok_note): Call elf_backend_grok_prstatus
2366 and elf_backend_grok_psinfo if available.
2367 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2368 (_bfd_elf32_mips_grok_psinfo): New function.
2369 (elf_backend_grok_prstatus): Define.
2370 (elf_backend_grok_psinfo): Define.
2371 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2372 (elf_backend_grok_psinfo): Likewise.
2373 (elfNN_bed): Include elf_backend_grok_prstatus and
2374 elf_backend_grok_psinfo.
2376 2001-06-29 H.J. Lu <hjl@gnu.org>
2378 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2379 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2380 is NULL before filling PLT.
2382 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2384 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2386 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2388 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2390 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2391 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2394 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2395 (IS_ABSOLUTE_RELOC): Define.
2396 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2397 (hppa_link_hash_newfunc): Always init it.
2398 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2399 create COPY relocs only when the reloc is in a read-only section.
2400 Instead, allocate space for a dynamic reloc to reference the
2401 library symbol directly. Keep track of space we allocate using
2403 (hppa_discard_copies): Delete, and move code to..
2404 (allocate_plt_and_got): ..here. Rename to
2405 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2406 relocs for non-shared link.
2407 (elf32_hppa_size_dynamic_sections): Update calls to above.
2408 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2409 in lieu of COPY relocs.
2411 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2413 (elf_i386_adjust_dynamic_symbol): ..nor here..
2414 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2416 (elf_i386_size_dynamic_sections): Fix a comment.
2417 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2418 involved in writing reloc out.
2420 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2422 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2423 Ensure syms are dynamic if we might be emitting a reloc.
2424 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2425 for undefweak or undefined syms..
2426 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2428 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2429 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2430 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2431 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2433 2001-06-24 H.J. Lu <hjl@gnu.org>
2435 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2436 strncasecmp/strcasecmp instead of strncmp/strcmp.
2438 2001-06-23 H.J. Lu <hjl@gnu.org>
2440 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2441 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2442 in the regular object file and treat the weak definition as
2445 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2447 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2448 unresolved_reloc test to exclude cases where we use "relocation"
2449 before setting it to point into the .got. Reinstate fudge for
2450 unresolved relocs in debugging sections.
2452 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2453 complicated tests for unresolvable relocs with a simple direct
2454 scheme using "unresolved_reloc" var.
2456 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2457 elf_i386_dyn_relocs. Update comment.
2458 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2460 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2462 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2464 (elf_i386_size_dynamic_sections): Likewise.
2465 (elf_i386_finish_dynamic_symbol): Likewise.
2466 (elf_i386_finish_dynamic_sections): Likewise.
2467 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2470 Avoid creating COPY relocs if possible.
2471 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2472 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2473 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2474 reloc is in a read-only section. Instead, allocate space for a
2475 dynamic reloc to reference the library symbol directly. Keep
2476 track of space we allocate using pcrel_relocs_copied.
2477 (discard_copies): Delete, and move code to ..
2478 (allocate_plt_and_got): ..here. Rename to
2479 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2480 relocs for non-shared link.
2481 (elf_i386_size_dynamic_sections): Update calls to above functions.
2482 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2483 more ugly logic to avoid "unresolvable relocation" error. Use
2484 htab shortcut in place of elf_hash_table macro.
2485 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2486 not always be created now.
2488 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2490 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2493 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2495 * configure.host (mips64-*-linux): Reformat.
2497 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2499 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2500 allocate local .got space. Use shortcuts from hash table for .got
2501 and .plt rather than comparing section names.
2502 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2503 adjusting index into local_got_refcounts to document what we are
2505 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2506 Tidy .got and .plt error checking.
2508 2001-06-20 Catherine Moore <clm@redhat.com>
2510 * elf-bfd.h (struct elf_backend_data):
2511 elf_backend_emit_relocs: New field: Function for emitting
2513 elf_backend_count_relocs: New field: Function for determining
2514 the number of relocs to be emitted.
2515 * elfxx-target.h: Provide default (NULL) values for
2516 elf_backend_emit_relocs and elf_backend_count_relocs.
2517 * elflink.h (elf_link_size_reloc_section): Make the hash table
2518 big enough to hold the relocs counted by either reloc_count or
2520 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2521 should be emitted, either because of a command line option
2522 stored in the info structure or because the target provides a
2523 special reloc emitting function.
2524 If the target provides a reloc counting function use it,
2525 unless performing a relocatable link or emitting all relocs.
2526 Also set the SEC_RELOC flag on any output section which will
2528 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2529 should be emitted, either because of a command line option
2530 stored in the info structure or because the target provides a
2531 special reloc emitting function.
2532 If the target provides a reloc emitting function, use it,
2533 unless performing a relocatable link or emitting all relocs.
2535 2001-06-20 H.J. Lu <hjl@gnu.org>
2537 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2538 allocate local .got space.
2540 2001-06-19 Andreas Jaeger <aj@suse.de>
2542 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2545 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2547 * elflink.h (struct elf_assign_sym_version_info): Remove member
2548 export_dynamic. All users changed to use info member.
2549 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2550 export_dynamic, instead use member in parameter info.
2551 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2552 bfd_elf64_size_dynamic_sections): Update prototype.
2553 * bfd-in2.h: Regenerate.
2555 2001-06-18 H.J. Lu <hjl@gnu.org>
2557 * elflink.h (elf_info_failed): Add a new field, verdefs.
2558 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2560 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2563 2001-06-17 H.J. Lu <hjl@gnu.org>
2565 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2566 readonly_reloc, to record if a relocation in the .rel.dyn
2567 section is against a read-only section.
2568 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2570 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2571 in the .rel.dyn section against a read-only section by setting
2572 DF_TEXTREL or readonly_reloc.
2573 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2575 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2576 there is a relocation in the .rel.dyn section against a
2578 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2581 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2583 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2584 function. Move flagword result into parameter list. Remove
2585 comment about setting bfd_error_handler to intercept failure
2587 * coffgen.c (make_a_section_from_file): Examine result of
2588 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2590 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2591 function. Move flagword result into parameter list.
2592 * libcoff.h: Regenerate.
2593 * libecoff.h: Regenerate.
2595 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2597 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2598 section is going to follow it.
2600 2001-06-12 Catherine Moore <clm@redhat.com>
2602 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2603 with the file_align entry from elf_backend_data.
2604 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2605 (elf_gc_record_vtentry): Likewise.
2607 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2609 * elflink.h: Whitespace changes.
2610 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2611 rather than "unsigned char".
2612 (elf_link_output_relocs): Likewise.
2613 (elf_link_input_bfd): Likewise.
2614 (elf_reloc_link_order): LIkewise.
2615 * elf.c: s/CONST/const/. Whitespace changes.
2616 * elf32-mips.c: Formatting fix.
2618 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2619 * Makefile.in: Regenerate.
2620 * po/Make-in: Remove trailing tab.
2622 2001-06-09 Philip Blundell <philb@gnu.org>
2624 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2626 (elf32_arm_plt_entry): Likewise.
2628 2001-06-08 H.J. Lu <hjl@gnu.org>
2630 * elf.c (swap_out_syms): Keep names for global section symbols.
2632 2001-06-07 H.J. Lu <hjl@gnu.org>
2634 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2635 MIPS-based machines need it.
2637 2001-06-07 H.J. Lu <hjl@gnu.org>
2639 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2642 * config.bfd: Remove ecoff from Linux/mips.
2644 2001-06-07 Andreas Jaeger <aj@suse.de>
2646 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2648 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2649 alignment of 8 for .rela sections; handle further relocations.
2651 2001-06-06 Christian Groessler <cpg@aladdin.de>
2653 * coff-z8k.c: Fix formatting.
2654 Fix howtos: howto->size was always 1.
2656 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2658 * configure.host (mips64*-*-linux*): Define.
2660 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2662 * elf32-i386.c (elf_i386_discard_copies): Rename to
2663 discard_copies, and use elf_link_hash_entry arg rather than
2664 elf_i386_link_hash_entry.
2665 (elf_i386_link_hash_traverse): Delete.
2666 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2667 Tidy sizing of dynamic sections.
2668 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2669 possible .plt entries.
2670 (elf_i386_gc_sweep_hook): Likewise.
2671 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2672 everything with plt.refcount <= 0.
2674 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2676 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2677 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2679 (allocate_plt_and_got): ..instead do it all here. New function.
2680 (elf_i386_size_dynamic_sections): Allocate local .got space and
2681 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2682 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2683 rather than gc variety).
2684 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2685 (elf_i386_relocate_section): Use it here and correct handling of
2686 R_386_GOT32. Provide section and offset for "unresolvable
2687 relocation" error message.
2688 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2690 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2691 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2692 (elf_i386_link_hash_table_create): Init them.
2693 (create_got_section): New function.
2694 (elf_i386_create_dynamic_sections): New function.
2695 (elf_backend_create_dynamic_sections): Set to above.
2696 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2697 calling bfd_get_section_by_name.
2698 (elf_i386_gc_sweep_hook): Likewise.
2699 (elf_i386_adjust_dynamic_symbol): Likewise.
2700 (elf_i386_size_dynamic_sections): Likewise.
2701 (elf_i386_relocate_section): Likewise.
2702 (elf_i386_finish_dynamic_sections): Likewise.
2704 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2706 2001-06-02 H.J. Lu <hjl@gnu.org>
2708 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2710 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2712 2001-06-02 H.J. Lu <hjl@gnu.org>
2714 * aout-cris.c (MACHTYPE_OK): New. Defined.
2716 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2718 * section.c (_bfd_strip_section_from_output): Handle NULL
2721 2001-06-02 H.J. Lu <hjl@gnu.org>
2723 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2724 rs6000coff64_vec only if BFD64 is defined.
2725 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2727 2001-06-02 H.J. Lu <hjl@gnu.org>
2729 * coff-ia64.c (ia64coff_object_p): Rewrite with
2730 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2732 2001-06-01 Andreas Jaeger <aj@suse.de>
2734 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2735 relocation, small reformatting.
2737 2001-05-29 Andreas Jaeger <aj@suse.de>
2739 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2740 (elf64_x86_64_relocate_section): Likewise.
2742 2001-05-30 Alan Modra <amodra@one.net.au>
2744 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2745 millicode. Don't allocate .got and .rela.got space here..
2746 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2747 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2749 (hppa_handle_PIC_calls): ..nor here..
2750 (allocate_plt_and_got): ..instead do it all here. New function.
2751 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2752 call allocate_plt_and_got. No need to zap .got if not dynamic.
2753 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2754 gc_common_final_link.
2755 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2756 (elf32_hppa_relocate_section): Use it here.
2757 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2758 dynamic_sections_created.
2759 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2761 2001-05-28 Andreas Jaeger <aj@suse.de>
2763 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2764 generic version since we want a hashsize of 4.
2765 (elf_backend_size_info): Likewise.
2767 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2769 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2771 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2772 (elf_link_input_bfd): Likewise.
2773 (elf_reloc_link_order): Likewise.
2774 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2775 relocations correctly.
2777 2001-05-28 Nicolas Pitre <nico@cam.org>
2779 * elf32-arm.h: fix PLT generation for big endian ARM
2781 2001-05-28 Alan Modra <amodra@one.net.au>
2783 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2784 for symbols forced local that need plabels.
2785 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2786 .plt.rela for local syms if non-shared.
2787 (hppa_build_one_stub): Mask lsb of plt.offset.
2788 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2789 (clobber_millicode_symbols): Correct comment.
2790 (elf32_hppa_relocate_section): Likewise.
2791 (elf32_hppa_finish_dynamic_symbol): Likewise.
2793 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2795 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2796 * bfd-in2.h: Regenerate.
2797 * libbfd.h: Regenerate.
2798 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2799 and BFD_RELOC_SPARC_UA64 mapping
2800 * elf64-sparc.c: Likewise.
2802 2001-05-25 H.J. Lu <hjl@gnu.org>
2804 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2805 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2806 (coff-rs6000.lo): Remove the old dependency.
2807 * Makefile.in: Rebuild.
2809 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2812 2001-05-25 H.J. Lu <hjl@gnu.org>
2814 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2815 rs6000coff_core_file_matches_executable_p,
2816 rs6000coff_core_file_failing_command and
2817 rs6000coff_core_file_failing_signal only if AIX_CORE is
2819 (pmac_xcoff_vec): Likewise.
2820 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2822 2001-05-25 Timothy Wall <twall@redhat.com>
2824 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2825 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2827 2001-05-25 H.J. Lu <hjl@gnu.org>
2829 * bfd-in2.h: Regenerated.
2830 * libcoff.h: Likewise.
2832 2001-05-25 Alan Modra <amodra@one.net.au>
2834 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2835 undefined millicode syms in shared libs.
2836 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2837 (elf32_hppa_check_relocs): Likewise.
2838 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2839 (elf32_hppa_size_dynamic_sections): Likewise.
2840 (elf32_hppa_relocate_section): Likewise.
2841 (elf32_hppa_finish_dynamic_symbol): Likewise.
2842 (elf32_hppa_finish_dynamic_sections): Likewise.
2844 2001-05-24 Tom Rix <trix@redhat.com>
2846 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2847 xcoff-target.h not used to define rs6000 or ppc bfd.
2850 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2853 * coff-rs6000.c : Many changes for 64 bit support. Move common
2854 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2857 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2858 linker now supported. Explictly define the rs6000coff64_vec.
2860 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2861 (coff_print_aux) same
2862 (coff_write_object_contents) same
2863 (coff_slurp_line_table) same
2865 * coffgen.c : (coff_fix_symbol_name) formatting
2866 (coff_mangle_symbols) xcoff 64 bit support
2867 (coff_write_symbol) same
2868 (coff_write_alien_symbol) same
2869 (coff_write_native_symbol) same
2870 (coff_write_symbols) same
2871 (coff_get_symbol_info) same
2872 (bfd_coff_get_syment) same
2873 (coff_print_symbol) same
2875 * config.bfd : add powerpc64-*-aix* target
2877 * libcoff-in.h : formatting
2879 * libcoff.h : move xcoff extern declarations to libxcoff.h
2881 * libxcoff.h : New file
2883 * xcofflink.c : Many changes for xcoff64 support. Move common
2884 structures to include/coff/xcoff.h. Move specific structure to
2885 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2886 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2888 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2891 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2893 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2895 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2898 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2900 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2901 * libbfd.h: Regenerate.
2902 * bfd-in2.h: Regenerate.
2904 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2905 * archures.c (bfd_mach_mips12000): Define.
2906 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2907 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2909 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2910 * bfd-in2.h: Regenerate.
2911 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2913 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2915 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2916 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2917 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2918 that is used by GCC.
2920 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2922 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2923 of entries in a structured section.
2924 * elf.c: Use new macro.
2925 * elf32-i386.c: Use new macro.
2926 * elf32-mips.c: Use new macro.
2927 * elf64-alpha.c: Use new macro.
2928 * elf64-sparc.c: Use new macro.
2929 * elfcode.h: Use new macro.
2930 * elflink.h: Use new macro.
2932 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2934 * bfdint.texi: Replace -oformat with --oformat.
2936 2001-05-21 Andreas Jaeger <aj@suse.de>
2938 * dwarf2.c (decode_line_info): Fix error message.
2939 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2940 adjust error message.
2942 2001-05-18 H.J. Lu <hjl@gnu.org>
2944 * elflink.h (elf_link_add_object_symbols): Revert the last
2947 2001-05-17 Alan Modra <amodra@one.net.au>
2949 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2950 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2951 (hppa_build_one_stub): Add an assert to check plt.offset.
2953 2001-05-17 H.J. Lu <hjl@gnu.org>
2955 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2956 version definition to basename of the output filename.
2958 2001-05-17 H.J. Lu <hjl@gnu.org>
2960 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2961 basename of the bfd filename.
2963 2001-05-16 Alan Modra <amodra@one.net.au>
2965 * section.c (asection): Add linker_has_input field.
2966 (STD_SECTION): Adjust initialization to suit.
2967 * ecoff.c (bfd_debug_section): Likewise.
2968 * bfd-in2.h: Regenerate.
2970 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2972 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2973 negative 32-bit operands to 16 operands when the operand is
2974 going to be zero-extended by the modified opcode.
2976 2001-05-12 Peter Targett <peter.targett@arccores.com>
2978 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2979 name for 'arc5' core versions.
2980 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2982 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2984 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2986 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2988 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2990 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2991 to .gnu.linkonce.t.FOO text section.
2993 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2995 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2996 fields, change sec into secinfo.
2997 (struct sec_merge_info): Add chain, remove last fields.
2998 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2999 (sec_merge_hash_lookup): If lookup could not use a string only
3000 because it has bad alignment, mark the old string for deletion.
3001 (sec_merge_add): Add secinfo argument. Don't compute entry's
3002 position, instead record the section.
3003 (sec_merge_emit): Update for the sec into secinfo change in
3004 struct sec_merge_hash_entry.
3005 (_bfd_merge_section): Only record the section for merging, defer
3006 putting strings into the hash table.
3007 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3008 _bfd_merge_sections): New functions.
3009 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3011 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3012 (_bfd_nolink_bfd_merge_sections): Define.
3013 * libbfd.h: Likewise.
3014 (bfd_generic_merge_sections): Add prototype.
3015 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3016 (struct bfd_target): Likewise.
3017 * bfd.c (bfd_merge_sections): Define.
3018 * bfd-in2.h: Rebuilt.
3019 * elf.c (_bfd_elf_merge_sections): New function.
3020 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3021 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3022 * reloc.c (bfd_generic_merge_sections): New function.
3023 * vms.c (vms_bfd_merge_sections): New function.
3024 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3025 * aout-target.h (MY_bfd_merge_sections): Define.
3026 * aout-tic30.c (MY_bfd_merge_sections): Define.
3027 * binary.c (binary_bfd_merge_sections): Define.
3028 * bout.c (b_out_bfd_merge_sections): Define.
3029 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3030 * coffcode.c (coff_bfd_merge_sections): Define.
3031 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3032 * i386msdos.c (msdos_bfd_merge_sections): Define.
3033 * i386os9k.c (os9k_bfd_merge_sections): Define.
3034 * ieee.c (ieee_bfd_merge_sections): Define.
3035 * ihex.c (ihex_bfd_merge_sections): Define.
3036 * nlm-target.h (nlm_bfd_merge_sections): Define.
3037 * oasys.c (oasys_bfd_merge_sections): Define.
3038 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3039 * som.c (som_bfd_merge_sections): Define.
3040 * srec.c (srec_bfd_merge_sections): Define.
3041 * tekhex.c (tekhex_bfd_merge_sections): Define.
3042 * versados.c (versados_bfd_merge_sections): Define.
3043 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3045 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3047 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3048 to be unsigned long, in order to match its use.
3050 2001-05-10 H.J. Lu <hjl@gnu.org>
3052 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3055 2001-05-09 H.J. Lu <hjl@gnu.org>
3057 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3058 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3059 Remove the unused veriable `dynver'.
3061 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3063 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3064 NULL or is not COFF.
3065 (coff_i386_rtype_to_howto): Don't dump core if output section
3068 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3070 * ecoff.c (bfd_debug_section): Fix initialization.
3071 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3072 is always a positive integer. Cast away sign mismatch.
3073 * elf32-mips.c: Fix misleading comment and typo.
3074 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3076 * elflink.c: Fix typo.
3077 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3078 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3080 2001-05-04 Richard Henderson <rth@redhat.com>
3082 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3084 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3086 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3087 EF_ARM_HASENTRY if the start address is set.
3089 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3091 * targets.c (_bfd_target_vector_entries): Compute value based on
3092 the size of the _bfd_target_vector and not bfd_target_vector.
3094 2001-05-03 H.J. Lu <hjl@gnu.org>
3096 * elfcode.h: Include "libiberty.h".
3098 * elflink.h (elf_link_add_object_symbols): Set
3099 elf_dt_name (abfd) to basename of the bfd filename.
3100 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3101 of the bfd filename.
3103 2001-05-03 Andreas Jaeger <aj@suse.de>
3105 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3106 (elf_generic_info_to_howto_rel): Likewise.
3107 * coff-alpha.c (reloc_nil): Likewise.
3108 (alpha_ecoff_bad_format_hook): Likewise.
3109 (alpha_adjust_reloc_out): Likewise.
3110 (alpha_bfd_reloc_type_lookup): Likewise.
3111 (alpha_convert_external_reloc): Likewise.
3112 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3113 (elf64_alpha_reloc_bad): Likewise.
3114 (elf64_alpha_reloc_gpdisp): Likewise.
3115 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3116 (elf64_alpha_info_to_howto): Likewise.
3117 (elf64_alpha_add_symbol_hook): Likewise.
3118 (elf64_alpha_create_got_section): Likewise.
3119 (elf64_alpha_is_local_label_name): Likewise.
3120 (elf64_alpha_merge_ind_symbols): Likewise.
3121 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3122 (mips_elf64_get_reloc_upper_bound): Likewise.
3123 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3124 (nlm_alpha_get_public_offset): Likewise.
3126 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3128 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3129 about overflow in R_OPENRISC_LO_16_IN_INSN and
3130 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3132 2001-04-30 H.J. Lu <hjl@gnu.org>
3134 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3135 only for ELF_LINK_FORCED_LOCAL.
3136 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3137 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3138 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3140 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3141 if the symbol has hidden or internal visibility.
3143 2001-04-30 Alan Modra <amodra@one.net.au>
3145 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3146 calls to undefined weak symbols.
3148 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3150 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3151 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3153 2001-04-27 Andreas Jaeger <aj@suse.de>
3155 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3156 out handled entries.
3157 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3158 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3159 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3162 2001-04-27 Sean McNeil <sean@mcneil.com>
3164 * config.bfd: Add arm-vxworks target.
3165 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3166 addend (fro VXworks targets).
3168 2001-04-26 H.J. Lu <hjl@gnu.org>
3170 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3173 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3175 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3176 * bfd-in2.h: Regenerated.
3178 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3180 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3181 (struct sec_merge_hash): Remove alignment_power.
3182 (sec_merge_hash_newfunc): Clear alignment.
3183 (sec_merge_hash_lookup): Pass alignment as argument.
3184 Use hashp->root.next, not hashp->next to walk the hash chain.
3185 If a string already in the hashtable does not have required
3186 alignment, create a new hashtable entry.
3187 (sec_merge_init): Remove alignment_power argument.
3188 (sec_merge_add): Add alignment argument.
3189 (sec_merge_emit): Alignment is now a per-entity thing, not per
3191 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3192 for proper alignment.
3193 Pass alignment information to sec_merge_add.
3195 2001-04-24 Christian Groessler <cpg@aladdin.de>
3197 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3198 and R_REL16 reloc types; accept odd values for R_REL16 type
3200 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3202 * cpu-openrisc.c: New file.
3203 * elf32-openrisc.c: Likewise.
3205 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3206 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3207 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3208 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3209 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3210 * Makefile.in: Regenerated.
3211 * config.bfd: (openrisc-*-elf): New target.
3212 * configure.in (bfd_elf32_openrisc_vec): New vector.
3213 * configure: Regenerated.
3214 * libbfd.h: Regenerated.
3215 * bfd-in2.h: Regenerated.
3216 * reloc.c: Add OpenRISC relocations.
3217 * targets.c (bfd_elf32_openrisc_vec): Declare.
3218 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3219 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3220 (bfd_openrisc_arch): Declare.
3221 (bfd_archures_list): Add bfd_openrisc_arch.
3222 * elf.c (prep_headers): Add bfd_arch_openrisc.
3224 2001-04-23 Bo Thorsen <bo@suse.de>
3226 * elf64-x86-64.c: Add c++ vtable hack.
3227 Small whitespace and comment changes.
3229 2001-04-19 Andreas Jaeger <aj@suse.de>
3231 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3232 (elf64_x86_64_plt_entry): Likewise.
3233 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3234 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3236 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3238 * elf32-cris.c: Tweak comments related to dynamic linking.
3239 (cris_elf_relocate_section): When not creating shared object, fill
3240 in the .got table for any symbol not in the dynamic symbol table.
3241 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3242 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3244 (cris_elf_check_relocs): Use variable r_type in all places rather
3245 than the original expression. Add default case in switch for
3247 (elf_cris_size_dynamic_sections): Iterate over
3248 elf_cris_discard_excess_program_dynamics when not creating shared
3250 (elf_cris_discard_excess_dso_dynamics): Renamed from
3251 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3252 (elf_cris_discard_excess_program_dynamics): New.
3254 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3256 * coffcode.h (coff_write_object_contents): Use
3257 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3259 2001-04-14 H.J. Lu <hjl@gnu.org>
3261 * bfd-in2.h: Regenerate.
3263 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3265 * section.c (STD_SECTION): Add entsize.
3267 2001-04-13 H.J. Lu <hjl@gnu.org>
3269 * section.c (SEC_MERGE): Define new flag for merging.
3270 (SEC_STRINGS): Likewise.
3271 (entsize): New field.
3273 2001-04-13 Roger Sayle <roger@metaphorics.com>
3275 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3276 flag on pe-i386 targets.
3278 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3280 * libbfd-in.h (_bfd_merge_section): New.
3281 (_bfd_write_merged_section): New.
3282 (_bfd_merged_section_offset): New.
3283 * libbfd.h: Rebuilt.
3284 * linker.c (_bfd_generic_link_output_symbols): Handle
3286 * aoutx.h (aout_link_write_symbols): Likewise.
3287 * pdp11.c (aout_link_write_symbols): Likewise.
3288 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3289 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3291 (elf_link_sec_merge_syms): New.
3292 (elf_link_input_bfd): Call _bfd_merged_section_offset
3293 and _bfd_write_merged_section.
3294 Handle discard_sec_merge.
3295 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3297 (struct bfd_elf_section_data): Likewise.
3298 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3299 SEC_STRINGS section flags and entsize from their ELF counterparts.
3300 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3301 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3302 from their BFD counterparts.
3303 * merge.c: New file.
3304 * Makefile.am: Add strtab.lo.
3305 * Makefile.in: Rebuilt.
3307 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3309 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3310 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3312 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3314 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3315 endian MIPS ELF target.
3316 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3319 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3320 64bit big endian MIPS ELF target.
3321 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3322 endian MIPS ELF target.
3323 * configure: Regenerated.
3325 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3326 little endian targets.
3327 (mips_elf_sym_is_global): Handle traditional targets.
3329 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3330 64bit big endian MIPS ELF target.
3331 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3332 endian MIPS ELF target.
3334 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3335 and bfd_elf64_tradlittlemips_vec.
3337 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3339 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3340 ordinary "progbits" section.
3342 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3344 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3345 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3347 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3349 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3351 2001-03-30 H.J. Lu <hjl@gnu.org>
3353 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3354 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3356 2001-03-26 H.J. Lu <hjl@gnu.org>
3358 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3359 if there are any relocations for generic ELF.
3360 (bfd_elf32_bfd_link_add_symbols): Defined to
3361 elf32_generic_link_add_symbols.
3362 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3363 if there are any relocations for generic ELF.
3364 (bfd_elf64_bfd_link_add_symbols): Defined to
3365 elf64_generic_link_add_symbols.
3367 2001-03-23 Nick Clifton <nickc@redhat.com>
3369 * Makefile.am (BUILD_CFILES): New variable: List of C source
3370 files created in build directory.
3371 (BUILD_HFILES): New variable: List of header files created in
3374 (po/POTFILES.in): Replace rule with empty entry.
3375 (po/SRC-POTFILES.in): New rule: Create a list of source files
3376 in the source directory.
3377 (po/BLD-POTFILES.in): New rule: Create a list of source files
3378 in the build directory.
3379 (MOSTLYCLEAN): Do not delete source files created in build
3381 * Makefile.in: Regenerate.
3382 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3384 * configure: Regenerate.
3386 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3388 Add .. to the search path when building bfd.pot.
3389 Delete POTFILES when performing distclean.
3390 Add comment describing why distclean is broken in maintainer mode.
3391 * po/POTFILES.in: Delete.
3392 * po/SRC-POTFILES.in: New file.
3393 * po/BLD-POTFILES.in: New file.
3394 * po/bfd.pot: Regenerate.
3396 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3398 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3399 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3400 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3401 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3402 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3403 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3405 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3406 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3407 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3408 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3409 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3410 New HOWTO members for new relocs.
3411 (cris_reloc_map): Map new relocs.
3412 (ELF_DYNAMIC_INTERPRETER): Define.
3413 (PLT_ENTRY_SIZE): Define.
3414 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3415 elf_cris_pic_plt_entry): New, PLT templates.
3416 (struct elf_cris_pcrel_relocs_copied, struct
3417 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3418 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3419 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3420 positive values. Adjust PCREL relocs to be relative to location
3422 (cris_elf_relocate_section): Handle relocations to dynamic
3423 objects. Handle new relocations. Call error handler when seeing
3424 non-PIC relocation for read-only sections while generating shared
3426 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3428 (bfd_elf32_bfd_link_hash_table_create,
3429 elf_backend_adjust_dynamic_symbol,
3430 elf_backend_size_dynamic_sections,
3431 elf_backend_finish_dynamic_symbol,
3432 elf_backend_finish_dynamic_sections,
3433 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3434 elf_backend_hide_symbol, elf_backend_want_got_plt,
3435 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3436 elf_backend_got_header_size, elf_backend_plt_header_size):
3439 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3440 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3441 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3442 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3443 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3444 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3445 * bfd-in2.h, libbfd.h: Regenerate.
3447 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3449 (_bfd_mips_elf_relocate_section): Give a better error message when
3450 a relocation is not recognized.
3452 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3454 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3455 non-NULL before attempting to dereference.
3457 2001-03-20 H.J. Lu <hjl@gnu.org>
3459 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3460 * configure: Rebuild.
3462 2001-03-20 Andreas Schwab <schwab@suse.de>
3464 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3465 relocation value when resolving a reference from a debugging
3468 2001-03-16 Scott Thomason <SThomaso@hii.com>
3470 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3471 (xcoff64_swap_sym_out): Fix syntax errors.
3473 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3475 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3477 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3479 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3480 (hppa_link_hash_newfunc): Init it.
3481 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3482 section appears to be non-PIC.
3483 (final_link_relocate): Likewise.
3484 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3485 possible candidate function, and set pic_call for those that will
3486 only have a .plt entry for the PIC call stub.
3487 (hppa_handle_PIC_calls): Set maybe_pic_call.
3489 2001-03-12 DJ Delorie <dj@redhat.com>
3491 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3492 R_SH_DIR8WP* relocs if they're against external symbols, else
3493 they're just for relaxing. Validate the reloc values.
3495 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3497 * binary.c (bfd_external_binary_architecture): Declare.
3498 (binary_object_p): If bfd_external_binary_architecture is defined,
3499 set the architecture to this string.
3501 2001-03-11 Philip Blundell <philb@gnu.org>
3503 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3504 entries that could serve as a definition for a weak symbol.
3506 2001-03-08 Nick Clifton <nickc@redhat.com>
3508 * Most files: Update copyright notices using Perl script created
3509 by Kevin Buettner <kevinb@redhat.com>.
3511 2001-03-07 Nick Clifton <nickc@redhat.com>
3513 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3514 prior patch on ! defined OLD_ARM_ABI.
3516 2001-03-07 Andreas Jaeger <aj@suse.de>
3518 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3519 some relocation values.
3521 2001-03-06 Nick Clifton <nickc@redhat.com>
3523 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3524 of offset in BLX(1) instruction.
3525 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3526 offset in BLX(1) instruction.
3529 2001-03-06 Nick Clifton <nickc@redhat.com>
3531 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3532 BFD_RELOC_THUMB_PCREL_BLX.
3534 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3536 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3537 * bfd-in2.h: Regenerate.
3538 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3539 * ieee.c (ieee_write_processor): Set proper id for
3542 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3544 * configure.in: Add s390 target.
3545 * configure: Regenerate.
3547 2001-02-28 Andreas Jaeger <aj@suse.de>
3549 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3552 2001-02-28 Philip Blundell <pb@futuretv.com>
3554 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3555 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3557 2001-02-27 H.J. Lu <hjl@gnu.org>
3559 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3560 abfd->tdata.aout_data == NULL.
3562 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3564 * elf32-hppa.c: Correct field selector in stub comments.
3565 (clobber_millicode_symbols): Formatting fix.
3567 * configure.in: Bump version to 2.11.90.
3568 * configure: Regenerate.
3569 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3570 (CFILES): $SOURCE_CFILES + generated C files.
3571 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3573 * Makefile.in: Regenerate.
3574 * doc/Makefile.in: This too.
3576 2001-02-26 Timothy Wall <twall@cygnus.com>
3578 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3581 2001-02-26 Nick Clifton <nickc@redhat.com>
3583 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3584 up, replacing multiple if statements with a switch.
3585 (handle_COMDAT): New function.
3587 2001-02-26 H.J. Lu <hjl@gnu.org>
3589 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3590 a warning for section flags we do not handle instead of
3593 2001-02-26 Andreas Jaeger <aj@suse.de>
3595 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3597 2001-02-22 Timothy Wall <twall@cygnus.com>
3599 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3600 * configure.in: Add objects for elf64_ia64_aix vectors.
3601 * configure: Regenerated.
3602 * configure.host: Recognize ia64-*-aix*.
3603 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3604 for AIX. AIX5 requires most relocations to be dynamic (*all*
3605 binaries are somewhat similar to shared libraries).
3606 * targets.c: Add elf64_ia64_aix vectors.
3608 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3610 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3611 C8 said "1" instead of "8". Clarify error string for IMM22:
3612 "signed integer" instead of just "integer".
3614 2001-02-20 Andreas Jaeger <aj@suse.de>
3616 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3617 PLT entries that could serve as a definition for a weak symbol.
3619 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3621 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3622 entries that could serve as a definition for a weak symbol.
3623 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3625 2001-02-18 David O'Brien <obrien@FreeBSD>
3627 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3628 FreeBSD/i386-CURRENT differently until I can figure out the needed
3630 * configure: Regenerate.
3631 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3632 FreeBSD/PowerPC, and FreeBSD/sparc64.
3634 2001-02-18 lars brinkhoff <lars@nocrew.org>
3636 * Makefile.am: Add PDP-11 a.out target.
3637 * config.bfd: Likewise.
3638 * configure.in: Likewise.
3639 * targets.c: Likewise.
3640 * archures.c: Likewise.
3641 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3642 * libbfd.h: Add PDP-11 relocations.
3643 * reloc.c: Likewise.
3644 * cpu-pdp11.c: New file.
3645 * pdp11.c: New file.
3647 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3648 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3649 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3650 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3651 (GET_MAGIC): New macro.
3652 (PUT_MAGIC): Likewise.
3653 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3655 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3657 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3658 multiarch needs it).
3660 2001-02-18 H.J. Lu <hjl@gnu.org>
3662 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3665 2001-02-18 Kazu Hirata <kazu@hxi.com>
3667 * vms-misc.c: Fix formatting.
3669 2001-02-16 Kazu Hirata <kazu@hxi.com>
3671 * vms.c: Fix formatting.
3673 2001-02-14 H.J. Lu <hjl@gnu.org>
3675 * elf.c (elf_find_function): New function.
3676 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3677 the file name and function name.
3679 2001-02-14 Nick Clifton <nickc@redhat.com>
3681 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3684 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3685 (BFD64_BACKENDS): Add pepigen.c
3686 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3688 * Makefile.in: Regenerate.
3689 * configure: Regenerate.
3690 * po/POTFILES.in: Regenerate.
3691 * po/bfd.pot: Regenerate.
3693 2001-02-14 H.J. Lu <hjl@gnu.org>
3695 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3696 force_minimum_alignment.
3698 2001-02-14 Bo Thorsen <bo@suse.de>
3700 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3701 (elf64_86_64_size_info): Struct added to fix a problem
3702 with the hashtable string entries.
3703 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3704 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3705 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3706 remove the FIXME for this.
3707 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3708 section. Also removed the FIXME for it.
3709 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3710 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3711 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3713 2001-02-13 Richard Henderson <rth@redhat.com>
3715 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3716 and not user provided.
3718 2001-02-13 Kazu Hirata <kazu@hxi.com>
3720 * vms.c (vms_print_symbol): Remove unreachable code.
3722 * rs6000-core.c: Fix formatting.
3724 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3726 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3727 as _bfd_XXi_only_swap_filehdr_out.
3728 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3729 pe->force_minimum_alignment to TRUE.
3730 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3731 PEI_TARGET_SUBSYSTEM.
3732 (pe_print_private_bfd_data): Call
3733 _bfd_XX_print_private_bfd_data_common() instead of
3734 _bfd_pe_print_private_bfd_data_common().
3735 (pe_bfd_copy_private_bfd_data): Call
3736 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3737 _bfd_pe_bfd_copy_private_bfd_data_common().
3738 (coff_bfd_copy_private_section_data): Define as
3739 _bfd_XX_bfd_copy_private_section_data instead of
3740 _bfd_pe_bfd_copy_private_section_data.
3741 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3742 of a _bfd_pe_get_symbol_info.
3746 * peXXigen.c: Renamed from peigen.c.
3747 (COFF_WITH_XX): Define this macro (will get expanded into
3748 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3749 compiled as peigen.c or pepigen.c.
3750 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3751 define the canonical PEP structures and definitions.
3752 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3753 effect, enforce minimum file and section alignments. If
3754 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3755 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3756 so, by default, this is a no-op).
3758 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3759 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3760 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3761 _bfd_pefoo if it's not defined. Use these macros to define
3764 * libcoff.h (pe_tdata): Add members target_subsystem and
3765 force_minimum_alignment.
3767 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3769 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3771 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3774 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3775 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3778 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3779 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3780 (peigen.c): Add rule to generate from peXXigen.c.
3782 (pepigen.lo): List dependencies for pepigen.lo.
3784 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3786 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3787 $global$ referenced but not defined, set its value here.
3789 2001-02-09 Bo Thorsen <bo@suse.de>
3791 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3793 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3795 (elf64_x86_64_relocate_section): Fix formatting.
3796 (elf64_x86_64_relocate_section): Fix addend for relocation of
3797 R_X86_64_(8|16|32|PC8|PC16|PC32).
3799 2001-02-12 Jan Hubicka <jh@suse.cz>
3801 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3803 2001-02-11 H.J. Lu <hjl@gnu.org>
3805 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3808 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3810 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3811 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3812 relocations against dynsym symbols.
3814 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3815 the R_MIPS_26 relocation.
3816 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3817 the R_MIPS_26 relocation.
3818 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3820 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3821 the R_MIPS_26 relocation.
3822 (mips_elf64_howto_table_rela): Likewise.
3824 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3825 member to mark symbols that have non-CALL relocations against
3827 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3828 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3830 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3831 non-CALL relocation against it is encountered.
3832 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3833 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3834 no_fn_stub is not set.
3836 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3837 information from the real symbol for indirect ones.
3838 Check no_fn_stub to find out if a symbol has a function stub
3841 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3843 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3844 * Makefile.in: Regenerate.
3846 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3848 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3849 true if section name is an unwind table section name.
3850 (elfNN_ia64_additional_program_headers): Count each unwind section
3852 (elfNN_ia64_modify_segment_map): Install one unwind program header
3853 for each unwind separate section. Note: normally the linker
3854 script merges the unwind sections that go into a single segment,
3855 so this still generates at most one unwind program header per
3858 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3859 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3860 (elfNN_ia64_fake_sections): Mark sections with names that start
3861 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3864 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3865 Use it to make sh_info in unwind section point to the text section
3868 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3870 * Makefile.am: Add linux target for S/390.
3871 * archures.c: Likewise.
3872 * bfd-in2.h: Likewise.
3873 * config.bfd: Likewise.
3874 * configure.in: Likewise.
3876 * libbfd.h: Likewise.
3877 * targets.c: Likewise.
3878 * cpu-s390.c: New file.
3879 * elf32-s390.c: New file.
3880 * elf64-s390.c: New file.
3882 2001-02-09 Nick Clifton <nickc@redhat.com>
3884 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3885 ImageBase. This has already been done by coff_swap_hdr_in.
3887 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3889 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3891 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3893 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3894 (sparc64_elf_relocate_section): Likewise.
3896 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3898 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3899 similar to R_SPARC_32.
3900 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3902 2001-02-08 H.J. Lu <hjl@gnu.org>
3904 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3905 relocation entries for weak definitions when building DSO with
3908 2001-02-08 Richard Henderson <rth@redhat.com>
3910 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3911 before visibility. Locally defined protected symbols are not
3914 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3916 * config.bfd: Enable coff64 for rs6000-*. Patch from
3917 <hzoli@austin.ibm.com>.
3919 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3921 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3922 found, do not attempt to find dwarf2 info before returning.
3924 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3926 * elflink.h (is_global_symbol_definition): Rename to
3927 is_global_data_symbol_definition and have it reject function
3929 (elf_link_is_defined_archive_symbol): Use renamed function.
3931 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3933 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3934 * libbfd.h (bfd_target_vector): Likewise.
3935 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3936 make static; create pointer reference named bfd_target_vector.
3937 (_bfd_target_vector_entries): Calculate this based on the array
3938 typed _bfd_target_vector.
3940 2001-02-06 H.J. Lu <hjl@gnu.org>
3942 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3943 internal symbols are not dynamic.
3944 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3946 2001-02-06 Nick Clifton <nickc@redhat.com>
3948 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3949 that it will not be pulled into the list of files that make up
3951 * Makefile.in: Regenerate.
3952 * po/bfd.pot: Regenerate.
3954 2001-02-06 H.J. Lu <hjl@gnu.org>
3956 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3958 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3959 external_PEI_IMAGE_hdr.
3961 2001-02-06 Kazu Hirata <kazu@hxi.com>
3963 * elf-m10200.c: Fix formatting.
3965 2001-02-04 Nick Clifton <nickc@redhat.com>
3967 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3968 rel, it will be handled later on.
3970 2001-02-02 Fred Fish <fnf@ninemoons.com>
3972 * Makefile.in: Fix typo.
3974 2001-02-01 Kazu Hirata <kazu@hxi.com>
3976 * elf-m10300.c: Fix formatting.
3978 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3980 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3981 (elf_backend_get_symbol_type): Define.
3982 (elf64_hppa_object_p): Set architecture and machine from elf
3985 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3987 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3990 2001-01-26 Richard Henderson <rth@redhat.com>
3992 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3993 for non-default visibility.
3994 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3995 delete ugly macro and replace with pretty function.
3997 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3999 * coff-go32.c: Update copyright.
4000 * coff-stgo32.c: Likewise.
4001 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4002 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4003 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4004 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4006 2001-01-25 Kazu Hirata <kazu@hxi.com>
4008 * bfd-in2.h: Rebuild.
4009 * libbfd.h: Likewise.
4011 2001-01-23 H.J. Lu <hjl@gnu.org>
4013 * bfd-in2.h: Rebuild.
4015 2001-01-23 H.J. Lu <hjl@gnu.org>
4017 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4018 is NULL or PRIV(vms_rec) is outside of the buffer.
4020 2001-01-23 Kazu Hirata <kazu@hxi.com>
4022 * coff64-rs6000.c: Fix formatting.
4023 * coff-arm.c: Likewise.
4024 * coffgen.c: Likewise.
4025 * cofflink.c: Likewise.
4026 * coff-mcore.c: Likewise.
4027 * coff-mips.c: Likewise.
4028 * coff-pmac.c: Likewise.
4029 * coff-ppc.c: Likewise.
4030 * coff-rs6000.c: Likewise.
4031 * elf32.c: Likewise.
4032 * elf32-fr30.c: Likewise.
4033 * elf32-i370.c: Likewise.
4034 * elf32-i860.c: Likewise.
4035 * elf32-m32r.c: Likewise.
4036 * elf32-m68k.c: Likewise.
4037 * elf32-mcore.c: Likewise.
4038 * elf32-ppc.c: Likewise.
4039 * elf32-sh.c: Likewise.
4040 * elf32-v850.c: Likewise.
4041 * elf64-alpha.c: Likewise.
4042 * elf64-sparc.c: Likewise.
4043 * elflink.c: Likewise.
4044 * elflink.h: Likewise.
4045 * elf-m10200.c: Likewise.
4046 * elf-m10300.c: Likewise.
4047 * elfxx-ia64.c: Likewise.
4049 * aoutx.h: Fix formatting.
4051 * bfd-in2.h: Likewise.
4052 * bfd-in.h: Likewise.
4053 * cpu-i386.c: Likewise.
4054 * cpu-m68hc11.c: Likewise.
4055 * dwarf2.c: Likewise.
4056 * elf64-x86-64.c: Likewise.
4057 * format.c: Likewise.
4058 * freebsd.h: Likewise.
4060 * hp300hpux.c: Likewise.
4061 * hppabsd-core.c: Likewise.
4062 * hpux-core.c: Likewise.
4064 2001-01-22 Bo Thorsen <bo@suse.de>
4066 * elf64-x86-64.c: Added PIC support for X86-64.
4067 (elf64_x86_64_link_hash_newfunc): Function added.
4068 (elf64_x86_64_link_hash_table_create): Likewise.
4069 (elf64_x86_64_check_relocs): Likewise.
4070 (elf64_x86_64_gc_mark_hook): Likewise.
4071 (elf64_x86_64_gc_sweep_hook): Likewise.
4072 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4073 (elf64_x86_64_size_dynamic_sections): Likewise.
4074 (elf64_x86_64_discard_copies): Likewise.
4075 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4076 (elf64_x86_64_finish_dynamic_sections): Likewise.
4077 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4079 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4081 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4082 * Makefile.in: Regenerate.
4084 2001-01-21 Kazu Hirata <kazu@hxi.com>
4086 * coff-a29k.c: Fix formatting.
4088 2001-01-19 H.J. Lu <hjl@gnu.org>
4090 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4091 relocation section names.
4092 (elf_i386_relocate_section): Report files with bad relocation
4093 section names and return false.
4095 2001-01-17 Bo Thorsen <bo@suse.de>
4097 * targets.c: Alphabetize list of xvecs.
4099 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4101 * config.bfd: Add linux target variant for elfxx-hppa.
4102 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4103 bfd_elf64_hppa_linux_vec.
4104 * configure: Regenerate.
4105 * elf64-hppa.c: Include elf64-target.h again to support linux
4107 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4108 * elf32-hppa.c: Include elf32-target.h again to support linux
4110 (elf32_hppa_post_process_headers): New function.
4111 (elf_backend_post_process_headers): Define.
4112 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4113 bfd_elf32_hppa_linux_vec.
4115 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4116 and data_segment_base fields.
4117 (elf32_hppa_link_hash_table_create ): Init them.
4118 (elf32_hppa_check_relocs): Update comments.
4119 (hppa_record_segment_addr): New function.
4120 (elf32_hppa_relocate_section): Call it.
4121 (final_link_relocate): Handle R_PARISC_SEGREL32.
4122 (elf32_hppa_final_link): New function.
4123 (bfd_elf32_bfd_final_link): Define to call it.
4124 (hppa_unwind_entry_compare): New function.
4125 * cache.c (bfd_open_file): Create files in write+read mode.
4127 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4128 SEGREL32 and numerous other relocs. Change duplicate
4129 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4131 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4134 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4135 .plt entries for DT_INIT and DT_FINI.
4136 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4137 DT_INIT and DT_FINI.
4139 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4140 offsets for stub .plt access if wide mode. Check offset in range.
4142 2001-01-13 Nick Clifton <nickc@redhat.com>
4144 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4147 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4150 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4152 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4153 * configure: Regenerate.
4155 2001-01-11 Peter Targett <peter.targett@arccores.com>
4157 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4158 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4159 * cpu-arc.c (arch_info_struct): Add entries for variants.
4160 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4161 (arc_get_mach) Don't assume machine names prefixed arc- before
4163 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4165 (arc_elf_final_write_processing) Likewise.
4166 (ELF_MACHINE_CODE) Use EM_ARC.
4168 2001-01-10 Nick Clifton <nickc@redhat.com>
4170 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4172 2001-01-07 Philip Blundell <philb@gnu.org>
4174 * README: Replace `bug-gnu-utils@gnu.org' with
4175 `bug-binutils@gnu.org'.
4177 2001-01-04 Kazu Hirata <kazu@hxi.com>
4179 * som.c: Fix formatting.
4181 2001-01-03 Kazu Hirata <kazu@hxi.com>
4183 * ecoffswap.h: Fix formatting.
4184 * elf-bfd.h: Likewise.
4185 * elfarm-nabi.c: Likewise.
4186 * elfarm-oabi.c: Likewise.
4187 * elfcode.h: Likewise.
4188 * elfcore.h: Likewise.
4189 * elflink.c: Likewise.
4190 * elflink.h: Likewise.
4191 * elfxx-ia64.c: Likewise.
4192 * elfxx-target.h: Likewise.
4193 * libbfd.c: Likewise
4194 * linker.c: Likewise.
4195 * lynx-core.c: Likewise.
4197 2001-01-02 Kazu Hirata <kazu@hxi.com>
4199 * pc532-mach.c: Fix formatting.
4200 * pe-arm.c: Likewise.
4201 * pe-i386.c: Likewise.
4202 * pe-mips.c: Likewise.
4203 * pe-ppc.c: Likewise.
4204 * pe-sh.c: Likewise.
4205 * pei-mips.c: Likewise.
4206 * pei-sh.c: Likewise.
4207 * peicode.h: Likewise.
4208 * ppcboot.c: Likewise.
4209 * ptrace-core.c: Likewise.
4211 2001-01-01 Kazu Hirata <kazu@hxi.com>
4213 * reloc.c: Fix formatting.
4214 * riscix.c: Likewise.
4215 * rs6000-core.c: Likewise.
4216 * xcoff-target.h: Likewise.
4218 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4220 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4221 error, by calling bfd_default_set_arch_mach with incoming
4224 2000-12-26 Kazu Hirata <kazu@hxi.com>
4226 * vaxnetbsd.c: Fix formatting.
4227 * versados.c: Likewise.
4228 * vms-gsd.c: Likewise.
4229 * vms-hdr.c: Likewise.
4230 * vms-misc.c: Likewise.
4232 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4234 * archive.c (coff_write_armap): Don't write more than symbol_count
4235 `archive_member_file_ptr's.
4237 2000-12-25 Kazu Hirata <kazu@hxi.com>
4239 * vms-tir.c: Fix formatting.
4241 2000-12-23 Kazu Hirata <kazu@hxi.com>
4243 * vms.c: Fix formatting.
4246 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4248 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4250 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4252 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4255 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4257 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4259 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4261 * libbfd.c (bfd_get_bits): Added
4262 (bfd_put_bits): Likewise
4263 * bfd-in.h: Declared the above.
4264 * bfd-in2.h: Regenerated.
4266 2000-12-20 Kazu Hirata <kazu@hxi.com>
4268 * targets.c: Fix formatting.
4269 * tekhex.c: Likewise.
4270 * trad-core.c: Likewise.
4272 2000-12-19 Kazu Hirata <kazu@hxi.com>
4274 * sco5-core.c: Fix formatting.
4275 * section.c: Likewise.
4276 * sparclinux.c: Likewise.
4277 * sparclynx.c: Likewise.
4278 * sparcnetbsd.c: Likewise.
4280 * stabs.c: Likewise.
4281 * stab-syms.c: Likewise.
4282 * sunos.c: Likewise.
4284 * sysdep.h: Likewise.
4286 2000-12-18 Nick Clifton <nickc@redhat.com>
4288 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4290 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4291 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4293 2000-12-18 Nick Clifton <nickc@redhat.com>
4295 * vms-misc.c (_bfd_vms_get_record): Add default case to
4298 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4300 * elfcore.h (elf_core_file_p): Move to the start of the program
4301 headers before attempting to read them.
4303 2000-12-14 Kazu Hirata <kazu@hxi.com>
4305 * peigen.c: Fix formatting.
4309 2000-12-13 Kazu Hirata <kazu@hxi.com>
4311 * peigen.c: Fix formatting.
4313 2000-12-12 Jim Wilson <wilson@redhat.com>
4315 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4317 2000-12-08 Mark Salter <msalter@redhat.com>
4319 * binary.c (binary_set_section_contents): Ignore sections
4322 2000-12-12 Kazu Hirata <kazu@hxi.com>
4324 * m68klinux.c: Fix formatting.
4325 * m68knetbsd.c: Likewise.
4326 * mipsbsd.c: Likewise.
4327 * netbsd-core.c: Likewise.
4328 * netbsd.h: Likewise.
4329 * newsos3.c: Likewise.
4330 * nlm32-alpha.c: Likewise.
4331 * nlm32-i386.c: Likewise.
4332 * nlm32-ppc.c: Likewise.
4333 * nlm32-sparc.c: Likewise.
4334 * nlmcode.h: Likewise.
4335 * nlmswap.h: Likewise.
4336 * nlm-target.h: Likewise.
4337 * ns32knetbsd.c: Likewise.
4339 2000-12-10 Fred Fish <fnf@be.com>
4341 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4342 symbols in shared objects if allow_shlib_undefined is true.
4344 2000-12-12 Nick Clifton <nickc@redhat.com>
4346 * cpu-sh.c: Fix formattng.
4347 * elf.c: Fix formattng.
4348 * elf32-mips.c: Fix formattng.
4349 * elf32-sh.c: Fix formattng.
4350 * elf64-alpha.c: Fix formattng.
4352 2000-12-09 Nick Clifton <nickc@redhat.com>
4354 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4355 dwarf2_find_line_info as last parameter to invocation of
4356 _bfd_dwarf2_find_nearest_line.
4357 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4358 dwarf2_find_line_info as last parameter to invocation of
4359 _bfd_dwarf2_find_nearest_line.
4361 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4363 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4364 (BFD_LIBS): ...to here.
4365 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4366 (BFD_LIBS_CFILES): ...to here.
4367 * Makefile.in: Regenerate.
4368 * configure.in: Remove dwarf.lo from the elf shell variable.
4369 * configure: Regenerate.
4370 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4371 * libcoff.h: Regenerate.
4372 * coffgen.c (coff_find_nearest_line): Call
4373 _bfd_dwarf2_find_nearest_line.
4374 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4376 (read_abbrevs): Likewise
4377 (decode_line_info): Likewise.
4378 (parse_comp_unit): Likewise.
4379 (comp_unit_find_nearest_line): Likewise.
4380 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4381 * libbfd.h: Regenerate.
4382 * elf.c (_bfd_elf_find_nearest_line): Update call.
4383 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4384 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4385 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4386 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4387 (styp_to_sec_flags): Handle DWARF2 sections.
4388 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4389 to _bfd_find_nearest_line.
4390 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4391 call to _bfd_find_nearest_line.
4393 2000-12-08 Kazu Hirata <kazu@hxi.com>
4395 * coffgen.c: Fix formatting.
4396 * elf-m10300.c: Likewise.
4397 * elf32-i386.c: Likewise.
4398 * elf32-i960.c: Likewise.
4399 * elf32-m68k.c: Likewise.
4400 * elf32-mcore.c: Likewise.
4401 * elf32-ppc.c: Likewise.
4402 * elf32-sh.c: Likewise.
4403 * elf32-sparc.c: Likewise.
4404 * elf32-v850.c: Likewise.
4405 * elf64-alpha.c: Likewise.
4406 * elf64-hppa.c: Likewise.
4407 * elf64-mips.c: Likewise.
4408 * elf64-sparc.c: Likewise.
4410 2000-12-07 Kazu Hirata <kazu@hxi.com>
4412 * elf32-ppc.c: Fix formatting.
4413 * elf64-x86-64.c: Likewise.
4415 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4417 From Ralf Baechle <ralf@gnu.org>
4419 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4420 BFDs containing no sections or empty .text, .data or .bss sections
4421 to be merged, regardless of their flags.
4423 2000-12-06 Kazu Hirata <kazu@hxi.com>
4425 * elf32-m32r.c: Fix formatting.
4426 * elf32-m68hc11.c: Likewise.
4427 * elf32-m68hc12.c: Likewise.
4428 * elf32-m68k.c: Likewise.
4429 * elf32-mcore.c: Likewise.
4430 * elf32-pj.c: Likewise.
4431 * elf32-ppc.c: Likewise.
4433 2000-12-05 Kazu Hirata <kazu@hxi.com>
4435 * elf32-fr30.c: Fix formatting.
4436 * elf32-hppa.c: Likewise.
4437 * elf32-i370.c: Likewise.
4438 * elf32-i386.c: Likewise.
4439 * elf32-i860.c: Likewise.
4440 * elf32-i960.c: Likewise.
4442 2000-12-03 Kazu Hirata <kazu@hxi.com>
4444 * elf32-arm.h: Fix formatting.
4445 * elf32-avr.c: Likewise.
4446 * elf32-cris.c: Likewise.
4447 * elf32-d10v.c: Likewise.
4448 * elf32-d30v.c: Likewise.
4449 * elf-hppa.h: Likewise.
4450 * elf-m10200.c: Likewise.
4451 * elf-m10300.c: Likewise.
4453 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4455 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4456 bfd_mach_mips32_4k. Update FIXME comment.
4457 * archures.c (bfd_mach_mips32): New constant.
4458 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4459 the latter, renumber it.
4460 * bfd-in2.h (bfd_mach_mips32): New constant.
4461 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4462 the latter, renumber it.
4463 * cpu-mips.c (I_mips32): New constant.
4464 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4465 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4466 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4467 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4468 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4469 with E_MIPS_MACH_MIPS32_4K.
4470 (_bfd_mips_elf_final_write_processing): Replace
4471 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4472 bfd_mach_mips32 case.
4473 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4474 comparison with support for MIPS32.
4475 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4478 * aoutx.h (NAME(aout,machine_type)): Add cases for
4479 bfd_mach_mips5 and bfd_mach_mips64.
4480 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4481 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4482 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4483 (arch_info_struct): Add entries for bfd_mach_mips5 and
4485 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4486 _bfd_mips_elf_print_private_bfd_data): Add cases for
4487 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4488 (_bfd_mips_elf_final_write_processing): Add cases for
4489 bfd_mach_mips5 and bfd_mach_mips64.
4491 * aoutx.h (NAME(aout,machine_type)): Add a
4492 bfd_mach_mips_sb1 case.
4493 * archures.c (bfd_mach_mips_sb1): New constant.
4494 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4495 * cpu-mips.c (I_sb1): New constant.
4496 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4497 * elf32-mips.c (elf_mips_mach): Add case for
4499 (_bfd_mips_elf_final_write_processing): Add case for
4502 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4504 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4505 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4506 (sparc*-*-rtems*): Switched from a.out to ELF.
4508 2000-11-30 Jan Hubicka <jh@suse.cz>
4510 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4511 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4512 (elf64-x86-64.lo): Add dependencies.
4513 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4514 bfd_mach_x86_64_intel_syntax.
4515 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4516 * config.bfd (x86_64): Add.
4517 * configure.in: Add support for bfd_elf64_x86_64_vec.
4518 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4519 (bfd_i386_arch, i8086_ar): Link in.
4520 * elf64-x86-64.c: New file.
4521 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4522 * targets.c (bfd_elf64_x86_64_vec): Add.
4523 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4525 2000-11-30 Kazu Hirata <kazu@hxi.com>
4527 * xcofflink.c: Fix formatting.
4529 2000-11-28 Kazu Hirata <kazu@hxi.com>
4531 * aoutx.h: Fix formatting.
4532 * bfd-in.h: Likewise.
4533 * bfd-in2.h: Likewise.
4534 * cache.c: Likewise.
4535 * cisco-core.c: Likewise.
4536 * coff64-rs6000.c: Likewise.
4537 * coffcode.h: Likewise.
4538 * coffswap.h: Likewise.
4539 * corefile.c: Likewise.
4540 * elf32-mips.c: Likewise.
4542 2000-11-27 Kazu Hirata <kazu@hxi.com>
4544 * aout-adobe.c: Fix formatting.
4545 * coff64-rs6000.c: Likewise.
4546 * coffgen.c: Likewise.
4547 * cofflink.c: Likewise.
4549 2000-11-27 Philip Blundell <pb@futuretv.com>
4551 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4552 (obj_coff_strings_written): New accessor macro for above.
4553 * libcoff.h: Regenerate.
4554 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4556 * coffcode.h (coff_write_object_contents): No need to write out
4557 the string table if it's already been done.
4559 2000-11-22 Philip Blundell <pb@futuretv.com>
4561 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4562 weak undefined symbols.
4564 2000-11-24 Nick Clifton <nickc@redhat.com>
4566 * archures.c (bfd_mach_arm_5TE): Define.
4567 (bfd_mach_arm+XScale): Define.
4568 * bfd-in2.h: Regenerate.
4570 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4571 BFD_RELOC_ARM_PCREL_BLX.
4573 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4574 XScale machine numbers.
4576 * config.bfd (xscale-elf): Add target.
4577 (xscale-coff): Add target.
4579 * cpu-arm.c: Add xscale machine name.
4580 Add v5t, v5te and XScale machine numbers.
4582 2000-11-23 Kazu Hirata <kazu@hxi.com>
4584 * aix386-core.c: Fix formatting.
4586 2000-11-22 Jim Wilson <wilson@redhat.com>
4588 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4589 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4590 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4591 (ins_imms_scaled): Initialize sign_bit at function entry.
4592 (elf64_ia64_operands): Add missing initializers.
4593 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4594 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4595 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4596 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4597 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4599 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4600 and free_extsyms at function entry.
4601 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4602 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4603 (get_got): Delete unused local srel.
4604 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4605 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4607 2000-11-21 Kazu Hirata <kazu@hxi.com>
4609 * coff-a29k.c: Fix formatting.
4610 * coff-h8500.c: Likewise.
4611 * coff-i960.c: Likewise.
4612 * coff-ppc.c: Likewise.
4613 * coff-rs6000.c: Likewise.
4614 * coff-stgo32.c: Likewise.
4615 * coff-tic54x.c: Likewise.
4616 * coff-w65.c: Likewise.
4617 * cpu-h8500.c: Likewise.
4618 * cpu-hppa.c: Likewise.
4619 * cpu-ns32k.c: Likewise.
4620 * ecoff.c: Likewise.
4621 * ecofflink.c: Likewise.
4623 2000-11-21 Nick Clifton <nickc@redhat.com>
4625 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4626 remove possibility of infinite loop.
4628 2000-11-20 Kazu Hirata <kazu@hxi.com>
4630 * aix386-core.c: Fix formatting.
4631 * aout-adobe.c: Likewise.
4632 * aout-arm.c: Likewise.
4633 * aout-encap.c: Likewise.
4634 * aout-ns32k.c: Likewise.
4635 * aout-target.h: Likewise.
4636 * aout-tic30.c: Likewise.
4637 * aoutf1.h: Likewise.
4638 * aoutx.h: Likewise.
4639 * archive.c: Likewise.
4640 * bfd-in.h: Likewise.
4641 * bfd-in2.h: Likewise.
4645 2000-11-17 H.J. Lu <hjl@gnu.org>
4647 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4648 pltoff entries for DT_INIT and DT_FINI.
4649 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4650 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4653 2000-11-16 Richard Henderson <rth@redhat.com>
4655 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4656 (allocate_dynrel_entries): Likewise.
4657 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4658 (set_pltoff_entry): Likewise.
4659 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4660 (elfNN_ia64_reloc_type_lookup): Likewise.
4661 (elfNN_ia64_install_value): Likewise.
4662 (elfNN_ia64_relocate_section): Likewise.
4663 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4664 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4666 2000-11-16 Kazu Hirata <kazu@hxi.com>
4668 * cpu-a29k.c: Fix formatting.
4669 * cpu-alpha.c: Likewise.
4670 * cpu-arm.c: Likewise.
4671 * cpu-avr.c: Likewise.
4672 * cpu-d10v.c: Likewise.
4673 * cpu-h8500.c: Likewise.
4674 * cpu-hppa.c: Likewise.
4675 * cpu-i370.c: Likewise.
4676 * cpu-i386.c: Likewise.
4677 * cpu-i960.c: Likewise.
4678 * cpu-ia64-opc.c: Likewise.
4679 * cpu-ia64.c: Likewise.
4680 * cpu-m32r.c: Likewise.
4681 * cpu-m68hc11.c: Likewise.
4682 * cpu-m68hc12.c: Likewise.
4683 * cpu-m68k.c: Likewise.
4684 * cpu-m88k.c: Likewise.
4685 * cpu-mips.c: Likewise.
4686 * cpu-ns32k.c: Likewise.
4687 * cpu-pj.c: Likewise.
4688 * cpu-powerpc.c: Likewise.
4689 * cpu-sh.c: Likewise.
4690 * cpu-sparc.c: Likewise.
4691 * cpu-tic54x.c: Likewise.
4692 * cpu-v850.c: Likewise.
4693 * cpu-vax.c: Likewise.
4694 * cpu-w65.c: Likewise.
4695 * cpu-we32k.c: Likewise.
4696 * cpu-z8k.c: Likewise.
4697 * dwarf1.c: Likewise.
4698 * dwarf2.c: Likewise.
4700 2000-11-15 Kazu Hirata <kazu@hxi.com>
4702 * coff-arm.c: Fix formatting.
4703 * coff-ppc.c: Likewise.
4704 * coff-rs6000.c: Likewise.
4705 * coff-sh.c: Likewise.
4706 * coff-sparc.c: Likewise.
4707 * coff-tic30.c: Likewise.
4708 * coff-tic54x.c: Likewise.
4709 * coff-tic80.c: Likewise.
4710 * coff-w65.c: Likewise.
4711 * coff-we32k.c: Likewise.
4712 * coff-z8k.c: Likewise.
4714 2000-11-15 Richard Henderson <rth@redhat.com>
4716 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4717 section with the same ALLOC|LOAD flags as the source section.
4719 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4721 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4722 by STO_ALPHA constants.
4724 2000-11-14 Kazu Hirata <kazu@hxi.com>
4726 * coff-pmac.c: Fix formatting.
4727 * coff-ppc.c: Likewise.
4729 2000-11-13 H.J. Lu <hjl@gnu.org>
4731 * elflink.h (elf_link_add_object_symbols): Also add indirect
4732 symbols for common symbols with the default version.
4734 2000-11-09 Philip Blundell <pb@futuretv.com>
4736 * section.c (STD_SECTION): Set gc_mark flag.
4738 2000-11-11 Kazu Hirata <kazu@hxi.com>
4740 * coff-i960.c: Likewise.
4741 * coff-m68k.c: Likewise.
4742 * coff-m88k.c: Likewise.
4743 * coff-mcore.c: Likewise.
4744 * coff-mips.c: Likewise.
4746 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4748 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4750 2000-11-10 Kazu Hirata <kazu@hxi.com>
4752 * coff-h8300.c: Fix formatting.
4753 * coff-h8500.c: Likewise.
4754 * coff-i386.c: Likewise.
4755 * coff-i860.c: Likewise.
4756 * coff-i960.c: Likewise.
4757 * coff-ia64.c: Likewise.
4759 2000-11-09 Kazu Hirata <kazu@hxi.com>
4761 * archive.c: Fix formatting.
4762 * archures.c: Likewise.
4764 2000-11-07 Richard Henderson <rth@redhat.com>
4766 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4767 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4768 * section.c (bfd_set_section_contents): Call memcpy if
4769 section->contents set and location not equal to contents plus offset.
4771 2000-11-08 Kazu Hirata <kazu@hxi.com>
4773 * bfd-in.h: Fix formatting.
4774 * bfd-in2.h: Likewise.
4776 * binary.c: Likewise.
4778 * coff-a29k.c: Likewise.
4779 * coff-alpha.c: Likewise.
4780 * coff-apollo.c: Likewise.
4781 * coff-aux.c: Likewise.
4783 2000-11-07 Kazu Hirata <kazu@hxi.com>
4785 * aix386-core.c: Fix formatting.
4786 * aoutf1.h: Likewise.
4787 * aoutx.h: Likewise.
4788 * archures.c: Likewise.
4789 * armnetbsd.c: Likewise.
4791 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4793 * coff-h8300.c (special): Adjust reloc address.
4795 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4797 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4798 to differentiate elf32 and elf64 on ia64.
4799 * bfd-in2.h: Regenerate.
4800 * config.bfd: Add target for "ia64*-*-hpux*".
4801 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4802 * configure: Regenerate.
4803 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4804 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4806 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4807 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4808 * Makefile.in: Regnerate.
4809 * elf64-ia64.c: Deleted.
4810 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4812 2000-11-06 Kazu Hirata <kazu@hxi.com>
4814 * aout-adobe.c: Fix formatting.
4815 * aout-arm.c: Likewise.
4816 * aout-cris.c: Likewise.
4817 * aout-encap.c: Likewise.
4818 * aout-ns32k.c: Likewise.
4819 * aout-target.h: Likewise.
4820 * aout-tic30.c: Likewise.
4822 2000-11-05 Philip Blundell <philb@gnu.org>
4824 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4825 BFDs containing no sections to be merged, regardless of their flags.
4827 2000-11-04 Philip Blundell <philb@gnu.org>
4829 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4830 if a relocation for an undefined symbol also results in an
4833 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4835 * config.bfd: Add support for Sun Chorus.
4837 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4839 * configure.in: Recognize alpha-*-freebsd*.
4840 * configure: Regenerate.
4842 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4844 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4845 (Chunk): New global variable set by a parameter in objcopy.c.
4846 (S3Forced): New global variable set by a parameter in
4848 (srec_set_section_contents): If S3Forced is true, always generate
4850 (srec_write_section): Use 'Chunk' to limit maximum length of S
4853 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4855 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4856 * Makefile.in: Regenerate.
4857 * bfd-in2.h: Regenerate.
4858 * po/bfd.pot: Regenerate.
4860 2000-10-31 Philip Blundell <philb@gnu.org>
4862 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4863 EF_SOFT_FLOAT if it is defined.
4865 2000-10-27 Philip Blundell <philb@gnu.org>
4867 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4868 attempts to mix PIC code with non-PIC, just mark the output as
4869 being position dependent.
4870 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4871 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4872 all mismatches, not just the first one.
4874 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4876 * ieee.c (ieee_archive_p): Plug one of many possible
4877 memory leaks in error handling.
4879 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4881 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4882 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4884 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4885 sparc64_elf_object_p): Support v9b.
4886 * archures.c: Declare v8plusb and v9b machines.
4888 * cpu-sparc.c: Ditto.
4890 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4892 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4895 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4896 (SYMBOL_CALLS_LOCAL): New macro.
4897 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4898 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4899 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4900 (ppc_elf_relocate_section): Use flag variable to determine
4901 whether the relocation refers to a local symbol.
4902 Test whether a PLTREL24 reloc will produce a reloc by looking
4903 to see whether a PLT entry was made.
4905 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4907 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4908 entries that could serve as a definition for a weak symbol.
4910 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4912 From Ralf Baechle <ralf@gnu.org>
4914 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4915 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4916 against local symbols.
4917 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4919 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4921 * section.c (struct sec): Add kept_section.
4922 (struct bfd_comdat_info): Remove sec, we can use above.
4923 (STD_SECTION): Add initializer.
4924 (bfd_make_section_anyway): Init here too.
4926 * bfd-in2.h: Regenerate.
4928 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4930 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4931 fudge values for discarded link-once section symbols.
4933 * elf64-hppa.c: Include alloca-conf.h
4935 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4937 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4939 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4941 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4943 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4945 2000-10-10 Tom Rix <trix@redhat.com>
4947 * section.c (bfd_make_section_anyway): Release newsect ptr when
4948 newsect->symbol fails to alloc. Use bfd_release instead of free.
4950 2000-10-09 Richard Henderson <rth@cygnus.com
4952 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4953 (elf64_ia64_unwind_entry_compare): New.
4954 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4956 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4958 * elflink.h (size_dynamic_sections): Don't create various tags if
4959 .dynstr is excluded from the link. Don't set first dynsym entry
4960 if dynsymcount is zero.
4961 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4962 .dynsym excluded from the link. Don't try to write any dynamic
4963 sections excluded from the link.
4965 * elf.c (swap_out_syms): Handle global section symbols.
4967 2000-10-05 DJ Delorie <dj@redhat.com>
4969 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4970 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4971 (coff_write_relocs): write extended reloc count
4972 (coff_write_object_contents): account for extended relocs
4974 2000-10-05 Jim Wilson <wilson@cygnus.com>
4976 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4978 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4979 elf_backend_section_flags function.
4980 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4982 (elf64_ia64_section_flags): New function containing flag conversion
4984 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4985 * elfxx-target.h (elf_backend_section_flags): Define.
4986 (elfNN_bed): Initialize elf_backend_section_flags field.
4988 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4990 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4991 _bfd_elf32_gc_record_vtable. Correct a comment.
4993 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4995 From Ralf Baechle <ralf@gnu.org>
4997 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4998 produces binaries with got[1] = 0x80000001 to differenciate them
4999 for the dynamic linker from the broken binaries produced by old
5002 2000-09-30 Petr Sorfa <petrs@sco.com>
5004 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5005 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5006 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5007 * configure: Regenerate.
5009 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5011 Define two bfd_targets for absence and presence of leading
5012 underscore on symbols. Make sure to only link same kind.
5013 * elf32-cris.c (cris_elf_object_p,
5014 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5015 cris_elf_merge_private_bfd_data): New.
5016 (elf_backend_object_p, elf_backend_final_write_processing,
5017 bfd_elf32_bfd_print_private_bfd_data,
5018 bfd_elf32_bfd_merge_private_bfd_data): Define.
5019 <Target vector definition>: Include elf32-target.h twice with
5020 different macro settings:
5021 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5022 bfd_elf32_us_cris_vec.
5023 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5024 (elf_symbol_leading_char): First as 0, then '_'.
5025 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5026 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5027 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5028 * configure: Regenerate.
5029 * targets.c: Declare bfd_elf32_us_cris_vec.
5030 * po/bfd.pot: Regenerate.
5032 2000-09-29 Momchil Velikov <velco@fadata.bg>
5034 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5035 R_ARM_THM_PC22 relocations.
5037 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5039 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5041 2000-09-29 Momchil Velikov <velco@fadata.bg>
5043 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5044 is has the SEC_HAS_CONTENTS flag set.
5046 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5047 Hans-Peter Nilsson <hp@axis.com>
5049 * aout-cris.c (N_TXTADDR): Define.
5051 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5053 * som.c: Include alloca-conf.h.
5054 * Makefile.am: "make dep-am"
5055 * Makefile.in: Regenerate.
5057 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5059 * elf32-hppa.c (plt_stub): New.
5060 (PLT_STUB_ENTRY): Define.
5061 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5062 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5063 (elf32_hppa_link_hash_table_create): Init to suit.
5064 (elf32_hppa_check_relocs): Set has_12bit_branch and
5065 has_17bit_branch as appropriate.
5066 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5067 non-local functions.
5068 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5069 Add space for plt_stub as needed.
5070 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5071 functions at plt_stub.
5072 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5073 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5075 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5076 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5077 of fixed size, and if negative, disable handling of input sections
5078 before stub section. Set up default stub group size depending
5079 on detected branch relocs.
5080 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5081 ensure different offsets from sym_value aren't rounded to
5082 different 2k blocks. Use lrsel and rrsel for other stubs too for
5083 consistency rather than necessity.
5084 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5085 (final_link_relocate): Likewise.
5086 (elf32_hppa_relocate_section): Likewise.
5088 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5089 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5090 (elf_hppa_final_link_relocate): Handle them.
5091 (elf_hppa_relocate_insn): Likewise.
5092 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5094 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5096 * elfcode.h (elf_object_p): Preserve and clear abfd section
5097 information. Restore at error.
5099 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5101 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5102 is empty, make sure that its rva also 0. NT loader dislikes
5105 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5107 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5110 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5112 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5113 currently unused RELATIVE_DYNAMIC_RELOCS code.
5114 (hppa_discard_copies): Likewise.
5115 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5116 comments. Don't check non-code output sections for stub grouping.
5118 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5120 * section.c (bfd_get_unique_section_name): Return NULL if
5123 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5125 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5126 instruction sequence to actually work.
5127 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5130 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5132 * elf32-sh.c (sh_elf_relocate_section): Use
5133 _bfd_final_link_relocate to apply the relocation against a section
5134 symbol, when doing relocatable links.
5136 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5138 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5140 (stub_hash_newfunc): Here too.
5141 (hppa_add_stub): And here.
5142 (elf32_hppa_link_hash_table): Remove stub_section_created,
5143 reloc_section_created, first_init_sec and first_fini_sec. Add
5145 (elf32_hppa_link_hash_table_create): Init to suit.
5146 (hppa_get_stub_entry): Add support for grouping stub sections.
5147 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5148 section code. Index stub vars by section->id.
5149 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5150 exit paths. Zap allocation of above removed vars. Refine
5153 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5154 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5155 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5156 rather than pointer to bfd_link_info.
5157 (hppa_add_stub): Likewise.
5158 (final_link_relocate): Likewise.
5160 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5162 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5165 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5167 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5168 ld/emulparams/shelf.sh.
5170 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5172 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5173 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5174 * bfd-in2.h: Regenerate.
5176 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5178 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5179 LITUSE relocations incorrectly if -relax is specified on the ld
5180 command line and the displacement field of the load or store
5181 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5183 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5185 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5186 first_fini_sec here.
5187 (elf32_hppa_size_stubs): Instead correctly find the first .init
5188 and .fini section here.
5190 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5192 * elf32-hppa.c (clobber_millicode_symbols): New function.
5193 (elf32_hppa_size_dynamic_sections): Call it.
5195 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5197 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5198 packed. Add plabel, plt_abs packed booleans.
5199 (hppa_link_hash_newfunc): Init new fields.
5200 (PLABEL_PLT_ENTRY_SIZE): Define.
5201 (hppa_stub_name): Use size_t len vars.
5202 (hppa_add_stub): Likewise.
5203 (elf32_hppa_build_stubs): Likewise.
5204 (hppa_build_one_stub): Kill some compiler warnings.
5205 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5206 if dynamic linking. Munge the local plt offsets into
5207 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5208 size_t len vars. Add assert for plabel addend.
5209 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5210 (elf32_hppa_hide_symbol): New function.
5211 (elf_backend_hide_symbol): Define.
5212 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5213 with h->plabel set. Don't make plt entries to have dynamic syms
5214 when they have been forced local. If plt entry is used by a
5215 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5216 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5217 Set up .plt offsets for local syms.
5218 (elf32_hppa_relocate_section): Initialise plt entries for local
5219 syms. Leave weak undefined plabels zero. Make global plabel
5220 relocs against function symbol, and leave the addend zero.
5221 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5222 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5223 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5224 relocs instead of SEGREL32 for dynamic got relocs.
5225 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5226 (elf_backend_got_header_size): Adjust.
5227 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5229 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5230 (hppa_type_of_stub): Use it instead of #if 0
5231 (hppa_discard_copies): Use it here too.
5232 (elf32_hppa_size_dynamic_sections): And here.
5234 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5235 (elf32_hppa_link_hash_table_create): And here.
5236 (hppa_build_one_stub): And here. Instead keep track of stub
5237 offset using _raw_size.
5238 (elf32_hppa_size_stubs): Likewise.
5239 (elf32_hppa_build_stubs): Likewise.
5240 (hppa_size_one_stub): Likewise. Resize reloc section too.
5242 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5243 first_fini_sec handling. Don't search for reloc section or set
5244 hplink->reloc_section_created here.
5245 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5246 set reloc_section_created here.
5247 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5248 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5250 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5252 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5253 with `hplink->root.'.
5254 (elf32_hppa_check_relocs): Likewise.
5255 (elf32_hppa_gc_sweep_hook): Likewise.
5256 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5257 (hppa_handle_PIC_calls): Likewise.
5258 (elf32_hppa_size_dynamic_sections): Likewise.
5259 (elf32_hppa_set_gp): Likewise.
5260 (elf32_hppa_relocate_section): Likewise.
5261 (elf32_hppa_finish_dynamic_symbol): Likewise.
5262 (elf32_hppa_finish_dynamic_sections): Likewise.
5264 From David Huggins-Daines <dhd@linuxcare.com>
5265 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5266 defined weak symbols in shared links.
5267 (final_link_relocate): Calls to defined weak symbols in shared
5268 objects must go via import stubs, as the target might not be known
5271 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5273 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5274 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5275 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5276 the original entries with EMPTY_HOWTOs, and added new ones to fill
5278 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5279 (sh_elf_relocate_section): Likewise.
5281 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5283 * cpu-mips.c (arch_info_struct): Add mips:4K
5284 * bfd-in2.h (bfd_mach_mips4K): New define.
5285 * archures.c: Add bfd_mach_mips4K to comment.
5286 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5287 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5289 2000-09-13 Marco Franzen <marcof@thyron.com>
5291 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5292 use size_t as a counter.
5293 (som_write_space_strings): Similarly.
5295 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5297 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5299 (elf32_i860_relocate_section): Invoke new function from here.
5301 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5303 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5306 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5308 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5309 target section name instead of dumping core when the target symbol is
5312 2000-09-09 Kazu Hirata <kazu@hxi.com>
5314 * riscix.c: Remove DEFUN.
5316 2000-09-08 Nick Clifton <nickc@redhat.com>
5318 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5319 initialise flags in output bfd if the input bfd is the default
5320 architecture with the default flags.
5322 2000-09-08 Kazu Hirata <kazu@hxi.com>
5324 * archive.c: Fix formatting.
5325 * coff-arm.c: Likewise.
5326 * doc/chew.c: Likewise.
5328 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5330 * section.c (bfd_get_unique_section_name): Put a dot before the
5333 2000-09-07 Kazu Hirata <kazu@hxi.com>
5335 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5336 * elf.c: Fix formatting.
5338 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5340 * config.bfd (sh-*-linux*): Added.
5341 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5342 * targets.c: Declare them.
5343 * elf32-sh-lin.c: New file.
5344 * Makefile.am: Compile it.
5345 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5346 * configure, Makefile.in: Rebuilt.
5348 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5350 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5351 pseduo-section when determining where the TOC ends.
5353 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5354 output x_tvndx as it is only two bytes wide.
5356 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5357 reloc is 26 or 32 bits wide.
5359 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5360 for relocs that don't change anything. Also look at the full
5363 2000-09-06 Philip Blundell <philb@gnu.org>
5365 * config.bfd (arm*-*-uclinux*): New target.
5367 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5369 * configure: Rebuilt with new libtool.m4.
5371 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5373 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5374 word for variable name.
5375 * bfd-in2.h: Regenerate.
5377 2000-09-05 Nick Clifton <nickc@redhat.com>
5379 * config.in: Regenerate.
5380 * libbfd.h: Regenerate.
5381 * po/bfd.pot: Regenerate.
5382 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5385 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5387 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5389 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5391 Shared library and PIC support.
5392 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5393 (GOT_ENTRY_SIZE): New.
5394 (ELF_DYNAMIC_INTERPRETER): New.
5395 (STUB_SUFFIX): Define.
5396 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5397 (RELATIVE_DYNAMIC_RELOCS): Define.
5398 (enum elf32_hppa_stub_type): New.
5399 (struct elf32_hppa_stub_hash_entry): Rename offset to
5400 stub_offset. Add a number of new fields.
5401 (struct elf32_hppa_link_hash_entry): New.
5402 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5404 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5405 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5406 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5408 (hppa_link_hash_newfunc): New function.
5409 (elf32_hppa_link_hash_table_create): Use above function. Init new
5411 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5412 instead of addend, and remove sym_name from args. Don't use
5413 symbol name for local syms, instead use sym index.
5414 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5415 stub type rather than size. Pass in hash and handle import stub
5416 case. Also pass in reloc instead of offset so we can calculate
5417 PCREL22F and PCREL12F branches properly.
5418 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5419 import and export stubs too.
5420 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5421 import and export stub sizing.
5422 (elf32_hppa_check_relocs): New function.
5423 (elf32_hppa_adjust_dynamic_symbol): New function.
5424 (hppa_discard_copies): New function.
5425 (elf32_hppa_size_dynamic_sections): New function.
5426 (elf_backend_size_dynamic_sections): Define.
5427 (elf32_hppa_finish_dynamic_symbol): New function.
5428 (elf_backend_finish_dynamic_symbol): Define.
5429 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5430 some local vars into the link hash table too. For shared links,
5431 trundle over function syms, generating export stubs. Handle
5432 PCREL22F branches. Break out stub creation code from here..
5433 (hppa_add_stub): .. to here. New function.
5434 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5435 call the bfd linker. Use elf_gp to record global pointer.
5436 Calculate a value from sections if $global$ is missing.
5437 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5438 (elf32_hppa_gc_mark_hook): New function.
5439 (elf_backend_gc_mark_hook): Define.
5440 (elf32_hppa_gc_sweep_hook): New function.
5441 (elf_backend_gc_sweep_hook): Define.
5442 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5443 Add rel to args, and remove howto, input_bfd, offset, addend,
5444 sym_name as we can recalculate these locally. Handle calls to
5445 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5446 handling of undefined weak syms. Check that stubs are in range.
5447 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5448 message on hitting a DPREL21L reloc that needs fixing. Subtract
5449 off PC for PCREL14F. Break out code that does a stub lookup from
5451 (hppa_get_stub_entry): ..to here. New function.
5452 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5453 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5455 (elf32_hppa_finish_dynamic_sections): New function.
5456 (elf_backend_finish_dynamic_sections): Define.
5457 (elf_backend_final_write_processing) Define.
5458 (hppa_handle_PIC_calls): New function.
5459 (elf32_hppa_build_stubs): Call it. Pass link_info to
5460 hppa_build_one_stub.
5461 (elf32_hppa_create_dynamic_sections): New function
5462 to create .plt and .got then set .plt flags correctly.
5463 (elf_backend_create_dynamic_sections): Define.
5464 (elf32_hppa_object_p): New function.
5465 (elf_backend_object_p): Define.
5466 (elf32_hppa_elf_get_symbol_type): New function.
5467 (elf_backend_get_symbol_type): Define.
5468 (elf_backend_can_gc_sections): Define.
5469 (elf_backend_want_got_plt): Define.
5470 (elf_backend_plt_alignment): Set to 2.
5471 (elf_backend_plt_readonly): Define.
5472 (elf_backend_want_plt_sym): Define.
5473 (elf_backend_got_header_size): Reserve one entry.
5475 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5476 (elf32_hppa_size_stubs): Pass in multi_subspace.
5477 (elf32_hppa_set_gp): Declare.
5479 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5480 (bfd_get_unique_section_name): New function.
5481 * bfd-in2.h: Regenerate.
5483 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5484 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5487 From David Huggins-Daines <dhd@linuxcare.com>
5488 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5489 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5490 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5491 been updated in finish_dynamic_symbol before modifying function
5494 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5495 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5496 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5497 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5498 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5499 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5500 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5501 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5503 From David Huggins-Daines <dhd@linuxcare.com>
5504 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5505 style of local labels as well.
5507 2000-09-03 Philip Blundell <philb@gnu.org>
5509 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5510 references to undefined symbols in debugging sections.
5512 2000-09-02 H.J. Lu <hjl@gnu.org>
5514 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5515 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5516 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5519 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5521 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5522 (elf32_i860_is_local_label_name): New function and prototype.
5524 2000-09-02 Nick Clifton <nickc@redhat.com>
5526 * configure.in: Increase version number to 2.10.91.
5527 * configure: Regenerate.
5528 * aclocal.m4: Regenerate.
5529 * config.in: Regenerate.
5530 * po/bfd.pot: Regenerate.
5532 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5534 * elf.c (_bfd_elf_make_section_from_shdr): Add
5535 .gnu.linkobce.wi. to the list of debug section names.
5537 2000-09-02 Nick Clifton <nickc@redhat.com>
5539 * dwarf2.c (find_debug_info): New function: Locate a section
5540 containing dwarf2 debug information.
5541 (bfd_dwarf2_find_nearest_line): Find all sections containing
5542 debug information and include them in the stash.
5544 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5546 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5547 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5548 (sh_reloc_map): Add new relocs.
5549 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5550 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5551 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5552 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5554 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5555 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5556 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5557 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5558 New array constants.
5559 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5561 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5562 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5563 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5564 elf_sh_plt_reloc_offset): Define.
5565 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5566 elf_sh_link_hash_table): New structs.
5567 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5568 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5570 (elf_backend_create_dynamic_sections,
5571 bfd_elf32_bfd_link_hash_table_create,
5572 elf_backend_adjust_dynamic_symbol,
5573 elf_backend_size_dynamic_sections,
5574 elf_backend_finish_dynamic_symbol,
5575 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5576 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5577 elf_backend_got_header_size, elf_backend_plt_header_size):
5579 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5580 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5582 * bfd-in2.h, libbfd.h: Rebuilt.
5584 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5586 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5589 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5591 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5592 not initialized, set them to indicate the SH1 instruction set.
5594 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5596 * acinclude.m4: Include libtool and gettext macros from the
5598 * aclocal.m4, configure: Rebuilt.
5600 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5602 * elf.c: Eliminate references to __sparcv9 macro; replace with
5603 autoconf variables HAVE_PSINFO32_T etc.
5604 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5605 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5607 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5608 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5609 * aclocal.m4: Ditto.
5610 * configure: Regenerate.
5612 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5614 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5615 for any shared link, not just shared -Bsymbolic.
5616 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5617 any shared link, and pass link info to it.
5618 (elf_i386_size_dynamic_sections): Update comment.
5619 (elf_i386_discard_copies): Modify to discard relocs for symbols
5620 that have been forced local.
5621 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5622 that have been forced local.
5624 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5626 * elflink.h (elf_link_add_object_symbols): Allow common
5627 symbols to have an alignment of 1 if explicitly requested, and
5628 not overridden by other definitions.
5630 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5632 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5633 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5635 2000-08-22 H.J. Lu <hjl@gnu.org>
5637 * elf-bfd.h (elf_link_hash_table): Add runpath.
5639 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5640 * bfd-in2.h: Rebuilt.
5642 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5643 "runpath" field to NULL.
5644 (bfd_elf_get_runpath_list): New function.
5646 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5649 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5651 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5652 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5653 explicitly. Improve validation of r_type.
5655 2000-08-21 H.J. Lu <hjl@gnu.org>
5657 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5658 dynamic allocated content space. Add a comment to remind us that
5659 one day this ought to be fixed.
5660 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5661 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5662 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5664 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5666 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5667 field with the newly relocated value instead of adding it to the
5668 existing immediate field.
5669 (elf32_i860_relocate_splitn): Likewise.
5670 (elf32_i860_relocate_highadj): Likewise.
5672 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5674 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5675 was previously just a stub).
5677 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5679 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5681 (_bfd_elf_create_dynamic_sections): Likewise.
5683 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5685 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5686 for undefined symbols to be the beginning of the section.
5688 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5689 four extra entries at the beginning of the .rela.plt section.
5690 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5691 section to account for the four reserved entries in the .plt section.
5693 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5695 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5696 to the list of NOPs we recognize after a branch-and-link.
5697 Use the ori NOP when one is needed.
5699 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5702 2000-08-14 Jim Wilson <wilson@cygnus.com>
5704 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5705 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5706 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5709 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5711 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5713 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5715 * elf32-i860.c (elf32_i860_relocate_section): New function.
5716 (i860_final_link_relocate): New function.
5717 (elf32_i860_relocate_splitn): New function.
5718 (elf32_i860_relocate_pc16): New function.
5719 (elf32_i860_relocate_highadj): New function.
5720 (elf32_i860_howto): Minor adjustments to some relocations.
5721 (elf_info_to_howto_rel): Define.
5722 (elf_backend_relocate_section): Define.
5724 2000-08-10 Nick Clifton <nickc@cygnus.com>
5726 * elf32-arm.h: Fix formatting.
5728 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5730 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5732 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5734 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5736 2000-08-07 Kazu Hirata <kazu@hxi.com>
5738 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5739 * elf64-ia64.c: Fix a typo.
5741 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5743 * elf32-i860.c (elf32_i860_howto_table): New structure.
5744 (lookup_howto): New function.
5745 (elf32_i860_reloc_type_lookup): New function.
5746 (elf32_i860_info_to_howto_rela): New function.
5747 (elf_code_to_howto_index): New structure.
5748 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5749 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5750 elf32_i860_reloc_type_lookup.
5752 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5754 * som.c (struct fixup_format): Constify `format'.
5755 (som_hppa_howto_table): Use SOM_HOWTO macro.
5756 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5757 (som_bfd_reloc_type_lookup): Likewise.
5758 (compare_subspaces): Remove unused `count1', `count2'.
5759 (som_begin_writing): Remove unused `total_reloc_size'.
5760 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5761 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5762 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5763 (som_find_nearest_line): Decorate unused parameter(s).
5764 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5765 (som_bfd_link_split_section): Likewise.
5767 2000-08-03 Nick Clifton <nickc@cygnus.com>
5769 * section.c: Restore backed out code.
5770 * elf.c: Restore backed out code.
5771 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5772 binaries from working.
5773 * bfd-in2.h: Regenerate.
5775 2000-08-03 H.J. Lu <hjl@gnu.org>
5777 * section.c: Back out the change made by Nick Clifton
5778 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5780 * bfd-in2.h: Likewise.
5783 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5785 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5787 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5789 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5790 * bfd-in2.h, libbfd.h: Regenerate.
5792 2000-07-31 Nick Clifton <nickc@cygnus.com>
5794 * section.c (struct sec): Add new boolean field 'segment_mark'.
5795 (STD_SECTION): Initialise new field to zero.
5797 * bfd-in2.h: Regenerate.
5799 * elf.c (copy_private_bfd_data): Reorganise section to segment
5800 mapping to cope with moved sections requiring new segments,
5801 and overlapping segments.
5802 (SEGMENT_END): New macro: Return the end address of a segment.
5803 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5804 contains a section by comparing their VMA addresses.
5805 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5806 contains a section by comparing their LMA addresses.
5807 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5808 section should be included in a segment.
5809 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5810 follows another in memory.
5811 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5814 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5816 * cpu-i860.c: Added comments.
5818 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5819 bfd_elf32_i860_little_vec.
5820 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5821 (ELF_MAXPAGESIZE): Changed to 4096.
5823 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5825 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5827 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5828 config for little endian elf32 i860.
5829 (targ_defvec): Define for the new config above
5830 as "bfd_elf32_i860_little_vec".
5831 (targ_selvecs): Define for the new config above
5832 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5834 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5837 * configure: Regenerated.
5839 2000-07-27 H.J. Lu <hjl@gnu.org>
5841 * elflink.h (elf_merge_symbol): Take one more argument,
5842 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5843 entry. Don't overide the existing weak definition if dt_needed
5845 (elf_link_add_object_symbols): Pass dt_needed to
5846 elf_merge_symbol ().
5848 2000-07-27 Nick Clifton <nickc@cygnus.com>
5850 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5853 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5855 * configure.host (*-*-aix*): AIX has 'long long' always.
5857 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5858 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5859 (xcoff_write_archive_contents_big): Don't update the offset
5860 of the symbol table, xcoff_write_armap will do it.
5862 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5864 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5865 of dynobj for SGI_COMPAT checks.
5867 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5869 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5870 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5871 * bfd-in2.h: Regenerate.
5873 2000-07-21 Nick Clifton <nickc@cygnus.com>
5875 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5876 range symbol indices in relocs and issue an error message.
5878 2000-07-20 H.J. Lu <hjl@gnu.org>
5880 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5881 info->new_dtags when setting DT_FLAGS_1. It will only be set
5882 by the new linker options. It shouldn't break anything.
5884 2000-07-20 H.J. Lu <hjl@gnu.org>
5886 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5887 only if info->new_dtags is true.
5889 2000-07-20 H.J. Lu <hjl@gnu.org>
5891 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5892 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5894 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5896 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5897 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5898 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5899 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5900 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5901 * Makefile.in: Rebuild.
5902 * aclocal.m4: Rebuild.
5903 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5904 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5905 (bfd_cris_arch): Declare.
5906 (bfd_archures_list): Add bfd_cris_arch.
5907 * bfd-in2.h: Rebuild.
5908 * config.bfd: (cris-*-*): New target.
5909 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5910 * configure: Rebuild.
5911 * elf.c (prep_headers): Add bfd_arch_cris.
5912 * libbfd.h: Rebuild.
5913 * libaout.h (enum machine_type): Add M_CRIS.
5914 * reloc.c: Add CRIS relocations.
5915 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5916 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5917 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5918 * po/POTFILES.in, po/bfd.pot: Regenerate.
5920 2000-07-19 H.J. Lu <hjl@gnu.org>
5922 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5923 DF_TEXTREL if DT_TEXTREL is set.
5924 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5925 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5926 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5927 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5928 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5929 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5930 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5931 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5932 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5933 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5935 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5936 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5938 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5940 2000-07-19 H.J. Lu <hjl@gnu.org>
5942 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5943 * bfd-in2.h: Rebuild.
5945 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5946 (elf_dt_soname): New.
5948 * elf.c (bfd_elf_set_dt_needed_soname): New.
5950 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5951 entry if the shared object loaded by DT_NEEDED is used to
5952 resolve the reference in a regular object.
5954 2000-07-19 H.J. Lu <hjl@gnu.org>
5956 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5957 DT_DEPAUDIT and DT_AUDIT as strings.
5959 2000-07-19 Nick Clifton <nickc@cygnus.com>
5961 * format.c: Fix formatting.
5963 2000-07-19 H.J. Lu <hjl@gnu.org>
5965 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5967 2000-07-19 H.J. Lu <hjl@gnu.org>
5969 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5970 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5971 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5972 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5973 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5974 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5975 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5977 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5979 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5980 renamed functions from here...
5981 (assign_section_numbers): Use renamed functions.
5982 (prep_headers): Use renamed functions.
5984 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5985 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5986 * bfd-in2.h: Regenerate.
5988 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5990 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5991 parenthesis in if statement.
5993 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5995 Enable the support for Traditional MIPS.
5996 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5997 return ict_none appropriately for traditional mips targets.
5998 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5999 (STUB_MOVE): Conditionalize for traditonal mips.
6000 (STUB_LI16): Likewise.
6001 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6002 room for RTPROC header.
6003 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6004 the permission for the PT_DYNAMIC as read, write and execute.
6005 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6006 for traditonal mips.
6007 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6008 _DYNAMIC_LINKING for traditonal mips.
6009 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6010 in case of traditonal mips.
6011 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6012 entry is required. For a function if PLT is not required then set the
6013 corresponding hash table entry to 0.
6014 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6016 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6017 shared object set the value to 0.
6018 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6019 _DYNAMIC_LINKING for traditonal mips.
6020 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6021 for traditonal mips.
6023 2000-07-15 H.J. Lu <hjl@gnu.org>
6025 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6027 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6029 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6030 out a structure that is BFD_IN_MEMORY.
6032 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6034 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6035 bfd pointer. Print section id instead of bfd pointer for local
6036 syms. Prefix addend with `+' for global syms as well as local.
6037 Correct calculation of name component lengths.
6038 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6040 From David Huggins-Daines <dhd@linuxcare.com>
6041 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6042 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6043 (elf64_hppa_modify_segment_map): Likewise.
6045 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6047 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6048 addresses to be "naturally" sign extended. Return -1 if unknown.
6049 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6050 * bfd-in2.h: Regenerate.
6052 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6054 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6055 and ECOF_SIGNED_64 to list ways to extract an offset.
6056 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6057 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6059 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6060 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6062 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6064 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6065 bfd_get_start_address.
6066 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6067 (elf_swap_ehdr_out): Ditto.
6069 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6071 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6072 compatibility with older binutils.
6074 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6076 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6077 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6079 From Ryan Bradetich <rbradetich@uswest.net>
6080 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6081 (parse_line_table): Ditto.
6082 (_bfd_dwarf1_find_nearest_line): Ditto.
6083 * syms.c (cmpindexentry): Remove extra `*' from params.
6085 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6087 * elf32-mips.c (sort_dynamic_relocs): New Function.
6088 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6089 via qsort to sort the dynamic relocations in increasing r_symndx
6092 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6094 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6095 ATTRIBUTE_UNUSED to unused args.
6096 (get_opd): Likewise.
6097 (get_plt): Likewise.
6098 (get_dlt): Likewise.
6099 (get_stub): Likewise.
6100 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6101 (elf64_hppa_link_output_symbol_hook): Likewise.
6102 (elf64_hppa_check_relocs): Delete unused var.
6103 (elf64_hppa_size_dynamic_sections): Likewise.
6104 (elf64_hppa_finalize_opd): Likewise.
6105 (elf64_hppa_finalize_dynreloc): Likewise.
6106 (elf64_hppa_modify_segment_map): Likewise.
6107 (elf64_hppa_finish_dynamic_sections): Likewise.
6109 * elf-hppa.h (elf_hppa_final_write_processing): Add
6110 ATTRIBUTE_UNUSED to unused args.
6111 (elf_hppa_final_link_relocate): Likewise.
6112 (elf_hppa_record_segment_addrs): Add paretheses.
6113 (elf_hppa_relocate_section): Constify dyn_name.
6115 From David Huggins-Daines <dhd@linuxcare.com>
6116 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6117 rearrange case statement so that it gets preferred to 32-bit ones.
6119 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6120 asection->id instead of address of asection structure.
6121 (elf32_hppa_size_stubs): Likewise.
6123 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6124 for .init* and .fini*.
6126 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6127 and addends used in stub names to 32 bits.
6128 (elf32_hppa_size_stubs): Likewise.
6130 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6131 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6132 not bfd_put_64. Fix minor comment typo and formatting.
6134 Changes to create multiple linker stubs, positioned immediately
6135 before the section where they are required.
6136 * elf32-hppa.c: Don't include hppa_stubs.h.
6137 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6138 (elf32_hppa_stub_hash_table): Delete.
6139 (elf32_hppa_link_hash_entry): Delete.
6140 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6141 stub_hash_table, and store the struct here rather than a pointer.
6142 Delete output_symbol_count. Add offset array. Change
6143 global_value to a bfd_vma.
6144 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6145 (elf32_hppa_stub_hash_traverse): Delete.
6146 (elf32_hppa_name_of_stub): Delete.
6147 (elf32_hppa_link_hash_lookup): Delete.
6148 (elf32_hppa_link_hash_traverse): Delete.
6149 (elf32_hppa_stub_hash_table_init): Delete.
6150 (elf32_hppa_size_of_stub): Pass input section and offset rather
6151 than location and calculate location here. Don't pass name as all
6152 stubs are now the same size.
6153 (elf32_hppa_stub_hash_newfunc): Init new fields.
6154 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6156 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6157 comparing against ints. Rewrite stub handling code.
6158 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6159 Case enums to int before comparing against ints. Remove
6160 bfd_reloc_dangerous case.
6161 (elf32_hppa_build_one_stub): Rewrite.
6162 (elf32_hppa_size_one_stub): New function.
6163 (elf32_hppa_build_stubs): Rewrite.
6164 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6165 Rewrite stub-handling specific code.
6167 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6169 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6171 * hppa_stubs.h: Delete.
6172 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6173 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6174 * Makefile.in: Regenerate.
6176 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6179 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6181 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6182 and section name for bfd_reloc_notsupported error message.
6183 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6184 bfd_reloc_notsupported.
6185 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6187 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6188 undefined weak symbols for all relocs.
6189 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6190 offsets are relative to one past the delay slot.
6191 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6192 branch destination. Put addend into stub name too.
6193 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6194 adjust by 8 when deciding whether a linker stub is needed. Put
6195 addend into stub name as for above.
6197 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6198 various args and vars.
6199 (elf32_hppa_bfd_final_link_relocate): Here too.
6200 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6201 inner block var to avoid shadowing.
6203 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6205 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6206 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6207 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6209 * libhppa.h: Change practically all unsigned ints to plain ints.
6210 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6213 From Ryan Bradetich <rbradetich@uswest.net>
6214 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6215 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6217 From David Huggins-Daines <dhd@linuxcare.com>
6218 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6219 to the new OP_* ones.
6221 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6222 error exit. Bail out earlier on plabel relocs that we aren't
6223 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6224 string, and then don't free our copy.
6225 (elf32_hppa_build_one_stub): Make insn unsigned int.
6227 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6228 available with BL, not BE and BLE.
6230 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6231 code for elf arg relocs.
6232 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6233 argument with elf_link_hash_entry h. Handle undefined weak
6234 symbols. Move $global$ lookup from here...
6235 (elf32_hppa_relocate_section): ...to here. Return correct error
6236 message for non-handled relocs.
6237 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6238 wrong test was -0x3ffff to +0x40000.
6240 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6241 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6242 Handle them as such.
6243 (elf_hppa_relocate_insn): Fix a typo.
6245 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6246 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6247 assemble_17, assemble_21): Delete.
6248 Supply defines for all 64 possible opcodes.
6249 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6250 formats. Handle COMICLR.
6251 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6254 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6255 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6256 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6258 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6259 the local syms - did this code get deleted accidentally? Ignore
6260 undefined and undefweak syms.
6262 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6263 block. Use it instead of elf64_hppa_hash_table (info).
6264 (elf_hppa_final_link_relocate): Use hppa_info instead of
6265 elf64_hppa_hash_table (info).
6267 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6268 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6269 (hppa_rebuild_insn): Mask immediate bits here instead.
6270 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6272 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6274 * section.c (struct sec): Add id field. Tidy comment formatting.
6275 (bfd_make_section_anyway): Set id.
6276 (STD_SECTION): Init id too.
6277 Change CONST to const throughout.
6278 * archures.c (bfd_arch_info): Tidy comment.
6279 (bfd_arch_list): Change a CONST to const.
6280 * libbfd-in.h: Tidy comments and replace CONST with const.
6281 * elf-bfd.h: Likewise.
6282 * libbfd.h: Regenerate.
6283 * bfd-in2.h: Regenerate.
6284 * libcoff.h: Regenerate.
6286 2000-07-07 DJ Delorie <dj@redhat.com>
6288 * archive.c (_bfd_write_archive_contents): Add an informative
6291 2000-07-06 Kazu Hirata <kazu@hxi.com>
6293 * srec.c: Fix formatting.
6295 2000-06-05 DJ Delorie <dj@redhat.com>
6299 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6301 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6302 value of PC-relative offsets.
6304 2000-07-03 Jim Wilson <wilson@cygnus.com>
6306 * elf64-alpha.c (alpha_elf_size_info): New.
6307 (elf_backend_size_info): Define to alpha_elf_size_info.
6308 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6310 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6312 * elf32-mips.c: Include elf32-target.h again for the traditional
6315 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6317 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6318 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6319 (avr_info_to_howto_rela): Likewise.
6320 (elf32_avr_gc_mark_hook): Likewise.
6321 (elf32_avr_gc_sweep_hook): Likewise.
6322 (elf32_avr_relocate_section): Likewise.
6324 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6326 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6327 an external symbol for a non-shared, non-relocatable link.
6329 2000-07-03 Nick Clifton <nickc@redhat.com>
6331 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6332 is an external symbol.
6333 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6336 2000-07-03 Kazu Hirata <kazu@hxi.com>
6338 * reloc16.c: Fix formatting.
6340 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6342 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6343 to add a new target for traditional mips i.e
6344 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6345 * configure.in: Likewise.
6346 * configure: Rebuild.
6347 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6349 (bfd_elf32_tradlittlemips_vec): Likewise.
6350 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6351 to see that elfNN_bed does not get redefined even if the target file
6352 is included twice for a chip. See elf32-mips.c.
6354 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6356 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6357 (CLEANFILES): Add DEPA.
6358 * Makefile.in: Regenerate.
6360 2000-06-30 DJ Delorie <dj@cygnus.com>
6362 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6363 can't assume the PE header is at 0x80.
6365 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6367 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6369 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6371 * go32stub.h: Update stub.
6373 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6375 * archures.c (bfd_mach_avr5): Define.
6376 * bfd-in2.h (bfd_mach_avr5): Define.
6377 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6378 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6379 (compatible): Update comment. Add missing test.
6380 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6381 for avr2 and avr4. Simplify 8K wrap code.
6382 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6383 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6385 2000-06-26 Kazu Hirata <kazu@hxi.com>
6387 * coff-h8300.c: Fix formatting.
6388 * cpu-h8300.c: Likewise.
6390 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6392 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6393 for local symbols whose names are unknown.
6395 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6397 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6399 * Makefile.in: Regenerate.
6400 * doc/Makefile.in: Regenerate.
6402 2000-06-20 H.J. Lu <hjl@gnu.org>
6404 * Makefile.am: Rebuild dependency.
6405 * Makefile.in: Rebuild.
6407 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6409 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6410 (elf_backend_copy_indirect_symbol): Map to the new function.
6412 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6414 * archive.c (normalize): Correct pointer comparison when checking
6416 (bfd_bsd_truncate_arname): Likewise.
6417 (bfd_gnu_truncate_arname): Likewise.
6419 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6421 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6422 sections elf_{text,data}_{section,symbol}.
6423 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6424 (_bfd_mips_elf_hide_symbol): New function.
6425 (elf_backend_hide_symbol): Map to the new function.
6426 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6427 definitions of mips_elf_{text,data}_{section,symbol}.
6428 (mips_elf_local_relocation_p): Try to find the direct symbol
6429 based on new check_forced argument.
6430 (mips_elf_calculate_relocation): Use new version of
6431 mips_elf_local_relocation_p.
6432 (mips_elf_relocate_section): Likewise.
6433 (_bfd_mips_elf_relocate_section): Likewise.
6434 (mips_elf_sort_hash_table): Only assert that have enough GOT
6436 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6437 entry if the relocation based on the new external argument.
6438 (mips_elf_create_dynamic_relocation): Assert that we have a
6439 section contents allocated where we can swap out the dynamic
6441 (mips_elf_calculate_relocation): Find the real hash-table entry
6442 correctly by using h->root.root.type. Only create a dynamic
6443 relocation entry if the symbol is defined in a shared library.
6444 Create an external GOT entry for the GOT16 relocation if the
6445 symbol was forced local.
6446 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6447 dynamic index if the symbol was forced local.
6449 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6451 * elf32-mips.c: Fix typos in comments.
6453 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6455 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6458 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6460 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6461 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6462 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6463 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6464 (bfd_elf32_m68hc11_vec): Likewise.
6465 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6466 Supports 68hc11 & 68hc12 at the same time.
6467 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6469 (bfd_elf32_m68hc11_vec): Likewise.
6470 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6471 * archures.c (bfd_m68hc12_arch): Define and register in global list
6472 (bfd_m68hc11_arch): Likewise.
6473 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6474 BFD_RELOC_M68HC11_3B): Define.
6475 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6476 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6478 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6480 * elf_bfd.h (struct elf_backend_data): Add info argument to
6481 elf_backend_hide_symbol.
6482 (_bfd_elf_link_hash_hide_symbol): Likewise.
6483 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6484 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6485 * elflink.h (elf_link_add_object_symbols): Likewise.
6486 (elf_link_assign_sym_version): Likewise.
6488 2000-06-18 H.J. Lu <hjl@gnu.org>
6490 * coff-i386.c (coff_i386_reloc): Don't return in case of
6491 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6492 Compensate PE relocations when linking with non-PE object
6493 files to generate a non-PE executable.
6495 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6497 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6498 GOT entries if we're doing a static link or -Bsymbolic link.
6500 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6502 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6503 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6505 (elf_link_output_relocs): Likewise.
6506 (elf_reloc_link_order): Likewise.
6508 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6510 * archures.c (enum bfd_architecture): #define constants for
6511 PowerPc and RS6000 machine numbers.
6512 * bfd-in2.h: Regenerate.
6513 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6514 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6515 and RS6000 machine numbers using #defined constants from
6517 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6518 machine numbers using #defined constants from archures.c. Add
6519 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6520 64-bit words in 620 entry.
6521 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6523 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6525 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6527 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6528 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6529 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6531 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6533 * bfd-in.h (bfd_family_coff): Define.
6534 * bfd-in2.h: Regenerate.
6535 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6536 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6537 instead of bfd_target_coff_flavour.
6538 * cofflink.c (_bfd_coff_final_link): Likewise.
6539 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6540 exclude XCOFF files.
6541 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6543 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6544 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6545 * xcofflink.c (XCOFF_XVECP): Delete.
6546 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6547 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6548 bfd_xcoff_record_link_assignment,
6549 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6550 check for bfd_target_xcoff_flavour.
6552 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6554 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6556 (read_hdr): New function.
6557 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6558 of trying to extract individual registers. Set abfd->arch_info
6559 to match the architecture that created the core file.
6560 (rs6000coff_get_section_contents): Delete.
6561 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6563 2000-06-14 H.J. Lu <hjl@gnu.org>
6565 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6568 2000-06-13 H.J. Lu <hjl@gnu.org>
6570 * configure: Regenerate.
6572 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6574 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6577 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6579 * configure.in (VERSION): Update to show this is the CVS mainline.
6581 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6583 * elf32-d10v.c: Include elf/d10v.h
6584 (enum reloc_type): Delete.
6585 * elf32-d30v.c: Include elf/d30v.h
6586 (enum reloc_type): Delete.
6588 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6589 * Makefile.in: Regenerate.
6591 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6592 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6593 move HOWTOs into elf_howto_table.
6594 (R_386_standard, R_386_ext_offset): Define.
6595 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6596 (elf_i386_reloc_type_lookup): Modify calculation of index into
6597 elf_howto_table since we've removed the padding.
6598 (elf_i386_info_to_howto_rel): Likewise.
6599 (elf_i386_relocate_section): Likewise.
6601 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6603 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6605 2000-06-05 H.J. Lu <hjl@gnu.org>
6607 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6608 an error when seeing an undefined symbol with hidden/internal
6609 attribute. It is handled in *_relocate_section ().
6611 2000-06-05 H.J. Lu <hjl@gnu.org>
6613 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6614 indirect symbol for the ELF_LINK_NON_ELF bit.
6615 (elf_link_output_extsym): Don't output the indirect symbol even
6616 if the ELF_LINK_NON_ELF bit is set.
6618 2000-06-01 J.T. Conklin <jtc@redback.com>
6620 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6621 (i[3456]86-*-netbsdaout*): New target.
6622 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6623 (i[3456]86-*-openbsd*): Likewise.
6625 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6627 * trad-core.c: From hpux-core.c, include <dirent.h> or
6628 <sys/ndir.h> when possible.
6630 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6632 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6633 definitions. We must not assume they are sorted in the file
6634 according to their index numbers.
6636 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6638 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6639 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6640 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6642 2000-05-30 Nick Clifton <nickc@cygnus.com>
6644 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6645 80960CA, 80960MC as valid machine names.
6647 2000-05-30 H.J. Lu <hjl@gnu.org>
6649 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6650 visibility bits if the symbol is undefined. Correctly handle
6651 weak undefined symbols with hidden and internal attributes.
6653 * elflink.h (elf_link_add_object_symbols): Always turn the
6654 symbol into local if it has the hidden or internal attribute.
6656 2000-05-29 Philip Blundell <philb@gnu.org>
6658 * ppcboot.c: Add packed attribute if compiling with GCC.
6660 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6662 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6664 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6666 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6667 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6668 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6671 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6673 * Makefile.am: Update dependencies with "make dep-am"
6674 * Makefile.in: Regenerate.
6676 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6677 bindtextdomain): Replace defines with those from intl/libgettext.h
6678 to quieten gcc warnings.
6680 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6682 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6684 * archive.c (normalize, bfd_bsd_truncate_arname,
6685 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6686 file names with backslashes.
6688 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6691 * sysdep.h: Include filenames.h.
6693 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6695 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6697 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6699 * elf64-sparc.c (sparc64_elf_relax_section): New.
6700 (sparc64_elf_relocate_section): Optimize tail call into branch always
6702 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6703 (elf32_sparc_relax_section): New.
6705 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6707 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6708 Remove unusued variables.
6709 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6710 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6711 previous fix, so that shared libs really don't influence targets
6712 extension mask and memory model.
6714 2000-05-23 H.J. Lu <hjl@gnu.org>
6716 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6717 h->root.other not h->other.
6718 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6720 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6722 2000-05-23 H.J. Lu <hjl@gnu.org>
6724 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6725 undefined symbol with the non-default visibility attributes.
6726 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6727 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6728 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6729 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6730 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6731 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6732 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6733 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6734 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6735 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6736 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6738 2000-05-22 Richard Henderson <rth@cygnus.com>
6740 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6741 PCREL22, PCREL64I. Zero size of special relocs.
6742 (elf64_ia64_reloc_type_lookup): Likewise.
6743 (USE_BRL, oor_brl, oor_ip): New.
6744 (elf64_ia64_relax_section): New.
6745 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6746 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6747 (elf64_ia64_relocate_section): Likewise.
6748 (bfd_elf64_bfd_relax_section): New.
6749 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6750 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6751 * bfd-in2.h, libbfd.h: Regenerate.
6753 2000-05-22 Nick Clifton <nickc@cygnus.com>
6755 * configure.in : Add peigen.lo to MIPS PE targets.
6756 * configure: Regenerate.
6758 2000-05-22 Momchil Velikov <velco@fadata.bg>
6760 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6761 only if it is known for both input and output bfds. Separate
6762 error message strings as in some languages, it may be necessary
6763 to change more than one place in the string to change between
6766 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6767 endianess checks, call _bfd_generic_verify_endian_match() instead.
6769 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6771 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6773 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6774 endianess before checking bfd flavours.
6776 2000-05-22 H.J. Lu <hjl@gnu.org>
6778 * elflink.h (elf_link_output_extsym): Clear the visibility
6779 field for symbols not defined locally.
6781 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6783 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6784 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6785 (hppa_rebuild_insn): Mask immediate bits here instead.
6786 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6788 2000-05-18 Momchil Velikov <velco@fadata.bg>
6790 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6791 relocs for an executable, ensure that they are virtual addresses.
6793 2000-05-18 Jeffrey A Law (law@cygnus.com)
6795 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6797 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6798 Rick Gorton <gorton@scrugs.lkg.dec.com>
6800 * elflink.h: Add emitrelocations support: when enabled, relocation
6801 information and relocation sections are put into final output
6802 executables. If the emitrelocations flag is set, do the following:
6803 (elf_bfd_final_link): Emit relocation sections.
6804 (elf_link_input_bfd): Compute relocation section contents.
6805 (elf_gc_sections): Don't clean relocation sections.
6807 2000-05-16 Catherine Moore <clm@cygnus.com>
6809 * som.c (som_decode_symclass): Recognize weak symbols.
6811 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6813 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6814 read idata section only from dataoff.
6815 (pe_print_edata): Correctly check for valid eat_member.
6817 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6819 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6821 2000-05-14 Philip Blundell <philb@gnu.org>
6823 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6825 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6827 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6829 * peigen.c (pe_print_idata): Look for .idata section and print
6830 info even if data directory has zero entries. Read idata section
6831 starting from dataoff, and adjust all data offsets to suit. Cast
6832 all bfd_vma vars to unsigned long before passing to fprintf.
6833 * peigen.c (pe_print_edata): Similarly, look for .edata section
6834 and print info even if data directory has zero entries. Cast
6835 all bfd_vma vars to unsigned long before passing to fprintf.
6837 From Szabolcs Szakacsits <szaka@F-Secure.com>
6838 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6839 directory size which may be bogus.
6840 * peigen.c (pe_print_edata): Similarly.
6842 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6844 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6846 (copy_private_bfd_data): Allow for space possibly taken up by elf
6847 headers when calculating segment physical address from lma.
6849 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6851 * versados.c (versados_scan): Init stringlen and pass_2_done.
6853 * trad-core.c (trad_unix_core_file_p): Return
6854 bfd_error_wrong_format rather than bfd_error_file_truncated.
6856 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6857 add_data_entry. DataDirectory virtual address is relative.
6858 (pe_print_idata): Account for relative DataDirectory virtual
6859 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6860 (pe_print_edata): Similarly.
6862 From Szabolcs Szakacsits <szaka@F-Secure.com>
6863 * peigen.c (dir_names): Add Delay Import Directory.
6864 (pe_print_idata): Always search for bfd section containing
6865 idata address rather than looking up section name. Print this
6866 section name rather than .idata.
6867 (pe_print_edata): Similarly. Also print some fields as %08lx.
6868 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6871 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6873 * xcoff.h: Rename to xcoff-target.h
6874 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6875 * coff-rs6000.c: Ditto.
6876 * coff64-rs6000.c: Ditto.
6877 * coff-pmac.c: Ditto.
6878 * Makefile.in: Regenerate.
6880 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6882 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6883 Change U802TOC64MAGIC to U803XTOCMAGIC.
6885 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6887 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6888 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6889 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6891 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6893 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6895 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6897 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6898 hidden and internal symbols.
6899 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6901 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6902 assign a PLT or GOT entry to symbols with hidden and
6903 internal visibility.
6905 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6907 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6909 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6911 2000-05-02 H.J. Lu <hjl@gnu.org>
6913 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6916 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6918 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6919 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6921 * Makefile.in: Regenerate.
6923 2000-05-01 Jim Wilson <wilson@cygnus.com>
6925 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6926 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6927 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6928 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6929 * Makefile.in: Rebuild.
6931 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6933 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6934 doesn't work very well.
6936 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6937 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6938 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6939 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6940 (elf_hppa_info_to_howto): Likewise.
6941 (elf_hppa_info_to_howto_rel): Likewise.
6942 (elf_hppa_reloc_type_lookup): Likewise.
6943 (elf_hppa_is_local_label_name): Likewise.
6944 (elf_hppa_fake_sections): Likewise.
6945 (elf_hppa_final_write_processing): Likewise.
6946 (elf_hppa_howto_table): Fully initialise all entries.
6947 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6948 (elf_hppa_info_to_howto): Likewise.
6949 (elf_hppa_info_to_howto_rel): Likewise.
6950 (elf_hppa_reloc_type_lookup): Likewise.
6951 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6952 elf_hppa_unmark_useless_dynamic_symbols,
6953 elf_hppa_remark_useless_dynamic_symbols,
6954 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6955 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6956 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6957 elf32-hppa.c mess is cleaned up.
6958 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6959 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6960 r_field then call hppa_field_adjust inline func with variable
6961 r_field arg, instead call hppa_field_adjust with fixed arg.
6962 In case R_PARISC_PCREL22F, don't set r_field.
6963 (elf_hppa_relocate_insn): Change args and return type to unsigned
6964 int. Call re_assemble_* funcs to do the work.
6966 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6969 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6971 (sign_extend): Mask first before sign extending.
6972 (low_sign_extend): Rewrite without condition expression.
6973 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6974 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6975 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6976 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6977 result as function return value rather than through pointer arg.
6978 Accept unsigned int args, and return unsigned int.
6979 (re_assemble_3): New. Combines function of dis_assemble_3 with
6980 re-assembly of opcode and immediate.
6981 (re_assemble_12): Likewise.
6982 (re_assemble_16): Likewise.
6983 (re_assemble_17): Likewise.
6984 (re_assemble_21): Likewise.
6985 (re_assemble_22): Likewise.
6986 (hppa_field_adjust): Rewrite and document, paying attention to
6987 size of types and signed/unsigned issues.
6988 (get_opcode): Shift before masking.
6989 (FDLW): Rename to FLDW.
6990 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6991 (hppa_rebuild_insn): Change args and return value to unsigned
6992 int. Make use of re_assemble_*. Correct case 11.
6994 * dep-in.sed: Handle ../opcodes/.
6995 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6996 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6997 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6998 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6999 elfarm-nabi.lo dependencies outside of auto-dependency area.
7000 Regenerate dependencies.
7001 * Makefile.in: Regenerate.
7003 * configure.in (TRAD_HEADER): Test non-null before
7005 * configure: Regenerate.
7007 * reloc.c: Fix mis-spelling in comment.
7009 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7011 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7012 * vms.c (vms_openr_next_archived_file): Return NULL.
7014 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7016 * coffcode.h Copy changes mistakenly done to libcoff.h in
7019 2000-04-29 Andreas Jaeger <aj@suse.de>
7021 * libbfd-in.h: Correctly check GCC version.
7022 * bfd-in.h: Likewise.
7023 * libhppa.h: Likewise.
7024 * libbfd.h: Regenerate.
7025 * bfd-in2.h: Regenerate.
7027 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7029 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7030 coffdu-rs6000.{lo,c}.
7031 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7033 * Makefile.in: Regenerate.
7034 * xcoff.h: New file.
7035 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7036 * coff-rs6000.c: Move all declarations and defines that are
7037 common to the xcoff backends into xcoff.h
7038 * coff64-rs6000.c: Ditto,
7040 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7042 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7043 _bfd_coff_force_symnames in strings and
7044 _bfd_coff_debug_string_prefix_length to their default values.
7045 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7047 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7049 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7050 _bfd_coff_force_symnames in strings and
7051 _bfd_coff_debug_string_prefix_length to their default values.
7053 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7055 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7056 Check local_got_refcounts before dereferencing.
7058 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7059 before deciding we don't need R_PPC_PLT32 relocation.
7060 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7063 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7065 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7067 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7068 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7069 (elf_i386_relocate_section): Allow for .plt to go missing.
7070 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7071 can use a relative reloc for got as elf_i386_relocate_section.
7072 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7074 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7076 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7078 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7080 * Makefile.am (coff64-rs6000.lo): New rule.
7081 * Makefile.in: Regenerate.
7082 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7083 xcoff_is_local_label_name, xcoff_rtype2howto,
7084 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7085 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7086 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7087 (NO_COFF_SYMBOLS): Define.
7088 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7089 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7091 (MINUS_ONE): New macro.
7092 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7094 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7095 coff_SWAP_aux_out): Map to the new functions.
7096 * coff64-rs6000.c: New file.
7097 * libcoff.h (bfd_coff_backend_data): Add new fields
7098 _bfd_coff_force_symnames_in_strings and
7099 _bfd_coff_debug_string_prefix_length.
7100 (bfd_coff_force_symnames_in_strings,
7101 bfd_coff_debug_string_prefix_length): New macros for above fields.
7102 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7103 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7104 of using coff_swap_sym_in directly.
7105 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7106 (coff_set_flags) Set magic for XCOFF64.
7107 (coff_compute_section_file_positions): Add symbol name length to
7108 string section length if bfd_coff_debug_string_prefix_length is
7110 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7111 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7112 using coff_swap_lineno_in directly.
7113 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7114 and _bfd_coff_debug_string_prefix_length fields.
7115 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7116 symbol names into strings table when
7117 bfd_coff_force_symnames_in_strings is true.
7118 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7119 SET_RELOC_VADDR): New macros.
7120 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7121 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7123 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7124 changes within RS6000COFF_C specific code.
7125 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7126 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7127 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7128 Extend existing hack on target name.
7129 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7131 * coff-tic54x.c (ticof): Keep up to date with new fields
7132 in bfd_coff_backend_data.
7133 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7134 targ_selvecs to include rs6000coff64_vec for rs6000.
7135 * configure.in: Add rs6000coff64_vec case.
7136 * cpu-powerpc.c: New bfd_arch_info_type.
7138 2000-04-24 Jeffrey A Law (law@cygnus.com)
7140 * config.bfd: Only disable elf32-hppa vectors, not all of the
7141 BSD and OSF configuration support. Provide (disabled) clauses
7143 * configure.in: Add clause for PA64 support.
7144 * configure: Rebuilt.
7146 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7147 (bfd_elf64_hppa_vec): Declare.
7149 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7150 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7151 (elf64-hppa.lo): Add dependencies.
7152 * Makefile.in: Rebuilt.
7154 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7156 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7158 * libhppa.h (dis_assemble_16): New function.
7159 (pa_arch): Added pa20w element.
7161 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7163 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7164 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7165 bfd_elf64_slurp_reloc_table.
7167 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7168 definitions to get external names.
7169 (elf_write_relocs): Renamed from write_relocs and make global.
7170 (elf_slurp_reloc_table): Make global.
7171 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7173 * archive.c (hpux_uid_gid_encode): New function.
7174 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7175 defined and the ID is greater than 99999.
7176 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7177 special uid/gid fields into 32 bit values.
7179 2000-04-21 Matthew Green <mrg@cygnus.com>
7181 * config.bfd: Add NetBSD/sparc64 support.
7183 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7184 David Mosberger <davidm@hpl.hp.com>
7185 Timothy Wall <twall@cygnus.com>
7186 Jim Wilson <wilson@cygnus.com>
7188 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7189 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7190 (BFD64_BACKENDS): Add elf64-ia64.lo.
7191 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7192 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7193 * Makefile.in: Rebuild.
7194 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7195 (bfd_ia64_arch): Declare.
7196 (bfd_archures_list): Add bfd_ia64_arch.
7197 * bfd-in2.h: Rebuild.
7198 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7199 * configure: Rebuild.
7200 * configure.host: (ia64-*-linux*): New host.
7201 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7202 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7203 * elf.c (prep_headers): Add bfd_arch_ia64.
7204 * libbfd.h: Rebuild.
7205 * reloc.c: Add IA-64 relocations.
7206 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7208 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7209 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7211 2000-04-21 Richard Henderson <rth@cygnus.com>
7213 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7214 contents when performing a partial link.
7215 (bfd_elf_d30v_reloc_21): Likewise.
7217 2000-04-20 H.J. Lu <hjl@gnu.org>
7219 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7220 patch to symbols defined by a shared object.
7221 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7223 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7226 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7227 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7229 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7231 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7232 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7233 (coff-ia64.lo): Add dependency.
7234 * Makefile.in: Regenerate.
7235 * coff-ia64.c: New file.
7236 * efi-app-ia32.c: Ditto.
7237 * efi-app-ia64.c: Ditto.
7238 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7239 (coff_set_flags): Ditto.
7240 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7241 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7242 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7243 * configure: Regenerate.
7244 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7245 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7246 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7247 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7248 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7249 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7250 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7251 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7252 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7253 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7254 (GET_PDATA_ENTRY): Ditto.
7255 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7256 data_start. Use above macros to read fields that are 64 bit wide for
7257 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7258 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7259 FileAlignment and SectionAlignment to minimum alignment if they
7261 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7262 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7263 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7264 Use above macros to write fields that are 64 bit wide for
7266 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7267 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7268 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7269 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7270 begin address, end address, and unwind info address only. Use
7271 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7273 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7274 HIGH3ADJ relocation names.
7275 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7276 * targets.c: Declare bfd_efi_app_ia32_vec and
7277 bfd_efi_app_ia64_vec.
7278 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7279 bfd_efi_app_ia64_vec.
7281 2000-04-17 Timothy Wall <twall@cygnus.com>
7283 * bfd-in2.h: Add prototypes for tic54x load page access.
7284 * bfd-in.h: Regenerate.
7285 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7286 in customized _set_arch_mach function.
7287 * coffcode.h (coff_set_alignment_hook): Set section load page if
7288 the appropriate macro is defined.
7289 (write_object_contents): Read section load page.
7291 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7293 * elf32-hppa.h: Update copyright date.
7295 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7296 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7298 * elf32-d30v.c (MAX32): Don't use LL suffix.
7299 (MIN32): Define in terms of MAX32.
7300 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7302 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7305 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7307 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7309 * dep-in.sed: Match space before file name, not after.
7310 * Makefile.am: Regenerate dependencies.
7311 * Makefile.in: Regenerate.
7313 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7314 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7315 extend without an if statement.
7317 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7319 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7321 * elf32-mips.c (gprel16_with_gp): Likewise.
7322 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7323 here using -0x40000, not (int)0xfffc0000.
7324 (elf32_hppa_size_of_stub): Likewise.
7326 2000-04-11 Timothy Wall <twall@cygnus.com>
7328 * coff-tic54x.c: Now builds with all targets.
7329 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7330 * Makefile.in: Regenerate.
7331 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7332 unitialized variable.
7334 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7336 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7337 --enable-build-warnings option.
7338 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7339 * Makefile.in, configure: Re-generate.
7341 2000-04-07 Nick Clifton <nickc@cygnus.com>
7343 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7344 BFD_RELOC_THUMB_PCREL_BLX.
7346 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7347 R_ARM_XPC25 and R_ARM_THM_PC22.
7349 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7350 R_ARM_XPC25 and R_ARM_THM_XPC22.
7351 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7352 R_ARM_[XPC25|THM_XPC22].
7354 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7355 elf/arm-oabi.h to elf/arm.h
7357 * Makefile.am: Fix dependency for elfarm-oabi.c
7358 * Makefile.in: Regenerate.
7360 * bfd-in2.h: Regenerate.
7361 * libbfd.h: Regenerate.
7363 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7365 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7366 and restore it on failure. Release newly allocated tdata on
7369 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7371 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7372 (decode_line_info): Set it. Report error if unit->line_offset is
7373 equal to or larger than it.
7375 2000-04-07 Timothy Wall <twall@cygnus.com>
7377 * targets.c: Added vecs for tic54x.
7378 * reloc.c: Added relocs for tic54x.
7379 * libbfd.h: Regenerated.
7380 * configure: Add TI COFF vecs for tic54x.
7381 * configure.in: Ditto.
7382 * config.bfd (targ_cpu): Recognize new tic54x target.
7383 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7384 * bfd-in2.h: Add tic54x target and relocations.
7385 * Makefile.am, Makefile.in: Add tic54x target.
7386 * archures.c (bfd_archures_list): Add tic54x target.
7387 * coff-tic54x.c: New.
7388 * cpu-tic54x.c: New.
7390 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7392 * elfcore.h (elf_core_file_p): call backend_object_p which
7393 thereby gets an opportunity to update the arch/machine type.
7395 2000-04-06 Timothy Wall <twall@cygnus.com>
7397 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7398 class. Handle SEC_CLINK and SEC_BLOCK flags.
7399 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7400 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7402 2000-04-06 Nick Clifton <nickc@cygnus.com>
7404 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7405 EF_INTERWORK if this is an unknown EABI.
7406 (elf32_arm_merge_private_bfd_data): Check EABI version
7407 numbers. Only check EF_xxx flags if the EABI version number
7409 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7410 if the EABI version number is unknown.
7411 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7412 if the EABI version number is unknown.
7414 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7416 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7417 BFD_RELOC_SH_LOOP_END.
7418 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7419 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7420 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7421 (sh_elf_reloc_loop): New function.
7422 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7424 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7425 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7426 * bfd-in2.h, libbfd.h: Regenerate.
7428 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7430 * po/bfd.pot: Regenerate.
7432 * Makefile.am: Remove extraneous mkdep comment.
7433 (MKDEP): Use gcc -MM rather than mkdep.
7434 (DEP): Quote when passing vars to sub-make. Add warning
7436 (DEP1): Rewrite for "gcc -MM".
7437 (CLEANFILES): Add DEP2.
7438 Update dependencies.
7439 * Makefile.in: Regenerate.
7441 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7443 * configure.in: Added corefile support for AIX 4.3. In particular,
7444 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7445 compiling rs6000-core.c.
7446 * configure: Regenerated.
7448 2000-04-03 H.J. Lu <hjl@gnu.org>
7450 * cache.c (bfd_open_file): Unlink the output file only if
7451 it has non-zero size.
7453 2000-04-01 Ken Block USG <block@zk3.dec.com>
7455 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7456 relative relocations for non-loaded sections in shared objects.
7457 (elf64_alpha_check_relocs): Similarly.
7459 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7461 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7462 BFD_RELOC_16 to switch for extended relocs.
7463 (MY_swap_ext_reloc_in): New.
7464 (MY_swap_ext_reloc_out): New.
7465 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7466 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7467 (NAME(aout,squirt_out_relocs)): Similarly use
7468 MY_swap_ext_reloc_out.
7469 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7471 2000-04-03 Kazu Hirata <kazu@hxi.com>
7473 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7474 the R_PCRWORD_B case.
7476 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7478 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7482 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7484 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7485 HOWTO references to bfd_elf_generic_reloc, that have
7486 partial_inplace == true, now use the new function. The function
7487 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7488 extends its fixes to the R_M32R_{16,24,32} relocs.
7489 The new logic in m32r_elf_lo16_reloc() has been removed, and
7490 it instead calls the new routine to obtain that functionality.
7492 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7494 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7495 elf32_avr_check_relocs, avr_final_link_relocate,
7496 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7497 elf32_avr_object_p): Add prototypes.
7498 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7499 (bfd_elf_avr_final_write_processing): Make static.
7501 2000-03-27 Denis Chertykov <denisc@overta.ru>
7503 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7504 * archures.c (bfd_architecture): Add AVR architecture.
7505 (bfd_archures_list): Add reference to AVR architecture info.
7506 * elf.c (prep_headers): Handle bfd_arch_avr.
7507 * reloc.c: Add various AVR relocation enums.
7508 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7510 * Makefile.am: Add support for AVR elf.
7511 * configure.in: Likewise.
7512 * config.bfd: Likewise.
7513 * Makefile.in: Regenerate.
7514 * configure: This too.
7515 * bfd-in2.h: And this.
7516 * libbfd.h: And this.
7518 2000-03-24 H.J. Lu <hjl@gnu.org>
7520 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7521 (elf64_alpha_find_reloc_at_ofs): Likewise.
7523 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7525 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7526 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7527 allowable range used to be -2**(n-1) to 2**n-1.
7528 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7529 "boolean overflow" with "bfd_reloc_status_type flag".
7531 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7533 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7535 2000-03-14 Kazu Hirata <kazu@hxi.com>
7537 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7538 of shrinks properly, including the last reloc.
7540 2000-03-13 Kazu Hirata <kazu@hxi.com>
7542 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7545 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7547 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7548 a format mismatch rather than an "error" from bfd_read such as
7549 bfd_error_file_truncated.
7551 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7553 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7554 sign-extension and big-endian compensation for
7555 R_MIPS_64 even in ld -r.
7557 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7559 * elf32-mips.c (mips_elf_next_relocation): Rename from
7560 mips_elf_next_lo16_relocation, and generalize to look
7561 for any relocation type.
7562 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7563 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7564 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7565 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7566 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7567 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7568 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7569 (mips_rtype_to_howto): Likewise.
7570 (mips_elf_calculate_relocation): Handle new relocs.
7571 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7572 are paired. The addend for R_MIPS_GNU_REL16_S2
7573 is shifted right two bits.
7575 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7577 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7578 comment, and ensure it doesn't happen again.
7579 (bfd_install_relocation): Same here.
7580 (_bfd_relocate_contents): Don't bother assigning unused signmask
7581 shift result. Fix typos in comments.
7582 Remove trailing whitespace throughout file.
7584 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7586 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7587 * bfd-in2.h: Rebuild.
7589 2000-03-06 Nick Clifton <nickc@cygnus.com>
7591 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7593 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7594 (SIZEOF_ILF_STRINGS): Redefine.
7595 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7596 relative reloc, as opposed to a section relative reloc.
7597 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7599 Add length of symbol's prefix to string pointer.
7600 Store a pointer to the symbol in the symbol pointer table.
7601 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7602 Initialise the symbol pointer table.
7603 Store the hint in the Hint/Name table.
7604 Make the jump reloc be symbol realtive, not section relative.
7605 Create an import symbol for imported code.
7607 2000-03-06 Catherine Moore <clm@cygnus.com>
7609 * elf.c (swap_out_syms): Check for null type_ptr.
7611 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7613 * aout-target.h (MY(write_object_contents)): Remove unused
7614 and unusable "#if CHOOSE_RELOC_SIZE".
7615 * pc532-mach.c (MY(write_object_contents)): Ditto.
7616 * netbsd.h (MY(write_object_contents)): Ditto.
7617 * hp300hpux.c (MY(write_object_contents)): Ditto.
7618 * freebsd.h (MY(write_object_contents)): Ditto.
7619 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7621 2000-02-29 H.J. Lu <hjl@gnu.org>
7623 * peicode.h (jtab): Make it static.
7625 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7626 defined and COFF_IMAGE_WITH_PE is not defined.
7627 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7628 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7630 2000-03-01 Nick Clifton <nickc@cygnus.com>
7632 * coff-arm.c (bfd_arm_process_before_allocation): Make
7633 'symndx' signed to prevent compile time warning.
7635 * coff-mcore.c: Remove unused prototype for pe_object_p.
7637 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7638 functions that are not used when COFF_IMAGE_WITH_PE is
7640 (struct sh_opcode): Change type of 'flags' field to unsigned
7641 long so that it can hold the USESAS flag.
7643 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7645 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7648 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7650 Remove unusued variables and code.
7651 (elf_backend_add_symbol_hook): Fix prototype.
7653 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7656 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7659 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7661 Remove unusued variables and code.
7662 (elf_backend_add_symbol_hook): Fix prototype.
7664 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7666 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7667 to unused function parameter.
7669 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7671 Use EMPTY_HOWTO to initialise empty howto slots.
7672 Remove unused variables.
7674 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7676 2000-03-01 H.J. Lu <hjl@gnu.org>
7678 * aoutx.h (aout_link_input_section_std): Pass "true" to
7679 the undefined_symbol callback.
7680 (aout_link_input_section_ext): Likewise.
7681 * bout.c (get_value): Likewise.
7682 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7683 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7685 (alpha_relocate_section): Likewise.
7686 * coff-arm.c (coff_arm_relocate_section): Likewise.
7687 * coff-i960.c (coff_i960_relocate_section): Likewise.
7688 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7689 * coff-mips.c (mips_relocate_section): Likewise.
7690 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7691 * coff-sh.c (sh_relocate_section): Likewise.
7692 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7693 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7694 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7695 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7696 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7697 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7698 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7699 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7700 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7701 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7702 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7703 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7704 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7705 * elflink.h (elf_link_output_extsym): Likewise.
7706 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7707 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7708 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7710 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7711 undefined_symbol callback when building shared library with
7712 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7714 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7715 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7716 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7717 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7718 (elf32_mips_get_relocated_section_content): Likewise.
7719 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7720 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7721 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7722 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7724 2000-02-28 Nick Clifton <nickc@cygnus.com>
7726 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7727 * Makefile.in: Regenerate.
7729 * configure.in: Add support for mips and sh pe vectors.
7730 * configure: regenerate.
7732 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7735 * targets.c: Add mips and sh pe vectors.
7737 * libpei.h (coff_final_link_postscript): Only define if not
7740 * coffcode.h: Add support for WinCE magic numbers.
7742 * peigen.c (pe_print_reloc): Update comment and rearrange
7743 appending of newline character.
7745 * peicode.h: Add support for Image Library Format.
7746 (pe_ILF_vars): Structure containing data used by ILF code.
7747 (pe_ILF_make_a_section): New function. Create a section based
7749 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7751 (pe_ILF_make_a_symbol): New function. Create a symbol based
7753 (pe_ILF_save_relocs): New function. Store the relocs created
7754 by pe_ILF_make_a_reloc in a section.
7755 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7757 (pe_ILF_object_p): New function. Return a bfd_target pointer
7759 (pe_bfd_object_p): If an ILF object is detected call
7760 pe_ILF_object_p on it.
7762 * coff-arm.c: Add support for WinCE relocs which are different
7763 from normal ARM COFF relocs.
7764 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7766 * coff-sh.c: Add support for sh-pe target.
7767 * pe-sh.c: New file. Support code for sh-pe target.
7768 * pei-sh.c: New file. Support code for sh-pe target.
7770 * pe-mips.c: New file. Support code for mips-pe target.
7771 * pei-mips.c: New file. Support code for mips-pe target.
7773 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7775 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7776 architecture if the object causing the bump is dynamic.
7777 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7778 and also don't it for memory ordering.
7779 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7781 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7783 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7784 calling bfd_get_section_size_before_reloc.
7785 (decode_line_info): Likewise.
7786 (_bfd_dwarf2_find_nearest_line): Likewise.
7788 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7790 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7791 name of the libtool directory.
7792 * Makefile.in: Rebuild.
7794 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7796 * som.c (SOM_HOWTO): Define.
7797 (som_hppa_howto_table): Use it.
7799 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7801 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7803 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7805 2000-02-24 Catherine Moore <clm@cygnus.com>
7807 * som.c (som_misc_symbol_info): Add field
7809 (som_bfd_derive_misc_symbol_info): Initialize
7811 (som_build_and_write_symbol_table): Keep track
7812 of secondary_def field.
7813 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7814 if secondary_def field is set.
7815 (som_bfd_ar_write_symbol_stuff): Initialize
7818 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7820 * dwarf2.c (read_address): Read 16-bits addresses.
7821 (parse_comp_unit): Accept addr_size == 2.
7823 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7825 * bfd-in.h: Update copyright date.
7827 2000-02-23 Linas Vepstas <linas@linas.org>
7829 * cpu-i370.c: New file.
7830 * elf32-i370.c: New file.
7831 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7832 (bfd_i370_arch): New.
7833 (bfd_archures_list): Add bfd_i370_arch.
7834 * elf.c (prep_headers): Add bfd_arch_i370.
7835 * Makefile.am: Add support for IBM 370 elf.
7836 * config.bfd: Likewise.
7837 * configure.in: Likewise.
7838 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7839 * reloc.c (bfd_reloc_code_type): Likewise.
7840 * targets.c: Likewise.
7842 * Makefile.in: Regenerate.
7843 * configure: Regenerate.
7844 * bfd-in2.h: Regenerate.
7846 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7848 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7849 invalid relocation types, and change them to R_386_NONE.
7851 2000-02-22 H.J. Lu <hjl@gnu.org>
7853 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7854 not defined, don't add a second ELF_VER_CHR.
7856 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7857 symbols converted to local symbols even when stripping all
7859 (elf_link_output_extsym): Process global symbols converted to
7860 local symbols even if they are being stripped.
7862 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7864 * archures.c (bfd_octets_per_byte): Return unsigned int.
7865 (bfd_arch_mach_octets_per_byte): Ditto.
7866 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7868 * section.c (bfd_get_section_size_before_reloc): Quell signed
7869 vs. unsigned comparison warning.
7870 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7871 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7872 change. What was I thinking?
7873 * bfd-in2.h: Regenerate.
7875 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7876 (elf_gc_sections): Same here.
7877 (elf_gc_common_finalize_got_offsets): And here.
7879 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7881 ELF HPPA doesn't work at present; remove it until it does.
7882 * config.bfd: Comment out setting targ_defvec to
7884 * Makefile.am: Rebuild dependencies.
7885 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7886 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7887 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7888 * Makefile.in: Rebuild.
7889 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7891 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7893 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7894 is no bfd_free(). Revert bfd_free part of previous change.
7896 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7898 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7900 (coff_compute_section_file_positions): Use bfd_free to pair
7902 (coff_write_object_contents): Likewise.
7904 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7905 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7907 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7909 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7910 (xcoff_ar_file_hdr_big): New structure.
7911 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7912 (xcoff_ar_hdr_big): New structure.
7913 (SIZEOF_AR_HDR_BIG): New macro.
7914 (xcoff_big_format_p): New macro.
7915 (xcoff_ardata_big): New macro.
7916 (arch_xhdr_big): New macro.
7917 (xcoff_slurp_armap): Handle large archives.
7918 (xcoff_archive_p): Detect large archives.
7919 (xcoff_read_ar_hdr): Handle large archives.
7920 (xcoff_openr_next_archived_file): Handle large archives.
7921 (xcoff_generic_stat_arch_elt): Handle large archives.
7922 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7923 (xcoff_write_armap_big): New function.
7924 (xcoff_write_armap): New function, dispatch to _old or _big.
7925 (xcoff_write_archive_contents_old): Rename from
7926 xcoff_write_archive_contents.
7927 (xcoff_write_archive_contents_big): New function.
7928 (xcoff_write_archive_contents): New function, dispatch to _old or
7931 2000-02-18 Richard Henderson <rth@cygnus.com>
7933 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7934 and hide_symbol members.
7935 (elf_link_hash_copy_indirect): Remove.
7936 (elf_link_hash_hide_symbol): Remove.
7937 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7938 and elf_backend_hide_symbol.
7939 (_bfd_elf_link_hash_copy_indirect): Declare.
7940 (_bfd_elf_link_hash_hide_symbol): Declare.
7941 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7942 (_bfd_elf_link_hash_hide_symbol): Likewise.
7943 (_bfd_elf_link_hash_table_init): Don't init killed members.
7944 * elflink.h (elf_link_add_object_symbols): Use the bed function
7945 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7946 (elf_link_assign_sym_version): Likewise.
7947 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7948 (elf_backend_hide_symbol): Likewise.
7949 (elfNN_bed): Update for new members.
7951 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7953 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7954 STACK_END_ADDR): Define for new core file format.
7955 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7956 for handling the vagaries of the various core file structures used
7957 by AIX over the years.
7958 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7959 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7960 core_dumpx structure.
7962 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7964 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7965 (bfd_mach_sh3_dsp): Likewise.
7966 (bfd_mach_sh4): Reinstate.
7967 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7968 * bfd-in2.h: Regenerate.
7969 * coff-sh.c (struct sh_opcode): flags is no longer short.
7970 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7971 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7972 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7973 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7974 (sh_opcodes): No longer const.
7975 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7976 (sh_insn_uses_reg): Check for USESAS and USESR8.
7977 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7978 (_bfd_sh_align_load_span): Return early for SH4.
7979 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7980 Take into account that field b of a parallel processing insn
7981 could be mistaken for a separate insn.
7982 * cpu-sh.c (arch_info_struct): New array elements for
7983 sh2, sh-dsp and sh3-dsp.
7984 Reinstate element for sh4.
7985 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7986 (SH4_NEXT): Reinstate.
7987 (SH3_NEXT, SH3E_NEXT): Adjust.
7988 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7989 * elf32-sh.c (sh_elf_set_private_flags): New function.
7990 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7991 (sh_elf_merge_private_data): New function.
7992 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7993 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7994 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7995 sh_elf_merge_private_data.
7997 2000-02-13 Richard Henderson <rth@cygnus.com>
7999 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8000 hide_symbol members.
8001 (elf_link_hash_copy_indirect): New.
8002 (elf_link_hash_hide_symbol): New.
8003 * elflink.h (elf_link_add_object_symbols): Break out copy from
8004 indirect new new symbol to elf.c.
8005 (elf_link_assign_sym_version): Break out privatization of
8006 non-exported symbol to elf.c.
8007 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8008 (_bfd_elf_link_hash_hide_symbol): New.
8009 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8011 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8013 * section.c (_bfd_strip_section_from_output): Add info parameter.
8014 If it passed as non-NULL, use it to check whether any input BFD
8015 has an input section which uses this output section. Change all
8017 * bfd-in2.h: Rebuild.
8019 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8020 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8022 * bfd-in2.h: Rebuild.
8024 2000-02-10 Timothy Wall <twall@cygnus.com>
8026 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8027 allow final modifications of swapped-in symbol.
8028 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8029 * coffcode.h (coff_write_relocs): Use macro
8030 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8031 symbol index should be set to -1.
8033 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8035 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8036 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8037 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8038 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8039 sh_insns_uses_or_sets_freg): New functions.
8040 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8041 * (sh_insns_conflict): Use new functions and new macros to
8042 detect conflicts when two instructions both set same integer registers,
8043 both set same fp register, and both set special register.
8045 2000-02-09 Timothy Wall <twall@cygnus.com>
8047 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8048 swapping in sections, so that the swapping routines have access to
8051 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8053 * coff-go32.c: Update comment. Update copyright.
8055 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8057 * syms.c (bfd_decode_symclass)
8058 Two new class characters were added - 'V' and 'v'. The
8059 meaning of 'W' is now restricted to just weak non-object
8060 symbols. This allows differentiation between, for example,
8061 weak functions vs weak objects. nm for example now dumps:
8063 'w' = weak unresolved
8064 'V' = weak global object
8065 'v' = weak unresolved object
8067 (bfd_is_undefined_symclass): New function. Return true if the
8068 given symbol class represents and undefined/unresolved symbol.
8070 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8073 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8075 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8076 STT_ARM_16BIT flag set, but it is not attached to a data object
8077 return STT_ARM_16BIT so that it will be treated as code by the
8080 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8082 * coff-i386.c (i3coff_object_p): Remove prototype.
8085 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8086 to name. Update copyright.
8088 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8089 assignment to avoid warning. Update copyright.
8091 2000-01-24 Robert Lipe (robertl@sco.com)
8093 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8094 instead of using GNU C extension.
8096 2000-01-21 Nick Clifton <nickc@cygnus.com>
8098 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8099 amount from a bfd_in_memory structure.
8100 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8103 2000-01-14 Nick Clifton <nickc@cygnus.com>
8105 * linker.c (default_indirect_link_order): oops - fix incorrectly
8106 applied patch from Tim Wall.
8108 2000-01-13 Timothy Wall (twall@tiac.net>
8110 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8111 = scnhsz, filhsz, relsz, aoutsz, etc)
8113 * coffswap.h: Ditto.
8115 2000-01-13 Nick Clifton <nickc@cygnus.com>
8117 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8118 interwork thumb to arm stub.
8120 2000-01-13 Timothy Wall (twall@tiac.net>
8122 * archures.c (bfd_octets_per_byte): New function: Return
8124 (bfd_arch_mach_octets_per_byte): New function: Return target
8127 * section.c: Distinguish between octets and bytes for usage of
8128 _cooked_size, _raw_size, and output_offset. Clarify
8129 description of bfd_set_section_contents.
8131 * bfd-in2.h: Regenerate.
8133 * coffgen.c: Indicate that the offset parameter is in bytes, not
8136 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8137 where appropriate to get the octet offset when calling
8138 bfd_set_section_contents.
8139 (bfd_coff_reloc_link_order): Ditto.
8141 * linker.c (bfd_generic_reloc_link_order): Ditto.
8142 (_bfd_default_link_order): Ditto.
8144 * reloc.c (bfd_perform_relocation): Distinguish between octets
8145 and bytes. Use octets when indexing into octet data; use bytes
8146 when calculating target addresses.
8147 (bfd_install_relocation): Ditto.
8149 * srec.c (srec_write_section): Ditto.
8151 2000-01-13 Nick Clifton <nickc@cygnus.com>
8153 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8154 3 to 2. This allows 4 byte sized sections, which is necessary for
8155 dlltool to build functioning DLLs.
8157 2000-01-10 Philip Blundell <pb@futuretv.com>
8159 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8160 (arm*-*-conix*): New target.
8162 2000-01-10 Egor Duda <deo@logos-m.ru>
8164 * config.bfd: Include elf32_i386 vector to target list for cygwin
8167 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8168 * configure.in: Test for structure win32_pstatus_t in
8170 * configure: Regenerate.
8172 * elf.c (elfcore_grok_win32pstatus): New function: process
8173 win32_pstatus_t notes in elf core file.
8174 (elfcore_grok_note): Detect win32_pstatus notes.
8176 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8178 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8180 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8181 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8183 For older changes see ChangeLog-9899
8189 version-control: never