1 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
4 Elf_Internal_Shdr.contents now that it's no longer a PTR.
5 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
6 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
7 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
8 * elf32-sh.c (sh_elf_relax_section): Likewise.
9 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
10 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
11 * elf.c (setup_group): Warning fixes.
12 * elflink.h (elf_link_sort_relocs): Likewise.
13 * pdp11.c (slurp_reloc_table): Likewise.
15 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
17 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
20 2001-10-15 H.J. Lu <hjl@gnu.org>
22 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
23 for relocations against discarded link-once section.
25 2001-10-15 Alan Modra <amodra@bigpond.net.au>
27 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
28 bfd_reloc_outofrange and similar errors.
30 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
31 rather than ind->weakdef.
32 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
33 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
34 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
35 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
36 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
38 2001-10-15 Alan Modra <amodra@bigpond.net.au>
41 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
42 counts for aliases instead of aborting.
43 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
44 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
46 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
47 to -1 for non-function symbols.
48 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
49 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
50 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
51 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
52 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
53 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
54 plt.offset instead of plt.refcount when setting to -1.
56 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
58 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
59 like R_ARM_PC24. Include reloc number in error message about
62 2001-10-10 Jakub Jelinek <jakub@redhat.com>
64 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
65 relocations against the same symbol in .rel{,a}.dyn section.
67 2001-10-10 Kazu Hirata <kazu@hxi.com>
69 * aout-encap.c: Fix comment typos.
71 * archive.c: Likewise.
73 * coff64-rs6000.c: Likewise.
74 * coffcode.h: Likewise.
75 * coffgen.c: Likewise.
76 * cofflink.c: Likewise.
77 * coff-mips.c: Likewise.
79 * elf32-m32r.c: Likewise.
80 * libcoff-in.h: Likewise.
81 * libecoff.h: Likewise.
82 * libxcoff.h: Likewise.
83 * nlm32-i386.c: Likewise.
85 * section.c: Likewise.
88 * bfd-in2.h: Regenerate.
89 * libcoff.h: Likewise.
91 2001-10-10 Alan Modra <amodra@bigpond.net.au>
93 * elf.c (elf_map_symbols): Don't create new section symbols; Use
94 existing section syms. Update comments.
95 (copy_private_bfd_data): Formatting fixes.
96 (elfcore_grok_win32pstatus): Likewise.
97 (swap_out_syms): Likewise. Remove unnecessary level of braces.
99 2001-10-09 Alan Modra <amodra@bigpond.net.au>
101 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
103 (elf_group_name): Define.
104 (elf_next_in_group): Define.
105 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
106 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
107 first member section; Instead use elf_next_in_group.
108 (bfd_section_from_shdr): Likewise.
109 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
111 2001-10-09 Alan Modra <amodra@bigpond.net.au>
113 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
114 "next_in_group". Fix gp and gp_size comments.
115 * elf.c (union elf_internal_group): New.
116 (setup_group): New function.
117 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
118 Call setup_group for SHF_GROUP sections.
119 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
120 (elf_fake_sections): Set header type for SEC_GROUP, and header
121 flags for sections in a group.
122 (set_group_contents): New function.
123 (_bfd_elf_compute_section_file_positions): Call it.
124 (assign_section_numbers): Set sh_link for SHT_GROUP.
126 * elflink.h (gc_mark_hook): Handle section groups.
127 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
128 * section.c (SEC_GROUP): Define.
129 (struct sec): Comment fixes.
130 * bfd-in2.h: Regenerate.
132 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
133 out of function args.
134 (_bfd_elf_canonicalize_reloc): Similarly.
135 (_bfd_elf_get_symtab): Here too.
136 (_bfd_elf_canonicalize_dynamic_symtab): And here.
137 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
138 bfd_bread, and remove unnecessary cast.
140 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
142 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
144 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
146 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
149 2001-10-06 Alan Modra <amodra@bigpond.net.au>
151 * bfd.c (bfd_assert): Report bfd version.
152 (_bfd_abort): Likewise.
154 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
155 section sym values. Instead replace any relocs against them with
156 relocs against STN_UNDEF, which has a zero value.
158 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
161 2001-10-05 Jeff Law <law@redhat.com>
163 * som.h (som_exec_data): New field "version_id".
164 * som.c (som_object_setup): Record the version_id if it
166 (som_prep_headers): Do not initialize version_id here.
167 (som_finish_writing): Initialize version_id here.
169 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
171 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
172 according to the MIPS/SGI ELF64 ABI Draft.
173 (mips_elf_sort_hash_table): Typo.
175 2001-10-04 Alan Modra <amodra@bigpond.net.au>
177 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
179 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
180 copying flags if this is a weakdef.
182 2001-10-04 Alan Modra <amodra@bigpond.net.au>
184 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
187 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
188 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
189 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
191 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
192 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
193 backends we configure. Run "make dep-am".
194 (install-data-local): Install symcat.h.
195 * dep-in.sed: Remove symcat.h from dependencies.
196 * Makefile.in: Regenerate.
198 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
200 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
202 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
204 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
205 (elf_backend_default_use_rela_p): New define.
207 2001-10-03 Alan Modra <amodra@bigpond.net.au>
209 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
212 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
213 * configure: Regenerate.
214 * Makefile.am (BFD_H_FILES): Add version.h.
215 * Makefile.in: Regenerate.
216 * po/SRC-POTFILES.in: Regenerate.
218 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
219 elf_backend_copy_indirect_symbol so that backend has a chance to
220 copy other necessary fields.
221 * elf-bfd.h (struct elf_backend_data): Update description of
222 elf_backend_copy_indirect_symbol.
223 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
224 copying flags if this is a weakdef.
225 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
226 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
227 than bfd_link_hash_lookup.
228 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
229 reloc processing for weakdefs.
230 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
231 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
233 2001-10-02 Alan Modra <amodra@bigpond.net.au>
235 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
236 result of ELF64_R_TYPE to enum before using in a switch.
237 (ppc64_elf_gc_mark_hook): Likewise.
238 (ppc64_elf_gc_sweep_hook): Likewise.
239 (ppc64_elf_reloc_type_class): Likewise.
241 2001-10-02 Alan Modra <amodra@bigpond.net.au>
243 * version.h: New file.
244 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
245 (BFD_VERSION_DATE): Define.
246 (BFD_VERSION_STRING): Define.
247 * configure.in: AC_SUBST bfd_version, bfd_version_date and
249 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
250 * bfd-in2.h: Regenerate.
251 * configure: Regenerate.
252 * Makefile.am: Run "make dep-am".
253 * Makefile.in: Regenerate.
255 * bfd-in.h: Include "symcat.h".
256 (CONCAT4): Redefine as for old CAT4.
257 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
258 Add warning regarding whitespace.
259 * aout-cris.c: Likewise.
260 * aout-ns32k.c: Likewise.
261 * aout-sparcle.c: Likewise.
262 * aout-tic30.c: Likewise.
264 * armnetbsd.c: Likewise.
265 * demo64.c: Likewise.
266 * elf-bfd.h: Likewise.
267 * gen-aout.c: Likewise.
268 * host-aout.c: Likewise.
269 * hp300bsd.c: Likewise.
270 * hp300hpux.c: Likewise.
271 * i386aout.c: Likewise.
272 * i386bsd.c: Likewise.
273 * i386dynix.c: Likewise.
274 * i386freebsd.c: Likewise.
275 * i386linux.c: Likewise.
276 * i386lynx.c: Likewise.
277 * i386mach3.c: Likewise.
278 * i386netbsd.c: Likewise.
279 * libaout.h: Likewise.
280 * m68k4knetbsd.c: Likewise.
281 * m68klinux.c: Likewise.
282 * m68klynx.c: Likewise.
283 * m68knetbsd.c: Likewise.
284 * m88kmach3.c: Likewise.
285 * mipsbsd.c: Likewise.
286 * newsos3.c: Likewise.
287 * ns32knetbsd.c: Likewise.
288 * pc532-mach.c: Likewise.
290 * riscix.c: Likewise.
291 * sparclinux.c: Likewise.
292 * sparclynx.c: Likewise.
293 * sparcnetbsd.c: Likewise.
295 * targets.c: Likewise.
296 * vaxnetbsd.c: Likewise.
297 * vms-hdr.c: Likewise.
299 2001-10-01 Alan Modra <amodra@bigpond.net.au>
301 * bfd-in.h: Remove comments regarding generated files.
302 * libbfd-in.h: Likewise.
303 * libcoff-in.h: Likewise.
304 * bfd-in2.h: Regenerate.
305 * libbfd.h: Likewise.
306 * libcoff.h: Likewise.
308 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
309 Hans-Peter Nilsson <hp@bitrange.com>
311 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
312 partial_inplace, matching assembler output. Set src_mask to
314 (sh_elf_relocate_section): Delete misplaced comment.
315 For relocatable linking against section symbol, call
316 _bfd_relocate_contents for partial_inplace relocs and adjust
317 rel->r_addend for others.
318 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
319 bfd_get_32, not at rel->r_addend.
321 2001-09-30 Alan Modra <amodra@bigpond.net.au>
323 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
324 the old dir refcount, so we indirectly set them to init_refcount.
325 Short-circuit asserts when we've just verified they are true.
327 2001-09-29 Alan Modra <amodra@bigpond.net.au>
329 * section.c (struct sec): Remove kept_section.
330 (STD_SECTION): Remove kept_section initialisation.
331 (bfd_make_section_anyway): Here too.
332 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
333 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
334 * elflink.h (elf_link_input_bfd): Set discarded link-once section
335 symbols to zero, and remove all code involved with kept_section
336 and tracking section symbol values.
337 * bfd-in2.h: Regenerate.
338 * configure.in: Bump version number.
339 * configure: Regenerate.
341 2001-09-29 Alan Modra <amodra@bigpond.net.au>
343 * elf64-ppc.c (struct ppc_dyn_relocs): New.
344 (IS_ABSOLUTE_RELOC): Define.
345 (struct ppc_link_hash_entry): New.
346 (struct ppc_link_hash_table): New.
347 (ppc_hash_table): Define.
348 (link_hash_newfunc): New function.
349 (ppc64_elf_link_hash_table_create): New function.
350 (create_got_section): New function.
351 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
352 pointers to our dynamic sections in hash table.
353 (ppc64_elf_copy_indirect_symbol): New function.
354 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
355 dynamic sections. Localise vars. Modify code for refcounts
356 starting from zero. Don't allocate here, or force symbols dynamic.
357 Don't copy all relocs if shared, select ones we need. Add code
358 to track possible copy relocs for non-shared link.
359 (ppc64_elf_gc_mark_hook): Update comment.
360 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
361 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
362 code for reference counting garbage collection. Don't create .plt
363 entries for functions that don't comply with ABI naming convention,
364 and don't allocate .plt space here. Use short-cuts to dynamic
365 sections. If possible, keep dynamic relocations instead of using
366 copy relocs. Remove confused comments.
367 (ppc_adjust_dynindx): Delete.
368 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
369 (allocate_dynrelocs): New function.
370 (readonly_dynrelocs): New function.
371 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
372 space here, and call allocate_dynrelocs to allocate space for
373 global .plt, .got and reloc sections. Use short-cuts to dynamic
374 sections. Call readonly_dynrelocs to determine whether we need
375 DT_TEXTREL. Don't generate section symbols here, the generic
376 ELF linker code does it for us.
377 (ppc64_elf_final_link): Call regular ELF backend linker rather than
378 gc variety, since we do our own .got handling.
379 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
380 dynamic section short-cuts. Localise vars, and delay setting.
381 Handle unknown relocs in main switch statement. Replace ugly
382 complicated tests for unresolvable relocs with a simple direct
383 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
384 before allowing an undefined sym in a shared lib. Do R_*_DS tests
385 after main switch, when we've set addend. Do non-addend insn
386 tweaks before main swithc. Ignore input_section->vma when
387 calculating reloc offsets as it's always zero. Rewrite dynamic
388 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
389 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
390 of dynamic section short-cuts. Reorganise .plt handling code.
391 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
392 Move expressions out of swap_reloca_out function calls.
393 (ppc64_elf_reloc_type_class): New function.
394 (ppc64_elf_info_to_howto): Move common expression to local var.
395 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
396 of dynamic section short-cuts. Don't fiddle with section syms
397 here as the ELF linker does it for us.
398 (elf_backend_can_refcount): Define.
399 (bfd_elf64_bfd_link_hash_table_create): Define.
400 (elf_backend_copy_indirect_symbol): Define.
401 (elf_backend_reloc_type_class): Define.
402 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
404 2001-09-29 Alan Modra <amodra@bigpond.net.au>
406 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
407 (struct elf_backend_data): Add can_refcount.
408 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
409 got.refcount and plt.refcount from init_refcount.
410 (_bfd_elf_link_hash_table_init): Set up init_refcount.
411 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
412 rather than got/plt.offset, and test for <= 0 rather than -1.
413 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
414 * elfxx-target.h (elf_backend_can_refcount): Define.
415 (elfNN_bed): Init can_refcount.
416 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
417 (_bfd_generic_link_hash_newfunc): Likewise.
418 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
420 (elf_backend_can_refcount): Define.
421 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
423 (elf32_hppa_copy_indirect_symbol): Make static to agree with
425 (elf_backend_can_refcount): Define.
426 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
428 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
429 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
430 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
431 (elf_backend_can_refcount): Define.
432 (elf_i386_copy_indirect_symbol): Make static to agree with
433 prototype. Formatting fix.
434 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
436 (elf_backend_can_refcount): Define.
437 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
439 (elf_backend_can_refcount): Define.
440 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
442 (elf_backend_can_refcount): Define.
443 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
445 (elf_backend_can_refcount): Define.
446 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
448 (elf_backend_can_refcount): Define.
450 * som.c (som_write_symbol_strings): Cast current_offset in
451 bfd_seek call to match param type.
453 2001-09-28 J. Brobecker <brobecker@gnat.com>
455 * som.c (som_write_symbol_strings): Fix incorrect type of
456 current_offset to match the function definition. Fixes a build
457 failure on HPUX-11.00.
459 2001-09-28 Richard Henderson <rth@redhat.com>
461 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
462 SEC_MERGE, SEC_STRINGS.
464 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
465 * bfd-in2.h: Rebuild.
467 2001-09-28 Alan Modra <amodra@bigpond.net.au>
469 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
470 reloc code using x86_64_reloc_map.
472 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
473 no longer allocate here. Localise some vars to blocks where they
475 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
476 setting of vars until needed.
477 (allocate_dynrelocs): Don't create a .plt entry without a reloc
478 when symbol visibilty makes a function local.
479 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
480 swap_reloca_out function calls.
481 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
482 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
485 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
486 no longer allocate here. Localise some vars to blocks where they
487 are used. Remove separate switch stmt for creating .got sec.
488 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
489 redundant casts and aborts. Delay setting of vars until needed.
490 (allocate_dynrelocs): Remove redundant casts and aborts.
491 (elf_i386_size_dynamic_sections): Move comment.
492 (elf_i386_finish_dynamic_symbol): Move expressions out of function
494 (elf_i386_relocate_section): Likewise. Comment typo fix.
495 (elf_i386_finish_dynamic_sections): Migrate common code out of
497 (elf_backend_* defines): Sort.
499 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
500 without a reloc when symbol visibilty makes a function local.
502 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
504 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
505 conflicting float flags.
507 2001-09-26 Alan Modra <amodra@bigpond.net.au>
509 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
510 (elf_backend_copy_indirect_symbol): Define.
511 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
512 (struct elf_i386_link_hash_table): Likewise.
513 (link_hash_newfunc): Get rid of unnecessary casts.
514 (elf_i386_link_hash_table_create): Likewise.
515 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
516 Don't test input section SEC_READONLY here to try to avoid copy
517 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
518 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
519 here to properly test whether we need copy relocs. Do so for weak
522 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
523 (elf_backend_copy_indirect_symbol): Define.
524 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
525 (stub_hash_newfunc): Get rid of unnecessary casts.
526 (hppa_link_hash_newfunc): Likewise.
527 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
528 Don't test input section SEC_READONLY here to try to avoid copy
529 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
530 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
531 here to properly test whether we need copy relocs. Do so for weak
534 2001-09-26 Alan Modra <amodra@bigpond.net.au>
536 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
537 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
538 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
540 2001-09-25 Jakub Jelinek <jakub@redhat.com>
542 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
545 2001-09-25 H.J. Lu <hjl@gnu.org>
547 * bfd-in2.h: Regenerated.
549 2001-09-25 Alan Modra <amodra@bigpond.net.au>
551 * elf32-i386.c: Add comment re linker function names and ordering.
552 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
553 (elf_i386_grok_prstatus): Move before linker functions.
554 (elf_i386_grok_psinfo): Likewise.
555 (elf_i386_fake_sections): Move so that functions are ordered.
556 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
558 2001-09-25 Alan Modra <amodra@bigpond.net.au>
560 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
563 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
564 code handling this option.
565 (LONG_BRANCH_VIA_PLT): Likewise.
566 (RELATIVE_DYNRELOCS): Define as zero.
567 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
568 "pc_count" fields. Remove "section" field.
569 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
570 (elf32_hppa_check_relocs): Don't allocate space for dynamic
571 relocs here. Instead, record all needed dynamic relocs via
572 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
574 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
575 (allocate_plt_and_got_and_discard_relocs): Rename to
576 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
577 (readonly_dynrelocs): New function.
578 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
579 Call readonly_dynrelocs to determine need for DT_TEXTREL.
580 Rename "i" to "ibfd". Allocate space for local dyn relocs.
581 (elf32_hppa_relocate_section): Make use of cached sreloc.
582 (elf32_hppa_reloc_type_class): New function.
583 (elf_backend_reloc_type_class): Define.
585 2001-09-25 Alan Modra <amodra@bigpond.net.au>
587 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
589 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
590 "pc_count" fields. Remove "section" field.
591 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
592 allocate space for dynamic relocs here. Instead, record all
593 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
594 pointer to "sreloc" section in elf_section_data.
595 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
596 (allocate_plt_and_got_and_discard_relocs): Rename to
597 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
598 (readonly_dynrelocs): New function.
599 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
600 Rename "i" to "ibfd". Allocate space for local dyn relocs.
601 (elf_i386_relocate_section): Make use of cached sreloc.
603 2001-09-24 Alan Modra <amodra@bigpond.net.au>
605 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
606 reloc rather than just the type.
607 (_bfd_elf_reloc_type_class): Likewise.
608 * elf.c (_bfd_elf_reloc_type_class): Likewise.
609 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
610 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
611 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
612 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
613 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
614 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
615 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
616 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
617 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
618 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
619 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
620 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
621 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
622 * elflink.h: Formatting fixes.
623 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
624 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
625 o->contents to PTR. Update call to elf_backend_reloc_type_class.
627 2001-09-22 John Reiser <jreiser@BitWagon.com>
629 * elfcode.h (elf_object_p): Allow for no section header at all in
630 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
632 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
634 * elfxx-ia64.c: Fix compile time warning messages.
635 * coff-mcore.c: Fix compile time warning messages.
636 * coff-ppc.c: Fix compile time warning messages.
637 * coffcode.h: Fix compile time warning messages.
638 * elf32-mips.c: Fix compile time warning messages.
639 * elf64-alpha.c: Fix compile time warning messages.
640 * libbfd.c: Fix compile time warning messages.
641 * bfd-in2.h: Regenerate.
643 2001-09-21 Alan Modra <amodra@bigpond.net.au>
645 * Makefile.am: Run "make dep-am".
646 * Makefile.in: Regenerate.
648 * aoutx.h: Formatting fixes.
649 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
651 * linker.c: Replace bfd_get_filename with bfd_archive_filename
654 2001-09-21 Alan Modra <amodra@bigpond.net.au>
656 * bfd.c (bfd_archive_filename): New function.
657 * bfd-in2.h: Regenerate.
658 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
659 in error messages where the bfd is an input bfd.
660 * aout-cris.c: Likewise.
661 * coff-arm.c: Likewise.
662 * coff-mcore.c: Likewise.
663 * coff-ppc.c: Likewise.
664 * coff-rs6000.c: Likewise.
665 * coff-sh.c: Likewise.
666 * coff-tic54x.c: Likewise.
667 * coff-tic80.c: Likewise.
668 * coff64-rs6000.c: Likewise.
669 * coffcode.h: Likewise.
670 * coffgen.c: Likewise.
671 * cofflink.c: Likewise.
672 * ecofflink.c: Likewise.
673 * elf-hppa.h: Likewise.
675 * elf32-arm.h: Likewise.
676 * elf32-cris.c: Likewise.
677 * elf32-gen.c: Likewise.
678 * elf32-hppa.c: Likewise.
679 * elf32-i370.c: Likewise.
680 * elf32-i386.c: Likewise.
681 * elf32-m32r.c: Likewise.
682 * elf32-mcore.c: Likewise.
683 * elf32-mips.c: Likewise.
684 * elf32-ppc.c: Likewise.
685 * elf32-s390.c: Likewise.
686 * elf32-sh.c: Likewise.
687 * elf32-sparc.c: Likewise.
688 * elf32-v850.c: Likewise.
689 * elf64-alpha.c: Likewise.
690 * elf64-gen.c: Likewise.
691 * elf64-ppc.c: Likewise.
692 * elf64-s390.c: Likewise.
693 * elf64-sparc.c: Likewise.
694 * elf64-x86-64.c: Likewise.
695 * elflink.h: Likewise.
696 * elfxx-ia64.c: Likewise.
699 * libbfd.c: Likewise.
701 * pe-mips.c: Likewise.
702 * peicode.h: Likewise.
704 * xcofflink.c: Likewise.
706 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
708 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
711 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
714 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
715 Consolidate error messages, and split long messages to two lines.
717 2001-09-20 John Reiser <jreiser@BitWagon.com>
719 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
720 and info->allow_shlib_undefined.
721 * elf32-cris.c: Likewise.
722 * elf32-hppa.c: Likewise.
723 * elf32-m68k.c: Likewise.
724 * elf32-mips.c: Likewise.
725 * elf32-ppc.c: Likewise.
726 * elf32-s390.c: Likewise.
727 * elf32-sh.c: Likewise.
728 * elf32-sparc.c: Likewise.
729 * elf64-alpha.c: Likewise.
730 * elf64-hppa.c: Likewise.
731 * elf64-ppc.c: Likewise.
732 * elf64-s390.c: Likewise.
733 * elf64-sparc.c: Likewise.
734 * elf64-x86-64.c: Likewise.
735 * elfxx-ia64.c: Likewise.
737 2001-09-18 Bruno Haible <haible@clisp.cons.org>
739 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
740 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
741 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
742 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
743 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
744 (bfd_default_scan): Use ISDIGIT instead of isdigit.
745 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
746 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
747 isxdigit/isdigit/islower.
748 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
749 (mangle_name): Use ISALNUM instead of isalnum.
750 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
751 (scan): Use ISDIGIT instead of isdigit.
752 * hosts/alphavms.h: Don't include <ctype.h>.
753 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
754 (ieee_object_p): Use TOUPPER instead of toupper.
755 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
756 (ihex_bad_byte): Use ISPRINT instead of isprint.
757 * merge.c: Don't include <ctype.h>.
758 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
759 (oasys_write_sections): Use ISDIGIT instead of isdigit.
760 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
761 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
762 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
763 (mangle_name): Use ISALNUM instead of isalnum.
764 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
765 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
766 isupper/islower/isdigit.
767 (som_decode_symclass): Use TOUPPER instead of toupper.
768 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
769 (srec_bad_byte): Use ISPRINT instead of isprint.
770 (srec_scan): Use ISSPACE instead of isspace.
771 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
772 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
773 * syms.c: Include "safe-ctype.h"
774 (islower, toupper): Remove macro definitions.
775 (bfd_decode_symclass): Use TOUPPER instead of toupper.
776 * vms-gsd.c: Don't include <ctype.h>.
777 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
778 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
780 * vms-tir.c: Don't include <ctype.h>.
782 2001-09-18 Alan Modra <amodra@bigpond.net.au>
784 * libbfd.c (bfd_bread): New function replacing bfd_read without
785 redundant params. Allow reads up to (size_t) -2 in length.
786 (bfd_bwrite): Similarly for bfd_write.
787 (real_read): Return a size_t.
788 (bfd_read): Call bfd_bread.
789 (bfd_write): Call bfd_bwrite.
790 (warn_deprecated): New function to annoy everybody.
791 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
792 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
793 (bfd_read, bfd_write): Define as macro.
794 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
795 likewise for bfd_write. Ensure function args are correct size by
796 using casts or local vars. In some cases, remove unnecessary
797 casts. Formatting fixes, in some cases removing a large expression
798 from function args by using a local var. Replace CONST with const.
799 Modify variable types to avoid warings. Use casts to avoid
800 warnings when using negative numbers in unsigned expressions.
801 * aout-adobe.c: Likewise.
802 * aout-arm.c: Likewise.
803 * aout-cris.c: Likewise.
804 * aout-encap.c: Likewise.
805 * aout-ns32k.c: Likewise.
806 * aout-target.h: Likewise.
807 * aout-tic30.c: Likewise.
808 * aoutf1.h: Likewise.
810 * archive.c: Likewise.
811 * archures.c: Likewise.
812 * bfd-in.h: Likewise.
814 * binary.c: Likewise.
817 * cisco-core.c: Likewise.
818 * coff-a29k.c: Likewise.
819 * coff-alpha.c: Likewise.
820 * coff-arm.c: Likewise.
821 * coff-h8300.c: Likewise.
822 * coff-h8500.c: Likewise.
823 * coff-i386.c: Likewise.
824 * coff-i860.c: Likewise.
825 * coff-i960.c: Likewise.
826 * coff-ia64.c: Likewise.
827 * coff-m68k.c: Likewise.
828 * coff-m88k.c: Likewise.
829 * coff-mcore.c: Likewise.
830 * coff-mips.c: Likewise.
831 * coff-ppc.c: Likewise.
832 * coff-rs6000.c: Likewise.
833 * coff-sh.c: Likewise.
834 * coff-sparc.c: Likewise.
835 * coff-stgo32.c: Likewise.
836 * coff-tic30.c: Likewise.
837 * coff-tic54x.c: Likewise.
838 * coff-tic80.c: Likewise.
839 * coff-w65.c: Likewise.
840 * coff-z8k.c: Likewise.
841 * coff64-rs6000.c: Likewise.
842 * coffcode.h: Likewise.
843 * coffgen.c: Likewise.
844 * cofflink.c: Likewise.
845 * coffswap.h: Likewise.
846 * corefile.c: Likewise.
847 * cpu-arc.c: Likewise.
848 * cpu-h8300.c: Likewise.
849 * cpu-h8500.c: Likewise.
850 * cpu-i960.c: Likewise.
851 * cpu-ia64-opc.c: Likewise.
852 * cpu-ns32k.c: Likewise.
853 * cpu-pdp11.c: Likewise.
854 * cpu-pj.c: Likewise.
855 * cpu-sh.c: Likewise.
856 * cpu-w65.c: Likewise.
857 * cpu-z8k.c: Likewise.
858 * dwarf1.c: Likewise.
859 * dwarf2.c: Likewise.
861 * ecofflink.c: Likewise.
862 * ecoffswap.h: Likewise.
863 * elf-bfd.h: Likewise.
864 * elf-hppa.h: Likewise.
865 * elf-m10200.c: Likewise.
866 * elf-m10300.c: Likewise.
868 * elf32-arc.c: Likewise.
869 * elf32-arm.h: Likewise.
870 * elf32-avr.c: Likewise.
871 * elf32-cris.c: Likewise.
872 * elf32-fr30.c: Likewise.
873 * elf32-gen.c: Likewise.
874 * elf32-h8300.c: Likewise.
875 * elf32-hppa.c: Likewise.
876 * elf32-i370.c: Likewise.
877 * elf32-i386.c: Likewise.
878 * elf32-i860.c: Likewise.
879 * elf32-m32r.c: Likewise.
880 * elf32-m68k.c: Likewise.
881 * elf32-mcore.c: Likewise.
882 * elf32-mips.c: Likewise.
883 * elf32-openrisc.c: Likewise.
884 * elf32-pj.c: Likewise.
885 * elf32-ppc.c: Likewise.
886 * elf32-s390.c: Likewise.
887 * elf32-sh-lin.c: Likewise.
888 * elf32-sh.c: Likewise.
889 * elf32-sparc.c: Likewise.
890 * elf32-v850.c: Likewise.
891 * elf64-alpha.c: Likewise.
892 * elf64-hppa.c: Likewise.
893 * elf64-mips.c: Likewise.
894 * elf64-ppc.c: Likewise.
895 * elf64-s390.c: Likewise.
896 * elf64-sparc.c: Likewise.
897 * elf64-x86-64.c: Likewise.
898 * elfarm-nabi.c: Likewise.
899 * elfcode.h: Likewise.
900 * elfcore.h: Likewise.
901 * elflink.c: Likewise.
902 * elflink.h: Likewise.
903 * elfxx-ia64.c: Likewise.
904 * elfxx-target.h: Likewise.
905 * format.c: Likewise.
907 * hp300hpux.c: Likewise.
908 * hppabsd-core.c: Likewise.
909 * hpux-core.c: Likewise.
910 * i386aout.c: Likewise.
911 * i386dynix.c: Likewise.
912 * i386linux.c: Likewise.
913 * i386lynx.c: Likewise.
914 * i386mach3.c: Likewise.
915 * i386msdos.c: Likewise.
916 * i386os9k.c: Likewise.
919 * irix-core.c: Likewise.
920 * libaout.h: Likewise.
921 * libbfd-in.h: Likewise.
922 * libbfd.c: Likewise.
923 * libcoff-in.h: Likewise.
924 * libecoff.h: Likewise.
925 * libieee.h: Likewise.
926 * libnlm.h: Likewise.
927 * libpei.h: Likewise.
928 * libxcoff.h: Likewise.
929 * linker.c: Likewise.
930 * lynx-core.c: Likewise.
931 * m68klinux.c: Likewise.
933 * mipsbsd.c: Likewise.
934 * netbsd-core.c: Likewise.
936 * nlm32-alpha.c: Likewise.
937 * nlm32-i386.c: Likewise.
938 * nlm32-ppc.c: Likewise.
939 * nlm32-sparc.c: Likewise.
940 * nlmcode.h: Likewise.
941 * nlmswap.h: Likewise.
944 * opncls.c: Likewise.
945 * osf-core.c: Likewise.
946 * pc532-mach.c: Likewise.
948 * pe-mips.c: Likewise.
949 * peXXigen.c: Likewise.
950 * peicode.h: Likewise.
951 * ppcboot.c: Likewise.
952 * ptrace-core.c: Likewise.
954 * reloc16.c: Likewise.
955 * riscix.c: Likewise.
956 * rs6000-core.c: Likewise.
957 * sco5-core.c: Likewise.
958 * section.c: Likewise.
960 * sparclinux.c: Likewise.
961 * sparclynx.c: Likewise.
966 * targets.c: Likewise.
967 * tekhex.c: Likewise.
968 * trad-core.c: Likewise.
969 * versados.c: Likewise.
970 * vms-gsd.c: Likewise.
971 * vms-hdr.c: Likewise.
972 * vms-misc.c: Likewise.
973 * vms-tir.c: Likewise.
976 * xcofflink.c: Likewise.
977 * bfd-in2.h: Regenerate.
978 * libbfd.h: Regenerate.
979 * libcoff.h: Regenerate.
981 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
982 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
984 (bfd_tell): Return a ufile_ptr.
985 * libbfd.c (bfd_tell): Likewise.
986 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
988 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
989 * aoutf1.h: Likewise.
991 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
992 larger than unsigned long can represent.
994 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
995 size overflows size_t.
996 (bfd_realloc): Likewise.
997 (bfd_zmalloc): Likewise.
998 * opncls.c (bfd_alloc): Likewise.
999 (bfd_zalloc): Likewise.
1000 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1001 (bfd_alloc, bfd_zalloc): Update.
1003 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1005 (bfd_get_signed_8): Likewise.
1006 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1007 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1008 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1009 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1010 * libaout.h: Likewise define and use here.
1011 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1012 * aout-arm.c: Likewise.
1013 * aout-encap.c: Likewise.
1014 * aout-ns32k.c: Likewise.
1015 * aout-tic30.c: Likewise.
1016 * aoutf1.h: Likewise.
1017 * aoutx.h: Likewise.
1019 * coff-alpha.c: Likewise.
1020 * coff-h8300.c: Likewise.
1021 * coff-h8500.c: Likewise.
1022 * coff-i960.c: Likewise.
1023 * coff-ia64.c: Likewise.
1024 * coff-m88k.c: Likewise.
1025 * coff-mips.c: Likewise.
1026 * coff-ppc.c: Likewise.
1027 * coff-rs6000.c: Likewise.
1028 * coff-sh.c: Likewise.
1029 * coff-sparc.c: Likewise.
1030 * coff-stgo32.c: Likewise.
1031 * coff-tic30.c: Likewise.
1032 * coff-tic80.c: Likewise.
1033 * coff-w65.c: Likewise.
1034 * coff-z8k.c: Likewise.
1035 * coff64-rs6000.c: Likewise.
1036 * coffgen.c: Likewise.
1037 * cofflink.c: Likewise.
1038 * coffswap.h: Likewise.
1039 * ecoff.c: Likewise.
1040 * ecoffswap.h: Likewise.
1042 * elf32-mips.c: Likewise.
1043 * elf64-mips.c: Likewise.
1044 * hp300hpux.c: Likewise.
1045 * i386dynix.c: Likewise.
1046 * i386lynx.c: Likewise.
1047 * i386msdos.c: Likewise.
1048 * i386os9k.c: Likewise.
1049 * libpei.h: Likewise.
1050 * nlm32-alpha.c: Likewise.
1051 * nlm32-i386.c: Likewise.
1052 * nlm32-ppc.c: Likewise.
1053 * nlmcode.h: Likewise.
1054 * nlmswap.h: Likewise.
1055 * oasys.c: Likewise.
1056 * pdp11.c: Likewise.
1057 * pe-mips.c: Likewise.
1058 * peXXigen.c: Likewise.
1059 * peicode.h: Likewise.
1060 * riscix.c: Likewise.
1061 * sunos.c: Likewise.
1062 * xcofflink.c: Likewise.
1063 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1064 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1065 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1066 equivalent H_PUT_* macro instead.
1067 (GETWORD, GETHALF, GETBYTE): Similarly.
1068 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1069 (GETWORD, GETHALF, GETBYTE): Likewise.
1070 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1072 * bfd-in.h (struct orl): Change "pos" to a union.
1073 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1074 (bsd_write_armap): Here too.
1075 (coff_write_armap): And here.
1076 * coff-rs6000.c (xcoff_write_armap_old): And here.
1077 (xcoff_write_one_armap_big): And here.
1078 (xcoff_write_armap_big): And here.
1079 * ecoff.c (_bfd_ecoff_write_armap): And here.
1080 * elf64-mips.c (mips_elf64_write_armap): And here.
1082 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1083 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1084 * elf32-h8300.c (elf32_h8_mach): Likewise.
1085 * elf32-mips.c (elf_mips_mach): Likewise.
1086 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1088 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1090 (aix386_core_vec): Typo fix.
1092 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1093 etc. to avoid redefined macro warning.
1094 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1095 (MY(fix_pcrel_26)): Likewise.
1096 * aout-ns32k.c (MY(put_reloc)): Likewise.
1097 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1098 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1099 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1101 * aout-encap.c: Include "file", not <file> for binutils headers.
1102 (encap_object_p): Half baked attempt to fix compile errors in
1103 code dealing with "magic".
1105 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1106 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1107 bfd_vma's rather than longs.
1108 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1109 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1110 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1112 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1113 Use unsigned comparisons.
1114 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1115 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1116 (_bfd_do_ns32k_reloc_contents): Likewise.
1117 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1118 (_bfd_ns32k_get_immediate): Likewise.
1119 (_bfd_ns32k_put_displacement): Likewise.
1120 (_bfd_ns32k_put_immediate): Likewise.
1121 (bfd_reloc_status_type): Likewise.
1123 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1125 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1126 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1127 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1129 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1130 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1131 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1133 (_bfd_elfcore_strndup): Likewise for "dup".
1134 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1135 "name" to avoid shadowing.
1136 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1137 definition of "off".
1138 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1139 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1141 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1143 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1145 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1147 (elf_link_input_bfd): Likewise.
1148 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1149 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1150 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1152 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1153 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1154 (sunos_write_dynamic_symbol): Remove unused vars.
1155 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1156 innermost "directory_name" and "file_name" vars.
1157 * tekhex.c (first_phase): Rename local var "type" to "stype".
1158 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1159 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1160 doing comparison at caller.
1161 (vms_esecflag_by_name): Likewise.
1162 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1163 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1164 (xcoff_write_global_symbol): Rename "p" param to "inf".
1166 * cisco-core.c: Add missing prototypes.
1167 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1168 (cisco_core_file_failing_signal): Likewise.
1169 (cisco_core_file_matches_executable_p): Likewise.
1170 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1171 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1172 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1173 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1175 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1176 thumb_glue_size and arm_glue_size.
1177 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1179 * coff64-rs6000.c: Group prototypes together.
1181 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1182 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1184 * cpu-arc.c: Add missing prototypes.
1185 * cpu-h8500.c: Likewise.
1186 * cpu-i960.c: Likewise.
1187 * cpu-pj.c: Likewise.
1188 * cpu-sh.c: Likewise.
1189 * cpu-w65.c: Likewise.
1190 * cpu-z8k.c: Likewise.
1191 * elf32-fr30.c: Likewise.
1192 * elf32-h8300.c: Likewise.
1193 * elf32-i370.c: Likewise.
1194 * hpux-core.c: Likewise.
1195 * versados.c: Likewise.
1197 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1198 * cpu-h8500.c: Likewise.
1199 * cpu-i960.c: Likewise.
1200 * cpu-z8k.c: Likewise.
1202 * cpu-ia64-opc.c: Correct comment.
1204 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1206 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1208 (bfd_elf32_write_out_phdrs): Likewise.
1209 (bfd_elf64_write_out_phdrs): Likewise.
1210 (elf_linker_section_pointers): Change addend to bfd_vma.
1211 (_bfd_elf_find_pointer_linker_section): Likewise.
1212 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1213 filepos to unsigned file_ptr.
1214 (_bfd_elfcore_strndup): Change max param to size_t.
1215 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1216 (_bfd_elfcore_strndup): Likewise.
1217 (_bfd_elf_find_pointer_linker_section): Likewise.
1219 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1220 insn and sym_value to ints.
1222 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1224 (elfcore_read_notes): Likewise.
1226 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1227 param from unsigned char to int.
1228 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1229 for info_to_howto call.
1230 (add_dynamic_entry): Define macro.
1231 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1233 * elf32-cris.c (add_dynamic_entry): Define macro.
1234 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1236 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1237 (elf32_h8_object_p): Likewise.
1238 (elf32_h8_merge_private_bfd_data): Likewise.
1239 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1241 * elf32-hppa.c (add_dynamic_entry): Define macro.
1242 (elf32_hppa_size_dynamic_sections): Use it.
1243 * elf32-i370.c (add_dynamic_entry): Define macro.
1244 (i370_elf_size_dynamic_sections): Use it.
1245 (i370_noop): Make static.
1246 * elf32-i386.c (add_dynamic_entry): Define macro.
1247 (elf_i386_size_dynamic_sections): Use it.
1248 * elf32-m68k.c (add_dynamic_entry): Define macro.
1249 (elf_m68k_size_dynamic_sections): Use it.
1250 * elf32-ppc.c (add_dynamic_entry): Define macro.
1251 (ppc_elf_size_dynamic_sections): Use it.
1252 * elf32-s390.c (add_dynamic_entry): Define macro.
1253 (elf_s390_size_dynamic_sections): Use it.
1254 * elf64-alpha.c (add_dynamic_entry): Define macro.
1255 (elf64_alpha_size_dynamic_sections): Use it.
1256 * elf64-hppa.c (add_dynamic_entry): Define macro.
1257 (elf64_hppa_size_dynamic_sections): Use it.
1258 * elf64-ppc.c (add_dynamic_entry): Define macro.
1259 (ppc64_elf_size_dynamic_sections): Use it.
1260 * elf64-s390.c (add_dynamic_entry): Define macro.
1261 (elf_s390_size_dynamic_sections): Use it.
1262 * elf64-sparc.c (add_dynamic_entry): Define macro.
1263 (sparc64_elf_size_dynamic_sections): Use it.
1264 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1265 (elf64_x86_64_size_dynamic_sections): Use it.
1266 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1267 (elfNN_ia64_size_dynamic_sections): Use it.
1269 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1270 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1272 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1273 false if the first malloc fails rather than going via error_return.
1275 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1277 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1279 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1281 * elfxx-ia64.c (global_sym_index): Return a long.
1283 * ieee.c (get_symbol): Use int rather than char param.
1284 (ieee_slurp_sections): Move "section" var to inner blocks.
1285 (copy_expression): Don't init "value" to zero or worry about
1286 clearing to zero after using.
1287 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1290 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1293 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1294 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1296 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1298 * pc532-mach.c (MYNSX): Delete.
1299 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1300 (write_object_contents): Correct prototype.
1302 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1303 than unsigned short.
1305 * section.c (bfd_set_section_contents): Remove redundant
1306 "offset < 0" test. Check that "count" doesn't overflow size_t.
1307 (bfd_get_section_contents): Likewise.
1309 * som.c (som_fixup_formats): Add missing braces.
1310 (som_reloc_addend): Pass a bfd_vma for "addend".
1312 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1313 (srec_write_symbols): Remove an unnecessary var.
1315 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1317 * configure.in: Sort to match. Bump version number.
1318 * configure: Regenerate.
1320 * tekhex.c (move_section_contents): Assert offset == 0.
1322 * versados.c (new_symbol_string): Constify arg.
1323 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1324 (versados_get_symbol_info): Make static.
1325 (versados_print_symbol): Likewise.
1326 (versados_get_reloc_upper_bound): Likewise.
1327 (versados_canonicalize_reloc): Likewise.
1329 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1331 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1333 2001-09-17 H.J. Lu <hjl@gnu.org>
1335 * dwarf1.c (parse_die): Take a new arg for the end of the
1336 section. Return false if die is beyond the section.
1337 (parse_functions_in_unit): Pass the end of the section to
1339 (_bfd_dwarf1_find_nearest_line): Likewise.
1341 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1343 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1344 just like R_SPARC_32.
1346 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1348 * configure.bfd: Add arm-openbsd target.
1350 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1352 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1353 Add support for mips64.
1355 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1357 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1359 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1361 * elf.c (prep_headers): Get the machine code from the elf
1363 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1364 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1365 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1366 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1367 * elf-arc.c (arc_elf_final_write_processing): Don't override
1368 e_machine, it's now properly set in prep_headers.
1369 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1371 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1372 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1373 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1374 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1375 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1376 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1377 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1378 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1379 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1380 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1381 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1382 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1384 2001-09-11 Richard Henderson <rth@redhat.com>
1386 * elf64-alpha.c (elf64_alpha_section_flags): New.
1387 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1389 2001-09-11 Richard Henderson <rth@redhat.com>
1391 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1392 apply HINT relocations against dynamic symbols.
1394 2001-09-11 H.J. Lu <hjl@gnu.org>
1396 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1398 2001-09-09 Richard Henderson <rth@redhat.com>
1400 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1402 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1403 following a call to a near function.
1405 2001-09-08 Richard Henderson <rth@redhat.com>
1407 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1408 relocation errors. Fail gp-relative relocations against
1411 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1413 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1414 as well as DEF_DYNAMIC in test for avoided copy relocs.
1415 (allocate_plt_and_got_and_discard_relocs): Likewise.
1416 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1417 (allocate_plt_and_got_and_discard_relocs): Likewise.
1419 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1421 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1424 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1426 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1428 (mips_elf64_howto_table_rel): Likewise.
1430 2001-09-05 Tom Rix <trix@redhat.com>
1432 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1433 and syscall symbols.
1434 (write_global_symbol) : Same.
1435 (bfd_xcoff_export_symbol): Remove unused syscall param.
1436 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1437 bfd_xcoff_import_symbol.
1439 * bfd-in2.h : Regenerate.
1441 2001-09-04 Richard Henderson <rth@redhat.com>
1443 * elf64-alpha.c (SKIP_HOWTO): New.
1444 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1445 Fix sizes of 16-bit mem format relocs.
1446 (elf64_alpha_reloc_map): Update to match.
1447 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1448 (elf64_alpha_relax_without_lituse): Likewise.
1449 (elf64_alpha_check_relocs): Handle GPREL16.
1450 (elf64_alpha_relocate_section): Likewise.
1451 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1452 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1453 * bfd-in2.h, libbfd.h: Rebuild.
1455 2001-09-04 Jeff Law <law@redhat.com>
1457 * elf32-h8300.c (elf32_h8_relax_section): New function.
1458 (elf32_h8_relax_delete_bytes): Likewise.
1459 (elf32_h8_symbol_address_p): Likewise.
1460 (elf32_h8_get_relocated_section_contents): Likewise.
1461 (bfd_elf32_bfd_relax_section): Define.
1462 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1464 * elf32-h8300.c (special): New function.
1465 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1467 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1468 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1469 Fix minor problems with 8bit and 16bit PC relative relocations.
1471 2001-09-01 Andreas Jaeger <aj@suse.de>
1473 * vms-tir.c: Add missing prototypes.
1474 * vms-hdr.c: Likewise.
1475 * vms-gsd.c: Likewise.
1476 * vms-misc.c: Likewise.
1478 2001-08-31 H.J. Lu <hjl@gnu.org>
1480 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1481 with bad relocation.
1483 2001-08-31 Eric Christopher <echristo@redhat.com>
1484 Jason Eckhardt <jle@redhat.com>
1486 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1487 mips32_4k and mips64.
1488 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1489 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1490 * bfd/cpu-mips.c: Ditto.
1491 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1492 * bfd/bfd-in2.h: Regenerate.
1494 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1496 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1497 value into R_ALPHA_RELATIVE's addend.
1498 (elf64_alpha_finish_dynamic_symbol): Likewise.
1500 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1502 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1503 recomputed addend during relocatable link if not USE_REL.
1505 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1508 2001-08-30 H.J. Lu <hjl@gnu.org>
1510 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1512 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1513 relocations for weak definitions.
1515 2001-08-30 H.J. Lu <hjl@gnu.org>
1517 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1518 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1519 * Makefile.in: Rebuild.
1521 2001-08-30 H.J. Lu <hjl@gnu.org>
1523 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1524 dynamic relocation for undefined weak symbols when creating
1525 executables. Check h->root.root.type, instead of h->root.type.
1527 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1529 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1530 default from coff to elf.
1532 2001-08-29 Jeff Law <law@redhat.com>
1534 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1536 (h8_reloc_map): Similarly.
1537 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1538 Add support for PC relative relocations.
1540 * elf32-h8300.c: Put all prototypes together.
1541 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1542 (elf32_h8_final_link_relocate): New function for linker.
1543 (elf32_h8_relocate_section): Similarly.
1544 (elf_backend_relocate_section): Define.
1546 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1547 (h8300_scan): Handle architecture:machine encodings typically
1548 found in linker scripts.
1549 * elf.c (prep_headers): Do not try to do H8 machine recognition
1551 * elf32-h8300.c: Add some missing prototypes.
1552 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1553 (elf32_h8_object_p): Similarly.
1555 2001-08-29 Tom Rix <trix@redhat.com>
1557 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1558 does not follow a XTY_SD.
1560 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1562 * targmatch.sed: Delete case statements.
1563 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1566 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1568 * Makefile.am (elf32-h8300.lo): New target.
1569 * config.bfd (h8300*-*-elf): New case.
1570 * configure.in (bfd_elf32_h8300_vec): New case.
1571 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1572 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1573 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1574 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1575 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1576 * elf32-h8300.c: New file.
1577 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1579 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1581 * sparclynx.c: Add missing prototypes.
1582 * coff-mcore.c: Add missing prototypes.
1583 * elf32-pj.c: Add missing prototypes.
1584 * nlm32-sparc.c: Add missing prototypes.
1585 * oasys.c: Add missing prototypes.
1586 * pdp11.c: Add missing prototypes.
1587 * pe-mips.c: Add missing prototypes.
1588 * riscix.c: Add missing prototypes.
1590 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1592 * elf32-i386.c: Add missing prototypes.
1593 * elf32-ppc.c: Likewise.
1594 * elf32-sh-lin.c: Likewise.
1595 * elfarm-nabi.c: Likewise.
1597 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1599 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1600 (elf_i386_grok_psinfo): New function.
1601 (elf_backend_grok_prstatus): Define.
1602 (elf_backend_grok_psinfo): Likewise.
1603 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1604 (ppc_elf_grok_psinfo): New function.
1605 (elf_backend_grok_prstatus): Define.
1606 (elf_backend_grok_psinfo): Likewise.
1607 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1608 (elf32_shlin_grok_psinfo): New function.
1609 (elf_backend_grok_prstatus): Define.
1610 (elf_backend_grok_psinfo): Likewise.
1611 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1612 (elf32_arm_nabi_grok_psinfo): New function.
1613 (elf_backend_grok_prstatus): Define.
1614 (elf_backend_grok_psinfo): Likewise.
1616 2001-08-27 H.J. Lu <hjl@gnu.org>
1618 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1620 (mips_elf_calculate_relocation): Create dynamic relocation for
1621 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1624 2001-08-27 H.J. Lu <hjl@gnu.org>
1626 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1627 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1628 (_bfd_elf32_mips_grok_prstatus): Likewise.
1629 (_bfd_elf32_mips_grok_psinfo): Likewise.
1630 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1631 `struct mips_elf_link_hash_entry *'.
1632 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1634 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1636 * mipsbsd.c: Add missing prototypes.
1637 * hp300hpux.c: Add missing prototypes.
1638 * i386aout.c: Add missing prototypes.
1639 * i386lynx.c: Add missing prototypes.
1640 * i386mach3.c: Add missing prototypes.
1641 * i386msdos.c: Add missing prototypes.
1642 * i386os9k.c: Add missing prototypes.
1644 2001-08-27 Linus Nordberg <linus@swox.se>
1645 Torbjorn Granlund <tege@swox.com>
1646 Staffan Ulfberg <staffanu@swox.se>
1647 Alan Modra <amodra@bigpond.net.au>
1649 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1650 targ64_selvecs for 32 bit powerpc targets.
1651 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1652 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1654 * Makefile.in: Regenerate.
1655 * configure.in: Add elf64_powerpc vecs.
1656 * configure: Regenerate.
1657 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1658 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1659 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1660 * elf64-ppc.c: New file.
1661 * reloc.c: Add powerpc64 relocs.
1662 * libbfd.h: Regenerate.
1663 * bfd-in2.h: Regenerate.
1665 2001-08-27 Andreas Schwab <schwab@suse.de>
1667 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1668 reloc is against read-only section.
1669 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1670 looking up section names for DT_TEXTREL.
1671 (elf32_m68k_reloc_type_class): New function.
1672 (elf_backend_reloc_type_class): Define.
1674 2001-08-27 Andreas Jaeger <aj@suse.de>
1676 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1677 reloc is against read-only section.
1678 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1679 looking up section names for DT_TEXTREL.
1680 (elf_s390_reloc_type_class): New.
1681 (elf_backend_reloc_type_class): Define.
1683 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1684 reloc is against read-only section.
1685 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1686 looking up section names for DT_TEXTREL.
1687 (elf_s390_reloc_type_class): New.
1688 (elf_backend_reloc_type_class): Define.
1690 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1691 is against read-only section.
1692 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1693 looking up section names for DT_TEXTREL.
1694 (ppc_elf_reloc_type_class): New.
1695 (elf_backend_reloc_type_class): Define.
1697 2001-08-26 Andreas Jaeger <aj@suse.de>
1699 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1700 reloc is against read-only section.
1701 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1702 looking up section names for DT_TEXTREL.
1703 (elf_cris_reloc_type_class): New.
1704 (elf_backend_reloc_type_class): Define.
1706 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1707 against read-only section.
1708 (elf_backend_reloc_type_class): Define.
1709 (sh_elf_reloc_type_class): New.
1710 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1711 looking up section names for DT_TEXTREL.
1713 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1714 reloc is against read-only section.
1715 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1716 looking up section names for DT_TEXTREL.
1717 (elf32_arm_reloc_type_class): New.
1718 (elf_backend_reloc_type_class): Define.
1720 2001-08-25 Andreas Jaeger <aj@suse.de>
1722 * oasys.c: Add missing prototypes.
1724 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1725 attribute for parameter.
1726 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1728 * versados.c (get_4): Make static.
1729 (get_10): Make static.
1730 Add missing prototypes.
1731 (process_esd): Fix call to versados_new_symbol.
1733 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1735 * coff-a29k.c: Add missing prototypes.
1736 * coff-apollo.c: Add missing prototypes.
1737 * coff-arm.c: Add missing prototypes.
1738 * coff-i860.c: Add missing prototypes.
1739 * coff-rs6000.c: Add missing prototypes.
1740 * coff-tic80.c: Add missing prototypes.
1741 * elf-m10200.c: Add missing prototypes.
1742 * elf-m10300.c: Add missing prototypes.
1743 * elf32-arm.h: Add missing prototypes.
1744 * elf32-d10v.c: Add missing prototypes.
1745 * elf32-m32r.c: Add missing prototypes.
1746 * elf32-mcore.c: Add missing prototypes.
1747 * elf32-openrisc.c: Add missing prototypes.
1748 * elf32-sh.c: Add missing prototypes.
1749 * elf32-sparc.c: Add missing prototypes.
1750 * elf32-v850.c: Add missing prototypes.
1751 * elfarm-nabi.c: Add missing prototypes.
1752 * elfarm-oabi.c: Add missing prototypes.
1754 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1756 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1757 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1759 2001-08-24 H.J. Lu <hjl@gnu.org>
1761 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1764 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1766 * elf-bfd.h (elf_hash_table): Revert definition.
1767 (is_elf_hash_table): New macro.
1768 * elflink.h (elf_link_add_object_symbols): Test
1769 is_elf_hash_table before accessing ELF only fields in hash
1771 (elf_link_create_dynamic_sections): Fail if not using an ELF
1773 (elf_add_dynamic_entry): Fail if not using an ELF hash
1775 (elf_link_record_local_dynamic_symbol): Fail if not using an
1777 (size_dynamic_sections): Fail if not using an ELF hash
1779 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1781 (elf_bfd_final_link): Fail if not using an ELF hash
1784 2001-08-24 H.J. Lu <hjl@gnu.org>
1786 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1787 table is not an ELF linker hash table.
1789 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1790 table type to bfd_link_elf_hash_table.
1792 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1795 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1796 table type to bfd_link_generic_hash_table.
1798 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1800 * bfd.c (bfd_alt_mach_code): New function.
1801 * bfd-in2.h: Rebuilt.
1803 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1805 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1806 `type' field in the hash entry when deciding whether to follow a
1809 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1811 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1813 (elf_link_sort_relocs): Adjust accordingly.
1815 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1816 (elf64_alpha_check_relocs): Set it if section this reloc is against
1817 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1819 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1820 is is against read-only section.
1821 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1822 check section names.
1823 (elf64_alpha_reloc_type_class): New.
1824 (elf_backend_reloc_type_class): Define.
1826 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1828 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1831 2001-08-23 Andreas Jaeger <aj@suse.de>
1833 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1834 the reloc is against read-only section.
1835 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1836 of looking up section names for DT_TEXTREL.
1837 (elf64_x86_64_reloc_type_class): New.
1838 (elf_backend_reloc_type_class): Define.
1840 2001-08-23 H.J. Lu <hjl@gnu.org>
1842 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1843 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1845 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1846 bfd_print_symbol_vandf.
1847 * coffgen.c (coff_print_symbol): Likewise.
1848 * elf.c (bfd_elf_print_symbol): Likewise.
1849 * ieee.c (ieee_print_symbol): Likewise.
1850 * nlmcode.h (nlm_print_symbol): Likewise.
1851 * oasys.c (oasys_print_symbol): Likewise.
1852 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1853 * som.c (som_print_symbol): Likewise.
1854 * srec.c (srec_print_symbol): Likewise.
1855 * tekhex.c (tekhex_print_symbol): Likewise.
1856 * versados.c (versados_print_symbol): Likewise.
1857 * vms.c (vms_print_symbol): Likewise.
1859 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1860 with bfd_fprintf_vma.
1861 (bfd_elf_print_symbol): Likewise.
1862 * syms.c (bfd_print_symbol_vandf): Likewise.
1864 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1866 * aoutf1.h (sunos_write_object_contents): Silence compile time
1868 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1870 * bout.c: Add missing function prototypes. Fix formatting.
1871 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1872 * coff-w65.c: Add missing function prototypes. Fix formatting.
1873 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1874 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1875 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1876 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1877 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1878 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1879 * coff-sh.c: Add missing function prototypes. Fix formatting.
1881 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1883 * elf-bfd.h (enum elf_reloc_type_class): New.
1884 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1885 (_bfd_elf_reloc_type_class): New.
1886 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1887 (elfNN_bed): Add elf_backend_reloc_type_class.
1888 * elf.c (_bfd_elf_reloc_type_class): New.
1889 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1890 is against read-only section.
1891 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1892 looking up section names for DT_TEXTREL.
1893 (elf_i386_reloc_type_class): New.
1894 (elf_backend_reloc_type_class): Define.
1895 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1896 reloc is against read-only section.
1897 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1898 looking up section names for DT_TEXTREL.
1899 (elf32_sparc_reloc_type_class): New.
1900 (elf_backend_reloc_type_class): Define.
1901 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1902 reloc is against read-only section.
1903 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1904 looking up section names for DT_TEXTREL.
1905 (sparc64_elf_reloc_type_class): New.
1906 (elf_backend_reloc_type_class): Define.
1907 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1908 (elfNN_ia64_hash_table_create): Clear ia64_info.
1909 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1911 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1912 instead of looking up section names for DT_TEXTREL.
1913 (elfNN_ia64_reloc_type_class): New.
1914 (elf_backend_reloc_type_class): Define.
1915 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1916 (struct elf_link_sort_rela): New.
1917 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1918 (elf_bfd_final_link): Call elf_link_sort_relocs.
1919 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1922 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1924 * configure.in (x86-bsdi): No corefile support.
1925 * configure: Regenerate.
1927 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1929 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1932 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1934 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1935 the alignment of dwarf2 linkonce sections to 0.
1936 * coff-sto32.c: Likewise.
1938 2001-08-20 Andreas Jaeger <aj@suse.de>
1940 * coff-sparc.c: Add missing prototypes.
1941 * elf32-s390.c: Likewise.
1942 * elf32-i960.c: Likewise.
1943 * aout-target.h: Likewise.
1945 2001-08-20 H.J. Lu <hjl@gnu.org>
1947 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1948 (elf_num_section_syms): New for num_section_syms.
1950 * elf.c (elf_map_symbols): Set num_section_syms.
1951 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1952 the section symbol index.
1954 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1956 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1957 select the generic has table creator. All elf backends need elf
1958 specific fields in the hash table.
1960 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1962 * archive.c (offsetof): Remove define.
1965 * sysdep.h (offsetof): Define.
1967 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1969 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1970 (bfd_set_gp_size): Make param unsigned.
1971 * bfd-in2.h: Regenerate.
1972 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1973 than calling bfd_get_gp_size.
1974 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1975 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1977 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1979 * linker.c (default_fill_link_order): Handle four byte fill value.
1981 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1983 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1985 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1987 * elf64-mips.c (UNUSED_RELOC): Define.
1988 (mips_elf64_howto_table_rel): Use it.
1989 (mips_elf64_howto_table_rela): Here too.
1990 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1992 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1994 * coffgen.c (coff_print_symbol): Fix warnings.
1995 (coff_find_nearest_line): Likewise.
1996 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1997 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1998 * format.c (bfd_check_format_matches): Likewise.
1999 (bfd_set_format): Likewise.
2000 * coff-ia64.c: Add missing prototypes.
2001 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2002 signed to silence warnings.
2003 (elf64_alpha_relocate_section): Likewise.
2004 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2005 (elf64_alpha_add_symbol_hook): Likewise.
2006 (elf64_alpha_final_link): Likewise.
2007 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2008 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2009 (elf64_alpha_size_got_sections): Likewise.
2010 * elfxx-ia64.c: Add missing prototypes.
2011 (elfNN_ia64_relocate_section): Fix warning.
2012 (elfNN_ia64_unwind_entry_compare): Make params const.
2014 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2016 * config.bfd (targ64_selvecs): New.
2017 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2019 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2020 (BFD_DEFAULT_TARGET_SIZE): New.
2021 (BFD_ARCH_SIZE): Comment.
2022 * configure.in (target_size): New. Set instead of target64 in
2023 selvecs case statement. Set target64 from it.
2024 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2025 * bfd-in2.h: Regenerate.
2026 * configure: Regenerate.
2028 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2030 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2031 (bfd_errmsgs): Add corresponding message.
2032 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2033 finding an archive that contains different format object files.
2034 Return bfd_error_wrong_object_format for this case.
2035 * format.c: Formatting fixes. s/CONST/const/.
2036 (bfd_check_format_matches): Accept archives that give
2037 bfd_error_wrong_object_format if no full match is found. Tidy
2038 code handling matching_vector. Don't return a pointer to freed
2039 memory in `matching'. Handle ambiguous matches as for partial
2041 * bfd-in2.h: Regenerate.
2043 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2045 * libieee.h (common_header_type): Add last_byte field.
2047 * ieee.c: Add missing prototypes. Some format fixes.
2048 (struct output_buffer_struct): Move for availability to prototypes.
2049 (ieee_part_after): New function.
2050 (ieee_slurp_debug): Use it here.
2051 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2052 ieee_part_after to set last_byte to one past end of current part.
2054 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2056 (parse_expression): Don't go beyond the end of the current part.
2057 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2058 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2059 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2060 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2061 ieee_set_section_contents, ieee_write_object_contents,
2062 ieee_make_empty_symbol): Make static.
2063 (ieee_archive_p): Correct comments regarding bfd_read.
2064 (ieee_object_p): Similarly.
2065 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2066 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2067 input_bfd, output_bfd, output_buffer.
2068 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2069 do_with_relocs, ie. as a symbol for relocatable files.
2070 (ieee_vec): Add comments showing functions referenced by macros.
2072 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2074 * aout-tic30.c: Add missing prototypes. Fix formatting.
2075 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2076 * peXXigen.c: Add missining prototypes. Fix formatting.
2077 * aout-adobe.c: Add missining prototypes. Fix formatting.
2079 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2081 * elf32-v850.c: Add missing function prototypes.
2082 Fix some formatting.
2084 * cpu-v850.c: Add missing function prototype.
2085 Fix some formatting.
2087 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2089 * elf-bfd.h (struct elf_backend_data): Add new fields
2090 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2091 (bfd_elf_sprintf_vma): Rename function prototype to
2092 '_bfd_elf_sprintf_vma'.
2093 (bfd_elf_fprintf_vma): Rename function prototype to
2094 '_bfd_elf_fprintf_vma'.
2095 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2096 directly, instead indirect via the elf_backend_data structure.
2097 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2098 instead indirect via the elf_backend_data structure.
2099 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2100 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2101 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2103 (elf_backend_fprintf_vma): Initialise if not already defined.
2104 (struct elf_backend_data): Initialise the
2105 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2107 2001-08-10 Andreas Jaeger <aj@suse.de>
2109 * elf64-sparc.c: Add missing prototypes.
2110 * elf32-cris.c: Likewise.
2111 * elf32-i370.c: Likewise.
2112 * elf64-hppa.c: Likewise.
2113 * elf64-s390.c: Likewise.
2115 2001-08-10 Andreas Jaeger <aj@suse.de>
2117 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2118 Add prototypes where needed.
2120 2001-08-10 H.J. Lu <hjl@gnu.org>
2122 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2123 (bfd_fprintf_vma): Likewise.
2125 2001-08-10 H.J. Lu <hjl@gnu.org>
2127 * bfd.c (bfd_sprintf_vma): Don't return void.
2128 (bfd_fprintf_vma): Likewise.
2130 2001-08-10 Andreas Jaeger <aj@suse.de>
2132 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2134 * configure: Regenerate.
2136 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2138 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2139 warning if not BFD64. Add braces so emacs auto format works.
2140 (bfd_elf_fprintf_vma): Likewise.
2142 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2144 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2145 param to agree with libxcoff.h.
2146 (xcoff_swap_ldhdr_out): Likewise.
2147 (xcoff_swap_ldsym_in): Likewise.
2148 (xcoff_swap_ldsym_out): Likewise.
2149 (xcoff_swap_ldrel_in): Likewise.
2150 (xcoff_swap_ldrel_out): Likewise.
2151 (xcoff_create_csect_from_smclas): Likewise.
2152 * coff64-rs6000.c: Add missing prototypes.
2153 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2155 (xcoff64_swap_ldhdr_out): Likewise.
2156 (xcoff64_swap_ldsym_in): Likewise.
2157 (xcoff64_swap_ldsym_out): Likewise.
2158 (xcoff64_swap_ldrel_in): Likewise.
2159 (xcoff64_swap_ldrel_out): Likewise.
2160 (xcoff64_ppc_relocate_section): Make static.
2161 (xcoff64_slurp_armap): Likewise.
2162 (xcoff64_archive_p): Likewise.
2163 (xcoff64_openr_next_archived_file): Likewise.
2164 (xcoff64_sizeof_headers): Likewise.
2165 (xcoff64_is_lineno_count_overflow): Likewise.
2166 (xcoff64_is_reloc_count_overflow): Likewise.
2167 (xcoff64_loader_symbol_offset): Likewise.
2168 (xcoff64_loader_reloc_offset): Likewise.
2169 * elf64-gen.c: Add missing prototypes.
2171 2001-08-09 H.J. Lu <hjl@gnu.org>
2173 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2174 (bfd_elf_fprintf_vma): Likewise.
2176 2001-08-09 H.J. Lu <hjl@gnu.org>
2178 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2181 * bfd-in2.h: Regenerated.
2183 2001-08-09 H.J. Lu <hjl@gnu.org>
2185 * bfd-in.h (bfd_sprintf_vma): New prototype.
2186 (bfd_fprintf_vma): Likewise.
2187 (bfd_elf_sprintf_vma): Likewise.
2188 (bfd_elf_fprintf_vma): Likewise.
2189 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2190 * bfd-in2.h: Regenerated.
2192 * bfd.c (bfd_sprintf_vma): New. Defined.
2193 (bfd_fprintf_vma): Likewise.
2195 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2196 (bfd_elf_fprintf_vma): Likewise.
2198 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2200 * coff-rs6000.c: Add missing prototypes.
2201 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2202 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2203 xcoff_loader_reloc_offset): Make static.
2204 * dwarf1.c: Add missing prototypes.
2205 * dwarf2.c: Add missing prototypes.
2206 (struct abbrev_info): Move definition.
2207 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2208 * elf.c: Add missing prototypes.
2209 * elf32-gen.c: Likewise.
2210 * elf32-i386.c: Likewise.
2211 * elf32-ppc.c: Likewise.
2212 (ppc_elf_sort_rela): Use PTR instead of "void *".
2213 * elflink.h: Add missing prototypes. Formatting fixes.
2214 * merge.c: Add missing prototypes.
2215 (last4_eq): Use PTR instead of "void *".
2216 (last_eq): Likewise.
2217 * syms.c: Add missing prototypes.
2219 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2221 * bfd.c: Fix formatting.
2222 * bfd-in2.h: Regenerate.
2224 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2226 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2227 true (this target uses REL relocations) and 'pcrel_offset' to
2228 false (the PC is implied, not stored in the offset).
2230 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2232 1999-10-19 Linus Nordberg <linus@swox.se>
2233 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2234 * elfxx-target.h (elf_backend_want_got_sym): Define.
2235 (elfNN_bed): Add elf_backend_want_got_sym.
2236 * elflink.c (_bfd_elf_create_got_section): Define
2237 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2239 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2241 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2242 (find_rela_addend): New function.
2243 (parse_comp_unit): Call it to find the abbrev offset addend.
2244 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2245 members of dwarf2_debug as debugging information is read.
2247 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2249 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2250 targets as well as sh-pe.
2252 2001-08-03 Ben Harris <bjh21@netbsd.org>
2254 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2255 reloc from start of section when computing value for R_ARM_REL32
2258 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2260 From H.J. Lu <hjl@gnu.org>
2261 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2262 keep relocs for undefined syms if there are no dynamic sections in
2264 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2266 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2268 * cofflink.c (coff_link_check_ar_symbols): also search for
2269 __imp__symbol as well as _symbol.
2270 * linker.c (_bfd_generic_link_add_archive_symbols): also
2271 search for __imp__symbol as well as _symbol.
2273 2001-08-01 Adam Nemet <anemet@lnxw.com>
2275 * elf.c (elf_sort_sections): Return zero only as the last step.
2277 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2279 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2281 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2282 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2285 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2287 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2288 to match corresponding bfd_coff_backend data member.
2290 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2292 * Makefile.am: Update dependencies with "make dep-am".
2293 * Makefile.in: Regenerate
2295 2001-07-15 H.J. Lu <hjl@gnu.org>
2297 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2298 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2299 * Makefile.in: Regenerate.
2301 2001-07-11 H.J. Lu <hjl@gnu.org>
2303 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2304 flags when creating the reloc section if the ALLOC flag in the
2305 source section is set.
2307 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2309 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2310 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2311 * bfd-in2.h: Regenerate.
2312 * libbfd.h: Regenerate.
2313 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2315 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2316 (elfNN_ia64_check_relocs): Likewise.
2317 (elfNN_ia64_install_value): Likewise.
2318 (elfNN_ia64_relocate_section): Likewise.
2320 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2322 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2324 (elf32_sparc_check_relocs): Likewise.
2325 Only create .rela section for alloced sections in shared libraries.
2326 (elf32_sparc_relocate_section): Likewise.
2327 Remove redundant check.
2328 Optimize unaligned reloc usage.
2329 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2332 2001-07-11 H.J. Lu <hjl@gnu.org>
2334 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2335 ALLOC|LOAD flags as the source section for debugging sections
2336 when creating the reloc section.
2338 2001-07-05 Jim Wilson <wilson@redhat.com>
2340 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2341 the section of the bigger symbol.
2343 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2345 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2347 * peicode.h (coff_swap_scnhdr_in): For sections containing
2348 uninitialised data, only set their size to s_paddr if this does
2349 not reset their size to zero. MS's latest compilers will set
2352 2001-07-04 H.J. Lu <hjl@gnu.org>
2354 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2355 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2358 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2360 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2362 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2363 sections being discarded.
2365 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2367 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2368 instead of _bfd_elfcore_section_from_phdr.
2369 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2370 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2371 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2372 (elfcore_grok_prstatus): Likewise.
2373 (elfcore_grok_lwpstatus): Likewise.
2374 (bfd_get_elf_phdr_upper_bound): Likewise.
2375 (elfcore_make_note_pseudosection): Formatting.
2376 (_bfd_elfcore_strndup): Formatting.
2377 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2378 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2380 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2382 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2383 and _bfd_elfcore_strndup.
2384 (struct elf_backend_data): Add elf_backend_grok_prstatus
2385 and elf_backend_grok_psinfo.
2386 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2387 (elfcore_grok_prstatus): Use it.
2388 (elfcore_make_note_pseudosection): Likewise.
2389 (elfcore_strndup): Rename to...
2390 (_bfd_elfcore_strndup): Here, and make global.
2391 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2392 (elfcore_grok_note): Call elf_backend_grok_prstatus
2393 and elf_backend_grok_psinfo if available.
2394 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2395 (_bfd_elf32_mips_grok_psinfo): New function.
2396 (elf_backend_grok_prstatus): Define.
2397 (elf_backend_grok_psinfo): Define.
2398 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2399 (elf_backend_grok_psinfo): Likewise.
2400 (elfNN_bed): Include elf_backend_grok_prstatus and
2401 elf_backend_grok_psinfo.
2403 2001-06-29 H.J. Lu <hjl@gnu.org>
2405 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2406 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2407 is NULL before filling PLT.
2409 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2411 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2413 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2415 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2417 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2418 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2421 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2422 (IS_ABSOLUTE_RELOC): Define.
2423 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2424 (hppa_link_hash_newfunc): Always init it.
2425 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2426 create COPY relocs only when the reloc is in a read-only section.
2427 Instead, allocate space for a dynamic reloc to reference the
2428 library symbol directly. Keep track of space we allocate using
2430 (hppa_discard_copies): Delete, and move code to..
2431 (allocate_plt_and_got): ..here. Rename to
2432 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2433 relocs for non-shared link.
2434 (elf32_hppa_size_dynamic_sections): Update calls to above.
2435 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2436 in lieu of COPY relocs.
2438 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2440 (elf_i386_adjust_dynamic_symbol): ..nor here..
2441 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2443 (elf_i386_size_dynamic_sections): Fix a comment.
2444 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2445 involved in writing reloc out.
2447 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2449 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2450 Ensure syms are dynamic if we might be emitting a reloc.
2451 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2452 for undefweak or undefined syms..
2453 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2455 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2456 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2457 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2458 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2460 2001-06-24 H.J. Lu <hjl@gnu.org>
2462 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2463 strncasecmp/strcasecmp instead of strncmp/strcmp.
2465 2001-06-23 H.J. Lu <hjl@gnu.org>
2467 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2468 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2469 in the regular object file and treat the weak definition as
2472 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2474 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2475 unresolved_reloc test to exclude cases where we use "relocation"
2476 before setting it to point into the .got. Reinstate fudge for
2477 unresolved relocs in debugging sections.
2479 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2480 complicated tests for unresolvable relocs with a simple direct
2481 scheme using "unresolved_reloc" var.
2483 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2484 elf_i386_dyn_relocs. Update comment.
2485 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2487 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2489 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2491 (elf_i386_size_dynamic_sections): Likewise.
2492 (elf_i386_finish_dynamic_symbol): Likewise.
2493 (elf_i386_finish_dynamic_sections): Likewise.
2494 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2497 Avoid creating COPY relocs if possible.
2498 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2499 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2500 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2501 reloc is in a read-only section. Instead, allocate space for a
2502 dynamic reloc to reference the library symbol directly. Keep
2503 track of space we allocate using pcrel_relocs_copied.
2504 (discard_copies): Delete, and move code to ..
2505 (allocate_plt_and_got): ..here. Rename to
2506 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2507 relocs for non-shared link.
2508 (elf_i386_size_dynamic_sections): Update calls to above functions.
2509 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2510 more ugly logic to avoid "unresolvable relocation" error. Use
2511 htab shortcut in place of elf_hash_table macro.
2512 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2513 not always be created now.
2515 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2517 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2520 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2522 * configure.host (mips64-*-linux): Reformat.
2524 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2526 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2527 allocate local .got space. Use shortcuts from hash table for .got
2528 and .plt rather than comparing section names.
2529 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2530 adjusting index into local_got_refcounts to document what we are
2532 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2533 Tidy .got and .plt error checking.
2535 2001-06-20 Catherine Moore <clm@redhat.com>
2537 * elf-bfd.h (struct elf_backend_data):
2538 elf_backend_emit_relocs: New field: Function for emitting
2540 elf_backend_count_relocs: New field: Function for determining
2541 the number of relocs to be emitted.
2542 * elfxx-target.h: Provide default (NULL) values for
2543 elf_backend_emit_relocs and elf_backend_count_relocs.
2544 * elflink.h (elf_link_size_reloc_section): Make the hash table
2545 big enough to hold the relocs counted by either reloc_count or
2547 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2548 should be emitted, either because of a command line option
2549 stored in the info structure or because the target provides a
2550 special reloc emitting function.
2551 If the target provides a reloc counting function use it,
2552 unless performing a relocatable link or emitting all relocs.
2553 Also set the SEC_RELOC flag on any output section which will
2555 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2556 should be emitted, either because of a command line option
2557 stored in the info structure or because the target provides a
2558 special reloc emitting function.
2559 If the target provides a reloc emitting function, use it,
2560 unless performing a relocatable link or emitting all relocs.
2562 2001-06-20 H.J. Lu <hjl@gnu.org>
2564 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2565 allocate local .got space.
2567 2001-06-19 Andreas Jaeger <aj@suse.de>
2569 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2572 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2574 * elflink.h (struct elf_assign_sym_version_info): Remove member
2575 export_dynamic. All users changed to use info member.
2576 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2577 export_dynamic, instead use member in parameter info.
2578 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2579 bfd_elf64_size_dynamic_sections): Update prototype.
2580 * bfd-in2.h: Regenerate.
2582 2001-06-18 H.J. Lu <hjl@gnu.org>
2584 * elflink.h (elf_info_failed): Add a new field, verdefs.
2585 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2587 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2590 2001-06-17 H.J. Lu <hjl@gnu.org>
2592 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2593 readonly_reloc, to record if a relocation in the .rel.dyn
2594 section is against a read-only section.
2595 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2597 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2598 in the .rel.dyn section against a read-only section by setting
2599 DF_TEXTREL or readonly_reloc.
2600 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2602 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2603 there is a relocation in the .rel.dyn section against a
2605 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2608 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2610 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2611 function. Move flagword result into parameter list. Remove
2612 comment about setting bfd_error_handler to intercept failure
2614 * coffgen.c (make_a_section_from_file): Examine result of
2615 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2617 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2618 function. Move flagword result into parameter list.
2619 * libcoff.h: Regenerate.
2620 * libecoff.h: Regenerate.
2622 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2624 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2625 section is going to follow it.
2627 2001-06-12 Catherine Moore <clm@redhat.com>
2629 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2630 with the file_align entry from elf_backend_data.
2631 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2632 (elf_gc_record_vtentry): Likewise.
2634 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2636 * elflink.h: Whitespace changes.
2637 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2638 rather than "unsigned char".
2639 (elf_link_output_relocs): Likewise.
2640 (elf_link_input_bfd): Likewise.
2641 (elf_reloc_link_order): LIkewise.
2642 * elf.c: s/CONST/const/. Whitespace changes.
2643 * elf32-mips.c: Formatting fix.
2645 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2646 * Makefile.in: Regenerate.
2647 * po/Make-in: Remove trailing tab.
2649 2001-06-09 Philip Blundell <philb@gnu.org>
2651 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2653 (elf32_arm_plt_entry): Likewise.
2655 2001-06-08 H.J. Lu <hjl@gnu.org>
2657 * elf.c (swap_out_syms): Keep names for global section symbols.
2659 2001-06-07 H.J. Lu <hjl@gnu.org>
2661 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2662 MIPS-based machines need it.
2664 2001-06-07 H.J. Lu <hjl@gnu.org>
2666 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2669 * config.bfd: Remove ecoff from Linux/mips.
2671 2001-06-07 Andreas Jaeger <aj@suse.de>
2673 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2675 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2676 alignment of 8 for .rela sections; handle further relocations.
2678 2001-06-06 Christian Groessler <cpg@aladdin.de>
2680 * coff-z8k.c: Fix formatting.
2681 Fix howtos: howto->size was always 1.
2683 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2685 * configure.host (mips64*-*-linux*): Define.
2687 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2689 * elf32-i386.c (elf_i386_discard_copies): Rename to
2690 discard_copies, and use elf_link_hash_entry arg rather than
2691 elf_i386_link_hash_entry.
2692 (elf_i386_link_hash_traverse): Delete.
2693 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2694 Tidy sizing of dynamic sections.
2695 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2696 possible .plt entries.
2697 (elf_i386_gc_sweep_hook): Likewise.
2698 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2699 everything with plt.refcount <= 0.
2701 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2703 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2704 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2706 (allocate_plt_and_got): ..instead do it all here. New function.
2707 (elf_i386_size_dynamic_sections): Allocate local .got space and
2708 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2709 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2710 rather than gc variety).
2711 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2712 (elf_i386_relocate_section): Use it here and correct handling of
2713 R_386_GOT32. Provide section and offset for "unresolvable
2714 relocation" error message.
2715 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2717 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2718 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2719 (elf_i386_link_hash_table_create): Init them.
2720 (create_got_section): New function.
2721 (elf_i386_create_dynamic_sections): New function.
2722 (elf_backend_create_dynamic_sections): Set to above.
2723 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2724 calling bfd_get_section_by_name.
2725 (elf_i386_gc_sweep_hook): Likewise.
2726 (elf_i386_adjust_dynamic_symbol): Likewise.
2727 (elf_i386_size_dynamic_sections): Likewise.
2728 (elf_i386_relocate_section): Likewise.
2729 (elf_i386_finish_dynamic_sections): Likewise.
2731 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2733 2001-06-02 H.J. Lu <hjl@gnu.org>
2735 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2737 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2739 2001-06-02 H.J. Lu <hjl@gnu.org>
2741 * aout-cris.c (MACHTYPE_OK): New. Defined.
2743 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2745 * section.c (_bfd_strip_section_from_output): Handle NULL
2748 2001-06-02 H.J. Lu <hjl@gnu.org>
2750 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2751 rs6000coff64_vec only if BFD64 is defined.
2752 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2754 2001-06-02 H.J. Lu <hjl@gnu.org>
2756 * coff-ia64.c (ia64coff_object_p): Rewrite with
2757 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2759 2001-06-01 Andreas Jaeger <aj@suse.de>
2761 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2762 relocation, small reformatting.
2764 2001-05-29 Andreas Jaeger <aj@suse.de>
2766 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2767 (elf64_x86_64_relocate_section): Likewise.
2769 2001-05-30 Alan Modra <amodra@one.net.au>
2771 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2772 millicode. Don't allocate .got and .rela.got space here..
2773 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2774 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2776 (hppa_handle_PIC_calls): ..nor here..
2777 (allocate_plt_and_got): ..instead do it all here. New function.
2778 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2779 call allocate_plt_and_got. No need to zap .got if not dynamic.
2780 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2781 gc_common_final_link.
2782 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2783 (elf32_hppa_relocate_section): Use it here.
2784 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2785 dynamic_sections_created.
2786 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2788 2001-05-28 Andreas Jaeger <aj@suse.de>
2790 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2791 generic version since we want a hashsize of 4.
2792 (elf_backend_size_info): Likewise.
2794 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2796 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2798 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2799 (elf_link_input_bfd): Likewise.
2800 (elf_reloc_link_order): Likewise.
2801 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2802 relocations correctly.
2804 2001-05-28 Nicolas Pitre <nico@cam.org>
2806 * elf32-arm.h: fix PLT generation for big endian ARM
2808 2001-05-28 Alan Modra <amodra@one.net.au>
2810 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2811 for symbols forced local that need plabels.
2812 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2813 .plt.rela for local syms if non-shared.
2814 (hppa_build_one_stub): Mask lsb of plt.offset.
2815 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2816 (clobber_millicode_symbols): Correct comment.
2817 (elf32_hppa_relocate_section): Likewise.
2818 (elf32_hppa_finish_dynamic_symbol): Likewise.
2820 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2822 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2823 * bfd-in2.h: Regenerate.
2824 * libbfd.h: Regenerate.
2825 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2826 and BFD_RELOC_SPARC_UA64 mapping
2827 * elf64-sparc.c: Likewise.
2829 2001-05-25 H.J. Lu <hjl@gnu.org>
2831 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2832 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2833 (coff-rs6000.lo): Remove the old dependency.
2834 * Makefile.in: Rebuild.
2836 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2839 2001-05-25 H.J. Lu <hjl@gnu.org>
2841 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2842 rs6000coff_core_file_matches_executable_p,
2843 rs6000coff_core_file_failing_command and
2844 rs6000coff_core_file_failing_signal only if AIX_CORE is
2846 (pmac_xcoff_vec): Likewise.
2847 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2849 2001-05-25 Timothy Wall <twall@redhat.com>
2851 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2852 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2854 2001-05-25 H.J. Lu <hjl@gnu.org>
2856 * bfd-in2.h: Regenerated.
2857 * libcoff.h: Likewise.
2859 2001-05-25 Alan Modra <amodra@one.net.au>
2861 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2862 undefined millicode syms in shared libs.
2863 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2864 (elf32_hppa_check_relocs): Likewise.
2865 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2866 (elf32_hppa_size_dynamic_sections): Likewise.
2867 (elf32_hppa_relocate_section): Likewise.
2868 (elf32_hppa_finish_dynamic_symbol): Likewise.
2869 (elf32_hppa_finish_dynamic_sections): Likewise.
2871 2001-05-24 Tom Rix <trix@redhat.com>
2873 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2874 xcoff-target.h not used to define rs6000 or ppc bfd.
2877 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2880 * coff-rs6000.c : Many changes for 64 bit support. Move common
2881 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2884 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2885 linker now supported. Explictly define the rs6000coff64_vec.
2887 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2888 (coff_print_aux) same
2889 (coff_write_object_contents) same
2890 (coff_slurp_line_table) same
2892 * coffgen.c : (coff_fix_symbol_name) formatting
2893 (coff_mangle_symbols) xcoff 64 bit support
2894 (coff_write_symbol) same
2895 (coff_write_alien_symbol) same
2896 (coff_write_native_symbol) same
2897 (coff_write_symbols) same
2898 (coff_get_symbol_info) same
2899 (bfd_coff_get_syment) same
2900 (coff_print_symbol) same
2902 * config.bfd : add powerpc64-*-aix* target
2904 * libcoff-in.h : formatting
2906 * libcoff.h : move xcoff extern declarations to libxcoff.h
2908 * libxcoff.h : New file
2910 * xcofflink.c : Many changes for xcoff64 support. Move common
2911 structures to include/coff/xcoff.h. Move specific structure to
2912 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2913 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2915 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2918 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2920 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2922 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2925 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2927 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2928 * libbfd.h: Regenerate.
2929 * bfd-in2.h: Regenerate.
2931 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2932 * archures.c (bfd_mach_mips12000): Define.
2933 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2934 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2936 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2937 * bfd-in2.h: Regenerate.
2938 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2940 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2942 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2943 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2944 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2945 that is used by GCC.
2947 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2949 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2950 of entries in a structured section.
2951 * elf.c: Use new macro.
2952 * elf32-i386.c: Use new macro.
2953 * elf32-mips.c: Use new macro.
2954 * elf64-alpha.c: Use new macro.
2955 * elf64-sparc.c: Use new macro.
2956 * elfcode.h: Use new macro.
2957 * elflink.h: Use new macro.
2959 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2961 * bfdint.texi: Replace -oformat with --oformat.
2963 2001-05-21 Andreas Jaeger <aj@suse.de>
2965 * dwarf2.c (decode_line_info): Fix error message.
2966 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2967 adjust error message.
2969 2001-05-18 H.J. Lu <hjl@gnu.org>
2971 * elflink.h (elf_link_add_object_symbols): Revert the last
2974 2001-05-17 Alan Modra <amodra@one.net.au>
2976 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2977 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2978 (hppa_build_one_stub): Add an assert to check plt.offset.
2980 2001-05-17 H.J. Lu <hjl@gnu.org>
2982 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2983 version definition to basename of the output filename.
2985 2001-05-17 H.J. Lu <hjl@gnu.org>
2987 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2988 basename of the bfd filename.
2990 2001-05-16 Alan Modra <amodra@one.net.au>
2992 * section.c (asection): Add linker_has_input field.
2993 (STD_SECTION): Adjust initialization to suit.
2994 * ecoff.c (bfd_debug_section): Likewise.
2995 * bfd-in2.h: Regenerate.
2997 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2999 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3000 negative 32-bit operands to 16 operands when the operand is
3001 going to be zero-extended by the modified opcode.
3003 2001-05-12 Peter Targett <peter.targett@arccores.com>
3005 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3006 name for 'arc5' core versions.
3007 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3009 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3011 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3013 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3015 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3017 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3018 to .gnu.linkonce.t.FOO text section.
3020 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3022 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3023 fields, change sec into secinfo.
3024 (struct sec_merge_info): Add chain, remove last fields.
3025 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3026 (sec_merge_hash_lookup): If lookup could not use a string only
3027 because it has bad alignment, mark the old string for deletion.
3028 (sec_merge_add): Add secinfo argument. Don't compute entry's
3029 position, instead record the section.
3030 (sec_merge_emit): Update for the sec into secinfo change in
3031 struct sec_merge_hash_entry.
3032 (_bfd_merge_section): Only record the section for merging, defer
3033 putting strings into the hash table.
3034 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3035 _bfd_merge_sections): New functions.
3036 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3038 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3039 (_bfd_nolink_bfd_merge_sections): Define.
3040 * libbfd.h: Likewise.
3041 (bfd_generic_merge_sections): Add prototype.
3042 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3043 (struct bfd_target): Likewise.
3044 * bfd.c (bfd_merge_sections): Define.
3045 * bfd-in2.h: Rebuilt.
3046 * elf.c (_bfd_elf_merge_sections): New function.
3047 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3048 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3049 * reloc.c (bfd_generic_merge_sections): New function.
3050 * vms.c (vms_bfd_merge_sections): New function.
3051 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3052 * aout-target.h (MY_bfd_merge_sections): Define.
3053 * aout-tic30.c (MY_bfd_merge_sections): Define.
3054 * binary.c (binary_bfd_merge_sections): Define.
3055 * bout.c (b_out_bfd_merge_sections): Define.
3056 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3057 * coffcode.c (coff_bfd_merge_sections): Define.
3058 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3059 * i386msdos.c (msdos_bfd_merge_sections): Define.
3060 * i386os9k.c (os9k_bfd_merge_sections): Define.
3061 * ieee.c (ieee_bfd_merge_sections): Define.
3062 * ihex.c (ihex_bfd_merge_sections): Define.
3063 * nlm-target.h (nlm_bfd_merge_sections): Define.
3064 * oasys.c (oasys_bfd_merge_sections): Define.
3065 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3066 * som.c (som_bfd_merge_sections): Define.
3067 * srec.c (srec_bfd_merge_sections): Define.
3068 * tekhex.c (tekhex_bfd_merge_sections): Define.
3069 * versados.c (versados_bfd_merge_sections): Define.
3070 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3072 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3074 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3075 to be unsigned long, in order to match its use.
3077 2001-05-10 H.J. Lu <hjl@gnu.org>
3079 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3082 2001-05-09 H.J. Lu <hjl@gnu.org>
3084 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3085 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3086 Remove the unused veriable `dynver'.
3088 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3090 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3091 NULL or is not COFF.
3092 (coff_i386_rtype_to_howto): Don't dump core if output section
3095 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3097 * ecoff.c (bfd_debug_section): Fix initialization.
3098 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3099 is always a positive integer. Cast away sign mismatch.
3100 * elf32-mips.c: Fix misleading comment and typo.
3101 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3103 * elflink.c: Fix typo.
3104 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3105 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3107 2001-05-04 Richard Henderson <rth@redhat.com>
3109 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3111 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3113 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3114 EF_ARM_HASENTRY if the start address is set.
3116 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3118 * targets.c (_bfd_target_vector_entries): Compute value based on
3119 the size of the _bfd_target_vector and not bfd_target_vector.
3121 2001-05-03 H.J. Lu <hjl@gnu.org>
3123 * elfcode.h: Include "libiberty.h".
3125 * elflink.h (elf_link_add_object_symbols): Set
3126 elf_dt_name (abfd) to basename of the bfd filename.
3127 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3128 of the bfd filename.
3130 2001-05-03 Andreas Jaeger <aj@suse.de>
3132 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3133 (elf_generic_info_to_howto_rel): Likewise.
3134 * coff-alpha.c (reloc_nil): Likewise.
3135 (alpha_ecoff_bad_format_hook): Likewise.
3136 (alpha_adjust_reloc_out): Likewise.
3137 (alpha_bfd_reloc_type_lookup): Likewise.
3138 (alpha_convert_external_reloc): Likewise.
3139 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3140 (elf64_alpha_reloc_bad): Likewise.
3141 (elf64_alpha_reloc_gpdisp): Likewise.
3142 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3143 (elf64_alpha_info_to_howto): Likewise.
3144 (elf64_alpha_add_symbol_hook): Likewise.
3145 (elf64_alpha_create_got_section): Likewise.
3146 (elf64_alpha_is_local_label_name): Likewise.
3147 (elf64_alpha_merge_ind_symbols): Likewise.
3148 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3149 (mips_elf64_get_reloc_upper_bound): Likewise.
3150 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3151 (nlm_alpha_get_public_offset): Likewise.
3153 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3155 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3156 about overflow in R_OPENRISC_LO_16_IN_INSN and
3157 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3159 2001-04-30 H.J. Lu <hjl@gnu.org>
3161 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3162 only for ELF_LINK_FORCED_LOCAL.
3163 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3164 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3165 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3167 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3168 if the symbol has hidden or internal visibility.
3170 2001-04-30 Alan Modra <amodra@one.net.au>
3172 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3173 calls to undefined weak symbols.
3175 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3177 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3178 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3180 2001-04-27 Andreas Jaeger <aj@suse.de>
3182 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3183 out handled entries.
3184 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3185 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3186 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3189 2001-04-27 Sean McNeil <sean@mcneil.com>
3191 * config.bfd: Add arm-vxworks target.
3192 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3193 addend (fro VXworks targets).
3195 2001-04-26 H.J. Lu <hjl@gnu.org>
3197 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3200 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3202 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3203 * bfd-in2.h: Regenerated.
3205 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3207 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3208 (struct sec_merge_hash): Remove alignment_power.
3209 (sec_merge_hash_newfunc): Clear alignment.
3210 (sec_merge_hash_lookup): Pass alignment as argument.
3211 Use hashp->root.next, not hashp->next to walk the hash chain.
3212 If a string already in the hashtable does not have required
3213 alignment, create a new hashtable entry.
3214 (sec_merge_init): Remove alignment_power argument.
3215 (sec_merge_add): Add alignment argument.
3216 (sec_merge_emit): Alignment is now a per-entity thing, not per
3218 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3219 for proper alignment.
3220 Pass alignment information to sec_merge_add.
3222 2001-04-24 Christian Groessler <cpg@aladdin.de>
3224 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3225 and R_REL16 reloc types; accept odd values for R_REL16 type
3227 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3229 * cpu-openrisc.c: New file.
3230 * elf32-openrisc.c: Likewise.
3232 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3233 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3234 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3235 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3236 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3237 * Makefile.in: Regenerated.
3238 * config.bfd: (openrisc-*-elf): New target.
3239 * configure.in (bfd_elf32_openrisc_vec): New vector.
3240 * configure: Regenerated.
3241 * libbfd.h: Regenerated.
3242 * bfd-in2.h: Regenerated.
3243 * reloc.c: Add OpenRISC relocations.
3244 * targets.c (bfd_elf32_openrisc_vec): Declare.
3245 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3246 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3247 (bfd_openrisc_arch): Declare.
3248 (bfd_archures_list): Add bfd_openrisc_arch.
3249 * elf.c (prep_headers): Add bfd_arch_openrisc.
3251 2001-04-23 Bo Thorsen <bo@suse.de>
3253 * elf64-x86-64.c: Add c++ vtable hack.
3254 Small whitespace and comment changes.
3256 2001-04-19 Andreas Jaeger <aj@suse.de>
3258 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3259 (elf64_x86_64_plt_entry): Likewise.
3260 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3261 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3263 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3265 * elf32-cris.c: Tweak comments related to dynamic linking.
3266 (cris_elf_relocate_section): When not creating shared object, fill
3267 in the .got table for any symbol not in the dynamic symbol table.
3268 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3269 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3271 (cris_elf_check_relocs): Use variable r_type in all places rather
3272 than the original expression. Add default case in switch for
3274 (elf_cris_size_dynamic_sections): Iterate over
3275 elf_cris_discard_excess_program_dynamics when not creating shared
3277 (elf_cris_discard_excess_dso_dynamics): Renamed from
3278 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3279 (elf_cris_discard_excess_program_dynamics): New.
3281 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3283 * coffcode.h (coff_write_object_contents): Use
3284 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3286 2001-04-14 H.J. Lu <hjl@gnu.org>
3288 * bfd-in2.h: Regenerate.
3290 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3292 * section.c (STD_SECTION): Add entsize.
3294 2001-04-13 H.J. Lu <hjl@gnu.org>
3296 * section.c (SEC_MERGE): Define new flag for merging.
3297 (SEC_STRINGS): Likewise.
3298 (entsize): New field.
3300 2001-04-13 Roger Sayle <roger@metaphorics.com>
3302 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3303 flag on pe-i386 targets.
3305 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3307 * libbfd-in.h (_bfd_merge_section): New.
3308 (_bfd_write_merged_section): New.
3309 (_bfd_merged_section_offset): New.
3310 * libbfd.h: Rebuilt.
3311 * linker.c (_bfd_generic_link_output_symbols): Handle
3313 * aoutx.h (aout_link_write_symbols): Likewise.
3314 * pdp11.c (aout_link_write_symbols): Likewise.
3315 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3316 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3318 (elf_link_sec_merge_syms): New.
3319 (elf_link_input_bfd): Call _bfd_merged_section_offset
3320 and _bfd_write_merged_section.
3321 Handle discard_sec_merge.
3322 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3324 (struct bfd_elf_section_data): Likewise.
3325 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3326 SEC_STRINGS section flags and entsize from their ELF counterparts.
3327 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3328 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3329 from their BFD counterparts.
3330 * merge.c: New file.
3331 * Makefile.am: Add strtab.lo.
3332 * Makefile.in: Rebuilt.
3334 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3336 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3337 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3339 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3341 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3342 endian MIPS ELF target.
3343 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3346 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3347 64bit big endian MIPS ELF target.
3348 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3349 endian MIPS ELF target.
3350 * configure: Regenerated.
3352 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3353 little endian targets.
3354 (mips_elf_sym_is_global): Handle traditional targets.
3356 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3357 64bit big endian MIPS ELF target.
3358 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3359 endian MIPS ELF target.
3361 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3362 and bfd_elf64_tradlittlemips_vec.
3364 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3366 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3367 ordinary "progbits" section.
3369 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3371 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3372 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3374 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3376 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3378 2001-03-30 H.J. Lu <hjl@gnu.org>
3380 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3381 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3383 2001-03-26 H.J. Lu <hjl@gnu.org>
3385 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3386 if there are any relocations for generic ELF.
3387 (bfd_elf32_bfd_link_add_symbols): Defined to
3388 elf32_generic_link_add_symbols.
3389 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3390 if there are any relocations for generic ELF.
3391 (bfd_elf64_bfd_link_add_symbols): Defined to
3392 elf64_generic_link_add_symbols.
3394 2001-03-23 Nick Clifton <nickc@redhat.com>
3396 * Makefile.am (BUILD_CFILES): New variable: List of C source
3397 files created in build directory.
3398 (BUILD_HFILES): New variable: List of header files created in
3401 (po/POTFILES.in): Replace rule with empty entry.
3402 (po/SRC-POTFILES.in): New rule: Create a list of source files
3403 in the source directory.
3404 (po/BLD-POTFILES.in): New rule: Create a list of source files
3405 in the build directory.
3406 (MOSTLYCLEAN): Do not delete source files created in build
3408 * Makefile.in: Regenerate.
3409 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3411 * configure: Regenerate.
3413 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3415 Add .. to the search path when building bfd.pot.
3416 Delete POTFILES when performing distclean.
3417 Add comment describing why distclean is broken in maintainer mode.
3418 * po/POTFILES.in: Delete.
3419 * po/SRC-POTFILES.in: New file.
3420 * po/BLD-POTFILES.in: New file.
3421 * po/bfd.pot: Regenerate.
3423 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3425 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3426 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3427 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3428 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3429 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3430 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3432 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3433 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3434 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3435 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3436 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3437 New HOWTO members for new relocs.
3438 (cris_reloc_map): Map new relocs.
3439 (ELF_DYNAMIC_INTERPRETER): Define.
3440 (PLT_ENTRY_SIZE): Define.
3441 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3442 elf_cris_pic_plt_entry): New, PLT templates.
3443 (struct elf_cris_pcrel_relocs_copied, struct
3444 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3445 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3446 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3447 positive values. Adjust PCREL relocs to be relative to location
3449 (cris_elf_relocate_section): Handle relocations to dynamic
3450 objects. Handle new relocations. Call error handler when seeing
3451 non-PIC relocation for read-only sections while generating shared
3453 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3455 (bfd_elf32_bfd_link_hash_table_create,
3456 elf_backend_adjust_dynamic_symbol,
3457 elf_backend_size_dynamic_sections,
3458 elf_backend_finish_dynamic_symbol,
3459 elf_backend_finish_dynamic_sections,
3460 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3461 elf_backend_hide_symbol, elf_backend_want_got_plt,
3462 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3463 elf_backend_got_header_size, elf_backend_plt_header_size):
3466 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3467 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3468 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3469 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3470 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3471 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3472 * bfd-in2.h, libbfd.h: Regenerate.
3474 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3476 (_bfd_mips_elf_relocate_section): Give a better error message when
3477 a relocation is not recognized.
3479 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3481 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3482 non-NULL before attempting to dereference.
3484 2001-03-20 H.J. Lu <hjl@gnu.org>
3486 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3487 * configure: Rebuild.
3489 2001-03-20 Andreas Schwab <schwab@suse.de>
3491 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3492 relocation value when resolving a reference from a debugging
3495 2001-03-16 Scott Thomason <SThomaso@hii.com>
3497 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3498 (xcoff64_swap_sym_out): Fix syntax errors.
3500 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3502 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3504 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3506 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3507 (hppa_link_hash_newfunc): Init it.
3508 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3509 section appears to be non-PIC.
3510 (final_link_relocate): Likewise.
3511 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3512 possible candidate function, and set pic_call for those that will
3513 only have a .plt entry for the PIC call stub.
3514 (hppa_handle_PIC_calls): Set maybe_pic_call.
3516 2001-03-12 DJ Delorie <dj@redhat.com>
3518 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3519 R_SH_DIR8WP* relocs if they're against external symbols, else
3520 they're just for relaxing. Validate the reloc values.
3522 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3524 * binary.c (bfd_external_binary_architecture): Declare.
3525 (binary_object_p): If bfd_external_binary_architecture is defined,
3526 set the architecture to this string.
3528 2001-03-11 Philip Blundell <philb@gnu.org>
3530 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3531 entries that could serve as a definition for a weak symbol.
3533 2001-03-08 Nick Clifton <nickc@redhat.com>
3535 * Most files: Update copyright notices using Perl script created
3536 by Kevin Buettner <kevinb@redhat.com>.
3538 2001-03-07 Nick Clifton <nickc@redhat.com>
3540 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3541 prior patch on ! defined OLD_ARM_ABI.
3543 2001-03-07 Andreas Jaeger <aj@suse.de>
3545 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3546 some relocation values.
3548 2001-03-06 Nick Clifton <nickc@redhat.com>
3550 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3551 of offset in BLX(1) instruction.
3552 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3553 offset in BLX(1) instruction.
3556 2001-03-06 Nick Clifton <nickc@redhat.com>
3558 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3559 BFD_RELOC_THUMB_PCREL_BLX.
3561 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3563 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3564 * bfd-in2.h: Regenerate.
3565 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3566 * ieee.c (ieee_write_processor): Set proper id for
3569 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3571 * configure.in: Add s390 target.
3572 * configure: Regenerate.
3574 2001-02-28 Andreas Jaeger <aj@suse.de>
3576 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3579 2001-02-28 Philip Blundell <pb@futuretv.com>
3581 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3582 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3584 2001-02-27 H.J. Lu <hjl@gnu.org>
3586 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3587 abfd->tdata.aout_data == NULL.
3589 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3591 * elf32-hppa.c: Correct field selector in stub comments.
3592 (clobber_millicode_symbols): Formatting fix.
3594 * configure.in: Bump version to 2.11.90.
3595 * configure: Regenerate.
3596 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3597 (CFILES): $SOURCE_CFILES + generated C files.
3598 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3600 * Makefile.in: Regenerate.
3601 * doc/Makefile.in: This too.
3603 2001-02-26 Timothy Wall <twall@cygnus.com>
3605 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3608 2001-02-26 Nick Clifton <nickc@redhat.com>
3610 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3611 up, replacing multiple if statements with a switch.
3612 (handle_COMDAT): New function.
3614 2001-02-26 H.J. Lu <hjl@gnu.org>
3616 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3617 a warning for section flags we do not handle instead of
3620 2001-02-26 Andreas Jaeger <aj@suse.de>
3622 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3624 2001-02-22 Timothy Wall <twall@cygnus.com>
3626 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3627 * configure.in: Add objects for elf64_ia64_aix vectors.
3628 * configure: Regenerated.
3629 * configure.host: Recognize ia64-*-aix*.
3630 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3631 for AIX. AIX5 requires most relocations to be dynamic (*all*
3632 binaries are somewhat similar to shared libraries).
3633 * targets.c: Add elf64_ia64_aix vectors.
3635 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3637 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3638 C8 said "1" instead of "8". Clarify error string for IMM22:
3639 "signed integer" instead of just "integer".
3641 2001-02-20 Andreas Jaeger <aj@suse.de>
3643 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3644 PLT entries that could serve as a definition for a weak symbol.
3646 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3648 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3649 entries that could serve as a definition for a weak symbol.
3650 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3652 2001-02-18 David O'Brien <obrien@FreeBSD>
3654 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3655 FreeBSD/i386-CURRENT differently until I can figure out the needed
3657 * configure: Regenerate.
3658 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3659 FreeBSD/PowerPC, and FreeBSD/sparc64.
3661 2001-02-18 lars brinkhoff <lars@nocrew.org>
3663 * Makefile.am: Add PDP-11 a.out target.
3664 * config.bfd: Likewise.
3665 * configure.in: Likewise.
3666 * targets.c: Likewise.
3667 * archures.c: Likewise.
3668 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3669 * libbfd.h: Add PDP-11 relocations.
3670 * reloc.c: Likewise.
3671 * cpu-pdp11.c: New file.
3672 * pdp11.c: New file.
3674 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3675 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3676 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3677 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3678 (GET_MAGIC): New macro.
3679 (PUT_MAGIC): Likewise.
3680 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3682 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3684 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3685 multiarch needs it).
3687 2001-02-18 H.J. Lu <hjl@gnu.org>
3689 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3692 2001-02-18 Kazu Hirata <kazu@hxi.com>
3694 * vms-misc.c: Fix formatting.
3696 2001-02-16 Kazu Hirata <kazu@hxi.com>
3698 * vms.c: Fix formatting.
3700 2001-02-14 H.J. Lu <hjl@gnu.org>
3702 * elf.c (elf_find_function): New function.
3703 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3704 the file name and function name.
3706 2001-02-14 Nick Clifton <nickc@redhat.com>
3708 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3711 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3712 (BFD64_BACKENDS): Add pepigen.c
3713 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3715 * Makefile.in: Regenerate.
3716 * configure: Regenerate.
3717 * po/POTFILES.in: Regenerate.
3718 * po/bfd.pot: Regenerate.
3720 2001-02-14 H.J. Lu <hjl@gnu.org>
3722 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3723 force_minimum_alignment.
3725 2001-02-14 Bo Thorsen <bo@suse.de>
3727 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3728 (elf64_86_64_size_info): Struct added to fix a problem
3729 with the hashtable string entries.
3730 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3731 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3732 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3733 remove the FIXME for this.
3734 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3735 section. Also removed the FIXME for it.
3736 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3737 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3738 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3740 2001-02-13 Richard Henderson <rth@redhat.com>
3742 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3743 and not user provided.
3745 2001-02-13 Kazu Hirata <kazu@hxi.com>
3747 * vms.c (vms_print_symbol): Remove unreachable code.
3749 * rs6000-core.c: Fix formatting.
3751 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3753 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3754 as _bfd_XXi_only_swap_filehdr_out.
3755 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3756 pe->force_minimum_alignment to TRUE.
3757 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3758 PEI_TARGET_SUBSYSTEM.
3759 (pe_print_private_bfd_data): Call
3760 _bfd_XX_print_private_bfd_data_common() instead of
3761 _bfd_pe_print_private_bfd_data_common().
3762 (pe_bfd_copy_private_bfd_data): Call
3763 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3764 _bfd_pe_bfd_copy_private_bfd_data_common().
3765 (coff_bfd_copy_private_section_data): Define as
3766 _bfd_XX_bfd_copy_private_section_data instead of
3767 _bfd_pe_bfd_copy_private_section_data.
3768 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3769 of a _bfd_pe_get_symbol_info.
3773 * peXXigen.c: Renamed from peigen.c.
3774 (COFF_WITH_XX): Define this macro (will get expanded into
3775 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3776 compiled as peigen.c or pepigen.c.
3777 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3778 define the canonical PEP structures and definitions.
3779 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3780 effect, enforce minimum file and section alignments. If
3781 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3782 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3783 so, by default, this is a no-op).
3785 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3786 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3787 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3788 _bfd_pefoo if it's not defined. Use these macros to define
3791 * libcoff.h (pe_tdata): Add members target_subsystem and
3792 force_minimum_alignment.
3794 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3796 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3798 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3801 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3802 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3805 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3806 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3807 (peigen.c): Add rule to generate from peXXigen.c.
3809 (pepigen.lo): List dependencies for pepigen.lo.
3811 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3813 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3814 $global$ referenced but not defined, set its value here.
3816 2001-02-09 Bo Thorsen <bo@suse.de>
3818 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3820 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3822 (elf64_x86_64_relocate_section): Fix formatting.
3823 (elf64_x86_64_relocate_section): Fix addend for relocation of
3824 R_X86_64_(8|16|32|PC8|PC16|PC32).
3826 2001-02-12 Jan Hubicka <jh@suse.cz>
3828 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3830 2001-02-11 H.J. Lu <hjl@gnu.org>
3832 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3835 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3837 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3838 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3839 relocations against dynsym symbols.
3841 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3842 the R_MIPS_26 relocation.
3843 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3844 the R_MIPS_26 relocation.
3845 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3847 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3848 the R_MIPS_26 relocation.
3849 (mips_elf64_howto_table_rela): Likewise.
3851 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3852 member to mark symbols that have non-CALL relocations against
3854 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3855 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3857 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3858 non-CALL relocation against it is encountered.
3859 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3860 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3861 no_fn_stub is not set.
3863 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3864 information from the real symbol for indirect ones.
3865 Check no_fn_stub to find out if a symbol has a function stub
3868 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3870 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3871 * Makefile.in: Regenerate.
3873 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3875 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3876 true if section name is an unwind table section name.
3877 (elfNN_ia64_additional_program_headers): Count each unwind section
3879 (elfNN_ia64_modify_segment_map): Install one unwind program header
3880 for each unwind separate section. Note: normally the linker
3881 script merges the unwind sections that go into a single segment,
3882 so this still generates at most one unwind program header per
3885 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3886 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3887 (elfNN_ia64_fake_sections): Mark sections with names that start
3888 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3891 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3892 Use it to make sh_info in unwind section point to the text section
3895 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3897 * Makefile.am: Add linux target for S/390.
3898 * archures.c: Likewise.
3899 * bfd-in2.h: Likewise.
3900 * config.bfd: Likewise.
3901 * configure.in: Likewise.
3903 * libbfd.h: Likewise.
3904 * targets.c: Likewise.
3905 * cpu-s390.c: New file.
3906 * elf32-s390.c: New file.
3907 * elf64-s390.c: New file.
3909 2001-02-09 Nick Clifton <nickc@redhat.com>
3911 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3912 ImageBase. This has already been done by coff_swap_hdr_in.
3914 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3916 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3918 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3920 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3921 (sparc64_elf_relocate_section): Likewise.
3923 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3925 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3926 similar to R_SPARC_32.
3927 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3929 2001-02-08 H.J. Lu <hjl@gnu.org>
3931 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3932 relocation entries for weak definitions when building DSO with
3935 2001-02-08 Richard Henderson <rth@redhat.com>
3937 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3938 before visibility. Locally defined protected symbols are not
3941 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3943 * config.bfd: Enable coff64 for rs6000-*. Patch from
3944 <hzoli@austin.ibm.com>.
3946 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3948 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3949 found, do not attempt to find dwarf2 info before returning.
3951 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3953 * elflink.h (is_global_symbol_definition): Rename to
3954 is_global_data_symbol_definition and have it reject function
3956 (elf_link_is_defined_archive_symbol): Use renamed function.
3958 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3960 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3961 * libbfd.h (bfd_target_vector): Likewise.
3962 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3963 make static; create pointer reference named bfd_target_vector.
3964 (_bfd_target_vector_entries): Calculate this based on the array
3965 typed _bfd_target_vector.
3967 2001-02-06 H.J. Lu <hjl@gnu.org>
3969 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3970 internal symbols are not dynamic.
3971 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3973 2001-02-06 Nick Clifton <nickc@redhat.com>
3975 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3976 that it will not be pulled into the list of files that make up
3978 * Makefile.in: Regenerate.
3979 * po/bfd.pot: Regenerate.
3981 2001-02-06 H.J. Lu <hjl@gnu.org>
3983 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3985 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3986 external_PEI_IMAGE_hdr.
3988 2001-02-06 Kazu Hirata <kazu@hxi.com>
3990 * elf-m10200.c: Fix formatting.
3992 2001-02-04 Nick Clifton <nickc@redhat.com>
3994 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3995 rel, it will be handled later on.
3997 2001-02-02 Fred Fish <fnf@ninemoons.com>
3999 * Makefile.in: Fix typo.
4001 2001-02-01 Kazu Hirata <kazu@hxi.com>
4003 * elf-m10300.c: Fix formatting.
4005 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4007 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4008 (elf_backend_get_symbol_type): Define.
4009 (elf64_hppa_object_p): Set architecture and machine from elf
4012 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4014 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4017 2001-01-26 Richard Henderson <rth@redhat.com>
4019 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4020 for non-default visibility.
4021 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4022 delete ugly macro and replace with pretty function.
4024 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4026 * coff-go32.c: Update copyright.
4027 * coff-stgo32.c: Likewise.
4028 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4029 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4030 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4031 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4033 2001-01-25 Kazu Hirata <kazu@hxi.com>
4035 * bfd-in2.h: Rebuild.
4036 * libbfd.h: Likewise.
4038 2001-01-23 H.J. Lu <hjl@gnu.org>
4040 * bfd-in2.h: Rebuild.
4042 2001-01-23 H.J. Lu <hjl@gnu.org>
4044 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4045 is NULL or PRIV(vms_rec) is outside of the buffer.
4047 2001-01-23 Kazu Hirata <kazu@hxi.com>
4049 * coff64-rs6000.c: Fix formatting.
4050 * coff-arm.c: Likewise.
4051 * coffgen.c: Likewise.
4052 * cofflink.c: Likewise.
4053 * coff-mcore.c: Likewise.
4054 * coff-mips.c: Likewise.
4055 * coff-pmac.c: Likewise.
4056 * coff-ppc.c: Likewise.
4057 * coff-rs6000.c: Likewise.
4058 * elf32.c: Likewise.
4059 * elf32-fr30.c: Likewise.
4060 * elf32-i370.c: Likewise.
4061 * elf32-i860.c: Likewise.
4062 * elf32-m32r.c: Likewise.
4063 * elf32-m68k.c: Likewise.
4064 * elf32-mcore.c: Likewise.
4065 * elf32-ppc.c: Likewise.
4066 * elf32-sh.c: Likewise.
4067 * elf32-v850.c: Likewise.
4068 * elf64-alpha.c: Likewise.
4069 * elf64-sparc.c: Likewise.
4070 * elflink.c: Likewise.
4071 * elflink.h: Likewise.
4072 * elf-m10200.c: Likewise.
4073 * elf-m10300.c: Likewise.
4074 * elfxx-ia64.c: Likewise.
4076 * aoutx.h: Fix formatting.
4078 * bfd-in2.h: Likewise.
4079 * bfd-in.h: Likewise.
4080 * cpu-i386.c: Likewise.
4081 * cpu-m68hc11.c: Likewise.
4082 * dwarf2.c: Likewise.
4083 * elf64-x86-64.c: Likewise.
4084 * format.c: Likewise.
4085 * freebsd.h: Likewise.
4087 * hp300hpux.c: Likewise.
4088 * hppabsd-core.c: Likewise.
4089 * hpux-core.c: Likewise.
4091 2001-01-22 Bo Thorsen <bo@suse.de>
4093 * elf64-x86-64.c: Added PIC support for X86-64.
4094 (elf64_x86_64_link_hash_newfunc): Function added.
4095 (elf64_x86_64_link_hash_table_create): Likewise.
4096 (elf64_x86_64_check_relocs): Likewise.
4097 (elf64_x86_64_gc_mark_hook): Likewise.
4098 (elf64_x86_64_gc_sweep_hook): Likewise.
4099 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4100 (elf64_x86_64_size_dynamic_sections): Likewise.
4101 (elf64_x86_64_discard_copies): Likewise.
4102 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4103 (elf64_x86_64_finish_dynamic_sections): Likewise.
4104 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4106 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4108 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4109 * Makefile.in: Regenerate.
4111 2001-01-21 Kazu Hirata <kazu@hxi.com>
4113 * coff-a29k.c: Fix formatting.
4115 2001-01-19 H.J. Lu <hjl@gnu.org>
4117 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4118 relocation section names.
4119 (elf_i386_relocate_section): Report files with bad relocation
4120 section names and return false.
4122 2001-01-17 Bo Thorsen <bo@suse.de>
4124 * targets.c: Alphabetize list of xvecs.
4126 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4128 * config.bfd: Add linux target variant for elfxx-hppa.
4129 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4130 bfd_elf64_hppa_linux_vec.
4131 * configure: Regenerate.
4132 * elf64-hppa.c: Include elf64-target.h again to support linux
4134 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4135 * elf32-hppa.c: Include elf32-target.h again to support linux
4137 (elf32_hppa_post_process_headers): New function.
4138 (elf_backend_post_process_headers): Define.
4139 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4140 bfd_elf32_hppa_linux_vec.
4142 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4143 and data_segment_base fields.
4144 (elf32_hppa_link_hash_table_create ): Init them.
4145 (elf32_hppa_check_relocs): Update comments.
4146 (hppa_record_segment_addr): New function.
4147 (elf32_hppa_relocate_section): Call it.
4148 (final_link_relocate): Handle R_PARISC_SEGREL32.
4149 (elf32_hppa_final_link): New function.
4150 (bfd_elf32_bfd_final_link): Define to call it.
4151 (hppa_unwind_entry_compare): New function.
4152 * cache.c (bfd_open_file): Create files in write+read mode.
4154 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4155 SEGREL32 and numerous other relocs. Change duplicate
4156 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4158 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4161 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4162 .plt entries for DT_INIT and DT_FINI.
4163 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4164 DT_INIT and DT_FINI.
4166 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4167 offsets for stub .plt access if wide mode. Check offset in range.
4169 2001-01-13 Nick Clifton <nickc@redhat.com>
4171 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4174 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4177 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4179 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4180 * configure: Regenerate.
4182 2001-01-11 Peter Targett <peter.targett@arccores.com>
4184 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4185 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4186 * cpu-arc.c (arch_info_struct): Add entries for variants.
4187 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4188 (arc_get_mach) Don't assume machine names prefixed arc- before
4190 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4192 (arc_elf_final_write_processing) Likewise.
4193 (ELF_MACHINE_CODE) Use EM_ARC.
4195 2001-01-10 Nick Clifton <nickc@redhat.com>
4197 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4199 2001-01-07 Philip Blundell <philb@gnu.org>
4201 * README: Replace `bug-gnu-utils@gnu.org' with
4202 `bug-binutils@gnu.org'.
4204 2001-01-04 Kazu Hirata <kazu@hxi.com>
4206 * som.c: Fix formatting.
4208 2001-01-03 Kazu Hirata <kazu@hxi.com>
4210 * ecoffswap.h: Fix formatting.
4211 * elf-bfd.h: Likewise.
4212 * elfarm-nabi.c: Likewise.
4213 * elfarm-oabi.c: Likewise.
4214 * elfcode.h: Likewise.
4215 * elfcore.h: Likewise.
4216 * elflink.c: Likewise.
4217 * elflink.h: Likewise.
4218 * elfxx-ia64.c: Likewise.
4219 * elfxx-target.h: Likewise.
4220 * libbfd.c: Likewise
4221 * linker.c: Likewise.
4222 * lynx-core.c: Likewise.
4224 2001-01-02 Kazu Hirata <kazu@hxi.com>
4226 * pc532-mach.c: Fix formatting.
4227 * pe-arm.c: Likewise.
4228 * pe-i386.c: Likewise.
4229 * pe-mips.c: Likewise.
4230 * pe-ppc.c: Likewise.
4231 * pe-sh.c: Likewise.
4232 * pei-mips.c: Likewise.
4233 * pei-sh.c: Likewise.
4234 * peicode.h: Likewise.
4235 * ppcboot.c: Likewise.
4236 * ptrace-core.c: Likewise.
4238 2001-01-01 Kazu Hirata <kazu@hxi.com>
4240 * reloc.c: Fix formatting.
4241 * riscix.c: Likewise.
4242 * rs6000-core.c: Likewise.
4243 * xcoff-target.h: Likewise.
4245 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4247 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4248 error, by calling bfd_default_set_arch_mach with incoming
4251 2000-12-26 Kazu Hirata <kazu@hxi.com>
4253 * vaxnetbsd.c: Fix formatting.
4254 * versados.c: Likewise.
4255 * vms-gsd.c: Likewise.
4256 * vms-hdr.c: Likewise.
4257 * vms-misc.c: Likewise.
4259 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4261 * archive.c (coff_write_armap): Don't write more than symbol_count
4262 `archive_member_file_ptr's.
4264 2000-12-25 Kazu Hirata <kazu@hxi.com>
4266 * vms-tir.c: Fix formatting.
4268 2000-12-23 Kazu Hirata <kazu@hxi.com>
4270 * vms.c: Fix formatting.
4273 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4275 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4277 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4279 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4282 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4284 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4286 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4288 * libbfd.c (bfd_get_bits): Added
4289 (bfd_put_bits): Likewise
4290 * bfd-in.h: Declared the above.
4291 * bfd-in2.h: Regenerated.
4293 2000-12-20 Kazu Hirata <kazu@hxi.com>
4295 * targets.c: Fix formatting.
4296 * tekhex.c: Likewise.
4297 * trad-core.c: Likewise.
4299 2000-12-19 Kazu Hirata <kazu@hxi.com>
4301 * sco5-core.c: Fix formatting.
4302 * section.c: Likewise.
4303 * sparclinux.c: Likewise.
4304 * sparclynx.c: Likewise.
4305 * sparcnetbsd.c: Likewise.
4307 * stabs.c: Likewise.
4308 * stab-syms.c: Likewise.
4309 * sunos.c: Likewise.
4311 * sysdep.h: Likewise.
4313 2000-12-18 Nick Clifton <nickc@redhat.com>
4315 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4317 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4318 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4320 2000-12-18 Nick Clifton <nickc@redhat.com>
4322 * vms-misc.c (_bfd_vms_get_record): Add default case to
4325 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4327 * elfcore.h (elf_core_file_p): Move to the start of the program
4328 headers before attempting to read them.
4330 2000-12-14 Kazu Hirata <kazu@hxi.com>
4332 * peigen.c: Fix formatting.
4336 2000-12-13 Kazu Hirata <kazu@hxi.com>
4338 * peigen.c: Fix formatting.
4340 2000-12-12 Jim Wilson <wilson@redhat.com>
4342 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4344 2000-12-08 Mark Salter <msalter@redhat.com>
4346 * binary.c (binary_set_section_contents): Ignore sections
4349 2000-12-12 Kazu Hirata <kazu@hxi.com>
4351 * m68klinux.c: Fix formatting.
4352 * m68knetbsd.c: Likewise.
4353 * mipsbsd.c: Likewise.
4354 * netbsd-core.c: Likewise.
4355 * netbsd.h: Likewise.
4356 * newsos3.c: Likewise.
4357 * nlm32-alpha.c: Likewise.
4358 * nlm32-i386.c: Likewise.
4359 * nlm32-ppc.c: Likewise.
4360 * nlm32-sparc.c: Likewise.
4361 * nlmcode.h: Likewise.
4362 * nlmswap.h: Likewise.
4363 * nlm-target.h: Likewise.
4364 * ns32knetbsd.c: Likewise.
4366 2000-12-10 Fred Fish <fnf@be.com>
4368 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4369 symbols in shared objects if allow_shlib_undefined is true.
4371 2000-12-12 Nick Clifton <nickc@redhat.com>
4373 * cpu-sh.c: Fix formattng.
4374 * elf.c: Fix formattng.
4375 * elf32-mips.c: Fix formattng.
4376 * elf32-sh.c: Fix formattng.
4377 * elf64-alpha.c: Fix formattng.
4379 2000-12-09 Nick Clifton <nickc@redhat.com>
4381 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4382 dwarf2_find_line_info as last parameter to invocation of
4383 _bfd_dwarf2_find_nearest_line.
4384 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4385 dwarf2_find_line_info as last parameter to invocation of
4386 _bfd_dwarf2_find_nearest_line.
4388 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4390 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4391 (BFD_LIBS): ...to here.
4392 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4393 (BFD_LIBS_CFILES): ...to here.
4394 * Makefile.in: Regenerate.
4395 * configure.in: Remove dwarf.lo from the elf shell variable.
4396 * configure: Regenerate.
4397 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4398 * libcoff.h: Regenerate.
4399 * coffgen.c (coff_find_nearest_line): Call
4400 _bfd_dwarf2_find_nearest_line.
4401 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4403 (read_abbrevs): Likewise
4404 (decode_line_info): Likewise.
4405 (parse_comp_unit): Likewise.
4406 (comp_unit_find_nearest_line): Likewise.
4407 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4408 * libbfd.h: Regenerate.
4409 * elf.c (_bfd_elf_find_nearest_line): Update call.
4410 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4411 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4412 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4413 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4414 (styp_to_sec_flags): Handle DWARF2 sections.
4415 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4416 to _bfd_find_nearest_line.
4417 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4418 call to _bfd_find_nearest_line.
4420 2000-12-08 Kazu Hirata <kazu@hxi.com>
4422 * coffgen.c: Fix formatting.
4423 * elf-m10300.c: Likewise.
4424 * elf32-i386.c: Likewise.
4425 * elf32-i960.c: Likewise.
4426 * elf32-m68k.c: Likewise.
4427 * elf32-mcore.c: Likewise.
4428 * elf32-ppc.c: Likewise.
4429 * elf32-sh.c: Likewise.
4430 * elf32-sparc.c: Likewise.
4431 * elf32-v850.c: Likewise.
4432 * elf64-alpha.c: Likewise.
4433 * elf64-hppa.c: Likewise.
4434 * elf64-mips.c: Likewise.
4435 * elf64-sparc.c: Likewise.
4437 2000-12-07 Kazu Hirata <kazu@hxi.com>
4439 * elf32-ppc.c: Fix formatting.
4440 * elf64-x86-64.c: Likewise.
4442 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4444 From Ralf Baechle <ralf@gnu.org>
4446 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4447 BFDs containing no sections or empty .text, .data or .bss sections
4448 to be merged, regardless of their flags.
4450 2000-12-06 Kazu Hirata <kazu@hxi.com>
4452 * elf32-m32r.c: Fix formatting.
4453 * elf32-m68hc11.c: Likewise.
4454 * elf32-m68hc12.c: Likewise.
4455 * elf32-m68k.c: Likewise.
4456 * elf32-mcore.c: Likewise.
4457 * elf32-pj.c: Likewise.
4458 * elf32-ppc.c: Likewise.
4460 2000-12-05 Kazu Hirata <kazu@hxi.com>
4462 * elf32-fr30.c: Fix formatting.
4463 * elf32-hppa.c: Likewise.
4464 * elf32-i370.c: Likewise.
4465 * elf32-i386.c: Likewise.
4466 * elf32-i860.c: Likewise.
4467 * elf32-i960.c: Likewise.
4469 2000-12-03 Kazu Hirata <kazu@hxi.com>
4471 * elf32-arm.h: Fix formatting.
4472 * elf32-avr.c: Likewise.
4473 * elf32-cris.c: Likewise.
4474 * elf32-d10v.c: Likewise.
4475 * elf32-d30v.c: Likewise.
4476 * elf-hppa.h: Likewise.
4477 * elf-m10200.c: Likewise.
4478 * elf-m10300.c: Likewise.
4480 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4482 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4483 bfd_mach_mips32_4k. Update FIXME comment.
4484 * archures.c (bfd_mach_mips32): New constant.
4485 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4486 the latter, renumber it.
4487 * bfd-in2.h (bfd_mach_mips32): New constant.
4488 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4489 the latter, renumber it.
4490 * cpu-mips.c (I_mips32): New constant.
4491 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4492 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4493 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4494 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4495 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4496 with E_MIPS_MACH_MIPS32_4K.
4497 (_bfd_mips_elf_final_write_processing): Replace
4498 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4499 bfd_mach_mips32 case.
4500 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4501 comparison with support for MIPS32.
4502 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4505 * aoutx.h (NAME(aout,machine_type)): Add cases for
4506 bfd_mach_mips5 and bfd_mach_mips64.
4507 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4508 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4509 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4510 (arch_info_struct): Add entries for bfd_mach_mips5 and
4512 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4513 _bfd_mips_elf_print_private_bfd_data): Add cases for
4514 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4515 (_bfd_mips_elf_final_write_processing): Add cases for
4516 bfd_mach_mips5 and bfd_mach_mips64.
4518 * aoutx.h (NAME(aout,machine_type)): Add a
4519 bfd_mach_mips_sb1 case.
4520 * archures.c (bfd_mach_mips_sb1): New constant.
4521 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4522 * cpu-mips.c (I_sb1): New constant.
4523 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4524 * elf32-mips.c (elf_mips_mach): Add case for
4526 (_bfd_mips_elf_final_write_processing): Add case for
4529 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4531 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4532 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4533 (sparc*-*-rtems*): Switched from a.out to ELF.
4535 2000-11-30 Jan Hubicka <jh@suse.cz>
4537 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4538 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4539 (elf64-x86-64.lo): Add dependencies.
4540 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4541 bfd_mach_x86_64_intel_syntax.
4542 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4543 * config.bfd (x86_64): Add.
4544 * configure.in: Add support for bfd_elf64_x86_64_vec.
4545 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4546 (bfd_i386_arch, i8086_ar): Link in.
4547 * elf64-x86-64.c: New file.
4548 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4549 * targets.c (bfd_elf64_x86_64_vec): Add.
4550 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4552 2000-11-30 Kazu Hirata <kazu@hxi.com>
4554 * xcofflink.c: Fix formatting.
4556 2000-11-28 Kazu Hirata <kazu@hxi.com>
4558 * aoutx.h: Fix formatting.
4559 * bfd-in.h: Likewise.
4560 * bfd-in2.h: Likewise.
4561 * cache.c: Likewise.
4562 * cisco-core.c: Likewise.
4563 * coff64-rs6000.c: Likewise.
4564 * coffcode.h: Likewise.
4565 * coffswap.h: Likewise.
4566 * corefile.c: Likewise.
4567 * elf32-mips.c: Likewise.
4569 2000-11-27 Kazu Hirata <kazu@hxi.com>
4571 * aout-adobe.c: Fix formatting.
4572 * coff64-rs6000.c: Likewise.
4573 * coffgen.c: Likewise.
4574 * cofflink.c: Likewise.
4576 2000-11-27 Philip Blundell <pb@futuretv.com>
4578 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4579 (obj_coff_strings_written): New accessor macro for above.
4580 * libcoff.h: Regenerate.
4581 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4583 * coffcode.h (coff_write_object_contents): No need to write out
4584 the string table if it's already been done.
4586 2000-11-22 Philip Blundell <pb@futuretv.com>
4588 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4589 weak undefined symbols.
4591 2000-11-24 Nick Clifton <nickc@redhat.com>
4593 * archures.c (bfd_mach_arm_5TE): Define.
4594 (bfd_mach_arm+XScale): Define.
4595 * bfd-in2.h: Regenerate.
4597 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4598 BFD_RELOC_ARM_PCREL_BLX.
4600 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4601 XScale machine numbers.
4603 * config.bfd (xscale-elf): Add target.
4604 (xscale-coff): Add target.
4606 * cpu-arm.c: Add xscale machine name.
4607 Add v5t, v5te and XScale machine numbers.
4609 2000-11-23 Kazu Hirata <kazu@hxi.com>
4611 * aix386-core.c: Fix formatting.
4613 2000-11-22 Jim Wilson <wilson@redhat.com>
4615 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4616 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4617 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4618 (ins_imms_scaled): Initialize sign_bit at function entry.
4619 (elf64_ia64_operands): Add missing initializers.
4620 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4621 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4622 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4623 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4624 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4626 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4627 and free_extsyms at function entry.
4628 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4629 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4630 (get_got): Delete unused local srel.
4631 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4632 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4634 2000-11-21 Kazu Hirata <kazu@hxi.com>
4636 * coff-a29k.c: Fix formatting.
4637 * coff-h8500.c: Likewise.
4638 * coff-i960.c: Likewise.
4639 * coff-ppc.c: Likewise.
4640 * coff-rs6000.c: Likewise.
4641 * coff-stgo32.c: Likewise.
4642 * coff-tic54x.c: Likewise.
4643 * coff-w65.c: Likewise.
4644 * cpu-h8500.c: Likewise.
4645 * cpu-hppa.c: Likewise.
4646 * cpu-ns32k.c: Likewise.
4647 * ecoff.c: Likewise.
4648 * ecofflink.c: Likewise.
4650 2000-11-21 Nick Clifton <nickc@redhat.com>
4652 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4653 remove possibility of infinite loop.
4655 2000-11-20 Kazu Hirata <kazu@hxi.com>
4657 * aix386-core.c: Fix formatting.
4658 * aout-adobe.c: Likewise.
4659 * aout-arm.c: Likewise.
4660 * aout-encap.c: Likewise.
4661 * aout-ns32k.c: Likewise.
4662 * aout-target.h: Likewise.
4663 * aout-tic30.c: Likewise.
4664 * aoutf1.h: Likewise.
4665 * aoutx.h: Likewise.
4666 * archive.c: Likewise.
4667 * bfd-in.h: Likewise.
4668 * bfd-in2.h: Likewise.
4672 2000-11-17 H.J. Lu <hjl@gnu.org>
4674 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4675 pltoff entries for DT_INIT and DT_FINI.
4676 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4677 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4680 2000-11-16 Richard Henderson <rth@redhat.com>
4682 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4683 (allocate_dynrel_entries): Likewise.
4684 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4685 (set_pltoff_entry): Likewise.
4686 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4687 (elfNN_ia64_reloc_type_lookup): Likewise.
4688 (elfNN_ia64_install_value): Likewise.
4689 (elfNN_ia64_relocate_section): Likewise.
4690 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4691 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4693 2000-11-16 Kazu Hirata <kazu@hxi.com>
4695 * cpu-a29k.c: Fix formatting.
4696 * cpu-alpha.c: Likewise.
4697 * cpu-arm.c: Likewise.
4698 * cpu-avr.c: Likewise.
4699 * cpu-d10v.c: Likewise.
4700 * cpu-h8500.c: Likewise.
4701 * cpu-hppa.c: Likewise.
4702 * cpu-i370.c: Likewise.
4703 * cpu-i386.c: Likewise.
4704 * cpu-i960.c: Likewise.
4705 * cpu-ia64-opc.c: Likewise.
4706 * cpu-ia64.c: Likewise.
4707 * cpu-m32r.c: Likewise.
4708 * cpu-m68hc11.c: Likewise.
4709 * cpu-m68hc12.c: Likewise.
4710 * cpu-m68k.c: Likewise.
4711 * cpu-m88k.c: Likewise.
4712 * cpu-mips.c: Likewise.
4713 * cpu-ns32k.c: Likewise.
4714 * cpu-pj.c: Likewise.
4715 * cpu-powerpc.c: Likewise.
4716 * cpu-sh.c: Likewise.
4717 * cpu-sparc.c: Likewise.
4718 * cpu-tic54x.c: Likewise.
4719 * cpu-v850.c: Likewise.
4720 * cpu-vax.c: Likewise.
4721 * cpu-w65.c: Likewise.
4722 * cpu-we32k.c: Likewise.
4723 * cpu-z8k.c: Likewise.
4724 * dwarf1.c: Likewise.
4725 * dwarf2.c: Likewise.
4727 2000-11-15 Kazu Hirata <kazu@hxi.com>
4729 * coff-arm.c: Fix formatting.
4730 * coff-ppc.c: Likewise.
4731 * coff-rs6000.c: Likewise.
4732 * coff-sh.c: Likewise.
4733 * coff-sparc.c: Likewise.
4734 * coff-tic30.c: Likewise.
4735 * coff-tic54x.c: Likewise.
4736 * coff-tic80.c: Likewise.
4737 * coff-w65.c: Likewise.
4738 * coff-we32k.c: Likewise.
4739 * coff-z8k.c: Likewise.
4741 2000-11-15 Richard Henderson <rth@redhat.com>
4743 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4744 section with the same ALLOC|LOAD flags as the source section.
4746 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4748 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4749 by STO_ALPHA constants.
4751 2000-11-14 Kazu Hirata <kazu@hxi.com>
4753 * coff-pmac.c: Fix formatting.
4754 * coff-ppc.c: Likewise.
4756 2000-11-13 H.J. Lu <hjl@gnu.org>
4758 * elflink.h (elf_link_add_object_symbols): Also add indirect
4759 symbols for common symbols with the default version.
4761 2000-11-09 Philip Blundell <pb@futuretv.com>
4763 * section.c (STD_SECTION): Set gc_mark flag.
4765 2000-11-11 Kazu Hirata <kazu@hxi.com>
4767 * coff-i960.c: Likewise.
4768 * coff-m68k.c: Likewise.
4769 * coff-m88k.c: Likewise.
4770 * coff-mcore.c: Likewise.
4771 * coff-mips.c: Likewise.
4773 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4775 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4777 2000-11-10 Kazu Hirata <kazu@hxi.com>
4779 * coff-h8300.c: Fix formatting.
4780 * coff-h8500.c: Likewise.
4781 * coff-i386.c: Likewise.
4782 * coff-i860.c: Likewise.
4783 * coff-i960.c: Likewise.
4784 * coff-ia64.c: Likewise.
4786 2000-11-09 Kazu Hirata <kazu@hxi.com>
4788 * archive.c: Fix formatting.
4789 * archures.c: Likewise.
4791 2000-11-07 Richard Henderson <rth@redhat.com>
4793 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4794 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4795 * section.c (bfd_set_section_contents): Call memcpy if
4796 section->contents set and location not equal to contents plus offset.
4798 2000-11-08 Kazu Hirata <kazu@hxi.com>
4800 * bfd-in.h: Fix formatting.
4801 * bfd-in2.h: Likewise.
4803 * binary.c: Likewise.
4805 * coff-a29k.c: Likewise.
4806 * coff-alpha.c: Likewise.
4807 * coff-apollo.c: Likewise.
4808 * coff-aux.c: Likewise.
4810 2000-11-07 Kazu Hirata <kazu@hxi.com>
4812 * aix386-core.c: Fix formatting.
4813 * aoutf1.h: Likewise.
4814 * aoutx.h: Likewise.
4815 * archures.c: Likewise.
4816 * armnetbsd.c: Likewise.
4818 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4820 * coff-h8300.c (special): Adjust reloc address.
4822 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4824 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4825 to differentiate elf32 and elf64 on ia64.
4826 * bfd-in2.h: Regenerate.
4827 * config.bfd: Add target for "ia64*-*-hpux*".
4828 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4829 * configure: Regenerate.
4830 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4831 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4833 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4834 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4835 * Makefile.in: Regnerate.
4836 * elf64-ia64.c: Deleted.
4837 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4839 2000-11-06 Kazu Hirata <kazu@hxi.com>
4841 * aout-adobe.c: Fix formatting.
4842 * aout-arm.c: Likewise.
4843 * aout-cris.c: Likewise.
4844 * aout-encap.c: Likewise.
4845 * aout-ns32k.c: Likewise.
4846 * aout-target.h: Likewise.
4847 * aout-tic30.c: Likewise.
4849 2000-11-05 Philip Blundell <philb@gnu.org>
4851 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4852 BFDs containing no sections to be merged, regardless of their flags.
4854 2000-11-04 Philip Blundell <philb@gnu.org>
4856 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4857 if a relocation for an undefined symbol also results in an
4860 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4862 * config.bfd: Add support for Sun Chorus.
4864 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4866 * configure.in: Recognize alpha-*-freebsd*.
4867 * configure: Regenerate.
4869 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4871 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4872 (Chunk): New global variable set by a parameter in objcopy.c.
4873 (S3Forced): New global variable set by a parameter in
4875 (srec_set_section_contents): If S3Forced is true, always generate
4877 (srec_write_section): Use 'Chunk' to limit maximum length of S
4880 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4882 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4883 * Makefile.in: Regenerate.
4884 * bfd-in2.h: Regenerate.
4885 * po/bfd.pot: Regenerate.
4887 2000-10-31 Philip Blundell <philb@gnu.org>
4889 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4890 EF_SOFT_FLOAT if it is defined.
4892 2000-10-27 Philip Blundell <philb@gnu.org>
4894 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4895 attempts to mix PIC code with non-PIC, just mark the output as
4896 being position dependent.
4897 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4898 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4899 all mismatches, not just the first one.
4901 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4903 * ieee.c (ieee_archive_p): Plug one of many possible
4904 memory leaks in error handling.
4906 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4908 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4909 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4911 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4912 sparc64_elf_object_p): Support v9b.
4913 * archures.c: Declare v8plusb and v9b machines.
4915 * cpu-sparc.c: Ditto.
4917 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4919 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4922 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4923 (SYMBOL_CALLS_LOCAL): New macro.
4924 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4925 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4926 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4927 (ppc_elf_relocate_section): Use flag variable to determine
4928 whether the relocation refers to a local symbol.
4929 Test whether a PLTREL24 reloc will produce a reloc by looking
4930 to see whether a PLT entry was made.
4932 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4934 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4935 entries that could serve as a definition for a weak symbol.
4937 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4939 From Ralf Baechle <ralf@gnu.org>
4941 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4942 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4943 against local symbols.
4944 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4946 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4948 * section.c (struct sec): Add kept_section.
4949 (struct bfd_comdat_info): Remove sec, we can use above.
4950 (STD_SECTION): Add initializer.
4951 (bfd_make_section_anyway): Init here too.
4953 * bfd-in2.h: Regenerate.
4955 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4957 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4958 fudge values for discarded link-once section symbols.
4960 * elf64-hppa.c: Include alloca-conf.h
4962 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4964 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4966 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4968 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4970 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4972 2000-10-10 Tom Rix <trix@redhat.com>
4974 * section.c (bfd_make_section_anyway): Release newsect ptr when
4975 newsect->symbol fails to alloc. Use bfd_release instead of free.
4977 2000-10-09 Richard Henderson <rth@cygnus.com
4979 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4980 (elf64_ia64_unwind_entry_compare): New.
4981 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4983 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4985 * elflink.h (size_dynamic_sections): Don't create various tags if
4986 .dynstr is excluded from the link. Don't set first dynsym entry
4987 if dynsymcount is zero.
4988 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4989 .dynsym excluded from the link. Don't try to write any dynamic
4990 sections excluded from the link.
4992 * elf.c (swap_out_syms): Handle global section symbols.
4994 2000-10-05 DJ Delorie <dj@redhat.com>
4996 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4997 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4998 (coff_write_relocs): write extended reloc count
4999 (coff_write_object_contents): account for extended relocs
5001 2000-10-05 Jim Wilson <wilson@cygnus.com>
5003 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5005 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5006 elf_backend_section_flags function.
5007 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5009 (elf64_ia64_section_flags): New function containing flag conversion
5011 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5012 * elfxx-target.h (elf_backend_section_flags): Define.
5013 (elfNN_bed): Initialize elf_backend_section_flags field.
5015 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5017 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5018 _bfd_elf32_gc_record_vtable. Correct a comment.
5020 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5022 From Ralf Baechle <ralf@gnu.org>
5024 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5025 produces binaries with got[1] = 0x80000001 to differenciate them
5026 for the dynamic linker from the broken binaries produced by old
5029 2000-09-30 Petr Sorfa <petrs@sco.com>
5031 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5032 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5033 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5034 * configure: Regenerate.
5036 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5038 Define two bfd_targets for absence and presence of leading
5039 underscore on symbols. Make sure to only link same kind.
5040 * elf32-cris.c (cris_elf_object_p,
5041 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5042 cris_elf_merge_private_bfd_data): New.
5043 (elf_backend_object_p, elf_backend_final_write_processing,
5044 bfd_elf32_bfd_print_private_bfd_data,
5045 bfd_elf32_bfd_merge_private_bfd_data): Define.
5046 <Target vector definition>: Include elf32-target.h twice with
5047 different macro settings:
5048 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5049 bfd_elf32_us_cris_vec.
5050 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5051 (elf_symbol_leading_char): First as 0, then '_'.
5052 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5053 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5054 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5055 * configure: Regenerate.
5056 * targets.c: Declare bfd_elf32_us_cris_vec.
5057 * po/bfd.pot: Regenerate.
5059 2000-09-29 Momchil Velikov <velco@fadata.bg>
5061 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5062 R_ARM_THM_PC22 relocations.
5064 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5066 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5068 2000-09-29 Momchil Velikov <velco@fadata.bg>
5070 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5071 is has the SEC_HAS_CONTENTS flag set.
5073 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5074 Hans-Peter Nilsson <hp@axis.com>
5076 * aout-cris.c (N_TXTADDR): Define.
5078 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5080 * som.c: Include alloca-conf.h.
5081 * Makefile.am: "make dep-am"
5082 * Makefile.in: Regenerate.
5084 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5086 * elf32-hppa.c (plt_stub): New.
5087 (PLT_STUB_ENTRY): Define.
5088 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5089 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5090 (elf32_hppa_link_hash_table_create): Init to suit.
5091 (elf32_hppa_check_relocs): Set has_12bit_branch and
5092 has_17bit_branch as appropriate.
5093 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5094 non-local functions.
5095 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5096 Add space for plt_stub as needed.
5097 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5098 functions at plt_stub.
5099 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5100 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5102 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5103 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5104 of fixed size, and if negative, disable handling of input sections
5105 before stub section. Set up default stub group size depending
5106 on detected branch relocs.
5107 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5108 ensure different offsets from sym_value aren't rounded to
5109 different 2k blocks. Use lrsel and rrsel for other stubs too for
5110 consistency rather than necessity.
5111 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5112 (final_link_relocate): Likewise.
5113 (elf32_hppa_relocate_section): Likewise.
5115 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5116 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5117 (elf_hppa_final_link_relocate): Handle them.
5118 (elf_hppa_relocate_insn): Likewise.
5119 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5121 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5123 * elfcode.h (elf_object_p): Preserve and clear abfd section
5124 information. Restore at error.
5126 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5128 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5129 is empty, make sure that its rva also 0. NT loader dislikes
5132 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5134 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5137 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5139 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5140 currently unused RELATIVE_DYNAMIC_RELOCS code.
5141 (hppa_discard_copies): Likewise.
5142 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5143 comments. Don't check non-code output sections for stub grouping.
5145 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5147 * section.c (bfd_get_unique_section_name): Return NULL if
5150 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5152 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5153 instruction sequence to actually work.
5154 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5157 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5159 * elf32-sh.c (sh_elf_relocate_section): Use
5160 _bfd_final_link_relocate to apply the relocation against a section
5161 symbol, when doing relocatable links.
5163 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5165 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5167 (stub_hash_newfunc): Here too.
5168 (hppa_add_stub): And here.
5169 (elf32_hppa_link_hash_table): Remove stub_section_created,
5170 reloc_section_created, first_init_sec and first_fini_sec. Add
5172 (elf32_hppa_link_hash_table_create): Init to suit.
5173 (hppa_get_stub_entry): Add support for grouping stub sections.
5174 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5175 section code. Index stub vars by section->id.
5176 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5177 exit paths. Zap allocation of above removed vars. Refine
5180 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5181 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5182 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5183 rather than pointer to bfd_link_info.
5184 (hppa_add_stub): Likewise.
5185 (final_link_relocate): Likewise.
5187 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5189 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5192 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5194 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5195 ld/emulparams/shelf.sh.
5197 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5199 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5200 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5201 * bfd-in2.h: Regenerate.
5203 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5205 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5206 LITUSE relocations incorrectly if -relax is specified on the ld
5207 command line and the displacement field of the load or store
5208 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5210 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5212 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5213 first_fini_sec here.
5214 (elf32_hppa_size_stubs): Instead correctly find the first .init
5215 and .fini section here.
5217 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5219 * elf32-hppa.c (clobber_millicode_symbols): New function.
5220 (elf32_hppa_size_dynamic_sections): Call it.
5222 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5224 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5225 packed. Add plabel, plt_abs packed booleans.
5226 (hppa_link_hash_newfunc): Init new fields.
5227 (PLABEL_PLT_ENTRY_SIZE): Define.
5228 (hppa_stub_name): Use size_t len vars.
5229 (hppa_add_stub): Likewise.
5230 (elf32_hppa_build_stubs): Likewise.
5231 (hppa_build_one_stub): Kill some compiler warnings.
5232 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5233 if dynamic linking. Munge the local plt offsets into
5234 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5235 size_t len vars. Add assert for plabel addend.
5236 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5237 (elf32_hppa_hide_symbol): New function.
5238 (elf_backend_hide_symbol): Define.
5239 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5240 with h->plabel set. Don't make plt entries to have dynamic syms
5241 when they have been forced local. If plt entry is used by a
5242 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5243 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5244 Set up .plt offsets for local syms.
5245 (elf32_hppa_relocate_section): Initialise plt entries for local
5246 syms. Leave weak undefined plabels zero. Make global plabel
5247 relocs against function symbol, and leave the addend zero.
5248 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5249 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5250 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5251 relocs instead of SEGREL32 for dynamic got relocs.
5252 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5253 (elf_backend_got_header_size): Adjust.
5254 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5256 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5257 (hppa_type_of_stub): Use it instead of #if 0
5258 (hppa_discard_copies): Use it here too.
5259 (elf32_hppa_size_dynamic_sections): And here.
5261 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5262 (elf32_hppa_link_hash_table_create): And here.
5263 (hppa_build_one_stub): And here. Instead keep track of stub
5264 offset using _raw_size.
5265 (elf32_hppa_size_stubs): Likewise.
5266 (elf32_hppa_build_stubs): Likewise.
5267 (hppa_size_one_stub): Likewise. Resize reloc section too.
5269 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5270 first_fini_sec handling. Don't search for reloc section or set
5271 hplink->reloc_section_created here.
5272 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5273 set reloc_section_created here.
5274 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5275 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5277 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5279 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5280 with `hplink->root.'.
5281 (elf32_hppa_check_relocs): Likewise.
5282 (elf32_hppa_gc_sweep_hook): Likewise.
5283 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5284 (hppa_handle_PIC_calls): Likewise.
5285 (elf32_hppa_size_dynamic_sections): Likewise.
5286 (elf32_hppa_set_gp): Likewise.
5287 (elf32_hppa_relocate_section): Likewise.
5288 (elf32_hppa_finish_dynamic_symbol): Likewise.
5289 (elf32_hppa_finish_dynamic_sections): Likewise.
5291 From David Huggins-Daines <dhd@linuxcare.com>
5292 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5293 defined weak symbols in shared links.
5294 (final_link_relocate): Calls to defined weak symbols in shared
5295 objects must go via import stubs, as the target might not be known
5298 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5300 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5301 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5302 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5303 the original entries with EMPTY_HOWTOs, and added new ones to fill
5305 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5306 (sh_elf_relocate_section): Likewise.
5308 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5310 * cpu-mips.c (arch_info_struct): Add mips:4K
5311 * bfd-in2.h (bfd_mach_mips4K): New define.
5312 * archures.c: Add bfd_mach_mips4K to comment.
5313 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5314 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5316 2000-09-13 Marco Franzen <marcof@thyron.com>
5318 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5319 use size_t as a counter.
5320 (som_write_space_strings): Similarly.
5322 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5324 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5326 (elf32_i860_relocate_section): Invoke new function from here.
5328 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5330 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5333 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5335 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5336 target section name instead of dumping core when the target symbol is
5339 2000-09-09 Kazu Hirata <kazu@hxi.com>
5341 * riscix.c: Remove DEFUN.
5343 2000-09-08 Nick Clifton <nickc@redhat.com>
5345 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5346 initialise flags in output bfd if the input bfd is the default
5347 architecture with the default flags.
5349 2000-09-08 Kazu Hirata <kazu@hxi.com>
5351 * archive.c: Fix formatting.
5352 * coff-arm.c: Likewise.
5353 * doc/chew.c: Likewise.
5355 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5357 * section.c (bfd_get_unique_section_name): Put a dot before the
5360 2000-09-07 Kazu Hirata <kazu@hxi.com>
5362 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5363 * elf.c: Fix formatting.
5365 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5367 * config.bfd (sh-*-linux*): Added.
5368 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5369 * targets.c: Declare them.
5370 * elf32-sh-lin.c: New file.
5371 * Makefile.am: Compile it.
5372 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5373 * configure, Makefile.in: Rebuilt.
5375 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5377 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5378 pseduo-section when determining where the TOC ends.
5380 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5381 output x_tvndx as it is only two bytes wide.
5383 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5384 reloc is 26 or 32 bits wide.
5386 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5387 for relocs that don't change anything. Also look at the full
5390 2000-09-06 Philip Blundell <philb@gnu.org>
5392 * config.bfd (arm*-*-uclinux*): New target.
5394 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5396 * configure: Rebuilt with new libtool.m4.
5398 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5400 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5401 word for variable name.
5402 * bfd-in2.h: Regenerate.
5404 2000-09-05 Nick Clifton <nickc@redhat.com>
5406 * config.in: Regenerate.
5407 * libbfd.h: Regenerate.
5408 * po/bfd.pot: Regenerate.
5409 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5412 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5414 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5416 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5418 Shared library and PIC support.
5419 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5420 (GOT_ENTRY_SIZE): New.
5421 (ELF_DYNAMIC_INTERPRETER): New.
5422 (STUB_SUFFIX): Define.
5423 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5424 (RELATIVE_DYNAMIC_RELOCS): Define.
5425 (enum elf32_hppa_stub_type): New.
5426 (struct elf32_hppa_stub_hash_entry): Rename offset to
5427 stub_offset. Add a number of new fields.
5428 (struct elf32_hppa_link_hash_entry): New.
5429 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5431 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5432 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5433 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5435 (hppa_link_hash_newfunc): New function.
5436 (elf32_hppa_link_hash_table_create): Use above function. Init new
5438 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5439 instead of addend, and remove sym_name from args. Don't use
5440 symbol name for local syms, instead use sym index.
5441 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5442 stub type rather than size. Pass in hash and handle import stub
5443 case. Also pass in reloc instead of offset so we can calculate
5444 PCREL22F and PCREL12F branches properly.
5445 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5446 import and export stubs too.
5447 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5448 import and export stub sizing.
5449 (elf32_hppa_check_relocs): New function.
5450 (elf32_hppa_adjust_dynamic_symbol): New function.
5451 (hppa_discard_copies): New function.
5452 (elf32_hppa_size_dynamic_sections): New function.
5453 (elf_backend_size_dynamic_sections): Define.
5454 (elf32_hppa_finish_dynamic_symbol): New function.
5455 (elf_backend_finish_dynamic_symbol): Define.
5456 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5457 some local vars into the link hash table too. For shared links,
5458 trundle over function syms, generating export stubs. Handle
5459 PCREL22F branches. Break out stub creation code from here..
5460 (hppa_add_stub): .. to here. New function.
5461 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5462 call the bfd linker. Use elf_gp to record global pointer.
5463 Calculate a value from sections if $global$ is missing.
5464 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5465 (elf32_hppa_gc_mark_hook): New function.
5466 (elf_backend_gc_mark_hook): Define.
5467 (elf32_hppa_gc_sweep_hook): New function.
5468 (elf_backend_gc_sweep_hook): Define.
5469 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5470 Add rel to args, and remove howto, input_bfd, offset, addend,
5471 sym_name as we can recalculate these locally. Handle calls to
5472 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5473 handling of undefined weak syms. Check that stubs are in range.
5474 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5475 message on hitting a DPREL21L reloc that needs fixing. Subtract
5476 off PC for PCREL14F. Break out code that does a stub lookup from
5478 (hppa_get_stub_entry): ..to here. New function.
5479 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5480 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5482 (elf32_hppa_finish_dynamic_sections): New function.
5483 (elf_backend_finish_dynamic_sections): Define.
5484 (elf_backend_final_write_processing) Define.
5485 (hppa_handle_PIC_calls): New function.
5486 (elf32_hppa_build_stubs): Call it. Pass link_info to
5487 hppa_build_one_stub.
5488 (elf32_hppa_create_dynamic_sections): New function
5489 to create .plt and .got then set .plt flags correctly.
5490 (elf_backend_create_dynamic_sections): Define.
5491 (elf32_hppa_object_p): New function.
5492 (elf_backend_object_p): Define.
5493 (elf32_hppa_elf_get_symbol_type): New function.
5494 (elf_backend_get_symbol_type): Define.
5495 (elf_backend_can_gc_sections): Define.
5496 (elf_backend_want_got_plt): Define.
5497 (elf_backend_plt_alignment): Set to 2.
5498 (elf_backend_plt_readonly): Define.
5499 (elf_backend_want_plt_sym): Define.
5500 (elf_backend_got_header_size): Reserve one entry.
5502 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5503 (elf32_hppa_size_stubs): Pass in multi_subspace.
5504 (elf32_hppa_set_gp): Declare.
5506 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5507 (bfd_get_unique_section_name): New function.
5508 * bfd-in2.h: Regenerate.
5510 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5511 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5514 From David Huggins-Daines <dhd@linuxcare.com>
5515 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5516 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5517 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5518 been updated in finish_dynamic_symbol before modifying function
5521 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5522 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5523 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5524 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5525 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5526 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5527 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5528 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5530 From David Huggins-Daines <dhd@linuxcare.com>
5531 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5532 style of local labels as well.
5534 2000-09-03 Philip Blundell <philb@gnu.org>
5536 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5537 references to undefined symbols in debugging sections.
5539 2000-09-02 H.J. Lu <hjl@gnu.org>
5541 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5542 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5543 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5546 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5548 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5549 (elf32_i860_is_local_label_name): New function and prototype.
5551 2000-09-02 Nick Clifton <nickc@redhat.com>
5553 * configure.in: Increase version number to 2.10.91.
5554 * configure: Regenerate.
5555 * aclocal.m4: Regenerate.
5556 * config.in: Regenerate.
5557 * po/bfd.pot: Regenerate.
5559 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5561 * elf.c (_bfd_elf_make_section_from_shdr): Add
5562 .gnu.linkobce.wi. to the list of debug section names.
5564 2000-09-02 Nick Clifton <nickc@redhat.com>
5566 * dwarf2.c (find_debug_info): New function: Locate a section
5567 containing dwarf2 debug information.
5568 (bfd_dwarf2_find_nearest_line): Find all sections containing
5569 debug information and include them in the stash.
5571 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5573 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5574 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5575 (sh_reloc_map): Add new relocs.
5576 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5577 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5578 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5579 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5581 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5582 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5583 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5584 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5585 New array constants.
5586 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5588 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5589 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5590 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5591 elf_sh_plt_reloc_offset): Define.
5592 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5593 elf_sh_link_hash_table): New structs.
5594 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5595 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5597 (elf_backend_create_dynamic_sections,
5598 bfd_elf32_bfd_link_hash_table_create,
5599 elf_backend_adjust_dynamic_symbol,
5600 elf_backend_size_dynamic_sections,
5601 elf_backend_finish_dynamic_symbol,
5602 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5603 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5604 elf_backend_got_header_size, elf_backend_plt_header_size):
5606 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5607 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5609 * bfd-in2.h, libbfd.h: Rebuilt.
5611 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5613 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5616 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5618 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5619 not initialized, set them to indicate the SH1 instruction set.
5621 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5623 * acinclude.m4: Include libtool and gettext macros from the
5625 * aclocal.m4, configure: Rebuilt.
5627 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5629 * elf.c: Eliminate references to __sparcv9 macro; replace with
5630 autoconf variables HAVE_PSINFO32_T etc.
5631 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5632 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5634 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5635 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5636 * aclocal.m4: Ditto.
5637 * configure: Regenerate.
5639 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5641 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5642 for any shared link, not just shared -Bsymbolic.
5643 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5644 any shared link, and pass link info to it.
5645 (elf_i386_size_dynamic_sections): Update comment.
5646 (elf_i386_discard_copies): Modify to discard relocs for symbols
5647 that have been forced local.
5648 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5649 that have been forced local.
5651 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5653 * elflink.h (elf_link_add_object_symbols): Allow common
5654 symbols to have an alignment of 1 if explicitly requested, and
5655 not overridden by other definitions.
5657 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5659 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5660 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5662 2000-08-22 H.J. Lu <hjl@gnu.org>
5664 * elf-bfd.h (elf_link_hash_table): Add runpath.
5666 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5667 * bfd-in2.h: Rebuilt.
5669 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5670 "runpath" field to NULL.
5671 (bfd_elf_get_runpath_list): New function.
5673 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5676 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5678 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5679 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5680 explicitly. Improve validation of r_type.
5682 2000-08-21 H.J. Lu <hjl@gnu.org>
5684 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5685 dynamic allocated content space. Add a comment to remind us that
5686 one day this ought to be fixed.
5687 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5688 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5689 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5691 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5693 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5694 field with the newly relocated value instead of adding it to the
5695 existing immediate field.
5696 (elf32_i860_relocate_splitn): Likewise.
5697 (elf32_i860_relocate_highadj): Likewise.
5699 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5701 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5702 was previously just a stub).
5704 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5706 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5708 (_bfd_elf_create_dynamic_sections): Likewise.
5710 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5712 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5713 for undefined symbols to be the beginning of the section.
5715 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5716 four extra entries at the beginning of the .rela.plt section.
5717 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5718 section to account for the four reserved entries in the .plt section.
5720 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5722 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5723 to the list of NOPs we recognize after a branch-and-link.
5724 Use the ori NOP when one is needed.
5726 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5729 2000-08-14 Jim Wilson <wilson@cygnus.com>
5731 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5732 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5733 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5736 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5738 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5740 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5742 * elf32-i860.c (elf32_i860_relocate_section): New function.
5743 (i860_final_link_relocate): New function.
5744 (elf32_i860_relocate_splitn): New function.
5745 (elf32_i860_relocate_pc16): New function.
5746 (elf32_i860_relocate_highadj): New function.
5747 (elf32_i860_howto): Minor adjustments to some relocations.
5748 (elf_info_to_howto_rel): Define.
5749 (elf_backend_relocate_section): Define.
5751 2000-08-10 Nick Clifton <nickc@cygnus.com>
5753 * elf32-arm.h: Fix formatting.
5755 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5757 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5759 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5761 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5763 2000-08-07 Kazu Hirata <kazu@hxi.com>
5765 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5766 * elf64-ia64.c: Fix a typo.
5768 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5770 * elf32-i860.c (elf32_i860_howto_table): New structure.
5771 (lookup_howto): New function.
5772 (elf32_i860_reloc_type_lookup): New function.
5773 (elf32_i860_info_to_howto_rela): New function.
5774 (elf_code_to_howto_index): New structure.
5775 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5776 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5777 elf32_i860_reloc_type_lookup.
5779 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5781 * som.c (struct fixup_format): Constify `format'.
5782 (som_hppa_howto_table): Use SOM_HOWTO macro.
5783 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5784 (som_bfd_reloc_type_lookup): Likewise.
5785 (compare_subspaces): Remove unused `count1', `count2'.
5786 (som_begin_writing): Remove unused `total_reloc_size'.
5787 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5788 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5789 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5790 (som_find_nearest_line): Decorate unused parameter(s).
5791 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5792 (som_bfd_link_split_section): Likewise.
5794 2000-08-03 Nick Clifton <nickc@cygnus.com>
5796 * section.c: Restore backed out code.
5797 * elf.c: Restore backed out code.
5798 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5799 binaries from working.
5800 * bfd-in2.h: Regenerate.
5802 2000-08-03 H.J. Lu <hjl@gnu.org>
5804 * section.c: Back out the change made by Nick Clifton
5805 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5807 * bfd-in2.h: Likewise.
5810 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5812 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5814 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5816 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5817 * bfd-in2.h, libbfd.h: Regenerate.
5819 2000-07-31 Nick Clifton <nickc@cygnus.com>
5821 * section.c (struct sec): Add new boolean field 'segment_mark'.
5822 (STD_SECTION): Initialise new field to zero.
5824 * bfd-in2.h: Regenerate.
5826 * elf.c (copy_private_bfd_data): Reorganise section to segment
5827 mapping to cope with moved sections requiring new segments,
5828 and overlapping segments.
5829 (SEGMENT_END): New macro: Return the end address of a segment.
5830 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5831 contains a section by comparing their VMA addresses.
5832 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5833 contains a section by comparing their LMA addresses.
5834 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5835 section should be included in a segment.
5836 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5837 follows another in memory.
5838 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5841 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5843 * cpu-i860.c: Added comments.
5845 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5846 bfd_elf32_i860_little_vec.
5847 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5848 (ELF_MAXPAGESIZE): Changed to 4096.
5850 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5852 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5854 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5855 config for little endian elf32 i860.
5856 (targ_defvec): Define for the new config above
5857 as "bfd_elf32_i860_little_vec".
5858 (targ_selvecs): Define for the new config above
5859 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5861 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5864 * configure: Regenerated.
5866 2000-07-27 H.J. Lu <hjl@gnu.org>
5868 * elflink.h (elf_merge_symbol): Take one more argument,
5869 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5870 entry. Don't overide the existing weak definition if dt_needed
5872 (elf_link_add_object_symbols): Pass dt_needed to
5873 elf_merge_symbol ().
5875 2000-07-27 Nick Clifton <nickc@cygnus.com>
5877 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5880 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5882 * configure.host (*-*-aix*): AIX has 'long long' always.
5884 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5885 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5886 (xcoff_write_archive_contents_big): Don't update the offset
5887 of the symbol table, xcoff_write_armap will do it.
5889 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5891 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5892 of dynobj for SGI_COMPAT checks.
5894 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5896 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5897 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5898 * bfd-in2.h: Regenerate.
5900 2000-07-21 Nick Clifton <nickc@cygnus.com>
5902 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5903 range symbol indices in relocs and issue an error message.
5905 2000-07-20 H.J. Lu <hjl@gnu.org>
5907 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5908 info->new_dtags when setting DT_FLAGS_1. It will only be set
5909 by the new linker options. It shouldn't break anything.
5911 2000-07-20 H.J. Lu <hjl@gnu.org>
5913 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5914 only if info->new_dtags is true.
5916 2000-07-20 H.J. Lu <hjl@gnu.org>
5918 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5919 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5921 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5923 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5924 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5925 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5926 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5927 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5928 * Makefile.in: Rebuild.
5929 * aclocal.m4: Rebuild.
5930 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5931 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5932 (bfd_cris_arch): Declare.
5933 (bfd_archures_list): Add bfd_cris_arch.
5934 * bfd-in2.h: Rebuild.
5935 * config.bfd: (cris-*-*): New target.
5936 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5937 * configure: Rebuild.
5938 * elf.c (prep_headers): Add bfd_arch_cris.
5939 * libbfd.h: Rebuild.
5940 * libaout.h (enum machine_type): Add M_CRIS.
5941 * reloc.c: Add CRIS relocations.
5942 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5943 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5944 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5945 * po/POTFILES.in, po/bfd.pot: Regenerate.
5947 2000-07-19 H.J. Lu <hjl@gnu.org>
5949 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5950 DF_TEXTREL if DT_TEXTREL is set.
5951 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5952 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5953 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5954 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5955 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5956 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5957 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5958 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5959 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5960 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5962 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5963 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5965 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5967 2000-07-19 H.J. Lu <hjl@gnu.org>
5969 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5970 * bfd-in2.h: Rebuild.
5972 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5973 (elf_dt_soname): New.
5975 * elf.c (bfd_elf_set_dt_needed_soname): New.
5977 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5978 entry if the shared object loaded by DT_NEEDED is used to
5979 resolve the reference in a regular object.
5981 2000-07-19 H.J. Lu <hjl@gnu.org>
5983 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5984 DT_DEPAUDIT and DT_AUDIT as strings.
5986 2000-07-19 Nick Clifton <nickc@cygnus.com>
5988 * format.c: Fix formatting.
5990 2000-07-19 H.J. Lu <hjl@gnu.org>
5992 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5994 2000-07-19 H.J. Lu <hjl@gnu.org>
5996 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5997 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5998 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5999 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6000 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6001 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6002 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6004 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6006 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6007 renamed functions from here...
6008 (assign_section_numbers): Use renamed functions.
6009 (prep_headers): Use renamed functions.
6011 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6012 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6013 * bfd-in2.h: Regenerate.
6015 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6017 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6018 parenthesis in if statement.
6020 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6022 Enable the support for Traditional MIPS.
6023 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6024 return ict_none appropriately for traditional mips targets.
6025 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6026 (STUB_MOVE): Conditionalize for traditonal mips.
6027 (STUB_LI16): Likewise.
6028 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6029 room for RTPROC header.
6030 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6031 the permission for the PT_DYNAMIC as read, write and execute.
6032 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6033 for traditonal mips.
6034 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6035 _DYNAMIC_LINKING for traditonal mips.
6036 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6037 in case of traditonal mips.
6038 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6039 entry is required. For a function if PLT is not required then set the
6040 corresponding hash table entry to 0.
6041 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6043 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6044 shared object set the value to 0.
6045 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6046 _DYNAMIC_LINKING for traditonal mips.
6047 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6048 for traditonal mips.
6050 2000-07-15 H.J. Lu <hjl@gnu.org>
6052 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6054 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6056 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6057 out a structure that is BFD_IN_MEMORY.
6059 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6061 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6062 bfd pointer. Print section id instead of bfd pointer for local
6063 syms. Prefix addend with `+' for global syms as well as local.
6064 Correct calculation of name component lengths.
6065 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6067 From David Huggins-Daines <dhd@linuxcare.com>
6068 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6069 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6070 (elf64_hppa_modify_segment_map): Likewise.
6072 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6074 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6075 addresses to be "naturally" sign extended. Return -1 if unknown.
6076 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6077 * bfd-in2.h: Regenerate.
6079 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6081 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6082 and ECOF_SIGNED_64 to list ways to extract an offset.
6083 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6084 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6086 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6087 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6089 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6091 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6092 bfd_get_start_address.
6093 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6094 (elf_swap_ehdr_out): Ditto.
6096 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6098 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6099 compatibility with older binutils.
6101 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6103 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6104 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6106 From Ryan Bradetich <rbradetich@uswest.net>
6107 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6108 (parse_line_table): Ditto.
6109 (_bfd_dwarf1_find_nearest_line): Ditto.
6110 * syms.c (cmpindexentry): Remove extra `*' from params.
6112 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6114 * elf32-mips.c (sort_dynamic_relocs): New Function.
6115 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6116 via qsort to sort the dynamic relocations in increasing r_symndx
6119 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6121 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6122 ATTRIBUTE_UNUSED to unused args.
6123 (get_opd): Likewise.
6124 (get_plt): Likewise.
6125 (get_dlt): Likewise.
6126 (get_stub): Likewise.
6127 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6128 (elf64_hppa_link_output_symbol_hook): Likewise.
6129 (elf64_hppa_check_relocs): Delete unused var.
6130 (elf64_hppa_size_dynamic_sections): Likewise.
6131 (elf64_hppa_finalize_opd): Likewise.
6132 (elf64_hppa_finalize_dynreloc): Likewise.
6133 (elf64_hppa_modify_segment_map): Likewise.
6134 (elf64_hppa_finish_dynamic_sections): Likewise.
6136 * elf-hppa.h (elf_hppa_final_write_processing): Add
6137 ATTRIBUTE_UNUSED to unused args.
6138 (elf_hppa_final_link_relocate): Likewise.
6139 (elf_hppa_record_segment_addrs): Add paretheses.
6140 (elf_hppa_relocate_section): Constify dyn_name.
6142 From David Huggins-Daines <dhd@linuxcare.com>
6143 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6144 rearrange case statement so that it gets preferred to 32-bit ones.
6146 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6147 asection->id instead of address of asection structure.
6148 (elf32_hppa_size_stubs): Likewise.
6150 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6151 for .init* and .fini*.
6153 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6154 and addends used in stub names to 32 bits.
6155 (elf32_hppa_size_stubs): Likewise.
6157 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6158 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6159 not bfd_put_64. Fix minor comment typo and formatting.
6161 Changes to create multiple linker stubs, positioned immediately
6162 before the section where they are required.
6163 * elf32-hppa.c: Don't include hppa_stubs.h.
6164 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6165 (elf32_hppa_stub_hash_table): Delete.
6166 (elf32_hppa_link_hash_entry): Delete.
6167 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6168 stub_hash_table, and store the struct here rather than a pointer.
6169 Delete output_symbol_count. Add offset array. Change
6170 global_value to a bfd_vma.
6171 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6172 (elf32_hppa_stub_hash_traverse): Delete.
6173 (elf32_hppa_name_of_stub): Delete.
6174 (elf32_hppa_link_hash_lookup): Delete.
6175 (elf32_hppa_link_hash_traverse): Delete.
6176 (elf32_hppa_stub_hash_table_init): Delete.
6177 (elf32_hppa_size_of_stub): Pass input section and offset rather
6178 than location and calculate location here. Don't pass name as all
6179 stubs are now the same size.
6180 (elf32_hppa_stub_hash_newfunc): Init new fields.
6181 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6183 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6184 comparing against ints. Rewrite stub handling code.
6185 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6186 Case enums to int before comparing against ints. Remove
6187 bfd_reloc_dangerous case.
6188 (elf32_hppa_build_one_stub): Rewrite.
6189 (elf32_hppa_size_one_stub): New function.
6190 (elf32_hppa_build_stubs): Rewrite.
6191 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6192 Rewrite stub-handling specific code.
6194 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6196 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6198 * hppa_stubs.h: Delete.
6199 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6200 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6201 * Makefile.in: Regenerate.
6203 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6206 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6208 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6209 and section name for bfd_reloc_notsupported error message.
6210 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6211 bfd_reloc_notsupported.
6212 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6214 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6215 undefined weak symbols for all relocs.
6216 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6217 offsets are relative to one past the delay slot.
6218 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6219 branch destination. Put addend into stub name too.
6220 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6221 adjust by 8 when deciding whether a linker stub is needed. Put
6222 addend into stub name as for above.
6224 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6225 various args and vars.
6226 (elf32_hppa_bfd_final_link_relocate): Here too.
6227 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6228 inner block var to avoid shadowing.
6230 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6232 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6233 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6234 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6236 * libhppa.h: Change practically all unsigned ints to plain ints.
6237 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6240 From Ryan Bradetich <rbradetich@uswest.net>
6241 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6242 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6244 From David Huggins-Daines <dhd@linuxcare.com>
6245 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6246 to the new OP_* ones.
6248 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6249 error exit. Bail out earlier on plabel relocs that we aren't
6250 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6251 string, and then don't free our copy.
6252 (elf32_hppa_build_one_stub): Make insn unsigned int.
6254 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6255 available with BL, not BE and BLE.
6257 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6258 code for elf arg relocs.
6259 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6260 argument with elf_link_hash_entry h. Handle undefined weak
6261 symbols. Move $global$ lookup from here...
6262 (elf32_hppa_relocate_section): ...to here. Return correct error
6263 message for non-handled relocs.
6264 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6265 wrong test was -0x3ffff to +0x40000.
6267 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6268 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6269 Handle them as such.
6270 (elf_hppa_relocate_insn): Fix a typo.
6272 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6273 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6274 assemble_17, assemble_21): Delete.
6275 Supply defines for all 64 possible opcodes.
6276 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6277 formats. Handle COMICLR.
6278 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6281 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6282 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6283 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6285 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6286 the local syms - did this code get deleted accidentally? Ignore
6287 undefined and undefweak syms.
6289 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6290 block. Use it instead of elf64_hppa_hash_table (info).
6291 (elf_hppa_final_link_relocate): Use hppa_info instead of
6292 elf64_hppa_hash_table (info).
6294 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6295 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6296 (hppa_rebuild_insn): Mask immediate bits here instead.
6297 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6299 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6301 * section.c (struct sec): Add id field. Tidy comment formatting.
6302 (bfd_make_section_anyway): Set id.
6303 (STD_SECTION): Init id too.
6304 Change CONST to const throughout.
6305 * archures.c (bfd_arch_info): Tidy comment.
6306 (bfd_arch_list): Change a CONST to const.
6307 * libbfd-in.h: Tidy comments and replace CONST with const.
6308 * elf-bfd.h: Likewise.
6309 * libbfd.h: Regenerate.
6310 * bfd-in2.h: Regenerate.
6311 * libcoff.h: Regenerate.
6313 2000-07-07 DJ Delorie <dj@redhat.com>
6315 * archive.c (_bfd_write_archive_contents): Add an informative
6318 2000-07-06 Kazu Hirata <kazu@hxi.com>
6320 * srec.c: Fix formatting.
6322 2000-06-05 DJ Delorie <dj@redhat.com>
6326 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6328 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6329 value of PC-relative offsets.
6331 2000-07-03 Jim Wilson <wilson@cygnus.com>
6333 * elf64-alpha.c (alpha_elf_size_info): New.
6334 (elf_backend_size_info): Define to alpha_elf_size_info.
6335 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6337 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6339 * elf32-mips.c: Include elf32-target.h again for the traditional
6342 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6344 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6345 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6346 (avr_info_to_howto_rela): Likewise.
6347 (elf32_avr_gc_mark_hook): Likewise.
6348 (elf32_avr_gc_sweep_hook): Likewise.
6349 (elf32_avr_relocate_section): Likewise.
6351 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6353 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6354 an external symbol for a non-shared, non-relocatable link.
6356 2000-07-03 Nick Clifton <nickc@redhat.com>
6358 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6359 is an external symbol.
6360 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6363 2000-07-03 Kazu Hirata <kazu@hxi.com>
6365 * reloc16.c: Fix formatting.
6367 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6369 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6370 to add a new target for traditional mips i.e
6371 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6372 * configure.in: Likewise.
6373 * configure: Rebuild.
6374 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6376 (bfd_elf32_tradlittlemips_vec): Likewise.
6377 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6378 to see that elfNN_bed does not get redefined even if the target file
6379 is included twice for a chip. See elf32-mips.c.
6381 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6383 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6384 (CLEANFILES): Add DEPA.
6385 * Makefile.in: Regenerate.
6387 2000-06-30 DJ Delorie <dj@cygnus.com>
6389 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6390 can't assume the PE header is at 0x80.
6392 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6394 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6396 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6398 * go32stub.h: Update stub.
6400 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6402 * archures.c (bfd_mach_avr5): Define.
6403 * bfd-in2.h (bfd_mach_avr5): Define.
6404 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6405 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6406 (compatible): Update comment. Add missing test.
6407 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6408 for avr2 and avr4. Simplify 8K wrap code.
6409 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6410 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6412 2000-06-26 Kazu Hirata <kazu@hxi.com>
6414 * coff-h8300.c: Fix formatting.
6415 * cpu-h8300.c: Likewise.
6417 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6419 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6420 for local symbols whose names are unknown.
6422 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6424 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6426 * Makefile.in: Regenerate.
6427 * doc/Makefile.in: Regenerate.
6429 2000-06-20 H.J. Lu <hjl@gnu.org>
6431 * Makefile.am: Rebuild dependency.
6432 * Makefile.in: Rebuild.
6434 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6436 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6437 (elf_backend_copy_indirect_symbol): Map to the new function.
6439 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6441 * archive.c (normalize): Correct pointer comparison when checking
6443 (bfd_bsd_truncate_arname): Likewise.
6444 (bfd_gnu_truncate_arname): Likewise.
6446 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6448 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6449 sections elf_{text,data}_{section,symbol}.
6450 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6451 (_bfd_mips_elf_hide_symbol): New function.
6452 (elf_backend_hide_symbol): Map to the new function.
6453 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6454 definitions of mips_elf_{text,data}_{section,symbol}.
6455 (mips_elf_local_relocation_p): Try to find the direct symbol
6456 based on new check_forced argument.
6457 (mips_elf_calculate_relocation): Use new version of
6458 mips_elf_local_relocation_p.
6459 (mips_elf_relocate_section): Likewise.
6460 (_bfd_mips_elf_relocate_section): Likewise.
6461 (mips_elf_sort_hash_table): Only assert that have enough GOT
6463 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6464 entry if the relocation based on the new external argument.
6465 (mips_elf_create_dynamic_relocation): Assert that we have a
6466 section contents allocated where we can swap out the dynamic
6468 (mips_elf_calculate_relocation): Find the real hash-table entry
6469 correctly by using h->root.root.type. Only create a dynamic
6470 relocation entry if the symbol is defined in a shared library.
6471 Create an external GOT entry for the GOT16 relocation if the
6472 symbol was forced local.
6473 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6474 dynamic index if the symbol was forced local.
6476 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6478 * elf32-mips.c: Fix typos in comments.
6480 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6482 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6485 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6487 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6488 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6489 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6490 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6491 (bfd_elf32_m68hc11_vec): Likewise.
6492 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6493 Supports 68hc11 & 68hc12 at the same time.
6494 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6496 (bfd_elf32_m68hc11_vec): Likewise.
6497 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6498 * archures.c (bfd_m68hc12_arch): Define and register in global list
6499 (bfd_m68hc11_arch): Likewise.
6500 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6501 BFD_RELOC_M68HC11_3B): Define.
6502 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6503 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6505 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6507 * elf_bfd.h (struct elf_backend_data): Add info argument to
6508 elf_backend_hide_symbol.
6509 (_bfd_elf_link_hash_hide_symbol): Likewise.
6510 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6511 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6512 * elflink.h (elf_link_add_object_symbols): Likewise.
6513 (elf_link_assign_sym_version): Likewise.
6515 2000-06-18 H.J. Lu <hjl@gnu.org>
6517 * coff-i386.c (coff_i386_reloc): Don't return in case of
6518 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6519 Compensate PE relocations when linking with non-PE object
6520 files to generate a non-PE executable.
6522 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6524 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6525 GOT entries if we're doing a static link or -Bsymbolic link.
6527 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6529 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6530 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6532 (elf_link_output_relocs): Likewise.
6533 (elf_reloc_link_order): Likewise.
6535 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6537 * archures.c (enum bfd_architecture): #define constants for
6538 PowerPc and RS6000 machine numbers.
6539 * bfd-in2.h: Regenerate.
6540 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6541 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6542 and RS6000 machine numbers using #defined constants from
6544 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6545 machine numbers using #defined constants from archures.c. Add
6546 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6547 64-bit words in 620 entry.
6548 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6550 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6552 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6554 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6555 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6556 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6558 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6560 * bfd-in.h (bfd_family_coff): Define.
6561 * bfd-in2.h: Regenerate.
6562 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6563 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6564 instead of bfd_target_coff_flavour.
6565 * cofflink.c (_bfd_coff_final_link): Likewise.
6566 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6567 exclude XCOFF files.
6568 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6570 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6571 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6572 * xcofflink.c (XCOFF_XVECP): Delete.
6573 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6574 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6575 bfd_xcoff_record_link_assignment,
6576 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6577 check for bfd_target_xcoff_flavour.
6579 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6581 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6583 (read_hdr): New function.
6584 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6585 of trying to extract individual registers. Set abfd->arch_info
6586 to match the architecture that created the core file.
6587 (rs6000coff_get_section_contents): Delete.
6588 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6590 2000-06-14 H.J. Lu <hjl@gnu.org>
6592 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6595 2000-06-13 H.J. Lu <hjl@gnu.org>
6597 * configure: Regenerate.
6599 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6601 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6604 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6606 * configure.in (VERSION): Update to show this is the CVS mainline.
6608 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6610 * elf32-d10v.c: Include elf/d10v.h
6611 (enum reloc_type): Delete.
6612 * elf32-d30v.c: Include elf/d30v.h
6613 (enum reloc_type): Delete.
6615 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6616 * Makefile.in: Regenerate.
6618 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6619 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6620 move HOWTOs into elf_howto_table.
6621 (R_386_standard, R_386_ext_offset): Define.
6622 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6623 (elf_i386_reloc_type_lookup): Modify calculation of index into
6624 elf_howto_table since we've removed the padding.
6625 (elf_i386_info_to_howto_rel): Likewise.
6626 (elf_i386_relocate_section): Likewise.
6628 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6630 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6632 2000-06-05 H.J. Lu <hjl@gnu.org>
6634 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6635 an error when seeing an undefined symbol with hidden/internal
6636 attribute. It is handled in *_relocate_section ().
6638 2000-06-05 H.J. Lu <hjl@gnu.org>
6640 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6641 indirect symbol for the ELF_LINK_NON_ELF bit.
6642 (elf_link_output_extsym): Don't output the indirect symbol even
6643 if the ELF_LINK_NON_ELF bit is set.
6645 2000-06-01 J.T. Conklin <jtc@redback.com>
6647 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6648 (i[3456]86-*-netbsdaout*): New target.
6649 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6650 (i[3456]86-*-openbsd*): Likewise.
6652 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6654 * trad-core.c: From hpux-core.c, include <dirent.h> or
6655 <sys/ndir.h> when possible.
6657 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6659 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6660 definitions. We must not assume they are sorted in the file
6661 according to their index numbers.
6663 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6665 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6666 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6667 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6669 2000-05-30 Nick Clifton <nickc@cygnus.com>
6671 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6672 80960CA, 80960MC as valid machine names.
6674 2000-05-30 H.J. Lu <hjl@gnu.org>
6676 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6677 visibility bits if the symbol is undefined. Correctly handle
6678 weak undefined symbols with hidden and internal attributes.
6680 * elflink.h (elf_link_add_object_symbols): Always turn the
6681 symbol into local if it has the hidden or internal attribute.
6683 2000-05-29 Philip Blundell <philb@gnu.org>
6685 * ppcboot.c: Add packed attribute if compiling with GCC.
6687 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6689 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6691 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6693 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6694 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6695 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6698 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6700 * Makefile.am: Update dependencies with "make dep-am"
6701 * Makefile.in: Regenerate.
6703 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6704 bindtextdomain): Replace defines with those from intl/libgettext.h
6705 to quieten gcc warnings.
6707 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6709 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6711 * archive.c (normalize, bfd_bsd_truncate_arname,
6712 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6713 file names with backslashes.
6715 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6718 * sysdep.h: Include filenames.h.
6720 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6722 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6724 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6726 * elf64-sparc.c (sparc64_elf_relax_section): New.
6727 (sparc64_elf_relocate_section): Optimize tail call into branch always
6729 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6730 (elf32_sparc_relax_section): New.
6732 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6734 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6735 Remove unusued variables.
6736 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6737 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6738 previous fix, so that shared libs really don't influence targets
6739 extension mask and memory model.
6741 2000-05-23 H.J. Lu <hjl@gnu.org>
6743 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6744 h->root.other not h->other.
6745 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6747 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6749 2000-05-23 H.J. Lu <hjl@gnu.org>
6751 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6752 undefined symbol with the non-default visibility attributes.
6753 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6754 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6755 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6756 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6757 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6758 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6759 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6760 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6761 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6762 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6763 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6765 2000-05-22 Richard Henderson <rth@cygnus.com>
6767 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6768 PCREL22, PCREL64I. Zero size of special relocs.
6769 (elf64_ia64_reloc_type_lookup): Likewise.
6770 (USE_BRL, oor_brl, oor_ip): New.
6771 (elf64_ia64_relax_section): New.
6772 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6773 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6774 (elf64_ia64_relocate_section): Likewise.
6775 (bfd_elf64_bfd_relax_section): New.
6776 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6777 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6778 * bfd-in2.h, libbfd.h: Regenerate.
6780 2000-05-22 Nick Clifton <nickc@cygnus.com>
6782 * configure.in : Add peigen.lo to MIPS PE targets.
6783 * configure: Regenerate.
6785 2000-05-22 Momchil Velikov <velco@fadata.bg>
6787 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6788 only if it is known for both input and output bfds. Separate
6789 error message strings as in some languages, it may be necessary
6790 to change more than one place in the string to change between
6793 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6794 endianess checks, call _bfd_generic_verify_endian_match() instead.
6796 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6798 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6800 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6801 endianess before checking bfd flavours.
6803 2000-05-22 H.J. Lu <hjl@gnu.org>
6805 * elflink.h (elf_link_output_extsym): Clear the visibility
6806 field for symbols not defined locally.
6808 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6810 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6811 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6812 (hppa_rebuild_insn): Mask immediate bits here instead.
6813 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6815 2000-05-18 Momchil Velikov <velco@fadata.bg>
6817 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6818 relocs for an executable, ensure that they are virtual addresses.
6820 2000-05-18 Jeffrey A Law (law@cygnus.com)
6822 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6824 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6825 Rick Gorton <gorton@scrugs.lkg.dec.com>
6827 * elflink.h: Add emitrelocations support: when enabled, relocation
6828 information and relocation sections are put into final output
6829 executables. If the emitrelocations flag is set, do the following:
6830 (elf_bfd_final_link): Emit relocation sections.
6831 (elf_link_input_bfd): Compute relocation section contents.
6832 (elf_gc_sections): Don't clean relocation sections.
6834 2000-05-16 Catherine Moore <clm@cygnus.com>
6836 * som.c (som_decode_symclass): Recognize weak symbols.
6838 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6840 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6841 read idata section only from dataoff.
6842 (pe_print_edata): Correctly check for valid eat_member.
6844 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6846 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6848 2000-05-14 Philip Blundell <philb@gnu.org>
6850 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6852 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6854 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6856 * peigen.c (pe_print_idata): Look for .idata section and print
6857 info even if data directory has zero entries. Read idata section
6858 starting from dataoff, and adjust all data offsets to suit. Cast
6859 all bfd_vma vars to unsigned long before passing to fprintf.
6860 * peigen.c (pe_print_edata): Similarly, look for .edata section
6861 and print info even if data directory has zero entries. Cast
6862 all bfd_vma vars to unsigned long before passing to fprintf.
6864 From Szabolcs Szakacsits <szaka@F-Secure.com>
6865 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6866 directory size which may be bogus.
6867 * peigen.c (pe_print_edata): Similarly.
6869 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6871 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6873 (copy_private_bfd_data): Allow for space possibly taken up by elf
6874 headers when calculating segment physical address from lma.
6876 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6878 * versados.c (versados_scan): Init stringlen and pass_2_done.
6880 * trad-core.c (trad_unix_core_file_p): Return
6881 bfd_error_wrong_format rather than bfd_error_file_truncated.
6883 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6884 add_data_entry. DataDirectory virtual address is relative.
6885 (pe_print_idata): Account for relative DataDirectory virtual
6886 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6887 (pe_print_edata): Similarly.
6889 From Szabolcs Szakacsits <szaka@F-Secure.com>
6890 * peigen.c (dir_names): Add Delay Import Directory.
6891 (pe_print_idata): Always search for bfd section containing
6892 idata address rather than looking up section name. Print this
6893 section name rather than .idata.
6894 (pe_print_edata): Similarly. Also print some fields as %08lx.
6895 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6898 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6900 * xcoff.h: Rename to xcoff-target.h
6901 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6902 * coff-rs6000.c: Ditto.
6903 * coff64-rs6000.c: Ditto.
6904 * coff-pmac.c: Ditto.
6905 * Makefile.in: Regenerate.
6907 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6909 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6910 Change U802TOC64MAGIC to U803XTOCMAGIC.
6912 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6914 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6915 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6916 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6918 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6920 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6922 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6924 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6925 hidden and internal symbols.
6926 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6928 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6929 assign a PLT or GOT entry to symbols with hidden and
6930 internal visibility.
6932 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6934 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6936 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6938 2000-05-02 H.J. Lu <hjl@gnu.org>
6940 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6943 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6945 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6946 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6948 * Makefile.in: Regenerate.
6950 2000-05-01 Jim Wilson <wilson@cygnus.com>
6952 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6953 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6954 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6955 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6956 * Makefile.in: Rebuild.
6958 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6960 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6961 doesn't work very well.
6963 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6964 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6965 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6966 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6967 (elf_hppa_info_to_howto): Likewise.
6968 (elf_hppa_info_to_howto_rel): Likewise.
6969 (elf_hppa_reloc_type_lookup): Likewise.
6970 (elf_hppa_is_local_label_name): Likewise.
6971 (elf_hppa_fake_sections): Likewise.
6972 (elf_hppa_final_write_processing): Likewise.
6973 (elf_hppa_howto_table): Fully initialise all entries.
6974 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6975 (elf_hppa_info_to_howto): Likewise.
6976 (elf_hppa_info_to_howto_rel): Likewise.
6977 (elf_hppa_reloc_type_lookup): Likewise.
6978 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6979 elf_hppa_unmark_useless_dynamic_symbols,
6980 elf_hppa_remark_useless_dynamic_symbols,
6981 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6982 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6983 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6984 elf32-hppa.c mess is cleaned up.
6985 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6986 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6987 r_field then call hppa_field_adjust inline func with variable
6988 r_field arg, instead call hppa_field_adjust with fixed arg.
6989 In case R_PARISC_PCREL22F, don't set r_field.
6990 (elf_hppa_relocate_insn): Change args and return type to unsigned
6991 int. Call re_assemble_* funcs to do the work.
6993 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6996 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6998 (sign_extend): Mask first before sign extending.
6999 (low_sign_extend): Rewrite without condition expression.
7000 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7001 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7002 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7003 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7004 result as function return value rather than through pointer arg.
7005 Accept unsigned int args, and return unsigned int.
7006 (re_assemble_3): New. Combines function of dis_assemble_3 with
7007 re-assembly of opcode and immediate.
7008 (re_assemble_12): Likewise.
7009 (re_assemble_16): Likewise.
7010 (re_assemble_17): Likewise.
7011 (re_assemble_21): Likewise.
7012 (re_assemble_22): Likewise.
7013 (hppa_field_adjust): Rewrite and document, paying attention to
7014 size of types and signed/unsigned issues.
7015 (get_opcode): Shift before masking.
7016 (FDLW): Rename to FLDW.
7017 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7018 (hppa_rebuild_insn): Change args and return value to unsigned
7019 int. Make use of re_assemble_*. Correct case 11.
7021 * dep-in.sed: Handle ../opcodes/.
7022 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7023 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7024 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7025 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7026 elfarm-nabi.lo dependencies outside of auto-dependency area.
7027 Regenerate dependencies.
7028 * Makefile.in: Regenerate.
7030 * configure.in (TRAD_HEADER): Test non-null before
7032 * configure: Regenerate.
7034 * reloc.c: Fix mis-spelling in comment.
7036 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7038 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7039 * vms.c (vms_openr_next_archived_file): Return NULL.
7041 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7043 * coffcode.h Copy changes mistakenly done to libcoff.h in
7046 2000-04-29 Andreas Jaeger <aj@suse.de>
7048 * libbfd-in.h: Correctly check GCC version.
7049 * bfd-in.h: Likewise.
7050 * libhppa.h: Likewise.
7051 * libbfd.h: Regenerate.
7052 * bfd-in2.h: Regenerate.
7054 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7056 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7057 coffdu-rs6000.{lo,c}.
7058 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7060 * Makefile.in: Regenerate.
7061 * xcoff.h: New file.
7062 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7063 * coff-rs6000.c: Move all declarations and defines that are
7064 common to the xcoff backends into xcoff.h
7065 * coff64-rs6000.c: Ditto,
7067 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7069 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7070 _bfd_coff_force_symnames in strings and
7071 _bfd_coff_debug_string_prefix_length to their default values.
7072 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7074 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7076 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7077 _bfd_coff_force_symnames in strings and
7078 _bfd_coff_debug_string_prefix_length to their default values.
7080 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7082 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7083 Check local_got_refcounts before dereferencing.
7085 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7086 before deciding we don't need R_PPC_PLT32 relocation.
7087 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7090 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7092 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7094 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7095 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7096 (elf_i386_relocate_section): Allow for .plt to go missing.
7097 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7098 can use a relative reloc for got as elf_i386_relocate_section.
7099 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7101 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7103 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7105 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7107 * Makefile.am (coff64-rs6000.lo): New rule.
7108 * Makefile.in: Regenerate.
7109 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7110 xcoff_is_local_label_name, xcoff_rtype2howto,
7111 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7112 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7113 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7114 (NO_COFF_SYMBOLS): Define.
7115 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7116 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7118 (MINUS_ONE): New macro.
7119 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7121 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7122 coff_SWAP_aux_out): Map to the new functions.
7123 * coff64-rs6000.c: New file.
7124 * libcoff.h (bfd_coff_backend_data): Add new fields
7125 _bfd_coff_force_symnames_in_strings and
7126 _bfd_coff_debug_string_prefix_length.
7127 (bfd_coff_force_symnames_in_strings,
7128 bfd_coff_debug_string_prefix_length): New macros for above fields.
7129 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7130 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7131 of using coff_swap_sym_in directly.
7132 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7133 (coff_set_flags) Set magic for XCOFF64.
7134 (coff_compute_section_file_positions): Add symbol name length to
7135 string section length if bfd_coff_debug_string_prefix_length is
7137 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7138 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7139 using coff_swap_lineno_in directly.
7140 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7141 and _bfd_coff_debug_string_prefix_length fields.
7142 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7143 symbol names into strings table when
7144 bfd_coff_force_symnames_in_strings is true.
7145 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7146 SET_RELOC_VADDR): New macros.
7147 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7148 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7150 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7151 changes within RS6000COFF_C specific code.
7152 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7153 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7154 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7155 Extend existing hack on target name.
7156 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7158 * coff-tic54x.c (ticof): Keep up to date with new fields
7159 in bfd_coff_backend_data.
7160 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7161 targ_selvecs to include rs6000coff64_vec for rs6000.
7162 * configure.in: Add rs6000coff64_vec case.
7163 * cpu-powerpc.c: New bfd_arch_info_type.
7165 2000-04-24 Jeffrey A Law (law@cygnus.com)
7167 * config.bfd: Only disable elf32-hppa vectors, not all of the
7168 BSD and OSF configuration support. Provide (disabled) clauses
7170 * configure.in: Add clause for PA64 support.
7171 * configure: Rebuilt.
7173 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7174 (bfd_elf64_hppa_vec): Declare.
7176 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7177 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7178 (elf64-hppa.lo): Add dependencies.
7179 * Makefile.in: Rebuilt.
7181 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7183 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7185 * libhppa.h (dis_assemble_16): New function.
7186 (pa_arch): Added pa20w element.
7188 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7190 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7191 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7192 bfd_elf64_slurp_reloc_table.
7194 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7195 definitions to get external names.
7196 (elf_write_relocs): Renamed from write_relocs and make global.
7197 (elf_slurp_reloc_table): Make global.
7198 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7200 * archive.c (hpux_uid_gid_encode): New function.
7201 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7202 defined and the ID is greater than 99999.
7203 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7204 special uid/gid fields into 32 bit values.
7206 2000-04-21 Matthew Green <mrg@cygnus.com>
7208 * config.bfd: Add NetBSD/sparc64 support.
7210 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7211 David Mosberger <davidm@hpl.hp.com>
7212 Timothy Wall <twall@cygnus.com>
7213 Jim Wilson <wilson@cygnus.com>
7215 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7216 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7217 (BFD64_BACKENDS): Add elf64-ia64.lo.
7218 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7219 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7220 * Makefile.in: Rebuild.
7221 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7222 (bfd_ia64_arch): Declare.
7223 (bfd_archures_list): Add bfd_ia64_arch.
7224 * bfd-in2.h: Rebuild.
7225 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7226 * configure: Rebuild.
7227 * configure.host: (ia64-*-linux*): New host.
7228 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7229 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7230 * elf.c (prep_headers): Add bfd_arch_ia64.
7231 * libbfd.h: Rebuild.
7232 * reloc.c: Add IA-64 relocations.
7233 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7235 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7236 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7238 2000-04-21 Richard Henderson <rth@cygnus.com>
7240 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7241 contents when performing a partial link.
7242 (bfd_elf_d30v_reloc_21): Likewise.
7244 2000-04-20 H.J. Lu <hjl@gnu.org>
7246 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7247 patch to symbols defined by a shared object.
7248 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7250 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7253 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7254 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7256 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7258 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7259 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7260 (coff-ia64.lo): Add dependency.
7261 * Makefile.in: Regenerate.
7262 * coff-ia64.c: New file.
7263 * efi-app-ia32.c: Ditto.
7264 * efi-app-ia64.c: Ditto.
7265 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7266 (coff_set_flags): Ditto.
7267 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7268 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7269 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7270 * configure: Regenerate.
7271 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7272 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7273 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7274 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7275 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7276 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7277 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7278 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7279 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7280 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7281 (GET_PDATA_ENTRY): Ditto.
7282 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7283 data_start. Use above macros to read fields that are 64 bit wide for
7284 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7285 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7286 FileAlignment and SectionAlignment to minimum alignment if they
7288 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7289 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7290 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7291 Use above macros to write fields that are 64 bit wide for
7293 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7294 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7295 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7296 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7297 begin address, end address, and unwind info address only. Use
7298 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7300 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7301 HIGH3ADJ relocation names.
7302 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7303 * targets.c: Declare bfd_efi_app_ia32_vec and
7304 bfd_efi_app_ia64_vec.
7305 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7306 bfd_efi_app_ia64_vec.
7308 2000-04-17 Timothy Wall <twall@cygnus.com>
7310 * bfd-in2.h: Add prototypes for tic54x load page access.
7311 * bfd-in.h: Regenerate.
7312 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7313 in customized _set_arch_mach function.
7314 * coffcode.h (coff_set_alignment_hook): Set section load page if
7315 the appropriate macro is defined.
7316 (write_object_contents): Read section load page.
7318 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7320 * elf32-hppa.h: Update copyright date.
7322 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7323 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7325 * elf32-d30v.c (MAX32): Don't use LL suffix.
7326 (MIN32): Define in terms of MAX32.
7327 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7329 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7332 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7334 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7336 * dep-in.sed: Match space before file name, not after.
7337 * Makefile.am: Regenerate dependencies.
7338 * Makefile.in: Regenerate.
7340 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7341 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7342 extend without an if statement.
7344 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7346 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7348 * elf32-mips.c (gprel16_with_gp): Likewise.
7349 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7350 here using -0x40000, not (int)0xfffc0000.
7351 (elf32_hppa_size_of_stub): Likewise.
7353 2000-04-11 Timothy Wall <twall@cygnus.com>
7355 * coff-tic54x.c: Now builds with all targets.
7356 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7357 * Makefile.in: Regenerate.
7358 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7359 unitialized variable.
7361 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7363 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7364 --enable-build-warnings option.
7365 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7366 * Makefile.in, configure: Re-generate.
7368 2000-04-07 Nick Clifton <nickc@cygnus.com>
7370 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7371 BFD_RELOC_THUMB_PCREL_BLX.
7373 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7374 R_ARM_XPC25 and R_ARM_THM_PC22.
7376 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7377 R_ARM_XPC25 and R_ARM_THM_XPC22.
7378 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7379 R_ARM_[XPC25|THM_XPC22].
7381 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7382 elf/arm-oabi.h to elf/arm.h
7384 * Makefile.am: Fix dependency for elfarm-oabi.c
7385 * Makefile.in: Regenerate.
7387 * bfd-in2.h: Regenerate.
7388 * libbfd.h: Regenerate.
7390 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7392 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7393 and restore it on failure. Release newly allocated tdata on
7396 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7398 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7399 (decode_line_info): Set it. Report error if unit->line_offset is
7400 equal to or larger than it.
7402 2000-04-07 Timothy Wall <twall@cygnus.com>
7404 * targets.c: Added vecs for tic54x.
7405 * reloc.c: Added relocs for tic54x.
7406 * libbfd.h: Regenerated.
7407 * configure: Add TI COFF vecs for tic54x.
7408 * configure.in: Ditto.
7409 * config.bfd (targ_cpu): Recognize new tic54x target.
7410 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7411 * bfd-in2.h: Add tic54x target and relocations.
7412 * Makefile.am, Makefile.in: Add tic54x target.
7413 * archures.c (bfd_archures_list): Add tic54x target.
7414 * coff-tic54x.c: New.
7415 * cpu-tic54x.c: New.
7417 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7419 * elfcore.h (elf_core_file_p): call backend_object_p which
7420 thereby gets an opportunity to update the arch/machine type.
7422 2000-04-06 Timothy Wall <twall@cygnus.com>
7424 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7425 class. Handle SEC_CLINK and SEC_BLOCK flags.
7426 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7427 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7429 2000-04-06 Nick Clifton <nickc@cygnus.com>
7431 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7432 EF_INTERWORK if this is an unknown EABI.
7433 (elf32_arm_merge_private_bfd_data): Check EABI version
7434 numbers. Only check EF_xxx flags if the EABI version number
7436 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7437 if the EABI version number is unknown.
7438 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7439 if the EABI version number is unknown.
7441 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7443 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7444 BFD_RELOC_SH_LOOP_END.
7445 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7446 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7447 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7448 (sh_elf_reloc_loop): New function.
7449 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7451 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7452 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7453 * bfd-in2.h, libbfd.h: Regenerate.
7455 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7457 * po/bfd.pot: Regenerate.
7459 * Makefile.am: Remove extraneous mkdep comment.
7460 (MKDEP): Use gcc -MM rather than mkdep.
7461 (DEP): Quote when passing vars to sub-make. Add warning
7463 (DEP1): Rewrite for "gcc -MM".
7464 (CLEANFILES): Add DEP2.
7465 Update dependencies.
7466 * Makefile.in: Regenerate.
7468 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7470 * configure.in: Added corefile support for AIX 4.3. In particular,
7471 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7472 compiling rs6000-core.c.
7473 * configure: Regenerated.
7475 2000-04-03 H.J. Lu <hjl@gnu.org>
7477 * cache.c (bfd_open_file): Unlink the output file only if
7478 it has non-zero size.
7480 2000-04-01 Ken Block USG <block@zk3.dec.com>
7482 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7483 relative relocations for non-loaded sections in shared objects.
7484 (elf64_alpha_check_relocs): Similarly.
7486 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7488 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7489 BFD_RELOC_16 to switch for extended relocs.
7490 (MY_swap_ext_reloc_in): New.
7491 (MY_swap_ext_reloc_out): New.
7492 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7493 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7494 (NAME(aout,squirt_out_relocs)): Similarly use
7495 MY_swap_ext_reloc_out.
7496 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7498 2000-04-03 Kazu Hirata <kazu@hxi.com>
7500 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7501 the R_PCRWORD_B case.
7503 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7505 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7509 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7511 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7512 HOWTO references to bfd_elf_generic_reloc, that have
7513 partial_inplace == true, now use the new function. The function
7514 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7515 extends its fixes to the R_M32R_{16,24,32} relocs.
7516 The new logic in m32r_elf_lo16_reloc() has been removed, and
7517 it instead calls the new routine to obtain that functionality.
7519 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7521 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7522 elf32_avr_check_relocs, avr_final_link_relocate,
7523 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7524 elf32_avr_object_p): Add prototypes.
7525 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7526 (bfd_elf_avr_final_write_processing): Make static.
7528 2000-03-27 Denis Chertykov <denisc@overta.ru>
7530 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7531 * archures.c (bfd_architecture): Add AVR architecture.
7532 (bfd_archures_list): Add reference to AVR architecture info.
7533 * elf.c (prep_headers): Handle bfd_arch_avr.
7534 * reloc.c: Add various AVR relocation enums.
7535 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7537 * Makefile.am: Add support for AVR elf.
7538 * configure.in: Likewise.
7539 * config.bfd: Likewise.
7540 * Makefile.in: Regenerate.
7541 * configure: This too.
7542 * bfd-in2.h: And this.
7543 * libbfd.h: And this.
7545 2000-03-24 H.J. Lu <hjl@gnu.org>
7547 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7548 (elf64_alpha_find_reloc_at_ofs): Likewise.
7550 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7552 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7553 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7554 allowable range used to be -2**(n-1) to 2**n-1.
7555 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7556 "boolean overflow" with "bfd_reloc_status_type flag".
7558 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7560 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7562 2000-03-14 Kazu Hirata <kazu@hxi.com>
7564 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7565 of shrinks properly, including the last reloc.
7567 2000-03-13 Kazu Hirata <kazu@hxi.com>
7569 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7572 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7574 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7575 a format mismatch rather than an "error" from bfd_read such as
7576 bfd_error_file_truncated.
7578 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7580 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7581 sign-extension and big-endian compensation for
7582 R_MIPS_64 even in ld -r.
7584 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7586 * elf32-mips.c (mips_elf_next_relocation): Rename from
7587 mips_elf_next_lo16_relocation, and generalize to look
7588 for any relocation type.
7589 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7590 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7591 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7592 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7593 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7594 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7595 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7596 (mips_rtype_to_howto): Likewise.
7597 (mips_elf_calculate_relocation): Handle new relocs.
7598 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7599 are paired. The addend for R_MIPS_GNU_REL16_S2
7600 is shifted right two bits.
7602 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7604 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7605 comment, and ensure it doesn't happen again.
7606 (bfd_install_relocation): Same here.
7607 (_bfd_relocate_contents): Don't bother assigning unused signmask
7608 shift result. Fix typos in comments.
7609 Remove trailing whitespace throughout file.
7611 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7613 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7614 * bfd-in2.h: Rebuild.
7616 2000-03-06 Nick Clifton <nickc@cygnus.com>
7618 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7620 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7621 (SIZEOF_ILF_STRINGS): Redefine.
7622 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7623 relative reloc, as opposed to a section relative reloc.
7624 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7626 Add length of symbol's prefix to string pointer.
7627 Store a pointer to the symbol in the symbol pointer table.
7628 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7629 Initialise the symbol pointer table.
7630 Store the hint in the Hint/Name table.
7631 Make the jump reloc be symbol realtive, not section relative.
7632 Create an import symbol for imported code.
7634 2000-03-06 Catherine Moore <clm@cygnus.com>
7636 * elf.c (swap_out_syms): Check for null type_ptr.
7638 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7640 * aout-target.h (MY(write_object_contents)): Remove unused
7641 and unusable "#if CHOOSE_RELOC_SIZE".
7642 * pc532-mach.c (MY(write_object_contents)): Ditto.
7643 * netbsd.h (MY(write_object_contents)): Ditto.
7644 * hp300hpux.c (MY(write_object_contents)): Ditto.
7645 * freebsd.h (MY(write_object_contents)): Ditto.
7646 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7648 2000-02-29 H.J. Lu <hjl@gnu.org>
7650 * peicode.h (jtab): Make it static.
7652 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7653 defined and COFF_IMAGE_WITH_PE is not defined.
7654 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7655 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7657 2000-03-01 Nick Clifton <nickc@cygnus.com>
7659 * coff-arm.c (bfd_arm_process_before_allocation): Make
7660 'symndx' signed to prevent compile time warning.
7662 * coff-mcore.c: Remove unused prototype for pe_object_p.
7664 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7665 functions that are not used when COFF_IMAGE_WITH_PE is
7667 (struct sh_opcode): Change type of 'flags' field to unsigned
7668 long so that it can hold the USESAS flag.
7670 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7672 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7675 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7677 Remove unusued variables and code.
7678 (elf_backend_add_symbol_hook): Fix prototype.
7680 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7683 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7686 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7688 Remove unusued variables and code.
7689 (elf_backend_add_symbol_hook): Fix prototype.
7691 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7693 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7694 to unused function parameter.
7696 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7698 Use EMPTY_HOWTO to initialise empty howto slots.
7699 Remove unused variables.
7701 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7703 2000-03-01 H.J. Lu <hjl@gnu.org>
7705 * aoutx.h (aout_link_input_section_std): Pass "true" to
7706 the undefined_symbol callback.
7707 (aout_link_input_section_ext): Likewise.
7708 * bout.c (get_value): Likewise.
7709 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7710 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7712 (alpha_relocate_section): Likewise.
7713 * coff-arm.c (coff_arm_relocate_section): Likewise.
7714 * coff-i960.c (coff_i960_relocate_section): Likewise.
7715 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7716 * coff-mips.c (mips_relocate_section): Likewise.
7717 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7718 * coff-sh.c (sh_relocate_section): Likewise.
7719 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7720 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7721 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7722 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7723 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7724 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7725 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7726 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7727 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7728 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7729 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7730 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7731 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7732 * elflink.h (elf_link_output_extsym): Likewise.
7733 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7734 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7735 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7737 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7738 undefined_symbol callback when building shared library with
7739 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7741 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7742 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7743 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7744 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7745 (elf32_mips_get_relocated_section_content): Likewise.
7746 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7747 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7748 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7749 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7751 2000-02-28 Nick Clifton <nickc@cygnus.com>
7753 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7754 * Makefile.in: Regenerate.
7756 * configure.in: Add support for mips and sh pe vectors.
7757 * configure: regenerate.
7759 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7762 * targets.c: Add mips and sh pe vectors.
7764 * libpei.h (coff_final_link_postscript): Only define if not
7767 * coffcode.h: Add support for WinCE magic numbers.
7769 * peigen.c (pe_print_reloc): Update comment and rearrange
7770 appending of newline character.
7772 * peicode.h: Add support for Image Library Format.
7773 (pe_ILF_vars): Structure containing data used by ILF code.
7774 (pe_ILF_make_a_section): New function. Create a section based
7776 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7778 (pe_ILF_make_a_symbol): New function. Create a symbol based
7780 (pe_ILF_save_relocs): New function. Store the relocs created
7781 by pe_ILF_make_a_reloc in a section.
7782 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7784 (pe_ILF_object_p): New function. Return a bfd_target pointer
7786 (pe_bfd_object_p): If an ILF object is detected call
7787 pe_ILF_object_p on it.
7789 * coff-arm.c: Add support for WinCE relocs which are different
7790 from normal ARM COFF relocs.
7791 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7793 * coff-sh.c: Add support for sh-pe target.
7794 * pe-sh.c: New file. Support code for sh-pe target.
7795 * pei-sh.c: New file. Support code for sh-pe target.
7797 * pe-mips.c: New file. Support code for mips-pe target.
7798 * pei-mips.c: New file. Support code for mips-pe target.
7800 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7802 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7803 architecture if the object causing the bump is dynamic.
7804 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7805 and also don't it for memory ordering.
7806 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7808 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7810 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7811 calling bfd_get_section_size_before_reloc.
7812 (decode_line_info): Likewise.
7813 (_bfd_dwarf2_find_nearest_line): Likewise.
7815 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7817 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7818 name of the libtool directory.
7819 * Makefile.in: Rebuild.
7821 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7823 * som.c (SOM_HOWTO): Define.
7824 (som_hppa_howto_table): Use it.
7826 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7828 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7830 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7832 2000-02-24 Catherine Moore <clm@cygnus.com>
7834 * som.c (som_misc_symbol_info): Add field
7836 (som_bfd_derive_misc_symbol_info): Initialize
7838 (som_build_and_write_symbol_table): Keep track
7839 of secondary_def field.
7840 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7841 if secondary_def field is set.
7842 (som_bfd_ar_write_symbol_stuff): Initialize
7845 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7847 * dwarf2.c (read_address): Read 16-bits addresses.
7848 (parse_comp_unit): Accept addr_size == 2.
7850 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7852 * bfd-in.h: Update copyright date.
7854 2000-02-23 Linas Vepstas <linas@linas.org>
7856 * cpu-i370.c: New file.
7857 * elf32-i370.c: New file.
7858 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7859 (bfd_i370_arch): New.
7860 (bfd_archures_list): Add bfd_i370_arch.
7861 * elf.c (prep_headers): Add bfd_arch_i370.
7862 * Makefile.am: Add support for IBM 370 elf.
7863 * config.bfd: Likewise.
7864 * configure.in: Likewise.
7865 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7866 * reloc.c (bfd_reloc_code_type): Likewise.
7867 * targets.c: Likewise.
7869 * Makefile.in: Regenerate.
7870 * configure: Regenerate.
7871 * bfd-in2.h: Regenerate.
7873 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7875 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7876 invalid relocation types, and change them to R_386_NONE.
7878 2000-02-22 H.J. Lu <hjl@gnu.org>
7880 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7881 not defined, don't add a second ELF_VER_CHR.
7883 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7884 symbols converted to local symbols even when stripping all
7886 (elf_link_output_extsym): Process global symbols converted to
7887 local symbols even if they are being stripped.
7889 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7891 * archures.c (bfd_octets_per_byte): Return unsigned int.
7892 (bfd_arch_mach_octets_per_byte): Ditto.
7893 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7895 * section.c (bfd_get_section_size_before_reloc): Quell signed
7896 vs. unsigned comparison warning.
7897 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7898 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7899 change. What was I thinking?
7900 * bfd-in2.h: Regenerate.
7902 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7903 (elf_gc_sections): Same here.
7904 (elf_gc_common_finalize_got_offsets): And here.
7906 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7908 ELF HPPA doesn't work at present; remove it until it does.
7909 * config.bfd: Comment out setting targ_defvec to
7911 * Makefile.am: Rebuild dependencies.
7912 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7913 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7914 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7915 * Makefile.in: Rebuild.
7916 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7918 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7920 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7921 is no bfd_free(). Revert bfd_free part of previous change.
7923 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7925 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7927 (coff_compute_section_file_positions): Use bfd_free to pair
7929 (coff_write_object_contents): Likewise.
7931 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7932 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7934 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7936 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7937 (xcoff_ar_file_hdr_big): New structure.
7938 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7939 (xcoff_ar_hdr_big): New structure.
7940 (SIZEOF_AR_HDR_BIG): New macro.
7941 (xcoff_big_format_p): New macro.
7942 (xcoff_ardata_big): New macro.
7943 (arch_xhdr_big): New macro.
7944 (xcoff_slurp_armap): Handle large archives.
7945 (xcoff_archive_p): Detect large archives.
7946 (xcoff_read_ar_hdr): Handle large archives.
7947 (xcoff_openr_next_archived_file): Handle large archives.
7948 (xcoff_generic_stat_arch_elt): Handle large archives.
7949 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7950 (xcoff_write_armap_big): New function.
7951 (xcoff_write_armap): New function, dispatch to _old or _big.
7952 (xcoff_write_archive_contents_old): Rename from
7953 xcoff_write_archive_contents.
7954 (xcoff_write_archive_contents_big): New function.
7955 (xcoff_write_archive_contents): New function, dispatch to _old or
7958 2000-02-18 Richard Henderson <rth@cygnus.com>
7960 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7961 and hide_symbol members.
7962 (elf_link_hash_copy_indirect): Remove.
7963 (elf_link_hash_hide_symbol): Remove.
7964 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7965 and elf_backend_hide_symbol.
7966 (_bfd_elf_link_hash_copy_indirect): Declare.
7967 (_bfd_elf_link_hash_hide_symbol): Declare.
7968 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7969 (_bfd_elf_link_hash_hide_symbol): Likewise.
7970 (_bfd_elf_link_hash_table_init): Don't init killed members.
7971 * elflink.h (elf_link_add_object_symbols): Use the bed function
7972 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7973 (elf_link_assign_sym_version): Likewise.
7974 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7975 (elf_backend_hide_symbol): Likewise.
7976 (elfNN_bed): Update for new members.
7978 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7980 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7981 STACK_END_ADDR): Define for new core file format.
7982 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7983 for handling the vagaries of the various core file structures used
7984 by AIX over the years.
7985 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7986 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7987 core_dumpx structure.
7989 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7991 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7992 (bfd_mach_sh3_dsp): Likewise.
7993 (bfd_mach_sh4): Reinstate.
7994 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7995 * bfd-in2.h: Regenerate.
7996 * coff-sh.c (struct sh_opcode): flags is no longer short.
7997 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7998 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7999 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8000 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8001 (sh_opcodes): No longer const.
8002 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8003 (sh_insn_uses_reg): Check for USESAS and USESR8.
8004 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8005 (_bfd_sh_align_load_span): Return early for SH4.
8006 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8007 Take into account that field b of a parallel processing insn
8008 could be mistaken for a separate insn.
8009 * cpu-sh.c (arch_info_struct): New array elements for
8010 sh2, sh-dsp and sh3-dsp.
8011 Reinstate element for sh4.
8012 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8013 (SH4_NEXT): Reinstate.
8014 (SH3_NEXT, SH3E_NEXT): Adjust.
8015 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8016 * elf32-sh.c (sh_elf_set_private_flags): New function.
8017 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8018 (sh_elf_merge_private_data): New function.
8019 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8020 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8021 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8022 sh_elf_merge_private_data.
8024 2000-02-13 Richard Henderson <rth@cygnus.com>
8026 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8027 hide_symbol members.
8028 (elf_link_hash_copy_indirect): New.
8029 (elf_link_hash_hide_symbol): New.
8030 * elflink.h (elf_link_add_object_symbols): Break out copy from
8031 indirect new new symbol to elf.c.
8032 (elf_link_assign_sym_version): Break out privatization of
8033 non-exported symbol to elf.c.
8034 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8035 (_bfd_elf_link_hash_hide_symbol): New.
8036 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8038 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8040 * section.c (_bfd_strip_section_from_output): Add info parameter.
8041 If it passed as non-NULL, use it to check whether any input BFD
8042 has an input section which uses this output section. Change all
8044 * bfd-in2.h: Rebuild.
8046 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8047 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8049 * bfd-in2.h: Rebuild.
8051 2000-02-10 Timothy Wall <twall@cygnus.com>
8053 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8054 allow final modifications of swapped-in symbol.
8055 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8056 * coffcode.h (coff_write_relocs): Use macro
8057 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8058 symbol index should be set to -1.
8060 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8062 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8063 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8064 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8065 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8066 sh_insns_uses_or_sets_freg): New functions.
8067 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8068 * (sh_insns_conflict): Use new functions and new macros to
8069 detect conflicts when two instructions both set same integer registers,
8070 both set same fp register, and both set special register.
8072 2000-02-09 Timothy Wall <twall@cygnus.com>
8074 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8075 swapping in sections, so that the swapping routines have access to
8078 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8080 * coff-go32.c: Update comment. Update copyright.
8082 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8084 * syms.c (bfd_decode_symclass)
8085 Two new class characters were added - 'V' and 'v'. The
8086 meaning of 'W' is now restricted to just weak non-object
8087 symbols. This allows differentiation between, for example,
8088 weak functions vs weak objects. nm for example now dumps:
8090 'w' = weak unresolved
8091 'V' = weak global object
8092 'v' = weak unresolved object
8094 (bfd_is_undefined_symclass): New function. Return true if the
8095 given symbol class represents and undefined/unresolved symbol.
8097 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8100 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8102 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8103 STT_ARM_16BIT flag set, but it is not attached to a data object
8104 return STT_ARM_16BIT so that it will be treated as code by the
8107 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8109 * coff-i386.c (i3coff_object_p): Remove prototype.
8112 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8113 to name. Update copyright.
8115 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8116 assignment to avoid warning. Update copyright.
8118 2000-01-24 Robert Lipe (robertl@sco.com)
8120 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8121 instead of using GNU C extension.
8123 2000-01-21 Nick Clifton <nickc@cygnus.com>
8125 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8126 amount from a bfd_in_memory structure.
8127 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8130 2000-01-14 Nick Clifton <nickc@cygnus.com>
8132 * linker.c (default_indirect_link_order): oops - fix incorrectly
8133 applied patch from Tim Wall.
8135 2000-01-13 Timothy Wall (twall@tiac.net>
8137 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8138 = scnhsz, filhsz, relsz, aoutsz, etc)
8140 * coffswap.h: Ditto.
8142 2000-01-13 Nick Clifton <nickc@cygnus.com>
8144 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8145 interwork thumb to arm stub.
8147 2000-01-13 Timothy Wall (twall@tiac.net>
8149 * archures.c (bfd_octets_per_byte): New function: Return
8151 (bfd_arch_mach_octets_per_byte): New function: Return target
8154 * section.c: Distinguish between octets and bytes for usage of
8155 _cooked_size, _raw_size, and output_offset. Clarify
8156 description of bfd_set_section_contents.
8158 * bfd-in2.h: Regenerate.
8160 * coffgen.c: Indicate that the offset parameter is in bytes, not
8163 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8164 where appropriate to get the octet offset when calling
8165 bfd_set_section_contents.
8166 (bfd_coff_reloc_link_order): Ditto.
8168 * linker.c (bfd_generic_reloc_link_order): Ditto.
8169 (_bfd_default_link_order): Ditto.
8171 * reloc.c (bfd_perform_relocation): Distinguish between octets
8172 and bytes. Use octets when indexing into octet data; use bytes
8173 when calculating target addresses.
8174 (bfd_install_relocation): Ditto.
8176 * srec.c (srec_write_section): Ditto.
8178 2000-01-13 Nick Clifton <nickc@cygnus.com>
8180 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8181 3 to 2. This allows 4 byte sized sections, which is necessary for
8182 dlltool to build functioning DLLs.
8184 2000-01-10 Philip Blundell <pb@futuretv.com>
8186 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8187 (arm*-*-conix*): New target.
8189 2000-01-10 Egor Duda <deo@logos-m.ru>
8191 * config.bfd: Include elf32_i386 vector to target list for cygwin
8194 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8195 * configure.in: Test for structure win32_pstatus_t in
8197 * configure: Regenerate.
8199 * elf.c (elfcore_grok_win32pstatus): New function: process
8200 win32_pstatus_t notes in elf core file.
8201 (elfcore_grok_note): Detect win32_pstatus notes.
8203 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8205 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8207 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8208 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8210 For older changes see ChangeLog-9899
8216 version-control: never