1 2001-10-19 H.J. Lu <hjl@gnu.org>
3 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
6 2001-10-18 H.J. Lu <hjl@gnu.org>
8 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
9 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
11 2001-10-18 Jakub Jelinek <jakub@redhat.com>
13 * section.c (_bfd_strip_section_from_output): Don't count
14 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
16 2001-10-17 Alan Modra <amodra@bigpond.net.au>
18 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
19 Elf_Internal_Shdr.contents now that it's no longer a PTR.
20 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
21 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
22 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
23 * elf32-sh.c (sh_elf_relax_section): Likewise.
24 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
25 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
26 * elf.c (setup_group): Warning fixes.
27 * elflink.h (elf_link_sort_relocs): Likewise.
28 * pdp11.c (slurp_reloc_table): Likewise.
30 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
32 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
35 2001-10-15 H.J. Lu <hjl@gnu.org>
37 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
38 for relocations against discarded link-once section.
40 2001-10-15 Alan Modra <amodra@bigpond.net.au>
42 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
43 bfd_reloc_outofrange and similar errors.
45 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
46 rather than ind->weakdef.
47 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
48 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
49 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
50 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
51 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
53 2001-10-15 Alan Modra <amodra@bigpond.net.au>
56 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
57 counts for aliases instead of aborting.
58 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
59 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
61 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
62 to -1 for non-function symbols.
63 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
64 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
65 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
66 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
67 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
68 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
69 plt.offset instead of plt.refcount when setting to -1.
71 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
73 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
74 like R_ARM_PC24. Include reloc number in error message about
77 2001-10-10 Jakub Jelinek <jakub@redhat.com>
79 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
80 relocations against the same symbol in .rel{,a}.dyn section.
82 2001-10-10 Kazu Hirata <kazu@hxi.com>
84 * aout-encap.c: Fix comment typos.
86 * archive.c: Likewise.
88 * coff64-rs6000.c: Likewise.
89 * coffcode.h: Likewise.
90 * coffgen.c: Likewise.
91 * cofflink.c: Likewise.
92 * coff-mips.c: Likewise.
94 * elf32-m32r.c: Likewise.
95 * libcoff-in.h: Likewise.
96 * libecoff.h: Likewise.
97 * libxcoff.h: Likewise.
98 * nlm32-i386.c: Likewise.
100 * section.c: Likewise.
103 * bfd-in2.h: Regenerate.
104 * libcoff.h: Likewise.
106 2001-10-10 Alan Modra <amodra@bigpond.net.au>
108 * elf.c (elf_map_symbols): Don't create new section symbols; Use
109 existing section syms. Update comments.
110 (copy_private_bfd_data): Formatting fixes.
111 (elfcore_grok_win32pstatus): Likewise.
112 (swap_out_syms): Likewise. Remove unnecessary level of braces.
114 2001-10-09 Alan Modra <amodra@bigpond.net.au>
116 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
118 (elf_group_name): Define.
119 (elf_next_in_group): Define.
120 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
121 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
122 first member section; Instead use elf_next_in_group.
123 (bfd_section_from_shdr): Likewise.
124 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
126 2001-10-09 Alan Modra <amodra@bigpond.net.au>
128 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
129 "next_in_group". Fix gp and gp_size comments.
130 * elf.c (union elf_internal_group): New.
131 (setup_group): New function.
132 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
133 Call setup_group for SHF_GROUP sections.
134 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
135 (elf_fake_sections): Set header type for SEC_GROUP, and header
136 flags for sections in a group.
137 (set_group_contents): New function.
138 (_bfd_elf_compute_section_file_positions): Call it.
139 (assign_section_numbers): Set sh_link for SHT_GROUP.
141 * elflink.h (gc_mark_hook): Handle section groups.
142 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
143 * section.c (SEC_GROUP): Define.
144 (struct sec): Comment fixes.
145 * bfd-in2.h: Regenerate.
147 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
148 out of function args.
149 (_bfd_elf_canonicalize_reloc): Similarly.
150 (_bfd_elf_get_symtab): Here too.
151 (_bfd_elf_canonicalize_dynamic_symtab): And here.
152 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
153 bfd_bread, and remove unnecessary cast.
155 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
157 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
159 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
161 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
164 2001-10-06 Alan Modra <amodra@bigpond.net.au>
166 * bfd.c (bfd_assert): Report bfd version.
167 (_bfd_abort): Likewise.
169 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
170 section sym values. Instead replace any relocs against them with
171 relocs against STN_UNDEF, which has a zero value.
173 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
176 2001-10-05 Jeff Law <law@redhat.com>
178 * som.h (som_exec_data): New field "version_id".
179 * som.c (som_object_setup): Record the version_id if it
181 (som_prep_headers): Do not initialize version_id here.
182 (som_finish_writing): Initialize version_id here.
184 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
186 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
187 according to the MIPS/SGI ELF64 ABI Draft.
188 (mips_elf_sort_hash_table): Typo.
190 2001-10-04 Alan Modra <amodra@bigpond.net.au>
192 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
194 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
195 copying flags if this is a weakdef.
197 2001-10-04 Alan Modra <amodra@bigpond.net.au>
199 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
202 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
203 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
204 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
206 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
207 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
208 backends we configure. Run "make dep-am".
209 (install-data-local): Install symcat.h.
210 * dep-in.sed: Remove symcat.h from dependencies.
211 * Makefile.in: Regenerate.
213 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
215 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
217 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
219 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
220 (elf_backend_default_use_rela_p): New define.
222 2001-10-03 Alan Modra <amodra@bigpond.net.au>
224 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
227 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
228 * configure: Regenerate.
229 * Makefile.am (BFD_H_FILES): Add version.h.
230 * Makefile.in: Regenerate.
231 * po/SRC-POTFILES.in: Regenerate.
233 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
234 elf_backend_copy_indirect_symbol so that backend has a chance to
235 copy other necessary fields.
236 * elf-bfd.h (struct elf_backend_data): Update description of
237 elf_backend_copy_indirect_symbol.
238 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
239 copying flags if this is a weakdef.
240 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
241 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
242 than bfd_link_hash_lookup.
243 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
244 reloc processing for weakdefs.
245 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
246 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
248 2001-10-02 Alan Modra <amodra@bigpond.net.au>
250 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
251 result of ELF64_R_TYPE to enum before using in a switch.
252 (ppc64_elf_gc_mark_hook): Likewise.
253 (ppc64_elf_gc_sweep_hook): Likewise.
254 (ppc64_elf_reloc_type_class): Likewise.
256 2001-10-02 Alan Modra <amodra@bigpond.net.au>
258 * version.h: New file.
259 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
260 (BFD_VERSION_DATE): Define.
261 (BFD_VERSION_STRING): Define.
262 * configure.in: AC_SUBST bfd_version, bfd_version_date and
264 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
265 * bfd-in2.h: Regenerate.
266 * configure: Regenerate.
267 * Makefile.am: Run "make dep-am".
268 * Makefile.in: Regenerate.
270 * bfd-in.h: Include "symcat.h".
271 (CONCAT4): Redefine as for old CAT4.
272 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
273 Add warning regarding whitespace.
274 * aout-cris.c: Likewise.
275 * aout-ns32k.c: Likewise.
276 * aout-sparcle.c: Likewise.
277 * aout-tic30.c: Likewise.
279 * armnetbsd.c: Likewise.
280 * demo64.c: Likewise.
281 * elf-bfd.h: Likewise.
282 * gen-aout.c: Likewise.
283 * host-aout.c: Likewise.
284 * hp300bsd.c: Likewise.
285 * hp300hpux.c: Likewise.
286 * i386aout.c: Likewise.
287 * i386bsd.c: Likewise.
288 * i386dynix.c: Likewise.
289 * i386freebsd.c: Likewise.
290 * i386linux.c: Likewise.
291 * i386lynx.c: Likewise.
292 * i386mach3.c: Likewise.
293 * i386netbsd.c: Likewise.
294 * libaout.h: Likewise.
295 * m68k4knetbsd.c: Likewise.
296 * m68klinux.c: Likewise.
297 * m68klynx.c: Likewise.
298 * m68knetbsd.c: Likewise.
299 * m88kmach3.c: Likewise.
300 * mipsbsd.c: Likewise.
301 * newsos3.c: Likewise.
302 * ns32knetbsd.c: Likewise.
303 * pc532-mach.c: Likewise.
305 * riscix.c: Likewise.
306 * sparclinux.c: Likewise.
307 * sparclynx.c: Likewise.
308 * sparcnetbsd.c: Likewise.
310 * targets.c: Likewise.
311 * vaxnetbsd.c: Likewise.
312 * vms-hdr.c: Likewise.
314 2001-10-01 Alan Modra <amodra@bigpond.net.au>
316 * bfd-in.h: Remove comments regarding generated files.
317 * libbfd-in.h: Likewise.
318 * libcoff-in.h: Likewise.
319 * bfd-in2.h: Regenerate.
320 * libbfd.h: Likewise.
321 * libcoff.h: Likewise.
323 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
324 Hans-Peter Nilsson <hp@bitrange.com>
326 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
327 partial_inplace, matching assembler output. Set src_mask to
329 (sh_elf_relocate_section): Delete misplaced comment.
330 For relocatable linking against section symbol, call
331 _bfd_relocate_contents for partial_inplace relocs and adjust
332 rel->r_addend for others.
333 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
334 bfd_get_32, not at rel->r_addend.
336 2001-09-30 Alan Modra <amodra@bigpond.net.au>
338 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
339 the old dir refcount, so we indirectly set them to init_refcount.
340 Short-circuit asserts when we've just verified they are true.
342 2001-09-29 Alan Modra <amodra@bigpond.net.au>
344 * section.c (struct sec): Remove kept_section.
345 (STD_SECTION): Remove kept_section initialisation.
346 (bfd_make_section_anyway): Here too.
347 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
348 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
349 * elflink.h (elf_link_input_bfd): Set discarded link-once section
350 symbols to zero, and remove all code involved with kept_section
351 and tracking section symbol values.
352 * bfd-in2.h: Regenerate.
353 * configure.in: Bump version number.
354 * configure: Regenerate.
356 2001-09-29 Alan Modra <amodra@bigpond.net.au>
358 * elf64-ppc.c (struct ppc_dyn_relocs): New.
359 (IS_ABSOLUTE_RELOC): Define.
360 (struct ppc_link_hash_entry): New.
361 (struct ppc_link_hash_table): New.
362 (ppc_hash_table): Define.
363 (link_hash_newfunc): New function.
364 (ppc64_elf_link_hash_table_create): New function.
365 (create_got_section): New function.
366 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
367 pointers to our dynamic sections in hash table.
368 (ppc64_elf_copy_indirect_symbol): New function.
369 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
370 dynamic sections. Localise vars. Modify code for refcounts
371 starting from zero. Don't allocate here, or force symbols dynamic.
372 Don't copy all relocs if shared, select ones we need. Add code
373 to track possible copy relocs for non-shared link.
374 (ppc64_elf_gc_mark_hook): Update comment.
375 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
376 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
377 code for reference counting garbage collection. Don't create .plt
378 entries for functions that don't comply with ABI naming convention,
379 and don't allocate .plt space here. Use short-cuts to dynamic
380 sections. If possible, keep dynamic relocations instead of using
381 copy relocs. Remove confused comments.
382 (ppc_adjust_dynindx): Delete.
383 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
384 (allocate_dynrelocs): New function.
385 (readonly_dynrelocs): New function.
386 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
387 space here, and call allocate_dynrelocs to allocate space for
388 global .plt, .got and reloc sections. Use short-cuts to dynamic
389 sections. Call readonly_dynrelocs to determine whether we need
390 DT_TEXTREL. Don't generate section symbols here, the generic
391 ELF linker code does it for us.
392 (ppc64_elf_final_link): Call regular ELF backend linker rather than
393 gc variety, since we do our own .got handling.
394 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
395 dynamic section short-cuts. Localise vars, and delay setting.
396 Handle unknown relocs in main switch statement. Replace ugly
397 complicated tests for unresolvable relocs with a simple direct
398 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
399 before allowing an undefined sym in a shared lib. Do R_*_DS tests
400 after main switch, when we've set addend. Do non-addend insn
401 tweaks before main swithc. Ignore input_section->vma when
402 calculating reloc offsets as it's always zero. Rewrite dynamic
403 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
404 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
405 of dynamic section short-cuts. Reorganise .plt handling code.
406 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
407 Move expressions out of swap_reloca_out function calls.
408 (ppc64_elf_reloc_type_class): New function.
409 (ppc64_elf_info_to_howto): Move common expression to local var.
410 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
411 of dynamic section short-cuts. Don't fiddle with section syms
412 here as the ELF linker does it for us.
413 (elf_backend_can_refcount): Define.
414 (bfd_elf64_bfd_link_hash_table_create): Define.
415 (elf_backend_copy_indirect_symbol): Define.
416 (elf_backend_reloc_type_class): Define.
417 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
419 2001-09-29 Alan Modra <amodra@bigpond.net.au>
421 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
422 (struct elf_backend_data): Add can_refcount.
423 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
424 got.refcount and plt.refcount from init_refcount.
425 (_bfd_elf_link_hash_table_init): Set up init_refcount.
426 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
427 rather than got/plt.offset, and test for <= 0 rather than -1.
428 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
429 * elfxx-target.h (elf_backend_can_refcount): Define.
430 (elfNN_bed): Init can_refcount.
431 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
432 (_bfd_generic_link_hash_newfunc): Likewise.
433 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
435 (elf_backend_can_refcount): Define.
436 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
438 (elf32_hppa_copy_indirect_symbol): Make static to agree with
440 (elf_backend_can_refcount): Define.
441 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
443 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
444 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
445 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
446 (elf_backend_can_refcount): Define.
447 (elf_i386_copy_indirect_symbol): Make static to agree with
448 prototype. Formatting fix.
449 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
451 (elf_backend_can_refcount): Define.
452 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
454 (elf_backend_can_refcount): Define.
455 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
457 (elf_backend_can_refcount): Define.
458 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
460 (elf_backend_can_refcount): Define.
461 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
463 (elf_backend_can_refcount): Define.
465 * som.c (som_write_symbol_strings): Cast current_offset in
466 bfd_seek call to match param type.
468 2001-09-28 J. Brobecker <brobecker@gnat.com>
470 * som.c (som_write_symbol_strings): Fix incorrect type of
471 current_offset to match the function definition. Fixes a build
472 failure on HPUX-11.00.
474 2001-09-28 Richard Henderson <rth@redhat.com>
476 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
477 SEC_MERGE, SEC_STRINGS.
479 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
480 * bfd-in2.h: Rebuild.
482 2001-09-28 Alan Modra <amodra@bigpond.net.au>
484 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
485 reloc code using x86_64_reloc_map.
487 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
488 no longer allocate here. Localise some vars to blocks where they
490 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
491 setting of vars until needed.
492 (allocate_dynrelocs): Don't create a .plt entry without a reloc
493 when symbol visibilty makes a function local.
494 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
495 swap_reloca_out function calls.
496 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
497 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
500 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
501 no longer allocate here. Localise some vars to blocks where they
502 are used. Remove separate switch stmt for creating .got sec.
503 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
504 redundant casts and aborts. Delay setting of vars until needed.
505 (allocate_dynrelocs): Remove redundant casts and aborts.
506 (elf_i386_size_dynamic_sections): Move comment.
507 (elf_i386_finish_dynamic_symbol): Move expressions out of function
509 (elf_i386_relocate_section): Likewise. Comment typo fix.
510 (elf_i386_finish_dynamic_sections): Migrate common code out of
512 (elf_backend_* defines): Sort.
514 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
515 without a reloc when symbol visibilty makes a function local.
517 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
519 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
520 conflicting float flags.
522 2001-09-26 Alan Modra <amodra@bigpond.net.au>
524 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
525 (elf_backend_copy_indirect_symbol): Define.
526 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
527 (struct elf_i386_link_hash_table): Likewise.
528 (link_hash_newfunc): Get rid of unnecessary casts.
529 (elf_i386_link_hash_table_create): Likewise.
530 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
531 Don't test input section SEC_READONLY here to try to avoid copy
532 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
533 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
534 here to properly test whether we need copy relocs. Do so for weak
537 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
538 (elf_backend_copy_indirect_symbol): Define.
539 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
540 (stub_hash_newfunc): Get rid of unnecessary casts.
541 (hppa_link_hash_newfunc): Likewise.
542 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
543 Don't test input section SEC_READONLY here to try to avoid copy
544 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
545 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
546 here to properly test whether we need copy relocs. Do so for weak
549 2001-09-26 Alan Modra <amodra@bigpond.net.au>
551 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
552 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
553 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
555 2001-09-25 Jakub Jelinek <jakub@redhat.com>
557 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
560 2001-09-25 H.J. Lu <hjl@gnu.org>
562 * bfd-in2.h: Regenerated.
564 2001-09-25 Alan Modra <amodra@bigpond.net.au>
566 * elf32-i386.c: Add comment re linker function names and ordering.
567 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
568 (elf_i386_grok_prstatus): Move before linker functions.
569 (elf_i386_grok_psinfo): Likewise.
570 (elf_i386_fake_sections): Move so that functions are ordered.
571 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
573 2001-09-25 Alan Modra <amodra@bigpond.net.au>
575 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
578 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
579 code handling this option.
580 (LONG_BRANCH_VIA_PLT): Likewise.
581 (RELATIVE_DYNRELOCS): Define as zero.
582 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
583 "pc_count" fields. Remove "section" field.
584 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
585 (elf32_hppa_check_relocs): Don't allocate space for dynamic
586 relocs here. Instead, record all needed dynamic relocs via
587 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
589 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
590 (allocate_plt_and_got_and_discard_relocs): Rename to
591 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
592 (readonly_dynrelocs): New function.
593 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
594 Call readonly_dynrelocs to determine need for DT_TEXTREL.
595 Rename "i" to "ibfd". Allocate space for local dyn relocs.
596 (elf32_hppa_relocate_section): Make use of cached sreloc.
597 (elf32_hppa_reloc_type_class): New function.
598 (elf_backend_reloc_type_class): Define.
600 2001-09-25 Alan Modra <amodra@bigpond.net.au>
602 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
604 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
605 "pc_count" fields. Remove "section" field.
606 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
607 allocate space for dynamic relocs here. Instead, record all
608 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
609 pointer to "sreloc" section in elf_section_data.
610 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
611 (allocate_plt_and_got_and_discard_relocs): Rename to
612 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
613 (readonly_dynrelocs): New function.
614 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
615 Rename "i" to "ibfd". Allocate space for local dyn relocs.
616 (elf_i386_relocate_section): Make use of cached sreloc.
618 2001-09-24 Alan Modra <amodra@bigpond.net.au>
620 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
621 reloc rather than just the type.
622 (_bfd_elf_reloc_type_class): Likewise.
623 * elf.c (_bfd_elf_reloc_type_class): Likewise.
624 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
625 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
626 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
627 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
628 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
629 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
630 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
631 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
632 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
633 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
634 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
635 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
636 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
637 * elflink.h: Formatting fixes.
638 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
639 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
640 o->contents to PTR. Update call to elf_backend_reloc_type_class.
642 2001-09-22 John Reiser <jreiser@BitWagon.com>
644 * elfcode.h (elf_object_p): Allow for no section header at all in
645 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
647 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
649 * elfxx-ia64.c: Fix compile time warning messages.
650 * coff-mcore.c: Fix compile time warning messages.
651 * coff-ppc.c: Fix compile time warning messages.
652 * coffcode.h: Fix compile time warning messages.
653 * elf32-mips.c: Fix compile time warning messages.
654 * elf64-alpha.c: Fix compile time warning messages.
655 * libbfd.c: Fix compile time warning messages.
656 * bfd-in2.h: Regenerate.
658 2001-09-21 Alan Modra <amodra@bigpond.net.au>
660 * Makefile.am: Run "make dep-am".
661 * Makefile.in: Regenerate.
663 * aoutx.h: Formatting fixes.
664 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
666 * linker.c: Replace bfd_get_filename with bfd_archive_filename
669 2001-09-21 Alan Modra <amodra@bigpond.net.au>
671 * bfd.c (bfd_archive_filename): New function.
672 * bfd-in2.h: Regenerate.
673 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
674 in error messages where the bfd is an input bfd.
675 * aout-cris.c: Likewise.
676 * coff-arm.c: Likewise.
677 * coff-mcore.c: Likewise.
678 * coff-ppc.c: Likewise.
679 * coff-rs6000.c: Likewise.
680 * coff-sh.c: Likewise.
681 * coff-tic54x.c: Likewise.
682 * coff-tic80.c: Likewise.
683 * coff64-rs6000.c: Likewise.
684 * coffcode.h: Likewise.
685 * coffgen.c: Likewise.
686 * cofflink.c: Likewise.
687 * ecofflink.c: Likewise.
688 * elf-hppa.h: Likewise.
690 * elf32-arm.h: Likewise.
691 * elf32-cris.c: Likewise.
692 * elf32-gen.c: Likewise.
693 * elf32-hppa.c: Likewise.
694 * elf32-i370.c: Likewise.
695 * elf32-i386.c: Likewise.
696 * elf32-m32r.c: Likewise.
697 * elf32-mcore.c: Likewise.
698 * elf32-mips.c: Likewise.
699 * elf32-ppc.c: Likewise.
700 * elf32-s390.c: Likewise.
701 * elf32-sh.c: Likewise.
702 * elf32-sparc.c: Likewise.
703 * elf32-v850.c: Likewise.
704 * elf64-alpha.c: Likewise.
705 * elf64-gen.c: Likewise.
706 * elf64-ppc.c: Likewise.
707 * elf64-s390.c: Likewise.
708 * elf64-sparc.c: Likewise.
709 * elf64-x86-64.c: Likewise.
710 * elflink.h: Likewise.
711 * elfxx-ia64.c: Likewise.
714 * libbfd.c: Likewise.
716 * pe-mips.c: Likewise.
717 * peicode.h: Likewise.
719 * xcofflink.c: Likewise.
721 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
723 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
726 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
729 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
730 Consolidate error messages, and split long messages to two lines.
732 2001-09-20 John Reiser <jreiser@BitWagon.com>
734 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
735 and info->allow_shlib_undefined.
736 * elf32-cris.c: Likewise.
737 * elf32-hppa.c: Likewise.
738 * elf32-m68k.c: Likewise.
739 * elf32-mips.c: Likewise.
740 * elf32-ppc.c: Likewise.
741 * elf32-s390.c: Likewise.
742 * elf32-sh.c: Likewise.
743 * elf32-sparc.c: Likewise.
744 * elf64-alpha.c: Likewise.
745 * elf64-hppa.c: Likewise.
746 * elf64-ppc.c: Likewise.
747 * elf64-s390.c: Likewise.
748 * elf64-sparc.c: Likewise.
749 * elf64-x86-64.c: Likewise.
750 * elfxx-ia64.c: Likewise.
752 2001-09-18 Bruno Haible <haible@clisp.cons.org>
754 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
755 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
756 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
757 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
758 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
759 (bfd_default_scan): Use ISDIGIT instead of isdigit.
760 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
761 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
762 isxdigit/isdigit/islower.
763 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
764 (mangle_name): Use ISALNUM instead of isalnum.
765 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
766 (scan): Use ISDIGIT instead of isdigit.
767 * hosts/alphavms.h: Don't include <ctype.h>.
768 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
769 (ieee_object_p): Use TOUPPER instead of toupper.
770 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
771 (ihex_bad_byte): Use ISPRINT instead of isprint.
772 * merge.c: Don't include <ctype.h>.
773 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
774 (oasys_write_sections): Use ISDIGIT instead of isdigit.
775 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
776 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
777 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
778 (mangle_name): Use ISALNUM instead of isalnum.
779 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
780 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
781 isupper/islower/isdigit.
782 (som_decode_symclass): Use TOUPPER instead of toupper.
783 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
784 (srec_bad_byte): Use ISPRINT instead of isprint.
785 (srec_scan): Use ISSPACE instead of isspace.
786 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
787 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
788 * syms.c: Include "safe-ctype.h"
789 (islower, toupper): Remove macro definitions.
790 (bfd_decode_symclass): Use TOUPPER instead of toupper.
791 * vms-gsd.c: Don't include <ctype.h>.
792 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
793 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
795 * vms-tir.c: Don't include <ctype.h>.
797 2001-09-18 Alan Modra <amodra@bigpond.net.au>
799 * libbfd.c (bfd_bread): New function replacing bfd_read without
800 redundant params. Allow reads up to (size_t) -2 in length.
801 (bfd_bwrite): Similarly for bfd_write.
802 (real_read): Return a size_t.
803 (bfd_read): Call bfd_bread.
804 (bfd_write): Call bfd_bwrite.
805 (warn_deprecated): New function to annoy everybody.
806 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
807 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
808 (bfd_read, bfd_write): Define as macro.
809 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
810 likewise for bfd_write. Ensure function args are correct size by
811 using casts or local vars. In some cases, remove unnecessary
812 casts. Formatting fixes, in some cases removing a large expression
813 from function args by using a local var. Replace CONST with const.
814 Modify variable types to avoid warings. Use casts to avoid
815 warnings when using negative numbers in unsigned expressions.
816 * aout-adobe.c: Likewise.
817 * aout-arm.c: Likewise.
818 * aout-cris.c: Likewise.
819 * aout-encap.c: Likewise.
820 * aout-ns32k.c: Likewise.
821 * aout-target.h: Likewise.
822 * aout-tic30.c: Likewise.
823 * aoutf1.h: Likewise.
825 * archive.c: Likewise.
826 * archures.c: Likewise.
827 * bfd-in.h: Likewise.
829 * binary.c: Likewise.
832 * cisco-core.c: Likewise.
833 * coff-a29k.c: Likewise.
834 * coff-alpha.c: Likewise.
835 * coff-arm.c: Likewise.
836 * coff-h8300.c: Likewise.
837 * coff-h8500.c: Likewise.
838 * coff-i386.c: Likewise.
839 * coff-i860.c: Likewise.
840 * coff-i960.c: Likewise.
841 * coff-ia64.c: Likewise.
842 * coff-m68k.c: Likewise.
843 * coff-m88k.c: Likewise.
844 * coff-mcore.c: Likewise.
845 * coff-mips.c: Likewise.
846 * coff-ppc.c: Likewise.
847 * coff-rs6000.c: Likewise.
848 * coff-sh.c: Likewise.
849 * coff-sparc.c: Likewise.
850 * coff-stgo32.c: Likewise.
851 * coff-tic30.c: Likewise.
852 * coff-tic54x.c: Likewise.
853 * coff-tic80.c: Likewise.
854 * coff-w65.c: Likewise.
855 * coff-z8k.c: Likewise.
856 * coff64-rs6000.c: Likewise.
857 * coffcode.h: Likewise.
858 * coffgen.c: Likewise.
859 * cofflink.c: Likewise.
860 * coffswap.h: Likewise.
861 * corefile.c: Likewise.
862 * cpu-arc.c: Likewise.
863 * cpu-h8300.c: Likewise.
864 * cpu-h8500.c: Likewise.
865 * cpu-i960.c: Likewise.
866 * cpu-ia64-opc.c: Likewise.
867 * cpu-ns32k.c: Likewise.
868 * cpu-pdp11.c: Likewise.
869 * cpu-pj.c: Likewise.
870 * cpu-sh.c: Likewise.
871 * cpu-w65.c: Likewise.
872 * cpu-z8k.c: Likewise.
873 * dwarf1.c: Likewise.
874 * dwarf2.c: Likewise.
876 * ecofflink.c: Likewise.
877 * ecoffswap.h: Likewise.
878 * elf-bfd.h: Likewise.
879 * elf-hppa.h: Likewise.
880 * elf-m10200.c: Likewise.
881 * elf-m10300.c: Likewise.
883 * elf32-arc.c: Likewise.
884 * elf32-arm.h: Likewise.
885 * elf32-avr.c: Likewise.
886 * elf32-cris.c: Likewise.
887 * elf32-fr30.c: Likewise.
888 * elf32-gen.c: Likewise.
889 * elf32-h8300.c: Likewise.
890 * elf32-hppa.c: Likewise.
891 * elf32-i370.c: Likewise.
892 * elf32-i386.c: Likewise.
893 * elf32-i860.c: Likewise.
894 * elf32-m32r.c: Likewise.
895 * elf32-m68k.c: Likewise.
896 * elf32-mcore.c: Likewise.
897 * elf32-mips.c: Likewise.
898 * elf32-openrisc.c: Likewise.
899 * elf32-pj.c: Likewise.
900 * elf32-ppc.c: Likewise.
901 * elf32-s390.c: Likewise.
902 * elf32-sh-lin.c: Likewise.
903 * elf32-sh.c: Likewise.
904 * elf32-sparc.c: Likewise.
905 * elf32-v850.c: Likewise.
906 * elf64-alpha.c: Likewise.
907 * elf64-hppa.c: Likewise.
908 * elf64-mips.c: Likewise.
909 * elf64-ppc.c: Likewise.
910 * elf64-s390.c: Likewise.
911 * elf64-sparc.c: Likewise.
912 * elf64-x86-64.c: Likewise.
913 * elfarm-nabi.c: Likewise.
914 * elfcode.h: Likewise.
915 * elfcore.h: Likewise.
916 * elflink.c: Likewise.
917 * elflink.h: Likewise.
918 * elfxx-ia64.c: Likewise.
919 * elfxx-target.h: Likewise.
920 * format.c: Likewise.
922 * hp300hpux.c: Likewise.
923 * hppabsd-core.c: Likewise.
924 * hpux-core.c: Likewise.
925 * i386aout.c: Likewise.
926 * i386dynix.c: Likewise.
927 * i386linux.c: Likewise.
928 * i386lynx.c: Likewise.
929 * i386mach3.c: Likewise.
930 * i386msdos.c: Likewise.
931 * i386os9k.c: Likewise.
934 * irix-core.c: Likewise.
935 * libaout.h: Likewise.
936 * libbfd-in.h: Likewise.
937 * libbfd.c: Likewise.
938 * libcoff-in.h: Likewise.
939 * libecoff.h: Likewise.
940 * libieee.h: Likewise.
941 * libnlm.h: Likewise.
942 * libpei.h: Likewise.
943 * libxcoff.h: Likewise.
944 * linker.c: Likewise.
945 * lynx-core.c: Likewise.
946 * m68klinux.c: Likewise.
948 * mipsbsd.c: Likewise.
949 * netbsd-core.c: Likewise.
951 * nlm32-alpha.c: Likewise.
952 * nlm32-i386.c: Likewise.
953 * nlm32-ppc.c: Likewise.
954 * nlm32-sparc.c: Likewise.
955 * nlmcode.h: Likewise.
956 * nlmswap.h: Likewise.
959 * opncls.c: Likewise.
960 * osf-core.c: Likewise.
961 * pc532-mach.c: Likewise.
963 * pe-mips.c: Likewise.
964 * peXXigen.c: Likewise.
965 * peicode.h: Likewise.
966 * ppcboot.c: Likewise.
967 * ptrace-core.c: Likewise.
969 * reloc16.c: Likewise.
970 * riscix.c: Likewise.
971 * rs6000-core.c: Likewise.
972 * sco5-core.c: Likewise.
973 * section.c: Likewise.
975 * sparclinux.c: Likewise.
976 * sparclynx.c: Likewise.
981 * targets.c: Likewise.
982 * tekhex.c: Likewise.
983 * trad-core.c: Likewise.
984 * versados.c: Likewise.
985 * vms-gsd.c: Likewise.
986 * vms-hdr.c: Likewise.
987 * vms-misc.c: Likewise.
988 * vms-tir.c: Likewise.
991 * xcofflink.c: Likewise.
992 * bfd-in2.h: Regenerate.
993 * libbfd.h: Regenerate.
994 * libcoff.h: Regenerate.
996 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
997 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
999 (bfd_tell): Return a ufile_ptr.
1000 * libbfd.c (bfd_tell): Likewise.
1001 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1003 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1004 * aoutf1.h: Likewise.
1006 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1007 larger than unsigned long can represent.
1009 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1010 size overflows size_t.
1011 (bfd_realloc): Likewise.
1012 (bfd_zmalloc): Likewise.
1013 * opncls.c (bfd_alloc): Likewise.
1014 (bfd_zalloc): Likewise.
1015 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1016 (bfd_alloc, bfd_zalloc): Update.
1018 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1020 (bfd_get_signed_8): Likewise.
1021 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1022 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1023 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1024 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1025 * libaout.h: Likewise define and use here.
1026 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1027 * aout-arm.c: Likewise.
1028 * aout-encap.c: Likewise.
1029 * aout-ns32k.c: Likewise.
1030 * aout-tic30.c: Likewise.
1031 * aoutf1.h: Likewise.
1032 * aoutx.h: Likewise.
1034 * coff-alpha.c: Likewise.
1035 * coff-h8300.c: Likewise.
1036 * coff-h8500.c: Likewise.
1037 * coff-i960.c: Likewise.
1038 * coff-ia64.c: Likewise.
1039 * coff-m88k.c: Likewise.
1040 * coff-mips.c: Likewise.
1041 * coff-ppc.c: Likewise.
1042 * coff-rs6000.c: Likewise.
1043 * coff-sh.c: Likewise.
1044 * coff-sparc.c: Likewise.
1045 * coff-stgo32.c: Likewise.
1046 * coff-tic30.c: Likewise.
1047 * coff-tic80.c: Likewise.
1048 * coff-w65.c: Likewise.
1049 * coff-z8k.c: Likewise.
1050 * coff64-rs6000.c: Likewise.
1051 * coffgen.c: Likewise.
1052 * cofflink.c: Likewise.
1053 * coffswap.h: Likewise.
1054 * ecoff.c: Likewise.
1055 * ecoffswap.h: Likewise.
1057 * elf32-mips.c: Likewise.
1058 * elf64-mips.c: Likewise.
1059 * hp300hpux.c: Likewise.
1060 * i386dynix.c: Likewise.
1061 * i386lynx.c: Likewise.
1062 * i386msdos.c: Likewise.
1063 * i386os9k.c: Likewise.
1064 * libpei.h: Likewise.
1065 * nlm32-alpha.c: Likewise.
1066 * nlm32-i386.c: Likewise.
1067 * nlm32-ppc.c: Likewise.
1068 * nlmcode.h: Likewise.
1069 * nlmswap.h: Likewise.
1070 * oasys.c: Likewise.
1071 * pdp11.c: Likewise.
1072 * pe-mips.c: Likewise.
1073 * peXXigen.c: Likewise.
1074 * peicode.h: Likewise.
1075 * riscix.c: Likewise.
1076 * sunos.c: Likewise.
1077 * xcofflink.c: Likewise.
1078 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1079 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1080 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1081 equivalent H_PUT_* macro instead.
1082 (GETWORD, GETHALF, GETBYTE): Similarly.
1083 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1084 (GETWORD, GETHALF, GETBYTE): Likewise.
1085 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1087 * bfd-in.h (struct orl): Change "pos" to a union.
1088 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1089 (bsd_write_armap): Here too.
1090 (coff_write_armap): And here.
1091 * coff-rs6000.c (xcoff_write_armap_old): And here.
1092 (xcoff_write_one_armap_big): And here.
1093 (xcoff_write_armap_big): And here.
1094 * ecoff.c (_bfd_ecoff_write_armap): And here.
1095 * elf64-mips.c (mips_elf64_write_armap): And here.
1097 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1098 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1099 * elf32-h8300.c (elf32_h8_mach): Likewise.
1100 * elf32-mips.c (elf_mips_mach): Likewise.
1101 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1103 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1105 (aix386_core_vec): Typo fix.
1107 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1108 etc. to avoid redefined macro warning.
1109 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1110 (MY(fix_pcrel_26)): Likewise.
1111 * aout-ns32k.c (MY(put_reloc)): Likewise.
1112 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1113 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1114 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1116 * aout-encap.c: Include "file", not <file> for binutils headers.
1117 (encap_object_p): Half baked attempt to fix compile errors in
1118 code dealing with "magic".
1120 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1121 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1122 bfd_vma's rather than longs.
1123 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1124 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1125 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1127 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1128 Use unsigned comparisons.
1129 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1130 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1131 (_bfd_do_ns32k_reloc_contents): Likewise.
1132 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1133 (_bfd_ns32k_get_immediate): Likewise.
1134 (_bfd_ns32k_put_displacement): Likewise.
1135 (_bfd_ns32k_put_immediate): Likewise.
1136 (bfd_reloc_status_type): Likewise.
1138 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1140 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1141 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1142 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1144 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1145 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1146 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1148 (_bfd_elfcore_strndup): Likewise for "dup".
1149 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1150 "name" to avoid shadowing.
1151 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1152 definition of "off".
1153 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1154 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1156 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1158 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1160 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1162 (elf_link_input_bfd): Likewise.
1163 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1164 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1165 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1167 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1168 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1169 (sunos_write_dynamic_symbol): Remove unused vars.
1170 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1171 innermost "directory_name" and "file_name" vars.
1172 * tekhex.c (first_phase): Rename local var "type" to "stype".
1173 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1174 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1175 doing comparison at caller.
1176 (vms_esecflag_by_name): Likewise.
1177 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1178 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1179 (xcoff_write_global_symbol): Rename "p" param to "inf".
1181 * cisco-core.c: Add missing prototypes.
1182 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1183 (cisco_core_file_failing_signal): Likewise.
1184 (cisco_core_file_matches_executable_p): Likewise.
1185 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1186 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1187 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1188 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1190 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1191 thumb_glue_size and arm_glue_size.
1192 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1194 * coff64-rs6000.c: Group prototypes together.
1196 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1197 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1199 * cpu-arc.c: Add missing prototypes.
1200 * cpu-h8500.c: Likewise.
1201 * cpu-i960.c: Likewise.
1202 * cpu-pj.c: Likewise.
1203 * cpu-sh.c: Likewise.
1204 * cpu-w65.c: Likewise.
1205 * cpu-z8k.c: Likewise.
1206 * elf32-fr30.c: Likewise.
1207 * elf32-h8300.c: Likewise.
1208 * elf32-i370.c: Likewise.
1209 * hpux-core.c: Likewise.
1210 * versados.c: Likewise.
1212 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1213 * cpu-h8500.c: Likewise.
1214 * cpu-i960.c: Likewise.
1215 * cpu-z8k.c: Likewise.
1217 * cpu-ia64-opc.c: Correct comment.
1219 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1221 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1223 (bfd_elf32_write_out_phdrs): Likewise.
1224 (bfd_elf64_write_out_phdrs): Likewise.
1225 (elf_linker_section_pointers): Change addend to bfd_vma.
1226 (_bfd_elf_find_pointer_linker_section): Likewise.
1227 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1228 filepos to unsigned file_ptr.
1229 (_bfd_elfcore_strndup): Change max param to size_t.
1230 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1231 (_bfd_elfcore_strndup): Likewise.
1232 (_bfd_elf_find_pointer_linker_section): Likewise.
1234 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1235 insn and sym_value to ints.
1237 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1239 (elfcore_read_notes): Likewise.
1241 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1242 param from unsigned char to int.
1243 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1244 for info_to_howto call.
1245 (add_dynamic_entry): Define macro.
1246 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1248 * elf32-cris.c (add_dynamic_entry): Define macro.
1249 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1251 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1252 (elf32_h8_object_p): Likewise.
1253 (elf32_h8_merge_private_bfd_data): Likewise.
1254 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1256 * elf32-hppa.c (add_dynamic_entry): Define macro.
1257 (elf32_hppa_size_dynamic_sections): Use it.
1258 * elf32-i370.c (add_dynamic_entry): Define macro.
1259 (i370_elf_size_dynamic_sections): Use it.
1260 (i370_noop): Make static.
1261 * elf32-i386.c (add_dynamic_entry): Define macro.
1262 (elf_i386_size_dynamic_sections): Use it.
1263 * elf32-m68k.c (add_dynamic_entry): Define macro.
1264 (elf_m68k_size_dynamic_sections): Use it.
1265 * elf32-ppc.c (add_dynamic_entry): Define macro.
1266 (ppc_elf_size_dynamic_sections): Use it.
1267 * elf32-s390.c (add_dynamic_entry): Define macro.
1268 (elf_s390_size_dynamic_sections): Use it.
1269 * elf64-alpha.c (add_dynamic_entry): Define macro.
1270 (elf64_alpha_size_dynamic_sections): Use it.
1271 * elf64-hppa.c (add_dynamic_entry): Define macro.
1272 (elf64_hppa_size_dynamic_sections): Use it.
1273 * elf64-ppc.c (add_dynamic_entry): Define macro.
1274 (ppc64_elf_size_dynamic_sections): Use it.
1275 * elf64-s390.c (add_dynamic_entry): Define macro.
1276 (elf_s390_size_dynamic_sections): Use it.
1277 * elf64-sparc.c (add_dynamic_entry): Define macro.
1278 (sparc64_elf_size_dynamic_sections): Use it.
1279 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1280 (elf64_x86_64_size_dynamic_sections): Use it.
1281 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1282 (elfNN_ia64_size_dynamic_sections): Use it.
1284 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1285 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1287 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1288 false if the first malloc fails rather than going via error_return.
1290 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1292 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1294 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1296 * elfxx-ia64.c (global_sym_index): Return a long.
1298 * ieee.c (get_symbol): Use int rather than char param.
1299 (ieee_slurp_sections): Move "section" var to inner blocks.
1300 (copy_expression): Don't init "value" to zero or worry about
1301 clearing to zero after using.
1302 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1305 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1308 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1309 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1311 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1313 * pc532-mach.c (MYNSX): Delete.
1314 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1315 (write_object_contents): Correct prototype.
1317 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1318 than unsigned short.
1320 * section.c (bfd_set_section_contents): Remove redundant
1321 "offset < 0" test. Check that "count" doesn't overflow size_t.
1322 (bfd_get_section_contents): Likewise.
1324 * som.c (som_fixup_formats): Add missing braces.
1325 (som_reloc_addend): Pass a bfd_vma for "addend".
1327 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1328 (srec_write_symbols): Remove an unnecessary var.
1330 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1332 * configure.in: Sort to match. Bump version number.
1333 * configure: Regenerate.
1335 * tekhex.c (move_section_contents): Assert offset == 0.
1337 * versados.c (new_symbol_string): Constify arg.
1338 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1339 (versados_get_symbol_info): Make static.
1340 (versados_print_symbol): Likewise.
1341 (versados_get_reloc_upper_bound): Likewise.
1342 (versados_canonicalize_reloc): Likewise.
1344 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1346 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1348 2001-09-17 H.J. Lu <hjl@gnu.org>
1350 * dwarf1.c (parse_die): Take a new arg for the end of the
1351 section. Return false if die is beyond the section.
1352 (parse_functions_in_unit): Pass the end of the section to
1354 (_bfd_dwarf1_find_nearest_line): Likewise.
1356 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1358 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1359 just like R_SPARC_32.
1361 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1363 * configure.bfd: Add arm-openbsd target.
1365 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1367 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1368 Add support for mips64.
1370 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1372 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1374 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1376 * elf.c (prep_headers): Get the machine code from the elf
1378 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1379 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1380 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1381 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1382 * elf-arc.c (arc_elf_final_write_processing): Don't override
1383 e_machine, it's now properly set in prep_headers.
1384 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1386 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1387 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1388 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1389 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1390 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1391 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1392 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1393 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1394 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1395 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1396 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1397 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1399 2001-09-11 Richard Henderson <rth@redhat.com>
1401 * elf64-alpha.c (elf64_alpha_section_flags): New.
1402 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1404 2001-09-11 Richard Henderson <rth@redhat.com>
1406 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1407 apply HINT relocations against dynamic symbols.
1409 2001-09-11 H.J. Lu <hjl@gnu.org>
1411 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1413 2001-09-09 Richard Henderson <rth@redhat.com>
1415 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1417 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1418 following a call to a near function.
1420 2001-09-08 Richard Henderson <rth@redhat.com>
1422 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1423 relocation errors. Fail gp-relative relocations against
1426 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1428 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1429 as well as DEF_DYNAMIC in test for avoided copy relocs.
1430 (allocate_plt_and_got_and_discard_relocs): Likewise.
1431 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1432 (allocate_plt_and_got_and_discard_relocs): Likewise.
1434 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1436 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1439 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1441 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1443 (mips_elf64_howto_table_rel): Likewise.
1445 2001-09-05 Tom Rix <trix@redhat.com>
1447 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1448 and syscall symbols.
1449 (write_global_symbol) : Same.
1450 (bfd_xcoff_export_symbol): Remove unused syscall param.
1451 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1452 bfd_xcoff_import_symbol.
1454 * bfd-in2.h : Regenerate.
1456 2001-09-04 Richard Henderson <rth@redhat.com>
1458 * elf64-alpha.c (SKIP_HOWTO): New.
1459 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1460 Fix sizes of 16-bit mem format relocs.
1461 (elf64_alpha_reloc_map): Update to match.
1462 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1463 (elf64_alpha_relax_without_lituse): Likewise.
1464 (elf64_alpha_check_relocs): Handle GPREL16.
1465 (elf64_alpha_relocate_section): Likewise.
1466 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1467 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1468 * bfd-in2.h, libbfd.h: Rebuild.
1470 2001-09-04 Jeff Law <law@redhat.com>
1472 * elf32-h8300.c (elf32_h8_relax_section): New function.
1473 (elf32_h8_relax_delete_bytes): Likewise.
1474 (elf32_h8_symbol_address_p): Likewise.
1475 (elf32_h8_get_relocated_section_contents): Likewise.
1476 (bfd_elf32_bfd_relax_section): Define.
1477 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1479 * elf32-h8300.c (special): New function.
1480 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1482 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1483 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1484 Fix minor problems with 8bit and 16bit PC relative relocations.
1486 2001-09-01 Andreas Jaeger <aj@suse.de>
1488 * vms-tir.c: Add missing prototypes.
1489 * vms-hdr.c: Likewise.
1490 * vms-gsd.c: Likewise.
1491 * vms-misc.c: Likewise.
1493 2001-08-31 H.J. Lu <hjl@gnu.org>
1495 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1496 with bad relocation.
1498 2001-08-31 Eric Christopher <echristo@redhat.com>
1499 Jason Eckhardt <jle@redhat.com>
1501 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1502 mips32_4k and mips64.
1503 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1504 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1505 * bfd/cpu-mips.c: Ditto.
1506 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1507 * bfd/bfd-in2.h: Regenerate.
1509 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1511 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1512 value into R_ALPHA_RELATIVE's addend.
1513 (elf64_alpha_finish_dynamic_symbol): Likewise.
1515 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1517 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1518 recomputed addend during relocatable link if not USE_REL.
1520 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1523 2001-08-30 H.J. Lu <hjl@gnu.org>
1525 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1527 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1528 relocations for weak definitions.
1530 2001-08-30 H.J. Lu <hjl@gnu.org>
1532 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1533 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1534 * Makefile.in: Rebuild.
1536 2001-08-30 H.J. Lu <hjl@gnu.org>
1538 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1539 dynamic relocation for undefined weak symbols when creating
1540 executables. Check h->root.root.type, instead of h->root.type.
1542 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1544 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1545 default from coff to elf.
1547 2001-08-29 Jeff Law <law@redhat.com>
1549 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1551 (h8_reloc_map): Similarly.
1552 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1553 Add support for PC relative relocations.
1555 * elf32-h8300.c: Put all prototypes together.
1556 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1557 (elf32_h8_final_link_relocate): New function for linker.
1558 (elf32_h8_relocate_section): Similarly.
1559 (elf_backend_relocate_section): Define.
1561 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1562 (h8300_scan): Handle architecture:machine encodings typically
1563 found in linker scripts.
1564 * elf.c (prep_headers): Do not try to do H8 machine recognition
1566 * elf32-h8300.c: Add some missing prototypes.
1567 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1568 (elf32_h8_object_p): Similarly.
1570 2001-08-29 Tom Rix <trix@redhat.com>
1572 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1573 does not follow a XTY_SD.
1575 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1577 * targmatch.sed: Delete case statements.
1578 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1581 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1583 * Makefile.am (elf32-h8300.lo): New target.
1584 * config.bfd (h8300*-*-elf): New case.
1585 * configure.in (bfd_elf32_h8300_vec): New case.
1586 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1587 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1588 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1589 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1590 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1591 * elf32-h8300.c: New file.
1592 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1594 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1596 * sparclynx.c: Add missing prototypes.
1597 * coff-mcore.c: Add missing prototypes.
1598 * elf32-pj.c: Add missing prototypes.
1599 * nlm32-sparc.c: Add missing prototypes.
1600 * oasys.c: Add missing prototypes.
1601 * pdp11.c: Add missing prototypes.
1602 * pe-mips.c: Add missing prototypes.
1603 * riscix.c: Add missing prototypes.
1605 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1607 * elf32-i386.c: Add missing prototypes.
1608 * elf32-ppc.c: Likewise.
1609 * elf32-sh-lin.c: Likewise.
1610 * elfarm-nabi.c: Likewise.
1612 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1614 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1615 (elf_i386_grok_psinfo): New function.
1616 (elf_backend_grok_prstatus): Define.
1617 (elf_backend_grok_psinfo): Likewise.
1618 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1619 (ppc_elf_grok_psinfo): New function.
1620 (elf_backend_grok_prstatus): Define.
1621 (elf_backend_grok_psinfo): Likewise.
1622 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1623 (elf32_shlin_grok_psinfo): New function.
1624 (elf_backend_grok_prstatus): Define.
1625 (elf_backend_grok_psinfo): Likewise.
1626 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1627 (elf32_arm_nabi_grok_psinfo): New function.
1628 (elf_backend_grok_prstatus): Define.
1629 (elf_backend_grok_psinfo): Likewise.
1631 2001-08-27 H.J. Lu <hjl@gnu.org>
1633 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1635 (mips_elf_calculate_relocation): Create dynamic relocation for
1636 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1639 2001-08-27 H.J. Lu <hjl@gnu.org>
1641 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1642 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1643 (_bfd_elf32_mips_grok_prstatus): Likewise.
1644 (_bfd_elf32_mips_grok_psinfo): Likewise.
1645 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1646 `struct mips_elf_link_hash_entry *'.
1647 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1649 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1651 * mipsbsd.c: Add missing prototypes.
1652 * hp300hpux.c: Add missing prototypes.
1653 * i386aout.c: Add missing prototypes.
1654 * i386lynx.c: Add missing prototypes.
1655 * i386mach3.c: Add missing prototypes.
1656 * i386msdos.c: Add missing prototypes.
1657 * i386os9k.c: Add missing prototypes.
1659 2001-08-27 Linus Nordberg <linus@swox.se>
1660 Torbjorn Granlund <tege@swox.com>
1661 Staffan Ulfberg <staffanu@swox.se>
1662 Alan Modra <amodra@bigpond.net.au>
1664 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1665 targ64_selvecs for 32 bit powerpc targets.
1666 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1667 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1669 * Makefile.in: Regenerate.
1670 * configure.in: Add elf64_powerpc vecs.
1671 * configure: Regenerate.
1672 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1673 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1674 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1675 * elf64-ppc.c: New file.
1676 * reloc.c: Add powerpc64 relocs.
1677 * libbfd.h: Regenerate.
1678 * bfd-in2.h: Regenerate.
1680 2001-08-27 Andreas Schwab <schwab@suse.de>
1682 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1683 reloc is against read-only section.
1684 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1685 looking up section names for DT_TEXTREL.
1686 (elf32_m68k_reloc_type_class): New function.
1687 (elf_backend_reloc_type_class): Define.
1689 2001-08-27 Andreas Jaeger <aj@suse.de>
1691 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1692 reloc is against read-only section.
1693 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1694 looking up section names for DT_TEXTREL.
1695 (elf_s390_reloc_type_class): New.
1696 (elf_backend_reloc_type_class): Define.
1698 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1699 reloc is against read-only section.
1700 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1701 looking up section names for DT_TEXTREL.
1702 (elf_s390_reloc_type_class): New.
1703 (elf_backend_reloc_type_class): Define.
1705 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1706 is against read-only section.
1707 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1708 looking up section names for DT_TEXTREL.
1709 (ppc_elf_reloc_type_class): New.
1710 (elf_backend_reloc_type_class): Define.
1712 2001-08-26 Andreas Jaeger <aj@suse.de>
1714 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1715 reloc is against read-only section.
1716 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1717 looking up section names for DT_TEXTREL.
1718 (elf_cris_reloc_type_class): New.
1719 (elf_backend_reloc_type_class): Define.
1721 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1722 against read-only section.
1723 (elf_backend_reloc_type_class): Define.
1724 (sh_elf_reloc_type_class): New.
1725 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1726 looking up section names for DT_TEXTREL.
1728 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1729 reloc is against read-only section.
1730 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1731 looking up section names for DT_TEXTREL.
1732 (elf32_arm_reloc_type_class): New.
1733 (elf_backend_reloc_type_class): Define.
1735 2001-08-25 Andreas Jaeger <aj@suse.de>
1737 * oasys.c: Add missing prototypes.
1739 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1740 attribute for parameter.
1741 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1743 * versados.c (get_4): Make static.
1744 (get_10): Make static.
1745 Add missing prototypes.
1746 (process_esd): Fix call to versados_new_symbol.
1748 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1750 * coff-a29k.c: Add missing prototypes.
1751 * coff-apollo.c: Add missing prototypes.
1752 * coff-arm.c: Add missing prototypes.
1753 * coff-i860.c: Add missing prototypes.
1754 * coff-rs6000.c: Add missing prototypes.
1755 * coff-tic80.c: Add missing prototypes.
1756 * elf-m10200.c: Add missing prototypes.
1757 * elf-m10300.c: Add missing prototypes.
1758 * elf32-arm.h: Add missing prototypes.
1759 * elf32-d10v.c: Add missing prototypes.
1760 * elf32-m32r.c: Add missing prototypes.
1761 * elf32-mcore.c: Add missing prototypes.
1762 * elf32-openrisc.c: Add missing prototypes.
1763 * elf32-sh.c: Add missing prototypes.
1764 * elf32-sparc.c: Add missing prototypes.
1765 * elf32-v850.c: Add missing prototypes.
1766 * elfarm-nabi.c: Add missing prototypes.
1767 * elfarm-oabi.c: Add missing prototypes.
1769 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1771 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1772 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1774 2001-08-24 H.J. Lu <hjl@gnu.org>
1776 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1779 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1781 * elf-bfd.h (elf_hash_table): Revert definition.
1782 (is_elf_hash_table): New macro.
1783 * elflink.h (elf_link_add_object_symbols): Test
1784 is_elf_hash_table before accessing ELF only fields in hash
1786 (elf_link_create_dynamic_sections): Fail if not using an ELF
1788 (elf_add_dynamic_entry): Fail if not using an ELF hash
1790 (elf_link_record_local_dynamic_symbol): Fail if not using an
1792 (size_dynamic_sections): Fail if not using an ELF hash
1794 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1796 (elf_bfd_final_link): Fail if not using an ELF hash
1799 2001-08-24 H.J. Lu <hjl@gnu.org>
1801 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1802 table is not an ELF linker hash table.
1804 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1805 table type to bfd_link_elf_hash_table.
1807 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1810 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1811 table type to bfd_link_generic_hash_table.
1813 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1815 * bfd.c (bfd_alt_mach_code): New function.
1816 * bfd-in2.h: Rebuilt.
1818 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1820 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1821 `type' field in the hash entry when deciding whether to follow a
1824 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1826 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1828 (elf_link_sort_relocs): Adjust accordingly.
1830 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1831 (elf64_alpha_check_relocs): Set it if section this reloc is against
1832 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1834 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1835 is is against read-only section.
1836 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1837 check section names.
1838 (elf64_alpha_reloc_type_class): New.
1839 (elf_backend_reloc_type_class): Define.
1841 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1843 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1846 2001-08-23 Andreas Jaeger <aj@suse.de>
1848 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1849 the reloc is against read-only section.
1850 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1851 of looking up section names for DT_TEXTREL.
1852 (elf64_x86_64_reloc_type_class): New.
1853 (elf_backend_reloc_type_class): Define.
1855 2001-08-23 H.J. Lu <hjl@gnu.org>
1857 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1858 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1860 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1861 bfd_print_symbol_vandf.
1862 * coffgen.c (coff_print_symbol): Likewise.
1863 * elf.c (bfd_elf_print_symbol): Likewise.
1864 * ieee.c (ieee_print_symbol): Likewise.
1865 * nlmcode.h (nlm_print_symbol): Likewise.
1866 * oasys.c (oasys_print_symbol): Likewise.
1867 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1868 * som.c (som_print_symbol): Likewise.
1869 * srec.c (srec_print_symbol): Likewise.
1870 * tekhex.c (tekhex_print_symbol): Likewise.
1871 * versados.c (versados_print_symbol): Likewise.
1872 * vms.c (vms_print_symbol): Likewise.
1874 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1875 with bfd_fprintf_vma.
1876 (bfd_elf_print_symbol): Likewise.
1877 * syms.c (bfd_print_symbol_vandf): Likewise.
1879 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1881 * aoutf1.h (sunos_write_object_contents): Silence compile time
1883 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1885 * bout.c: Add missing function prototypes. Fix formatting.
1886 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1887 * coff-w65.c: Add missing function prototypes. Fix formatting.
1888 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1889 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1890 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1891 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1892 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1893 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1894 * coff-sh.c: Add missing function prototypes. Fix formatting.
1896 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1898 * elf-bfd.h (enum elf_reloc_type_class): New.
1899 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1900 (_bfd_elf_reloc_type_class): New.
1901 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1902 (elfNN_bed): Add elf_backend_reloc_type_class.
1903 * elf.c (_bfd_elf_reloc_type_class): New.
1904 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1905 is against read-only section.
1906 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1907 looking up section names for DT_TEXTREL.
1908 (elf_i386_reloc_type_class): New.
1909 (elf_backend_reloc_type_class): Define.
1910 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1911 reloc is against read-only section.
1912 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1913 looking up section names for DT_TEXTREL.
1914 (elf32_sparc_reloc_type_class): New.
1915 (elf_backend_reloc_type_class): Define.
1916 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1917 reloc is against read-only section.
1918 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1919 looking up section names for DT_TEXTREL.
1920 (sparc64_elf_reloc_type_class): New.
1921 (elf_backend_reloc_type_class): Define.
1922 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1923 (elfNN_ia64_hash_table_create): Clear ia64_info.
1924 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1926 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1927 instead of looking up section names for DT_TEXTREL.
1928 (elfNN_ia64_reloc_type_class): New.
1929 (elf_backend_reloc_type_class): Define.
1930 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1931 (struct elf_link_sort_rela): New.
1932 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1933 (elf_bfd_final_link): Call elf_link_sort_relocs.
1934 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1937 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1939 * configure.in (x86-bsdi): No corefile support.
1940 * configure: Regenerate.
1942 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1944 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1947 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1949 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1950 the alignment of dwarf2 linkonce sections to 0.
1951 * coff-sto32.c: Likewise.
1953 2001-08-20 Andreas Jaeger <aj@suse.de>
1955 * coff-sparc.c: Add missing prototypes.
1956 * elf32-s390.c: Likewise.
1957 * elf32-i960.c: Likewise.
1958 * aout-target.h: Likewise.
1960 2001-08-20 H.J. Lu <hjl@gnu.org>
1962 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1963 (elf_num_section_syms): New for num_section_syms.
1965 * elf.c (elf_map_symbols): Set num_section_syms.
1966 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1967 the section symbol index.
1969 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1971 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1972 select the generic has table creator. All elf backends need elf
1973 specific fields in the hash table.
1975 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1977 * archive.c (offsetof): Remove define.
1980 * sysdep.h (offsetof): Define.
1982 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1984 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1985 (bfd_set_gp_size): Make param unsigned.
1986 * bfd-in2.h: Regenerate.
1987 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1988 than calling bfd_get_gp_size.
1989 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1990 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1992 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1994 * linker.c (default_fill_link_order): Handle four byte fill value.
1996 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1998 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2000 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2002 * elf64-mips.c (UNUSED_RELOC): Define.
2003 (mips_elf64_howto_table_rel): Use it.
2004 (mips_elf64_howto_table_rela): Here too.
2005 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2007 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2009 * coffgen.c (coff_print_symbol): Fix warnings.
2010 (coff_find_nearest_line): Likewise.
2011 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2012 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2013 * format.c (bfd_check_format_matches): Likewise.
2014 (bfd_set_format): Likewise.
2015 * coff-ia64.c: Add missing prototypes.
2016 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2017 signed to silence warnings.
2018 (elf64_alpha_relocate_section): Likewise.
2019 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2020 (elf64_alpha_add_symbol_hook): Likewise.
2021 (elf64_alpha_final_link): Likewise.
2022 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2023 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2024 (elf64_alpha_size_got_sections): Likewise.
2025 * elfxx-ia64.c: Add missing prototypes.
2026 (elfNN_ia64_relocate_section): Fix warning.
2027 (elfNN_ia64_unwind_entry_compare): Make params const.
2029 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2031 * config.bfd (targ64_selvecs): New.
2032 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2034 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2035 (BFD_DEFAULT_TARGET_SIZE): New.
2036 (BFD_ARCH_SIZE): Comment.
2037 * configure.in (target_size): New. Set instead of target64 in
2038 selvecs case statement. Set target64 from it.
2039 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2040 * bfd-in2.h: Regenerate.
2041 * configure: Regenerate.
2043 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2045 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2046 (bfd_errmsgs): Add corresponding message.
2047 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2048 finding an archive that contains different format object files.
2049 Return bfd_error_wrong_object_format for this case.
2050 * format.c: Formatting fixes. s/CONST/const/.
2051 (bfd_check_format_matches): Accept archives that give
2052 bfd_error_wrong_object_format if no full match is found. Tidy
2053 code handling matching_vector. Don't return a pointer to freed
2054 memory in `matching'. Handle ambiguous matches as for partial
2056 * bfd-in2.h: Regenerate.
2058 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2060 * libieee.h (common_header_type): Add last_byte field.
2062 * ieee.c: Add missing prototypes. Some format fixes.
2063 (struct output_buffer_struct): Move for availability to prototypes.
2064 (ieee_part_after): New function.
2065 (ieee_slurp_debug): Use it here.
2066 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2067 ieee_part_after to set last_byte to one past end of current part.
2069 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2071 (parse_expression): Don't go beyond the end of the current part.
2072 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2073 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2074 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2075 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2076 ieee_set_section_contents, ieee_write_object_contents,
2077 ieee_make_empty_symbol): Make static.
2078 (ieee_archive_p): Correct comments regarding bfd_read.
2079 (ieee_object_p): Similarly.
2080 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2081 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2082 input_bfd, output_bfd, output_buffer.
2083 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2084 do_with_relocs, ie. as a symbol for relocatable files.
2085 (ieee_vec): Add comments showing functions referenced by macros.
2087 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2089 * aout-tic30.c: Add missing prototypes. Fix formatting.
2090 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2091 * peXXigen.c: Add missining prototypes. Fix formatting.
2092 * aout-adobe.c: Add missining prototypes. Fix formatting.
2094 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2096 * elf32-v850.c: Add missing function prototypes.
2097 Fix some formatting.
2099 * cpu-v850.c: Add missing function prototype.
2100 Fix some formatting.
2102 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2104 * elf-bfd.h (struct elf_backend_data): Add new fields
2105 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2106 (bfd_elf_sprintf_vma): Rename function prototype to
2107 '_bfd_elf_sprintf_vma'.
2108 (bfd_elf_fprintf_vma): Rename function prototype to
2109 '_bfd_elf_fprintf_vma'.
2110 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2111 directly, instead indirect via the elf_backend_data structure.
2112 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2113 instead indirect via the elf_backend_data structure.
2114 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2115 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2116 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2118 (elf_backend_fprintf_vma): Initialise if not already defined.
2119 (struct elf_backend_data): Initialise the
2120 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2122 2001-08-10 Andreas Jaeger <aj@suse.de>
2124 * elf64-sparc.c: Add missing prototypes.
2125 * elf32-cris.c: Likewise.
2126 * elf32-i370.c: Likewise.
2127 * elf64-hppa.c: Likewise.
2128 * elf64-s390.c: Likewise.
2130 2001-08-10 Andreas Jaeger <aj@suse.de>
2132 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2133 Add prototypes where needed.
2135 2001-08-10 H.J. Lu <hjl@gnu.org>
2137 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2138 (bfd_fprintf_vma): Likewise.
2140 2001-08-10 H.J. Lu <hjl@gnu.org>
2142 * bfd.c (bfd_sprintf_vma): Don't return void.
2143 (bfd_fprintf_vma): Likewise.
2145 2001-08-10 Andreas Jaeger <aj@suse.de>
2147 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2149 * configure: Regenerate.
2151 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2153 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2154 warning if not BFD64. Add braces so emacs auto format works.
2155 (bfd_elf_fprintf_vma): Likewise.
2157 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2159 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2160 param to agree with libxcoff.h.
2161 (xcoff_swap_ldhdr_out): Likewise.
2162 (xcoff_swap_ldsym_in): Likewise.
2163 (xcoff_swap_ldsym_out): Likewise.
2164 (xcoff_swap_ldrel_in): Likewise.
2165 (xcoff_swap_ldrel_out): Likewise.
2166 (xcoff_create_csect_from_smclas): Likewise.
2167 * coff64-rs6000.c: Add missing prototypes.
2168 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2170 (xcoff64_swap_ldhdr_out): Likewise.
2171 (xcoff64_swap_ldsym_in): Likewise.
2172 (xcoff64_swap_ldsym_out): Likewise.
2173 (xcoff64_swap_ldrel_in): Likewise.
2174 (xcoff64_swap_ldrel_out): Likewise.
2175 (xcoff64_ppc_relocate_section): Make static.
2176 (xcoff64_slurp_armap): Likewise.
2177 (xcoff64_archive_p): Likewise.
2178 (xcoff64_openr_next_archived_file): Likewise.
2179 (xcoff64_sizeof_headers): Likewise.
2180 (xcoff64_is_lineno_count_overflow): Likewise.
2181 (xcoff64_is_reloc_count_overflow): Likewise.
2182 (xcoff64_loader_symbol_offset): Likewise.
2183 (xcoff64_loader_reloc_offset): Likewise.
2184 * elf64-gen.c: Add missing prototypes.
2186 2001-08-09 H.J. Lu <hjl@gnu.org>
2188 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2189 (bfd_elf_fprintf_vma): Likewise.
2191 2001-08-09 H.J. Lu <hjl@gnu.org>
2193 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2196 * bfd-in2.h: Regenerated.
2198 2001-08-09 H.J. Lu <hjl@gnu.org>
2200 * bfd-in.h (bfd_sprintf_vma): New prototype.
2201 (bfd_fprintf_vma): Likewise.
2202 (bfd_elf_sprintf_vma): Likewise.
2203 (bfd_elf_fprintf_vma): Likewise.
2204 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2205 * bfd-in2.h: Regenerated.
2207 * bfd.c (bfd_sprintf_vma): New. Defined.
2208 (bfd_fprintf_vma): Likewise.
2210 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2211 (bfd_elf_fprintf_vma): Likewise.
2213 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2215 * coff-rs6000.c: Add missing prototypes.
2216 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2217 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2218 xcoff_loader_reloc_offset): Make static.
2219 * dwarf1.c: Add missing prototypes.
2220 * dwarf2.c: Add missing prototypes.
2221 (struct abbrev_info): Move definition.
2222 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2223 * elf.c: Add missing prototypes.
2224 * elf32-gen.c: Likewise.
2225 * elf32-i386.c: Likewise.
2226 * elf32-ppc.c: Likewise.
2227 (ppc_elf_sort_rela): Use PTR instead of "void *".
2228 * elflink.h: Add missing prototypes. Formatting fixes.
2229 * merge.c: Add missing prototypes.
2230 (last4_eq): Use PTR instead of "void *".
2231 (last_eq): Likewise.
2232 * syms.c: Add missing prototypes.
2234 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2236 * bfd.c: Fix formatting.
2237 * bfd-in2.h: Regenerate.
2239 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2241 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2242 true (this target uses REL relocations) and 'pcrel_offset' to
2243 false (the PC is implied, not stored in the offset).
2245 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2247 1999-10-19 Linus Nordberg <linus@swox.se>
2248 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2249 * elfxx-target.h (elf_backend_want_got_sym): Define.
2250 (elfNN_bed): Add elf_backend_want_got_sym.
2251 * elflink.c (_bfd_elf_create_got_section): Define
2252 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2254 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2256 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2257 (find_rela_addend): New function.
2258 (parse_comp_unit): Call it to find the abbrev offset addend.
2259 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2260 members of dwarf2_debug as debugging information is read.
2262 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2264 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2265 targets as well as sh-pe.
2267 2001-08-03 Ben Harris <bjh21@netbsd.org>
2269 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2270 reloc from start of section when computing value for R_ARM_REL32
2273 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2275 From H.J. Lu <hjl@gnu.org>
2276 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2277 keep relocs for undefined syms if there are no dynamic sections in
2279 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2281 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2283 * cofflink.c (coff_link_check_ar_symbols): also search for
2284 __imp__symbol as well as _symbol.
2285 * linker.c (_bfd_generic_link_add_archive_symbols): also
2286 search for __imp__symbol as well as _symbol.
2288 2001-08-01 Adam Nemet <anemet@lnxw.com>
2290 * elf.c (elf_sort_sections): Return zero only as the last step.
2292 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2294 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2296 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2297 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2300 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2302 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2303 to match corresponding bfd_coff_backend data member.
2305 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2307 * Makefile.am: Update dependencies with "make dep-am".
2308 * Makefile.in: Regenerate
2310 2001-07-15 H.J. Lu <hjl@gnu.org>
2312 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2313 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2314 * Makefile.in: Regenerate.
2316 2001-07-11 H.J. Lu <hjl@gnu.org>
2318 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2319 flags when creating the reloc section if the ALLOC flag in the
2320 source section is set.
2322 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2324 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2325 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2326 * bfd-in2.h: Regenerate.
2327 * libbfd.h: Regenerate.
2328 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2330 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2331 (elfNN_ia64_check_relocs): Likewise.
2332 (elfNN_ia64_install_value): Likewise.
2333 (elfNN_ia64_relocate_section): Likewise.
2335 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2337 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2339 (elf32_sparc_check_relocs): Likewise.
2340 Only create .rela section for alloced sections in shared libraries.
2341 (elf32_sparc_relocate_section): Likewise.
2342 Remove redundant check.
2343 Optimize unaligned reloc usage.
2344 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2347 2001-07-11 H.J. Lu <hjl@gnu.org>
2349 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2350 ALLOC|LOAD flags as the source section for debugging sections
2351 when creating the reloc section.
2353 2001-07-05 Jim Wilson <wilson@redhat.com>
2355 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2356 the section of the bigger symbol.
2358 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2360 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2362 * peicode.h (coff_swap_scnhdr_in): For sections containing
2363 uninitialised data, only set their size to s_paddr if this does
2364 not reset their size to zero. MS's latest compilers will set
2367 2001-07-04 H.J. Lu <hjl@gnu.org>
2369 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2370 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2373 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2375 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2377 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2378 sections being discarded.
2380 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2382 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2383 instead of _bfd_elfcore_section_from_phdr.
2384 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2385 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2386 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2387 (elfcore_grok_prstatus): Likewise.
2388 (elfcore_grok_lwpstatus): Likewise.
2389 (bfd_get_elf_phdr_upper_bound): Likewise.
2390 (elfcore_make_note_pseudosection): Formatting.
2391 (_bfd_elfcore_strndup): Formatting.
2392 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2393 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2395 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2397 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2398 and _bfd_elfcore_strndup.
2399 (struct elf_backend_data): Add elf_backend_grok_prstatus
2400 and elf_backend_grok_psinfo.
2401 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2402 (elfcore_grok_prstatus): Use it.
2403 (elfcore_make_note_pseudosection): Likewise.
2404 (elfcore_strndup): Rename to...
2405 (_bfd_elfcore_strndup): Here, and make global.
2406 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2407 (elfcore_grok_note): Call elf_backend_grok_prstatus
2408 and elf_backend_grok_psinfo if available.
2409 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2410 (_bfd_elf32_mips_grok_psinfo): New function.
2411 (elf_backend_grok_prstatus): Define.
2412 (elf_backend_grok_psinfo): Define.
2413 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2414 (elf_backend_grok_psinfo): Likewise.
2415 (elfNN_bed): Include elf_backend_grok_prstatus and
2416 elf_backend_grok_psinfo.
2418 2001-06-29 H.J. Lu <hjl@gnu.org>
2420 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2421 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2422 is NULL before filling PLT.
2424 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2426 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2428 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2430 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2432 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2433 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2436 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2437 (IS_ABSOLUTE_RELOC): Define.
2438 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2439 (hppa_link_hash_newfunc): Always init it.
2440 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2441 create COPY relocs only when the reloc is in a read-only section.
2442 Instead, allocate space for a dynamic reloc to reference the
2443 library symbol directly. Keep track of space we allocate using
2445 (hppa_discard_copies): Delete, and move code to..
2446 (allocate_plt_and_got): ..here. Rename to
2447 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2448 relocs for non-shared link.
2449 (elf32_hppa_size_dynamic_sections): Update calls to above.
2450 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2451 in lieu of COPY relocs.
2453 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2455 (elf_i386_adjust_dynamic_symbol): ..nor here..
2456 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2458 (elf_i386_size_dynamic_sections): Fix a comment.
2459 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2460 involved in writing reloc out.
2462 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2464 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2465 Ensure syms are dynamic if we might be emitting a reloc.
2466 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2467 for undefweak or undefined syms..
2468 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2470 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2471 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2472 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2473 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2475 2001-06-24 H.J. Lu <hjl@gnu.org>
2477 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2478 strncasecmp/strcasecmp instead of strncmp/strcmp.
2480 2001-06-23 H.J. Lu <hjl@gnu.org>
2482 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2483 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2484 in the regular object file and treat the weak definition as
2487 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2489 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2490 unresolved_reloc test to exclude cases where we use "relocation"
2491 before setting it to point into the .got. Reinstate fudge for
2492 unresolved relocs in debugging sections.
2494 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2495 complicated tests for unresolvable relocs with a simple direct
2496 scheme using "unresolved_reloc" var.
2498 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2499 elf_i386_dyn_relocs. Update comment.
2500 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2502 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2504 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2506 (elf_i386_size_dynamic_sections): Likewise.
2507 (elf_i386_finish_dynamic_symbol): Likewise.
2508 (elf_i386_finish_dynamic_sections): Likewise.
2509 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2512 Avoid creating COPY relocs if possible.
2513 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2514 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2515 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2516 reloc is in a read-only section. Instead, allocate space for a
2517 dynamic reloc to reference the library symbol directly. Keep
2518 track of space we allocate using pcrel_relocs_copied.
2519 (discard_copies): Delete, and move code to ..
2520 (allocate_plt_and_got): ..here. Rename to
2521 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2522 relocs for non-shared link.
2523 (elf_i386_size_dynamic_sections): Update calls to above functions.
2524 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2525 more ugly logic to avoid "unresolvable relocation" error. Use
2526 htab shortcut in place of elf_hash_table macro.
2527 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2528 not always be created now.
2530 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2532 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2535 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2537 * configure.host (mips64-*-linux): Reformat.
2539 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2541 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2542 allocate local .got space. Use shortcuts from hash table for .got
2543 and .plt rather than comparing section names.
2544 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2545 adjusting index into local_got_refcounts to document what we are
2547 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2548 Tidy .got and .plt error checking.
2550 2001-06-20 Catherine Moore <clm@redhat.com>
2552 * elf-bfd.h (struct elf_backend_data):
2553 elf_backend_emit_relocs: New field: Function for emitting
2555 elf_backend_count_relocs: New field: Function for determining
2556 the number of relocs to be emitted.
2557 * elfxx-target.h: Provide default (NULL) values for
2558 elf_backend_emit_relocs and elf_backend_count_relocs.
2559 * elflink.h (elf_link_size_reloc_section): Make the hash table
2560 big enough to hold the relocs counted by either reloc_count or
2562 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2563 should be emitted, either because of a command line option
2564 stored in the info structure or because the target provides a
2565 special reloc emitting function.
2566 If the target provides a reloc counting function use it,
2567 unless performing a relocatable link or emitting all relocs.
2568 Also set the SEC_RELOC flag on any output section which will
2570 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2571 should be emitted, either because of a command line option
2572 stored in the info structure or because the target provides a
2573 special reloc emitting function.
2574 If the target provides a reloc emitting function, use it,
2575 unless performing a relocatable link or emitting all relocs.
2577 2001-06-20 H.J. Lu <hjl@gnu.org>
2579 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2580 allocate local .got space.
2582 2001-06-19 Andreas Jaeger <aj@suse.de>
2584 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2587 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2589 * elflink.h (struct elf_assign_sym_version_info): Remove member
2590 export_dynamic. All users changed to use info member.
2591 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2592 export_dynamic, instead use member in parameter info.
2593 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2594 bfd_elf64_size_dynamic_sections): Update prototype.
2595 * bfd-in2.h: Regenerate.
2597 2001-06-18 H.J. Lu <hjl@gnu.org>
2599 * elflink.h (elf_info_failed): Add a new field, verdefs.
2600 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2602 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2605 2001-06-17 H.J. Lu <hjl@gnu.org>
2607 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2608 readonly_reloc, to record if a relocation in the .rel.dyn
2609 section is against a read-only section.
2610 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2612 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2613 in the .rel.dyn section against a read-only section by setting
2614 DF_TEXTREL or readonly_reloc.
2615 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2617 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2618 there is a relocation in the .rel.dyn section against a
2620 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2623 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2625 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2626 function. Move flagword result into parameter list. Remove
2627 comment about setting bfd_error_handler to intercept failure
2629 * coffgen.c (make_a_section_from_file): Examine result of
2630 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2632 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2633 function. Move flagword result into parameter list.
2634 * libcoff.h: Regenerate.
2635 * libecoff.h: Regenerate.
2637 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2639 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2640 section is going to follow it.
2642 2001-06-12 Catherine Moore <clm@redhat.com>
2644 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2645 with the file_align entry from elf_backend_data.
2646 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2647 (elf_gc_record_vtentry): Likewise.
2649 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2651 * elflink.h: Whitespace changes.
2652 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2653 rather than "unsigned char".
2654 (elf_link_output_relocs): Likewise.
2655 (elf_link_input_bfd): Likewise.
2656 (elf_reloc_link_order): LIkewise.
2657 * elf.c: s/CONST/const/. Whitespace changes.
2658 * elf32-mips.c: Formatting fix.
2660 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2661 * Makefile.in: Regenerate.
2662 * po/Make-in: Remove trailing tab.
2664 2001-06-09 Philip Blundell <philb@gnu.org>
2666 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2668 (elf32_arm_plt_entry): Likewise.
2670 2001-06-08 H.J. Lu <hjl@gnu.org>
2672 * elf.c (swap_out_syms): Keep names for global section symbols.
2674 2001-06-07 H.J. Lu <hjl@gnu.org>
2676 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2677 MIPS-based machines need it.
2679 2001-06-07 H.J. Lu <hjl@gnu.org>
2681 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2684 * config.bfd: Remove ecoff from Linux/mips.
2686 2001-06-07 Andreas Jaeger <aj@suse.de>
2688 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2690 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2691 alignment of 8 for .rela sections; handle further relocations.
2693 2001-06-06 Christian Groessler <cpg@aladdin.de>
2695 * coff-z8k.c: Fix formatting.
2696 Fix howtos: howto->size was always 1.
2698 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2700 * configure.host (mips64*-*-linux*): Define.
2702 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2704 * elf32-i386.c (elf_i386_discard_copies): Rename to
2705 discard_copies, and use elf_link_hash_entry arg rather than
2706 elf_i386_link_hash_entry.
2707 (elf_i386_link_hash_traverse): Delete.
2708 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2709 Tidy sizing of dynamic sections.
2710 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2711 possible .plt entries.
2712 (elf_i386_gc_sweep_hook): Likewise.
2713 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2714 everything with plt.refcount <= 0.
2716 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2718 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2719 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2721 (allocate_plt_and_got): ..instead do it all here. New function.
2722 (elf_i386_size_dynamic_sections): Allocate local .got space and
2723 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2724 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2725 rather than gc variety).
2726 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2727 (elf_i386_relocate_section): Use it here and correct handling of
2728 R_386_GOT32. Provide section and offset for "unresolvable
2729 relocation" error message.
2730 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2732 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2733 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2734 (elf_i386_link_hash_table_create): Init them.
2735 (create_got_section): New function.
2736 (elf_i386_create_dynamic_sections): New function.
2737 (elf_backend_create_dynamic_sections): Set to above.
2738 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2739 calling bfd_get_section_by_name.
2740 (elf_i386_gc_sweep_hook): Likewise.
2741 (elf_i386_adjust_dynamic_symbol): Likewise.
2742 (elf_i386_size_dynamic_sections): Likewise.
2743 (elf_i386_relocate_section): Likewise.
2744 (elf_i386_finish_dynamic_sections): Likewise.
2746 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2748 2001-06-02 H.J. Lu <hjl@gnu.org>
2750 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2752 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2754 2001-06-02 H.J. Lu <hjl@gnu.org>
2756 * aout-cris.c (MACHTYPE_OK): New. Defined.
2758 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2760 * section.c (_bfd_strip_section_from_output): Handle NULL
2763 2001-06-02 H.J. Lu <hjl@gnu.org>
2765 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2766 rs6000coff64_vec only if BFD64 is defined.
2767 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2769 2001-06-02 H.J. Lu <hjl@gnu.org>
2771 * coff-ia64.c (ia64coff_object_p): Rewrite with
2772 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2774 2001-06-01 Andreas Jaeger <aj@suse.de>
2776 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2777 relocation, small reformatting.
2779 2001-05-29 Andreas Jaeger <aj@suse.de>
2781 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2782 (elf64_x86_64_relocate_section): Likewise.
2784 2001-05-30 Alan Modra <amodra@one.net.au>
2786 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2787 millicode. Don't allocate .got and .rela.got space here..
2788 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2789 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2791 (hppa_handle_PIC_calls): ..nor here..
2792 (allocate_plt_and_got): ..instead do it all here. New function.
2793 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2794 call allocate_plt_and_got. No need to zap .got if not dynamic.
2795 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2796 gc_common_final_link.
2797 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2798 (elf32_hppa_relocate_section): Use it here.
2799 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2800 dynamic_sections_created.
2801 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2803 2001-05-28 Andreas Jaeger <aj@suse.de>
2805 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2806 generic version since we want a hashsize of 4.
2807 (elf_backend_size_info): Likewise.
2809 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2811 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2813 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2814 (elf_link_input_bfd): Likewise.
2815 (elf_reloc_link_order): Likewise.
2816 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2817 relocations correctly.
2819 2001-05-28 Nicolas Pitre <nico@cam.org>
2821 * elf32-arm.h: fix PLT generation for big endian ARM
2823 2001-05-28 Alan Modra <amodra@one.net.au>
2825 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2826 for symbols forced local that need plabels.
2827 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2828 .plt.rela for local syms if non-shared.
2829 (hppa_build_one_stub): Mask lsb of plt.offset.
2830 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2831 (clobber_millicode_symbols): Correct comment.
2832 (elf32_hppa_relocate_section): Likewise.
2833 (elf32_hppa_finish_dynamic_symbol): Likewise.
2835 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2837 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2838 * bfd-in2.h: Regenerate.
2839 * libbfd.h: Regenerate.
2840 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2841 and BFD_RELOC_SPARC_UA64 mapping
2842 * elf64-sparc.c: Likewise.
2844 2001-05-25 H.J. Lu <hjl@gnu.org>
2846 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2847 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2848 (coff-rs6000.lo): Remove the old dependency.
2849 * Makefile.in: Rebuild.
2851 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2854 2001-05-25 H.J. Lu <hjl@gnu.org>
2856 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2857 rs6000coff_core_file_matches_executable_p,
2858 rs6000coff_core_file_failing_command and
2859 rs6000coff_core_file_failing_signal only if AIX_CORE is
2861 (pmac_xcoff_vec): Likewise.
2862 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2864 2001-05-25 Timothy Wall <twall@redhat.com>
2866 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2867 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2869 2001-05-25 H.J. Lu <hjl@gnu.org>
2871 * bfd-in2.h: Regenerated.
2872 * libcoff.h: Likewise.
2874 2001-05-25 Alan Modra <amodra@one.net.au>
2876 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2877 undefined millicode syms in shared libs.
2878 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2879 (elf32_hppa_check_relocs): Likewise.
2880 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2881 (elf32_hppa_size_dynamic_sections): Likewise.
2882 (elf32_hppa_relocate_section): Likewise.
2883 (elf32_hppa_finish_dynamic_symbol): Likewise.
2884 (elf32_hppa_finish_dynamic_sections): Likewise.
2886 2001-05-24 Tom Rix <trix@redhat.com>
2888 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2889 xcoff-target.h not used to define rs6000 or ppc bfd.
2892 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2895 * coff-rs6000.c : Many changes for 64 bit support. Move common
2896 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2899 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2900 linker now supported. Explictly define the rs6000coff64_vec.
2902 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2903 (coff_print_aux) same
2904 (coff_write_object_contents) same
2905 (coff_slurp_line_table) same
2907 * coffgen.c : (coff_fix_symbol_name) formatting
2908 (coff_mangle_symbols) xcoff 64 bit support
2909 (coff_write_symbol) same
2910 (coff_write_alien_symbol) same
2911 (coff_write_native_symbol) same
2912 (coff_write_symbols) same
2913 (coff_get_symbol_info) same
2914 (bfd_coff_get_syment) same
2915 (coff_print_symbol) same
2917 * config.bfd : add powerpc64-*-aix* target
2919 * libcoff-in.h : formatting
2921 * libcoff.h : move xcoff extern declarations to libxcoff.h
2923 * libxcoff.h : New file
2925 * xcofflink.c : Many changes for xcoff64 support. Move common
2926 structures to include/coff/xcoff.h. Move specific structure to
2927 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2928 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2930 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2933 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2935 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2937 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2940 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2942 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2943 * libbfd.h: Regenerate.
2944 * bfd-in2.h: Regenerate.
2946 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2947 * archures.c (bfd_mach_mips12000): Define.
2948 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2949 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2951 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2952 * bfd-in2.h: Regenerate.
2953 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2955 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2957 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2958 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2959 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2960 that is used by GCC.
2962 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2964 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2965 of entries in a structured section.
2966 * elf.c: Use new macro.
2967 * elf32-i386.c: Use new macro.
2968 * elf32-mips.c: Use new macro.
2969 * elf64-alpha.c: Use new macro.
2970 * elf64-sparc.c: Use new macro.
2971 * elfcode.h: Use new macro.
2972 * elflink.h: Use new macro.
2974 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2976 * bfdint.texi: Replace -oformat with --oformat.
2978 2001-05-21 Andreas Jaeger <aj@suse.de>
2980 * dwarf2.c (decode_line_info): Fix error message.
2981 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2982 adjust error message.
2984 2001-05-18 H.J. Lu <hjl@gnu.org>
2986 * elflink.h (elf_link_add_object_symbols): Revert the last
2989 2001-05-17 Alan Modra <amodra@one.net.au>
2991 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2992 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2993 (hppa_build_one_stub): Add an assert to check plt.offset.
2995 2001-05-17 H.J. Lu <hjl@gnu.org>
2997 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2998 version definition to basename of the output filename.
3000 2001-05-17 H.J. Lu <hjl@gnu.org>
3002 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3003 basename of the bfd filename.
3005 2001-05-16 Alan Modra <amodra@one.net.au>
3007 * section.c (asection): Add linker_has_input field.
3008 (STD_SECTION): Adjust initialization to suit.
3009 * ecoff.c (bfd_debug_section): Likewise.
3010 * bfd-in2.h: Regenerate.
3012 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3014 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3015 negative 32-bit operands to 16 operands when the operand is
3016 going to be zero-extended by the modified opcode.
3018 2001-05-12 Peter Targett <peter.targett@arccores.com>
3020 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3021 name for 'arc5' core versions.
3022 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3024 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3026 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3028 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3030 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3032 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3033 to .gnu.linkonce.t.FOO text section.
3035 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3037 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3038 fields, change sec into secinfo.
3039 (struct sec_merge_info): Add chain, remove last fields.
3040 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3041 (sec_merge_hash_lookup): If lookup could not use a string only
3042 because it has bad alignment, mark the old string for deletion.
3043 (sec_merge_add): Add secinfo argument. Don't compute entry's
3044 position, instead record the section.
3045 (sec_merge_emit): Update for the sec into secinfo change in
3046 struct sec_merge_hash_entry.
3047 (_bfd_merge_section): Only record the section for merging, defer
3048 putting strings into the hash table.
3049 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3050 _bfd_merge_sections): New functions.
3051 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3053 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3054 (_bfd_nolink_bfd_merge_sections): Define.
3055 * libbfd.h: Likewise.
3056 (bfd_generic_merge_sections): Add prototype.
3057 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3058 (struct bfd_target): Likewise.
3059 * bfd.c (bfd_merge_sections): Define.
3060 * bfd-in2.h: Rebuilt.
3061 * elf.c (_bfd_elf_merge_sections): New function.
3062 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3063 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3064 * reloc.c (bfd_generic_merge_sections): New function.
3065 * vms.c (vms_bfd_merge_sections): New function.
3066 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3067 * aout-target.h (MY_bfd_merge_sections): Define.
3068 * aout-tic30.c (MY_bfd_merge_sections): Define.
3069 * binary.c (binary_bfd_merge_sections): Define.
3070 * bout.c (b_out_bfd_merge_sections): Define.
3071 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3072 * coffcode.c (coff_bfd_merge_sections): Define.
3073 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3074 * i386msdos.c (msdos_bfd_merge_sections): Define.
3075 * i386os9k.c (os9k_bfd_merge_sections): Define.
3076 * ieee.c (ieee_bfd_merge_sections): Define.
3077 * ihex.c (ihex_bfd_merge_sections): Define.
3078 * nlm-target.h (nlm_bfd_merge_sections): Define.
3079 * oasys.c (oasys_bfd_merge_sections): Define.
3080 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3081 * som.c (som_bfd_merge_sections): Define.
3082 * srec.c (srec_bfd_merge_sections): Define.
3083 * tekhex.c (tekhex_bfd_merge_sections): Define.
3084 * versados.c (versados_bfd_merge_sections): Define.
3085 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3087 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3089 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3090 to be unsigned long, in order to match its use.
3092 2001-05-10 H.J. Lu <hjl@gnu.org>
3094 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3097 2001-05-09 H.J. Lu <hjl@gnu.org>
3099 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3100 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3101 Remove the unused veriable `dynver'.
3103 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3105 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3106 NULL or is not COFF.
3107 (coff_i386_rtype_to_howto): Don't dump core if output section
3110 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3112 * ecoff.c (bfd_debug_section): Fix initialization.
3113 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3114 is always a positive integer. Cast away sign mismatch.
3115 * elf32-mips.c: Fix misleading comment and typo.
3116 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3118 * elflink.c: Fix typo.
3119 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3120 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3122 2001-05-04 Richard Henderson <rth@redhat.com>
3124 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3126 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3128 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3129 EF_ARM_HASENTRY if the start address is set.
3131 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3133 * targets.c (_bfd_target_vector_entries): Compute value based on
3134 the size of the _bfd_target_vector and not bfd_target_vector.
3136 2001-05-03 H.J. Lu <hjl@gnu.org>
3138 * elfcode.h: Include "libiberty.h".
3140 * elflink.h (elf_link_add_object_symbols): Set
3141 elf_dt_name (abfd) to basename of the bfd filename.
3142 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3143 of the bfd filename.
3145 2001-05-03 Andreas Jaeger <aj@suse.de>
3147 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3148 (elf_generic_info_to_howto_rel): Likewise.
3149 * coff-alpha.c (reloc_nil): Likewise.
3150 (alpha_ecoff_bad_format_hook): Likewise.
3151 (alpha_adjust_reloc_out): Likewise.
3152 (alpha_bfd_reloc_type_lookup): Likewise.
3153 (alpha_convert_external_reloc): Likewise.
3154 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3155 (elf64_alpha_reloc_bad): Likewise.
3156 (elf64_alpha_reloc_gpdisp): Likewise.
3157 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3158 (elf64_alpha_info_to_howto): Likewise.
3159 (elf64_alpha_add_symbol_hook): Likewise.
3160 (elf64_alpha_create_got_section): Likewise.
3161 (elf64_alpha_is_local_label_name): Likewise.
3162 (elf64_alpha_merge_ind_symbols): Likewise.
3163 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3164 (mips_elf64_get_reloc_upper_bound): Likewise.
3165 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3166 (nlm_alpha_get_public_offset): Likewise.
3168 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3170 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3171 about overflow in R_OPENRISC_LO_16_IN_INSN and
3172 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3174 2001-04-30 H.J. Lu <hjl@gnu.org>
3176 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3177 only for ELF_LINK_FORCED_LOCAL.
3178 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3179 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3180 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3182 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3183 if the symbol has hidden or internal visibility.
3185 2001-04-30 Alan Modra <amodra@one.net.au>
3187 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3188 calls to undefined weak symbols.
3190 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3192 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3193 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3195 2001-04-27 Andreas Jaeger <aj@suse.de>
3197 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3198 out handled entries.
3199 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3200 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3201 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3204 2001-04-27 Sean McNeil <sean@mcneil.com>
3206 * config.bfd: Add arm-vxworks target.
3207 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3208 addend (fro VXworks targets).
3210 2001-04-26 H.J. Lu <hjl@gnu.org>
3212 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3215 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3217 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3218 * bfd-in2.h: Regenerated.
3220 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3222 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3223 (struct sec_merge_hash): Remove alignment_power.
3224 (sec_merge_hash_newfunc): Clear alignment.
3225 (sec_merge_hash_lookup): Pass alignment as argument.
3226 Use hashp->root.next, not hashp->next to walk the hash chain.
3227 If a string already in the hashtable does not have required
3228 alignment, create a new hashtable entry.
3229 (sec_merge_init): Remove alignment_power argument.
3230 (sec_merge_add): Add alignment argument.
3231 (sec_merge_emit): Alignment is now a per-entity thing, not per
3233 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3234 for proper alignment.
3235 Pass alignment information to sec_merge_add.
3237 2001-04-24 Christian Groessler <cpg@aladdin.de>
3239 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3240 and R_REL16 reloc types; accept odd values for R_REL16 type
3242 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3244 * cpu-openrisc.c: New file.
3245 * elf32-openrisc.c: Likewise.
3247 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3248 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3249 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3250 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3251 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3252 * Makefile.in: Regenerated.
3253 * config.bfd: (openrisc-*-elf): New target.
3254 * configure.in (bfd_elf32_openrisc_vec): New vector.
3255 * configure: Regenerated.
3256 * libbfd.h: Regenerated.
3257 * bfd-in2.h: Regenerated.
3258 * reloc.c: Add OpenRISC relocations.
3259 * targets.c (bfd_elf32_openrisc_vec): Declare.
3260 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3261 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3262 (bfd_openrisc_arch): Declare.
3263 (bfd_archures_list): Add bfd_openrisc_arch.
3264 * elf.c (prep_headers): Add bfd_arch_openrisc.
3266 2001-04-23 Bo Thorsen <bo@suse.de>
3268 * elf64-x86-64.c: Add c++ vtable hack.
3269 Small whitespace and comment changes.
3271 2001-04-19 Andreas Jaeger <aj@suse.de>
3273 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3274 (elf64_x86_64_plt_entry): Likewise.
3275 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3276 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3278 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3280 * elf32-cris.c: Tweak comments related to dynamic linking.
3281 (cris_elf_relocate_section): When not creating shared object, fill
3282 in the .got table for any symbol not in the dynamic symbol table.
3283 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3284 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3286 (cris_elf_check_relocs): Use variable r_type in all places rather
3287 than the original expression. Add default case in switch for
3289 (elf_cris_size_dynamic_sections): Iterate over
3290 elf_cris_discard_excess_program_dynamics when not creating shared
3292 (elf_cris_discard_excess_dso_dynamics): Renamed from
3293 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3294 (elf_cris_discard_excess_program_dynamics): New.
3296 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3298 * coffcode.h (coff_write_object_contents): Use
3299 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3301 2001-04-14 H.J. Lu <hjl@gnu.org>
3303 * bfd-in2.h: Regenerate.
3305 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3307 * section.c (STD_SECTION): Add entsize.
3309 2001-04-13 H.J. Lu <hjl@gnu.org>
3311 * section.c (SEC_MERGE): Define new flag for merging.
3312 (SEC_STRINGS): Likewise.
3313 (entsize): New field.
3315 2001-04-13 Roger Sayle <roger@metaphorics.com>
3317 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3318 flag on pe-i386 targets.
3320 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3322 * libbfd-in.h (_bfd_merge_section): New.
3323 (_bfd_write_merged_section): New.
3324 (_bfd_merged_section_offset): New.
3325 * libbfd.h: Rebuilt.
3326 * linker.c (_bfd_generic_link_output_symbols): Handle
3328 * aoutx.h (aout_link_write_symbols): Likewise.
3329 * pdp11.c (aout_link_write_symbols): Likewise.
3330 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3331 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3333 (elf_link_sec_merge_syms): New.
3334 (elf_link_input_bfd): Call _bfd_merged_section_offset
3335 and _bfd_write_merged_section.
3336 Handle discard_sec_merge.
3337 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3339 (struct bfd_elf_section_data): Likewise.
3340 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3341 SEC_STRINGS section flags and entsize from their ELF counterparts.
3342 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3343 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3344 from their BFD counterparts.
3345 * merge.c: New file.
3346 * Makefile.am: Add strtab.lo.
3347 * Makefile.in: Rebuilt.
3349 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3351 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3352 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3354 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3356 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3357 endian MIPS ELF target.
3358 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3361 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3362 64bit big endian MIPS ELF target.
3363 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3364 endian MIPS ELF target.
3365 * configure: Regenerated.
3367 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3368 little endian targets.
3369 (mips_elf_sym_is_global): Handle traditional targets.
3371 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3372 64bit big endian MIPS ELF target.
3373 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3374 endian MIPS ELF target.
3376 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3377 and bfd_elf64_tradlittlemips_vec.
3379 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3381 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3382 ordinary "progbits" section.
3384 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3386 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3387 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3389 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3391 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3393 2001-03-30 H.J. Lu <hjl@gnu.org>
3395 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3396 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3398 2001-03-26 H.J. Lu <hjl@gnu.org>
3400 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3401 if there are any relocations for generic ELF.
3402 (bfd_elf32_bfd_link_add_symbols): Defined to
3403 elf32_generic_link_add_symbols.
3404 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3405 if there are any relocations for generic ELF.
3406 (bfd_elf64_bfd_link_add_symbols): Defined to
3407 elf64_generic_link_add_symbols.
3409 2001-03-23 Nick Clifton <nickc@redhat.com>
3411 * Makefile.am (BUILD_CFILES): New variable: List of C source
3412 files created in build directory.
3413 (BUILD_HFILES): New variable: List of header files created in
3416 (po/POTFILES.in): Replace rule with empty entry.
3417 (po/SRC-POTFILES.in): New rule: Create a list of source files
3418 in the source directory.
3419 (po/BLD-POTFILES.in): New rule: Create a list of source files
3420 in the build directory.
3421 (MOSTLYCLEAN): Do not delete source files created in build
3423 * Makefile.in: Regenerate.
3424 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3426 * configure: Regenerate.
3428 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3430 Add .. to the search path when building bfd.pot.
3431 Delete POTFILES when performing distclean.
3432 Add comment describing why distclean is broken in maintainer mode.
3433 * po/POTFILES.in: Delete.
3434 * po/SRC-POTFILES.in: New file.
3435 * po/BLD-POTFILES.in: New file.
3436 * po/bfd.pot: Regenerate.
3438 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3440 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3441 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3442 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3443 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3444 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3445 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3447 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3448 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3449 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3450 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3451 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3452 New HOWTO members for new relocs.
3453 (cris_reloc_map): Map new relocs.
3454 (ELF_DYNAMIC_INTERPRETER): Define.
3455 (PLT_ENTRY_SIZE): Define.
3456 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3457 elf_cris_pic_plt_entry): New, PLT templates.
3458 (struct elf_cris_pcrel_relocs_copied, struct
3459 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3460 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3461 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3462 positive values. Adjust PCREL relocs to be relative to location
3464 (cris_elf_relocate_section): Handle relocations to dynamic
3465 objects. Handle new relocations. Call error handler when seeing
3466 non-PIC relocation for read-only sections while generating shared
3468 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3470 (bfd_elf32_bfd_link_hash_table_create,
3471 elf_backend_adjust_dynamic_symbol,
3472 elf_backend_size_dynamic_sections,
3473 elf_backend_finish_dynamic_symbol,
3474 elf_backend_finish_dynamic_sections,
3475 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3476 elf_backend_hide_symbol, elf_backend_want_got_plt,
3477 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3478 elf_backend_got_header_size, elf_backend_plt_header_size):
3481 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3482 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3483 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3484 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3485 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3486 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3487 * bfd-in2.h, libbfd.h: Regenerate.
3489 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3491 (_bfd_mips_elf_relocate_section): Give a better error message when
3492 a relocation is not recognized.
3494 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3496 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3497 non-NULL before attempting to dereference.
3499 2001-03-20 H.J. Lu <hjl@gnu.org>
3501 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3502 * configure: Rebuild.
3504 2001-03-20 Andreas Schwab <schwab@suse.de>
3506 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3507 relocation value when resolving a reference from a debugging
3510 2001-03-16 Scott Thomason <SThomaso@hii.com>
3512 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3513 (xcoff64_swap_sym_out): Fix syntax errors.
3515 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3517 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3519 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3521 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3522 (hppa_link_hash_newfunc): Init it.
3523 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3524 section appears to be non-PIC.
3525 (final_link_relocate): Likewise.
3526 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3527 possible candidate function, and set pic_call for those that will
3528 only have a .plt entry for the PIC call stub.
3529 (hppa_handle_PIC_calls): Set maybe_pic_call.
3531 2001-03-12 DJ Delorie <dj@redhat.com>
3533 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3534 R_SH_DIR8WP* relocs if they're against external symbols, else
3535 they're just for relaxing. Validate the reloc values.
3537 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3539 * binary.c (bfd_external_binary_architecture): Declare.
3540 (binary_object_p): If bfd_external_binary_architecture is defined,
3541 set the architecture to this string.
3543 2001-03-11 Philip Blundell <philb@gnu.org>
3545 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3546 entries that could serve as a definition for a weak symbol.
3548 2001-03-08 Nick Clifton <nickc@redhat.com>
3550 * Most files: Update copyright notices using Perl script created
3551 by Kevin Buettner <kevinb@redhat.com>.
3553 2001-03-07 Nick Clifton <nickc@redhat.com>
3555 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3556 prior patch on ! defined OLD_ARM_ABI.
3558 2001-03-07 Andreas Jaeger <aj@suse.de>
3560 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3561 some relocation values.
3563 2001-03-06 Nick Clifton <nickc@redhat.com>
3565 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3566 of offset in BLX(1) instruction.
3567 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3568 offset in BLX(1) instruction.
3571 2001-03-06 Nick Clifton <nickc@redhat.com>
3573 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3574 BFD_RELOC_THUMB_PCREL_BLX.
3576 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3578 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3579 * bfd-in2.h: Regenerate.
3580 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3581 * ieee.c (ieee_write_processor): Set proper id for
3584 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3586 * configure.in: Add s390 target.
3587 * configure: Regenerate.
3589 2001-02-28 Andreas Jaeger <aj@suse.de>
3591 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3594 2001-02-28 Philip Blundell <pb@futuretv.com>
3596 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3597 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3599 2001-02-27 H.J. Lu <hjl@gnu.org>
3601 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3602 abfd->tdata.aout_data == NULL.
3604 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3606 * elf32-hppa.c: Correct field selector in stub comments.
3607 (clobber_millicode_symbols): Formatting fix.
3609 * configure.in: Bump version to 2.11.90.
3610 * configure: Regenerate.
3611 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3612 (CFILES): $SOURCE_CFILES + generated C files.
3613 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3615 * Makefile.in: Regenerate.
3616 * doc/Makefile.in: This too.
3618 2001-02-26 Timothy Wall <twall@cygnus.com>
3620 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3623 2001-02-26 Nick Clifton <nickc@redhat.com>
3625 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3626 up, replacing multiple if statements with a switch.
3627 (handle_COMDAT): New function.
3629 2001-02-26 H.J. Lu <hjl@gnu.org>
3631 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3632 a warning for section flags we do not handle instead of
3635 2001-02-26 Andreas Jaeger <aj@suse.de>
3637 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3639 2001-02-22 Timothy Wall <twall@cygnus.com>
3641 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3642 * configure.in: Add objects for elf64_ia64_aix vectors.
3643 * configure: Regenerated.
3644 * configure.host: Recognize ia64-*-aix*.
3645 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3646 for AIX. AIX5 requires most relocations to be dynamic (*all*
3647 binaries are somewhat similar to shared libraries).
3648 * targets.c: Add elf64_ia64_aix vectors.
3650 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3652 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3653 C8 said "1" instead of "8". Clarify error string for IMM22:
3654 "signed integer" instead of just "integer".
3656 2001-02-20 Andreas Jaeger <aj@suse.de>
3658 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3659 PLT entries that could serve as a definition for a weak symbol.
3661 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3663 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3664 entries that could serve as a definition for a weak symbol.
3665 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3667 2001-02-18 David O'Brien <obrien@FreeBSD>
3669 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3670 FreeBSD/i386-CURRENT differently until I can figure out the needed
3672 * configure: Regenerate.
3673 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3674 FreeBSD/PowerPC, and FreeBSD/sparc64.
3676 2001-02-18 lars brinkhoff <lars@nocrew.org>
3678 * Makefile.am: Add PDP-11 a.out target.
3679 * config.bfd: Likewise.
3680 * configure.in: Likewise.
3681 * targets.c: Likewise.
3682 * archures.c: Likewise.
3683 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3684 * libbfd.h: Add PDP-11 relocations.
3685 * reloc.c: Likewise.
3686 * cpu-pdp11.c: New file.
3687 * pdp11.c: New file.
3689 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3690 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3691 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3692 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3693 (GET_MAGIC): New macro.
3694 (PUT_MAGIC): Likewise.
3695 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3697 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3699 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3700 multiarch needs it).
3702 2001-02-18 H.J. Lu <hjl@gnu.org>
3704 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3707 2001-02-18 Kazu Hirata <kazu@hxi.com>
3709 * vms-misc.c: Fix formatting.
3711 2001-02-16 Kazu Hirata <kazu@hxi.com>
3713 * vms.c: Fix formatting.
3715 2001-02-14 H.J. Lu <hjl@gnu.org>
3717 * elf.c (elf_find_function): New function.
3718 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3719 the file name and function name.
3721 2001-02-14 Nick Clifton <nickc@redhat.com>
3723 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3726 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3727 (BFD64_BACKENDS): Add pepigen.c
3728 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3730 * Makefile.in: Regenerate.
3731 * configure: Regenerate.
3732 * po/POTFILES.in: Regenerate.
3733 * po/bfd.pot: Regenerate.
3735 2001-02-14 H.J. Lu <hjl@gnu.org>
3737 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3738 force_minimum_alignment.
3740 2001-02-14 Bo Thorsen <bo@suse.de>
3742 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3743 (elf64_86_64_size_info): Struct added to fix a problem
3744 with the hashtable string entries.
3745 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3746 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3747 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3748 remove the FIXME for this.
3749 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3750 section. Also removed the FIXME for it.
3751 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3752 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3753 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3755 2001-02-13 Richard Henderson <rth@redhat.com>
3757 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3758 and not user provided.
3760 2001-02-13 Kazu Hirata <kazu@hxi.com>
3762 * vms.c (vms_print_symbol): Remove unreachable code.
3764 * rs6000-core.c: Fix formatting.
3766 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3768 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3769 as _bfd_XXi_only_swap_filehdr_out.
3770 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3771 pe->force_minimum_alignment to TRUE.
3772 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3773 PEI_TARGET_SUBSYSTEM.
3774 (pe_print_private_bfd_data): Call
3775 _bfd_XX_print_private_bfd_data_common() instead of
3776 _bfd_pe_print_private_bfd_data_common().
3777 (pe_bfd_copy_private_bfd_data): Call
3778 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3779 _bfd_pe_bfd_copy_private_bfd_data_common().
3780 (coff_bfd_copy_private_section_data): Define as
3781 _bfd_XX_bfd_copy_private_section_data instead of
3782 _bfd_pe_bfd_copy_private_section_data.
3783 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3784 of a _bfd_pe_get_symbol_info.
3788 * peXXigen.c: Renamed from peigen.c.
3789 (COFF_WITH_XX): Define this macro (will get expanded into
3790 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3791 compiled as peigen.c or pepigen.c.
3792 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3793 define the canonical PEP structures and definitions.
3794 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3795 effect, enforce minimum file and section alignments. If
3796 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3797 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3798 so, by default, this is a no-op).
3800 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3801 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3802 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3803 _bfd_pefoo if it's not defined. Use these macros to define
3806 * libcoff.h (pe_tdata): Add members target_subsystem and
3807 force_minimum_alignment.
3809 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3811 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3813 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3816 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3817 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3820 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3821 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3822 (peigen.c): Add rule to generate from peXXigen.c.
3824 (pepigen.lo): List dependencies for pepigen.lo.
3826 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3828 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3829 $global$ referenced but not defined, set its value here.
3831 2001-02-09 Bo Thorsen <bo@suse.de>
3833 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3835 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3837 (elf64_x86_64_relocate_section): Fix formatting.
3838 (elf64_x86_64_relocate_section): Fix addend for relocation of
3839 R_X86_64_(8|16|32|PC8|PC16|PC32).
3841 2001-02-12 Jan Hubicka <jh@suse.cz>
3843 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3845 2001-02-11 H.J. Lu <hjl@gnu.org>
3847 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3850 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3852 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3853 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3854 relocations against dynsym symbols.
3856 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3857 the R_MIPS_26 relocation.
3858 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3859 the R_MIPS_26 relocation.
3860 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3862 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3863 the R_MIPS_26 relocation.
3864 (mips_elf64_howto_table_rela): Likewise.
3866 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3867 member to mark symbols that have non-CALL relocations against
3869 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3870 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3872 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3873 non-CALL relocation against it is encountered.
3874 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3875 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3876 no_fn_stub is not set.
3878 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3879 information from the real symbol for indirect ones.
3880 Check no_fn_stub to find out if a symbol has a function stub
3883 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3885 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3886 * Makefile.in: Regenerate.
3888 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3890 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3891 true if section name is an unwind table section name.
3892 (elfNN_ia64_additional_program_headers): Count each unwind section
3894 (elfNN_ia64_modify_segment_map): Install one unwind program header
3895 for each unwind separate section. Note: normally the linker
3896 script merges the unwind sections that go into a single segment,
3897 so this still generates at most one unwind program header per
3900 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3901 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3902 (elfNN_ia64_fake_sections): Mark sections with names that start
3903 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3906 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3907 Use it to make sh_info in unwind section point to the text section
3910 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3912 * Makefile.am: Add linux target for S/390.
3913 * archures.c: Likewise.
3914 * bfd-in2.h: Likewise.
3915 * config.bfd: Likewise.
3916 * configure.in: Likewise.
3918 * libbfd.h: Likewise.
3919 * targets.c: Likewise.
3920 * cpu-s390.c: New file.
3921 * elf32-s390.c: New file.
3922 * elf64-s390.c: New file.
3924 2001-02-09 Nick Clifton <nickc@redhat.com>
3926 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3927 ImageBase. This has already been done by coff_swap_hdr_in.
3929 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3931 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3933 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3935 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3936 (sparc64_elf_relocate_section): Likewise.
3938 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3940 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3941 similar to R_SPARC_32.
3942 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3944 2001-02-08 H.J. Lu <hjl@gnu.org>
3946 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3947 relocation entries for weak definitions when building DSO with
3950 2001-02-08 Richard Henderson <rth@redhat.com>
3952 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3953 before visibility. Locally defined protected symbols are not
3956 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3958 * config.bfd: Enable coff64 for rs6000-*. Patch from
3959 <hzoli@austin.ibm.com>.
3961 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3963 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3964 found, do not attempt to find dwarf2 info before returning.
3966 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3968 * elflink.h (is_global_symbol_definition): Rename to
3969 is_global_data_symbol_definition and have it reject function
3971 (elf_link_is_defined_archive_symbol): Use renamed function.
3973 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3975 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3976 * libbfd.h (bfd_target_vector): Likewise.
3977 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3978 make static; create pointer reference named bfd_target_vector.
3979 (_bfd_target_vector_entries): Calculate this based on the array
3980 typed _bfd_target_vector.
3982 2001-02-06 H.J. Lu <hjl@gnu.org>
3984 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3985 internal symbols are not dynamic.
3986 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3988 2001-02-06 Nick Clifton <nickc@redhat.com>
3990 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3991 that it will not be pulled into the list of files that make up
3993 * Makefile.in: Regenerate.
3994 * po/bfd.pot: Regenerate.
3996 2001-02-06 H.J. Lu <hjl@gnu.org>
3998 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4000 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4001 external_PEI_IMAGE_hdr.
4003 2001-02-06 Kazu Hirata <kazu@hxi.com>
4005 * elf-m10200.c: Fix formatting.
4007 2001-02-04 Nick Clifton <nickc@redhat.com>
4009 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4010 rel, it will be handled later on.
4012 2001-02-02 Fred Fish <fnf@ninemoons.com>
4014 * Makefile.in: Fix typo.
4016 2001-02-01 Kazu Hirata <kazu@hxi.com>
4018 * elf-m10300.c: Fix formatting.
4020 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4022 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4023 (elf_backend_get_symbol_type): Define.
4024 (elf64_hppa_object_p): Set architecture and machine from elf
4027 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4029 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4032 2001-01-26 Richard Henderson <rth@redhat.com>
4034 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4035 for non-default visibility.
4036 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4037 delete ugly macro and replace with pretty function.
4039 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4041 * coff-go32.c: Update copyright.
4042 * coff-stgo32.c: Likewise.
4043 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4044 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4045 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4046 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4048 2001-01-25 Kazu Hirata <kazu@hxi.com>
4050 * bfd-in2.h: Rebuild.
4051 * libbfd.h: Likewise.
4053 2001-01-23 H.J. Lu <hjl@gnu.org>
4055 * bfd-in2.h: Rebuild.
4057 2001-01-23 H.J. Lu <hjl@gnu.org>
4059 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4060 is NULL or PRIV(vms_rec) is outside of the buffer.
4062 2001-01-23 Kazu Hirata <kazu@hxi.com>
4064 * coff64-rs6000.c: Fix formatting.
4065 * coff-arm.c: Likewise.
4066 * coffgen.c: Likewise.
4067 * cofflink.c: Likewise.
4068 * coff-mcore.c: Likewise.
4069 * coff-mips.c: Likewise.
4070 * coff-pmac.c: Likewise.
4071 * coff-ppc.c: Likewise.
4072 * coff-rs6000.c: Likewise.
4073 * elf32.c: Likewise.
4074 * elf32-fr30.c: Likewise.
4075 * elf32-i370.c: Likewise.
4076 * elf32-i860.c: Likewise.
4077 * elf32-m32r.c: Likewise.
4078 * elf32-m68k.c: Likewise.
4079 * elf32-mcore.c: Likewise.
4080 * elf32-ppc.c: Likewise.
4081 * elf32-sh.c: Likewise.
4082 * elf32-v850.c: Likewise.
4083 * elf64-alpha.c: Likewise.
4084 * elf64-sparc.c: Likewise.
4085 * elflink.c: Likewise.
4086 * elflink.h: Likewise.
4087 * elf-m10200.c: Likewise.
4088 * elf-m10300.c: Likewise.
4089 * elfxx-ia64.c: Likewise.
4091 * aoutx.h: Fix formatting.
4093 * bfd-in2.h: Likewise.
4094 * bfd-in.h: Likewise.
4095 * cpu-i386.c: Likewise.
4096 * cpu-m68hc11.c: Likewise.
4097 * dwarf2.c: Likewise.
4098 * elf64-x86-64.c: Likewise.
4099 * format.c: Likewise.
4100 * freebsd.h: Likewise.
4102 * hp300hpux.c: Likewise.
4103 * hppabsd-core.c: Likewise.
4104 * hpux-core.c: Likewise.
4106 2001-01-22 Bo Thorsen <bo@suse.de>
4108 * elf64-x86-64.c: Added PIC support for X86-64.
4109 (elf64_x86_64_link_hash_newfunc): Function added.
4110 (elf64_x86_64_link_hash_table_create): Likewise.
4111 (elf64_x86_64_check_relocs): Likewise.
4112 (elf64_x86_64_gc_mark_hook): Likewise.
4113 (elf64_x86_64_gc_sweep_hook): Likewise.
4114 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4115 (elf64_x86_64_size_dynamic_sections): Likewise.
4116 (elf64_x86_64_discard_copies): Likewise.
4117 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4118 (elf64_x86_64_finish_dynamic_sections): Likewise.
4119 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4121 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4123 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4124 * Makefile.in: Regenerate.
4126 2001-01-21 Kazu Hirata <kazu@hxi.com>
4128 * coff-a29k.c: Fix formatting.
4130 2001-01-19 H.J. Lu <hjl@gnu.org>
4132 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4133 relocation section names.
4134 (elf_i386_relocate_section): Report files with bad relocation
4135 section names and return false.
4137 2001-01-17 Bo Thorsen <bo@suse.de>
4139 * targets.c: Alphabetize list of xvecs.
4141 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4143 * config.bfd: Add linux target variant for elfxx-hppa.
4144 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4145 bfd_elf64_hppa_linux_vec.
4146 * configure: Regenerate.
4147 * elf64-hppa.c: Include elf64-target.h again to support linux
4149 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4150 * elf32-hppa.c: Include elf32-target.h again to support linux
4152 (elf32_hppa_post_process_headers): New function.
4153 (elf_backend_post_process_headers): Define.
4154 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4155 bfd_elf32_hppa_linux_vec.
4157 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4158 and data_segment_base fields.
4159 (elf32_hppa_link_hash_table_create ): Init them.
4160 (elf32_hppa_check_relocs): Update comments.
4161 (hppa_record_segment_addr): New function.
4162 (elf32_hppa_relocate_section): Call it.
4163 (final_link_relocate): Handle R_PARISC_SEGREL32.
4164 (elf32_hppa_final_link): New function.
4165 (bfd_elf32_bfd_final_link): Define to call it.
4166 (hppa_unwind_entry_compare): New function.
4167 * cache.c (bfd_open_file): Create files in write+read mode.
4169 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4170 SEGREL32 and numerous other relocs. Change duplicate
4171 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4173 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4176 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4177 .plt entries for DT_INIT and DT_FINI.
4178 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4179 DT_INIT and DT_FINI.
4181 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4182 offsets for stub .plt access if wide mode. Check offset in range.
4184 2001-01-13 Nick Clifton <nickc@redhat.com>
4186 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4189 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4192 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4194 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4195 * configure: Regenerate.
4197 2001-01-11 Peter Targett <peter.targett@arccores.com>
4199 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4200 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4201 * cpu-arc.c (arch_info_struct): Add entries for variants.
4202 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4203 (arc_get_mach) Don't assume machine names prefixed arc- before
4205 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4207 (arc_elf_final_write_processing) Likewise.
4208 (ELF_MACHINE_CODE) Use EM_ARC.
4210 2001-01-10 Nick Clifton <nickc@redhat.com>
4212 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4214 2001-01-07 Philip Blundell <philb@gnu.org>
4216 * README: Replace `bug-gnu-utils@gnu.org' with
4217 `bug-binutils@gnu.org'.
4219 2001-01-04 Kazu Hirata <kazu@hxi.com>
4221 * som.c: Fix formatting.
4223 2001-01-03 Kazu Hirata <kazu@hxi.com>
4225 * ecoffswap.h: Fix formatting.
4226 * elf-bfd.h: Likewise.
4227 * elfarm-nabi.c: Likewise.
4228 * elfarm-oabi.c: Likewise.
4229 * elfcode.h: Likewise.
4230 * elfcore.h: Likewise.
4231 * elflink.c: Likewise.
4232 * elflink.h: Likewise.
4233 * elfxx-ia64.c: Likewise.
4234 * elfxx-target.h: Likewise.
4235 * libbfd.c: Likewise
4236 * linker.c: Likewise.
4237 * lynx-core.c: Likewise.
4239 2001-01-02 Kazu Hirata <kazu@hxi.com>
4241 * pc532-mach.c: Fix formatting.
4242 * pe-arm.c: Likewise.
4243 * pe-i386.c: Likewise.
4244 * pe-mips.c: Likewise.
4245 * pe-ppc.c: Likewise.
4246 * pe-sh.c: Likewise.
4247 * pei-mips.c: Likewise.
4248 * pei-sh.c: Likewise.
4249 * peicode.h: Likewise.
4250 * ppcboot.c: Likewise.
4251 * ptrace-core.c: Likewise.
4253 2001-01-01 Kazu Hirata <kazu@hxi.com>
4255 * reloc.c: Fix formatting.
4256 * riscix.c: Likewise.
4257 * rs6000-core.c: Likewise.
4258 * xcoff-target.h: Likewise.
4260 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4262 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4263 error, by calling bfd_default_set_arch_mach with incoming
4266 2000-12-26 Kazu Hirata <kazu@hxi.com>
4268 * vaxnetbsd.c: Fix formatting.
4269 * versados.c: Likewise.
4270 * vms-gsd.c: Likewise.
4271 * vms-hdr.c: Likewise.
4272 * vms-misc.c: Likewise.
4274 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4276 * archive.c (coff_write_armap): Don't write more than symbol_count
4277 `archive_member_file_ptr's.
4279 2000-12-25 Kazu Hirata <kazu@hxi.com>
4281 * vms-tir.c: Fix formatting.
4283 2000-12-23 Kazu Hirata <kazu@hxi.com>
4285 * vms.c: Fix formatting.
4288 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4290 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4292 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4294 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4297 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4299 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4301 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4303 * libbfd.c (bfd_get_bits): Added
4304 (bfd_put_bits): Likewise
4305 * bfd-in.h: Declared the above.
4306 * bfd-in2.h: Regenerated.
4308 2000-12-20 Kazu Hirata <kazu@hxi.com>
4310 * targets.c: Fix formatting.
4311 * tekhex.c: Likewise.
4312 * trad-core.c: Likewise.
4314 2000-12-19 Kazu Hirata <kazu@hxi.com>
4316 * sco5-core.c: Fix formatting.
4317 * section.c: Likewise.
4318 * sparclinux.c: Likewise.
4319 * sparclynx.c: Likewise.
4320 * sparcnetbsd.c: Likewise.
4322 * stabs.c: Likewise.
4323 * stab-syms.c: Likewise.
4324 * sunos.c: Likewise.
4326 * sysdep.h: Likewise.
4328 2000-12-18 Nick Clifton <nickc@redhat.com>
4330 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4332 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4333 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4335 2000-12-18 Nick Clifton <nickc@redhat.com>
4337 * vms-misc.c (_bfd_vms_get_record): Add default case to
4340 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4342 * elfcore.h (elf_core_file_p): Move to the start of the program
4343 headers before attempting to read them.
4345 2000-12-14 Kazu Hirata <kazu@hxi.com>
4347 * peigen.c: Fix formatting.
4351 2000-12-13 Kazu Hirata <kazu@hxi.com>
4353 * peigen.c: Fix formatting.
4355 2000-12-12 Jim Wilson <wilson@redhat.com>
4357 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4359 2000-12-08 Mark Salter <msalter@redhat.com>
4361 * binary.c (binary_set_section_contents): Ignore sections
4364 2000-12-12 Kazu Hirata <kazu@hxi.com>
4366 * m68klinux.c: Fix formatting.
4367 * m68knetbsd.c: Likewise.
4368 * mipsbsd.c: Likewise.
4369 * netbsd-core.c: Likewise.
4370 * netbsd.h: Likewise.
4371 * newsos3.c: Likewise.
4372 * nlm32-alpha.c: Likewise.
4373 * nlm32-i386.c: Likewise.
4374 * nlm32-ppc.c: Likewise.
4375 * nlm32-sparc.c: Likewise.
4376 * nlmcode.h: Likewise.
4377 * nlmswap.h: Likewise.
4378 * nlm-target.h: Likewise.
4379 * ns32knetbsd.c: Likewise.
4381 2000-12-10 Fred Fish <fnf@be.com>
4383 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4384 symbols in shared objects if allow_shlib_undefined is true.
4386 2000-12-12 Nick Clifton <nickc@redhat.com>
4388 * cpu-sh.c: Fix formattng.
4389 * elf.c: Fix formattng.
4390 * elf32-mips.c: Fix formattng.
4391 * elf32-sh.c: Fix formattng.
4392 * elf64-alpha.c: Fix formattng.
4394 2000-12-09 Nick Clifton <nickc@redhat.com>
4396 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4397 dwarf2_find_line_info as last parameter to invocation of
4398 _bfd_dwarf2_find_nearest_line.
4399 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4400 dwarf2_find_line_info as last parameter to invocation of
4401 _bfd_dwarf2_find_nearest_line.
4403 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4405 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4406 (BFD_LIBS): ...to here.
4407 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4408 (BFD_LIBS_CFILES): ...to here.
4409 * Makefile.in: Regenerate.
4410 * configure.in: Remove dwarf.lo from the elf shell variable.
4411 * configure: Regenerate.
4412 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4413 * libcoff.h: Regenerate.
4414 * coffgen.c (coff_find_nearest_line): Call
4415 _bfd_dwarf2_find_nearest_line.
4416 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4418 (read_abbrevs): Likewise
4419 (decode_line_info): Likewise.
4420 (parse_comp_unit): Likewise.
4421 (comp_unit_find_nearest_line): Likewise.
4422 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4423 * libbfd.h: Regenerate.
4424 * elf.c (_bfd_elf_find_nearest_line): Update call.
4425 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4426 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4427 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4428 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4429 (styp_to_sec_flags): Handle DWARF2 sections.
4430 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4431 to _bfd_find_nearest_line.
4432 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4433 call to _bfd_find_nearest_line.
4435 2000-12-08 Kazu Hirata <kazu@hxi.com>
4437 * coffgen.c: Fix formatting.
4438 * elf-m10300.c: Likewise.
4439 * elf32-i386.c: Likewise.
4440 * elf32-i960.c: Likewise.
4441 * elf32-m68k.c: Likewise.
4442 * elf32-mcore.c: Likewise.
4443 * elf32-ppc.c: Likewise.
4444 * elf32-sh.c: Likewise.
4445 * elf32-sparc.c: Likewise.
4446 * elf32-v850.c: Likewise.
4447 * elf64-alpha.c: Likewise.
4448 * elf64-hppa.c: Likewise.
4449 * elf64-mips.c: Likewise.
4450 * elf64-sparc.c: Likewise.
4452 2000-12-07 Kazu Hirata <kazu@hxi.com>
4454 * elf32-ppc.c: Fix formatting.
4455 * elf64-x86-64.c: Likewise.
4457 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4459 From Ralf Baechle <ralf@gnu.org>
4461 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4462 BFDs containing no sections or empty .text, .data or .bss sections
4463 to be merged, regardless of their flags.
4465 2000-12-06 Kazu Hirata <kazu@hxi.com>
4467 * elf32-m32r.c: Fix formatting.
4468 * elf32-m68hc11.c: Likewise.
4469 * elf32-m68hc12.c: Likewise.
4470 * elf32-m68k.c: Likewise.
4471 * elf32-mcore.c: Likewise.
4472 * elf32-pj.c: Likewise.
4473 * elf32-ppc.c: Likewise.
4475 2000-12-05 Kazu Hirata <kazu@hxi.com>
4477 * elf32-fr30.c: Fix formatting.
4478 * elf32-hppa.c: Likewise.
4479 * elf32-i370.c: Likewise.
4480 * elf32-i386.c: Likewise.
4481 * elf32-i860.c: Likewise.
4482 * elf32-i960.c: Likewise.
4484 2000-12-03 Kazu Hirata <kazu@hxi.com>
4486 * elf32-arm.h: Fix formatting.
4487 * elf32-avr.c: Likewise.
4488 * elf32-cris.c: Likewise.
4489 * elf32-d10v.c: Likewise.
4490 * elf32-d30v.c: Likewise.
4491 * elf-hppa.h: Likewise.
4492 * elf-m10200.c: Likewise.
4493 * elf-m10300.c: Likewise.
4495 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4497 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4498 bfd_mach_mips32_4k. Update FIXME comment.
4499 * archures.c (bfd_mach_mips32): New constant.
4500 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4501 the latter, renumber it.
4502 * bfd-in2.h (bfd_mach_mips32): New constant.
4503 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4504 the latter, renumber it.
4505 * cpu-mips.c (I_mips32): New constant.
4506 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4507 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4508 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4509 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4510 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4511 with E_MIPS_MACH_MIPS32_4K.
4512 (_bfd_mips_elf_final_write_processing): Replace
4513 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4514 bfd_mach_mips32 case.
4515 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4516 comparison with support for MIPS32.
4517 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4520 * aoutx.h (NAME(aout,machine_type)): Add cases for
4521 bfd_mach_mips5 and bfd_mach_mips64.
4522 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4523 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4524 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4525 (arch_info_struct): Add entries for bfd_mach_mips5 and
4527 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4528 _bfd_mips_elf_print_private_bfd_data): Add cases for
4529 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4530 (_bfd_mips_elf_final_write_processing): Add cases for
4531 bfd_mach_mips5 and bfd_mach_mips64.
4533 * aoutx.h (NAME(aout,machine_type)): Add a
4534 bfd_mach_mips_sb1 case.
4535 * archures.c (bfd_mach_mips_sb1): New constant.
4536 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4537 * cpu-mips.c (I_sb1): New constant.
4538 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4539 * elf32-mips.c (elf_mips_mach): Add case for
4541 (_bfd_mips_elf_final_write_processing): Add case for
4544 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4546 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4547 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4548 (sparc*-*-rtems*): Switched from a.out to ELF.
4550 2000-11-30 Jan Hubicka <jh@suse.cz>
4552 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4553 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4554 (elf64-x86-64.lo): Add dependencies.
4555 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4556 bfd_mach_x86_64_intel_syntax.
4557 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4558 * config.bfd (x86_64): Add.
4559 * configure.in: Add support for bfd_elf64_x86_64_vec.
4560 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4561 (bfd_i386_arch, i8086_ar): Link in.
4562 * elf64-x86-64.c: New file.
4563 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4564 * targets.c (bfd_elf64_x86_64_vec): Add.
4565 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4567 2000-11-30 Kazu Hirata <kazu@hxi.com>
4569 * xcofflink.c: Fix formatting.
4571 2000-11-28 Kazu Hirata <kazu@hxi.com>
4573 * aoutx.h: Fix formatting.
4574 * bfd-in.h: Likewise.
4575 * bfd-in2.h: Likewise.
4576 * cache.c: Likewise.
4577 * cisco-core.c: Likewise.
4578 * coff64-rs6000.c: Likewise.
4579 * coffcode.h: Likewise.
4580 * coffswap.h: Likewise.
4581 * corefile.c: Likewise.
4582 * elf32-mips.c: Likewise.
4584 2000-11-27 Kazu Hirata <kazu@hxi.com>
4586 * aout-adobe.c: Fix formatting.
4587 * coff64-rs6000.c: Likewise.
4588 * coffgen.c: Likewise.
4589 * cofflink.c: Likewise.
4591 2000-11-27 Philip Blundell <pb@futuretv.com>
4593 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4594 (obj_coff_strings_written): New accessor macro for above.
4595 * libcoff.h: Regenerate.
4596 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4598 * coffcode.h (coff_write_object_contents): No need to write out
4599 the string table if it's already been done.
4601 2000-11-22 Philip Blundell <pb@futuretv.com>
4603 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4604 weak undefined symbols.
4606 2000-11-24 Nick Clifton <nickc@redhat.com>
4608 * archures.c (bfd_mach_arm_5TE): Define.
4609 (bfd_mach_arm+XScale): Define.
4610 * bfd-in2.h: Regenerate.
4612 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4613 BFD_RELOC_ARM_PCREL_BLX.
4615 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4616 XScale machine numbers.
4618 * config.bfd (xscale-elf): Add target.
4619 (xscale-coff): Add target.
4621 * cpu-arm.c: Add xscale machine name.
4622 Add v5t, v5te and XScale machine numbers.
4624 2000-11-23 Kazu Hirata <kazu@hxi.com>
4626 * aix386-core.c: Fix formatting.
4628 2000-11-22 Jim Wilson <wilson@redhat.com>
4630 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4631 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4632 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4633 (ins_imms_scaled): Initialize sign_bit at function entry.
4634 (elf64_ia64_operands): Add missing initializers.
4635 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4636 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4637 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4638 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4639 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4641 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4642 and free_extsyms at function entry.
4643 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4644 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4645 (get_got): Delete unused local srel.
4646 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4647 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4649 2000-11-21 Kazu Hirata <kazu@hxi.com>
4651 * coff-a29k.c: Fix formatting.
4652 * coff-h8500.c: Likewise.
4653 * coff-i960.c: Likewise.
4654 * coff-ppc.c: Likewise.
4655 * coff-rs6000.c: Likewise.
4656 * coff-stgo32.c: Likewise.
4657 * coff-tic54x.c: Likewise.
4658 * coff-w65.c: Likewise.
4659 * cpu-h8500.c: Likewise.
4660 * cpu-hppa.c: Likewise.
4661 * cpu-ns32k.c: Likewise.
4662 * ecoff.c: Likewise.
4663 * ecofflink.c: Likewise.
4665 2000-11-21 Nick Clifton <nickc@redhat.com>
4667 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4668 remove possibility of infinite loop.
4670 2000-11-20 Kazu Hirata <kazu@hxi.com>
4672 * aix386-core.c: Fix formatting.
4673 * aout-adobe.c: Likewise.
4674 * aout-arm.c: Likewise.
4675 * aout-encap.c: Likewise.
4676 * aout-ns32k.c: Likewise.
4677 * aout-target.h: Likewise.
4678 * aout-tic30.c: Likewise.
4679 * aoutf1.h: Likewise.
4680 * aoutx.h: Likewise.
4681 * archive.c: Likewise.
4682 * bfd-in.h: Likewise.
4683 * bfd-in2.h: Likewise.
4687 2000-11-17 H.J. Lu <hjl@gnu.org>
4689 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4690 pltoff entries for DT_INIT and DT_FINI.
4691 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4692 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4695 2000-11-16 Richard Henderson <rth@redhat.com>
4697 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4698 (allocate_dynrel_entries): Likewise.
4699 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4700 (set_pltoff_entry): Likewise.
4701 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4702 (elfNN_ia64_reloc_type_lookup): Likewise.
4703 (elfNN_ia64_install_value): Likewise.
4704 (elfNN_ia64_relocate_section): Likewise.
4705 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4706 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4708 2000-11-16 Kazu Hirata <kazu@hxi.com>
4710 * cpu-a29k.c: Fix formatting.
4711 * cpu-alpha.c: Likewise.
4712 * cpu-arm.c: Likewise.
4713 * cpu-avr.c: Likewise.
4714 * cpu-d10v.c: Likewise.
4715 * cpu-h8500.c: Likewise.
4716 * cpu-hppa.c: Likewise.
4717 * cpu-i370.c: Likewise.
4718 * cpu-i386.c: Likewise.
4719 * cpu-i960.c: Likewise.
4720 * cpu-ia64-opc.c: Likewise.
4721 * cpu-ia64.c: Likewise.
4722 * cpu-m32r.c: Likewise.
4723 * cpu-m68hc11.c: Likewise.
4724 * cpu-m68hc12.c: Likewise.
4725 * cpu-m68k.c: Likewise.
4726 * cpu-m88k.c: Likewise.
4727 * cpu-mips.c: Likewise.
4728 * cpu-ns32k.c: Likewise.
4729 * cpu-pj.c: Likewise.
4730 * cpu-powerpc.c: Likewise.
4731 * cpu-sh.c: Likewise.
4732 * cpu-sparc.c: Likewise.
4733 * cpu-tic54x.c: Likewise.
4734 * cpu-v850.c: Likewise.
4735 * cpu-vax.c: Likewise.
4736 * cpu-w65.c: Likewise.
4737 * cpu-we32k.c: Likewise.
4738 * cpu-z8k.c: Likewise.
4739 * dwarf1.c: Likewise.
4740 * dwarf2.c: Likewise.
4742 2000-11-15 Kazu Hirata <kazu@hxi.com>
4744 * coff-arm.c: Fix formatting.
4745 * coff-ppc.c: Likewise.
4746 * coff-rs6000.c: Likewise.
4747 * coff-sh.c: Likewise.
4748 * coff-sparc.c: Likewise.
4749 * coff-tic30.c: Likewise.
4750 * coff-tic54x.c: Likewise.
4751 * coff-tic80.c: Likewise.
4752 * coff-w65.c: Likewise.
4753 * coff-we32k.c: Likewise.
4754 * coff-z8k.c: Likewise.
4756 2000-11-15 Richard Henderson <rth@redhat.com>
4758 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4759 section with the same ALLOC|LOAD flags as the source section.
4761 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4763 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4764 by STO_ALPHA constants.
4766 2000-11-14 Kazu Hirata <kazu@hxi.com>
4768 * coff-pmac.c: Fix formatting.
4769 * coff-ppc.c: Likewise.
4771 2000-11-13 H.J. Lu <hjl@gnu.org>
4773 * elflink.h (elf_link_add_object_symbols): Also add indirect
4774 symbols for common symbols with the default version.
4776 2000-11-09 Philip Blundell <pb@futuretv.com>
4778 * section.c (STD_SECTION): Set gc_mark flag.
4780 2000-11-11 Kazu Hirata <kazu@hxi.com>
4782 * coff-i960.c: Likewise.
4783 * coff-m68k.c: Likewise.
4784 * coff-m88k.c: Likewise.
4785 * coff-mcore.c: Likewise.
4786 * coff-mips.c: Likewise.
4788 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4790 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4792 2000-11-10 Kazu Hirata <kazu@hxi.com>
4794 * coff-h8300.c: Fix formatting.
4795 * coff-h8500.c: Likewise.
4796 * coff-i386.c: Likewise.
4797 * coff-i860.c: Likewise.
4798 * coff-i960.c: Likewise.
4799 * coff-ia64.c: Likewise.
4801 2000-11-09 Kazu Hirata <kazu@hxi.com>
4803 * archive.c: Fix formatting.
4804 * archures.c: Likewise.
4806 2000-11-07 Richard Henderson <rth@redhat.com>
4808 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4809 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4810 * section.c (bfd_set_section_contents): Call memcpy if
4811 section->contents set and location not equal to contents plus offset.
4813 2000-11-08 Kazu Hirata <kazu@hxi.com>
4815 * bfd-in.h: Fix formatting.
4816 * bfd-in2.h: Likewise.
4818 * binary.c: Likewise.
4820 * coff-a29k.c: Likewise.
4821 * coff-alpha.c: Likewise.
4822 * coff-apollo.c: Likewise.
4823 * coff-aux.c: Likewise.
4825 2000-11-07 Kazu Hirata <kazu@hxi.com>
4827 * aix386-core.c: Fix formatting.
4828 * aoutf1.h: Likewise.
4829 * aoutx.h: Likewise.
4830 * archures.c: Likewise.
4831 * armnetbsd.c: Likewise.
4833 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4835 * coff-h8300.c (special): Adjust reloc address.
4837 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4839 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4840 to differentiate elf32 and elf64 on ia64.
4841 * bfd-in2.h: Regenerate.
4842 * config.bfd: Add target for "ia64*-*-hpux*".
4843 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4844 * configure: Regenerate.
4845 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4846 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4848 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4849 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4850 * Makefile.in: Regnerate.
4851 * elf64-ia64.c: Deleted.
4852 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4854 2000-11-06 Kazu Hirata <kazu@hxi.com>
4856 * aout-adobe.c: Fix formatting.
4857 * aout-arm.c: Likewise.
4858 * aout-cris.c: Likewise.
4859 * aout-encap.c: Likewise.
4860 * aout-ns32k.c: Likewise.
4861 * aout-target.h: Likewise.
4862 * aout-tic30.c: Likewise.
4864 2000-11-05 Philip Blundell <philb@gnu.org>
4866 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4867 BFDs containing no sections to be merged, regardless of their flags.
4869 2000-11-04 Philip Blundell <philb@gnu.org>
4871 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4872 if a relocation for an undefined symbol also results in an
4875 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4877 * config.bfd: Add support for Sun Chorus.
4879 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4881 * configure.in: Recognize alpha-*-freebsd*.
4882 * configure: Regenerate.
4884 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4886 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4887 (Chunk): New global variable set by a parameter in objcopy.c.
4888 (S3Forced): New global variable set by a parameter in
4890 (srec_set_section_contents): If S3Forced is true, always generate
4892 (srec_write_section): Use 'Chunk' to limit maximum length of S
4895 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4897 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4898 * Makefile.in: Regenerate.
4899 * bfd-in2.h: Regenerate.
4900 * po/bfd.pot: Regenerate.
4902 2000-10-31 Philip Blundell <philb@gnu.org>
4904 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4905 EF_SOFT_FLOAT if it is defined.
4907 2000-10-27 Philip Blundell <philb@gnu.org>
4909 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4910 attempts to mix PIC code with non-PIC, just mark the output as
4911 being position dependent.
4912 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4913 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4914 all mismatches, not just the first one.
4916 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4918 * ieee.c (ieee_archive_p): Plug one of many possible
4919 memory leaks in error handling.
4921 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4923 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4924 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4926 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4927 sparc64_elf_object_p): Support v9b.
4928 * archures.c: Declare v8plusb and v9b machines.
4930 * cpu-sparc.c: Ditto.
4932 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4934 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4937 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4938 (SYMBOL_CALLS_LOCAL): New macro.
4939 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4940 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4941 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4942 (ppc_elf_relocate_section): Use flag variable to determine
4943 whether the relocation refers to a local symbol.
4944 Test whether a PLTREL24 reloc will produce a reloc by looking
4945 to see whether a PLT entry was made.
4947 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4949 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4950 entries that could serve as a definition for a weak symbol.
4952 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4954 From Ralf Baechle <ralf@gnu.org>
4956 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4957 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4958 against local symbols.
4959 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4961 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4963 * section.c (struct sec): Add kept_section.
4964 (struct bfd_comdat_info): Remove sec, we can use above.
4965 (STD_SECTION): Add initializer.
4966 (bfd_make_section_anyway): Init here too.
4968 * bfd-in2.h: Regenerate.
4970 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4972 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4973 fudge values for discarded link-once section symbols.
4975 * elf64-hppa.c: Include alloca-conf.h
4977 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4979 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4981 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4983 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4985 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4987 2000-10-10 Tom Rix <trix@redhat.com>
4989 * section.c (bfd_make_section_anyway): Release newsect ptr when
4990 newsect->symbol fails to alloc. Use bfd_release instead of free.
4992 2000-10-09 Richard Henderson <rth@cygnus.com
4994 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4995 (elf64_ia64_unwind_entry_compare): New.
4996 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4998 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5000 * elflink.h (size_dynamic_sections): Don't create various tags if
5001 .dynstr is excluded from the link. Don't set first dynsym entry
5002 if dynsymcount is zero.
5003 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5004 .dynsym excluded from the link. Don't try to write any dynamic
5005 sections excluded from the link.
5007 * elf.c (swap_out_syms): Handle global section symbols.
5009 2000-10-05 DJ Delorie <dj@redhat.com>
5011 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5012 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5013 (coff_write_relocs): write extended reloc count
5014 (coff_write_object_contents): account for extended relocs
5016 2000-10-05 Jim Wilson <wilson@cygnus.com>
5018 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5020 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5021 elf_backend_section_flags function.
5022 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5024 (elf64_ia64_section_flags): New function containing flag conversion
5026 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5027 * elfxx-target.h (elf_backend_section_flags): Define.
5028 (elfNN_bed): Initialize elf_backend_section_flags field.
5030 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5032 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5033 _bfd_elf32_gc_record_vtable. Correct a comment.
5035 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5037 From Ralf Baechle <ralf@gnu.org>
5039 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5040 produces binaries with got[1] = 0x80000001 to differenciate them
5041 for the dynamic linker from the broken binaries produced by old
5044 2000-09-30 Petr Sorfa <petrs@sco.com>
5046 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5047 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5048 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5049 * configure: Regenerate.
5051 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5053 Define two bfd_targets for absence and presence of leading
5054 underscore on symbols. Make sure to only link same kind.
5055 * elf32-cris.c (cris_elf_object_p,
5056 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5057 cris_elf_merge_private_bfd_data): New.
5058 (elf_backend_object_p, elf_backend_final_write_processing,
5059 bfd_elf32_bfd_print_private_bfd_data,
5060 bfd_elf32_bfd_merge_private_bfd_data): Define.
5061 <Target vector definition>: Include elf32-target.h twice with
5062 different macro settings:
5063 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5064 bfd_elf32_us_cris_vec.
5065 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5066 (elf_symbol_leading_char): First as 0, then '_'.
5067 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5068 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5069 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5070 * configure: Regenerate.
5071 * targets.c: Declare bfd_elf32_us_cris_vec.
5072 * po/bfd.pot: Regenerate.
5074 2000-09-29 Momchil Velikov <velco@fadata.bg>
5076 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5077 R_ARM_THM_PC22 relocations.
5079 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5081 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5083 2000-09-29 Momchil Velikov <velco@fadata.bg>
5085 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5086 is has the SEC_HAS_CONTENTS flag set.
5088 2000-09-28 �Örjan Friberg <orjanf@axis.com>
5089 Hans-Peter Nilsson <hp@axis.com>
5091 * aout-cris.c (N_TXTADDR): Define.
5093 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5095 * som.c: Include alloca-conf.h.
5096 * Makefile.am: "make dep-am"
5097 * Makefile.in: Regenerate.
5099 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5101 * elf32-hppa.c (plt_stub): New.
5102 (PLT_STUB_ENTRY): Define.
5103 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5104 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5105 (elf32_hppa_link_hash_table_create): Init to suit.
5106 (elf32_hppa_check_relocs): Set has_12bit_branch and
5107 has_17bit_branch as appropriate.
5108 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5109 non-local functions.
5110 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5111 Add space for plt_stub as needed.
5112 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5113 functions at plt_stub.
5114 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5115 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5117 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5118 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5119 of fixed size, and if negative, disable handling of input sections
5120 before stub section. Set up default stub group size depending
5121 on detected branch relocs.
5122 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5123 ensure different offsets from sym_value aren't rounded to
5124 different 2k blocks. Use lrsel and rrsel for other stubs too for
5125 consistency rather than necessity.
5126 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5127 (final_link_relocate): Likewise.
5128 (elf32_hppa_relocate_section): Likewise.
5130 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5131 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5132 (elf_hppa_final_link_relocate): Handle them.
5133 (elf_hppa_relocate_insn): Likewise.
5134 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5136 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5138 * elfcode.h (elf_object_p): Preserve and clear abfd section
5139 information. Restore at error.
5141 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5143 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5144 is empty, make sure that its rva also 0. NT loader dislikes
5147 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5149 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5152 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5154 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5155 currently unused RELATIVE_DYNAMIC_RELOCS code.
5156 (hppa_discard_copies): Likewise.
5157 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5158 comments. Don't check non-code output sections for stub grouping.
5160 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5162 * section.c (bfd_get_unique_section_name): Return NULL if
5165 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5167 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5168 instruction sequence to actually work.
5169 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5172 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5174 * elf32-sh.c (sh_elf_relocate_section): Use
5175 _bfd_final_link_relocate to apply the relocation against a section
5176 symbol, when doing relocatable links.
5178 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5180 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5182 (stub_hash_newfunc): Here too.
5183 (hppa_add_stub): And here.
5184 (elf32_hppa_link_hash_table): Remove stub_section_created,
5185 reloc_section_created, first_init_sec and first_fini_sec. Add
5187 (elf32_hppa_link_hash_table_create): Init to suit.
5188 (hppa_get_stub_entry): Add support for grouping stub sections.
5189 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5190 section code. Index stub vars by section->id.
5191 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5192 exit paths. Zap allocation of above removed vars. Refine
5195 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5196 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5197 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5198 rather than pointer to bfd_link_info.
5199 (hppa_add_stub): Likewise.
5200 (final_link_relocate): Likewise.
5202 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5204 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5207 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5209 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5210 ld/emulparams/shelf.sh.
5212 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5214 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5215 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5216 * bfd-in2.h: Regenerate.
5218 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5220 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5221 LITUSE relocations incorrectly if -relax is specified on the ld
5222 command line and the displacement field of the load or store
5223 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5225 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5227 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5228 first_fini_sec here.
5229 (elf32_hppa_size_stubs): Instead correctly find the first .init
5230 and .fini section here.
5232 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5234 * elf32-hppa.c (clobber_millicode_symbols): New function.
5235 (elf32_hppa_size_dynamic_sections): Call it.
5237 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5239 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5240 packed. Add plabel, plt_abs packed booleans.
5241 (hppa_link_hash_newfunc): Init new fields.
5242 (PLABEL_PLT_ENTRY_SIZE): Define.
5243 (hppa_stub_name): Use size_t len vars.
5244 (hppa_add_stub): Likewise.
5245 (elf32_hppa_build_stubs): Likewise.
5246 (hppa_build_one_stub): Kill some compiler warnings.
5247 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5248 if dynamic linking. Munge the local plt offsets into
5249 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5250 size_t len vars. Add assert for plabel addend.
5251 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5252 (elf32_hppa_hide_symbol): New function.
5253 (elf_backend_hide_symbol): Define.
5254 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5255 with h->plabel set. Don't make plt entries to have dynamic syms
5256 when they have been forced local. If plt entry is used by a
5257 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5258 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5259 Set up .plt offsets for local syms.
5260 (elf32_hppa_relocate_section): Initialise plt entries for local
5261 syms. Leave weak undefined plabels zero. Make global plabel
5262 relocs against function symbol, and leave the addend zero.
5263 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5264 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5265 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5266 relocs instead of SEGREL32 for dynamic got relocs.
5267 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5268 (elf_backend_got_header_size): Adjust.
5269 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5271 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5272 (hppa_type_of_stub): Use it instead of #if 0
5273 (hppa_discard_copies): Use it here too.
5274 (elf32_hppa_size_dynamic_sections): And here.
5276 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5277 (elf32_hppa_link_hash_table_create): And here.
5278 (hppa_build_one_stub): And here. Instead keep track of stub
5279 offset using _raw_size.
5280 (elf32_hppa_size_stubs): Likewise.
5281 (elf32_hppa_build_stubs): Likewise.
5282 (hppa_size_one_stub): Likewise. Resize reloc section too.
5284 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5285 first_fini_sec handling. Don't search for reloc section or set
5286 hplink->reloc_section_created here.
5287 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5288 set reloc_section_created here.
5289 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5290 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5292 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5294 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5295 with `hplink->root.'.
5296 (elf32_hppa_check_relocs): Likewise.
5297 (elf32_hppa_gc_sweep_hook): Likewise.
5298 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5299 (hppa_handle_PIC_calls): Likewise.
5300 (elf32_hppa_size_dynamic_sections): Likewise.
5301 (elf32_hppa_set_gp): Likewise.
5302 (elf32_hppa_relocate_section): Likewise.
5303 (elf32_hppa_finish_dynamic_symbol): Likewise.
5304 (elf32_hppa_finish_dynamic_sections): Likewise.
5306 From David Huggins-Daines <dhd@linuxcare.com>
5307 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5308 defined weak symbols in shared links.
5309 (final_link_relocate): Calls to defined weak symbols in shared
5310 objects must go via import stubs, as the target might not be known
5313 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5315 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5316 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5317 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5318 the original entries with EMPTY_HOWTOs, and added new ones to fill
5320 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5321 (sh_elf_relocate_section): Likewise.
5323 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5325 * cpu-mips.c (arch_info_struct): Add mips:4K
5326 * bfd-in2.h (bfd_mach_mips4K): New define.
5327 * archures.c: Add bfd_mach_mips4K to comment.
5328 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5329 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5331 2000-09-13 Marco Franzen <marcof@thyron.com>
5333 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5334 use size_t as a counter.
5335 (som_write_space_strings): Similarly.
5337 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5339 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5341 (elf32_i860_relocate_section): Invoke new function from here.
5343 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5345 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5348 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5350 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5351 target section name instead of dumping core when the target symbol is
5354 2000-09-09 Kazu Hirata <kazu@hxi.com>
5356 * riscix.c: Remove DEFUN.
5358 2000-09-08 Nick Clifton <nickc@redhat.com>
5360 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5361 initialise flags in output bfd if the input bfd is the default
5362 architecture with the default flags.
5364 2000-09-08 Kazu Hirata <kazu@hxi.com>
5366 * archive.c: Fix formatting.
5367 * coff-arm.c: Likewise.
5368 * doc/chew.c: Likewise.
5370 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5372 * section.c (bfd_get_unique_section_name): Put a dot before the
5375 2000-09-07 Kazu Hirata <kazu@hxi.com>
5377 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5378 * elf.c: Fix formatting.
5380 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5382 * config.bfd (sh-*-linux*): Added.
5383 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5384 * targets.c: Declare them.
5385 * elf32-sh-lin.c: New file.
5386 * Makefile.am: Compile it.
5387 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5388 * configure, Makefile.in: Rebuilt.
5390 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5392 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5393 pseduo-section when determining where the TOC ends.
5395 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5396 output x_tvndx as it is only two bytes wide.
5398 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5399 reloc is 26 or 32 bits wide.
5401 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5402 for relocs that don't change anything. Also look at the full
5405 2000-09-06 Philip Blundell <philb@gnu.org>
5407 * config.bfd (arm*-*-uclinux*): New target.
5409 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5411 * configure: Rebuilt with new libtool.m4.
5413 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5415 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5416 word for variable name.
5417 * bfd-in2.h: Regenerate.
5419 2000-09-05 Nick Clifton <nickc@redhat.com>
5421 * config.in: Regenerate.
5422 * libbfd.h: Regenerate.
5423 * po/bfd.pot: Regenerate.
5424 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5427 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5429 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5431 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5433 Shared library and PIC support.
5434 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5435 (GOT_ENTRY_SIZE): New.
5436 (ELF_DYNAMIC_INTERPRETER): New.
5437 (STUB_SUFFIX): Define.
5438 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5439 (RELATIVE_DYNAMIC_RELOCS): Define.
5440 (enum elf32_hppa_stub_type): New.
5441 (struct elf32_hppa_stub_hash_entry): Rename offset to
5442 stub_offset. Add a number of new fields.
5443 (struct elf32_hppa_link_hash_entry): New.
5444 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5446 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5447 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5448 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5450 (hppa_link_hash_newfunc): New function.
5451 (elf32_hppa_link_hash_table_create): Use above function. Init new
5453 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5454 instead of addend, and remove sym_name from args. Don't use
5455 symbol name for local syms, instead use sym index.
5456 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5457 stub type rather than size. Pass in hash and handle import stub
5458 case. Also pass in reloc instead of offset so we can calculate
5459 PCREL22F and PCREL12F branches properly.
5460 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5461 import and export stubs too.
5462 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5463 import and export stub sizing.
5464 (elf32_hppa_check_relocs): New function.
5465 (elf32_hppa_adjust_dynamic_symbol): New function.
5466 (hppa_discard_copies): New function.
5467 (elf32_hppa_size_dynamic_sections): New function.
5468 (elf_backend_size_dynamic_sections): Define.
5469 (elf32_hppa_finish_dynamic_symbol): New function.
5470 (elf_backend_finish_dynamic_symbol): Define.
5471 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5472 some local vars into the link hash table too. For shared links,
5473 trundle over function syms, generating export stubs. Handle
5474 PCREL22F branches. Break out stub creation code from here..
5475 (hppa_add_stub): .. to here. New function.
5476 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5477 call the bfd linker. Use elf_gp to record global pointer.
5478 Calculate a value from sections if $global$ is missing.
5479 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5480 (elf32_hppa_gc_mark_hook): New function.
5481 (elf_backend_gc_mark_hook): Define.
5482 (elf32_hppa_gc_sweep_hook): New function.
5483 (elf_backend_gc_sweep_hook): Define.
5484 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5485 Add rel to args, and remove howto, input_bfd, offset, addend,
5486 sym_name as we can recalculate these locally. Handle calls to
5487 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5488 handling of undefined weak syms. Check that stubs are in range.
5489 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5490 message on hitting a DPREL21L reloc that needs fixing. Subtract
5491 off PC for PCREL14F. Break out code that does a stub lookup from
5493 (hppa_get_stub_entry): ..to here. New function.
5494 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5495 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5497 (elf32_hppa_finish_dynamic_sections): New function.
5498 (elf_backend_finish_dynamic_sections): Define.
5499 (elf_backend_final_write_processing) Define.
5500 (hppa_handle_PIC_calls): New function.
5501 (elf32_hppa_build_stubs): Call it. Pass link_info to
5502 hppa_build_one_stub.
5503 (elf32_hppa_create_dynamic_sections): New function
5504 to create .plt and .got then set .plt flags correctly.
5505 (elf_backend_create_dynamic_sections): Define.
5506 (elf32_hppa_object_p): New function.
5507 (elf_backend_object_p): Define.
5508 (elf32_hppa_elf_get_symbol_type): New function.
5509 (elf_backend_get_symbol_type): Define.
5510 (elf_backend_can_gc_sections): Define.
5511 (elf_backend_want_got_plt): Define.
5512 (elf_backend_plt_alignment): Set to 2.
5513 (elf_backend_plt_readonly): Define.
5514 (elf_backend_want_plt_sym): Define.
5515 (elf_backend_got_header_size): Reserve one entry.
5517 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5518 (elf32_hppa_size_stubs): Pass in multi_subspace.
5519 (elf32_hppa_set_gp): Declare.
5521 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5522 (bfd_get_unique_section_name): New function.
5523 * bfd-in2.h: Regenerate.
5525 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5526 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5529 From David Huggins-Daines <dhd@linuxcare.com>
5530 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5531 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5532 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5533 been updated in finish_dynamic_symbol before modifying function
5536 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5537 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5538 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5539 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5540 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5541 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5542 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5543 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5545 From David Huggins-Daines <dhd@linuxcare.com>
5546 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5547 style of local labels as well.
5549 2000-09-03 Philip Blundell <philb@gnu.org>
5551 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5552 references to undefined symbols in debugging sections.
5554 2000-09-02 H.J. Lu <hjl@gnu.org>
5556 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5557 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5558 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5561 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5563 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5564 (elf32_i860_is_local_label_name): New function and prototype.
5566 2000-09-02 Nick Clifton <nickc@redhat.com>
5568 * configure.in: Increase version number to 2.10.91.
5569 * configure: Regenerate.
5570 * aclocal.m4: Regenerate.
5571 * config.in: Regenerate.
5572 * po/bfd.pot: Regenerate.
5574 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5576 * elf.c (_bfd_elf_make_section_from_shdr): Add
5577 .gnu.linkobce.wi. to the list of debug section names.
5579 2000-09-02 Nick Clifton <nickc@redhat.com>
5581 * dwarf2.c (find_debug_info): New function: Locate a section
5582 containing dwarf2 debug information.
5583 (bfd_dwarf2_find_nearest_line): Find all sections containing
5584 debug information and include them in the stash.
5586 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5588 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5589 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5590 (sh_reloc_map): Add new relocs.
5591 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5592 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5593 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5594 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5596 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5597 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5598 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5599 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5600 New array constants.
5601 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5603 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5604 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5605 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5606 elf_sh_plt_reloc_offset): Define.
5607 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5608 elf_sh_link_hash_table): New structs.
5609 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5610 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5612 (elf_backend_create_dynamic_sections,
5613 bfd_elf32_bfd_link_hash_table_create,
5614 elf_backend_adjust_dynamic_symbol,
5615 elf_backend_size_dynamic_sections,
5616 elf_backend_finish_dynamic_symbol,
5617 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5618 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5619 elf_backend_got_header_size, elf_backend_plt_header_size):
5621 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5622 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5624 * bfd-in2.h, libbfd.h: Rebuilt.
5626 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5628 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5631 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5633 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5634 not initialized, set them to indicate the SH1 instruction set.
5636 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5638 * acinclude.m4: Include libtool and gettext macros from the
5640 * aclocal.m4, configure: Rebuilt.
5642 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5644 * elf.c: Eliminate references to __sparcv9 macro; replace with
5645 autoconf variables HAVE_PSINFO32_T etc.
5646 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5647 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5649 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5650 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5651 * aclocal.m4: Ditto.
5652 * configure: Regenerate.
5654 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5656 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5657 for any shared link, not just shared -Bsymbolic.
5658 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5659 any shared link, and pass link info to it.
5660 (elf_i386_size_dynamic_sections): Update comment.
5661 (elf_i386_discard_copies): Modify to discard relocs for symbols
5662 that have been forced local.
5663 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5664 that have been forced local.
5666 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5668 * elflink.h (elf_link_add_object_symbols): Allow common
5669 symbols to have an alignment of 1 if explicitly requested, and
5670 not overridden by other definitions.
5672 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5674 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5675 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5677 2000-08-22 H.J. Lu <hjl@gnu.org>
5679 * elf-bfd.h (elf_link_hash_table): Add runpath.
5681 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5682 * bfd-in2.h: Rebuilt.
5684 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5685 "runpath" field to NULL.
5686 (bfd_elf_get_runpath_list): New function.
5688 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5691 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5693 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5694 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5695 explicitly. Improve validation of r_type.
5697 2000-08-21 H.J. Lu <hjl@gnu.org>
5699 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5700 dynamic allocated content space. Add a comment to remind us that
5701 one day this ought to be fixed.
5702 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5703 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5704 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5706 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5708 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5709 field with the newly relocated value instead of adding it to the
5710 existing immediate field.
5711 (elf32_i860_relocate_splitn): Likewise.
5712 (elf32_i860_relocate_highadj): Likewise.
5714 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5716 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5717 was previously just a stub).
5719 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5721 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5723 (_bfd_elf_create_dynamic_sections): Likewise.
5725 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5727 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5728 for undefined symbols to be the beginning of the section.
5730 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5731 four extra entries at the beginning of the .rela.plt section.
5732 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5733 section to account for the four reserved entries in the .plt section.
5735 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5737 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5738 to the list of NOPs we recognize after a branch-and-link.
5739 Use the ori NOP when one is needed.
5741 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5744 2000-08-14 Jim Wilson <wilson@cygnus.com>
5746 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5747 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5748 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5751 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5753 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5755 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5757 * elf32-i860.c (elf32_i860_relocate_section): New function.
5758 (i860_final_link_relocate): New function.
5759 (elf32_i860_relocate_splitn): New function.
5760 (elf32_i860_relocate_pc16): New function.
5761 (elf32_i860_relocate_highadj): New function.
5762 (elf32_i860_howto): Minor adjustments to some relocations.
5763 (elf_info_to_howto_rel): Define.
5764 (elf_backend_relocate_section): Define.
5766 2000-08-10 Nick Clifton <nickc@cygnus.com>
5768 * elf32-arm.h: Fix formatting.
5770 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5772 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5774 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5776 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5778 2000-08-07 Kazu Hirata <kazu@hxi.com>
5780 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5781 * elf64-ia64.c: Fix a typo.
5783 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5785 * elf32-i860.c (elf32_i860_howto_table): New structure.
5786 (lookup_howto): New function.
5787 (elf32_i860_reloc_type_lookup): New function.
5788 (elf32_i860_info_to_howto_rela): New function.
5789 (elf_code_to_howto_index): New structure.
5790 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5791 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5792 elf32_i860_reloc_type_lookup.
5794 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5796 * som.c (struct fixup_format): Constify `format'.
5797 (som_hppa_howto_table): Use SOM_HOWTO macro.
5798 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5799 (som_bfd_reloc_type_lookup): Likewise.
5800 (compare_subspaces): Remove unused `count1', `count2'.
5801 (som_begin_writing): Remove unused `total_reloc_size'.
5802 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5803 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5804 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5805 (som_find_nearest_line): Decorate unused parameter(s).
5806 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5807 (som_bfd_link_split_section): Likewise.
5809 2000-08-03 Nick Clifton <nickc@cygnus.com>
5811 * section.c: Restore backed out code.
5812 * elf.c: Restore backed out code.
5813 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5814 binaries from working.
5815 * bfd-in2.h: Regenerate.
5817 2000-08-03 H.J. Lu <hjl@gnu.org>
5819 * section.c: Back out the change made by Nick Clifton
5820 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5822 * bfd-in2.h: Likewise.
5825 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5827 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5829 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5831 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5832 * bfd-in2.h, libbfd.h: Regenerate.
5834 2000-07-31 Nick Clifton <nickc@cygnus.com>
5836 * section.c (struct sec): Add new boolean field 'segment_mark'.
5837 (STD_SECTION): Initialise new field to zero.
5839 * bfd-in2.h: Regenerate.
5841 * elf.c (copy_private_bfd_data): Reorganise section to segment
5842 mapping to cope with moved sections requiring new segments,
5843 and overlapping segments.
5844 (SEGMENT_END): New macro: Return the end address of a segment.
5845 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5846 contains a section by comparing their VMA addresses.
5847 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5848 contains a section by comparing their LMA addresses.
5849 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5850 section should be included in a segment.
5851 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5852 follows another in memory.
5853 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5856 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5858 * cpu-i860.c: Added comments.
5860 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5861 bfd_elf32_i860_little_vec.
5862 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5863 (ELF_MAXPAGESIZE): Changed to 4096.
5865 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5867 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5869 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5870 config for little endian elf32 i860.
5871 (targ_defvec): Define for the new config above
5872 as "bfd_elf32_i860_little_vec".
5873 (targ_selvecs): Define for the new config above
5874 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5876 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5879 * configure: Regenerated.
5881 2000-07-27 H.J. Lu <hjl@gnu.org>
5883 * elflink.h (elf_merge_symbol): Take one more argument,
5884 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5885 entry. Don't overide the existing weak definition if dt_needed
5887 (elf_link_add_object_symbols): Pass dt_needed to
5888 elf_merge_symbol ().
5890 2000-07-27 Nick Clifton <nickc@cygnus.com>
5892 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5895 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5897 * configure.host (*-*-aix*): AIX has 'long long' always.
5899 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5900 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5901 (xcoff_write_archive_contents_big): Don't update the offset
5902 of the symbol table, xcoff_write_armap will do it.
5904 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5906 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5907 of dynobj for SGI_COMPAT checks.
5909 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5911 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5912 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5913 * bfd-in2.h: Regenerate.
5915 2000-07-21 Nick Clifton <nickc@cygnus.com>
5917 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5918 range symbol indices in relocs and issue an error message.
5920 2000-07-20 H.J. Lu <hjl@gnu.org>
5922 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5923 info->new_dtags when setting DT_FLAGS_1. It will only be set
5924 by the new linker options. It shouldn't break anything.
5926 2000-07-20 H.J. Lu <hjl@gnu.org>
5928 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5929 only if info->new_dtags is true.
5931 2000-07-20 H.J. Lu <hjl@gnu.org>
5933 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5934 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5936 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5938 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5939 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5940 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5941 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5942 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5943 * Makefile.in: Rebuild.
5944 * aclocal.m4: Rebuild.
5945 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5946 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5947 (bfd_cris_arch): Declare.
5948 (bfd_archures_list): Add bfd_cris_arch.
5949 * bfd-in2.h: Rebuild.
5950 * config.bfd: (cris-*-*): New target.
5951 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5952 * configure: Rebuild.
5953 * elf.c (prep_headers): Add bfd_arch_cris.
5954 * libbfd.h: Rebuild.
5955 * libaout.h (enum machine_type): Add M_CRIS.
5956 * reloc.c: Add CRIS relocations.
5957 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5958 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5959 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5960 * po/POTFILES.in, po/bfd.pot: Regenerate.
5962 2000-07-19 H.J. Lu <hjl@gnu.org>
5964 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5965 DF_TEXTREL if DT_TEXTREL is set.
5966 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5967 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5968 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5969 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5970 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5971 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5972 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5973 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5974 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5975 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5977 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5978 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5980 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5982 2000-07-19 H.J. Lu <hjl@gnu.org>
5984 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5985 * bfd-in2.h: Rebuild.
5987 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5988 (elf_dt_soname): New.
5990 * elf.c (bfd_elf_set_dt_needed_soname): New.
5992 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5993 entry if the shared object loaded by DT_NEEDED is used to
5994 resolve the reference in a regular object.
5996 2000-07-19 H.J. Lu <hjl@gnu.org>
5998 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5999 DT_DEPAUDIT and DT_AUDIT as strings.
6001 2000-07-19 Nick Clifton <nickc@cygnus.com>
6003 * format.c: Fix formatting.
6005 2000-07-19 H.J. Lu <hjl@gnu.org>
6007 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6009 2000-07-19 H.J. Lu <hjl@gnu.org>
6011 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6012 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6013 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6014 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6015 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6016 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6017 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6019 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6021 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6022 renamed functions from here...
6023 (assign_section_numbers): Use renamed functions.
6024 (prep_headers): Use renamed functions.
6026 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6027 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6028 * bfd-in2.h: Regenerate.
6030 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6032 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6033 parenthesis in if statement.
6035 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6037 Enable the support for Traditional MIPS.
6038 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6039 return ict_none appropriately for traditional mips targets.
6040 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6041 (STUB_MOVE): Conditionalize for traditonal mips.
6042 (STUB_LI16): Likewise.
6043 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6044 room for RTPROC header.
6045 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6046 the permission for the PT_DYNAMIC as read, write and execute.
6047 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6048 for traditonal mips.
6049 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6050 _DYNAMIC_LINKING for traditonal mips.
6051 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6052 in case of traditonal mips.
6053 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6054 entry is required. For a function if PLT is not required then set the
6055 corresponding hash table entry to 0.
6056 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6058 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6059 shared object set the value to 0.
6060 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6061 _DYNAMIC_LINKING for traditonal mips.
6062 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6063 for traditonal mips.
6065 2000-07-15 H.J. Lu <hjl@gnu.org>
6067 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6069 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6071 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6072 out a structure that is BFD_IN_MEMORY.
6074 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6076 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6077 bfd pointer. Print section id instead of bfd pointer for local
6078 syms. Prefix addend with `+' for global syms as well as local.
6079 Correct calculation of name component lengths.
6080 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6082 From David Huggins-Daines <dhd@linuxcare.com>
6083 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6084 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6085 (elf64_hppa_modify_segment_map): Likewise.
6087 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6089 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6090 addresses to be "naturally" sign extended. Return -1 if unknown.
6091 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6092 * bfd-in2.h: Regenerate.
6094 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6096 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6097 and ECOF_SIGNED_64 to list ways to extract an offset.
6098 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6099 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6101 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6102 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6104 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6106 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6107 bfd_get_start_address.
6108 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6109 (elf_swap_ehdr_out): Ditto.
6111 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6113 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6114 compatibility with older binutils.
6116 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6118 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6119 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6121 From Ryan Bradetich <rbradetich@uswest.net>
6122 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6123 (parse_line_table): Ditto.
6124 (_bfd_dwarf1_find_nearest_line): Ditto.
6125 * syms.c (cmpindexentry): Remove extra `*' from params.
6127 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6129 * elf32-mips.c (sort_dynamic_relocs): New Function.
6130 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6131 via qsort to sort the dynamic relocations in increasing r_symndx
6134 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6136 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6137 ATTRIBUTE_UNUSED to unused args.
6138 (get_opd): Likewise.
6139 (get_plt): Likewise.
6140 (get_dlt): Likewise.
6141 (get_stub): Likewise.
6142 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6143 (elf64_hppa_link_output_symbol_hook): Likewise.
6144 (elf64_hppa_check_relocs): Delete unused var.
6145 (elf64_hppa_size_dynamic_sections): Likewise.
6146 (elf64_hppa_finalize_opd): Likewise.
6147 (elf64_hppa_finalize_dynreloc): Likewise.
6148 (elf64_hppa_modify_segment_map): Likewise.
6149 (elf64_hppa_finish_dynamic_sections): Likewise.
6151 * elf-hppa.h (elf_hppa_final_write_processing): Add
6152 ATTRIBUTE_UNUSED to unused args.
6153 (elf_hppa_final_link_relocate): Likewise.
6154 (elf_hppa_record_segment_addrs): Add paretheses.
6155 (elf_hppa_relocate_section): Constify dyn_name.
6157 From David Huggins-Daines <dhd@linuxcare.com>
6158 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6159 rearrange case statement so that it gets preferred to 32-bit ones.
6161 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6162 asection->id instead of address of asection structure.
6163 (elf32_hppa_size_stubs): Likewise.
6165 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6166 for .init* and .fini*.
6168 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6169 and addends used in stub names to 32 bits.
6170 (elf32_hppa_size_stubs): Likewise.
6172 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6173 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6174 not bfd_put_64. Fix minor comment typo and formatting.
6176 Changes to create multiple linker stubs, positioned immediately
6177 before the section where they are required.
6178 * elf32-hppa.c: Don't include hppa_stubs.h.
6179 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6180 (elf32_hppa_stub_hash_table): Delete.
6181 (elf32_hppa_link_hash_entry): Delete.
6182 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6183 stub_hash_table, and store the struct here rather than a pointer.
6184 Delete output_symbol_count. Add offset array. Change
6185 global_value to a bfd_vma.
6186 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6187 (elf32_hppa_stub_hash_traverse): Delete.
6188 (elf32_hppa_name_of_stub): Delete.
6189 (elf32_hppa_link_hash_lookup): Delete.
6190 (elf32_hppa_link_hash_traverse): Delete.
6191 (elf32_hppa_stub_hash_table_init): Delete.
6192 (elf32_hppa_size_of_stub): Pass input section and offset rather
6193 than location and calculate location here. Don't pass name as all
6194 stubs are now the same size.
6195 (elf32_hppa_stub_hash_newfunc): Init new fields.
6196 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6198 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6199 comparing against ints. Rewrite stub handling code.
6200 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6201 Case enums to int before comparing against ints. Remove
6202 bfd_reloc_dangerous case.
6203 (elf32_hppa_build_one_stub): Rewrite.
6204 (elf32_hppa_size_one_stub): New function.
6205 (elf32_hppa_build_stubs): Rewrite.
6206 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6207 Rewrite stub-handling specific code.
6209 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6211 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6213 * hppa_stubs.h: Delete.
6214 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6215 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6216 * Makefile.in: Regenerate.
6218 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6221 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6223 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6224 and section name for bfd_reloc_notsupported error message.
6225 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6226 bfd_reloc_notsupported.
6227 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6229 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6230 undefined weak symbols for all relocs.
6231 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6232 offsets are relative to one past the delay slot.
6233 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6234 branch destination. Put addend into stub name too.
6235 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6236 adjust by 8 when deciding whether a linker stub is needed. Put
6237 addend into stub name as for above.
6239 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6240 various args and vars.
6241 (elf32_hppa_bfd_final_link_relocate): Here too.
6242 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6243 inner block var to avoid shadowing.
6245 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6247 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6248 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6249 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6251 * libhppa.h: Change practically all unsigned ints to plain ints.
6252 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6255 From Ryan Bradetich <rbradetich@uswest.net>
6256 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6257 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6259 From David Huggins-Daines <dhd@linuxcare.com>
6260 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6261 to the new OP_* ones.
6263 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6264 error exit. Bail out earlier on plabel relocs that we aren't
6265 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6266 string, and then don't free our copy.
6267 (elf32_hppa_build_one_stub): Make insn unsigned int.
6269 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6270 available with BL, not BE and BLE.
6272 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6273 code for elf arg relocs.
6274 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6275 argument with elf_link_hash_entry h. Handle undefined weak
6276 symbols. Move $global$ lookup from here...
6277 (elf32_hppa_relocate_section): ...to here. Return correct error
6278 message for non-handled relocs.
6279 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6280 wrong test was -0x3ffff to +0x40000.
6282 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6283 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6284 Handle them as such.
6285 (elf_hppa_relocate_insn): Fix a typo.
6287 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6288 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6289 assemble_17, assemble_21): Delete.
6290 Supply defines for all 64 possible opcodes.
6291 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6292 formats. Handle COMICLR.
6293 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6296 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6297 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6298 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6300 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6301 the local syms - did this code get deleted accidentally? Ignore
6302 undefined and undefweak syms.
6304 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6305 block. Use it instead of elf64_hppa_hash_table (info).
6306 (elf_hppa_final_link_relocate): Use hppa_info instead of
6307 elf64_hppa_hash_table (info).
6309 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6310 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6311 (hppa_rebuild_insn): Mask immediate bits here instead.
6312 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6314 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6316 * section.c (struct sec): Add id field. Tidy comment formatting.
6317 (bfd_make_section_anyway): Set id.
6318 (STD_SECTION): Init id too.
6319 Change CONST to const throughout.
6320 * archures.c (bfd_arch_info): Tidy comment.
6321 (bfd_arch_list): Change a CONST to const.
6322 * libbfd-in.h: Tidy comments and replace CONST with const.
6323 * elf-bfd.h: Likewise.
6324 * libbfd.h: Regenerate.
6325 * bfd-in2.h: Regenerate.
6326 * libcoff.h: Regenerate.
6328 2000-07-07 DJ Delorie <dj@redhat.com>
6330 * archive.c (_bfd_write_archive_contents): Add an informative
6333 2000-07-06 Kazu Hirata <kazu@hxi.com>
6335 * srec.c: Fix formatting.
6337 2000-06-05 DJ Delorie <dj@redhat.com>
6341 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6343 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6344 value of PC-relative offsets.
6346 2000-07-03 Jim Wilson <wilson@cygnus.com>
6348 * elf64-alpha.c (alpha_elf_size_info): New.
6349 (elf_backend_size_info): Define to alpha_elf_size_info.
6350 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6352 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6354 * elf32-mips.c: Include elf32-target.h again for the traditional
6357 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6359 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6360 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6361 (avr_info_to_howto_rela): Likewise.
6362 (elf32_avr_gc_mark_hook): Likewise.
6363 (elf32_avr_gc_sweep_hook): Likewise.
6364 (elf32_avr_relocate_section): Likewise.
6366 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6368 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6369 an external symbol for a non-shared, non-relocatable link.
6371 2000-07-03 Nick Clifton <nickc@redhat.com>
6373 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6374 is an external symbol.
6375 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6378 2000-07-03 Kazu Hirata <kazu@hxi.com>
6380 * reloc16.c: Fix formatting.
6382 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6384 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6385 to add a new target for traditional mips i.e
6386 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6387 * configure.in: Likewise.
6388 * configure: Rebuild.
6389 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6391 (bfd_elf32_tradlittlemips_vec): Likewise.
6392 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6393 to see that elfNN_bed does not get redefined even if the target file
6394 is included twice for a chip. See elf32-mips.c.
6396 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6398 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6399 (CLEANFILES): Add DEPA.
6400 * Makefile.in: Regenerate.
6402 2000-06-30 DJ Delorie <dj@cygnus.com>
6404 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6405 can't assume the PE header is at 0x80.
6407 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6409 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6411 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6413 * go32stub.h: Update stub.
6415 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6417 * archures.c (bfd_mach_avr5): Define.
6418 * bfd-in2.h (bfd_mach_avr5): Define.
6419 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6420 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6421 (compatible): Update comment. Add missing test.
6422 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6423 for avr2 and avr4. Simplify 8K wrap code.
6424 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6425 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6427 2000-06-26 Kazu Hirata <kazu@hxi.com>
6429 * coff-h8300.c: Fix formatting.
6430 * cpu-h8300.c: Likewise.
6432 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6434 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6435 for local symbols whose names are unknown.
6437 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6439 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6441 * Makefile.in: Regenerate.
6442 * doc/Makefile.in: Regenerate.
6444 2000-06-20 H.J. Lu <hjl@gnu.org>
6446 * Makefile.am: Rebuild dependency.
6447 * Makefile.in: Rebuild.
6449 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6451 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6452 (elf_backend_copy_indirect_symbol): Map to the new function.
6454 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6456 * archive.c (normalize): Correct pointer comparison when checking
6458 (bfd_bsd_truncate_arname): Likewise.
6459 (bfd_gnu_truncate_arname): Likewise.
6461 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6463 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6464 sections elf_{text,data}_{section,symbol}.
6465 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6466 (_bfd_mips_elf_hide_symbol): New function.
6467 (elf_backend_hide_symbol): Map to the new function.
6468 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6469 definitions of mips_elf_{text,data}_{section,symbol}.
6470 (mips_elf_local_relocation_p): Try to find the direct symbol
6471 based on new check_forced argument.
6472 (mips_elf_calculate_relocation): Use new version of
6473 mips_elf_local_relocation_p.
6474 (mips_elf_relocate_section): Likewise.
6475 (_bfd_mips_elf_relocate_section): Likewise.
6476 (mips_elf_sort_hash_table): Only assert that have enough GOT
6478 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6479 entry if the relocation based on the new external argument.
6480 (mips_elf_create_dynamic_relocation): Assert that we have a
6481 section contents allocated where we can swap out the dynamic
6483 (mips_elf_calculate_relocation): Find the real hash-table entry
6484 correctly by using h->root.root.type. Only create a dynamic
6485 relocation entry if the symbol is defined in a shared library.
6486 Create an external GOT entry for the GOT16 relocation if the
6487 symbol was forced local.
6488 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6489 dynamic index if the symbol was forced local.
6491 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6493 * elf32-mips.c: Fix typos in comments.
6495 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6497 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6500 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6502 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6503 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6504 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6505 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6506 (bfd_elf32_m68hc11_vec): Likewise.
6507 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6508 Supports 68hc11 & 68hc12 at the same time.
6509 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6511 (bfd_elf32_m68hc11_vec): Likewise.
6512 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6513 * archures.c (bfd_m68hc12_arch): Define and register in global list
6514 (bfd_m68hc11_arch): Likewise.
6515 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6516 BFD_RELOC_M68HC11_3B): Define.
6517 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6518 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6520 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6522 * elf_bfd.h (struct elf_backend_data): Add info argument to
6523 elf_backend_hide_symbol.
6524 (_bfd_elf_link_hash_hide_symbol): Likewise.
6525 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6526 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6527 * elflink.h (elf_link_add_object_symbols): Likewise.
6528 (elf_link_assign_sym_version): Likewise.
6530 2000-06-18 H.J. Lu <hjl@gnu.org>
6532 * coff-i386.c (coff_i386_reloc): Don't return in case of
6533 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6534 Compensate PE relocations when linking with non-PE object
6535 files to generate a non-PE executable.
6537 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6539 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6540 GOT entries if we're doing a static link or -Bsymbolic link.
6542 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6544 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6545 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6547 (elf_link_output_relocs): Likewise.
6548 (elf_reloc_link_order): Likewise.
6550 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6552 * archures.c (enum bfd_architecture): #define constants for
6553 PowerPc and RS6000 machine numbers.
6554 * bfd-in2.h: Regenerate.
6555 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6556 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6557 and RS6000 machine numbers using #defined constants from
6559 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6560 machine numbers using #defined constants from archures.c. Add
6561 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6562 64-bit words in 620 entry.
6563 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6565 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6567 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6569 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6570 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6571 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6573 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6575 * bfd-in.h (bfd_family_coff): Define.
6576 * bfd-in2.h: Regenerate.
6577 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6578 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6579 instead of bfd_target_coff_flavour.
6580 * cofflink.c (_bfd_coff_final_link): Likewise.
6581 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6582 exclude XCOFF files.
6583 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6585 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6586 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6587 * xcofflink.c (XCOFF_XVECP): Delete.
6588 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6589 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6590 bfd_xcoff_record_link_assignment,
6591 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6592 check for bfd_target_xcoff_flavour.
6594 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6596 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6598 (read_hdr): New function.
6599 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6600 of trying to extract individual registers. Set abfd->arch_info
6601 to match the architecture that created the core file.
6602 (rs6000coff_get_section_contents): Delete.
6603 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6605 2000-06-14 H.J. Lu <hjl@gnu.org>
6607 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6610 2000-06-13 H.J. Lu <hjl@gnu.org>
6612 * configure: Regenerate.
6614 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6616 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6619 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6621 * configure.in (VERSION): Update to show this is the CVS mainline.
6623 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6625 * elf32-d10v.c: Include elf/d10v.h
6626 (enum reloc_type): Delete.
6627 * elf32-d30v.c: Include elf/d30v.h
6628 (enum reloc_type): Delete.
6630 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6631 * Makefile.in: Regenerate.
6633 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6634 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6635 move HOWTOs into elf_howto_table.
6636 (R_386_standard, R_386_ext_offset): Define.
6637 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6638 (elf_i386_reloc_type_lookup): Modify calculation of index into
6639 elf_howto_table since we've removed the padding.
6640 (elf_i386_info_to_howto_rel): Likewise.
6641 (elf_i386_relocate_section): Likewise.
6643 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6645 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6647 2000-06-05 H.J. Lu <hjl@gnu.org>
6649 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6650 an error when seeing an undefined symbol with hidden/internal
6651 attribute. It is handled in *_relocate_section ().
6653 2000-06-05 H.J. Lu <hjl@gnu.org>
6655 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6656 indirect symbol for the ELF_LINK_NON_ELF bit.
6657 (elf_link_output_extsym): Don't output the indirect symbol even
6658 if the ELF_LINK_NON_ELF bit is set.
6660 2000-06-01 J.T. Conklin <jtc@redback.com>
6662 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6663 (i[3456]86-*-netbsdaout*): New target.
6664 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6665 (i[3456]86-*-openbsd*): Likewise.
6667 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6669 * trad-core.c: From hpux-core.c, include <dirent.h> or
6670 <sys/ndir.h> when possible.
6672 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6674 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6675 definitions. We must not assume they are sorted in the file
6676 according to their index numbers.
6678 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6680 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6681 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6682 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6684 2000-05-30 Nick Clifton <nickc@cygnus.com>
6686 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6687 80960CA, 80960MC as valid machine names.
6689 2000-05-30 H.J. Lu <hjl@gnu.org>
6691 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6692 visibility bits if the symbol is undefined. Correctly handle
6693 weak undefined symbols with hidden and internal attributes.
6695 * elflink.h (elf_link_add_object_symbols): Always turn the
6696 symbol into local if it has the hidden or internal attribute.
6698 2000-05-29 Philip Blundell <philb@gnu.org>
6700 * ppcboot.c: Add packed attribute if compiling with GCC.
6702 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6704 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6706 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6708 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6709 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6710 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6713 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6715 * Makefile.am: Update dependencies with "make dep-am"
6716 * Makefile.in: Regenerate.
6718 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6719 bindtextdomain): Replace defines with those from intl/libgettext.h
6720 to quieten gcc warnings.
6722 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6724 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6726 * archive.c (normalize, bfd_bsd_truncate_arname,
6727 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6728 file names with backslashes.
6730 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6733 * sysdep.h: Include filenames.h.
6735 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6737 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6739 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6741 * elf64-sparc.c (sparc64_elf_relax_section): New.
6742 (sparc64_elf_relocate_section): Optimize tail call into branch always
6744 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6745 (elf32_sparc_relax_section): New.
6747 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6749 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6750 Remove unusued variables.
6751 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6752 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6753 previous fix, so that shared libs really don't influence targets
6754 extension mask and memory model.
6756 2000-05-23 H.J. Lu <hjl@gnu.org>
6758 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6759 h->root.other not h->other.
6760 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6762 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6764 2000-05-23 H.J. Lu <hjl@gnu.org>
6766 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6767 undefined symbol with the non-default visibility attributes.
6768 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6769 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6770 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6771 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6772 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6773 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6774 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6775 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6776 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6777 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6778 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6780 2000-05-22 Richard Henderson <rth@cygnus.com>
6782 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6783 PCREL22, PCREL64I. Zero size of special relocs.
6784 (elf64_ia64_reloc_type_lookup): Likewise.
6785 (USE_BRL, oor_brl, oor_ip): New.
6786 (elf64_ia64_relax_section): New.
6787 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6788 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6789 (elf64_ia64_relocate_section): Likewise.
6790 (bfd_elf64_bfd_relax_section): New.
6791 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6792 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6793 * bfd-in2.h, libbfd.h: Regenerate.
6795 2000-05-22 Nick Clifton <nickc@cygnus.com>
6797 * configure.in : Add peigen.lo to MIPS PE targets.
6798 * configure: Regenerate.
6800 2000-05-22 Momchil Velikov <velco@fadata.bg>
6802 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6803 only if it is known for both input and output bfds. Separate
6804 error message strings as in some languages, it may be necessary
6805 to change more than one place in the string to change between
6808 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6809 endianess checks, call _bfd_generic_verify_endian_match() instead.
6811 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6813 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6815 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6816 endianess before checking bfd flavours.
6818 2000-05-22 H.J. Lu <hjl@gnu.org>
6820 * elflink.h (elf_link_output_extsym): Clear the visibility
6821 field for symbols not defined locally.
6823 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6825 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6826 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6827 (hppa_rebuild_insn): Mask immediate bits here instead.
6828 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6830 2000-05-18 Momchil Velikov <velco@fadata.bg>
6832 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6833 relocs for an executable, ensure that they are virtual addresses.
6835 2000-05-18 Jeffrey A Law (law@cygnus.com)
6837 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6839 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6840 Rick Gorton <gorton@scrugs.lkg.dec.com>
6842 * elflink.h: Add emitrelocations support: when enabled, relocation
6843 information and relocation sections are put into final output
6844 executables. If the emitrelocations flag is set, do the following:
6845 (elf_bfd_final_link): Emit relocation sections.
6846 (elf_link_input_bfd): Compute relocation section contents.
6847 (elf_gc_sections): Don't clean relocation sections.
6849 2000-05-16 Catherine Moore <clm@cygnus.com>
6851 * som.c (som_decode_symclass): Recognize weak symbols.
6853 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6855 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6856 read idata section only from dataoff.
6857 (pe_print_edata): Correctly check for valid eat_member.
6859 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6861 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6863 2000-05-14 Philip Blundell <philb@gnu.org>
6865 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6867 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6869 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6871 * peigen.c (pe_print_idata): Look for .idata section and print
6872 info even if data directory has zero entries. Read idata section
6873 starting from dataoff, and adjust all data offsets to suit. Cast
6874 all bfd_vma vars to unsigned long before passing to fprintf.
6875 * peigen.c (pe_print_edata): Similarly, look for .edata section
6876 and print info even if data directory has zero entries. Cast
6877 all bfd_vma vars to unsigned long before passing to fprintf.
6879 From Szabolcs Szakacsits <szaka@F-Secure.com>
6880 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6881 directory size which may be bogus.
6882 * peigen.c (pe_print_edata): Similarly.
6884 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6886 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6888 (copy_private_bfd_data): Allow for space possibly taken up by elf
6889 headers when calculating segment physical address from lma.
6891 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6893 * versados.c (versados_scan): Init stringlen and pass_2_done.
6895 * trad-core.c (trad_unix_core_file_p): Return
6896 bfd_error_wrong_format rather than bfd_error_file_truncated.
6898 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6899 add_data_entry. DataDirectory virtual address is relative.
6900 (pe_print_idata): Account for relative DataDirectory virtual
6901 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6902 (pe_print_edata): Similarly.
6904 From Szabolcs Szakacsits <szaka@F-Secure.com>
6905 * peigen.c (dir_names): Add Delay Import Directory.
6906 (pe_print_idata): Always search for bfd section containing
6907 idata address rather than looking up section name. Print this
6908 section name rather than .idata.
6909 (pe_print_edata): Similarly. Also print some fields as %08lx.
6910 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6913 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6915 * xcoff.h: Rename to xcoff-target.h
6916 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6917 * coff-rs6000.c: Ditto.
6918 * coff64-rs6000.c: Ditto.
6919 * coff-pmac.c: Ditto.
6920 * Makefile.in: Regenerate.
6922 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6924 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6925 Change U802TOC64MAGIC to U803XTOCMAGIC.
6927 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6929 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6930 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6931 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6933 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6935 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6937 2000-05-03 Martin v. L�öwis <loewis@informatik.hu-berlin.de>
6939 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6940 hidden and internal symbols.
6941 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6943 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6944 assign a PLT or GOT entry to symbols with hidden and
6945 internal visibility.
6947 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6949 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6951 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6953 2000-05-02 H.J. Lu <hjl@gnu.org>
6955 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6958 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6960 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6961 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6963 * Makefile.in: Regenerate.
6965 2000-05-01 Jim Wilson <wilson@cygnus.com>
6967 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6968 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6969 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6970 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6971 * Makefile.in: Rebuild.
6973 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6975 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6976 doesn't work very well.
6978 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6979 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6980 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6981 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6982 (elf_hppa_info_to_howto): Likewise.
6983 (elf_hppa_info_to_howto_rel): Likewise.
6984 (elf_hppa_reloc_type_lookup): Likewise.
6985 (elf_hppa_is_local_label_name): Likewise.
6986 (elf_hppa_fake_sections): Likewise.
6987 (elf_hppa_final_write_processing): Likewise.
6988 (elf_hppa_howto_table): Fully initialise all entries.
6989 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6990 (elf_hppa_info_to_howto): Likewise.
6991 (elf_hppa_info_to_howto_rel): Likewise.
6992 (elf_hppa_reloc_type_lookup): Likewise.
6993 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6994 elf_hppa_unmark_useless_dynamic_symbols,
6995 elf_hppa_remark_useless_dynamic_symbols,
6996 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6997 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6998 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6999 elf32-hppa.c mess is cleaned up.
7000 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7001 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7002 r_field then call hppa_field_adjust inline func with variable
7003 r_field arg, instead call hppa_field_adjust with fixed arg.
7004 In case R_PARISC_PCREL22F, don't set r_field.
7005 (elf_hppa_relocate_insn): Change args and return type to unsigned
7006 int. Call re_assemble_* funcs to do the work.
7008 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7011 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7013 (sign_extend): Mask first before sign extending.
7014 (low_sign_extend): Rewrite without condition expression.
7015 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7016 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7017 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7018 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7019 result as function return value rather than through pointer arg.
7020 Accept unsigned int args, and return unsigned int.
7021 (re_assemble_3): New. Combines function of dis_assemble_3 with
7022 re-assembly of opcode and immediate.
7023 (re_assemble_12): Likewise.
7024 (re_assemble_16): Likewise.
7025 (re_assemble_17): Likewise.
7026 (re_assemble_21): Likewise.
7027 (re_assemble_22): Likewise.
7028 (hppa_field_adjust): Rewrite and document, paying attention to
7029 size of types and signed/unsigned issues.
7030 (get_opcode): Shift before masking.
7031 (FDLW): Rename to FLDW.
7032 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7033 (hppa_rebuild_insn): Change args and return value to unsigned
7034 int. Make use of re_assemble_*. Correct case 11.
7036 * dep-in.sed: Handle ../opcodes/.
7037 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7038 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7039 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7040 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7041 elfarm-nabi.lo dependencies outside of auto-dependency area.
7042 Regenerate dependencies.
7043 * Makefile.in: Regenerate.
7045 * configure.in (TRAD_HEADER): Test non-null before
7047 * configure: Regenerate.
7049 * reloc.c: Fix mis-spelling in comment.
7051 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7053 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7054 * vms.c (vms_openr_next_archived_file): Return NULL.
7056 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7058 * coffcode.h Copy changes mistakenly done to libcoff.h in
7061 2000-04-29 Andreas Jaeger <aj@suse.de>
7063 * libbfd-in.h: Correctly check GCC version.
7064 * bfd-in.h: Likewise.
7065 * libhppa.h: Likewise.
7066 * libbfd.h: Regenerate.
7067 * bfd-in2.h: Regenerate.
7069 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7071 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7072 coffdu-rs6000.{lo,c}.
7073 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7075 * Makefile.in: Regenerate.
7076 * xcoff.h: New file.
7077 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7078 * coff-rs6000.c: Move all declarations and defines that are
7079 common to the xcoff backends into xcoff.h
7080 * coff64-rs6000.c: Ditto,
7082 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7084 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7085 _bfd_coff_force_symnames in strings and
7086 _bfd_coff_debug_string_prefix_length to their default values.
7087 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7089 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7091 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7092 _bfd_coff_force_symnames in strings and
7093 _bfd_coff_debug_string_prefix_length to their default values.
7095 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7097 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7098 Check local_got_refcounts before dereferencing.
7100 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7101 before deciding we don't need R_PPC_PLT32 relocation.
7102 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7105 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7107 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7109 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7110 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7111 (elf_i386_relocate_section): Allow for .plt to go missing.
7112 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7113 can use a relative reloc for got as elf_i386_relocate_section.
7114 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7116 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7118 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7120 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7122 * Makefile.am (coff64-rs6000.lo): New rule.
7123 * Makefile.in: Regenerate.
7124 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7125 xcoff_is_local_label_name, xcoff_rtype2howto,
7126 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7127 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7128 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7129 (NO_COFF_SYMBOLS): Define.
7130 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7131 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7133 (MINUS_ONE): New macro.
7134 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7136 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7137 coff_SWAP_aux_out): Map to the new functions.
7138 * coff64-rs6000.c: New file.
7139 * libcoff.h (bfd_coff_backend_data): Add new fields
7140 _bfd_coff_force_symnames_in_strings and
7141 _bfd_coff_debug_string_prefix_length.
7142 (bfd_coff_force_symnames_in_strings,
7143 bfd_coff_debug_string_prefix_length): New macros for above fields.
7144 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7145 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7146 of using coff_swap_sym_in directly.
7147 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7148 (coff_set_flags) Set magic for XCOFF64.
7149 (coff_compute_section_file_positions): Add symbol name length to
7150 string section length if bfd_coff_debug_string_prefix_length is
7152 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7153 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7154 using coff_swap_lineno_in directly.
7155 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7156 and _bfd_coff_debug_string_prefix_length fields.
7157 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7158 symbol names into strings table when
7159 bfd_coff_force_symnames_in_strings is true.
7160 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7161 SET_RELOC_VADDR): New macros.
7162 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7163 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7165 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7166 changes within RS6000COFF_C specific code.
7167 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7168 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7169 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7170 Extend existing hack on target name.
7171 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7173 * coff-tic54x.c (ticof): Keep up to date with new fields
7174 in bfd_coff_backend_data.
7175 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7176 targ_selvecs to include rs6000coff64_vec for rs6000.
7177 * configure.in: Add rs6000coff64_vec case.
7178 * cpu-powerpc.c: New bfd_arch_info_type.
7180 2000-04-24 Jeffrey A Law (law@cygnus.com)
7182 * config.bfd: Only disable elf32-hppa vectors, not all of the
7183 BSD and OSF configuration support. Provide (disabled) clauses
7185 * configure.in: Add clause for PA64 support.
7186 * configure: Rebuilt.
7188 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7189 (bfd_elf64_hppa_vec): Declare.
7191 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7192 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7193 (elf64-hppa.lo): Add dependencies.
7194 * Makefile.in: Rebuilt.
7196 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7198 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7200 * libhppa.h (dis_assemble_16): New function.
7201 (pa_arch): Added pa20w element.
7203 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7205 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7206 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7207 bfd_elf64_slurp_reloc_table.
7209 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7210 definitions to get external names.
7211 (elf_write_relocs): Renamed from write_relocs and make global.
7212 (elf_slurp_reloc_table): Make global.
7213 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7215 * archive.c (hpux_uid_gid_encode): New function.
7216 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7217 defined and the ID is greater than 99999.
7218 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7219 special uid/gid fields into 32 bit values.
7221 2000-04-21 Matthew Green <mrg@cygnus.com>
7223 * config.bfd: Add NetBSD/sparc64 support.
7225 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7226 David Mosberger <davidm@hpl.hp.com>
7227 Timothy Wall <twall@cygnus.com>
7228 Jim Wilson <wilson@cygnus.com>
7230 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7231 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7232 (BFD64_BACKENDS): Add elf64-ia64.lo.
7233 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7234 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7235 * Makefile.in: Rebuild.
7236 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7237 (bfd_ia64_arch): Declare.
7238 (bfd_archures_list): Add bfd_ia64_arch.
7239 * bfd-in2.h: Rebuild.
7240 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7241 * configure: Rebuild.
7242 * configure.host: (ia64-*-linux*): New host.
7243 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7244 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7245 * elf.c (prep_headers): Add bfd_arch_ia64.
7246 * libbfd.h: Rebuild.
7247 * reloc.c: Add IA-64 relocations.
7248 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7250 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7251 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7253 2000-04-21 Richard Henderson <rth@cygnus.com>
7255 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7256 contents when performing a partial link.
7257 (bfd_elf_d30v_reloc_21): Likewise.
7259 2000-04-20 H.J. Lu <hjl@gnu.org>
7261 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7262 patch to symbols defined by a shared object.
7263 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7265 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7268 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7269 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7271 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7273 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7274 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7275 (coff-ia64.lo): Add dependency.
7276 * Makefile.in: Regenerate.
7277 * coff-ia64.c: New file.
7278 * efi-app-ia32.c: Ditto.
7279 * efi-app-ia64.c: Ditto.
7280 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7281 (coff_set_flags): Ditto.
7282 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7283 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7284 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7285 * configure: Regenerate.
7286 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7287 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7288 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7289 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7290 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7291 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7292 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7293 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7294 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7295 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7296 (GET_PDATA_ENTRY): Ditto.
7297 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7298 data_start. Use above macros to read fields that are 64 bit wide for
7299 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7300 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7301 FileAlignment and SectionAlignment to minimum alignment if they
7303 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7304 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7305 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7306 Use above macros to write fields that are 64 bit wide for
7308 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7309 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7310 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7311 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7312 begin address, end address, and unwind info address only. Use
7313 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7315 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7316 HIGH3ADJ relocation names.
7317 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7318 * targets.c: Declare bfd_efi_app_ia32_vec and
7319 bfd_efi_app_ia64_vec.
7320 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7321 bfd_efi_app_ia64_vec.
7323 2000-04-17 Timothy Wall <twall@cygnus.com>
7325 * bfd-in2.h: Add prototypes for tic54x load page access.
7326 * bfd-in.h: Regenerate.
7327 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7328 in customized _set_arch_mach function.
7329 * coffcode.h (coff_set_alignment_hook): Set section load page if
7330 the appropriate macro is defined.
7331 (write_object_contents): Read section load page.
7333 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7335 * elf32-hppa.h: Update copyright date.
7337 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7338 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7340 * elf32-d30v.c (MAX32): Don't use LL suffix.
7341 (MIN32): Define in terms of MAX32.
7342 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7344 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7347 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7349 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7351 * dep-in.sed: Match space before file name, not after.
7352 * Makefile.am: Regenerate dependencies.
7353 * Makefile.in: Regenerate.
7355 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7356 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7357 extend without an if statement.
7359 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7361 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7363 * elf32-mips.c (gprel16_with_gp): Likewise.
7364 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7365 here using -0x40000, not (int)0xfffc0000.
7366 (elf32_hppa_size_of_stub): Likewise.
7368 2000-04-11 Timothy Wall <twall@cygnus.com>
7370 * coff-tic54x.c: Now builds with all targets.
7371 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7372 * Makefile.in: Regenerate.
7373 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7374 unitialized variable.
7376 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7378 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7379 --enable-build-warnings option.
7380 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7381 * Makefile.in, configure: Re-generate.
7383 2000-04-07 Nick Clifton <nickc@cygnus.com>
7385 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7386 BFD_RELOC_THUMB_PCREL_BLX.
7388 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7389 R_ARM_XPC25 and R_ARM_THM_PC22.
7391 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7392 R_ARM_XPC25 and R_ARM_THM_XPC22.
7393 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7394 R_ARM_[XPC25|THM_XPC22].
7396 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7397 elf/arm-oabi.h to elf/arm.h
7399 * Makefile.am: Fix dependency for elfarm-oabi.c
7400 * Makefile.in: Regenerate.
7402 * bfd-in2.h: Regenerate.
7403 * libbfd.h: Regenerate.
7405 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7407 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7408 and restore it on failure. Release newly allocated tdata on
7411 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7413 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7414 (decode_line_info): Set it. Report error if unit->line_offset is
7415 equal to or larger than it.
7417 2000-04-07 Timothy Wall <twall@cygnus.com>
7419 * targets.c: Added vecs for tic54x.
7420 * reloc.c: Added relocs for tic54x.
7421 * libbfd.h: Regenerated.
7422 * configure: Add TI COFF vecs for tic54x.
7423 * configure.in: Ditto.
7424 * config.bfd (targ_cpu): Recognize new tic54x target.
7425 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7426 * bfd-in2.h: Add tic54x target and relocations.
7427 * Makefile.am, Makefile.in: Add tic54x target.
7428 * archures.c (bfd_archures_list): Add tic54x target.
7429 * coff-tic54x.c: New.
7430 * cpu-tic54x.c: New.
7432 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7434 * elfcore.h (elf_core_file_p): call backend_object_p which
7435 thereby gets an opportunity to update the arch/machine type.
7437 2000-04-06 Timothy Wall <twall@cygnus.com>
7439 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7440 class. Handle SEC_CLINK and SEC_BLOCK flags.
7441 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7442 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7444 2000-04-06 Nick Clifton <nickc@cygnus.com>
7446 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7447 EF_INTERWORK if this is an unknown EABI.
7448 (elf32_arm_merge_private_bfd_data): Check EABI version
7449 numbers. Only check EF_xxx flags if the EABI version number
7451 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7452 if the EABI version number is unknown.
7453 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7454 if the EABI version number is unknown.
7456 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7458 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7459 BFD_RELOC_SH_LOOP_END.
7460 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7461 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7462 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7463 (sh_elf_reloc_loop): New function.
7464 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7466 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7467 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7468 * bfd-in2.h, libbfd.h: Regenerate.
7470 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7472 * po/bfd.pot: Regenerate.
7474 * Makefile.am: Remove extraneous mkdep comment.
7475 (MKDEP): Use gcc -MM rather than mkdep.
7476 (DEP): Quote when passing vars to sub-make. Add warning
7478 (DEP1): Rewrite for "gcc -MM".
7479 (CLEANFILES): Add DEP2.
7480 Update dependencies.
7481 * Makefile.in: Regenerate.
7483 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7485 * configure.in: Added corefile support for AIX 4.3. In particular,
7486 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7487 compiling rs6000-core.c.
7488 * configure: Regenerated.
7490 2000-04-03 H.J. Lu <hjl@gnu.org>
7492 * cache.c (bfd_open_file): Unlink the output file only if
7493 it has non-zero size.
7495 2000-04-01 Ken Block USG <block@zk3.dec.com>
7497 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7498 relative relocations for non-loaded sections in shared objects.
7499 (elf64_alpha_check_relocs): Similarly.
7501 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7503 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7504 BFD_RELOC_16 to switch for extended relocs.
7505 (MY_swap_ext_reloc_in): New.
7506 (MY_swap_ext_reloc_out): New.
7507 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7508 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7509 (NAME(aout,squirt_out_relocs)): Similarly use
7510 MY_swap_ext_reloc_out.
7511 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7513 2000-04-03 Kazu Hirata <kazu@hxi.com>
7515 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7516 the R_PCRWORD_B case.
7518 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7520 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7524 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7526 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7527 HOWTO references to bfd_elf_generic_reloc, that have
7528 partial_inplace == true, now use the new function. The function
7529 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7530 extends its fixes to the R_M32R_{16,24,32} relocs.
7531 The new logic in m32r_elf_lo16_reloc() has been removed, and
7532 it instead calls the new routine to obtain that functionality.
7534 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7536 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7537 elf32_avr_check_relocs, avr_final_link_relocate,
7538 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7539 elf32_avr_object_p): Add prototypes.
7540 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7541 (bfd_elf_avr_final_write_processing): Make static.
7543 2000-03-27 Denis Chertykov <denisc@overta.ru>
7545 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7546 * archures.c (bfd_architecture): Add AVR architecture.
7547 (bfd_archures_list): Add reference to AVR architecture info.
7548 * elf.c (prep_headers): Handle bfd_arch_avr.
7549 * reloc.c: Add various AVR relocation enums.
7550 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7552 * Makefile.am: Add support for AVR elf.
7553 * configure.in: Likewise.
7554 * config.bfd: Likewise.
7555 * Makefile.in: Regenerate.
7556 * configure: This too.
7557 * bfd-in2.h: And this.
7558 * libbfd.h: And this.
7560 2000-03-24 H.J. Lu <hjl@gnu.org>
7562 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7563 (elf64_alpha_find_reloc_at_ofs): Likewise.
7565 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7567 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7568 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7569 allowable range used to be -2**(n-1) to 2**n-1.
7570 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7571 "boolean overflow" with "bfd_reloc_status_type flag".
7573 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7575 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7577 2000-03-14 Kazu Hirata <kazu@hxi.com>
7579 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7580 of shrinks properly, including the last reloc.
7582 2000-03-13 Kazu Hirata <kazu@hxi.com>
7584 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7587 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7589 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7590 a format mismatch rather than an "error" from bfd_read such as
7591 bfd_error_file_truncated.
7593 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7595 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7596 sign-extension and big-endian compensation for
7597 R_MIPS_64 even in ld -r.
7599 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7601 * elf32-mips.c (mips_elf_next_relocation): Rename from
7602 mips_elf_next_lo16_relocation, and generalize to look
7603 for any relocation type.
7604 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7605 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7606 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7607 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7608 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7609 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7610 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7611 (mips_rtype_to_howto): Likewise.
7612 (mips_elf_calculate_relocation): Handle new relocs.
7613 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7614 are paired. The addend for R_MIPS_GNU_REL16_S2
7615 is shifted right two bits.
7617 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7619 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7620 comment, and ensure it doesn't happen again.
7621 (bfd_install_relocation): Same here.
7622 (_bfd_relocate_contents): Don't bother assigning unused signmask
7623 shift result. Fix typos in comments.
7624 Remove trailing whitespace throughout file.
7626 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7628 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7629 * bfd-in2.h: Rebuild.
7631 2000-03-06 Nick Clifton <nickc@cygnus.com>
7633 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7635 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7636 (SIZEOF_ILF_STRINGS): Redefine.
7637 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7638 relative reloc, as opposed to a section relative reloc.
7639 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7641 Add length of symbol's prefix to string pointer.
7642 Store a pointer to the symbol in the symbol pointer table.
7643 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7644 Initialise the symbol pointer table.
7645 Store the hint in the Hint/Name table.
7646 Make the jump reloc be symbol realtive, not section relative.
7647 Create an import symbol for imported code.
7649 2000-03-06 Catherine Moore <clm@cygnus.com>
7651 * elf.c (swap_out_syms): Check for null type_ptr.
7653 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7655 * aout-target.h (MY(write_object_contents)): Remove unused
7656 and unusable "#if CHOOSE_RELOC_SIZE".
7657 * pc532-mach.c (MY(write_object_contents)): Ditto.
7658 * netbsd.h (MY(write_object_contents)): Ditto.
7659 * hp300hpux.c (MY(write_object_contents)): Ditto.
7660 * freebsd.h (MY(write_object_contents)): Ditto.
7661 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7663 2000-02-29 H.J. Lu <hjl@gnu.org>
7665 * peicode.h (jtab): Make it static.
7667 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7668 defined and COFF_IMAGE_WITH_PE is not defined.
7669 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7670 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7672 2000-03-01 Nick Clifton <nickc@cygnus.com>
7674 * coff-arm.c (bfd_arm_process_before_allocation): Make
7675 'symndx' signed to prevent compile time warning.
7677 * coff-mcore.c: Remove unused prototype for pe_object_p.
7679 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7680 functions that are not used when COFF_IMAGE_WITH_PE is
7682 (struct sh_opcode): Change type of 'flags' field to unsigned
7683 long so that it can hold the USESAS flag.
7685 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7687 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7690 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7692 Remove unusued variables and code.
7693 (elf_backend_add_symbol_hook): Fix prototype.
7695 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7698 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7701 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7703 Remove unusued variables and code.
7704 (elf_backend_add_symbol_hook): Fix prototype.
7706 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7708 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7709 to unused function parameter.
7711 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7713 Use EMPTY_HOWTO to initialise empty howto slots.
7714 Remove unused variables.
7716 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7718 2000-03-01 H.J. Lu <hjl@gnu.org>
7720 * aoutx.h (aout_link_input_section_std): Pass "true" to
7721 the undefined_symbol callback.
7722 (aout_link_input_section_ext): Likewise.
7723 * bout.c (get_value): Likewise.
7724 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7725 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7727 (alpha_relocate_section): Likewise.
7728 * coff-arm.c (coff_arm_relocate_section): Likewise.
7729 * coff-i960.c (coff_i960_relocate_section): Likewise.
7730 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7731 * coff-mips.c (mips_relocate_section): Likewise.
7732 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7733 * coff-sh.c (sh_relocate_section): Likewise.
7734 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7735 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7736 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7737 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7738 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7739 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7740 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7741 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7742 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7743 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7744 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7745 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7746 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7747 * elflink.h (elf_link_output_extsym): Likewise.
7748 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7749 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7750 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7752 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7753 undefined_symbol callback when building shared library with
7754 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7756 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7757 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7758 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7759 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7760 (elf32_mips_get_relocated_section_content): Likewise.
7761 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7762 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7763 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7764 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7766 2000-02-28 Nick Clifton <nickc@cygnus.com>
7768 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7769 * Makefile.in: Regenerate.
7771 * configure.in: Add support for mips and sh pe vectors.
7772 * configure: regenerate.
7774 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7777 * targets.c: Add mips and sh pe vectors.
7779 * libpei.h (coff_final_link_postscript): Only define if not
7782 * coffcode.h: Add support for WinCE magic numbers.
7784 * peigen.c (pe_print_reloc): Update comment and rearrange
7785 appending of newline character.
7787 * peicode.h: Add support for Image Library Format.
7788 (pe_ILF_vars): Structure containing data used by ILF code.
7789 (pe_ILF_make_a_section): New function. Create a section based
7791 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7793 (pe_ILF_make_a_symbol): New function. Create a symbol based
7795 (pe_ILF_save_relocs): New function. Store the relocs created
7796 by pe_ILF_make_a_reloc in a section.
7797 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7799 (pe_ILF_object_p): New function. Return a bfd_target pointer
7801 (pe_bfd_object_p): If an ILF object is detected call
7802 pe_ILF_object_p on it.
7804 * coff-arm.c: Add support for WinCE relocs which are different
7805 from normal ARM COFF relocs.
7806 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7808 * coff-sh.c: Add support for sh-pe target.
7809 * pe-sh.c: New file. Support code for sh-pe target.
7810 * pei-sh.c: New file. Support code for sh-pe target.
7812 * pe-mips.c: New file. Support code for mips-pe target.
7813 * pei-mips.c: New file. Support code for mips-pe target.
7815 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7817 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7818 architecture if the object causing the bump is dynamic.
7819 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7820 and also don't it for memory ordering.
7821 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7823 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7825 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7826 calling bfd_get_section_size_before_reloc.
7827 (decode_line_info): Likewise.
7828 (_bfd_dwarf2_find_nearest_line): Likewise.
7830 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7832 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7833 name of the libtool directory.
7834 * Makefile.in: Rebuild.
7836 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7838 * som.c (SOM_HOWTO): Define.
7839 (som_hppa_howto_table): Use it.
7841 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7843 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7845 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7847 2000-02-24 Catherine Moore <clm@cygnus.com>
7849 * som.c (som_misc_symbol_info): Add field
7851 (som_bfd_derive_misc_symbol_info): Initialize
7853 (som_build_and_write_symbol_table): Keep track
7854 of secondary_def field.
7855 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7856 if secondary_def field is set.
7857 (som_bfd_ar_write_symbol_stuff): Initialize
7860 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7862 * dwarf2.c (read_address): Read 16-bits addresses.
7863 (parse_comp_unit): Accept addr_size == 2.
7865 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7867 * bfd-in.h: Update copyright date.
7869 2000-02-23 Linas Vepstas <linas@linas.org>
7871 * cpu-i370.c: New file.
7872 * elf32-i370.c: New file.
7873 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7874 (bfd_i370_arch): New.
7875 (bfd_archures_list): Add bfd_i370_arch.
7876 * elf.c (prep_headers): Add bfd_arch_i370.
7877 * Makefile.am: Add support for IBM 370 elf.
7878 * config.bfd: Likewise.
7879 * configure.in: Likewise.
7880 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7881 * reloc.c (bfd_reloc_code_type): Likewise.
7882 * targets.c: Likewise.
7884 * Makefile.in: Regenerate.
7885 * configure: Regenerate.
7886 * bfd-in2.h: Regenerate.
7888 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7890 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7891 invalid relocation types, and change them to R_386_NONE.
7893 2000-02-22 H.J. Lu <hjl@gnu.org>
7895 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7896 not defined, don't add a second ELF_VER_CHR.
7898 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7899 symbols converted to local symbols even when stripping all
7901 (elf_link_output_extsym): Process global symbols converted to
7902 local symbols even if they are being stripped.
7904 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7906 * archures.c (bfd_octets_per_byte): Return unsigned int.
7907 (bfd_arch_mach_octets_per_byte): Ditto.
7908 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7910 * section.c (bfd_get_section_size_before_reloc): Quell signed
7911 vs. unsigned comparison warning.
7912 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7913 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7914 change. What was I thinking?
7915 * bfd-in2.h: Regenerate.
7917 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7918 (elf_gc_sections): Same here.
7919 (elf_gc_common_finalize_got_offsets): And here.
7921 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7923 ELF HPPA doesn't work at present; remove it until it does.
7924 * config.bfd: Comment out setting targ_defvec to
7926 * Makefile.am: Rebuild dependencies.
7927 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7928 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7929 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7930 * Makefile.in: Rebuild.
7931 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7933 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7935 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7936 is no bfd_free(). Revert bfd_free part of previous change.
7938 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7940 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7942 (coff_compute_section_file_positions): Use bfd_free to pair
7944 (coff_write_object_contents): Likewise.
7946 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7947 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7949 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7951 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7952 (xcoff_ar_file_hdr_big): New structure.
7953 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7954 (xcoff_ar_hdr_big): New structure.
7955 (SIZEOF_AR_HDR_BIG): New macro.
7956 (xcoff_big_format_p): New macro.
7957 (xcoff_ardata_big): New macro.
7958 (arch_xhdr_big): New macro.
7959 (xcoff_slurp_armap): Handle large archives.
7960 (xcoff_archive_p): Detect large archives.
7961 (xcoff_read_ar_hdr): Handle large archives.
7962 (xcoff_openr_next_archived_file): Handle large archives.
7963 (xcoff_generic_stat_arch_elt): Handle large archives.
7964 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7965 (xcoff_write_armap_big): New function.
7966 (xcoff_write_armap): New function, dispatch to _old or _big.
7967 (xcoff_write_archive_contents_old): Rename from
7968 xcoff_write_archive_contents.
7969 (xcoff_write_archive_contents_big): New function.
7970 (xcoff_write_archive_contents): New function, dispatch to _old or
7973 2000-02-18 Richard Henderson <rth@cygnus.com>
7975 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7976 and hide_symbol members.
7977 (elf_link_hash_copy_indirect): Remove.
7978 (elf_link_hash_hide_symbol): Remove.
7979 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7980 and elf_backend_hide_symbol.
7981 (_bfd_elf_link_hash_copy_indirect): Declare.
7982 (_bfd_elf_link_hash_hide_symbol): Declare.
7983 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7984 (_bfd_elf_link_hash_hide_symbol): Likewise.
7985 (_bfd_elf_link_hash_table_init): Don't init killed members.
7986 * elflink.h (elf_link_add_object_symbols): Use the bed function
7987 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7988 (elf_link_assign_sym_version): Likewise.
7989 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7990 (elf_backend_hide_symbol): Likewise.
7991 (elfNN_bed): Update for new members.
7993 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7995 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7996 STACK_END_ADDR): Define for new core file format.
7997 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7998 for handling the vagaries of the various core file structures used
7999 by AIX over the years.
8000 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8001 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8002 core_dumpx structure.
8004 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8006 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8007 (bfd_mach_sh3_dsp): Likewise.
8008 (bfd_mach_sh4): Reinstate.
8009 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8010 * bfd-in2.h: Regenerate.
8011 * coff-sh.c (struct sh_opcode): flags is no longer short.
8012 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8013 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8014 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8015 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8016 (sh_opcodes): No longer const.
8017 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8018 (sh_insn_uses_reg): Check for USESAS and USESR8.
8019 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8020 (_bfd_sh_align_load_span): Return early for SH4.
8021 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8022 Take into account that field b of a parallel processing insn
8023 could be mistaken for a separate insn.
8024 * cpu-sh.c (arch_info_struct): New array elements for
8025 sh2, sh-dsp and sh3-dsp.
8026 Reinstate element for sh4.
8027 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8028 (SH4_NEXT): Reinstate.
8029 (SH3_NEXT, SH3E_NEXT): Adjust.
8030 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8031 * elf32-sh.c (sh_elf_set_private_flags): New function.
8032 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8033 (sh_elf_merge_private_data): New function.
8034 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8035 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8036 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8037 sh_elf_merge_private_data.
8039 2000-02-13 Richard Henderson <rth@cygnus.com>
8041 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8042 hide_symbol members.
8043 (elf_link_hash_copy_indirect): New.
8044 (elf_link_hash_hide_symbol): New.
8045 * elflink.h (elf_link_add_object_symbols): Break out copy from
8046 indirect new new symbol to elf.c.
8047 (elf_link_assign_sym_version): Break out privatization of
8048 non-exported symbol to elf.c.
8049 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8050 (_bfd_elf_link_hash_hide_symbol): New.
8051 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8053 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8055 * section.c (_bfd_strip_section_from_output): Add info parameter.
8056 If it passed as non-NULL, use it to check whether any input BFD
8057 has an input section which uses this output section. Change all
8059 * bfd-in2.h: Rebuild.
8061 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8062 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8064 * bfd-in2.h: Rebuild.
8066 2000-02-10 Timothy Wall <twall@cygnus.com>
8068 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8069 allow final modifications of swapped-in symbol.
8070 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8071 * coffcode.h (coff_write_relocs): Use macro
8072 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8073 symbol index should be set to -1.
8075 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8077 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8078 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8079 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8080 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8081 sh_insns_uses_or_sets_freg): New functions.
8082 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8083 * (sh_insns_conflict): Use new functions and new macros to
8084 detect conflicts when two instructions both set same integer registers,
8085 both set same fp register, and both set special register.
8087 2000-02-09 Timothy Wall <twall@cygnus.com>
8089 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8090 swapping in sections, so that the swapping routines have access to
8093 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8095 * coff-go32.c: Update comment. Update copyright.
8097 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8099 * syms.c (bfd_decode_symclass)
8100 Two new class characters were added - 'V' and 'v'. The
8101 meaning of 'W' is now restricted to just weak non-object
8102 symbols. This allows differentiation between, for example,
8103 weak functions vs weak objects. nm for example now dumps:
8105 'w' = weak unresolved
8106 'V' = weak global object
8107 'v' = weak unresolved object
8109 (bfd_is_undefined_symclass): New function. Return true if the
8110 given symbol class represents and undefined/unresolved symbol.
8112 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8115 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8117 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8118 STT_ARM_16BIT flag set, but it is not attached to a data object
8119 return STT_ARM_16BIT so that it will be treated as code by the
8122 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8124 * coff-i386.c (i3coff_object_p): Remove prototype.
8127 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8128 to name. Update copyright.
8130 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8131 assignment to avoid warning. Update copyright.
8133 2000-01-24 Robert Lipe (robertl@sco.com)
8135 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8136 instead of using GNU C extension.
8138 2000-01-21 Nick Clifton <nickc@cygnus.com>
8140 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8141 amount from a bfd_in_memory structure.
8142 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8145 2000-01-14 Nick Clifton <nickc@cygnus.com>
8147 * linker.c (default_indirect_link_order): oops - fix incorrectly
8148 applied patch from Tim Wall.
8150 2000-01-13 Timothy Wall (twall@tiac.net>
8152 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8153 = scnhsz, filhsz, relsz, aoutsz, etc)
8155 * coffswap.h: Ditto.
8157 2000-01-13 Nick Clifton <nickc@cygnus.com>
8159 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8160 interwork thumb to arm stub.
8162 2000-01-13 Timothy Wall (twall@tiac.net>
8164 * archures.c (bfd_octets_per_byte): New function: Return
8166 (bfd_arch_mach_octets_per_byte): New function: Return target
8169 * section.c: Distinguish between octets and bytes for usage of
8170 _cooked_size, _raw_size, and output_offset. Clarify
8171 description of bfd_set_section_contents.
8173 * bfd-in2.h: Regenerate.
8175 * coffgen.c: Indicate that the offset parameter is in bytes, not
8178 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8179 where appropriate to get the octet offset when calling
8180 bfd_set_section_contents.
8181 (bfd_coff_reloc_link_order): Ditto.
8183 * linker.c (bfd_generic_reloc_link_order): Ditto.
8184 (_bfd_default_link_order): Ditto.
8186 * reloc.c (bfd_perform_relocation): Distinguish between octets
8187 and bytes. Use octets when indexing into octet data; use bytes
8188 when calculating target addresses.
8189 (bfd_install_relocation): Ditto.
8191 * srec.c (srec_write_section): Ditto.
8193 2000-01-13 Nick Clifton <nickc@cygnus.com>
8195 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8196 3 to 2. This allows 4 byte sized sections, which is necessary for
8197 dlltool to build functioning DLLs.
8199 2000-01-10 Philip Blundell <pb@futuretv.com>
8201 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8202 (arm*-*-conix*): New target.
8204 2000-01-10 Egor Duda <deo@logos-m.ru>
8206 * config.bfd: Include elf32_i386 vector to target list for cygwin
8209 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8210 * configure.in: Test for structure win32_pstatus_t in
8212 * configure: Regenerate.
8214 * elf.c (elfcore_grok_win32pstatus): New function: process
8215 win32_pstatus_t notes in elf core file.
8216 (elfcore_grok_note): Detect win32_pstatus notes.
8218 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8220 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8222 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8223 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8225 For older changes see ChangeLog-9899
8231 version-control: never