1 2001-08-10 H.J. Lu <hjl@gnu.org>
3 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
4 (bfd_fprintf_vma): Likewise.
6 2001-08-10 H.J. Lu <hjl@gnu.org>
8 * bfd.c (bfd_sprintf_vma): Don't return void.
9 (bfd_fprintf_vma): Likewise.
11 2001-08-10 Andreas Jaeger <aj@suse.de>
13 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
15 * configure: Regenerate.
17 2001-08-10 Alan Modra <amodra@bigpond.net.au>
19 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
20 warning if not BFD64. Add braces so emacs auto format works.
21 (bfd_elf_fprintf_vma): Likewise.
23 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
25 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
26 param to agree with libxcoff.h.
27 (xcoff_swap_ldhdr_out): Likewise.
28 (xcoff_swap_ldsym_in): Likewise.
29 (xcoff_swap_ldsym_out): Likewise.
30 (xcoff_swap_ldrel_in): Likewise.
31 (xcoff_swap_ldrel_out): Likewise.
32 (xcoff_create_csect_from_smclas): Likewise.
33 * coff64-rs6000.c: Add missing prototypes.
34 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
36 (xcoff64_swap_ldhdr_out): Likewise.
37 (xcoff64_swap_ldsym_in): Likewise.
38 (xcoff64_swap_ldsym_out): Likewise.
39 (xcoff64_swap_ldrel_in): Likewise.
40 (xcoff64_swap_ldrel_out): Likewise.
41 (xcoff64_ppc_relocate_section): Make static.
42 (xcoff64_slurp_armap): Likewise.
43 (xcoff64_archive_p): Likewise.
44 (xcoff64_openr_next_archived_file): Likewise.
45 (xcoff64_sizeof_headers): Likewise.
46 (xcoff64_is_lineno_count_overflow): Likewise.
47 (xcoff64_is_reloc_count_overflow): Likewise.
48 (xcoff64_loader_symbol_offset): Likewise.
49 (xcoff64_loader_reloc_offset): Likewise.
50 * elf64-gen.c: Add missing prototypes.
52 2001-08-09 H.J. Lu <hjl@gnu.org>
54 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
55 (bfd_elf_fprintf_vma): Likewise.
57 2001-08-09 H.J. Lu <hjl@gnu.org>
59 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
62 * bfd-in2.h: Regenerated.
64 2001-08-09 H.J. Lu <hjl@gnu.org>
66 * bfd-in.h (bfd_sprintf_vma): New prototype.
67 (bfd_fprintf_vma): Likewise.
68 (bfd_elf_sprintf_vma): Likewise.
69 (bfd_elf_fprintf_vma): Likewise.
70 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
71 * bfd-in2.h: Regenerated.
73 * bfd.c (bfd_sprintf_vma): New. Defined.
74 (bfd_fprintf_vma): Likewise.
76 * elf.c (bfd_elf_sprintf_vma): New. Defined.
77 (bfd_elf_fprintf_vma): Likewise.
79 2001-08-09 Alan Modra <amodra@bigpond.net.au>
81 * coff-rs6000.c: Add missing prototypes.
82 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
83 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
84 xcoff_loader_reloc_offset): Make static.
85 * dwarf1.c: Add missing prototypes.
86 * dwarf2.c: Add missing prototypes.
87 (struct abbrev_info): Move definition.
88 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
89 * elf.c: Add missing prototypes.
90 * elf32-gen.c: Likewise.
91 * elf32-i386.c: Likewise.
92 * elf32-ppc.c: Likewise.
93 (ppc_elf_sort_rela): Use PTR instead of "void *".
94 * elflink.h: Add missing prototypes. Formatting fixes.
95 * merge.c: Add missing prototypes.
96 (last4_eq): Use PTR instead of "void *".
98 * syms.c: Add missing prototypes.
100 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
102 * bfd.c: Fix formatting.
103 * bfd-in2.h: Regenerate.
105 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
107 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
108 true (this target uses REL relocations) and 'pcrel_offset' to
109 false (the PC is implied, not stored in the offset).
111 2001-08-08 Alan Modra <amodra@bigpond.net.au>
113 1999-10-19 Linus Nordberg <linus@swox.se>
114 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
115 * elfxx-target.h (elf_backend_want_got_sym): Define.
116 (elfNN_bed): Add elf_backend_want_got_sym.
117 * elflink.c (_bfd_elf_create_got_section): Define
118 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
120 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
122 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
123 (find_rela_addend): New function.
124 (parse_comp_unit): Call it to find the abbrev offset addend.
125 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
126 members of dwarf2_debug as debugging information is read.
128 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
130 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
131 targets as well as sh-pe.
133 2001-08-03 Ben Harris <bjh21@netbsd.org>
135 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
136 reloc from start of section when computing value for R_ARM_REL32
139 2001-08-03 Alan Modra <amodra@bigpond.net.au>
141 From H.J. Lu <hjl@gnu.org>
142 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
143 keep relocs for undefined syms if there are no dynamic sections in
145 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
147 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
149 * cofflink.c (coff_link_check_ar_symbols): also search for
150 __imp__symbol as well as _symbol.
151 * linker.c (_bfd_generic_link_add_archive_symbols): also
152 search for __imp__symbol as well as _symbol.
154 2001-08-01 Adam Nemet <anemet@lnxw.com>
156 * elf.c (elf_sort_sections): Return zero only as the last step.
158 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
160 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
162 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
163 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
166 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
168 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
169 to match corresponding bfd_coff_backend data member.
171 2001-07-24 Alan Modra <amodra@bigpond.net.au>
173 * Makefile.am: Update dependencies with "make dep-am".
174 * Makefile.in: Regenerate
176 2001-07-15 H.J. Lu <hjl@gnu.org>
178 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
179 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
180 * Makefile.in: Regenerate.
182 2001-07-11 H.J. Lu <hjl@gnu.org>
184 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
185 flags when creating the reloc section if the ALLOC flag in the
186 source section is set.
188 2001-07-11 Steve Ellcey <sje@cup.hp.com>
190 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
191 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
192 * bfd-in2.h: Regenerate.
193 * libbfd.h: Regenerate.
194 * elfxx-ia64.c (ia64_howto_table): Define how to handle
196 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
197 (elfNN_ia64_check_relocs): Likewise.
198 (elfNN_ia64_install_value): Likewise.
199 (elfNN_ia64_relocate_section): Likewise.
201 2001-07-11 Jakub Jelinek <jakub@redhat.com>
203 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
205 (elf32_sparc_check_relocs): Likewise.
206 Only create .rela section for alloced sections in shared libraries.
207 (elf32_sparc_relocate_section): Likewise.
208 Remove redundant check.
209 Optimize unaligned reloc usage.
210 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
213 2001-07-11 H.J. Lu <hjl@gnu.org>
215 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
216 ALLOC|LOAD flags as the source section for debugging sections
217 when creating the reloc section.
219 2001-07-05 Jim Wilson <wilson@redhat.com>
221 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
222 the section of the bigger symbol.
224 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
226 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
228 * peicode.h (coff_swap_scnhdr_in): For sections containing
229 uninitialised data, only set their size to s_paddr if this does
230 not reset their size to zero. MS's latest compilers will set
233 2001-07-04 H.J. Lu <hjl@gnu.org>
235 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
236 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
239 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
241 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
243 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
244 sections being discarded.
246 2001-06-30 Alan Modra <amodra@bigpond.net.au>
248 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
249 instead of _bfd_elfcore_section_from_phdr.
250 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
251 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
252 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
253 (elfcore_grok_prstatus): Likewise.
254 (elfcore_grok_lwpstatus): Likewise.
255 (bfd_get_elf_phdr_upper_bound): Likewise.
256 (elfcore_make_note_pseudosection): Formatting.
257 (_bfd_elfcore_strndup): Formatting.
258 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
259 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
261 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
263 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
264 and _bfd_elfcore_strndup.
265 (struct elf_backend_data): Add elf_backend_grok_prstatus
266 and elf_backend_grok_psinfo.
267 * elf.c (_bfd_elfcore_make_pseudosection): New function.
268 (elfcore_grok_prstatus): Use it.
269 (elfcore_make_note_pseudosection): Likewise.
270 (elfcore_strndup): Rename to...
271 (_bfd_elfcore_strndup): Here, and make global.
272 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
273 (elfcore_grok_note): Call elf_backend_grok_prstatus
274 and elf_backend_grok_psinfo if available.
275 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
276 (_bfd_elf32_mips_grok_psinfo): New function.
277 (elf_backend_grok_prstatus): Define.
278 (elf_backend_grok_psinfo): Define.
279 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
280 (elf_backend_grok_psinfo): Likewise.
281 (elfNN_bed): Include elf_backend_grok_prstatus and
282 elf_backend_grok_psinfo.
284 2001-06-29 H.J. Lu <hjl@gnu.org>
286 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
287 hplink->sgot is NULL before filling GOT. Check if hplink->splt
288 is NULL before filling PLT.
290 2001-06-29 Alan Modra <amodra@bigpond.net.au>
292 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
294 2001-06-27 Alan Modra <amodra@bigpond.net.au>
296 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
298 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
299 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
302 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
303 (IS_ABSOLUTE_RELOC): Define.
304 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
305 (hppa_link_hash_newfunc): Always init it.
306 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
307 create COPY relocs only when the reloc is in a read-only section.
308 Instead, allocate space for a dynamic reloc to reference the
309 library symbol directly. Keep track of space we allocate using
311 (hppa_discard_copies): Delete, and move code to..
312 (allocate_plt_and_got): ..here. Rename to
313 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
314 relocs for non-shared link.
315 (elf32_hppa_size_dynamic_sections): Update calls to above.
316 (elf32_hppa_relocate_section): Write out the dynamic relocs used
317 in lieu of COPY relocs.
319 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
321 (elf_i386_adjust_dynamic_symbol): ..nor here..
322 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
324 (elf_i386_size_dynamic_sections): Fix a comment.
325 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
326 involved in writing reloc out.
328 2001-06-25 Alan Modra <amodra@bigpond.net.au>
330 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
331 Ensure syms are dynamic if we might be emitting a reloc.
332 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
333 for undefweak or undefined syms..
334 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
336 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
337 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
338 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
339 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
341 2001-06-24 H.J. Lu <hjl@gnu.org>
343 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
344 strncasecmp/strcasecmp instead of strncmp/strcmp.
346 2001-06-23 H.J. Lu <hjl@gnu.org>
348 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
349 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
350 in the regular object file and treat the weak definition as
353 2001-06-23 Alan Modra <amodra@bigpond.net.au>
355 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
356 unresolved_reloc test to exclude cases where we use "relocation"
357 before setting it to point into the .got. Reinstate fudge for
358 unresolved relocs in debugging sections.
360 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
361 complicated tests for unresolvable relocs with a simple direct
362 scheme using "unresolved_reloc" var.
364 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
365 elf_i386_dyn_relocs. Update comment.
366 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
368 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
370 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
372 (elf_i386_size_dynamic_sections): Likewise.
373 (elf_i386_finish_dynamic_symbol): Likewise.
374 (elf_i386_finish_dynamic_sections): Likewise.
375 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
378 Avoid creating COPY relocs if possible.
379 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
380 which .got created. Mark symbols used by R_386_32 and R_386_PC32
381 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
382 reloc is in a read-only section. Instead, allocate space for a
383 dynamic reloc to reference the library symbol directly. Keep
384 track of space we allocate using pcrel_relocs_copied.
385 (discard_copies): Delete, and move code to ..
386 (allocate_plt_and_got): ..here. Rename to
387 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
388 relocs for non-shared link.
389 (elf_i386_size_dynamic_sections): Update calls to above functions.
390 (elf_i386_relocate_section): Write out the dynamic relocs. Add
391 more ugly logic to avoid "unresolvable relocation" error. Use
392 htab shortcut in place of elf_hash_table macro.
393 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
394 not always be created now.
396 2001-06-20 Bo Thorsen <bo@suse.co.uk>
398 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
401 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
403 * configure.host (mips64-*-linux): Reformat.
405 2001-06-21 Alan Modra <amodra@bigpond.net.au>
407 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
408 allocate local .got space. Use shortcuts from hash table for .got
409 and .plt rather than comparing section names.
410 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
411 adjusting index into local_got_refcounts to document what we are
413 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
414 Tidy .got and .plt error checking.
416 2001-06-20 Catherine Moore <clm@redhat.com>
418 * elf-bfd.h (struct elf_backend_data):
419 elf_backend_emit_relocs: New field: Function for emitting
421 elf_backend_count_relocs: New field: Function for determining
422 the number of relocs to be emitted.
423 * elfxx-target.h: Provide default (NULL) values for
424 elf_backend_emit_relocs and elf_backend_count_relocs.
425 * elflink.h (elf_link_size_reloc_section): Make the hash table
426 big enough to hold the relocs counted by either reloc_count or
428 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
429 should be emitted, either because of a command line option
430 stored in the info structure or because the target provides a
431 special reloc emitting function.
432 If the target provides a reloc counting function use it,
433 unless performing a relocatable link or emitting all relocs.
434 Also set the SEC_RELOC flag on any output section which will
436 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
437 should be emitted, either because of a command line option
438 stored in the info structure or because the target provides a
439 special reloc emitting function.
440 If the target provides a reloc emitting function, use it,
441 unless performing a relocatable link or emitting all relocs.
443 2001-06-20 H.J. Lu <hjl@gnu.org>
445 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
446 allocate local .got space.
448 2001-06-19 Andreas Jaeger <aj@suse.de>
450 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
453 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
455 * elflink.h (struct elf_assign_sym_version_info): Remove member
456 export_dynamic. All users changed to use info member.
457 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
458 export_dynamic, instead use member in parameter info.
459 * bfd-in.h (bfd_elf32_size_dynamic_sections,
460 bfd_elf64_size_dynamic_sections): Update prototype.
461 * bfd-in2.h: Regenerate.
463 2001-06-18 H.J. Lu <hjl@gnu.org>
465 * elflink.h (elf_info_failed): Add a new field, verdefs.
466 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
468 (elf_export_symbol): Check eif->verdefs to decide if a symbol
471 2001-06-17 H.J. Lu <hjl@gnu.org>
473 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
474 readonly_reloc, to record if a relocation in the .rel.dyn
475 section is against a read-only section.
476 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
478 (_bfd_mips_elf_check_relocs): Record if there is a relocation
479 in the .rel.dyn section against a read-only section by setting
480 DF_TEXTREL or readonly_reloc.
481 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
483 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
484 there is a relocation in the .rel.dyn section against a
486 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
489 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
491 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
492 function. Move flagword result into parameter list. Remove
493 comment about setting bfd_error_handler to intercept failure
495 * coffgen.c (make_a_section_from_file): Examine result of
496 calling bfd_coff_styp_to_sec_flags and pass a failure back to
498 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
499 function. Move flagword result into parameter list.
500 * libcoff.h: Regenerate.
501 * libecoff.h: Regenerate.
503 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
505 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
506 section is going to follow it.
508 2001-06-12 Catherine Moore <clm@redhat.com>
510 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
511 with the file_align entry from elf_backend_data.
512 (elf_gc_smash_unused_vtentry_relocs): Likewise.
513 (elf_gc_record_vtentry): Likewise.
515 2001-06-10 Alan Modra <amodra@bigpond.net.au>
517 * elflink.h: Whitespace changes.
518 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
519 rather than "unsigned char".
520 (elf_link_output_relocs): Likewise.
521 (elf_link_input_bfd): Likewise.
522 (elf_reloc_link_order): LIkewise.
523 * elf.c: s/CONST/const/. Whitespace changes.
524 * elf32-mips.c: Formatting fix.
526 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
527 * Makefile.in: Regenerate.
528 * po/Make-in: Remove trailing tab.
530 2001-06-09 Philip Blundell <philb@gnu.org>
532 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
534 (elf32_arm_plt_entry): Likewise.
536 2001-06-08 H.J. Lu <hjl@gnu.org>
538 * elf.c (swap_out_syms): Keep names for global section symbols.
540 2001-06-07 H.J. Lu <hjl@gnu.org>
542 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
543 MIPS-based machines need it.
545 2001-06-07 H.J. Lu <hjl@gnu.org>
547 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
550 * config.bfd: Remove ecoff from Linux/mips.
552 2001-06-07 Andreas Jaeger <aj@suse.de>
554 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
556 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
557 alignment of 8 for .rela sections; handle further relocations.
559 2001-06-06 Christian Groessler <cpg@aladdin.de>
561 * coff-z8k.c: Fix formatting.
562 Fix howtos: howto->size was always 1.
564 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
566 * configure.host (mips64*-*-linux*): Define.
568 2001-06-05 Alan Modra <amodra@bigpond.net.au>
570 * elf32-i386.c (elf_i386_discard_copies): Rename to
571 discard_copies, and use elf_link_hash_entry arg rather than
572 elf_i386_link_hash_entry.
573 (elf_i386_link_hash_traverse): Delete.
574 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
575 Tidy sizing of dynamic sections.
576 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
577 possible .plt entries.
578 (elf_i386_gc_sweep_hook): Likewise.
579 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
580 everything with plt.refcount <= 0.
582 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
584 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
585 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
587 (allocate_plt_and_got): ..instead do it all here. New function.
588 (elf_i386_size_dynamic_sections): Allocate local .got space and
589 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
590 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
591 rather than gc variety).
592 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
593 (elf_i386_relocate_section): Use it here and correct handling of
594 R_386_GOT32. Provide section and offset for "unresolvable
595 relocation" error message.
596 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
598 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
599 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
600 (elf_i386_link_hash_table_create): Init them.
601 (create_got_section): New function.
602 (elf_i386_create_dynamic_sections): New function.
603 (elf_backend_create_dynamic_sections): Set to above.
604 (elf_i386_check_relocs): Use shortcuts from hash table rather than
605 calling bfd_get_section_by_name.
606 (elf_i386_gc_sweep_hook): Likewise.
607 (elf_i386_adjust_dynamic_symbol): Likewise.
608 (elf_i386_size_dynamic_sections): Likewise.
609 (elf_i386_relocate_section): Likewise.
610 (elf_i386_finish_dynamic_sections): Likewise.
612 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
614 2001-06-02 H.J. Lu <hjl@gnu.org>
616 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
618 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
620 2001-06-02 H.J. Lu <hjl@gnu.org>
622 * aout-cris.c (MACHTYPE_OK): New. Defined.
624 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
626 * section.c (_bfd_strip_section_from_output): Handle NULL
629 2001-06-02 H.J. Lu <hjl@gnu.org>
631 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
632 rs6000coff64_vec only if BFD64 is defined.
633 (powerpc64-*-aix*): Enable only if BFD64 is defined.
635 2001-06-02 H.J. Lu <hjl@gnu.org>
637 * coff-ia64.c (ia64coff_object_p): Rewrite with
638 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
640 2001-06-01 Andreas Jaeger <aj@suse.de>
642 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
643 relocation, small reformatting.
645 2001-05-29 Andreas Jaeger <aj@suse.de>
647 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
648 (elf64_x86_64_relocate_section): Likewise.
650 2001-05-30 Alan Modra <amodra@one.net.au>
652 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
653 millicode. Don't allocate .got and .rela.got space here..
654 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
655 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
657 (hppa_handle_PIC_calls): ..nor here..
658 (allocate_plt_and_got): ..instead do it all here. New function.
659 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
660 call allocate_plt_and_got. No need to zap .got if not dynamic.
661 (elf32_hppa_final_link): Call regular bfd_final_link instead of
662 gc_common_final_link.
663 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
664 (elf32_hppa_relocate_section): Use it here.
665 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
666 dynamic_sections_created.
667 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
669 2001-05-28 Andreas Jaeger <aj@suse.de>
671 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
672 generic version since we want a hashsize of 4.
673 (elf_backend_size_info): Likewise.
675 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
677 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
679 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
680 (elf_link_input_bfd): Likewise.
681 (elf_reloc_link_order): Likewise.
682 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
683 relocations correctly.
685 2001-05-28 Nicolas Pitre <nico@cam.org>
687 * elf32-arm.h: fix PLT generation for big endian ARM
689 2001-05-28 Alan Modra <amodra@one.net.au>
691 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
692 for symbols forced local that need plabels.
693 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
694 .plt.rela for local syms if non-shared.
695 (hppa_build_one_stub): Mask lsb of plt.offset.
696 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
697 (clobber_millicode_symbols): Correct comment.
698 (elf32_hppa_relocate_section): Likewise.
699 (elf32_hppa_finish_dynamic_symbol): Likewise.
701 2001-05-28 Jeff Sturm <jsturm@one-point.com>
703 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
704 * bfd-in2.h: Regenerate.
705 * libbfd.h: Regenerate.
706 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
707 and BFD_RELOC_SPARC_UA64 mapping
708 * elf64-sparc.c: Likewise.
710 2001-05-25 H.J. Lu <hjl@gnu.org>
712 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
713 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
714 (coff-rs6000.lo): Remove the old dependency.
715 * Makefile.in: Rebuild.
717 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
720 2001-05-25 H.J. Lu <hjl@gnu.org>
722 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
723 rs6000coff_core_file_matches_executable_p,
724 rs6000coff_core_file_failing_command and
725 rs6000coff_core_file_failing_signal only if AIX_CORE is
727 (pmac_xcoff_vec): Likewise.
728 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
730 2001-05-25 Timothy Wall <twall@redhat.com>
732 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
733 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
735 2001-05-25 H.J. Lu <hjl@gnu.org>
737 * bfd-in2.h: Regenerated.
738 * libcoff.h: Likewise.
740 2001-05-25 Alan Modra <amodra@one.net.au>
742 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
743 undefined millicode syms in shared libs.
744 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
745 (elf32_hppa_check_relocs): Likewise.
746 (elf32_hppa_adjust_dynamic_symbol): Likewise.
747 (elf32_hppa_size_dynamic_sections): Likewise.
748 (elf32_hppa_relocate_section): Likewise.
749 (elf32_hppa_finish_dynamic_symbol): Likewise.
750 (elf32_hppa_finish_dynamic_sections): Likewise.
752 2001-05-24 Tom Rix <trix@redhat.com>
754 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
755 xcoff-target.h not used to define rs6000 or ppc bfd.
758 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
761 * coff-rs6000.c : Many changes for 64 bit support. Move common
762 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
765 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
766 linker now supported. Explictly define the rs6000coff64_vec.
768 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
769 (coff_print_aux) same
770 (coff_write_object_contents) same
771 (coff_slurp_line_table) same
773 * coffgen.c : (coff_fix_symbol_name) formatting
774 (coff_mangle_symbols) xcoff 64 bit support
775 (coff_write_symbol) same
776 (coff_write_alien_symbol) same
777 (coff_write_native_symbol) same
778 (coff_write_symbols) same
779 (coff_get_symbol_info) same
780 (bfd_coff_get_syment) same
781 (coff_print_symbol) same
783 * config.bfd : add powerpc64-*-aix* target
785 * libcoff-in.h : formatting
787 * libcoff.h : move xcoff extern declarations to libxcoff.h
789 * libxcoff.h : New file
791 * xcofflink.c : Many changes for xcoff64 support. Move common
792 structures to include/coff/xcoff.h. Move specific structure to
793 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
794 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
796 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
799 (xcoff_build_ldsyms) : handle special __rtinit symbol.
801 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
803 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
806 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
808 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
809 * libbfd.h: Regenerate.
810 * bfd-in2.h: Regenerate.
812 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
813 * archures.c (bfd_mach_mips12000): Define.
814 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
815 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
817 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
818 * bfd-in2.h: Regenerate.
819 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
821 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
823 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
824 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
825 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
828 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
830 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
831 of entries in a structured section.
832 * elf.c: Use new macro.
833 * elf32-i386.c: Use new macro.
834 * elf32-mips.c: Use new macro.
835 * elf64-alpha.c: Use new macro.
836 * elf64-sparc.c: Use new macro.
837 * elfcode.h: Use new macro.
838 * elflink.h: Use new macro.
840 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
842 * bfdint.texi: Replace -oformat with --oformat.
844 2001-05-21 Andreas Jaeger <aj@suse.de>
846 * dwarf2.c (decode_line_info): Fix error message.
847 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
848 adjust error message.
850 2001-05-18 H.J. Lu <hjl@gnu.org>
852 * elflink.h (elf_link_add_object_symbols): Revert the last
855 2001-05-17 Alan Modra <amodra@one.net.au>
857 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
858 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
859 (hppa_build_one_stub): Add an assert to check plt.offset.
861 2001-05-17 H.J. Lu <hjl@gnu.org>
863 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
864 version definition to basename of the output filename.
866 2001-05-17 H.J. Lu <hjl@gnu.org>
868 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
869 basename of the bfd filename.
871 2001-05-16 Alan Modra <amodra@one.net.au>
873 * section.c (asection): Add linker_has_input field.
874 (STD_SECTION): Adjust initialization to suit.
875 * ecoff.c (bfd_debug_section): Likewise.
876 * bfd-in2.h: Regenerate.
878 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
880 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
881 negative 32-bit operands to 16 operands when the operand is
882 going to be zero-extended by the modified opcode.
884 2001-05-12 Peter Targett <peter.targett@arccores.com>
886 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
887 name for 'arc5' core versions.
888 (bfd_arc_arch): Make bfd_mach_arc_6 default.
890 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
892 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
894 2001-05-11 Jakub Jelinek <jakub@redhat.com>
896 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
898 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
899 to .gnu.linkonce.t.FOO text section.
901 2001-05-11 Jakub Jelinek <jakub@redhat.com>
903 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
904 fields, change sec into secinfo.
905 (struct sec_merge_info): Add chain, remove last fields.
906 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
907 (sec_merge_hash_lookup): If lookup could not use a string only
908 because it has bad alignment, mark the old string for deletion.
909 (sec_merge_add): Add secinfo argument. Don't compute entry's
910 position, instead record the section.
911 (sec_merge_emit): Update for the sec into secinfo change in
912 struct sec_merge_hash_entry.
913 (_bfd_merge_section): Only record the section for merging, defer
914 putting strings into the hash table.
915 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
916 _bfd_merge_sections): New functions.
917 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
919 * libbfd-in.h (_bfd_merge_sections): Add prototype.
920 (_bfd_nolink_bfd_merge_sections): Define.
921 * libbfd.h: Likewise.
922 (bfd_generic_merge_sections): Add prototype.
923 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
924 (struct bfd_target): Likewise.
925 * bfd.c (bfd_merge_sections): Define.
926 * bfd-in2.h: Rebuilt.
927 * elf.c (_bfd_elf_merge_sections): New function.
928 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
929 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
930 * reloc.c (bfd_generic_merge_sections): New function.
931 * vms.c (vms_bfd_merge_sections): New function.
932 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
933 * aout-target.h (MY_bfd_merge_sections): Define.
934 * aout-tic30.c (MY_bfd_merge_sections): Define.
935 * binary.c (binary_bfd_merge_sections): Define.
936 * bout.c (b_out_bfd_merge_sections): Define.
937 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
938 * coffcode.c (coff_bfd_merge_sections): Define.
939 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
940 * i386msdos.c (msdos_bfd_merge_sections): Define.
941 * i386os9k.c (os9k_bfd_merge_sections): Define.
942 * ieee.c (ieee_bfd_merge_sections): Define.
943 * ihex.c (ihex_bfd_merge_sections): Define.
944 * nlm-target.h (nlm_bfd_merge_sections): Define.
945 * oasys.c (oasys_bfd_merge_sections): Define.
946 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
947 * som.c (som_bfd_merge_sections): Define.
948 * srec.c (srec_bfd_merge_sections): Define.
949 * tekhex.c (tekhex_bfd_merge_sections): Define.
950 * versados.c (versados_bfd_merge_sections): Define.
951 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
953 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
955 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
956 to be unsigned long, in order to match its use.
958 2001-05-10 H.J. Lu <hjl@gnu.org>
960 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
963 2001-05-09 H.J. Lu <hjl@gnu.org>
965 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
966 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
967 Remove the unused veriable `dynver'.
969 2001-05-08 Ian Lance Taylor <ian@zembu.com>
971 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
973 (coff_i386_rtype_to_howto): Don't dump core if output section
976 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
978 * ecoff.c (bfd_debug_section): Fix initialization.
979 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
980 is always a positive integer. Cast away sign mismatch.
981 * elf32-mips.c: Fix misleading comment and typo.
982 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
984 * elflink.c: Fix typo.
985 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
986 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
988 2001-05-04 Richard Henderson <rth@redhat.com>
990 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
992 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
994 * elf32-arm.h (elf32_arm_final_link_relocate): Set
995 EF_ARM_HASENTRY if the start address is set.
997 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
999 * targets.c (_bfd_target_vector_entries): Compute value based on
1000 the size of the _bfd_target_vector and not bfd_target_vector.
1002 2001-05-03 H.J. Lu <hjl@gnu.org>
1004 * elfcode.h: Include "libiberty.h".
1006 * elflink.h (elf_link_add_object_symbols): Set
1007 elf_dt_name (abfd) to basename of the bfd filename.
1008 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1009 of the bfd filename.
1011 2001-05-03 Andreas Jaeger <aj@suse.de>
1013 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1014 (elf_generic_info_to_howto_rel): Likewise.
1015 * coff-alpha.c (reloc_nil): Likewise.
1016 (alpha_ecoff_bad_format_hook): Likewise.
1017 (alpha_adjust_reloc_out): Likewise.
1018 (alpha_bfd_reloc_type_lookup): Likewise.
1019 (alpha_convert_external_reloc): Likewise.
1020 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1021 (elf64_alpha_reloc_bad): Likewise.
1022 (elf64_alpha_reloc_gpdisp): Likewise.
1023 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1024 (elf64_alpha_info_to_howto): Likewise.
1025 (elf64_alpha_add_symbol_hook): Likewise.
1026 (elf64_alpha_create_got_section): Likewise.
1027 (elf64_alpha_is_local_label_name): Likewise.
1028 (elf64_alpha_merge_ind_symbols): Likewise.
1029 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1030 (mips_elf64_get_reloc_upper_bound): Likewise.
1031 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1032 (nlm_alpha_get_public_offset): Likewise.
1034 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1036 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1037 about overflow in R_OPENRISC_LO_16_IN_INSN and
1038 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1040 2001-04-30 H.J. Lu <hjl@gnu.org>
1042 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1043 only for ELF_LINK_FORCED_LOCAL.
1044 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1045 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1046 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1048 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1049 if the symbol has hidden or internal visibility.
1051 2001-04-30 Alan Modra <amodra@one.net.au>
1053 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1054 calls to undefined weak symbols.
1056 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1058 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1059 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1061 2001-04-27 Andreas Jaeger <aj@suse.de>
1063 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1064 out handled entries.
1065 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1066 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1067 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1070 2001-04-27 Sean McNeil <sean@mcneil.com>
1072 * config.bfd: Add arm-vxworks target.
1073 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1074 addend (fro VXworks targets).
1076 2001-04-26 H.J. Lu <hjl@gnu.org>
1078 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1081 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
1083 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1084 * bfd-in2.h: Regenerated.
1086 2001-04-24 Jakub Jelinek <jakub@redhat.com>
1088 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1089 (struct sec_merge_hash): Remove alignment_power.
1090 (sec_merge_hash_newfunc): Clear alignment.
1091 (sec_merge_hash_lookup): Pass alignment as argument.
1092 Use hashp->root.next, not hashp->next to walk the hash chain.
1093 If a string already in the hashtable does not have required
1094 alignment, create a new hashtable entry.
1095 (sec_merge_init): Remove alignment_power argument.
1096 (sec_merge_add): Add alignment argument.
1097 (sec_merge_emit): Alignment is now a per-entity thing, not per
1099 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1100 for proper alignment.
1101 Pass alignment information to sec_merge_add.
1103 2001-04-24 Christian Groessler <cpg@aladdin.de>
1105 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1106 and R_REL16 reloc types; accept odd values for R_REL16 type
1108 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
1110 * cpu-openrisc.c: New file.
1111 * elf32-openrisc.c: Likewise.
1113 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1114 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1115 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1116 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1117 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1118 * Makefile.in: Regenerated.
1119 * config.bfd: (openrisc-*-elf): New target.
1120 * configure.in (bfd_elf32_openrisc_vec): New vector.
1121 * configure: Regenerated.
1122 * libbfd.h: Regenerated.
1123 * bfd-in2.h: Regenerated.
1124 * reloc.c: Add OpenRISC relocations.
1125 * targets.c (bfd_elf32_openrisc_vec): Declare.
1126 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1127 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1128 (bfd_openrisc_arch): Declare.
1129 (bfd_archures_list): Add bfd_openrisc_arch.
1130 * elf.c (prep_headers): Add bfd_arch_openrisc.
1132 2001-04-23 Bo Thorsen <bo@suse.de>
1134 * elf64-x86-64.c: Add c++ vtable hack.
1135 Small whitespace and comment changes.
1137 2001-04-19 Andreas Jaeger <aj@suse.de>
1139 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1140 (elf64_x86_64_plt_entry): Likewise.
1141 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1142 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1144 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
1146 * elf32-cris.c: Tweak comments related to dynamic linking.
1147 (cris_elf_relocate_section): When not creating shared object, fill
1148 in the .got table for any symbol not in the dynamic symbol table.
1149 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1150 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1152 (cris_elf_check_relocs): Use variable r_type in all places rather
1153 than the original expression. Add default case in switch for
1155 (elf_cris_size_dynamic_sections): Iterate over
1156 elf_cris_discard_excess_program_dynamics when not creating shared
1158 (elf_cris_discard_excess_dso_dynamics): Renamed from
1159 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1160 (elf_cris_discard_excess_program_dynamics): New.
1162 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1164 * coffcode.h (coff_write_object_contents): Use
1165 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1167 2001-04-14 H.J. Lu <hjl@gnu.org>
1169 * bfd-in2.h: Regenerate.
1171 2001-04-14 Jakub Jelinek <jakub@redhat.com>
1173 * section.c (STD_SECTION): Add entsize.
1175 2001-04-13 H.J. Lu <hjl@gnu.org>
1177 * section.c (SEC_MERGE): Define new flag for merging.
1178 (SEC_STRINGS): Likewise.
1179 (entsize): New field.
1181 2001-04-13 Roger Sayle <roger@metaphorics.com>
1183 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1184 flag on pe-i386 targets.
1186 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1188 * libbfd-in.h (_bfd_merge_section): New.
1189 (_bfd_write_merged_section): New.
1190 (_bfd_merged_section_offset): New.
1191 * libbfd.h: Rebuilt.
1192 * linker.c (_bfd_generic_link_output_symbols): Handle
1194 * aoutx.h (aout_link_write_symbols): Likewise.
1195 * pdp11.c (aout_link_write_symbols): Likewise.
1196 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1197 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1199 (elf_link_sec_merge_syms): New.
1200 (elf_link_input_bfd): Call _bfd_merged_section_offset
1201 and _bfd_write_merged_section.
1202 Handle discard_sec_merge.
1203 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1205 (struct bfd_elf_section_data): Likewise.
1206 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1207 SEC_STRINGS section flags and entsize from their ELF counterparts.
1208 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1209 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1210 from their BFD counterparts.
1211 * merge.c: New file.
1212 * Makefile.am: Add strtab.lo.
1213 * Makefile.in: Rebuilt.
1215 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
1217 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1218 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1220 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1222 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1223 endian MIPS ELF target.
1224 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1227 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1228 64bit big endian MIPS ELF target.
1229 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1230 endian MIPS ELF target.
1231 * configure: Regenerated.
1233 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1234 little endian targets.
1235 (mips_elf_sym_is_global): Handle traditional targets.
1237 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1238 64bit big endian MIPS ELF target.
1239 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1240 endian MIPS ELF target.
1242 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1243 and bfd_elf64_tradlittlemips_vec.
1245 2001-04-05 David Mosberger <davidm@hpl.hp.com>
1247 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1248 ordinary "progbits" section.
1250 2001-04-04 Alan Modra <alan@linuxcare.com.au>
1252 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1253 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1255 2001-04-03 David Mosberger <davidm@hpl.hp.com>
1257 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1259 2001-03-30 H.J. Lu <hjl@gnu.org>
1261 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1262 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1264 2001-03-26 H.J. Lu <hjl@gnu.org>
1266 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1267 if there are any relocations for generic ELF.
1268 (bfd_elf32_bfd_link_add_symbols): Defined to
1269 elf32_generic_link_add_symbols.
1270 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1271 if there are any relocations for generic ELF.
1272 (bfd_elf64_bfd_link_add_symbols): Defined to
1273 elf64_generic_link_add_symbols.
1275 2001-03-23 Nick Clifton <nickc@redhat.com>
1277 * Makefile.am (BUILD_CFILES): New variable: List of C source
1278 files created in build directory.
1279 (BUILD_HFILES): New variable: List of header files created in
1282 (po/POTFILES.in): Replace rule with empty entry.
1283 (po/SRC-POTFILES.in): New rule: Create a list of source files
1284 in the source directory.
1285 (po/BLD-POTFILES.in): New rule: Create a list of source files
1286 in the build directory.
1287 (MOSTLYCLEAN): Do not delete source files created in build
1289 * Makefile.in: Regenerate.
1290 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1292 * configure: Regenerate.
1294 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1296 Add .. to the search path when building bfd.pot.
1297 Delete POTFILES when performing distclean.
1298 Add comment describing why distclean is broken in maintainer mode.
1299 * po/POTFILES.in: Delete.
1300 * po/SRC-POTFILES.in: New file.
1301 * po/BLD-POTFILES.in: New file.
1302 * po/bfd.pot: Regenerate.
1304 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
1306 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1307 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1308 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1309 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1310 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1311 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1313 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1314 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1315 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1316 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1317 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1318 New HOWTO members for new relocs.
1319 (cris_reloc_map): Map new relocs.
1320 (ELF_DYNAMIC_INTERPRETER): Define.
1321 (PLT_ENTRY_SIZE): Define.
1322 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1323 elf_cris_pic_plt_entry): New, PLT templates.
1324 (struct elf_cris_pcrel_relocs_copied, struct
1325 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1326 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1327 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1328 positive values. Adjust PCREL relocs to be relative to location
1330 (cris_elf_relocate_section): Handle relocations to dynamic
1331 objects. Handle new relocations. Call error handler when seeing
1332 non-PIC relocation for read-only sections while generating shared
1334 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1336 (bfd_elf32_bfd_link_hash_table_create,
1337 elf_backend_adjust_dynamic_symbol,
1338 elf_backend_size_dynamic_sections,
1339 elf_backend_finish_dynamic_symbol,
1340 elf_backend_finish_dynamic_sections,
1341 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1342 elf_backend_hide_symbol, elf_backend_want_got_plt,
1343 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1344 elf_backend_got_header_size, elf_backend_plt_header_size):
1347 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1348 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1349 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1350 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1351 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1352 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1353 * bfd-in2.h, libbfd.h: Regenerate.
1355 2001-03-21 Diego Novillo <dnovillo@redhat.com>
1357 (_bfd_mips_elf_relocate_section): Give a better error message when
1358 a relocation is not recognized.
1360 2001-03-21 Alan Modra <alan@linuxcare.com.au>
1362 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1363 non-NULL before attempting to dereference.
1365 2001-03-20 H.J. Lu <hjl@gnu.org>
1367 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1368 * configure: Rebuild.
1370 2001-03-20 Andreas Schwab <schwab@suse.de>
1372 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1373 relocation value when resolving a reference from a debugging
1376 2001-03-16 Scott Thomason <SThomaso@hii.com>
1378 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1379 (xcoff64_swap_sym_out): Fix syntax errors.
1381 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
1383 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1385 2001-03-15 Alan Modra <alan@linuxcare.com.au>
1387 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1388 (hppa_link_hash_newfunc): Init it.
1389 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1390 section appears to be non-PIC.
1391 (final_link_relocate): Likewise.
1392 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1393 possible candidate function, and set pic_call for those that will
1394 only have a .plt entry for the PIC call stub.
1395 (hppa_handle_PIC_calls): Set maybe_pic_call.
1397 2001-03-12 DJ Delorie <dj@redhat.com>
1399 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1400 R_SH_DIR8WP* relocs if they're against external symbols, else
1401 they're just for relaxing. Validate the reloc values.
1403 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1405 * binary.c (bfd_external_binary_architecture): Declare.
1406 (binary_object_p): If bfd_external_binary_architecture is defined,
1407 set the architecture to this string.
1409 2001-03-11 Philip Blundell <philb@gnu.org>
1411 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1412 entries that could serve as a definition for a weak symbol.
1414 2001-03-08 Nick Clifton <nickc@redhat.com>
1416 * Most files: Update copyright notices using Perl script created
1417 by Kevin Buettner <kevinb@redhat.com>.
1419 2001-03-07 Nick Clifton <nickc@redhat.com>
1421 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1422 prior patch on ! defined OLD_ARM_ABI.
1424 2001-03-07 Andreas Jaeger <aj@suse.de>
1426 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1427 some relocation values.
1429 2001-03-06 Nick Clifton <nickc@redhat.com>
1431 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1432 of offset in BLX(1) instruction.
1433 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1434 offset in BLX(1) instruction.
1437 2001-03-06 Nick Clifton <nickc@redhat.com>
1439 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1440 BFD_RELOC_THUMB_PCREL_BLX.
1442 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1444 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1445 * bfd-in2.h: Regenerate.
1446 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1447 * ieee.c (ieee_write_processor): Set proper id for
1450 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1452 * configure.in: Add s390 target.
1453 * configure: Regenerate.
1455 2001-02-28 Andreas Jaeger <aj@suse.de>
1457 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1460 2001-02-28 Philip Blundell <pb@futuretv.com>
1462 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1463 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1465 2001-02-27 H.J. Lu <hjl@gnu.org>
1467 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1468 abfd->tdata.aout_data == NULL.
1470 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1472 * elf32-hppa.c: Correct field selector in stub comments.
1473 (clobber_millicode_symbols): Formatting fix.
1475 * configure.in: Bump version to 2.11.90.
1476 * configure: Regenerate.
1477 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1478 (CFILES): $SOURCE_CFILES + generated C files.
1479 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1481 * Makefile.in: Regenerate.
1482 * doc/Makefile.in: This too.
1484 2001-02-26 Timothy Wall <twall@cygnus.com>
1486 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1489 2001-02-26 Nick Clifton <nickc@redhat.com>
1491 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1492 up, replacing multiple if statements with a switch.
1493 (handle_COMDAT): New function.
1495 2001-02-26 H.J. Lu <hjl@gnu.org>
1497 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1498 a warning for section flags we do not handle instead of
1501 2001-02-26 Andreas Jaeger <aj@suse.de>
1503 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1505 2001-02-22 Timothy Wall <twall@cygnus.com>
1507 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1508 * configure.in: Add objects for elf64_ia64_aix vectors.
1509 * configure: Regenerated.
1510 * configure.host: Recognize ia64-*-aix*.
1511 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1512 for AIX. AIX5 requires most relocations to be dynamic (*all*
1513 binaries are somewhat similar to shared libraries).
1514 * targets.c: Add elf64_ia64_aix vectors.
1516 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1518 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1519 C8 said "1" instead of "8". Clarify error string for IMM22:
1520 "signed integer" instead of just "integer".
1522 2001-02-20 Andreas Jaeger <aj@suse.de>
1524 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1525 PLT entries that could serve as a definition for a weak symbol.
1527 2001-02-19 Jakub Jelinek <jakub@redhat.com>
1529 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1530 entries that could serve as a definition for a weak symbol.
1531 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1533 2001-02-18 David O'Brien <obrien@FreeBSD>
1535 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1536 FreeBSD/i386-CURRENT differently until I can figure out the needed
1538 * configure: Regenerate.
1539 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1540 FreeBSD/PowerPC, and FreeBSD/sparc64.
1542 2001-02-18 lars brinkhoff <lars@nocrew.org>
1544 * Makefile.am: Add PDP-11 a.out target.
1545 * config.bfd: Likewise.
1546 * configure.in: Likewise.
1547 * targets.c: Likewise.
1548 * archures.c: Likewise.
1549 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1550 * libbfd.h: Add PDP-11 relocations.
1551 * reloc.c: Likewise.
1552 * cpu-pdp11.c: New file.
1553 * pdp11.c: New file.
1555 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1556 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1557 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1558 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1559 (GET_MAGIC): New macro.
1560 (PUT_MAGIC): Likewise.
1561 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1563 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1565 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1566 multiarch needs it).
1568 2001-02-18 H.J. Lu <hjl@gnu.org>
1570 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1573 2001-02-18 Kazu Hirata <kazu@hxi.com>
1575 * vms-misc.c: Fix formatting.
1577 2001-02-16 Kazu Hirata <kazu@hxi.com>
1579 * vms.c: Fix formatting.
1581 2001-02-14 H.J. Lu <hjl@gnu.org>
1583 * elf.c (elf_find_function): New function.
1584 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1585 the file name and function name.
1587 2001-02-14 Nick Clifton <nickc@redhat.com>
1589 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1592 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1593 (BFD64_BACKENDS): Add pepigen.c
1594 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1596 * Makefile.in: Regenerate.
1597 * configure: Regenerate.
1598 * po/POTFILES.in: Regenerate.
1599 * po/bfd.pot: Regenerate.
1601 2001-02-14 H.J. Lu <hjl@gnu.org>
1603 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1604 force_minimum_alignment.
1606 2001-02-14 Bo Thorsen <bo@suse.de>
1608 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1609 (elf64_86_64_size_info): Struct added to fix a problem
1610 with the hashtable string entries.
1611 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1612 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1613 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1614 remove the FIXME for this.
1615 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1616 section. Also removed the FIXME for it.
1617 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1618 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1619 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1621 2001-02-13 Richard Henderson <rth@redhat.com>
1623 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1624 and not user provided.
1626 2001-02-13 Kazu Hirata <kazu@hxi.com>
1628 * vms.c (vms_print_symbol): Remove unreachable code.
1630 * rs6000-core.c: Fix formatting.
1632 2001-02-13 David Mosberger <davidm@hpl.hp.com>
1634 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1635 as _bfd_XXi_only_swap_filehdr_out.
1636 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1637 pe->force_minimum_alignment to TRUE.
1638 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1639 PEI_TARGET_SUBSYSTEM.
1640 (pe_print_private_bfd_data): Call
1641 _bfd_XX_print_private_bfd_data_common() instead of
1642 _bfd_pe_print_private_bfd_data_common().
1643 (pe_bfd_copy_private_bfd_data): Call
1644 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1645 _bfd_pe_bfd_copy_private_bfd_data_common().
1646 (coff_bfd_copy_private_section_data): Define as
1647 _bfd_XX_bfd_copy_private_section_data instead of
1648 _bfd_pe_bfd_copy_private_section_data.
1649 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1650 of a _bfd_pe_get_symbol_info.
1654 * peXXigen.c: Renamed from peigen.c.
1655 (COFF_WITH_XX): Define this macro (will get expanded into
1656 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1657 compiled as peigen.c or pepigen.c.
1658 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1659 define the canonical PEP structures and definitions.
1660 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1661 effect, enforce minimum file and section alignments. If
1662 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1663 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1664 so, by default, this is a no-op).
1666 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1667 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1668 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1669 _bfd_pefoo if it's not defined. Use these macros to define
1672 * libcoff.h (pe_tdata): Add members target_subsystem and
1673 force_minimum_alignment.
1675 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1677 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1679 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1682 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1683 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1686 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1687 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1688 (peigen.c): Add rule to generate from peXXigen.c.
1690 (pepigen.lo): List dependencies for pepigen.lo.
1692 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1694 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1695 $global$ referenced but not defined, set its value here.
1697 2001-02-09 Bo Thorsen <bo@suse.de>
1699 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1701 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1703 (elf64_x86_64_relocate_section): Fix formatting.
1704 (elf64_x86_64_relocate_section): Fix addend for relocation of
1705 R_X86_64_(8|16|32|PC8|PC16|PC32).
1707 2001-02-12 Jan Hubicka <jh@suse.cz>
1709 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1711 2001-02-11 H.J. Lu <hjl@gnu.org>
1713 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1716 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1718 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1719 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1720 relocations against dynsym symbols.
1722 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1723 the R_MIPS_26 relocation.
1724 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1725 the R_MIPS_26 relocation.
1726 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1728 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1729 the R_MIPS_26 relocation.
1730 (mips_elf64_howto_table_rela): Likewise.
1732 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1733 member to mark symbols that have non-CALL relocations against
1735 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1736 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1738 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1739 non-CALL relocation against it is encountered.
1740 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1741 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1742 no_fn_stub is not set.
1744 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1745 information from the real symbol for indirect ones.
1746 Check no_fn_stub to find out if a symbol has a function stub
1749 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1751 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1752 * Makefile.in: Regenerate.
1754 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1756 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1757 true if section name is an unwind table section name.
1758 (elfNN_ia64_additional_program_headers): Count each unwind section
1760 (elfNN_ia64_modify_segment_map): Install one unwind program header
1761 for each unwind separate section. Note: normally the linker
1762 script merges the unwind sections that go into a single segment,
1763 so this still generates at most one unwind program header per
1766 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1767 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1768 (elfNN_ia64_fake_sections): Mark sections with names that start
1769 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1772 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1773 Use it to make sh_info in unwind section point to the text section
1776 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1778 * Makefile.am: Add linux target for S/390.
1779 * archures.c: Likewise.
1780 * bfd-in2.h: Likewise.
1781 * config.bfd: Likewise.
1782 * configure.in: Likewise.
1784 * libbfd.h: Likewise.
1785 * targets.c: Likewise.
1786 * cpu-s390.c: New file.
1787 * elf32-s390.c: New file.
1788 * elf64-s390.c: New file.
1790 2001-02-09 Nick Clifton <nickc@redhat.com>
1792 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1793 ImageBase. This has already been done by coff_swap_hdr_in.
1795 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1797 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1799 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1801 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1802 (sparc64_elf_relocate_section): Likewise.
1804 2001-02-09 Mark Kettenis <kettenis@gnu.org>
1806 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1807 similar to R_SPARC_32.
1808 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1810 2001-02-08 H.J. Lu <hjl@gnu.org>
1812 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1813 relocation entries for weak definitions when building DSO with
1816 2001-02-08 Richard Henderson <rth@redhat.com>
1818 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1819 before visibility. Locally defined protected symbols are not
1822 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
1824 * config.bfd: Enable coff64 for rs6000-*. Patch from
1825 <hzoli@austin.ibm.com>.
1827 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1829 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1830 found, do not attempt to find dwarf2 info before returning.
1832 2001-02-07 Jakub Jelinek <jakub@redhat.com>
1834 * elflink.h (is_global_symbol_definition): Rename to
1835 is_global_data_symbol_definition and have it reject function
1837 (elf_link_is_defined_archive_symbol): Use renamed function.
1839 2001-02-07 Todd Vierling <tv@wasabisystems.com>
1841 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1842 * libbfd.h (bfd_target_vector): Likewise.
1843 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1844 make static; create pointer reference named bfd_target_vector.
1845 (_bfd_target_vector_entries): Calculate this based on the array
1846 typed _bfd_target_vector.
1848 2001-02-06 H.J. Lu <hjl@gnu.org>
1850 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1851 internal symbols are not dynamic.
1852 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1854 2001-02-06 Nick Clifton <nickc@redhat.com>
1856 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1857 that it will not be pulled into the list of files that make up
1859 * Makefile.in: Regenerate.
1860 * po/bfd.pot: Regenerate.
1862 2001-02-06 H.J. Lu <hjl@gnu.org>
1864 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1866 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1867 external_PEI_IMAGE_hdr.
1869 2001-02-06 Kazu Hirata <kazu@hxi.com>
1871 * elf-m10200.c: Fix formatting.
1873 2001-02-04 Nick Clifton <nickc@redhat.com>
1875 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1876 rel, it will be handled later on.
1878 2001-02-02 Fred Fish <fnf@ninemoons.com>
1880 * Makefile.in: Fix typo.
1882 2001-02-01 Kazu Hirata <kazu@hxi.com>
1884 * elf-m10300.c: Fix formatting.
1886 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1888 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1889 (elf_backend_get_symbol_type): Define.
1890 (elf64_hppa_object_p): Set architecture and machine from elf
1893 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1895 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1898 2001-01-26 Richard Henderson <rth@redhat.com>
1900 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1901 for non-default visibility.
1902 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1903 delete ugly macro and replace with pretty function.
1905 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1907 * coff-go32.c: Update copyright.
1908 * coff-stgo32.c: Likewise.
1909 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1910 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1911 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1912 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1914 2001-01-25 Kazu Hirata <kazu@hxi.com>
1916 * bfd-in2.h: Rebuild.
1917 * libbfd.h: Likewise.
1919 2001-01-23 H.J. Lu <hjl@gnu.org>
1921 * bfd-in2.h: Rebuild.
1923 2001-01-23 H.J. Lu <hjl@gnu.org>
1925 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1926 is NULL or PRIV(vms_rec) is outside of the buffer.
1928 2001-01-23 Kazu Hirata <kazu@hxi.com>
1930 * coff64-rs6000.c: Fix formatting.
1931 * coff-arm.c: Likewise.
1932 * coffgen.c: Likewise.
1933 * cofflink.c: Likewise.
1934 * coff-mcore.c: Likewise.
1935 * coff-mips.c: Likewise.
1936 * coff-pmac.c: Likewise.
1937 * coff-ppc.c: Likewise.
1938 * coff-rs6000.c: Likewise.
1939 * elf32.c: Likewise.
1940 * elf32-fr30.c: Likewise.
1941 * elf32-i370.c: Likewise.
1942 * elf32-i860.c: Likewise.
1943 * elf32-m32r.c: Likewise.
1944 * elf32-m68k.c: Likewise.
1945 * elf32-mcore.c: Likewise.
1946 * elf32-ppc.c: Likewise.
1947 * elf32-sh.c: Likewise.
1948 * elf32-v850.c: Likewise.
1949 * elf64-alpha.c: Likewise.
1950 * elf64-sparc.c: Likewise.
1951 * elflink.c: Likewise.
1952 * elflink.h: Likewise.
1953 * elf-m10200.c: Likewise.
1954 * elf-m10300.c: Likewise.
1955 * elfxx-ia64.c: Likewise.
1957 * aoutx.h: Fix formatting.
1959 * bfd-in2.h: Likewise.
1960 * bfd-in.h: Likewise.
1961 * cpu-i386.c: Likewise.
1962 * cpu-m68hc11.c: Likewise.
1963 * dwarf2.c: Likewise.
1964 * elf64-x86-64.c: Likewise.
1965 * format.c: Likewise.
1966 * freebsd.h: Likewise.
1968 * hp300hpux.c: Likewise.
1969 * hppabsd-core.c: Likewise.
1970 * hpux-core.c: Likewise.
1972 2001-01-22 Bo Thorsen <bo@suse.de>
1974 * elf64-x86-64.c: Added PIC support for X86-64.
1975 (elf64_x86_64_link_hash_newfunc): Function added.
1976 (elf64_x86_64_link_hash_table_create): Likewise.
1977 (elf64_x86_64_check_relocs): Likewise.
1978 (elf64_x86_64_gc_mark_hook): Likewise.
1979 (elf64_x86_64_gc_sweep_hook): Likewise.
1980 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1981 (elf64_x86_64_size_dynamic_sections): Likewise.
1982 (elf64_x86_64_discard_copies): Likewise.
1983 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1984 (elf64_x86_64_finish_dynamic_sections): Likewise.
1985 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1987 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1989 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1990 * Makefile.in: Regenerate.
1992 2001-01-21 Kazu Hirata <kazu@hxi.com>
1994 * coff-a29k.c: Fix formatting.
1996 2001-01-19 H.J. Lu <hjl@gnu.org>
1998 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1999 relocation section names.
2000 (elf_i386_relocate_section): Report files with bad relocation
2001 section names and return false.
2003 2001-01-17 Bo Thorsen <bo@suse.de>
2005 * targets.c: Alphabetize list of xvecs.
2007 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2009 * config.bfd: Add linux target variant for elfxx-hppa.
2010 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2011 bfd_elf64_hppa_linux_vec.
2012 * configure: Regenerate.
2013 * elf64-hppa.c: Include elf64-target.h again to support linux
2015 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2016 * elf32-hppa.c: Include elf32-target.h again to support linux
2018 (elf32_hppa_post_process_headers): New function.
2019 (elf_backend_post_process_headers): Define.
2020 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2021 bfd_elf32_hppa_linux_vec.
2023 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2024 and data_segment_base fields.
2025 (elf32_hppa_link_hash_table_create ): Init them.
2026 (elf32_hppa_check_relocs): Update comments.
2027 (hppa_record_segment_addr): New function.
2028 (elf32_hppa_relocate_section): Call it.
2029 (final_link_relocate): Handle R_PARISC_SEGREL32.
2030 (elf32_hppa_final_link): New function.
2031 (bfd_elf32_bfd_final_link): Define to call it.
2032 (hppa_unwind_entry_compare): New function.
2033 * cache.c (bfd_open_file): Create files in write+read mode.
2035 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2036 SEGREL32 and numerous other relocs. Change duplicate
2037 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2039 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2042 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2043 .plt entries for DT_INIT and DT_FINI.
2044 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2045 DT_INIT and DT_FINI.
2047 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2048 offsets for stub .plt access if wide mode. Check offset in range.
2050 2001-01-13 Nick Clifton <nickc@redhat.com>
2052 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2055 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2058 2001-01-12 Alan Modra <alan@linuxcare.com.au>
2060 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2061 * configure: Regenerate.
2063 2001-01-11 Peter Targett <peter.targett@arccores.com>
2065 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2066 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2067 * cpu-arc.c (arch_info_struct): Add entries for variants.
2068 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2069 (arc_get_mach) Don't assume machine names prefixed arc- before
2071 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2073 (arc_elf_final_write_processing) Likewise.
2074 (ELF_MACHINE_CODE) Use EM_ARC.
2076 2001-01-10 Nick Clifton <nickc@redhat.com>
2078 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2080 2001-01-07 Philip Blundell <philb@gnu.org>
2082 * README: Replace `bug-gnu-utils@gnu.org' with
2083 `bug-binutils@gnu.org'.
2085 2001-01-04 Kazu Hirata <kazu@hxi.com>
2087 * som.c: Fix formatting.
2089 2001-01-03 Kazu Hirata <kazu@hxi.com>
2091 * ecoffswap.h: Fix formatting.
2092 * elf-bfd.h: Likewise.
2093 * elfarm-nabi.c: Likewise.
2094 * elfarm-oabi.c: Likewise.
2095 * elfcode.h: Likewise.
2096 * elfcore.h: Likewise.
2097 * elflink.c: Likewise.
2098 * elflink.h: Likewise.
2099 * elfxx-ia64.c: Likewise.
2100 * elfxx-target.h: Likewise.
2101 * libbfd.c: Likewise
2102 * linker.c: Likewise.
2103 * lynx-core.c: Likewise.
2105 2001-01-02 Kazu Hirata <kazu@hxi.com>
2107 * pc532-mach.c: Fix formatting.
2108 * pe-arm.c: Likewise.
2109 * pe-i386.c: Likewise.
2110 * pe-mips.c: Likewise.
2111 * pe-ppc.c: Likewise.
2112 * pe-sh.c: Likewise.
2113 * pei-mips.c: Likewise.
2114 * pei-sh.c: Likewise.
2115 * peicode.h: Likewise.
2116 * ppcboot.c: Likewise.
2117 * ptrace-core.c: Likewise.
2119 2001-01-01 Kazu Hirata <kazu@hxi.com>
2121 * reloc.c: Fix formatting.
2122 * riscix.c: Likewise.
2123 * rs6000-core.c: Likewise.
2124 * xcoff-target.h: Likewise.
2126 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2128 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2129 error, by calling bfd_default_set_arch_mach with incoming
2132 2000-12-26 Kazu Hirata <kazu@hxi.com>
2134 * vaxnetbsd.c: Fix formatting.
2135 * versados.c: Likewise.
2136 * vms-gsd.c: Likewise.
2137 * vms-hdr.c: Likewise.
2138 * vms-misc.c: Likewise.
2140 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
2142 * archive.c (coff_write_armap): Don't write more than symbol_count
2143 `archive_member_file_ptr's.
2145 2000-12-25 Kazu Hirata <kazu@hxi.com>
2147 * vms-tir.c: Fix formatting.
2149 2000-12-23 Kazu Hirata <kazu@hxi.com>
2151 * vms.c: Fix formatting.
2154 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
2156 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2158 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2160 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2163 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2165 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2167 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
2169 * libbfd.c (bfd_get_bits): Added
2170 (bfd_put_bits): Likewise
2171 * bfd-in.h: Declared the above.
2172 * bfd-in2.h: Regenerated.
2174 2000-12-20 Kazu Hirata <kazu@hxi.com>
2176 * targets.c: Fix formatting.
2177 * tekhex.c: Likewise.
2178 * trad-core.c: Likewise.
2180 2000-12-19 Kazu Hirata <kazu@hxi.com>
2182 * sco5-core.c: Fix formatting.
2183 * section.c: Likewise.
2184 * sparclinux.c: Likewise.
2185 * sparclynx.c: Likewise.
2186 * sparcnetbsd.c: Likewise.
2188 * stabs.c: Likewise.
2189 * stab-syms.c: Likewise.
2190 * sunos.c: Likewise.
2192 * sysdep.h: Likewise.
2194 2000-12-18 Nick Clifton <nickc@redhat.com>
2196 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2198 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2199 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2201 2000-12-18 Nick Clifton <nickc@redhat.com>
2203 * vms-misc.c (_bfd_vms_get_record): Add default case to
2206 2000-12-15 Miloslav Trmac <mitr@volny.cz>
2208 * elfcore.h (elf_core_file_p): Move to the start of the program
2209 headers before attempting to read them.
2211 2000-12-14 Kazu Hirata <kazu@hxi.com>
2213 * peigen.c: Fix formatting.
2217 2000-12-13 Kazu Hirata <kazu@hxi.com>
2219 * peigen.c: Fix formatting.
2221 2000-12-12 Jim Wilson <wilson@redhat.com>
2223 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2225 2000-12-08 Mark Salter <msalter@redhat.com>
2227 * binary.c (binary_set_section_contents): Ignore sections
2230 2000-12-12 Kazu Hirata <kazu@hxi.com>
2232 * m68klinux.c: Fix formatting.
2233 * m68knetbsd.c: Likewise.
2234 * mipsbsd.c: Likewise.
2235 * netbsd-core.c: Likewise.
2236 * netbsd.h: Likewise.
2237 * newsos3.c: Likewise.
2238 * nlm32-alpha.c: Likewise.
2239 * nlm32-i386.c: Likewise.
2240 * nlm32-ppc.c: Likewise.
2241 * nlm32-sparc.c: Likewise.
2242 * nlmcode.h: Likewise.
2243 * nlmswap.h: Likewise.
2244 * nlm-target.h: Likewise.
2245 * ns32knetbsd.c: Likewise.
2247 2000-12-10 Fred Fish <fnf@be.com>
2249 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2250 symbols in shared objects if allow_shlib_undefined is true.
2252 2000-12-12 Nick Clifton <nickc@redhat.com>
2254 * cpu-sh.c: Fix formattng.
2255 * elf.c: Fix formattng.
2256 * elf32-mips.c: Fix formattng.
2257 * elf32-sh.c: Fix formattng.
2258 * elf64-alpha.c: Fix formattng.
2260 2000-12-09 Nick Clifton <nickc@redhat.com>
2262 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2263 dwarf2_find_line_info as last parameter to invocation of
2264 _bfd_dwarf2_find_nearest_line.
2265 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2266 dwarf2_find_line_info as last parameter to invocation of
2267 _bfd_dwarf2_find_nearest_line.
2269 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2271 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2272 (BFD_LIBS): ...to here.
2273 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2274 (BFD_LIBS_CFILES): ...to here.
2275 * Makefile.in: Regenerate.
2276 * configure.in: Remove dwarf.lo from the elf shell variable.
2277 * configure: Regenerate.
2278 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2279 * libcoff.h: Regenerate.
2280 * coffgen.c (coff_find_nearest_line): Call
2281 _bfd_dwarf2_find_nearest_line.
2282 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2284 (read_abbrevs): Likewise
2285 (decode_line_info): Likewise.
2286 (parse_comp_unit): Likewise.
2287 (comp_unit_find_nearest_line): Likewise.
2288 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2289 * libbfd.h: Regenerate.
2290 * elf.c (_bfd_elf_find_nearest_line): Update call.
2291 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2292 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2293 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2294 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2295 (styp_to_sec_flags): Handle DWARF2 sections.
2296 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2297 to _bfd_find_nearest_line.
2298 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2299 call to _bfd_find_nearest_line.
2301 2000-12-08 Kazu Hirata <kazu@hxi.com>
2303 * coffgen.c: Fix formatting.
2304 * elf-m10300.c: Likewise.
2305 * elf32-i386.c: Likewise.
2306 * elf32-i960.c: Likewise.
2307 * elf32-m68k.c: Likewise.
2308 * elf32-mcore.c: Likewise.
2309 * elf32-ppc.c: Likewise.
2310 * elf32-sh.c: Likewise.
2311 * elf32-sparc.c: Likewise.
2312 * elf32-v850.c: Likewise.
2313 * elf64-alpha.c: Likewise.
2314 * elf64-hppa.c: Likewise.
2315 * elf64-mips.c: Likewise.
2316 * elf64-sparc.c: Likewise.
2318 2000-12-07 Kazu Hirata <kazu@hxi.com>
2320 * elf32-ppc.c: Fix formatting.
2321 * elf64-x86-64.c: Likewise.
2323 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2325 From Ralf Baechle <ralf@gnu.org>
2327 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2328 BFDs containing no sections or empty .text, .data or .bss sections
2329 to be merged, regardless of their flags.
2331 2000-12-06 Kazu Hirata <kazu@hxi.com>
2333 * elf32-m32r.c: Fix formatting.
2334 * elf32-m68hc11.c: Likewise.
2335 * elf32-m68hc12.c: Likewise.
2336 * elf32-m68k.c: Likewise.
2337 * elf32-mcore.c: Likewise.
2338 * elf32-pj.c: Likewise.
2339 * elf32-ppc.c: Likewise.
2341 2000-12-05 Kazu Hirata <kazu@hxi.com>
2343 * elf32-fr30.c: Fix formatting.
2344 * elf32-hppa.c: Likewise.
2345 * elf32-i370.c: Likewise.
2346 * elf32-i386.c: Likewise.
2347 * elf32-i860.c: Likewise.
2348 * elf32-i960.c: Likewise.
2350 2000-12-03 Kazu Hirata <kazu@hxi.com>
2352 * elf32-arm.h: Fix formatting.
2353 * elf32-avr.c: Likewise.
2354 * elf32-cris.c: Likewise.
2355 * elf32-d10v.c: Likewise.
2356 * elf32-d30v.c: Likewise.
2357 * elf-hppa.h: Likewise.
2358 * elf-m10200.c: Likewise.
2359 * elf-m10300.c: Likewise.
2361 2000-12-01 Chris Demetriou <cgd@sibyte.com>
2363 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2364 bfd_mach_mips32_4k. Update FIXME comment.
2365 * archures.c (bfd_mach_mips32): New constant.
2366 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2367 the latter, renumber it.
2368 * bfd-in2.h (bfd_mach_mips32): New constant.
2369 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2370 the latter, renumber it.
2371 * cpu-mips.c (I_mips32): New constant.
2372 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2373 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2374 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2375 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2376 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2377 with E_MIPS_MACH_MIPS32_4K.
2378 (_bfd_mips_elf_final_write_processing): Replace
2379 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2380 bfd_mach_mips32 case.
2381 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2382 comparison with support for MIPS32.
2383 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2386 * aoutx.h (NAME(aout,machine_type)): Add cases for
2387 bfd_mach_mips5 and bfd_mach_mips64.
2388 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2389 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2390 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2391 (arch_info_struct): Add entries for bfd_mach_mips5 and
2393 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2394 _bfd_mips_elf_print_private_bfd_data): Add cases for
2395 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2396 (_bfd_mips_elf_final_write_processing): Add cases for
2397 bfd_mach_mips5 and bfd_mach_mips64.
2399 * aoutx.h (NAME(aout,machine_type)): Add a
2400 bfd_mach_mips_sb1 case.
2401 * archures.c (bfd_mach_mips_sb1): New constant.
2402 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2403 * cpu-mips.c (I_sb1): New constant.
2404 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2405 * elf32-mips.c (elf_mips_mach): Add case for
2407 (_bfd_mips_elf_final_write_processing): Add case for
2410 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2412 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2413 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2414 (sparc*-*-rtems*): Switched from a.out to ELF.
2416 2000-11-30 Jan Hubicka <jh@suse.cz>
2418 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2419 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2420 (elf64-x86-64.lo): Add dependencies.
2421 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2422 bfd_mach_x86_64_intel_syntax.
2423 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2424 * config.bfd (x86_64): Add.
2425 * configure.in: Add support for bfd_elf64_x86_64_vec.
2426 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2427 (bfd_i386_arch, i8086_ar): Link in.
2428 * elf64-x86-64.c: New file.
2429 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2430 * targets.c (bfd_elf64_x86_64_vec): Add.
2431 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2433 2000-11-30 Kazu Hirata <kazu@hxi.com>
2435 * xcofflink.c: Fix formatting.
2437 2000-11-28 Kazu Hirata <kazu@hxi.com>
2439 * aoutx.h: Fix formatting.
2440 * bfd-in.h: Likewise.
2441 * bfd-in2.h: Likewise.
2442 * cache.c: Likewise.
2443 * cisco-core.c: Likewise.
2444 * coff64-rs6000.c: Likewise.
2445 * coffcode.h: Likewise.
2446 * coffswap.h: Likewise.
2447 * corefile.c: Likewise.
2448 * elf32-mips.c: Likewise.
2450 2000-11-27 Kazu Hirata <kazu@hxi.com>
2452 * aout-adobe.c: Fix formatting.
2453 * coff64-rs6000.c: Likewise.
2454 * coffgen.c: Likewise.
2455 * cofflink.c: Likewise.
2457 2000-11-27 Philip Blundell <pb@futuretv.com>
2459 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2460 (obj_coff_strings_written): New accessor macro for above.
2461 * libcoff.h: Regenerate.
2462 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2464 * coffcode.h (coff_write_object_contents): No need to write out
2465 the string table if it's already been done.
2467 2000-11-22 Philip Blundell <pb@futuretv.com>
2469 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2470 weak undefined symbols.
2472 2000-11-24 Nick Clifton <nickc@redhat.com>
2474 * archures.c (bfd_mach_arm_5TE): Define.
2475 (bfd_mach_arm+XScale): Define.
2476 * bfd-in2.h: Regenerate.
2478 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2479 BFD_RELOC_ARM_PCREL_BLX.
2481 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2482 XScale machine numbers.
2484 * config.bfd (xscale-elf): Add target.
2485 (xscale-coff): Add target.
2487 * cpu-arm.c: Add xscale machine name.
2488 Add v5t, v5te and XScale machine numbers.
2490 2000-11-23 Kazu Hirata <kazu@hxi.com>
2492 * aix386-core.c: Fix formatting.
2494 2000-11-22 Jim Wilson <wilson@redhat.com>
2496 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2497 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2498 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2499 (ins_imms_scaled): Initialize sign_bit at function entry.
2500 (elf64_ia64_operands): Add missing initializers.
2501 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2502 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2503 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2504 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2505 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2507 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2508 and free_extsyms at function entry.
2509 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2510 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2511 (get_got): Delete unused local srel.
2512 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2513 (elfNN_ia64_relocate_section): Delete unused local dynindx.
2515 2000-11-21 Kazu Hirata <kazu@hxi.com>
2517 * coff-a29k.c: Fix formatting.
2518 * coff-h8500.c: Likewise.
2519 * coff-i960.c: Likewise.
2520 * coff-ppc.c: Likewise.
2521 * coff-rs6000.c: Likewise.
2522 * coff-stgo32.c: Likewise.
2523 * coff-tic54x.c: Likewise.
2524 * coff-w65.c: Likewise.
2525 * cpu-h8500.c: Likewise.
2526 * cpu-hppa.c: Likewise.
2527 * cpu-ns32k.c: Likewise.
2528 * ecoff.c: Likewise.
2529 * ecofflink.c: Likewise.
2531 2000-11-21 Nick Clifton <nickc@redhat.com>
2533 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2534 remove possibility of infinite loop.
2536 2000-11-20 Kazu Hirata <kazu@hxi.com>
2538 * aix386-core.c: Fix formatting.
2539 * aout-adobe.c: Likewise.
2540 * aout-arm.c: Likewise.
2541 * aout-encap.c: Likewise.
2542 * aout-ns32k.c: Likewise.
2543 * aout-target.h: Likewise.
2544 * aout-tic30.c: Likewise.
2545 * aoutf1.h: Likewise.
2546 * aoutx.h: Likewise.
2547 * archive.c: Likewise.
2548 * bfd-in.h: Likewise.
2549 * bfd-in2.h: Likewise.
2553 2000-11-17 H.J. Lu <hjl@gnu.org>
2555 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2556 pltoff entries for DT_INIT and DT_FINI.
2557 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2558 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2561 2000-11-16 Richard Henderson <rth@redhat.com>
2563 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2564 (allocate_dynrel_entries): Likewise.
2565 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2566 (set_pltoff_entry): Likewise.
2567 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2568 (elfNN_ia64_reloc_type_lookup): Likewise.
2569 (elfNN_ia64_install_value): Likewise.
2570 (elfNN_ia64_relocate_section): Likewise.
2571 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2572 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2574 2000-11-16 Kazu Hirata <kazu@hxi.com>
2576 * cpu-a29k.c: Fix formatting.
2577 * cpu-alpha.c: Likewise.
2578 * cpu-arm.c: Likewise.
2579 * cpu-avr.c: Likewise.
2580 * cpu-d10v.c: Likewise.
2581 * cpu-h8500.c: Likewise.
2582 * cpu-hppa.c: Likewise.
2583 * cpu-i370.c: Likewise.
2584 * cpu-i386.c: Likewise.
2585 * cpu-i960.c: Likewise.
2586 * cpu-ia64-opc.c: Likewise.
2587 * cpu-ia64.c: Likewise.
2588 * cpu-m32r.c: Likewise.
2589 * cpu-m68hc11.c: Likewise.
2590 * cpu-m68hc12.c: Likewise.
2591 * cpu-m68k.c: Likewise.
2592 * cpu-m88k.c: Likewise.
2593 * cpu-mips.c: Likewise.
2594 * cpu-ns32k.c: Likewise.
2595 * cpu-pj.c: Likewise.
2596 * cpu-powerpc.c: Likewise.
2597 * cpu-sh.c: Likewise.
2598 * cpu-sparc.c: Likewise.
2599 * cpu-tic54x.c: Likewise.
2600 * cpu-v850.c: Likewise.
2601 * cpu-vax.c: Likewise.
2602 * cpu-w65.c: Likewise.
2603 * cpu-we32k.c: Likewise.
2604 * cpu-z8k.c: Likewise.
2605 * dwarf1.c: Likewise.
2606 * dwarf2.c: Likewise.
2608 2000-11-15 Kazu Hirata <kazu@hxi.com>
2610 * coff-arm.c: Fix formatting.
2611 * coff-ppc.c: Likewise.
2612 * coff-rs6000.c: Likewise.
2613 * coff-sh.c: Likewise.
2614 * coff-sparc.c: Likewise.
2615 * coff-tic30.c: Likewise.
2616 * coff-tic54x.c: Likewise.
2617 * coff-tic80.c: Likewise.
2618 * coff-w65.c: Likewise.
2619 * coff-we32k.c: Likewise.
2620 * coff-z8k.c: Likewise.
2622 2000-11-15 Richard Henderson <rth@redhat.com>
2624 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2625 section with the same ALLOC|LOAD flags as the source section.
2627 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2629 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2630 by STO_ALPHA constants.
2632 2000-11-14 Kazu Hirata <kazu@hxi.com>
2634 * coff-pmac.c: Fix formatting.
2635 * coff-ppc.c: Likewise.
2637 2000-11-13 H.J. Lu <hjl@gnu.org>
2639 * elflink.h (elf_link_add_object_symbols): Also add indirect
2640 symbols for common symbols with the default version.
2642 2000-11-09 Philip Blundell <pb@futuretv.com>
2644 * section.c (STD_SECTION): Set gc_mark flag.
2646 2000-11-11 Kazu Hirata <kazu@hxi.com>
2648 * coff-i960.c: Likewise.
2649 * coff-m68k.c: Likewise.
2650 * coff-m88k.c: Likewise.
2651 * coff-mcore.c: Likewise.
2652 * coff-mips.c: Likewise.
2654 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2656 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2658 2000-11-10 Kazu Hirata <kazu@hxi.com>
2660 * coff-h8300.c: Fix formatting.
2661 * coff-h8500.c: Likewise.
2662 * coff-i386.c: Likewise.
2663 * coff-i860.c: Likewise.
2664 * coff-i960.c: Likewise.
2665 * coff-ia64.c: Likewise.
2667 2000-11-09 Kazu Hirata <kazu@hxi.com>
2669 * archive.c: Fix formatting.
2670 * archures.c: Likewise.
2672 2000-11-07 Richard Henderson <rth@redhat.com>
2674 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2675 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2676 * section.c (bfd_set_section_contents): Call memcpy if
2677 section->contents set and location not equal to contents plus offset.
2679 2000-11-08 Kazu Hirata <kazu@hxi.com>
2681 * bfd-in.h: Fix formatting.
2682 * bfd-in2.h: Likewise.
2684 * binary.c: Likewise.
2686 * coff-a29k.c: Likewise.
2687 * coff-alpha.c: Likewise.
2688 * coff-apollo.c: Likewise.
2689 * coff-aux.c: Likewise.
2691 2000-11-07 Kazu Hirata <kazu@hxi.com>
2693 * aix386-core.c: Fix formatting.
2694 * aoutf1.h: Likewise.
2695 * aoutx.h: Likewise.
2696 * archures.c: Likewise.
2697 * armnetbsd.c: Likewise.
2699 2000-11-07 Alan Modra <alan@linuxcare.com.au>
2701 * coff-h8300.c (special): Adjust reloc address.
2703 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2705 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2706 to differentiate elf32 and elf64 on ia64.
2707 * bfd-in2.h: Regenerate.
2708 * config.bfd: Add target for "ia64*-*-hpux*".
2709 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2710 * configure: Regenerate.
2711 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2712 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2714 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2715 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2716 * Makefile.in: Regnerate.
2717 * elf64-ia64.c: Deleted.
2718 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2720 2000-11-06 Kazu Hirata <kazu@hxi.com>
2722 * aout-adobe.c: Fix formatting.
2723 * aout-arm.c: Likewise.
2724 * aout-cris.c: Likewise.
2725 * aout-encap.c: Likewise.
2726 * aout-ns32k.c: Likewise.
2727 * aout-target.h: Likewise.
2728 * aout-tic30.c: Likewise.
2730 2000-11-05 Philip Blundell <philb@gnu.org>
2732 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2733 BFDs containing no sections to be merged, regardless of their flags.
2735 2000-11-04 Philip Blundell <philb@gnu.org>
2737 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2738 if a relocation for an undefined symbol also results in an
2741 2000-11-06 Christopher Faylor <cgf@cygnus.com>
2743 * config.bfd: Add support for Sun Chorus.
2745 2000-11-05 David O'Brien <obrien@FreeBSD.org>
2747 * configure.in: Recognize alpha-*-freebsd*.
2748 * configure: Regenerate.
2750 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2752 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2753 (Chunk): New global variable set by a parameter in objcopy.c.
2754 (S3Forced): New global variable set by a parameter in
2756 (srec_set_section_contents): If S3Forced is true, always generate
2758 (srec_write_section): Use 'Chunk' to limit maximum length of S
2761 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2763 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2764 * Makefile.in: Regenerate.
2765 * bfd-in2.h: Regenerate.
2766 * po/bfd.pot: Regenerate.
2768 2000-10-31 Philip Blundell <philb@gnu.org>
2770 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2771 EF_SOFT_FLOAT if it is defined.
2773 2000-10-27 Philip Blundell <philb@gnu.org>
2775 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2776 attempts to mix PIC code with non-PIC, just mark the output as
2777 being position dependent.
2778 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2779 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
2780 all mismatches, not just the first one.
2782 2000-10-25 Chris Demetriou <cgd@sibyte.com>
2784 * ieee.c (ieee_archive_p): Plug one of many possible
2785 memory leaks in error handling.
2787 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2789 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2790 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2792 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2793 sparc64_elf_object_p): Support v9b.
2794 * archures.c: Declare v8plusb and v9b machines.
2796 * cpu-sparc.c: Ditto.
2798 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2800 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2803 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2804 (SYMBOL_CALLS_LOCAL): New macro.
2805 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2806 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2807 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2808 (ppc_elf_relocate_section): Use flag variable to determine
2809 whether the relocation refers to a local symbol.
2810 Test whether a PLTREL24 reloc will produce a reloc by looking
2811 to see whether a PLT entry was made.
2813 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2815 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2816 entries that could serve as a definition for a weak symbol.
2818 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2820 From Ralf Baechle <ralf@gnu.org>
2822 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2823 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2824 against local symbols.
2825 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2827 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2829 * section.c (struct sec): Add kept_section.
2830 (struct bfd_comdat_info): Remove sec, we can use above.
2831 (STD_SECTION): Add initializer.
2832 (bfd_make_section_anyway): Init here too.
2834 * bfd-in2.h: Regenerate.
2836 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2838 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2839 fudge values for discarded link-once section symbols.
2841 * elf64-hppa.c: Include alloca-conf.h
2843 2000-10-11 Alan Modra <alan@linuxcare.com.au>
2845 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2847 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2849 2000-10-10 Alan Modra <alan@linuxcare.com.au>
2851 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2853 2000-10-10 Tom Rix <trix@redhat.com>
2855 * section.c (bfd_make_section_anyway): Release newsect ptr when
2856 newsect->symbol fails to alloc. Use bfd_release instead of free.
2858 2000-10-09 Richard Henderson <rth@cygnus.com
2860 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2861 (elf64_ia64_unwind_entry_compare): New.
2862 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2864 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2866 * elflink.h (size_dynamic_sections): Don't create various tags if
2867 .dynstr is excluded from the link. Don't set first dynsym entry
2868 if dynsymcount is zero.
2869 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2870 .dynsym excluded from the link. Don't try to write any dynamic
2871 sections excluded from the link.
2873 * elf.c (swap_out_syms): Handle global section symbols.
2875 2000-10-05 DJ Delorie <dj@redhat.com>
2877 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2878 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2879 (coff_write_relocs): write extended reloc count
2880 (coff_write_object_contents): account for extended relocs
2882 2000-10-05 Jim Wilson <wilson@cygnus.com>
2884 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2886 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2887 elf_backend_section_flags function.
2888 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2890 (elf64_ia64_section_flags): New function containing flag conversion
2892 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2893 * elfxx-target.h (elf_backend_section_flags): Define.
2894 (elfNN_bed): Initialize elf_backend_section_flags field.
2896 2000-10-02 Alan Modra <alan@linuxcare.com.au>
2898 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2899 _bfd_elf32_gc_record_vtable. Correct a comment.
2901 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2903 From Ralf Baechle <ralf@gnu.org>
2905 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2906 produces binaries with got[1] = 0x80000001 to differenciate them
2907 for the dynamic linker from the broken binaries produced by old
2910 2000-09-30 Petr Sorfa <petrs@sco.com>
2912 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2913 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2914 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2915 * configure: Regenerate.
2917 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
2919 Define two bfd_targets for absence and presence of leading
2920 underscore on symbols. Make sure to only link same kind.
2921 * elf32-cris.c (cris_elf_object_p,
2922 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2923 cris_elf_merge_private_bfd_data): New.
2924 (elf_backend_object_p, elf_backend_final_write_processing,
2925 bfd_elf32_bfd_print_private_bfd_data,
2926 bfd_elf32_bfd_merge_private_bfd_data): Define.
2927 <Target vector definition>: Include elf32-target.h twice with
2928 different macro settings:
2929 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2930 bfd_elf32_us_cris_vec.
2931 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2932 (elf_symbol_leading_char): First as 0, then '_'.
2933 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2934 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2935 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2936 * configure: Regenerate.
2937 * targets.c: Declare bfd_elf32_us_cris_vec.
2938 * po/bfd.pot: Regenerate.
2940 2000-09-29 Momchil Velikov <velco@fadata.bg>
2942 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2943 R_ARM_THM_PC22 relocations.
2945 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2947 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2949 2000-09-29 Momchil Velikov <velco@fadata.bg>
2951 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2952 is has the SEC_HAS_CONTENTS flag set.
2954 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
2955 Hans-Peter Nilsson <hp@axis.com>
2957 * aout-cris.c (N_TXTADDR): Define.
2959 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2961 * som.c: Include alloca-conf.h.
2962 * Makefile.am: "make dep-am"
2963 * Makefile.in: Regenerate.
2965 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2967 * elf32-hppa.c (plt_stub): New.
2968 (PLT_STUB_ENTRY): Define.
2969 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2970 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2971 (elf32_hppa_link_hash_table_create): Init to suit.
2972 (elf32_hppa_check_relocs): Set has_12bit_branch and
2973 has_17bit_branch as appropriate.
2974 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2975 non-local functions.
2976 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2977 Add space for plt_stub as needed.
2978 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2979 functions at plt_stub.
2980 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2981 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2983 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2984 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2985 of fixed size, and if negative, disable handling of input sections
2986 before stub section. Set up default stub group size depending
2987 on detected branch relocs.
2988 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2989 ensure different offsets from sym_value aren't rounded to
2990 different 2k blocks. Use lrsel and rrsel for other stubs too for
2991 consistency rather than necessity.
2992 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2993 (final_link_relocate): Likewise.
2994 (elf32_hppa_relocate_section): Likewise.
2996 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2997 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2998 (elf_hppa_final_link_relocate): Handle them.
2999 (elf_hppa_relocate_insn): Likewise.
3000 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3002 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
3004 * elfcode.h (elf_object_p): Preserve and clear abfd section
3005 information. Restore at error.
3007 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3009 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3010 is empty, make sure that its rva also 0. NT loader dislikes
3013 2000-09-26 Steve Ellcey <sje@cup.hp.com>
3015 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3018 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3020 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3021 currently unused RELATIVE_DYNAMIC_RELOCS code.
3022 (hppa_discard_copies): Likewise.
3023 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
3024 comments. Don't check non-code output sections for stub grouping.
3026 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3028 * section.c (bfd_get_unique_section_name): Return NULL if
3031 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3033 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3034 instruction sequence to actually work.
3035 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3038 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3040 * elf32-sh.c (sh_elf_relocate_section): Use
3041 _bfd_final_link_relocate to apply the relocation against a section
3042 symbol, when doing relocatable links.
3044 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3046 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3048 (stub_hash_newfunc): Here too.
3049 (hppa_add_stub): And here.
3050 (elf32_hppa_link_hash_table): Remove stub_section_created,
3051 reloc_section_created, first_init_sec and first_fini_sec. Add
3053 (elf32_hppa_link_hash_table_create): Init to suit.
3054 (hppa_get_stub_entry): Add support for grouping stub sections.
3055 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
3056 section code. Index stub vars by section->id.
3057 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
3058 exit paths. Zap allocation of above removed vars. Refine
3061 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3062 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3063 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3064 rather than pointer to bfd_link_info.
3065 (hppa_add_stub): Likewise.
3066 (final_link_relocate): Likewise.
3068 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
3070 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3073 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
3075 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3076 ld/emulparams/shelf.sh.
3078 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3080 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3081 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3082 * bfd-in2.h: Regenerate.
3084 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
3086 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3087 LITUSE relocations incorrectly if -relax is specified on the ld
3088 command line and the displacement field of the load or store
3089 instruction is non-zero. (Patch by paul.winalski@compaq.com)
3091 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3093 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3094 first_fini_sec here.
3095 (elf32_hppa_size_stubs): Instead correctly find the first .init
3096 and .fini section here.
3098 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
3100 * elf32-hppa.c (clobber_millicode_symbols): New function.
3101 (elf32_hppa_size_dynamic_sections): Call it.
3103 2000-09-14 Alan Modra <alan@linuxcare.com.au>
3105 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3106 packed. Add plabel, plt_abs packed booleans.
3107 (hppa_link_hash_newfunc): Init new fields.
3108 (PLABEL_PLT_ENTRY_SIZE): Define.
3109 (hppa_stub_name): Use size_t len vars.
3110 (hppa_add_stub): Likewise.
3111 (elf32_hppa_build_stubs): Likewise.
3112 (hppa_build_one_stub): Kill some compiler warnings.
3113 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3114 if dynamic linking. Munge the local plt offsets into
3115 local_got_refcounts. Set h->plabel for all global PLABELs. Use
3116 size_t len vars. Add assert for plabel addend.
3117 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3118 (elf32_hppa_hide_symbol): New function.
3119 (elf_backend_hide_symbol): Define.
3120 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3121 with h->plabel set. Don't make plt entries to have dynamic syms
3122 when they have been forced local. If plt entry is used by a
3123 plabel, make it PLABEL_PLT_ENTRY_SIZE.
3124 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3125 Set up .plt offsets for local syms.
3126 (elf32_hppa_relocate_section): Initialise plt entries for local
3127 syms. Leave weak undefined plabels zero. Make global plabel
3128 relocs against function symbol, and leave the addend zero.
3129 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3130 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3131 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
3132 relocs instead of SEGREL32 for dynamic got relocs.
3133 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3134 (elf_backend_got_header_size): Adjust.
3135 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3137 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3138 (hppa_type_of_stub): Use it instead of #if 0
3139 (hppa_discard_copies): Use it here too.
3140 (elf32_hppa_size_dynamic_sections): And here.
3142 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3143 (elf32_hppa_link_hash_table_create): And here.
3144 (hppa_build_one_stub): And here. Instead keep track of stub
3145 offset using _raw_size.
3146 (elf32_hppa_size_stubs): Likewise.
3147 (elf32_hppa_build_stubs): Likewise.
3148 (hppa_size_one_stub): Likewise. Resize reloc section too.
3150 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3151 first_fini_sec handling. Don't search for reloc section or set
3152 hplink->reloc_section_created here.
3153 (elf32_hppa_size_stubs): Instead search for reloc sections, and
3154 set reloc_section_created here.
3155 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3156 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3158 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3160 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3161 with `hplink->root.'.
3162 (elf32_hppa_check_relocs): Likewise.
3163 (elf32_hppa_gc_sweep_hook): Likewise.
3164 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3165 (hppa_handle_PIC_calls): Likewise.
3166 (elf32_hppa_size_dynamic_sections): Likewise.
3167 (elf32_hppa_set_gp): Likewise.
3168 (elf32_hppa_relocate_section): Likewise.
3169 (elf32_hppa_finish_dynamic_symbol): Likewise.
3170 (elf32_hppa_finish_dynamic_sections): Likewise.
3172 From David Huggins-Daines <dhd@linuxcare.com>
3173 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3174 defined weak symbols in shared links.
3175 (final_link_relocate): Calls to defined weak symbols in shared
3176 objects must go via import stubs, as the target might not be known
3179 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3181 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3182 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3183 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
3184 the original entries with EMPTY_HOWTOs, and added new ones to fill
3186 (sh_elf_info_to_howto): Make sure the new gap isn't used.
3187 (sh_elf_relocate_section): Likewise.
3189 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3191 * cpu-mips.c (arch_info_struct): Add mips:4K
3192 * bfd-in2.h (bfd_mach_mips4K): New define.
3193 * archures.c: Add bfd_mach_mips4K to comment.
3194 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3195 E_MIPS_ARCH_2 for bfd_mach_mips4K.
3197 2000-09-13 Marco Franzen <marcof@thyron.com>
3199 * som.c (som_write_symbol_strings): Do not used fixed buffers,
3200 use size_t as a counter.
3201 (som_write_space_strings): Similarly.
3203 2000-09-12 Jason Eckhardt <jle@cygnus.com>
3205 * elf32-i860.c (elf32_i860_relocate_pc26): New function
3207 (elf32_i860_relocate_section): Invoke new function from here.
3209 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3211 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3214 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3216 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3217 target section name instead of dumping core when the target symbol is
3220 2000-09-09 Kazu Hirata <kazu@hxi.com>
3222 * riscix.c: Remove DEFUN.
3224 2000-09-08 Nick Clifton <nickc@redhat.com>
3226 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3227 initialise flags in output bfd if the input bfd is the default
3228 architecture with the default flags.
3230 2000-09-08 Kazu Hirata <kazu@hxi.com>
3232 * archive.c: Fix formatting.
3233 * coff-arm.c: Likewise.
3234 * doc/chew.c: Likewise.
3236 2000-09-08 Alan Modra <alan@linuxcare.com.au>
3238 * section.c (bfd_get_unique_section_name): Put a dot before the
3241 2000-09-07 Kazu Hirata <kazu@hxi.com>
3243 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
3244 * elf.c: Fix formatting.
3246 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
3248 * config.bfd (sh-*-linux*): Added.
3249 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
3250 * targets.c: Declare them.
3251 * elf32-sh-lin.c: New file.
3252 * Makefile.am: Compile it.
3253 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
3254 * configure, Makefile.in: Rebuilt.
3256 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
3258 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
3259 pseduo-section when determining where the TOC ends.
3261 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
3262 output x_tvndx as it is only two bytes wide.
3264 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
3265 reloc is 26 or 32 bits wide.
3267 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
3268 for relocs that don't change anything. Also look at the full
3271 2000-09-06 Philip Blundell <philb@gnu.org>
3273 * config.bfd (arm*-*-uclinux*): New target.
3275 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3277 * configure: Rebuilt with new libtool.m4.
3279 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3281 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
3282 word for variable name.
3283 * bfd-in2.h: Regenerate.
3285 2000-09-05 Nick Clifton <nickc@redhat.com>
3287 * config.in: Regenerate.
3288 * libbfd.h: Regenerate.
3289 * po/bfd.pot: Regenerate.
3290 * doc/bfdint.texi: Remove CVS date string - it foils compares with
3293 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
3295 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
3297 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3299 Shared library and PIC support.
3300 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
3301 (GOT_ENTRY_SIZE): New.
3302 (ELF_DYNAMIC_INTERPRETER): New.
3303 (STUB_SUFFIX): Define.
3304 (LONG_BRANCH_PIC_IN_SHLIB): Define.
3305 (RELATIVE_DYNAMIC_RELOCS): Define.
3306 (enum elf32_hppa_stub_type): New.
3307 (struct elf32_hppa_stub_hash_entry): Rename offset to
3308 stub_offset. Add a number of new fields.
3309 (struct elf32_hppa_link_hash_entry): New.
3310 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
3312 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
3313 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
3314 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
3316 (hppa_link_hash_newfunc): New function.
3317 (elf32_hppa_link_hash_table_create): Use above function. Init new
3319 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
3320 instead of addend, and remove sym_name from args. Don't use
3321 symbol name for local syms, instead use sym index.
3322 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
3323 stub type rather than size. Pass in hash and handle import stub
3324 case. Also pass in reloc instead of offset so we can calculate
3325 PCREL22F and PCREL12F branches properly.
3326 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
3327 import and export stubs too.
3328 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
3329 import and export stub sizing.
3330 (elf32_hppa_check_relocs): New function.
3331 (elf32_hppa_adjust_dynamic_symbol): New function.
3332 (hppa_discard_copies): New function.
3333 (elf32_hppa_size_dynamic_sections): New function.
3334 (elf_backend_size_dynamic_sections): Define.
3335 (elf32_hppa_finish_dynamic_symbol): New function.
3336 (elf_backend_finish_dynamic_symbol): Define.
3337 (elf32_hppa_size_stubs): Stash params in link hash table, and move
3338 some local vars into the link hash table too. For shared links,
3339 trundle over function syms, generating export stubs. Handle
3340 PCREL22F branches. Break out stub creation code from here..
3341 (hppa_add_stub): .. to here. New function.
3342 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
3343 call the bfd linker. Use elf_gp to record global pointer.
3344 Calculate a value from sections if $global$ is missing.
3345 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
3346 (elf32_hppa_gc_mark_hook): New function.
3347 (elf_backend_gc_mark_hook): Define.
3348 (elf32_hppa_gc_sweep_hook): New function.
3349 (elf_backend_gc_sweep_hook): Define.
3350 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
3351 Add rel to args, and remove howto, input_bfd, offset, addend,
3352 sym_name as we can recalculate these locally. Handle calls to
3353 dynamic objects, extra PIC relocs, PCREL22F branches. Change
3354 handling of undefined weak syms. Check that stubs are in range.
3355 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
3356 message on hitting a DPREL21L reloc that needs fixing. Subtract
3357 off PC for PCREL14F. Break out code that does a stub lookup from
3359 (hppa_get_stub_entry): ..to here. New function.
3360 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
3361 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
3363 (elf32_hppa_finish_dynamic_sections): New function.
3364 (elf_backend_finish_dynamic_sections): Define.
3365 (elf_backend_final_write_processing) Define.
3366 (hppa_handle_PIC_calls): New function.
3367 (elf32_hppa_build_stubs): Call it. Pass link_info to
3368 hppa_build_one_stub.
3369 (elf32_hppa_create_dynamic_sections): New function
3370 to create .plt and .got then set .plt flags correctly.
3371 (elf_backend_create_dynamic_sections): Define.
3372 (elf32_hppa_object_p): New function.
3373 (elf_backend_object_p): Define.
3374 (elf32_hppa_elf_get_symbol_type): New function.
3375 (elf_backend_get_symbol_type): Define.
3376 (elf_backend_can_gc_sections): Define.
3377 (elf_backend_want_got_plt): Define.
3378 (elf_backend_plt_alignment): Set to 2.
3379 (elf_backend_plt_readonly): Define.
3380 (elf_backend_want_plt_sym): Define.
3381 (elf_backend_got_header_size): Reserve one entry.
3383 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
3384 (elf32_hppa_size_stubs): Pass in multi_subspace.
3385 (elf32_hppa_set_gp): Declare.
3387 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
3388 (bfd_get_unique_section_name): New function.
3389 * bfd-in2.h: Regenerate.
3391 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
3392 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
3395 From David Huggins-Daines <dhd@linuxcare.com>
3396 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
3397 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
3398 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
3399 been updated in finish_dynamic_symbol before modifying function
3402 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
3403 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
3404 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
3405 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
3406 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
3407 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
3408 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
3409 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
3411 From David Huggins-Daines <dhd@linuxcare.com>
3412 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
3413 style of local labels as well.
3415 2000-09-03 Philip Blundell <philb@gnu.org>
3417 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
3418 references to undefined symbols in debugging sections.
3420 2000-09-02 H.J. Lu <hjl@gnu.org>
3422 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3423 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
3424 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
3427 2000-09-02 Jason Eckhardt <jle@cygnus.com>
3429 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
3430 (elf32_i860_is_local_label_name): New function and prototype.
3432 2000-09-02 Nick Clifton <nickc@redhat.com>
3434 * configure.in: Increase version number to 2.10.91.
3435 * configure: Regenerate.
3436 * aclocal.m4: Regenerate.
3437 * config.in: Regenerate.
3438 * po/bfd.pot: Regenerate.
3440 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3442 * elf.c (_bfd_elf_make_section_from_shdr): Add
3443 .gnu.linkobce.wi. to the list of debug section names.
3445 2000-09-02 Nick Clifton <nickc@redhat.com>
3447 * dwarf2.c (find_debug_info): New function: Locate a section
3448 containing dwarf2 debug information.
3449 (bfd_dwarf2_find_nearest_line): Find all sections containing
3450 debug information and include them in the stash.
3452 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3454 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3455 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3456 (sh_reloc_map): Add new relocs.
3457 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3458 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3459 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3460 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3462 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3463 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3464 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3465 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3466 New array constants.
3467 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3469 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3470 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3471 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3472 elf_sh_plt_reloc_offset): Define.
3473 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3474 elf_sh_link_hash_table): New structs.
3475 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3476 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3478 (elf_backend_create_dynamic_sections,
3479 bfd_elf32_bfd_link_hash_table_create,
3480 elf_backend_adjust_dynamic_symbol,
3481 elf_backend_size_dynamic_sections,
3482 elf_backend_finish_dynamic_symbol,
3483 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3484 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3485 elf_backend_got_header_size, elf_backend_plt_header_size):
3487 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3488 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3490 * bfd-in2.h, libbfd.h: Rebuilt.
3492 2000-09-01 Alan Modra <alan@linuxcare.com.au>
3494 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3497 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
3499 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3500 not initialized, set them to indicate the SH1 instruction set.
3502 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3504 * acinclude.m4: Include libtool and gettext macros from the
3506 * aclocal.m4, configure: Rebuilt.
3508 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
3510 * elf.c: Eliminate references to __sparcv9 macro; replace with
3511 autoconf variables HAVE_PSINFO32_T etc.
3512 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
3513 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
3515 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
3516 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
3517 * aclocal.m4: Ditto.
3518 * configure: Regenerate.
3520 2000-08-27 Alan Modra <alan@linuxcare.com.au>
3522 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
3523 for any shared link, not just shared -Bsymbolic.
3524 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
3525 any shared link, and pass link info to it.
3526 (elf_i386_size_dynamic_sections): Update comment.
3527 (elf_i386_discard_copies): Modify to discard relocs for symbols
3528 that have been forced local.
3529 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
3530 that have been forced local.
3532 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
3534 * elflink.h (elf_link_add_object_symbols): Allow common
3535 symbols to have an alignment of 1 if explicitly requested, and
3536 not overridden by other definitions.
3538 2000-08-22 Doug Kwan <dkwan@transmeta.com>
3540 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
3541 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
3543 2000-08-22 H.J. Lu <hjl@gnu.org>
3545 * elf-bfd.h (elf_link_hash_table): Add runpath.
3547 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
3548 * bfd-in2.h: Rebuilt.
3550 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
3551 "runpath" field to NULL.
3552 (bfd_elf_get_runpath_list): New function.
3554 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
3557 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3559 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
3560 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
3561 explicitly. Improve validation of r_type.
3563 2000-08-21 H.J. Lu <hjl@gnu.org>
3565 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
3566 dynamic allocated content space. Add a comment to remind us that
3567 one day this ought to be fixed.
3568 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3569 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3570 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3572 2000-08-21 Jason Eckhardt <jle@cygnus.com>
3574 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
3575 field with the newly relocated value instead of adding it to the
3576 existing immediate field.
3577 (elf32_i860_relocate_splitn): Likewise.
3578 (elf32_i860_relocate_highadj): Likewise.
3580 2000-08-16 Jason Eckhardt <jle@cygnus.com>
3582 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
3583 was previously just a stub).
3585 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
3587 * elflink.c (_bfd_elf_create_got_section): Don't abort().
3589 (_bfd_elf_create_dynamic_sections): Likewise.
3591 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
3593 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
3594 for undefined symbols to be the beginning of the section.
3596 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
3597 four extra entries at the beginning of the .rela.plt section.
3598 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
3599 section to account for the four reserved entries in the .plt section.
3601 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
3603 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
3604 to the list of NOPs we recognize after a branch-and-link.
3605 Use the ori NOP when one is needed.
3607 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
3610 2000-08-14 Jim Wilson <wilson@cygnus.com>
3612 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
3613 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
3614 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
3617 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
3619 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
3621 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3623 * elf32-i860.c (elf32_i860_relocate_section): New function.
3624 (i860_final_link_relocate): New function.
3625 (elf32_i860_relocate_splitn): New function.
3626 (elf32_i860_relocate_pc16): New function.
3627 (elf32_i860_relocate_highadj): New function.
3628 (elf32_i860_howto): Minor adjustments to some relocations.
3629 (elf_info_to_howto_rel): Define.
3630 (elf_backend_relocate_section): Define.
3632 2000-08-10 Nick Clifton <nickc@cygnus.com>
3634 * elf32-arm.h: Fix formatting.
3636 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
3638 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
3640 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3642 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
3644 2000-08-07 Kazu Hirata <kazu@hxi.com>
3646 * ieee.c (ieee_write_debug_part): Rewrite a comment.
3647 * elf64-ia64.c: Fix a typo.
3649 2000-08-05 Jason Eckhardt <jle@cygnus.com>
3651 * elf32-i860.c (elf32_i860_howto_table): New structure.
3652 (lookup_howto): New function.
3653 (elf32_i860_reloc_type_lookup): New function.
3654 (elf32_i860_info_to_howto_rela): New function.
3655 (elf_code_to_howto_index): New structure.
3656 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
3657 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
3658 elf32_i860_reloc_type_lookup.
3660 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
3662 * som.c (struct fixup_format): Constify `format'.
3663 (som_hppa_howto_table): Use SOM_HOWTO macro.
3664 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
3665 (som_bfd_reloc_type_lookup): Likewise.
3666 (compare_subspaces): Remove unused `count1', `count2'.
3667 (som_begin_writing): Remove unused `total_reloc_size'.
3668 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
3669 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
3670 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
3671 (som_find_nearest_line): Decorate unused parameter(s).
3672 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
3673 (som_bfd_link_split_section): Likewise.
3675 2000-08-03 Nick Clifton <nickc@cygnus.com>
3677 * section.c: Restore backed out code.
3678 * elf.c: Restore backed out code.
3679 (copy_private_bfd_data): Fix bug preventing stipped dynamic
3680 binaries from working.
3681 * bfd-in2.h: Regenerate.
3683 2000-08-03 H.J. Lu <hjl@gnu.org>
3685 * section.c: Back out the change made by Nick Clifton
3686 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
3688 * bfd-in2.h: Likewise.
3691 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
3693 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
3695 2000-07-31 Jason Eckhardt <jle@cygnus.com>
3697 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
3698 * bfd-in2.h, libbfd.h: Regenerate.
3700 2000-07-31 Nick Clifton <nickc@cygnus.com>
3702 * section.c (struct sec): Add new boolean field 'segment_mark'.
3703 (STD_SECTION): Initialise new field to zero.
3705 * bfd-in2.h: Regenerate.
3707 * elf.c (copy_private_bfd_data): Reorganise section to segment
3708 mapping to cope with moved sections requiring new segments,
3709 and overlapping segments.
3710 (SEGMENT_END): New macro: Return the end address of a segment.
3711 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
3712 contains a section by comparing their VMA addresses.
3713 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
3714 contains a section by comparing their LMA addresses.
3715 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
3716 section should be included in a segment.
3717 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
3718 follows another in memory.
3719 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
3722 2000-07-22 Jason Eckhardt <jle@cygnus.com>
3724 * cpu-i860.c: Added comments.
3726 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
3727 bfd_elf32_i860_little_vec.
3728 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
3729 (ELF_MAXPAGESIZE): Changed to 4096.
3731 * targets.c (bfd_elf32_i860_little_vec): Declaration of
3733 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3735 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3736 config for little endian elf32 i860.
3737 (targ_defvec): Define for the new config above
3738 as "bfd_elf32_i860_little_vec".
3739 (targ_selvecs): Define for the new config above
3740 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3742 * configure.in (bfd_elf32_i860_little_vec): Added recognition
3745 * configure: Regenerated.
3747 2000-07-27 H.J. Lu <hjl@gnu.org>
3749 * elflink.h (elf_merge_symbol): Take one more argument,
3750 dt_needed, to indicate if the symbol comes from a DT_NEEDED
3751 entry. Don't overide the existing weak definition if dt_needed
3753 (elf_link_add_object_symbols): Pass dt_needed to
3754 elf_merge_symbol ().
3756 2000-07-27 Nick Clifton <nickc@cygnus.com>
3758 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
3761 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
3763 * configure.host (*-*-aix*): AIX has 'long long' always.
3765 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
3766 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
3767 (xcoff_write_archive_contents_big): Don't update the offset
3768 of the symbol table, xcoff_write_armap will do it.
3770 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
3772 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
3773 of dynobj for SGI_COMPAT checks.
3775 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3777 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
3778 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
3779 * bfd-in2.h: Regenerate.
3781 2000-07-21 Nick Clifton <nickc@cygnus.com>
3783 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
3784 range symbol indices in relocs and issue an error message.
3786 2000-07-20 H.J. Lu <hjl@gnu.org>
3788 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
3789 info->new_dtags when setting DT_FLAGS_1. It will only be set
3790 by the new linker options. It shouldn't break anything.
3792 2000-07-20 H.J. Lu <hjl@gnu.org>
3794 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
3795 only if info->new_dtags is true.
3797 2000-07-20 H.J. Lu <hjl@gnu.org>
3799 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
3800 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
3802 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3804 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
3805 (ALL_MACHINES_CFILES): Add cpu-cris.c.
3806 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
3807 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
3808 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
3809 * Makefile.in: Rebuild.
3810 * aclocal.m4: Rebuild.
3811 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
3812 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
3813 (bfd_cris_arch): Declare.
3814 (bfd_archures_list): Add bfd_cris_arch.
3815 * bfd-in2.h: Rebuild.
3816 * config.bfd: (cris-*-*): New target.
3817 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
3818 * configure: Rebuild.
3819 * elf.c (prep_headers): Add bfd_arch_cris.
3820 * libbfd.h: Rebuild.
3821 * libaout.h (enum machine_type): Add M_CRIS.
3822 * reloc.c: Add CRIS relocations.
3823 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
3824 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
3825 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
3826 * po/POTFILES.in, po/bfd.pot: Regenerate.
3828 2000-07-19 H.J. Lu <hjl@gnu.org>
3830 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
3831 DF_TEXTREL if DT_TEXTREL is set.
3832 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3833 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3834 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3835 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
3836 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3837 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3838 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
3839 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3840 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
3841 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3843 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
3844 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
3846 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
3848 2000-07-19 H.J. Lu <hjl@gnu.org>
3850 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
3851 * bfd-in2.h: Rebuild.
3853 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
3854 (elf_dt_soname): New.
3856 * elf.c (bfd_elf_set_dt_needed_soname): New.
3858 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
3859 entry if the shared object loaded by DT_NEEDED is used to
3860 resolve the reference in a regular object.
3862 2000-07-19 H.J. Lu <hjl@gnu.org>
3864 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
3865 DT_DEPAUDIT and DT_AUDIT as strings.
3867 2000-07-19 Nick Clifton <nickc@cygnus.com>
3869 * format.c: Fix formatting.
3871 2000-07-19 H.J. Lu <hjl@gnu.org>
3873 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
3875 2000-07-19 H.J. Lu <hjl@gnu.org>
3877 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3878 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3879 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3880 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3881 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3882 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3883 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3885 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
3887 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3888 renamed functions from here...
3889 (assign_section_numbers): Use renamed functions.
3890 (prep_headers): Use renamed functions.
3892 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3893 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3894 * bfd-in2.h: Regenerate.
3896 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
3898 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3899 parenthesis in if statement.
3901 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
3903 Enable the support for Traditional MIPS.
3904 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3905 return ict_none appropriately for traditional mips targets.
3906 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3907 (STUB_MOVE): Conditionalize for traditonal mips.
3908 (STUB_LI16): Likewise.
3909 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3910 room for RTPROC header.
3911 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3912 the permission for the PT_DYNAMIC as read, write and execute.
3913 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3914 for traditonal mips.
3915 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3916 _DYNAMIC_LINKING for traditonal mips.
3917 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3918 in case of traditonal mips.
3919 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3920 entry is required. For a function if PLT is not required then set the
3921 corresponding hash table entry to 0.
3922 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3924 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3925 shared object set the value to 0.
3926 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3927 _DYNAMIC_LINKING for traditonal mips.
3928 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3929 for traditonal mips.
3931 2000-07-15 H.J. Lu <hjl@gnu.org>
3933 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3935 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3937 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3938 out a structure that is BFD_IN_MEMORY.
3940 2000-07-11 Alan Modra <alan@linuxcare.com.au>
3942 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3943 bfd pointer. Print section id instead of bfd pointer for local
3944 syms. Prefix addend with `+' for global syms as well as local.
3945 Correct calculation of name component lengths.
3946 (elf64_hppa_check_relocs): Update call to get_dyn_name.
3948 From David Huggins-Daines <dhd@linuxcare.com>
3949 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3950 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3951 (elf64_hppa_modify_segment_map): Likewise.
3953 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3955 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3956 addresses to be "naturally" sign extended. Return -1 if unknown.
3957 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3958 * bfd-in2.h: Regenerate.
3960 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3962 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3963 and ECOF_SIGNED_64 to list ways to extract an offset.
3964 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3965 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3967 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3968 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3970 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3972 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3973 bfd_get_start_address.
3974 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3975 (elf_swap_ehdr_out): Ditto.
3977 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3979 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3980 compatibility with older binutils.
3982 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3984 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3985 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3987 From Ryan Bradetich <rbradetich@uswest.net>
3988 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3989 (parse_line_table): Ditto.
3990 (_bfd_dwarf1_find_nearest_line): Ditto.
3991 * syms.c (cmpindexentry): Remove extra `*' from params.
3993 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3995 * elf32-mips.c (sort_dynamic_relocs): New Function.
3996 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3997 via qsort to sort the dynamic relocations in increasing r_symndx
4000 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4002 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4003 ATTRIBUTE_UNUSED to unused args.
4004 (get_opd): Likewise.
4005 (get_plt): Likewise.
4006 (get_dlt): Likewise.
4007 (get_stub): Likewise.
4008 (elf64_hppa_adjust_dynamic_symbol): Likewise.
4009 (elf64_hppa_link_output_symbol_hook): Likewise.
4010 (elf64_hppa_check_relocs): Delete unused var.
4011 (elf64_hppa_size_dynamic_sections): Likewise.
4012 (elf64_hppa_finalize_opd): Likewise.
4013 (elf64_hppa_finalize_dynreloc): Likewise.
4014 (elf64_hppa_modify_segment_map): Likewise.
4015 (elf64_hppa_finish_dynamic_sections): Likewise.
4017 * elf-hppa.h (elf_hppa_final_write_processing): Add
4018 ATTRIBUTE_UNUSED to unused args.
4019 (elf_hppa_final_link_relocate): Likewise.
4020 (elf_hppa_record_segment_addrs): Add paretheses.
4021 (elf_hppa_relocate_section): Constify dyn_name.
4023 From David Huggins-Daines <dhd@linuxcare.com>
4024 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4025 rearrange case statement so that it gets preferred to 32-bit ones.
4027 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4028 asection->id instead of address of asection structure.
4029 (elf32_hppa_size_stubs): Likewise.
4031 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4032 for .init* and .fini*.
4034 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4035 and addends used in stub names to 32 bits.
4036 (elf32_hppa_size_stubs): Likewise.
4038 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4039 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
4040 not bfd_put_64. Fix minor comment typo and formatting.
4042 Changes to create multiple linker stubs, positioned immediately
4043 before the section where they are required.
4044 * elf32-hppa.c: Don't include hppa_stubs.h.
4045 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4046 (elf32_hppa_stub_hash_table): Delete.
4047 (elf32_hppa_link_hash_entry): Delete.
4048 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4049 stub_hash_table, and store the struct here rather than a pointer.
4050 Delete output_symbol_count. Add offset array. Change
4051 global_value to a bfd_vma.
4052 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4053 (elf32_hppa_stub_hash_traverse): Delete.
4054 (elf32_hppa_name_of_stub): Delete.
4055 (elf32_hppa_link_hash_lookup): Delete.
4056 (elf32_hppa_link_hash_traverse): Delete.
4057 (elf32_hppa_stub_hash_table_init): Delete.
4058 (elf32_hppa_size_of_stub): Pass input section and offset rather
4059 than location and calculate location here. Don't pass name as all
4060 stubs are now the same size.
4061 (elf32_hppa_stub_hash_newfunc): Init new fields.
4062 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4064 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4065 comparing against ints. Rewrite stub handling code.
4066 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4067 Case enums to int before comparing against ints. Remove
4068 bfd_reloc_dangerous case.
4069 (elf32_hppa_build_one_stub): Rewrite.
4070 (elf32_hppa_size_one_stub): New function.
4071 (elf32_hppa_build_stubs): Rewrite.
4072 (elf32_hppa_size_stubs): Pass in linker call-back functions.
4073 Rewrite stub-handling specific code.
4075 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4077 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4079 * hppa_stubs.h: Delete.
4080 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4081 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4082 * Makefile.in: Regenerate.
4084 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4087 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4089 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4090 and section name for bfd_reloc_notsupported error message.
4091 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4092 bfd_reloc_notsupported.
4093 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4095 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4096 undefined weak symbols for all relocs.
4097 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4098 offsets are relative to one past the delay slot.
4099 (elf32_hppa_size_stubs): Account for reloc addend when calculating
4100 branch destination. Put addend into stub name too.
4101 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4102 adjust by 8 when deciding whether a linker stub is needed. Put
4103 addend into stub name as for above.
4105 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4106 various args and vars.
4107 (elf32_hppa_bfd_final_link_relocate): Here too.
4108 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
4109 inner block var to avoid shadowing.
4111 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
4113 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4114 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4115 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4117 * libhppa.h: Change practically all unsigned ints to plain ints.
4118 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
4121 From Ryan Bradetich <rbradetich@uswest.net>
4122 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4123 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4125 From David Huggins-Daines <dhd@linuxcare.com>
4126 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4127 to the new OP_* ones.
4129 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4130 error exit. Bail out earlier on plabel relocs that we aren't
4131 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
4132 string, and then don't free our copy.
4133 (elf32_hppa_build_one_stub): Make insn unsigned int.
4135 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4136 available with BL, not BE and BLE.
4138 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4139 code for elf arg relocs.
4140 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4141 argument with elf_link_hash_entry h. Handle undefined weak
4142 symbols. Move $global$ lookup from here...
4143 (elf32_hppa_relocate_section): ...to here. Return correct error
4144 message for non-handled relocs.
4145 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
4146 wrong test was -0x3ffff to +0x40000.
4148 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4149 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4150 Handle them as such.
4151 (elf_hppa_relocate_insn): Fix a typo.
4153 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4154 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4155 assemble_17, assemble_21): Delete.
4156 Supply defines for all 64 possible opcodes.
4157 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4158 formats. Handle COMICLR.
4159 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
4162 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4163 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4164 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4166 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
4167 the local syms - did this code get deleted accidentally? Ignore
4168 undefined and undefweak syms.
4170 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4171 block. Use it instead of elf64_hppa_hash_table (info).
4172 (elf_hppa_final_link_relocate): Use hppa_info instead of
4173 elf64_hppa_hash_table (info).
4175 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4176 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4177 (hppa_rebuild_insn): Mask immediate bits here instead.
4178 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4180 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4182 * section.c (struct sec): Add id field. Tidy comment formatting.
4183 (bfd_make_section_anyway): Set id.
4184 (STD_SECTION): Init id too.
4185 Change CONST to const throughout.
4186 * archures.c (bfd_arch_info): Tidy comment.
4187 (bfd_arch_list): Change a CONST to const.
4188 * libbfd-in.h: Tidy comments and replace CONST with const.
4189 * elf-bfd.h: Likewise.
4190 * libbfd.h: Regenerate.
4191 * bfd-in2.h: Regenerate.
4192 * libcoff.h: Regenerate.
4194 2000-07-07 DJ Delorie <dj@redhat.com>
4196 * archive.c (_bfd_write_archive_contents): Add an informative
4199 2000-07-06 Kazu Hirata <kazu@hxi.com>
4201 * srec.c: Fix formatting.
4203 2000-06-05 DJ Delorie <dj@redhat.com>
4207 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
4209 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4210 value of PC-relative offsets.
4212 2000-07-03 Jim Wilson <wilson@cygnus.com>
4214 * elf64-alpha.c (alpha_elf_size_info): New.
4215 (elf_backend_size_info): Define to alpha_elf_size_info.
4216 * elfcode.h (elf_size_info): Change hash bucket size to 4.
4218 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
4220 * elf32-mips.c: Include elf32-target.h again for the traditional
4223 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4225 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4226 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4227 (avr_info_to_howto_rela): Likewise.
4228 (elf32_avr_gc_mark_hook): Likewise.
4229 (elf32_avr_gc_sweep_hook): Likewise.
4230 (elf32_avr_relocate_section): Likewise.
4232 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
4234 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
4235 an external symbol for a non-shared, non-relocatable link.
4237 2000-07-03 Nick Clifton <nickc@redhat.com>
4239 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
4240 is an external symbol.
4241 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
4244 2000-07-03 Kazu Hirata <kazu@hxi.com>
4246 * reloc16.c: Fix formatting.
4248 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4250 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
4251 to add a new target for traditional mips i.e
4252 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
4253 * configure.in: Likewise.
4254 * configure: Rebuild.
4255 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
4257 (bfd_elf32_tradlittlemips_vec): Likewise.
4258 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
4259 to see that elfNN_bed does not get redefined even if the target file
4260 is included twice for a chip. See elf32-mips.c.
4262 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4264 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4265 (CLEANFILES): Add DEPA.
4266 * Makefile.in: Regenerate.
4268 2000-06-30 DJ Delorie <dj@cygnus.com>
4270 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
4271 can't assume the PE header is at 0x80.
4273 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4275 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4277 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
4279 * go32stub.h: Update stub.
4281 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4283 * archures.c (bfd_mach_avr5): Define.
4284 * bfd-in2.h (bfd_mach_avr5): Define.
4285 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
4286 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
4287 (compatible): Update comment. Add missing test.
4288 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
4289 for avr2 and avr4. Simplify 8K wrap code.
4290 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
4291 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
4293 2000-06-26 Kazu Hirata <kazu@hxi.com>
4295 * coff-h8300.c: Fix formatting.
4296 * cpu-h8300.c: Likewise.
4298 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
4300 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
4301 for local symbols whose names are unknown.
4303 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4305 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4307 * Makefile.in: Regenerate.
4308 * doc/Makefile.in: Regenerate.
4310 2000-06-20 H.J. Lu <hjl@gnu.org>
4312 * Makefile.am: Rebuild dependency.
4313 * Makefile.in: Rebuild.
4315 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4317 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
4318 (elf_backend_copy_indirect_symbol): Map to the new function.
4320 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4322 * archive.c (normalize): Correct pointer comparison when checking
4324 (bfd_bsd_truncate_arname): Likewise.
4325 (bfd_gnu_truncate_arname): Likewise.
4327 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
4329 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
4330 sections elf_{text,data}_{section,symbol}.
4331 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
4332 (_bfd_mips_elf_hide_symbol): New function.
4333 (elf_backend_hide_symbol): Map to the new function.
4334 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
4335 definitions of mips_elf_{text,data}_{section,symbol}.
4336 (mips_elf_local_relocation_p): Try to find the direct symbol
4337 based on new check_forced argument.
4338 (mips_elf_calculate_relocation): Use new version of
4339 mips_elf_local_relocation_p.
4340 (mips_elf_relocate_section): Likewise.
4341 (_bfd_mips_elf_relocate_section): Likewise.
4342 (mips_elf_sort_hash_table): Only assert that have enough GOT
4344 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
4345 entry if the relocation based on the new external argument.
4346 (mips_elf_create_dynamic_relocation): Assert that we have a
4347 section contents allocated where we can swap out the dynamic
4349 (mips_elf_calculate_relocation): Find the real hash-table entry
4350 correctly by using h->root.root.type. Only create a dynamic
4351 relocation entry if the symbol is defined in a shared library.
4352 Create an external GOT entry for the GOT16 relocation if the
4353 symbol was forced local.
4354 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
4355 dynamic index if the symbol was forced local.
4357 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4359 * elf32-mips.c: Fix typos in comments.
4361 2000-06-19 Mark Kettenis <kettenis@gnu.org>
4363 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
4366 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4368 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
4369 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
4370 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
4371 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
4372 (bfd_elf32_m68hc11_vec): Likewise.
4373 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
4374 Supports 68hc11 & 68hc12 at the same time.
4375 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
4377 (bfd_elf32_m68hc11_vec): Likewise.
4378 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
4379 * archures.c (bfd_m68hc12_arch): Define and register in global list
4380 (bfd_m68hc11_arch): Likewise.
4381 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
4382 BFD_RELOC_M68HC11_3B): Define.
4383 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
4384 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
4386 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
4388 * elf_bfd.h (struct elf_backend_data): Add info argument to
4389 elf_backend_hide_symbol.
4390 (_bfd_elf_link_hash_hide_symbol): Likewise.
4391 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
4392 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
4393 * elflink.h (elf_link_add_object_symbols): Likewise.
4394 (elf_link_assign_sym_version): Likewise.
4396 2000-06-18 H.J. Lu <hjl@gnu.org>
4398 * coff-i386.c (coff_i386_reloc): Don't return in case of
4399 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
4400 Compensate PE relocations when linking with non-PE object
4401 files to generate a non-PE executable.
4403 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
4405 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
4406 GOT entries if we're doing a static link or -Bsymbolic link.
4408 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
4410 * elflink.h (elf_link_adjust_relocs): Check for and call backend
4411 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
4413 (elf_link_output_relocs): Likewise.
4414 (elf_reloc_link_order): Likewise.
4416 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4418 * archures.c (enum bfd_architecture): #define constants for
4419 PowerPc and RS6000 machine numbers.
4420 * bfd-in2.h: Regenerate.
4421 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
4422 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
4423 and RS6000 machine numbers using #defined constants from
4425 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
4426 machine numbers using #defined constants from archures.c. Add
4427 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
4428 64-bit words in 620 entry.
4429 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
4431 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
4433 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
4435 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
4436 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
4437 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
4439 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4441 * bfd-in.h (bfd_family_coff): Define.
4442 * bfd-in2.h: Regenerate.
4443 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4444 coff_find_nearest_line): Check COFFness using bfd_family_coff()
4445 instead of bfd_target_coff_flavour.
4446 * cofflink.c (_bfd_coff_final_link): Likewise.
4447 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4448 exclude XCOFF files.
4449 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4451 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4452 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4453 * xcofflink.c (XCOFF_XVECP): Delete.
4454 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4455 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4456 bfd_xcoff_record_link_assignment,
4457 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4458 check for bfd_target_xcoff_flavour.
4460 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4462 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4464 (read_hdr): New function.
4465 (rs6000coff_core_p): Store mstsave or __context64 struct instead
4466 of trying to extract individual registers. Set abfd->arch_info
4467 to match the architecture that created the core file.
4468 (rs6000coff_get_section_contents): Delete.
4469 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4471 2000-06-14 H.J. Lu <hjl@gnu.org>
4473 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4476 2000-06-13 H.J. Lu <hjl@gnu.org>
4478 * configure: Regenerate.
4480 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
4482 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4485 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4487 * configure.in (VERSION): Update to show this is the CVS mainline.
4489 2000-06-07 Alan Modra <alan@linuxcare.com.au>
4491 * elf32-d10v.c: Include elf/d10v.h
4492 (enum reloc_type): Delete.
4493 * elf32-d30v.c: Include elf/d30v.h
4494 (enum reloc_type): Delete.
4496 * Makefile.am: Run "make dep-am" to regenerate dependencies.
4497 * Makefile.in: Regenerate.
4499 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4500 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4501 move HOWTOs into elf_howto_table.
4502 (R_386_standard, R_386_ext_offset): Define.
4503 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
4504 (elf_i386_reloc_type_lookup): Modify calculation of index into
4505 elf_howto_table since we've removed the padding.
4506 (elf_i386_info_to_howto_rel): Likewise.
4507 (elf_i386_relocate_section): Likewise.
4509 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
4511 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
4513 2000-06-05 H.J. Lu <hjl@gnu.org>
4515 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
4516 an error when seeing an undefined symbol with hidden/internal
4517 attribute. It is handled in *_relocate_section ().
4519 2000-06-05 H.J. Lu <hjl@gnu.org>
4521 * elflink.h (elf_fix_symbol_flags): Follow the link for the
4522 indirect symbol for the ELF_LINK_NON_ELF bit.
4523 (elf_link_output_extsym): Don't output the indirect symbol even
4524 if the ELF_LINK_NON_ELF bit is set.
4526 2000-06-01 J.T. Conklin <jtc@redback.com>
4528 * config.bfd (i[3456]86-*-netbsdelf*): New target.
4529 (i[3456]86-*-netbsdaout*): New target.
4530 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
4531 (i[3456]86-*-openbsd*): Likewise.
4533 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
4535 * trad-core.c: From hpux-core.c, include <dirent.h> or
4536 <sys/ndir.h> when possible.
4538 2000-05-31 Ulrich Drepper <drepper@redhat.com>
4540 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
4541 definitions. We must not assume they are sorted in the file
4542 according to their index numbers.
4544 2000-05-31 Alan Modra <alan@linuxcare.com.au>
4546 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
4547 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
4548 R_PARISC_DIR17F are for absolute branches; Handle them as such.
4550 2000-05-30 Nick Clifton <nickc@cygnus.com>
4552 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
4553 80960CA, 80960MC as valid machine names.
4555 2000-05-30 H.J. Lu <hjl@gnu.org>
4557 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
4558 visibility bits if the symbol is undefined. Correctly handle
4559 weak undefined symbols with hidden and internal attributes.
4561 * elflink.h (elf_link_add_object_symbols): Always turn the
4562 symbol into local if it has the hidden or internal attribute.
4564 2000-05-29 Philip Blundell <philb@gnu.org>
4566 * ppcboot.c: Add packed attribute if compiling with GCC.
4568 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
4570 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
4572 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
4574 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4575 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
4576 corefile on a 64-bit (Sparc Solaris) host. Also clean up
4579 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4581 * Makefile.am: Update dependencies with "make dep-am"
4582 * Makefile.in: Regenerate.
4584 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
4585 bindtextdomain): Replace defines with those from intl/libgettext.h
4586 to quieten gcc warnings.
4588 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4590 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
4592 * archive.c (normalize, bfd_bsd_truncate_arname,
4593 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
4594 file names with backslashes.
4596 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
4599 * sysdep.h: Include filenames.h.
4601 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4603 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
4605 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4607 * elf64-sparc.c (sparc64_elf_relax_section): New.
4608 (sparc64_elf_relocate_section): Optimize tail call into branch always
4610 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4611 (elf32_sparc_relax_section): New.
4613 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4615 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
4616 Remove unusued variables.
4617 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
4618 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
4619 previous fix, so that shared libs really don't influence targets
4620 extension mask and memory model.
4622 2000-05-23 H.J. Lu <hjl@gnu.org>
4624 * elf64-alpha.c (elf64_alpha_relocate_section): Check
4625 h->root.other not h->other.
4626 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4628 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
4630 2000-05-23 H.J. Lu <hjl@gnu.org>
4632 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
4633 undefined symbol with the non-default visibility attributes.
4634 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4635 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4636 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4637 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4638 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4639 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4640 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4641 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4642 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4643 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
4644 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4646 2000-05-22 Richard Henderson <rth@cygnus.com>
4648 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
4649 PCREL22, PCREL64I. Zero size of special relocs.
4650 (elf64_ia64_reloc_type_lookup): Likewise.
4651 (USE_BRL, oor_brl, oor_ip): New.
4652 (elf64_ia64_relax_section): New.
4653 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
4654 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
4655 (elf64_ia64_relocate_section): Likewise.
4656 (bfd_elf64_bfd_relax_section): New.
4657 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
4658 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
4659 * bfd-in2.h, libbfd.h: Regenerate.
4661 2000-05-22 Nick Clifton <nickc@cygnus.com>
4663 * configure.in : Add peigen.lo to MIPS PE targets.
4664 * configure: Regenerate.
4666 2000-05-22 Momchil Velikov <velco@fadata.bg>
4668 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
4669 only if it is known for both input and output bfds. Separate
4670 error message strings as in some languages, it may be necessary
4671 to change more than one place in the string to change between
4674 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
4675 endianess checks, call _bfd_generic_verify_endian_match() instead.
4677 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
4679 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
4681 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
4682 endianess before checking bfd flavours.
4684 2000-05-22 H.J. Lu <hjl@gnu.org>
4686 * elflink.h (elf_link_output_extsym): Clear the visibility
4687 field for symbols not defined locally.
4689 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4691 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4692 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4693 (hppa_rebuild_insn): Mask immediate bits here instead.
4694 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4696 2000-05-18 Momchil Velikov <velco@fadata.bg>
4698 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
4699 relocs for an executable, ensure that they are virtual addresses.
4701 2000-05-18 Jeffrey A Law (law@cygnus.com)
4703 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
4705 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4706 Rick Gorton <gorton@scrugs.lkg.dec.com>
4708 * elflink.h: Add emitrelocations support: when enabled, relocation
4709 information and relocation sections are put into final output
4710 executables. If the emitrelocations flag is set, do the following:
4711 (elf_bfd_final_link): Emit relocation sections.
4712 (elf_link_input_bfd): Compute relocation section contents.
4713 (elf_gc_sections): Don't clean relocation sections.
4715 2000-05-16 Catherine Moore <clm@cygnus.com>
4717 * som.c (som_decode_symclass): Recognize weak symbols.
4719 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
4721 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
4722 read idata section only from dataoff.
4723 (pe_print_edata): Correctly check for valid eat_member.
4725 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
4727 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4729 2000-05-14 Philip Blundell <philb@gnu.org>
4731 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
4733 2000-05-12 Alan Modra <alan@linuxcare.com.au>
4735 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4737 * peigen.c (pe_print_idata): Look for .idata section and print
4738 info even if data directory has zero entries. Read idata section
4739 starting from dataoff, and adjust all data offsets to suit. Cast
4740 all bfd_vma vars to unsigned long before passing to fprintf.
4741 * peigen.c (pe_print_edata): Similarly, look for .edata section
4742 and print info even if data directory has zero entries. Cast
4743 all bfd_vma vars to unsigned long before passing to fprintf.
4745 From Szabolcs Szakacsits <szaka@F-Secure.com>
4746 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4747 directory size which may be bogus.
4748 * peigen.c (pe_print_edata): Similarly.
4750 2000-05-09 Alan Modra <alan@linuxcare.com.au>
4752 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4754 (copy_private_bfd_data): Allow for space possibly taken up by elf
4755 headers when calculating segment physical address from lma.
4757 2000-05-08 Alan Modra <alan@linuxcare.com.au>
4759 * versados.c (versados_scan): Init stringlen and pass_2_done.
4761 * trad-core.c (trad_unix_core_file_p): Return
4762 bfd_error_wrong_format rather than bfd_error_file_truncated.
4764 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
4765 add_data_entry. DataDirectory virtual address is relative.
4766 (pe_print_idata): Account for relative DataDirectory virtual
4767 addresses. Don't trash datasize inside POWERPC_LE_PE code.
4768 (pe_print_edata): Similarly.
4770 From Szabolcs Szakacsits <szaka@F-Secure.com>
4771 * peigen.c (dir_names): Add Delay Import Directory.
4772 (pe_print_idata): Always search for bfd section containing
4773 idata address rather than looking up section name. Print this
4774 section name rather than .idata.
4775 (pe_print_edata): Similarly. Also print some fields as %08lx.
4776 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
4779 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4781 * xcoff.h: Rename to xcoff-target.h
4782 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
4783 * coff-rs6000.c: Ditto.
4784 * coff64-rs6000.c: Ditto.
4785 * coff-pmac.c: Ditto.
4786 * Makefile.in: Regenerate.
4788 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4790 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
4791 Change U802TOC64MAGIC to U803XTOCMAGIC.
4793 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
4795 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
4796 * bfd-in.h: Prototype bfd_elf_get_arch_size.
4797 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
4799 2000-05-04 Alan Modra <alan@linuxcare.com.au>
4801 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
4803 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
4805 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
4806 hidden and internal symbols.
4807 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
4809 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
4810 assign a PLT or GOT entry to symbols with hidden and
4811 internal visibility.
4813 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
4815 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
4817 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4819 2000-05-02 H.J. Lu <hjl@gnu.org>
4821 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
4824 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4826 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
4827 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
4829 * Makefile.in: Regenerate.
4831 2000-05-01 Jim Wilson <wilson@cygnus.com>
4833 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
4834 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
4835 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
4836 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
4837 * Makefile.in: Rebuild.
4839 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4841 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
4842 doesn't work very well.
4844 * elf-hppa.h (elf_hppa_internal_shdr): Define.
4845 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
4846 Set hdr->s_type to 1 if ARCH_SIZE == 32.
4847 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
4848 (elf_hppa_info_to_howto): Likewise.
4849 (elf_hppa_info_to_howto_rel): Likewise.
4850 (elf_hppa_reloc_type_lookup): Likewise.
4851 (elf_hppa_is_local_label_name): Likewise.
4852 (elf_hppa_fake_sections): Likewise.
4853 (elf_hppa_final_write_processing): Likewise.
4854 (elf_hppa_howto_table): Fully initialise all entries.
4855 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
4856 (elf_hppa_info_to_howto): Likewise.
4857 (elf_hppa_info_to_howto_rel): Likewise.
4858 (elf_hppa_reloc_type_lookup): Likewise.
4859 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
4860 elf_hppa_unmark_useless_dynamic_symbols,
4861 elf_hppa_remark_useless_dynamic_symbols,
4862 elf_hppa_record_segment_addrs, elf_hppa_final_link,
4863 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
4864 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
4865 elf32-hppa.c mess is cleaned up.
4866 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
4867 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
4868 r_field then call hppa_field_adjust inline func with variable
4869 r_field arg, instead call hppa_field_adjust with fixed arg.
4870 In case R_PARISC_PCREL22F, don't set r_field.
4871 (elf_hppa_relocate_insn): Change args and return type to unsigned
4872 int. Call re_assemble_* funcs to do the work.
4874 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
4877 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4879 (sign_extend): Mask first before sign extending.
4880 (low_sign_extend): Rewrite without condition expression.
4881 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4882 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4883 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4884 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4885 result as function return value rather than through pointer arg.
4886 Accept unsigned int args, and return unsigned int.
4887 (re_assemble_3): New. Combines function of dis_assemble_3 with
4888 re-assembly of opcode and immediate.
4889 (re_assemble_12): Likewise.
4890 (re_assemble_16): Likewise.
4891 (re_assemble_17): Likewise.
4892 (re_assemble_21): Likewise.
4893 (re_assemble_22): Likewise.
4894 (hppa_field_adjust): Rewrite and document, paying attention to
4895 size of types and signed/unsigned issues.
4896 (get_opcode): Shift before masking.
4897 (FDLW): Rename to FLDW.
4898 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
4899 (hppa_rebuild_insn): Change args and return value to unsigned
4900 int. Make use of re_assemble_*. Correct case 11.
4902 * dep-in.sed: Handle ../opcodes/.
4903 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4904 elf64-hppa.h, hppa_stubs.h, xcoff.h.
4905 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4906 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4907 elfarm-nabi.lo dependencies outside of auto-dependency area.
4908 Regenerate dependencies.
4909 * Makefile.in: Regenerate.
4911 * configure.in (TRAD_HEADER): Test non-null before
4913 * configure: Regenerate.
4915 * reloc.c: Fix mis-spelling in comment.
4917 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4919 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4920 * vms.c (vms_openr_next_archived_file): Return NULL.
4922 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4924 * coffcode.h Copy changes mistakenly done to libcoff.h in
4927 2000-04-29 Andreas Jaeger <aj@suse.de>
4929 * libbfd-in.h: Correctly check GCC version.
4930 * bfd-in.h: Likewise.
4931 * libhppa.h: Likewise.
4932 * libbfd.h: Regenerate.
4933 * bfd-in2.h: Regenerate.
4935 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4937 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4938 coffdu-rs6000.{lo,c}.
4939 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4941 * Makefile.in: Regenerate.
4942 * xcoff.h: New file.
4943 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4944 * coff-rs6000.c: Move all declarations and defines that are
4945 common to the xcoff backends into xcoff.h
4946 * coff64-rs6000.c: Ditto,
4948 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4950 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
4951 _bfd_coff_force_symnames in strings and
4952 _bfd_coff_debug_string_prefix_length to their default values.
4953 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4955 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4957 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4958 _bfd_coff_force_symnames in strings and
4959 _bfd_coff_debug_string_prefix_length to their default values.
4961 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4963 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4964 Check local_got_refcounts before dereferencing.
4966 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4967 before deciding we don't need R_PPC_PLT32 relocation.
4968 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4971 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4973 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4975 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4976 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4977 (elf_i386_relocate_section): Allow for .plt to go missing.
4978 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4979 can use a relative reloc for got as elf_i386_relocate_section.
4980 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4982 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4984 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4986 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4988 * Makefile.am (coff64-rs6000.lo): New rule.
4989 * Makefile.in: Regenerate.
4990 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4991 xcoff_is_local_label_name, xcoff_rtype2howto,
4992 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4993 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4994 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4995 (NO_COFF_SYMBOLS): Define.
4996 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4997 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4999 (MINUS_ONE): New macro.
5000 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5002 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5003 coff_SWAP_aux_out): Map to the new functions.
5004 * coff64-rs6000.c: New file.
5005 * libcoff.h (bfd_coff_backend_data): Add new fields
5006 _bfd_coff_force_symnames_in_strings and
5007 _bfd_coff_debug_string_prefix_length.
5008 (bfd_coff_force_symnames_in_strings,
5009 bfd_coff_debug_string_prefix_length): New macros for above fields.
5010 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5011 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
5012 of using coff_swap_sym_in directly.
5013 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5014 (coff_set_flags) Set magic for XCOFF64.
5015 (coff_compute_section_file_positions): Add symbol name length to
5016 string section length if bfd_coff_debug_string_prefix_length is
5018 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5019 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5020 using coff_swap_lineno_in directly.
5021 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5022 and _bfd_coff_debug_string_prefix_length fields.
5023 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5024 symbol names into strings table when
5025 bfd_coff_force_symnames_in_strings is true.
5026 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5027 SET_RELOC_VADDR): New macros.
5028 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5029 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5031 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5032 changes within RS6000COFF_C specific code.
5033 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5034 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5035 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5036 Extend existing hack on target name.
5037 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5039 * coff-tic54x.c (ticof): Keep up to date with new fields
5040 in bfd_coff_backend_data.
5041 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5042 targ_selvecs to include rs6000coff64_vec for rs6000.
5043 * configure.in: Add rs6000coff64_vec case.
5044 * cpu-powerpc.c: New bfd_arch_info_type.
5046 2000-04-24 Jeffrey A Law (law@cygnus.com)
5048 * config.bfd: Only disable elf32-hppa vectors, not all of the
5049 BSD and OSF configuration support. Provide (disabled) clauses
5051 * configure.in: Add clause for PA64 support.
5052 * configure: Rebuilt.
5054 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5055 (bfd_elf64_hppa_vec): Declare.
5057 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5058 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5059 (elf64-hppa.lo): Add dependencies.
5060 * Makefile.in: Rebuilt.
5062 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5064 2000-04-24 Jason Eckhardt <jle@cygnus.com>
5066 * libhppa.h (dis_assemble_16): New function.
5067 (pa_arch): Added pa20w element.
5069 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
5071 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5072 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5073 bfd_elf64_slurp_reloc_table.
5075 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5076 definitions to get external names.
5077 (elf_write_relocs): Renamed from write_relocs and make global.
5078 (elf_slurp_reloc_table): Make global.
5079 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5081 * archive.c (hpux_uid_gid_encode): New function.
5082 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5083 defined and the ID is greater than 99999.
5084 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5085 special uid/gid fields into 32 bit values.
5087 2000-04-21 Matthew Green <mrg@cygnus.com>
5089 * config.bfd: Add NetBSD/sparc64 support.
5091 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5092 David Mosberger <davidm@hpl.hp.com>
5093 Timothy Wall <twall@cygnus.com>
5094 Jim Wilson <wilson@cygnus.com>
5096 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5097 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5098 (BFD64_BACKENDS): Add elf64-ia64.lo.
5099 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5100 (cpu-ia64.lo, elf64-ia64.lo): New rules.
5101 * Makefile.in: Rebuild.
5102 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5103 (bfd_ia64_arch): Declare.
5104 (bfd_archures_list): Add bfd_ia64_arch.
5105 * bfd-in2.h: Rebuild.
5106 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5107 * configure: Rebuild.
5108 * configure.host: (ia64-*-linux*): New host.
5109 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5110 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5111 * elf.c (prep_headers): Add bfd_arch_ia64.
5112 * libbfd.h: Rebuild.
5113 * reloc.c: Add IA-64 relocations.
5114 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5116 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5117 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5119 2000-04-21 Richard Henderson <rth@cygnus.com>
5121 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5122 contents when performing a partial link.
5123 (bfd_elf_d30v_reloc_21): Likewise.
5125 2000-04-20 H.J. Lu <hjl@gnu.org>
5127 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5128 patch to symbols defined by a shared object.
5129 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5131 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5134 * dwarf2.c (concat_filename): Avoid string literal concatenation.
5135 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5137 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
5139 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5140 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5141 (coff-ia64.lo): Add dependency.
5142 * Makefile.in: Regenerate.
5143 * coff-ia64.c: New file.
5144 * efi-app-ia32.c: Ditto.
5145 * efi-app-ia64.c: Ditto.
5146 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5147 (coff_set_flags): Ditto.
5148 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5149 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5150 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5151 * configure: Regenerate.
5152 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5153 (PUT_OPTHDR_IMAGE_BASE): Ditto.
5154 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5155 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5156 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5157 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5158 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5159 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5160 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5161 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5162 (GET_PDATA_ENTRY): Ditto.
5163 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5164 data_start. Use above macros to read fields that are 64 bit wide for
5165 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
5166 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5167 FileAlignment and SectionAlignment to minimum alignment if they
5169 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5170 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5171 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5172 Use above macros to write fields that are 64 bit wide for
5174 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5175 5*4 otherwise. This should be right for IA-32 and IA-64, but may
5176 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
5177 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
5178 begin address, end address, and unwind info address only. Use
5179 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
5181 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5182 HIGH3ADJ relocation names.
5183 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5184 * targets.c: Declare bfd_efi_app_ia32_vec and
5185 bfd_efi_app_ia64_vec.
5186 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5187 bfd_efi_app_ia64_vec.
5189 2000-04-17 Timothy Wall <twall@cygnus.com>
5191 * bfd-in2.h: Add prototypes for tic54x load page access.
5192 * bfd-in.h: Regenerate.
5193 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5194 in customized _set_arch_mach function.
5195 * coffcode.h (coff_set_alignment_hook): Set section load page if
5196 the appropriate macro is defined.
5197 (write_object_contents): Read section load page.
5199 2000-04-13 Alan Modra <alan@linuxcare.com.au>
5201 * elf32-hppa.h: Update copyright date.
5203 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5204 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5206 * elf32-d30v.c (MAX32): Don't use LL suffix.
5207 (MIN32): Define in terms of MAX32.
5208 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5210 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5213 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5215 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5217 * dep-in.sed: Match space before file name, not after.
5218 * Makefile.am: Regenerate dependencies.
5219 * Makefile.in: Regenerate.
5221 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5222 case, allow address wrap-around stupidly removed 2000-03-17. Sign
5223 extend without an if statement.
5225 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5227 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5229 * elf32-mips.c (gprel16_with_gp): Likewise.
5230 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
5231 here using -0x40000, not (int)0xfffc0000.
5232 (elf32_hppa_size_of_stub): Likewise.
5234 2000-04-11 Timothy Wall <twall@cygnus.com>
5236 * coff-tic54x.c: Now builds with all targets.
5237 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
5238 * Makefile.in: Regenerate.
5239 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
5240 unitialized variable.
5242 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
5244 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5245 --enable-build-warnings option.
5246 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5247 * Makefile.in, configure: Re-generate.
5249 2000-04-07 Nick Clifton <nickc@cygnus.com>
5251 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
5252 BFD_RELOC_THUMB_PCREL_BLX.
5254 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5255 R_ARM_XPC25 and R_ARM_THM_PC22.
5257 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
5258 R_ARM_XPC25 and R_ARM_THM_XPC22.
5259 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
5260 R_ARM_[XPC25|THM_XPC22].
5262 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
5263 elf/arm-oabi.h to elf/arm.h
5265 * Makefile.am: Fix dependency for elfarm-oabi.c
5266 * Makefile.in: Regenerate.
5268 * bfd-in2.h: Regenerate.
5269 * libbfd.h: Regenerate.
5271 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5273 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
5274 and restore it on failure. Release newly allocated tdata on
5277 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
5279 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
5280 (decode_line_info): Set it. Report error if unit->line_offset is
5281 equal to or larger than it.
5283 2000-04-07 Timothy Wall <twall@cygnus.com>
5285 * targets.c: Added vecs for tic54x.
5286 * reloc.c: Added relocs for tic54x.
5287 * libbfd.h: Regenerated.
5288 * configure: Add TI COFF vecs for tic54x.
5289 * configure.in: Ditto.
5290 * config.bfd (targ_cpu): Recognize new tic54x target.
5291 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
5292 * bfd-in2.h: Add tic54x target and relocations.
5293 * Makefile.am, Makefile.in: Add tic54x target.
5294 * archures.c (bfd_archures_list): Add tic54x target.
5295 * coff-tic54x.c: New.
5296 * cpu-tic54x.c: New.
5298 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5300 * elfcore.h (elf_core_file_p): call backend_object_p which
5301 thereby gets an opportunity to update the arch/machine type.
5303 2000-04-06 Timothy Wall <twall@cygnus.com>
5305 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
5306 class. Handle SEC_CLINK and SEC_BLOCK flags.
5307 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
5308 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
5310 2000-04-06 Nick Clifton <nickc@cygnus.com>
5312 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
5313 EF_INTERWORK if this is an unknown EABI.
5314 (elf32_arm_merge_private_bfd_data): Check EABI version
5315 numbers. Only check EF_xxx flags if the EABI version number
5317 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
5318 if the EABI version number is unknown.
5319 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
5320 if the EABI version number is unknown.
5322 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5324 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
5325 BFD_RELOC_SH_LOOP_END.
5326 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
5327 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
5328 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
5329 (sh_elf_reloc_loop): New function.
5330 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
5332 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
5333 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
5334 * bfd-in2.h, libbfd.h: Regenerate.
5336 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5338 * po/bfd.pot: Regenerate.
5340 * Makefile.am: Remove extraneous mkdep comment.
5341 (MKDEP): Use gcc -MM rather than mkdep.
5342 (DEP): Quote when passing vars to sub-make. Add warning
5344 (DEP1): Rewrite for "gcc -MM".
5345 (CLEANFILES): Add DEP2.
5346 Update dependencies.
5347 * Makefile.in: Regenerate.
5349 2000-04-03 Kevin Buettner <kevinb@redhat.com>
5351 * configure.in: Added corefile support for AIX 4.3. In particular,
5352 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
5353 compiling rs6000-core.c.
5354 * configure: Regenerated.
5356 2000-04-03 H.J. Lu <hjl@gnu.org>
5358 * cache.c (bfd_open_file): Unlink the output file only if
5359 it has non-zero size.
5361 2000-04-01 Ken Block USG <block@zk3.dec.com>
5363 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
5364 relative relocations for non-loaded sections in shared objects.
5365 (elf64_alpha_check_relocs): Similarly.
5367 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
5369 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
5370 BFD_RELOC_16 to switch for extended relocs.
5371 (MY_swap_ext_reloc_in): New.
5372 (MY_swap_ext_reloc_out): New.
5373 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
5374 than NAME(aout,swap_ext_reloc_in) for extended relocs.
5375 (NAME(aout,squirt_out_relocs)): Similarly use
5376 MY_swap_ext_reloc_out.
5377 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
5379 2000-04-03 Kazu Hirata <kazu@hxi.com>
5381 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
5382 the R_PCRWORD_B case.
5384 2000-03-31 Thomas de Lellis <tdel@wrs.com>
5386 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
5390 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
5392 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
5393 HOWTO references to bfd_elf_generic_reloc, that have
5394 partial_inplace == true, now use the new function. The function
5395 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
5396 extends its fixes to the R_M32R_{16,24,32} relocs.
5397 The new logic in m32r_elf_lo16_reloc() has been removed, and
5398 it instead calls the new routine to obtain that functionality.
5400 2000-03-27 Alan Modra <alan@linuxcare.com.au>
5402 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
5403 elf32_avr_check_relocs, avr_final_link_relocate,
5404 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
5405 elf32_avr_object_p): Add prototypes.
5406 (elf32_avr_gc_mark_hook): Add default for h->root.type.
5407 (bfd_elf_avr_final_write_processing): Make static.
5409 2000-03-27 Denis Chertykov <denisc@overta.ru>
5411 * cpu-avr.c: New file. BFD support routines for AVR architecture.
5412 * archures.c (bfd_architecture): Add AVR architecture.
5413 (bfd_archures_list): Add reference to AVR architecture info.
5414 * elf.c (prep_headers): Handle bfd_arch_avr.
5415 * reloc.c: Add various AVR relocation enums.
5416 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
5418 * Makefile.am: Add support for AVR elf.
5419 * configure.in: Likewise.
5420 * config.bfd: Likewise.
5421 * Makefile.in: Regenerate.
5422 * configure: This too.
5423 * bfd-in2.h: And this.
5424 * libbfd.h: And this.
5426 2000-03-24 H.J. Lu <hjl@gnu.org>
5428 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
5429 (elf64_alpha_find_reloc_at_ofs): Likewise.
5431 2000-03-17 Alan Modra <alan@linuxcare.com.au>
5433 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
5434 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
5435 allowable range used to be -2**(n-1) to 2**n-1.
5436 * reloc.c (_bfd_relocate_contents): Same here. Also replace
5437 "boolean overflow" with "bfd_reloc_status_type flag".
5439 2000-03-14 Doug Evans <dje@casey.transmeta.com>
5441 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5443 2000-03-14 Kazu Hirata <kazu@hxi.com>
5445 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5446 of shrinks properly, including the last reloc.
5448 2000-03-13 Kazu Hirata <kazu@hxi.com>
5450 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5453 2000-03-11 Alan Modra <alan@linuxcare.com.au>
5455 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5456 a format mismatch rather than an "error" from bfd_read such as
5457 bfd_error_file_truncated.
5459 2000-03-10 Geoff Keating <geoffk@cygnus.com>
5461 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5462 sign-extension and big-endian compensation for
5463 R_MIPS_64 even in ld -r.
5465 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5467 * elf32-mips.c (mips_elf_next_relocation): Rename from
5468 mips_elf_next_lo16_relocation, and generalize to look
5469 for any relocation type.
5470 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5471 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5472 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5473 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5474 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5475 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5476 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5477 (mips_rtype_to_howto): Likewise.
5478 (mips_elf_calculate_relocation): Handle new relocs.
5479 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5480 are paired. The addend for R_MIPS_GNU_REL16_S2
5481 is shifted right two bits.
5483 2000-03-10 Alan Modra <alan@linuxcare.com.au>
5485 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5486 comment, and ensure it doesn't happen again.
5487 (bfd_install_relocation): Same here.
5488 (_bfd_relocate_contents): Don't bother assigning unused signmask
5489 shift result. Fix typos in comments.
5490 Remove trailing whitespace throughout file.
5492 2000-03-07 Doug Evans <dje@casey.transmeta.com>
5494 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5495 * bfd-in2.h: Rebuild.
5497 2000-03-06 Nick Clifton <nickc@cygnus.com>
5499 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5501 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5502 (SIZEOF_ILF_STRINGS): Redefine.
5503 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
5504 relative reloc, as opposed to a section relative reloc.
5505 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
5507 Add length of symbol's prefix to string pointer.
5508 Store a pointer to the symbol in the symbol pointer table.
5509 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
5510 Initialise the symbol pointer table.
5511 Store the hint in the Hint/Name table.
5512 Make the jump reloc be symbol realtive, not section relative.
5513 Create an import symbol for imported code.
5515 2000-03-06 Catherine Moore <clm@cygnus.com>
5517 * elf.c (swap_out_syms): Check for null type_ptr.
5519 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
5521 * aout-target.h (MY(write_object_contents)): Remove unused
5522 and unusable "#if CHOOSE_RELOC_SIZE".
5523 * pc532-mach.c (MY(write_object_contents)): Ditto.
5524 * netbsd.h (MY(write_object_contents)): Ditto.
5525 * hp300hpux.c (MY(write_object_contents)): Ditto.
5526 * freebsd.h (MY(write_object_contents)): Ditto.
5527 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
5529 2000-02-29 H.J. Lu <hjl@gnu.org>
5531 * peicode.h (jtab): Make it static.
5533 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
5534 defined and COFF_IMAGE_WITH_PE is not defined.
5535 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
5536 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
5538 2000-03-01 Nick Clifton <nickc@cygnus.com>
5540 * coff-arm.c (bfd_arm_process_before_allocation): Make
5541 'symndx' signed to prevent compile time warning.
5543 * coff-mcore.c: Remove unused prototype for pe_object_p.
5545 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
5546 functions that are not used when COFF_IMAGE_WITH_PE is
5548 (struct sh_opcode): Change type of 'flags' field to unsigned
5549 long so that it can hold the USESAS flag.
5551 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
5553 * elf-m10300.c (mn10300_elf_relax_section): Initialise
5556 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
5558 Remove unusued variables and code.
5559 (elf_backend_add_symbol_hook): Fix prototype.
5561 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
5564 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
5567 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
5569 Remove unusued variables and code.
5570 (elf_backend_add_symbol_hook): Fix prototype.
5572 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
5574 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
5575 to unused function parameter.
5577 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
5579 Use EMPTY_HOWTO to initialise empty howto slots.
5580 Remove unused variables.
5582 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
5584 2000-03-01 H.J. Lu <hjl@gnu.org>
5586 * aoutx.h (aout_link_input_section_std): Pass "true" to
5587 the undefined_symbol callback.
5588 (aout_link_input_section_ext): Likewise.
5589 * bout.c (get_value): Likewise.
5590 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5591 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
5593 (alpha_relocate_section): Likewise.
5594 * coff-arm.c (coff_arm_relocate_section): Likewise.
5595 * coff-i960.c (coff_i960_relocate_section): Likewise.
5596 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5597 * coff-mips.c (mips_relocate_section): Likewise.
5598 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5599 * coff-sh.c (sh_relocate_section): Likewise.
5600 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5601 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
5602 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5603 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5604 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5605 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5606 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5607 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5608 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5609 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5610 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5611 * elf32-v850.c (v850_elf_relocate_section): Likewise.
5612 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
5613 * elflink.h (elf_link_output_extsym): Likewise.
5614 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
5615 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
5616 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
5618 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
5619 undefined_symbol callback when building shared library with
5620 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
5622 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5623 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5624 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5625 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5626 (elf32_mips_get_relocated_section_content): Likewise.
5627 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5628 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5629 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5630 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5632 2000-02-28 Nick Clifton <nickc@cygnus.com>
5634 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
5635 * Makefile.in: Regenerate.
5637 * configure.in: Add support for mips and sh pe vectors.
5638 * configure: regenerate.
5640 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
5643 * targets.c: Add mips and sh pe vectors.
5645 * libpei.h (coff_final_link_postscript): Only define if not
5648 * coffcode.h: Add support for WinCE magic numbers.
5650 * peigen.c (pe_print_reloc): Update comment and rearrange
5651 appending of newline character.
5653 * peicode.h: Add support for Image Library Format.
5654 (pe_ILF_vars): Structure containing data used by ILF code.
5655 (pe_ILF_make_a_section): New function. Create a section based
5657 (pe_ILF_make_a_reloc): New function. Create a reloc based on
5659 (pe_ILF_make_a_symbol): New function. Create a symbol based
5661 (pe_ILF_save_relocs): New function. Store the relocs created
5662 by pe_ILF_make_a_reloc in a section.
5663 (pe_ILF_build_a_bfd): New function. Create a BFD describing
5665 (pe_ILF_object_p): New function. Return a bfd_target pointer
5667 (pe_bfd_object_p): If an ILF object is detected call
5668 pe_ILF_object_p on it.
5670 * coff-arm.c: Add support for WinCE relocs which are different
5671 from normal ARM COFF relocs.
5672 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
5674 * coff-sh.c: Add support for sh-pe target.
5675 * pe-sh.c: New file. Support code for sh-pe target.
5676 * pei-sh.c: New file. Support code for sh-pe target.
5678 * pe-mips.c: New file. Support code for mips-pe target.
5679 * pei-mips.c: New file. Support code for mips-pe target.
5681 2000-02-27 Jakub Jelinek <jakub@redhat.com>
5683 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
5684 architecture if the object causing the bump is dynamic.
5685 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
5686 and also don't it for memory ordering.
5687 (sparc64_elf_write_relocs): Take src_rela out of the loop.
5689 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5691 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
5692 calling bfd_get_section_size_before_reloc.
5693 (decode_line_info): Likewise.
5694 (_bfd_dwarf2_find_nearest_line): Likewise.
5696 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
5698 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
5699 name of the libtool directory.
5700 * Makefile.in: Rebuild.
5702 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
5704 * som.c (SOM_HOWTO): Define.
5705 (som_hppa_howto_table): Use it.
5707 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5709 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
5711 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
5713 2000-02-24 Catherine Moore <clm@cygnus.com>
5715 * som.c (som_misc_symbol_info): Add field
5717 (som_bfd_derive_misc_symbol_info): Initialize
5719 (som_build_and_write_symbol_table): Keep track
5720 of secondary_def field.
5721 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
5722 if secondary_def field is set.
5723 (som_bfd_ar_write_symbol_stuff): Initialize
5726 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
5728 * dwarf2.c (read_address): Read 16-bits addresses.
5729 (parse_comp_unit): Accept addr_size == 2.
5731 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5733 * bfd-in.h: Update copyright date.
5735 2000-02-23 Linas Vepstas <linas@linas.org>
5737 * cpu-i370.c: New file.
5738 * elf32-i370.c: New file.
5739 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5740 (bfd_i370_arch): New.
5741 (bfd_archures_list): Add bfd_i370_arch.
5742 * elf.c (prep_headers): Add bfd_arch_i370.
5743 * Makefile.am: Add support for IBM 370 elf.
5744 * config.bfd: Likewise.
5745 * configure.in: Likewise.
5746 * libbfd.h (bfd_reloc_code_real_names): Likewise.
5747 * reloc.c (bfd_reloc_code_type): Likewise.
5748 * targets.c: Likewise.
5750 * Makefile.in: Regenerate.
5751 * configure: Regenerate.
5752 * bfd-in2.h: Regenerate.
5754 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5756 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5757 invalid relocation types, and change them to R_386_NONE.
5759 2000-02-22 H.J. Lu <hjl@gnu.org>
5761 * elflink.h (elf_link_add_object_symbols): If a version symbol is
5762 not defined, don't add a second ELF_VER_CHR.
5764 * elflink.h (elf_bfd_final_link): Call output_extsym for global
5765 symbols converted to local symbols even when stripping all
5767 (elf_link_output_extsym): Process global symbols converted to
5768 local symbols even if they are being stripped.
5770 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5772 * archures.c (bfd_octets_per_byte): Return unsigned int.
5773 (bfd_arch_mach_octets_per_byte): Ditto.
5774 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
5776 * section.c (bfd_get_section_size_before_reloc): Quell signed
5777 vs. unsigned comparison warning.
5778 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
5779 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
5780 change. What was I thinking?
5781 * bfd-in2.h: Regenerate.
5783 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
5784 (elf_gc_sections): Same here.
5785 (elf_gc_common_finalize_got_offsets): And here.
5787 2000-02-21 Ian Lance Taylor <ian@zembu.com>
5789 ELF HPPA doesn't work at present; remove it until it does.
5790 * config.bfd: Comment out setting targ_defvec to
5792 * Makefile.am: Rebuild dependencies.
5793 (BFD32_BACKENDS): Remove elf32-hppa.lo.
5794 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
5795 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
5796 * Makefile.in: Rebuild.
5797 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
5799 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5801 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
5802 is no bfd_free(). Revert bfd_free part of previous change.
5804 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5806 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
5808 (coff_compute_section_file_positions): Use bfd_free to pair
5810 (coff_write_object_contents): Likewise.
5812 * coff-rs6000.c (xcoff_howto_table_16): New variable.
5813 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
5815 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
5817 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
5818 (xcoff_ar_file_hdr_big): New structure.
5819 (SIZEOF_AR_FILE_HDR_BIG): New macro.
5820 (xcoff_ar_hdr_big): New structure.
5821 (SIZEOF_AR_HDR_BIG): New macro.
5822 (xcoff_big_format_p): New macro.
5823 (xcoff_ardata_big): New macro.
5824 (arch_xhdr_big): New macro.
5825 (xcoff_slurp_armap): Handle large archives.
5826 (xcoff_archive_p): Detect large archives.
5827 (xcoff_read_ar_hdr): Handle large archives.
5828 (xcoff_openr_next_archived_file): Handle large archives.
5829 (xcoff_generic_stat_arch_elt): Handle large archives.
5830 (xcoff_write_armap_old): Rename from xcoff_write_armap.
5831 (xcoff_write_armap_big): New function.
5832 (xcoff_write_armap): New function, dispatch to _old or _big.
5833 (xcoff_write_archive_contents_old): Rename from
5834 xcoff_write_archive_contents.
5835 (xcoff_write_archive_contents_big): New function.
5836 (xcoff_write_archive_contents): New function, dispatch to _old or
5839 2000-02-18 Richard Henderson <rth@cygnus.com>
5841 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
5842 and hide_symbol members.
5843 (elf_link_hash_copy_indirect): Remove.
5844 (elf_link_hash_hide_symbol): Remove.
5845 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
5846 and elf_backend_hide_symbol.
5847 (_bfd_elf_link_hash_copy_indirect): Declare.
5848 (_bfd_elf_link_hash_hide_symbol): Declare.
5849 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
5850 (_bfd_elf_link_hash_hide_symbol): Likewise.
5851 (_bfd_elf_link_hash_table_init): Don't init killed members.
5852 * elflink.h (elf_link_add_object_symbols): Use the bed function
5853 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
5854 (elf_link_assign_sym_version): Likewise.
5855 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
5856 (elf_backend_hide_symbol): Likewise.
5857 (elfNN_bed): Update for new members.
5859 2000-02-17 Kevin Buettner <kevinb@redhat.com>
5861 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
5862 STACK_END_ADDR): Define for new core file format.
5863 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
5864 for handling the vagaries of the various core file structures used
5865 by AIX over the years.
5866 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
5867 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
5868 core_dumpx structure.
5870 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5872 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
5873 (bfd_mach_sh3_dsp): Likewise.
5874 (bfd_mach_sh4): Reinstate.
5875 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
5876 * bfd-in2.h: Regenerate.
5877 * coff-sh.c (struct sh_opcode): flags is no longer short.
5878 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5879 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5880 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5881 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5882 (sh_opcodes): No longer const.
5883 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5884 (sh_insn_uses_reg): Check for USESAS and USESR8.
5885 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5886 (_bfd_sh_align_load_span): Return early for SH4.
5887 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5888 Take into account that field b of a parallel processing insn
5889 could be mistaken for a separate insn.
5890 * cpu-sh.c (arch_info_struct): New array elements for
5891 sh2, sh-dsp and sh3-dsp.
5892 Reinstate element for sh4.
5893 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5894 (SH4_NEXT): Reinstate.
5895 (SH3_NEXT, SH3E_NEXT): Adjust.
5896 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5897 * elf32-sh.c (sh_elf_set_private_flags): New function.
5898 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5899 (sh_elf_merge_private_data): New function.
5900 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5901 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5902 (bfd_elf32_bfd_merge_private_bfd_data): Change to
5903 sh_elf_merge_private_data.
5905 2000-02-13 Richard Henderson <rth@cygnus.com>
5907 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5908 hide_symbol members.
5909 (elf_link_hash_copy_indirect): New.
5910 (elf_link_hash_hide_symbol): New.
5911 * elflink.h (elf_link_add_object_symbols): Break out copy from
5912 indirect new new symbol to elf.c.
5913 (elf_link_assign_sym_version): Break out privatization of
5914 non-exported symbol to elf.c.
5915 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5916 (_bfd_elf_link_hash_hide_symbol): New.
5917 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5919 2000-02-13 Ian Lance Taylor <ian@zembu.com>
5921 * section.c (_bfd_strip_section_from_output): Add info parameter.
5922 If it passed as non-NULL, use it to check whether any input BFD
5923 has an input section which uses this output section. Change all
5925 * bfd-in2.h: Rebuild.
5927 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5928 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5930 * bfd-in2.h: Rebuild.
5932 2000-02-10 Timothy Wall <twall@cygnus.com>
5934 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5935 allow final modifications of swapped-in symbol.
5936 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5937 * coffcode.h (coff_write_relocs): Use macro
5938 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5939 symbol index should be set to -1.
5941 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
5943 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5944 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5945 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5946 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5947 sh_insns_uses_or_sets_freg): New functions.
5948 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5949 * (sh_insns_conflict): Use new functions and new macros to
5950 detect conflicts when two instructions both set same integer registers,
5951 both set same fp register, and both set special register.
5953 2000-02-09 Timothy Wall <twall@cygnus.com>
5955 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5956 swapping in sections, so that the swapping routines have access to
5959 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5961 * coff-go32.c: Update comment. Update copyright.
5963 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5965 * syms.c (bfd_decode_symclass)
5966 Two new class characters were added - 'V' and 'v'. The
5967 meaning of 'W' is now restricted to just weak non-object
5968 symbols. This allows differentiation between, for example,
5969 weak functions vs weak objects. nm for example now dumps:
5971 'w' = weak unresolved
5972 'V' = weak global object
5973 'v' = weak unresolved object
5975 (bfd_is_undefined_symclass): New function. Return true if the
5976 given symbol class represents and undefined/unresolved symbol.
5978 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5981 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5983 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5984 STT_ARM_16BIT flag set, but it is not attached to a data object
5985 return STT_ARM_16BIT so that it will be treated as code by the
5988 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5990 * coff-i386.c (i3coff_object_p): Remove prototype.
5993 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5994 to name. Update copyright.
5996 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5997 assignment to avoid warning. Update copyright.
5999 2000-01-24 Robert Lipe (robertl@sco.com)
6001 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6002 instead of using GNU C extension.
6004 2000-01-21 Nick Clifton <nickc@cygnus.com>
6006 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6007 amount from a bfd_in_memory structure.
6008 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6011 2000-01-14 Nick Clifton <nickc@cygnus.com>
6013 * linker.c (default_indirect_link_order): oops - fix incorrectly
6014 applied patch from Tim Wall.
6016 2000-01-13 Timothy Wall (twall@tiac.net>
6018 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6019 = scnhsz, filhsz, relsz, aoutsz, etc)
6021 * coffswap.h: Ditto.
6023 2000-01-13 Nick Clifton <nickc@cygnus.com>
6025 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6026 interwork thumb to arm stub.
6028 2000-01-13 Timothy Wall (twall@tiac.net>
6030 * archures.c (bfd_octets_per_byte): New function: Return
6032 (bfd_arch_mach_octets_per_byte): New function: Return target
6035 * section.c: Distinguish between octets and bytes for usage of
6036 _cooked_size, _raw_size, and output_offset. Clarify
6037 description of bfd_set_section_contents.
6039 * bfd-in2.h: Regenerate.
6041 * coffgen.c: Indicate that the offset parameter is in bytes, not
6044 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6045 where appropriate to get the octet offset when calling
6046 bfd_set_section_contents.
6047 (bfd_coff_reloc_link_order): Ditto.
6049 * linker.c (bfd_generic_reloc_link_order): Ditto.
6050 (_bfd_default_link_order): Ditto.
6052 * reloc.c (bfd_perform_relocation): Distinguish between octets
6053 and bytes. Use octets when indexing into octet data; use bytes
6054 when calculating target addresses.
6055 (bfd_install_relocation): Ditto.
6057 * srec.c (srec_write_section): Ditto.
6059 2000-01-13 Nick Clifton <nickc@cygnus.com>
6061 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6062 3 to 2. This allows 4 byte sized sections, which is necessary for
6063 dlltool to build functioning DLLs.
6065 2000-01-10 Philip Blundell <pb@futuretv.com>
6067 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6068 (arm*-*-conix*): New target.
6070 2000-01-10 Egor Duda <deo@logos-m.ru>
6072 * config.bfd: Include elf32_i386 vector to target list for cygwin
6075 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6076 * configure.in: Test for structure win32_pstatus_t in
6078 * configure: Regenerate.
6080 * elf.c (elfcore_grok_win32pstatus): New function: process
6081 win32_pstatus_t notes in elf core file.
6082 (elfcore_grok_note): Detect win32_pstatus notes.
6084 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6086 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6088 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6089 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6091 For older changes see ChangeLog-9899
6097 version-control: never