1 2001-08-23 H.J. Lu <hjl@gnu.org>
3 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
4 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
6 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
7 bfd_print_symbol_vandf.
8 * coffgen.c (coff_print_symbol): Likewise.
9 * elf.c (bfd_elf_print_symbol): Likewise.
10 * ieee.c (ieee_print_symbol): Likewise.
11 * nlmcode.h (nlm_print_symbol): Likewise.
12 * oasys.c (oasys_print_symbol): Likewise.
13 * pdp11.c (NAME(aout,print_symbol)): Likewise.
14 * som.c (som_print_symbol): Likewise.
15 * srec.c (srec_print_symbol): Likewise.
16 * tekhex.c (tekhex_print_symbol): Likewise.
17 * versados.c (versados_print_symbol): Likewise.
18 * vms.c (vms_print_symbol): Likewise.
20 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
22 (bfd_elf_print_symbol): Likewise.
23 * syms.c (bfd_print_symbol_vandf): Likewise.
25 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
27 * aoutf1.h (sunos_write_object_contents): Silence compile time
29 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
31 * bout.c: Add missing function prototypes. Fix formatting.
32 * coff-z8k.c: Add missing function prototypes. Fix formatting.
33 * coff-w65.c: Add missing function prototypes. Fix formatting.
34 * coff-h8500.c: Add missing function prototypes. Fix formatting.
35 * coff-h8300.c: Add missing function prototypes. Fix formatting.
36 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
37 * coff-tic30.c: Add missing function prototypes. Fix formatting.
38 * coff-m68k.c: Add missing function prototypes. Fix formatting.
39 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
40 * coff-sh.c: Add missing function prototypes. Fix formatting.
42 2001-08-23 Jakub Jelinek <jakub@redhat.com>
44 * elf-bfd.h (enum elf_reloc_type_class): New.
45 (struct elf_backend_data): Add elf_backend_reloc_type_class.
46 (_bfd_elf_reloc_type_class): New.
47 * elfxx-target.h (elf_backend_reloc_type_class): Define.
48 (elfNN_bed): Add elf_backend_reloc_type_class.
49 * elf.c (_bfd_elf_reloc_type_class): New.
50 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
51 is against read-only section.
52 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
53 looking up section names for DT_TEXTREL.
54 (elf_i386_reloc_type_class): New.
55 (elf_backend_reloc_type_class): Define.
56 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
57 reloc is against read-only section.
58 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
59 looking up section names for DT_TEXTREL.
60 (elf32_sparc_reloc_type_class): New.
61 (elf_backend_reloc_type_class): Define.
62 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
63 reloc is against read-only section.
64 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
65 looking up section names for DT_TEXTREL.
66 (sparc64_elf_reloc_type_class): New.
67 (elf_backend_reloc_type_class): Define.
68 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
69 (elfNN_ia64_hash_table_create): Clear ia64_info.
70 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
72 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
73 instead of looking up section names for DT_TEXTREL.
74 (elfNN_ia64_reloc_type_class): New.
75 (elf_backend_reloc_type_class): Define.
76 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
77 (struct elf_link_sort_rela): New.
78 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
79 (elf_bfd_final_link): Call elf_link_sort_relocs.
80 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
83 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
85 * configure.in (x86-bsdi): No corefile support.
86 * configure: Regenerate.
88 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
90 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
93 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
95 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
96 the alignment of dwarf2 linkonce sections to 0.
97 * coff-sto32.c: Likewise.
99 2001-08-20 Andreas Jaeger <aj@suse.de>
101 * coff-sparc.c: Add missing prototypes.
102 * elf32-s390.c: Likewise.
103 * elf32-i960.c: Likewise.
104 * aout-target.h: Likewise.
106 2001-08-20 H.J. Lu <hjl@gnu.org>
108 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
109 (elf_num_section_syms): New for num_section_syms.
111 * elf.c (elf_map_symbols): Set num_section_syms.
112 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
113 the section symbol index.
115 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
117 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
118 select the generic has table creator. All elf backends need elf
119 specific fields in the hash table.
121 2001-08-20 Alan Modra <amodra@bigpond.net.au>
123 * archive.c (offsetof): Remove define.
126 * sysdep.h (offsetof): Define.
128 2001-08-17 Alan Modra <amodra@bigpond.net.au>
130 * bfd.c (bfd_get_gp_size): Return an unsigned int.
131 (bfd_set_gp_size): Make param unsigned.
132 * bfd-in2.h: Regenerate.
133 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
134 than calling bfd_get_gp_size.
135 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
136 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
138 2001-08-17 Alan Modra <amodra@bigpond.net.au>
140 * linker.c (default_fill_link_order): Handle four byte fill value.
142 2001-08-17 Alan Modra <amodra@bigpond.net.au>
144 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
146 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
148 * elf64-mips.c (UNUSED_RELOC): Define.
149 (mips_elf64_howto_table_rel): Use it.
150 (mips_elf64_howto_table_rela): Here too.
151 (mips_elf64_write_relocs): Fix signed/unsigned warning.
153 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
155 * coffgen.c (coff_print_symbol): Fix warnings.
156 (coff_find_nearest_line): Likewise.
157 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
158 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
159 * format.c (bfd_check_format_matches): Likewise.
160 (bfd_set_format): Likewise.
161 * coff-ia64.c: Add missing prototypes.
162 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
163 signed to silence warnings.
164 (elf64_alpha_relocate_section): Likewise.
165 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
166 (elf64_alpha_add_symbol_hook): Likewise.
167 (elf64_alpha_final_link): Likewise.
168 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
169 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
170 (elf64_alpha_size_got_sections): Likewise.
171 * elfxx-ia64.c: Add missing prototypes.
172 (elfNN_ia64_relocate_section): Fix warning.
173 (elfNN_ia64_unwind_entry_compare): Make params const.
175 2001-08-17 Alan Modra <amodra@bigpond.net.au>
177 * config.bfd (targ64_selvecs): New.
178 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
180 * bfd-in.h (BFD_VERSION): Remove wrong comment.
181 (BFD_DEFAULT_TARGET_SIZE): New.
182 (BFD_ARCH_SIZE): Comment.
183 * configure.in (target_size): New. Set instead of target64 in
184 selvecs case statement. Set target64 from it.
185 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
186 * bfd-in2.h: Regenerate.
187 * configure: Regenerate.
189 2001-08-17 Alan Modra <amodra@bigpond.net.au>
191 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
192 (bfd_errmsgs): Add corresponding message.
193 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
194 finding an archive that contains different format object files.
195 Return bfd_error_wrong_object_format for this case.
196 * format.c: Formatting fixes. s/CONST/const/.
197 (bfd_check_format_matches): Accept archives that give
198 bfd_error_wrong_object_format if no full match is found. Tidy
199 code handling matching_vector. Don't return a pointer to freed
200 memory in `matching'. Handle ambiguous matches as for partial
202 * bfd-in2.h: Regenerate.
204 2001-08-15 Alan Modra <amodra@bigpond.net.au>
206 * libieee.h (common_header_type): Add last_byte field.
208 * ieee.c: Add missing prototypes. Some format fixes.
209 (struct output_buffer_struct): Move for availability to prototypes.
210 (ieee_part_after): New function.
211 (ieee_slurp_debug): Use it here.
212 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
213 ieee_part_after to set last_byte to one past end of current part.
215 (ieee_pos): Pass in ieee_data_struct rather than bfd.
217 (parse_expression): Don't go beyond the end of the current part.
218 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
219 (ieee_get_symtab_upper_bound, ieee_get_symtab,
220 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
221 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
222 ieee_set_section_contents, ieee_write_object_contents,
223 ieee_make_empty_symbol): Make static.
224 (ieee_archive_p): Correct comments regarding bfd_read.
225 (ieee_object_p): Similarly.
226 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
227 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
228 input_bfd, output_bfd, output_buffer.
229 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
230 do_with_relocs, ie. as a symbol for relocatable files.
231 (ieee_vec): Add comments showing functions referenced by macros.
233 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
235 * aout-tic30.c: Add missing prototypes. Fix formatting.
236 * aout-ns32k.c: Add missing prototypes. Fix formatting.
237 * peXXigen.c: Add missining prototypes. Fix formatting.
238 * aout-adobe.c: Add missining prototypes. Fix formatting.
240 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
242 * elf32-v850.c: Add missing function prototypes.
245 * cpu-v850.c: Add missing function prototype.
248 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
250 * elf-bfd.h (struct elf_backend_data): Add new fields
251 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
252 (bfd_elf_sprintf_vma): Rename function prototype to
253 '_bfd_elf_sprintf_vma'.
254 (bfd_elf_fprintf_vma): Rename function prototype to
255 '_bfd_elf_fprintf_vma'.
256 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
257 directly, instead indirect via the elf_backend_data structure.
258 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
259 instead indirect via the elf_backend_data structure.
260 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
261 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
262 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
264 (elf_backend_fprintf_vma): Initialise if not already defined.
265 (struct elf_backend_data): Initialise the
266 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
268 2001-08-10 Andreas Jaeger <aj@suse.de>
270 * elf64-sparc.c: Add missing prototypes.
271 * elf32-cris.c: Likewise.
272 * elf32-i370.c: Likewise.
273 * elf64-hppa.c: Likewise.
274 * elf64-s390.c: Likewise.
276 2001-08-10 Andreas Jaeger <aj@suse.de>
278 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
279 Add prototypes where needed.
281 2001-08-10 H.J. Lu <hjl@gnu.org>
283 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
284 (bfd_fprintf_vma): Likewise.
286 2001-08-10 H.J. Lu <hjl@gnu.org>
288 * bfd.c (bfd_sprintf_vma): Don't return void.
289 (bfd_fprintf_vma): Likewise.
291 2001-08-10 Andreas Jaeger <aj@suse.de>
293 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
295 * configure: Regenerate.
297 2001-08-10 Alan Modra <amodra@bigpond.net.au>
299 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
300 warning if not BFD64. Add braces so emacs auto format works.
301 (bfd_elf_fprintf_vma): Likewise.
303 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
305 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
306 param to agree with libxcoff.h.
307 (xcoff_swap_ldhdr_out): Likewise.
308 (xcoff_swap_ldsym_in): Likewise.
309 (xcoff_swap_ldsym_out): Likewise.
310 (xcoff_swap_ldrel_in): Likewise.
311 (xcoff_swap_ldrel_out): Likewise.
312 (xcoff_create_csect_from_smclas): Likewise.
313 * coff64-rs6000.c: Add missing prototypes.
314 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
316 (xcoff64_swap_ldhdr_out): Likewise.
317 (xcoff64_swap_ldsym_in): Likewise.
318 (xcoff64_swap_ldsym_out): Likewise.
319 (xcoff64_swap_ldrel_in): Likewise.
320 (xcoff64_swap_ldrel_out): Likewise.
321 (xcoff64_ppc_relocate_section): Make static.
322 (xcoff64_slurp_armap): Likewise.
323 (xcoff64_archive_p): Likewise.
324 (xcoff64_openr_next_archived_file): Likewise.
325 (xcoff64_sizeof_headers): Likewise.
326 (xcoff64_is_lineno_count_overflow): Likewise.
327 (xcoff64_is_reloc_count_overflow): Likewise.
328 (xcoff64_loader_symbol_offset): Likewise.
329 (xcoff64_loader_reloc_offset): Likewise.
330 * elf64-gen.c: Add missing prototypes.
332 2001-08-09 H.J. Lu <hjl@gnu.org>
334 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
335 (bfd_elf_fprintf_vma): Likewise.
337 2001-08-09 H.J. Lu <hjl@gnu.org>
339 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
342 * bfd-in2.h: Regenerated.
344 2001-08-09 H.J. Lu <hjl@gnu.org>
346 * bfd-in.h (bfd_sprintf_vma): New prototype.
347 (bfd_fprintf_vma): Likewise.
348 (bfd_elf_sprintf_vma): Likewise.
349 (bfd_elf_fprintf_vma): Likewise.
350 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
351 * bfd-in2.h: Regenerated.
353 * bfd.c (bfd_sprintf_vma): New. Defined.
354 (bfd_fprintf_vma): Likewise.
356 * elf.c (bfd_elf_sprintf_vma): New. Defined.
357 (bfd_elf_fprintf_vma): Likewise.
359 2001-08-09 Alan Modra <amodra@bigpond.net.au>
361 * coff-rs6000.c: Add missing prototypes.
362 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
363 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
364 xcoff_loader_reloc_offset): Make static.
365 * dwarf1.c: Add missing prototypes.
366 * dwarf2.c: Add missing prototypes.
367 (struct abbrev_info): Move definition.
368 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
369 * elf.c: Add missing prototypes.
370 * elf32-gen.c: Likewise.
371 * elf32-i386.c: Likewise.
372 * elf32-ppc.c: Likewise.
373 (ppc_elf_sort_rela): Use PTR instead of "void *".
374 * elflink.h: Add missing prototypes. Formatting fixes.
375 * merge.c: Add missing prototypes.
376 (last4_eq): Use PTR instead of "void *".
378 * syms.c: Add missing prototypes.
380 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
382 * bfd.c: Fix formatting.
383 * bfd-in2.h: Regenerate.
385 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
387 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
388 true (this target uses REL relocations) and 'pcrel_offset' to
389 false (the PC is implied, not stored in the offset).
391 2001-08-08 Alan Modra <amodra@bigpond.net.au>
393 1999-10-19 Linus Nordberg <linus@swox.se>
394 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
395 * elfxx-target.h (elf_backend_want_got_sym): Define.
396 (elfNN_bed): Add elf_backend_want_got_sym.
397 * elflink.c (_bfd_elf_create_got_section): Define
398 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
400 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
402 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
403 (find_rela_addend): New function.
404 (parse_comp_unit): Call it to find the abbrev offset addend.
405 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
406 members of dwarf2_debug as debugging information is read.
408 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
410 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
411 targets as well as sh-pe.
413 2001-08-03 Ben Harris <bjh21@netbsd.org>
415 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
416 reloc from start of section when computing value for R_ARM_REL32
419 2001-08-03 Alan Modra <amodra@bigpond.net.au>
421 From H.J. Lu <hjl@gnu.org>
422 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
423 keep relocs for undefined syms if there are no dynamic sections in
425 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
427 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
429 * cofflink.c (coff_link_check_ar_symbols): also search for
430 __imp__symbol as well as _symbol.
431 * linker.c (_bfd_generic_link_add_archive_symbols): also
432 search for __imp__symbol as well as _symbol.
434 2001-08-01 Adam Nemet <anemet@lnxw.com>
436 * elf.c (elf_sort_sections): Return zero only as the last step.
438 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
440 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
442 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
443 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
446 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
448 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
449 to match corresponding bfd_coff_backend data member.
451 2001-07-24 Alan Modra <amodra@bigpond.net.au>
453 * Makefile.am: Update dependencies with "make dep-am".
454 * Makefile.in: Regenerate
456 2001-07-15 H.J. Lu <hjl@gnu.org>
458 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
459 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
460 * Makefile.in: Regenerate.
462 2001-07-11 H.J. Lu <hjl@gnu.org>
464 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
465 flags when creating the reloc section if the ALLOC flag in the
466 source section is set.
468 2001-07-11 Steve Ellcey <sje@cup.hp.com>
470 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
471 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
472 * bfd-in2.h: Regenerate.
473 * libbfd.h: Regenerate.
474 * elfxx-ia64.c (ia64_howto_table): Define how to handle
476 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
477 (elfNN_ia64_check_relocs): Likewise.
478 (elfNN_ia64_install_value): Likewise.
479 (elfNN_ia64_relocate_section): Likewise.
481 2001-07-11 Jakub Jelinek <jakub@redhat.com>
483 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
485 (elf32_sparc_check_relocs): Likewise.
486 Only create .rela section for alloced sections in shared libraries.
487 (elf32_sparc_relocate_section): Likewise.
488 Remove redundant check.
489 Optimize unaligned reloc usage.
490 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
493 2001-07-11 H.J. Lu <hjl@gnu.org>
495 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
496 ALLOC|LOAD flags as the source section for debugging sections
497 when creating the reloc section.
499 2001-07-05 Jim Wilson <wilson@redhat.com>
501 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
502 the section of the bigger symbol.
504 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
506 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
508 * peicode.h (coff_swap_scnhdr_in): For sections containing
509 uninitialised data, only set their size to s_paddr if this does
510 not reset their size to zero. MS's latest compilers will set
513 2001-07-04 H.J. Lu <hjl@gnu.org>
515 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
516 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
519 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
521 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
523 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
524 sections being discarded.
526 2001-06-30 Alan Modra <amodra@bigpond.net.au>
528 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
529 instead of _bfd_elfcore_section_from_phdr.
530 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
531 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
532 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
533 (elfcore_grok_prstatus): Likewise.
534 (elfcore_grok_lwpstatus): Likewise.
535 (bfd_get_elf_phdr_upper_bound): Likewise.
536 (elfcore_make_note_pseudosection): Formatting.
537 (_bfd_elfcore_strndup): Formatting.
538 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
539 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
541 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
543 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
544 and _bfd_elfcore_strndup.
545 (struct elf_backend_data): Add elf_backend_grok_prstatus
546 and elf_backend_grok_psinfo.
547 * elf.c (_bfd_elfcore_make_pseudosection): New function.
548 (elfcore_grok_prstatus): Use it.
549 (elfcore_make_note_pseudosection): Likewise.
550 (elfcore_strndup): Rename to...
551 (_bfd_elfcore_strndup): Here, and make global.
552 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
553 (elfcore_grok_note): Call elf_backend_grok_prstatus
554 and elf_backend_grok_psinfo if available.
555 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
556 (_bfd_elf32_mips_grok_psinfo): New function.
557 (elf_backend_grok_prstatus): Define.
558 (elf_backend_grok_psinfo): Define.
559 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
560 (elf_backend_grok_psinfo): Likewise.
561 (elfNN_bed): Include elf_backend_grok_prstatus and
562 elf_backend_grok_psinfo.
564 2001-06-29 H.J. Lu <hjl@gnu.org>
566 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
567 hplink->sgot is NULL before filling GOT. Check if hplink->splt
568 is NULL before filling PLT.
570 2001-06-29 Alan Modra <amodra@bigpond.net.au>
572 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
574 2001-06-27 Alan Modra <amodra@bigpond.net.au>
576 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
578 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
579 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
582 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
583 (IS_ABSOLUTE_RELOC): Define.
584 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
585 (hppa_link_hash_newfunc): Always init it.
586 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
587 create COPY relocs only when the reloc is in a read-only section.
588 Instead, allocate space for a dynamic reloc to reference the
589 library symbol directly. Keep track of space we allocate using
591 (hppa_discard_copies): Delete, and move code to..
592 (allocate_plt_and_got): ..here. Rename to
593 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
594 relocs for non-shared link.
595 (elf32_hppa_size_dynamic_sections): Update calls to above.
596 (elf32_hppa_relocate_section): Write out the dynamic relocs used
597 in lieu of COPY relocs.
599 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
601 (elf_i386_adjust_dynamic_symbol): ..nor here..
602 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
604 (elf_i386_size_dynamic_sections): Fix a comment.
605 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
606 involved in writing reloc out.
608 2001-06-25 Alan Modra <amodra@bigpond.net.au>
610 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
611 Ensure syms are dynamic if we might be emitting a reloc.
612 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
613 for undefweak or undefined syms..
614 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
616 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
617 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
618 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
619 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
621 2001-06-24 H.J. Lu <hjl@gnu.org>
623 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
624 strncasecmp/strcasecmp instead of strncmp/strcmp.
626 2001-06-23 H.J. Lu <hjl@gnu.org>
628 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
629 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
630 in the regular object file and treat the weak definition as
633 2001-06-23 Alan Modra <amodra@bigpond.net.au>
635 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
636 unresolved_reloc test to exclude cases where we use "relocation"
637 before setting it to point into the .got. Reinstate fudge for
638 unresolved relocs in debugging sections.
640 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
641 complicated tests for unresolvable relocs with a simple direct
642 scheme using "unresolved_reloc" var.
644 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
645 elf_i386_dyn_relocs. Update comment.
646 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
648 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
650 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
652 (elf_i386_size_dynamic_sections): Likewise.
653 (elf_i386_finish_dynamic_symbol): Likewise.
654 (elf_i386_finish_dynamic_sections): Likewise.
655 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
658 Avoid creating COPY relocs if possible.
659 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
660 which .got created. Mark symbols used by R_386_32 and R_386_PC32
661 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
662 reloc is in a read-only section. Instead, allocate space for a
663 dynamic reloc to reference the library symbol directly. Keep
664 track of space we allocate using pcrel_relocs_copied.
665 (discard_copies): Delete, and move code to ..
666 (allocate_plt_and_got): ..here. Rename to
667 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
668 relocs for non-shared link.
669 (elf_i386_size_dynamic_sections): Update calls to above functions.
670 (elf_i386_relocate_section): Write out the dynamic relocs. Add
671 more ugly logic to avoid "unresolvable relocation" error. Use
672 htab shortcut in place of elf_hash_table macro.
673 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
674 not always be created now.
676 2001-06-20 Bo Thorsen <bo@suse.co.uk>
678 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
681 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
683 * configure.host (mips64-*-linux): Reformat.
685 2001-06-21 Alan Modra <amodra@bigpond.net.au>
687 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
688 allocate local .got space. Use shortcuts from hash table for .got
689 and .plt rather than comparing section names.
690 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
691 adjusting index into local_got_refcounts to document what we are
693 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
694 Tidy .got and .plt error checking.
696 2001-06-20 Catherine Moore <clm@redhat.com>
698 * elf-bfd.h (struct elf_backend_data):
699 elf_backend_emit_relocs: New field: Function for emitting
701 elf_backend_count_relocs: New field: Function for determining
702 the number of relocs to be emitted.
703 * elfxx-target.h: Provide default (NULL) values for
704 elf_backend_emit_relocs and elf_backend_count_relocs.
705 * elflink.h (elf_link_size_reloc_section): Make the hash table
706 big enough to hold the relocs counted by either reloc_count or
708 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
709 should be emitted, either because of a command line option
710 stored in the info structure or because the target provides a
711 special reloc emitting function.
712 If the target provides a reloc counting function use it,
713 unless performing a relocatable link or emitting all relocs.
714 Also set the SEC_RELOC flag on any output section which will
716 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
717 should be emitted, either because of a command line option
718 stored in the info structure or because the target provides a
719 special reloc emitting function.
720 If the target provides a reloc emitting function, use it,
721 unless performing a relocatable link or emitting all relocs.
723 2001-06-20 H.J. Lu <hjl@gnu.org>
725 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
726 allocate local .got space.
728 2001-06-19 Andreas Jaeger <aj@suse.de>
730 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
733 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
735 * elflink.h (struct elf_assign_sym_version_info): Remove member
736 export_dynamic. All users changed to use info member.
737 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
738 export_dynamic, instead use member in parameter info.
739 * bfd-in.h (bfd_elf32_size_dynamic_sections,
740 bfd_elf64_size_dynamic_sections): Update prototype.
741 * bfd-in2.h: Regenerate.
743 2001-06-18 H.J. Lu <hjl@gnu.org>
745 * elflink.h (elf_info_failed): Add a new field, verdefs.
746 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
748 (elf_export_symbol): Check eif->verdefs to decide if a symbol
751 2001-06-17 H.J. Lu <hjl@gnu.org>
753 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
754 readonly_reloc, to record if a relocation in the .rel.dyn
755 section is against a read-only section.
756 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
758 (_bfd_mips_elf_check_relocs): Record if there is a relocation
759 in the .rel.dyn section against a read-only section by setting
760 DF_TEXTREL or readonly_reloc.
761 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
763 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
764 there is a relocation in the .rel.dyn section against a
766 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
769 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
771 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
772 function. Move flagword result into parameter list. Remove
773 comment about setting bfd_error_handler to intercept failure
775 * coffgen.c (make_a_section_from_file): Examine result of
776 calling bfd_coff_styp_to_sec_flags and pass a failure back to
778 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
779 function. Move flagword result into parameter list.
780 * libcoff.h: Regenerate.
781 * libecoff.h: Regenerate.
783 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
785 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
786 section is going to follow it.
788 2001-06-12 Catherine Moore <clm@redhat.com>
790 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
791 with the file_align entry from elf_backend_data.
792 (elf_gc_smash_unused_vtentry_relocs): Likewise.
793 (elf_gc_record_vtentry): Likewise.
795 2001-06-10 Alan Modra <amodra@bigpond.net.au>
797 * elflink.h: Whitespace changes.
798 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
799 rather than "unsigned char".
800 (elf_link_output_relocs): Likewise.
801 (elf_link_input_bfd): Likewise.
802 (elf_reloc_link_order): LIkewise.
803 * elf.c: s/CONST/const/. Whitespace changes.
804 * elf32-mips.c: Formatting fix.
806 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
807 * Makefile.in: Regenerate.
808 * po/Make-in: Remove trailing tab.
810 2001-06-09 Philip Blundell <philb@gnu.org>
812 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
814 (elf32_arm_plt_entry): Likewise.
816 2001-06-08 H.J. Lu <hjl@gnu.org>
818 * elf.c (swap_out_syms): Keep names for global section symbols.
820 2001-06-07 H.J. Lu <hjl@gnu.org>
822 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
823 MIPS-based machines need it.
825 2001-06-07 H.J. Lu <hjl@gnu.org>
827 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
830 * config.bfd: Remove ecoff from Linux/mips.
832 2001-06-07 Andreas Jaeger <aj@suse.de>
834 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
836 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
837 alignment of 8 for .rela sections; handle further relocations.
839 2001-06-06 Christian Groessler <cpg@aladdin.de>
841 * coff-z8k.c: Fix formatting.
842 Fix howtos: howto->size was always 1.
844 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
846 * configure.host (mips64*-*-linux*): Define.
848 2001-06-05 Alan Modra <amodra@bigpond.net.au>
850 * elf32-i386.c (elf_i386_discard_copies): Rename to
851 discard_copies, and use elf_link_hash_entry arg rather than
852 elf_i386_link_hash_entry.
853 (elf_i386_link_hash_traverse): Delete.
854 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
855 Tidy sizing of dynamic sections.
856 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
857 possible .plt entries.
858 (elf_i386_gc_sweep_hook): Likewise.
859 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
860 everything with plt.refcount <= 0.
862 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
864 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
865 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
867 (allocate_plt_and_got): ..instead do it all here. New function.
868 (elf_i386_size_dynamic_sections): Allocate local .got space and
869 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
870 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
871 rather than gc variety).
872 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
873 (elf_i386_relocate_section): Use it here and correct handling of
874 R_386_GOT32. Provide section and offset for "unresolvable
875 relocation" error message.
876 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
878 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
879 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
880 (elf_i386_link_hash_table_create): Init them.
881 (create_got_section): New function.
882 (elf_i386_create_dynamic_sections): New function.
883 (elf_backend_create_dynamic_sections): Set to above.
884 (elf_i386_check_relocs): Use shortcuts from hash table rather than
885 calling bfd_get_section_by_name.
886 (elf_i386_gc_sweep_hook): Likewise.
887 (elf_i386_adjust_dynamic_symbol): Likewise.
888 (elf_i386_size_dynamic_sections): Likewise.
889 (elf_i386_relocate_section): Likewise.
890 (elf_i386_finish_dynamic_sections): Likewise.
892 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
894 2001-06-02 H.J. Lu <hjl@gnu.org>
896 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
898 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
900 2001-06-02 H.J. Lu <hjl@gnu.org>
902 * aout-cris.c (MACHTYPE_OK): New. Defined.
904 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
906 * section.c (_bfd_strip_section_from_output): Handle NULL
909 2001-06-02 H.J. Lu <hjl@gnu.org>
911 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
912 rs6000coff64_vec only if BFD64 is defined.
913 (powerpc64-*-aix*): Enable only if BFD64 is defined.
915 2001-06-02 H.J. Lu <hjl@gnu.org>
917 * coff-ia64.c (ia64coff_object_p): Rewrite with
918 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
920 2001-06-01 Andreas Jaeger <aj@suse.de>
922 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
923 relocation, small reformatting.
925 2001-05-29 Andreas Jaeger <aj@suse.de>
927 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
928 (elf64_x86_64_relocate_section): Likewise.
930 2001-05-30 Alan Modra <amodra@one.net.au>
932 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
933 millicode. Don't allocate .got and .rela.got space here..
934 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
935 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
937 (hppa_handle_PIC_calls): ..nor here..
938 (allocate_plt_and_got): ..instead do it all here. New function.
939 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
940 call allocate_plt_and_got. No need to zap .got if not dynamic.
941 (elf32_hppa_final_link): Call regular bfd_final_link instead of
942 gc_common_final_link.
943 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
944 (elf32_hppa_relocate_section): Use it here.
945 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
946 dynamic_sections_created.
947 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
949 2001-05-28 Andreas Jaeger <aj@suse.de>
951 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
952 generic version since we want a hashsize of 4.
953 (elf_backend_size_info): Likewise.
955 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
957 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
959 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
960 (elf_link_input_bfd): Likewise.
961 (elf_reloc_link_order): Likewise.
962 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
963 relocations correctly.
965 2001-05-28 Nicolas Pitre <nico@cam.org>
967 * elf32-arm.h: fix PLT generation for big endian ARM
969 2001-05-28 Alan Modra <amodra@one.net.au>
971 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
972 for symbols forced local that need plabels.
973 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
974 .plt.rela for local syms if non-shared.
975 (hppa_build_one_stub): Mask lsb of plt.offset.
976 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
977 (clobber_millicode_symbols): Correct comment.
978 (elf32_hppa_relocate_section): Likewise.
979 (elf32_hppa_finish_dynamic_symbol): Likewise.
981 2001-05-28 Jeff Sturm <jsturm@one-point.com>
983 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
984 * bfd-in2.h: Regenerate.
985 * libbfd.h: Regenerate.
986 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
987 and BFD_RELOC_SPARC_UA64 mapping
988 * elf64-sparc.c: Likewise.
990 2001-05-25 H.J. Lu <hjl@gnu.org>
992 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
993 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
994 (coff-rs6000.lo): Remove the old dependency.
995 * Makefile.in: Rebuild.
997 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
1000 2001-05-25 H.J. Lu <hjl@gnu.org>
1002 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
1003 rs6000coff_core_file_matches_executable_p,
1004 rs6000coff_core_file_failing_command and
1005 rs6000coff_core_file_failing_signal only if AIX_CORE is
1007 (pmac_xcoff_vec): Likewise.
1008 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1010 2001-05-25 Timothy Wall <twall@redhat.com>
1012 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
1013 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
1015 2001-05-25 H.J. Lu <hjl@gnu.org>
1017 * bfd-in2.h: Regenerated.
1018 * libcoff.h: Likewise.
1020 2001-05-25 Alan Modra <amodra@one.net.au>
1022 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
1023 undefined millicode syms in shared libs.
1024 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
1025 (elf32_hppa_check_relocs): Likewise.
1026 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1027 (elf32_hppa_size_dynamic_sections): Likewise.
1028 (elf32_hppa_relocate_section): Likewise.
1029 (elf32_hppa_finish_dynamic_symbol): Likewise.
1030 (elf32_hppa_finish_dynamic_sections): Likewise.
1032 2001-05-24 Tom Rix <trix@redhat.com>
1034 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
1035 xcoff-target.h not used to define rs6000 or ppc bfd.
1038 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
1041 * coff-rs6000.c : Many changes for 64 bit support. Move common
1042 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
1045 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
1046 linker now supported. Explictly define the rs6000coff64_vec.
1048 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
1049 (coff_print_aux) same
1050 (coff_write_object_contents) same
1051 (coff_slurp_line_table) same
1053 * coffgen.c : (coff_fix_symbol_name) formatting
1054 (coff_mangle_symbols) xcoff 64 bit support
1055 (coff_write_symbol) same
1056 (coff_write_alien_symbol) same
1057 (coff_write_native_symbol) same
1058 (coff_write_symbols) same
1059 (coff_get_symbol_info) same
1060 (bfd_coff_get_syment) same
1061 (coff_print_symbol) same
1063 * config.bfd : add powerpc64-*-aix* target
1065 * libcoff-in.h : formatting
1067 * libcoff.h : move xcoff extern declarations to libxcoff.h
1069 * libxcoff.h : New file
1071 * xcofflink.c : Many changes for xcoff64 support. Move common
1072 structures to include/coff/xcoff.h. Move specific structure to
1073 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
1074 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
1076 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
1079 (xcoff_build_ldsyms) : handle special __rtinit symbol.
1081 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1083 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1086 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1088 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1089 * libbfd.h: Regenerate.
1090 * bfd-in2.h: Regenerate.
1092 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1093 * archures.c (bfd_mach_mips12000): Define.
1094 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1095 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1097 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1098 * bfd-in2.h: Regenerate.
1099 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1101 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
1103 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1104 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1105 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1106 that is used by GCC.
1108 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1110 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1111 of entries in a structured section.
1112 * elf.c: Use new macro.
1113 * elf32-i386.c: Use new macro.
1114 * elf32-mips.c: Use new macro.
1115 * elf64-alpha.c: Use new macro.
1116 * elf64-sparc.c: Use new macro.
1117 * elfcode.h: Use new macro.
1118 * elflink.h: Use new macro.
1120 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1122 * bfdint.texi: Replace -oformat with --oformat.
1124 2001-05-21 Andreas Jaeger <aj@suse.de>
1126 * dwarf2.c (decode_line_info): Fix error message.
1127 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1128 adjust error message.
1130 2001-05-18 H.J. Lu <hjl@gnu.org>
1132 * elflink.h (elf_link_add_object_symbols): Revert the last
1135 2001-05-17 Alan Modra <amodra@one.net.au>
1137 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1138 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1139 (hppa_build_one_stub): Add an assert to check plt.offset.
1141 2001-05-17 H.J. Lu <hjl@gnu.org>
1143 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1144 version definition to basename of the output filename.
1146 2001-05-17 H.J. Lu <hjl@gnu.org>
1148 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1149 basename of the bfd filename.
1151 2001-05-16 Alan Modra <amodra@one.net.au>
1153 * section.c (asection): Add linker_has_input field.
1154 (STD_SECTION): Adjust initialization to suit.
1155 * ecoff.c (bfd_debug_section): Likewise.
1156 * bfd-in2.h: Regenerate.
1158 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
1160 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1161 negative 32-bit operands to 16 operands when the operand is
1162 going to be zero-extended by the modified opcode.
1164 2001-05-12 Peter Targett <peter.targett@arccores.com>
1166 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1167 name for 'arc5' core versions.
1168 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1170 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1172 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1174 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1176 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1178 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1179 to .gnu.linkonce.t.FOO text section.
1181 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1183 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1184 fields, change sec into secinfo.
1185 (struct sec_merge_info): Add chain, remove last fields.
1186 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1187 (sec_merge_hash_lookup): If lookup could not use a string only
1188 because it has bad alignment, mark the old string for deletion.
1189 (sec_merge_add): Add secinfo argument. Don't compute entry's
1190 position, instead record the section.
1191 (sec_merge_emit): Update for the sec into secinfo change in
1192 struct sec_merge_hash_entry.
1193 (_bfd_merge_section): Only record the section for merging, defer
1194 putting strings into the hash table.
1195 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1196 _bfd_merge_sections): New functions.
1197 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1199 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1200 (_bfd_nolink_bfd_merge_sections): Define.
1201 * libbfd.h: Likewise.
1202 (bfd_generic_merge_sections): Add prototype.
1203 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1204 (struct bfd_target): Likewise.
1205 * bfd.c (bfd_merge_sections): Define.
1206 * bfd-in2.h: Rebuilt.
1207 * elf.c (_bfd_elf_merge_sections): New function.
1208 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1209 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1210 * reloc.c (bfd_generic_merge_sections): New function.
1211 * vms.c (vms_bfd_merge_sections): New function.
1212 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1213 * aout-target.h (MY_bfd_merge_sections): Define.
1214 * aout-tic30.c (MY_bfd_merge_sections): Define.
1215 * binary.c (binary_bfd_merge_sections): Define.
1216 * bout.c (b_out_bfd_merge_sections): Define.
1217 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1218 * coffcode.c (coff_bfd_merge_sections): Define.
1219 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1220 * i386msdos.c (msdos_bfd_merge_sections): Define.
1221 * i386os9k.c (os9k_bfd_merge_sections): Define.
1222 * ieee.c (ieee_bfd_merge_sections): Define.
1223 * ihex.c (ihex_bfd_merge_sections): Define.
1224 * nlm-target.h (nlm_bfd_merge_sections): Define.
1225 * oasys.c (oasys_bfd_merge_sections): Define.
1226 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1227 * som.c (som_bfd_merge_sections): Define.
1228 * srec.c (srec_bfd_merge_sections): Define.
1229 * tekhex.c (tekhex_bfd_merge_sections): Define.
1230 * versados.c (versados_bfd_merge_sections): Define.
1231 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1233 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1235 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1236 to be unsigned long, in order to match its use.
1238 2001-05-10 H.J. Lu <hjl@gnu.org>
1240 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1243 2001-05-09 H.J. Lu <hjl@gnu.org>
1245 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1246 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1247 Remove the unused veriable `dynver'.
1249 2001-05-08 Ian Lance Taylor <ian@zembu.com>
1251 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1252 NULL or is not COFF.
1253 (coff_i386_rtype_to_howto): Don't dump core if output section
1256 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1258 * ecoff.c (bfd_debug_section): Fix initialization.
1259 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1260 is always a positive integer. Cast away sign mismatch.
1261 * elf32-mips.c: Fix misleading comment and typo.
1262 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1264 * elflink.c: Fix typo.
1265 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1266 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1268 2001-05-04 Richard Henderson <rth@redhat.com>
1270 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1272 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1274 * elf32-arm.h (elf32_arm_final_link_relocate): Set
1275 EF_ARM_HASENTRY if the start address is set.
1277 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1279 * targets.c (_bfd_target_vector_entries): Compute value based on
1280 the size of the _bfd_target_vector and not bfd_target_vector.
1282 2001-05-03 H.J. Lu <hjl@gnu.org>
1284 * elfcode.h: Include "libiberty.h".
1286 * elflink.h (elf_link_add_object_symbols): Set
1287 elf_dt_name (abfd) to basename of the bfd filename.
1288 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1289 of the bfd filename.
1291 2001-05-03 Andreas Jaeger <aj@suse.de>
1293 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1294 (elf_generic_info_to_howto_rel): Likewise.
1295 * coff-alpha.c (reloc_nil): Likewise.
1296 (alpha_ecoff_bad_format_hook): Likewise.
1297 (alpha_adjust_reloc_out): Likewise.
1298 (alpha_bfd_reloc_type_lookup): Likewise.
1299 (alpha_convert_external_reloc): Likewise.
1300 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1301 (elf64_alpha_reloc_bad): Likewise.
1302 (elf64_alpha_reloc_gpdisp): Likewise.
1303 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1304 (elf64_alpha_info_to_howto): Likewise.
1305 (elf64_alpha_add_symbol_hook): Likewise.
1306 (elf64_alpha_create_got_section): Likewise.
1307 (elf64_alpha_is_local_label_name): Likewise.
1308 (elf64_alpha_merge_ind_symbols): Likewise.
1309 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1310 (mips_elf64_get_reloc_upper_bound): Likewise.
1311 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1312 (nlm_alpha_get_public_offset): Likewise.
1314 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1316 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1317 about overflow in R_OPENRISC_LO_16_IN_INSN and
1318 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1320 2001-04-30 H.J. Lu <hjl@gnu.org>
1322 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1323 only for ELF_LINK_FORCED_LOCAL.
1324 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1325 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1326 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1328 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1329 if the symbol has hidden or internal visibility.
1331 2001-04-30 Alan Modra <amodra@one.net.au>
1333 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1334 calls to undefined weak symbols.
1336 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1338 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1339 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1341 2001-04-27 Andreas Jaeger <aj@suse.de>
1343 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1344 out handled entries.
1345 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1346 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1347 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1350 2001-04-27 Sean McNeil <sean@mcneil.com>
1352 * config.bfd: Add arm-vxworks target.
1353 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1354 addend (fro VXworks targets).
1356 2001-04-26 H.J. Lu <hjl@gnu.org>
1358 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1361 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
1363 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1364 * bfd-in2.h: Regenerated.
1366 2001-04-24 Jakub Jelinek <jakub@redhat.com>
1368 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1369 (struct sec_merge_hash): Remove alignment_power.
1370 (sec_merge_hash_newfunc): Clear alignment.
1371 (sec_merge_hash_lookup): Pass alignment as argument.
1372 Use hashp->root.next, not hashp->next to walk the hash chain.
1373 If a string already in the hashtable does not have required
1374 alignment, create a new hashtable entry.
1375 (sec_merge_init): Remove alignment_power argument.
1376 (sec_merge_add): Add alignment argument.
1377 (sec_merge_emit): Alignment is now a per-entity thing, not per
1379 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1380 for proper alignment.
1381 Pass alignment information to sec_merge_add.
1383 2001-04-24 Christian Groessler <cpg@aladdin.de>
1385 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1386 and R_REL16 reloc types; accept odd values for R_REL16 type
1388 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
1390 * cpu-openrisc.c: New file.
1391 * elf32-openrisc.c: Likewise.
1393 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1394 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1395 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1396 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1397 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1398 * Makefile.in: Regenerated.
1399 * config.bfd: (openrisc-*-elf): New target.
1400 * configure.in (bfd_elf32_openrisc_vec): New vector.
1401 * configure: Regenerated.
1402 * libbfd.h: Regenerated.
1403 * bfd-in2.h: Regenerated.
1404 * reloc.c: Add OpenRISC relocations.
1405 * targets.c (bfd_elf32_openrisc_vec): Declare.
1406 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1407 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1408 (bfd_openrisc_arch): Declare.
1409 (bfd_archures_list): Add bfd_openrisc_arch.
1410 * elf.c (prep_headers): Add bfd_arch_openrisc.
1412 2001-04-23 Bo Thorsen <bo@suse.de>
1414 * elf64-x86-64.c: Add c++ vtable hack.
1415 Small whitespace and comment changes.
1417 2001-04-19 Andreas Jaeger <aj@suse.de>
1419 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1420 (elf64_x86_64_plt_entry): Likewise.
1421 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1422 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1424 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
1426 * elf32-cris.c: Tweak comments related to dynamic linking.
1427 (cris_elf_relocate_section): When not creating shared object, fill
1428 in the .got table for any symbol not in the dynamic symbol table.
1429 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1430 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1432 (cris_elf_check_relocs): Use variable r_type in all places rather
1433 than the original expression. Add default case in switch for
1435 (elf_cris_size_dynamic_sections): Iterate over
1436 elf_cris_discard_excess_program_dynamics when not creating shared
1438 (elf_cris_discard_excess_dso_dynamics): Renamed from
1439 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1440 (elf_cris_discard_excess_program_dynamics): New.
1442 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1444 * coffcode.h (coff_write_object_contents): Use
1445 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1447 2001-04-14 H.J. Lu <hjl@gnu.org>
1449 * bfd-in2.h: Regenerate.
1451 2001-04-14 Jakub Jelinek <jakub@redhat.com>
1453 * section.c (STD_SECTION): Add entsize.
1455 2001-04-13 H.J. Lu <hjl@gnu.org>
1457 * section.c (SEC_MERGE): Define new flag for merging.
1458 (SEC_STRINGS): Likewise.
1459 (entsize): New field.
1461 2001-04-13 Roger Sayle <roger@metaphorics.com>
1463 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1464 flag on pe-i386 targets.
1466 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1468 * libbfd-in.h (_bfd_merge_section): New.
1469 (_bfd_write_merged_section): New.
1470 (_bfd_merged_section_offset): New.
1471 * libbfd.h: Rebuilt.
1472 * linker.c (_bfd_generic_link_output_symbols): Handle
1474 * aoutx.h (aout_link_write_symbols): Likewise.
1475 * pdp11.c (aout_link_write_symbols): Likewise.
1476 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1477 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1479 (elf_link_sec_merge_syms): New.
1480 (elf_link_input_bfd): Call _bfd_merged_section_offset
1481 and _bfd_write_merged_section.
1482 Handle discard_sec_merge.
1483 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1485 (struct bfd_elf_section_data): Likewise.
1486 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1487 SEC_STRINGS section flags and entsize from their ELF counterparts.
1488 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1489 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1490 from their BFD counterparts.
1491 * merge.c: New file.
1492 * Makefile.am: Add strtab.lo.
1493 * Makefile.in: Rebuilt.
1495 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
1497 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1498 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1500 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1502 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1503 endian MIPS ELF target.
1504 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1507 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1508 64bit big endian MIPS ELF target.
1509 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1510 endian MIPS ELF target.
1511 * configure: Regenerated.
1513 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1514 little endian targets.
1515 (mips_elf_sym_is_global): Handle traditional targets.
1517 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1518 64bit big endian MIPS ELF target.
1519 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1520 endian MIPS ELF target.
1522 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1523 and bfd_elf64_tradlittlemips_vec.
1525 2001-04-05 David Mosberger <davidm@hpl.hp.com>
1527 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1528 ordinary "progbits" section.
1530 2001-04-04 Alan Modra <alan@linuxcare.com.au>
1532 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1533 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1535 2001-04-03 David Mosberger <davidm@hpl.hp.com>
1537 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1539 2001-03-30 H.J. Lu <hjl@gnu.org>
1541 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1542 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1544 2001-03-26 H.J. Lu <hjl@gnu.org>
1546 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1547 if there are any relocations for generic ELF.
1548 (bfd_elf32_bfd_link_add_symbols): Defined to
1549 elf32_generic_link_add_symbols.
1550 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1551 if there are any relocations for generic ELF.
1552 (bfd_elf64_bfd_link_add_symbols): Defined to
1553 elf64_generic_link_add_symbols.
1555 2001-03-23 Nick Clifton <nickc@redhat.com>
1557 * Makefile.am (BUILD_CFILES): New variable: List of C source
1558 files created in build directory.
1559 (BUILD_HFILES): New variable: List of header files created in
1562 (po/POTFILES.in): Replace rule with empty entry.
1563 (po/SRC-POTFILES.in): New rule: Create a list of source files
1564 in the source directory.
1565 (po/BLD-POTFILES.in): New rule: Create a list of source files
1566 in the build directory.
1567 (MOSTLYCLEAN): Do not delete source files created in build
1569 * Makefile.in: Regenerate.
1570 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1572 * configure: Regenerate.
1574 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1576 Add .. to the search path when building bfd.pot.
1577 Delete POTFILES when performing distclean.
1578 Add comment describing why distclean is broken in maintainer mode.
1579 * po/POTFILES.in: Delete.
1580 * po/SRC-POTFILES.in: New file.
1581 * po/BLD-POTFILES.in: New file.
1582 * po/bfd.pot: Regenerate.
1584 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
1586 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1587 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1588 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1589 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1590 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1591 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1593 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1594 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1595 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1596 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1597 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1598 New HOWTO members for new relocs.
1599 (cris_reloc_map): Map new relocs.
1600 (ELF_DYNAMIC_INTERPRETER): Define.
1601 (PLT_ENTRY_SIZE): Define.
1602 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1603 elf_cris_pic_plt_entry): New, PLT templates.
1604 (struct elf_cris_pcrel_relocs_copied, struct
1605 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1606 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1607 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1608 positive values. Adjust PCREL relocs to be relative to location
1610 (cris_elf_relocate_section): Handle relocations to dynamic
1611 objects. Handle new relocations. Call error handler when seeing
1612 non-PIC relocation for read-only sections while generating shared
1614 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1616 (bfd_elf32_bfd_link_hash_table_create,
1617 elf_backend_adjust_dynamic_symbol,
1618 elf_backend_size_dynamic_sections,
1619 elf_backend_finish_dynamic_symbol,
1620 elf_backend_finish_dynamic_sections,
1621 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1622 elf_backend_hide_symbol, elf_backend_want_got_plt,
1623 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1624 elf_backend_got_header_size, elf_backend_plt_header_size):
1627 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1628 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1629 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1630 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1631 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1632 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1633 * bfd-in2.h, libbfd.h: Regenerate.
1635 2001-03-21 Diego Novillo <dnovillo@redhat.com>
1637 (_bfd_mips_elf_relocate_section): Give a better error message when
1638 a relocation is not recognized.
1640 2001-03-21 Alan Modra <alan@linuxcare.com.au>
1642 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1643 non-NULL before attempting to dereference.
1645 2001-03-20 H.J. Lu <hjl@gnu.org>
1647 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1648 * configure: Rebuild.
1650 2001-03-20 Andreas Schwab <schwab@suse.de>
1652 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1653 relocation value when resolving a reference from a debugging
1656 2001-03-16 Scott Thomason <SThomaso@hii.com>
1658 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1659 (xcoff64_swap_sym_out): Fix syntax errors.
1661 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
1663 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1665 2001-03-15 Alan Modra <alan@linuxcare.com.au>
1667 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1668 (hppa_link_hash_newfunc): Init it.
1669 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1670 section appears to be non-PIC.
1671 (final_link_relocate): Likewise.
1672 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1673 possible candidate function, and set pic_call for those that will
1674 only have a .plt entry for the PIC call stub.
1675 (hppa_handle_PIC_calls): Set maybe_pic_call.
1677 2001-03-12 DJ Delorie <dj@redhat.com>
1679 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1680 R_SH_DIR8WP* relocs if they're against external symbols, else
1681 they're just for relaxing. Validate the reloc values.
1683 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1685 * binary.c (bfd_external_binary_architecture): Declare.
1686 (binary_object_p): If bfd_external_binary_architecture is defined,
1687 set the architecture to this string.
1689 2001-03-11 Philip Blundell <philb@gnu.org>
1691 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1692 entries that could serve as a definition for a weak symbol.
1694 2001-03-08 Nick Clifton <nickc@redhat.com>
1696 * Most files: Update copyright notices using Perl script created
1697 by Kevin Buettner <kevinb@redhat.com>.
1699 2001-03-07 Nick Clifton <nickc@redhat.com>
1701 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1702 prior patch on ! defined OLD_ARM_ABI.
1704 2001-03-07 Andreas Jaeger <aj@suse.de>
1706 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1707 some relocation values.
1709 2001-03-06 Nick Clifton <nickc@redhat.com>
1711 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1712 of offset in BLX(1) instruction.
1713 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1714 offset in BLX(1) instruction.
1717 2001-03-06 Nick Clifton <nickc@redhat.com>
1719 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1720 BFD_RELOC_THUMB_PCREL_BLX.
1722 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1724 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1725 * bfd-in2.h: Regenerate.
1726 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1727 * ieee.c (ieee_write_processor): Set proper id for
1730 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1732 * configure.in: Add s390 target.
1733 * configure: Regenerate.
1735 2001-02-28 Andreas Jaeger <aj@suse.de>
1737 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1740 2001-02-28 Philip Blundell <pb@futuretv.com>
1742 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1743 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1745 2001-02-27 H.J. Lu <hjl@gnu.org>
1747 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1748 abfd->tdata.aout_data == NULL.
1750 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1752 * elf32-hppa.c: Correct field selector in stub comments.
1753 (clobber_millicode_symbols): Formatting fix.
1755 * configure.in: Bump version to 2.11.90.
1756 * configure: Regenerate.
1757 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1758 (CFILES): $SOURCE_CFILES + generated C files.
1759 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1761 * Makefile.in: Regenerate.
1762 * doc/Makefile.in: This too.
1764 2001-02-26 Timothy Wall <twall@cygnus.com>
1766 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1769 2001-02-26 Nick Clifton <nickc@redhat.com>
1771 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1772 up, replacing multiple if statements with a switch.
1773 (handle_COMDAT): New function.
1775 2001-02-26 H.J. Lu <hjl@gnu.org>
1777 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1778 a warning for section flags we do not handle instead of
1781 2001-02-26 Andreas Jaeger <aj@suse.de>
1783 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1785 2001-02-22 Timothy Wall <twall@cygnus.com>
1787 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1788 * configure.in: Add objects for elf64_ia64_aix vectors.
1789 * configure: Regenerated.
1790 * configure.host: Recognize ia64-*-aix*.
1791 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1792 for AIX. AIX5 requires most relocations to be dynamic (*all*
1793 binaries are somewhat similar to shared libraries).
1794 * targets.c: Add elf64_ia64_aix vectors.
1796 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1798 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1799 C8 said "1" instead of "8". Clarify error string for IMM22:
1800 "signed integer" instead of just "integer".
1802 2001-02-20 Andreas Jaeger <aj@suse.de>
1804 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1805 PLT entries that could serve as a definition for a weak symbol.
1807 2001-02-19 Jakub Jelinek <jakub@redhat.com>
1809 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1810 entries that could serve as a definition for a weak symbol.
1811 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1813 2001-02-18 David O'Brien <obrien@FreeBSD>
1815 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1816 FreeBSD/i386-CURRENT differently until I can figure out the needed
1818 * configure: Regenerate.
1819 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1820 FreeBSD/PowerPC, and FreeBSD/sparc64.
1822 2001-02-18 lars brinkhoff <lars@nocrew.org>
1824 * Makefile.am: Add PDP-11 a.out target.
1825 * config.bfd: Likewise.
1826 * configure.in: Likewise.
1827 * targets.c: Likewise.
1828 * archures.c: Likewise.
1829 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1830 * libbfd.h: Add PDP-11 relocations.
1831 * reloc.c: Likewise.
1832 * cpu-pdp11.c: New file.
1833 * pdp11.c: New file.
1835 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1836 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1837 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1838 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1839 (GET_MAGIC): New macro.
1840 (PUT_MAGIC): Likewise.
1841 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1843 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1845 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1846 multiarch needs it).
1848 2001-02-18 H.J. Lu <hjl@gnu.org>
1850 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1853 2001-02-18 Kazu Hirata <kazu@hxi.com>
1855 * vms-misc.c: Fix formatting.
1857 2001-02-16 Kazu Hirata <kazu@hxi.com>
1859 * vms.c: Fix formatting.
1861 2001-02-14 H.J. Lu <hjl@gnu.org>
1863 * elf.c (elf_find_function): New function.
1864 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1865 the file name and function name.
1867 2001-02-14 Nick Clifton <nickc@redhat.com>
1869 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1872 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1873 (BFD64_BACKENDS): Add pepigen.c
1874 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1876 * Makefile.in: Regenerate.
1877 * configure: Regenerate.
1878 * po/POTFILES.in: Regenerate.
1879 * po/bfd.pot: Regenerate.
1881 2001-02-14 H.J. Lu <hjl@gnu.org>
1883 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1884 force_minimum_alignment.
1886 2001-02-14 Bo Thorsen <bo@suse.de>
1888 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1889 (elf64_86_64_size_info): Struct added to fix a problem
1890 with the hashtable string entries.
1891 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1892 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1893 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1894 remove the FIXME for this.
1895 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1896 section. Also removed the FIXME for it.
1897 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1898 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1899 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1901 2001-02-13 Richard Henderson <rth@redhat.com>
1903 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1904 and not user provided.
1906 2001-02-13 Kazu Hirata <kazu@hxi.com>
1908 * vms.c (vms_print_symbol): Remove unreachable code.
1910 * rs6000-core.c: Fix formatting.
1912 2001-02-13 David Mosberger <davidm@hpl.hp.com>
1914 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1915 as _bfd_XXi_only_swap_filehdr_out.
1916 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1917 pe->force_minimum_alignment to TRUE.
1918 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1919 PEI_TARGET_SUBSYSTEM.
1920 (pe_print_private_bfd_data): Call
1921 _bfd_XX_print_private_bfd_data_common() instead of
1922 _bfd_pe_print_private_bfd_data_common().
1923 (pe_bfd_copy_private_bfd_data): Call
1924 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1925 _bfd_pe_bfd_copy_private_bfd_data_common().
1926 (coff_bfd_copy_private_section_data): Define as
1927 _bfd_XX_bfd_copy_private_section_data instead of
1928 _bfd_pe_bfd_copy_private_section_data.
1929 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1930 of a _bfd_pe_get_symbol_info.
1934 * peXXigen.c: Renamed from peigen.c.
1935 (COFF_WITH_XX): Define this macro (will get expanded into
1936 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1937 compiled as peigen.c or pepigen.c.
1938 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1939 define the canonical PEP structures and definitions.
1940 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1941 effect, enforce minimum file and section alignments. If
1942 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1943 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1944 so, by default, this is a no-op).
1946 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1947 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1948 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1949 _bfd_pefoo if it's not defined. Use these macros to define
1952 * libcoff.h (pe_tdata): Add members target_subsystem and
1953 force_minimum_alignment.
1955 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1957 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1959 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1962 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1963 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1966 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1967 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1968 (peigen.c): Add rule to generate from peXXigen.c.
1970 (pepigen.lo): List dependencies for pepigen.lo.
1972 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1974 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1975 $global$ referenced but not defined, set its value here.
1977 2001-02-09 Bo Thorsen <bo@suse.de>
1979 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1981 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1983 (elf64_x86_64_relocate_section): Fix formatting.
1984 (elf64_x86_64_relocate_section): Fix addend for relocation of
1985 R_X86_64_(8|16|32|PC8|PC16|PC32).
1987 2001-02-12 Jan Hubicka <jh@suse.cz>
1989 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1991 2001-02-11 H.J. Lu <hjl@gnu.org>
1993 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1996 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1998 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1999 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
2000 relocations against dynsym symbols.
2002 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
2003 the R_MIPS_26 relocation.
2004 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
2005 the R_MIPS_26 relocation.
2006 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
2008 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
2009 the R_MIPS_26 relocation.
2010 (mips_elf64_howto_table_rela): Likewise.
2012 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
2013 member to mark symbols that have non-CALL relocations against
2015 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
2016 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
2018 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
2019 non-CALL relocation against it is encountered.
2020 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
2021 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
2022 no_fn_stub is not set.
2024 * elf32-mips.c (mips_elf_output_extsym): Get the output section
2025 information from the real symbol for indirect ones.
2026 Check no_fn_stub to find out if a symbol has a function stub
2029 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2031 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
2032 * Makefile.in: Regenerate.
2034 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2036 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
2037 true if section name is an unwind table section name.
2038 (elfNN_ia64_additional_program_headers): Count each unwind section
2040 (elfNN_ia64_modify_segment_map): Install one unwind program header
2041 for each unwind separate section. Note: normally the linker
2042 script merges the unwind sections that go into a single segment,
2043 so this still generates at most one unwind program header per
2046 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2047 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2048 (elfNN_ia64_fake_sections): Mark sections with names that start
2049 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2052 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2053 Use it to make sh_info in unwind section point to the text section
2056 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2058 * Makefile.am: Add linux target for S/390.
2059 * archures.c: Likewise.
2060 * bfd-in2.h: Likewise.
2061 * config.bfd: Likewise.
2062 * configure.in: Likewise.
2064 * libbfd.h: Likewise.
2065 * targets.c: Likewise.
2066 * cpu-s390.c: New file.
2067 * elf32-s390.c: New file.
2068 * elf64-s390.c: New file.
2070 2001-02-09 Nick Clifton <nickc@redhat.com>
2072 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2073 ImageBase. This has already been done by coff_swap_hdr_in.
2075 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2077 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2079 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2081 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2082 (sparc64_elf_relocate_section): Likewise.
2084 2001-02-09 Mark Kettenis <kettenis@gnu.org>
2086 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2087 similar to R_SPARC_32.
2088 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2090 2001-02-08 H.J. Lu <hjl@gnu.org>
2092 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2093 relocation entries for weak definitions when building DSO with
2096 2001-02-08 Richard Henderson <rth@redhat.com>
2098 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2099 before visibility. Locally defined protected symbols are not
2102 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2104 * config.bfd: Enable coff64 for rs6000-*. Patch from
2105 <hzoli@austin.ibm.com>.
2107 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
2109 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2110 found, do not attempt to find dwarf2 info before returning.
2112 2001-02-07 Jakub Jelinek <jakub@redhat.com>
2114 * elflink.h (is_global_symbol_definition): Rename to
2115 is_global_data_symbol_definition and have it reject function
2117 (elf_link_is_defined_archive_symbol): Use renamed function.
2119 2001-02-07 Todd Vierling <tv@wasabisystems.com>
2121 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2122 * libbfd.h (bfd_target_vector): Likewise.
2123 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
2124 make static; create pointer reference named bfd_target_vector.
2125 (_bfd_target_vector_entries): Calculate this based on the array
2126 typed _bfd_target_vector.
2128 2001-02-06 H.J. Lu <hjl@gnu.org>
2130 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2131 internal symbols are not dynamic.
2132 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2134 2001-02-06 Nick Clifton <nickc@redhat.com>
2136 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2137 that it will not be pulled into the list of files that make up
2139 * Makefile.in: Regenerate.
2140 * po/bfd.pot: Regenerate.
2142 2001-02-06 H.J. Lu <hjl@gnu.org>
2144 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
2146 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2147 external_PEI_IMAGE_hdr.
2149 2001-02-06 Kazu Hirata <kazu@hxi.com>
2151 * elf-m10200.c: Fix formatting.
2153 2001-02-04 Nick Clifton <nickc@redhat.com>
2155 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2156 rel, it will be handled later on.
2158 2001-02-02 Fred Fish <fnf@ninemoons.com>
2160 * Makefile.in: Fix typo.
2162 2001-02-01 Kazu Hirata <kazu@hxi.com>
2164 * elf-m10300.c: Fix formatting.
2166 2001-01-30 Alan Modra <alan@linuxcare.com.au>
2168 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2169 (elf_backend_get_symbol_type): Define.
2170 (elf64_hppa_object_p): Set architecture and machine from elf
2173 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
2175 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2178 2001-01-26 Richard Henderson <rth@redhat.com>
2180 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2181 for non-default visibility.
2182 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2183 delete ugly macro and replace with pretty function.
2185 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
2187 * coff-go32.c: Update copyright.
2188 * coff-stgo32.c: Likewise.
2189 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2190 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2191 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2192 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2194 2001-01-25 Kazu Hirata <kazu@hxi.com>
2196 * bfd-in2.h: Rebuild.
2197 * libbfd.h: Likewise.
2199 2001-01-23 H.J. Lu <hjl@gnu.org>
2201 * bfd-in2.h: Rebuild.
2203 2001-01-23 H.J. Lu <hjl@gnu.org>
2205 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2206 is NULL or PRIV(vms_rec) is outside of the buffer.
2208 2001-01-23 Kazu Hirata <kazu@hxi.com>
2210 * coff64-rs6000.c: Fix formatting.
2211 * coff-arm.c: Likewise.
2212 * coffgen.c: Likewise.
2213 * cofflink.c: Likewise.
2214 * coff-mcore.c: Likewise.
2215 * coff-mips.c: Likewise.
2216 * coff-pmac.c: Likewise.
2217 * coff-ppc.c: Likewise.
2218 * coff-rs6000.c: Likewise.
2219 * elf32.c: Likewise.
2220 * elf32-fr30.c: Likewise.
2221 * elf32-i370.c: Likewise.
2222 * elf32-i860.c: Likewise.
2223 * elf32-m32r.c: Likewise.
2224 * elf32-m68k.c: Likewise.
2225 * elf32-mcore.c: Likewise.
2226 * elf32-ppc.c: Likewise.
2227 * elf32-sh.c: Likewise.
2228 * elf32-v850.c: Likewise.
2229 * elf64-alpha.c: Likewise.
2230 * elf64-sparc.c: Likewise.
2231 * elflink.c: Likewise.
2232 * elflink.h: Likewise.
2233 * elf-m10200.c: Likewise.
2234 * elf-m10300.c: Likewise.
2235 * elfxx-ia64.c: Likewise.
2237 * aoutx.h: Fix formatting.
2239 * bfd-in2.h: Likewise.
2240 * bfd-in.h: Likewise.
2241 * cpu-i386.c: Likewise.
2242 * cpu-m68hc11.c: Likewise.
2243 * dwarf2.c: Likewise.
2244 * elf64-x86-64.c: Likewise.
2245 * format.c: Likewise.
2246 * freebsd.h: Likewise.
2248 * hp300hpux.c: Likewise.
2249 * hppabsd-core.c: Likewise.
2250 * hpux-core.c: Likewise.
2252 2001-01-22 Bo Thorsen <bo@suse.de>
2254 * elf64-x86-64.c: Added PIC support for X86-64.
2255 (elf64_x86_64_link_hash_newfunc): Function added.
2256 (elf64_x86_64_link_hash_table_create): Likewise.
2257 (elf64_x86_64_check_relocs): Likewise.
2258 (elf64_x86_64_gc_mark_hook): Likewise.
2259 (elf64_x86_64_gc_sweep_hook): Likewise.
2260 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2261 (elf64_x86_64_size_dynamic_sections): Likewise.
2262 (elf64_x86_64_discard_copies): Likewise.
2263 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2264 (elf64_x86_64_finish_dynamic_sections): Likewise.
2265 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2267 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2269 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2270 * Makefile.in: Regenerate.
2272 2001-01-21 Kazu Hirata <kazu@hxi.com>
2274 * coff-a29k.c: Fix formatting.
2276 2001-01-19 H.J. Lu <hjl@gnu.org>
2278 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2279 relocation section names.
2280 (elf_i386_relocate_section): Report files with bad relocation
2281 section names and return false.
2283 2001-01-17 Bo Thorsen <bo@suse.de>
2285 * targets.c: Alphabetize list of xvecs.
2287 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2289 * config.bfd: Add linux target variant for elfxx-hppa.
2290 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2291 bfd_elf64_hppa_linux_vec.
2292 * configure: Regenerate.
2293 * elf64-hppa.c: Include elf64-target.h again to support linux
2295 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2296 * elf32-hppa.c: Include elf32-target.h again to support linux
2298 (elf32_hppa_post_process_headers): New function.
2299 (elf_backend_post_process_headers): Define.
2300 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2301 bfd_elf32_hppa_linux_vec.
2303 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2304 and data_segment_base fields.
2305 (elf32_hppa_link_hash_table_create ): Init them.
2306 (elf32_hppa_check_relocs): Update comments.
2307 (hppa_record_segment_addr): New function.
2308 (elf32_hppa_relocate_section): Call it.
2309 (final_link_relocate): Handle R_PARISC_SEGREL32.
2310 (elf32_hppa_final_link): New function.
2311 (bfd_elf32_bfd_final_link): Define to call it.
2312 (hppa_unwind_entry_compare): New function.
2313 * cache.c (bfd_open_file): Create files in write+read mode.
2315 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2316 SEGREL32 and numerous other relocs. Change duplicate
2317 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2319 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2322 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2323 .plt entries for DT_INIT and DT_FINI.
2324 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2325 DT_INIT and DT_FINI.
2327 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2328 offsets for stub .plt access if wide mode. Check offset in range.
2330 2001-01-13 Nick Clifton <nickc@redhat.com>
2332 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2335 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2338 2001-01-12 Alan Modra <alan@linuxcare.com.au>
2340 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2341 * configure: Regenerate.
2343 2001-01-11 Peter Targett <peter.targett@arccores.com>
2345 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2346 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2347 * cpu-arc.c (arch_info_struct): Add entries for variants.
2348 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2349 (arc_get_mach) Don't assume machine names prefixed arc- before
2351 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2353 (arc_elf_final_write_processing) Likewise.
2354 (ELF_MACHINE_CODE) Use EM_ARC.
2356 2001-01-10 Nick Clifton <nickc@redhat.com>
2358 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2360 2001-01-07 Philip Blundell <philb@gnu.org>
2362 * README: Replace `bug-gnu-utils@gnu.org' with
2363 `bug-binutils@gnu.org'.
2365 2001-01-04 Kazu Hirata <kazu@hxi.com>
2367 * som.c: Fix formatting.
2369 2001-01-03 Kazu Hirata <kazu@hxi.com>
2371 * ecoffswap.h: Fix formatting.
2372 * elf-bfd.h: Likewise.
2373 * elfarm-nabi.c: Likewise.
2374 * elfarm-oabi.c: Likewise.
2375 * elfcode.h: Likewise.
2376 * elfcore.h: Likewise.
2377 * elflink.c: Likewise.
2378 * elflink.h: Likewise.
2379 * elfxx-ia64.c: Likewise.
2380 * elfxx-target.h: Likewise.
2381 * libbfd.c: Likewise
2382 * linker.c: Likewise.
2383 * lynx-core.c: Likewise.
2385 2001-01-02 Kazu Hirata <kazu@hxi.com>
2387 * pc532-mach.c: Fix formatting.
2388 * pe-arm.c: Likewise.
2389 * pe-i386.c: Likewise.
2390 * pe-mips.c: Likewise.
2391 * pe-ppc.c: Likewise.
2392 * pe-sh.c: Likewise.
2393 * pei-mips.c: Likewise.
2394 * pei-sh.c: Likewise.
2395 * peicode.h: Likewise.
2396 * ppcboot.c: Likewise.
2397 * ptrace-core.c: Likewise.
2399 2001-01-01 Kazu Hirata <kazu@hxi.com>
2401 * reloc.c: Fix formatting.
2402 * riscix.c: Likewise.
2403 * rs6000-core.c: Likewise.
2404 * xcoff-target.h: Likewise.
2406 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2408 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2409 error, by calling bfd_default_set_arch_mach with incoming
2412 2000-12-26 Kazu Hirata <kazu@hxi.com>
2414 * vaxnetbsd.c: Fix formatting.
2415 * versados.c: Likewise.
2416 * vms-gsd.c: Likewise.
2417 * vms-hdr.c: Likewise.
2418 * vms-misc.c: Likewise.
2420 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
2422 * archive.c (coff_write_armap): Don't write more than symbol_count
2423 `archive_member_file_ptr's.
2425 2000-12-25 Kazu Hirata <kazu@hxi.com>
2427 * vms-tir.c: Fix formatting.
2429 2000-12-23 Kazu Hirata <kazu@hxi.com>
2431 * vms.c: Fix formatting.
2434 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
2436 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2438 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2440 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2443 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2445 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2447 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
2449 * libbfd.c (bfd_get_bits): Added
2450 (bfd_put_bits): Likewise
2451 * bfd-in.h: Declared the above.
2452 * bfd-in2.h: Regenerated.
2454 2000-12-20 Kazu Hirata <kazu@hxi.com>
2456 * targets.c: Fix formatting.
2457 * tekhex.c: Likewise.
2458 * trad-core.c: Likewise.
2460 2000-12-19 Kazu Hirata <kazu@hxi.com>
2462 * sco5-core.c: Fix formatting.
2463 * section.c: Likewise.
2464 * sparclinux.c: Likewise.
2465 * sparclynx.c: Likewise.
2466 * sparcnetbsd.c: Likewise.
2468 * stabs.c: Likewise.
2469 * stab-syms.c: Likewise.
2470 * sunos.c: Likewise.
2472 * sysdep.h: Likewise.
2474 2000-12-18 Nick Clifton <nickc@redhat.com>
2476 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2478 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2479 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2481 2000-12-18 Nick Clifton <nickc@redhat.com>
2483 * vms-misc.c (_bfd_vms_get_record): Add default case to
2486 2000-12-15 Miloslav Trmac <mitr@volny.cz>
2488 * elfcore.h (elf_core_file_p): Move to the start of the program
2489 headers before attempting to read them.
2491 2000-12-14 Kazu Hirata <kazu@hxi.com>
2493 * peigen.c: Fix formatting.
2497 2000-12-13 Kazu Hirata <kazu@hxi.com>
2499 * peigen.c: Fix formatting.
2501 2000-12-12 Jim Wilson <wilson@redhat.com>
2503 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2505 2000-12-08 Mark Salter <msalter@redhat.com>
2507 * binary.c (binary_set_section_contents): Ignore sections
2510 2000-12-12 Kazu Hirata <kazu@hxi.com>
2512 * m68klinux.c: Fix formatting.
2513 * m68knetbsd.c: Likewise.
2514 * mipsbsd.c: Likewise.
2515 * netbsd-core.c: Likewise.
2516 * netbsd.h: Likewise.
2517 * newsos3.c: Likewise.
2518 * nlm32-alpha.c: Likewise.
2519 * nlm32-i386.c: Likewise.
2520 * nlm32-ppc.c: Likewise.
2521 * nlm32-sparc.c: Likewise.
2522 * nlmcode.h: Likewise.
2523 * nlmswap.h: Likewise.
2524 * nlm-target.h: Likewise.
2525 * ns32knetbsd.c: Likewise.
2527 2000-12-10 Fred Fish <fnf@be.com>
2529 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2530 symbols in shared objects if allow_shlib_undefined is true.
2532 2000-12-12 Nick Clifton <nickc@redhat.com>
2534 * cpu-sh.c: Fix formattng.
2535 * elf.c: Fix formattng.
2536 * elf32-mips.c: Fix formattng.
2537 * elf32-sh.c: Fix formattng.
2538 * elf64-alpha.c: Fix formattng.
2540 2000-12-09 Nick Clifton <nickc@redhat.com>
2542 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2543 dwarf2_find_line_info as last parameter to invocation of
2544 _bfd_dwarf2_find_nearest_line.
2545 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2546 dwarf2_find_line_info as last parameter to invocation of
2547 _bfd_dwarf2_find_nearest_line.
2549 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2551 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2552 (BFD_LIBS): ...to here.
2553 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2554 (BFD_LIBS_CFILES): ...to here.
2555 * Makefile.in: Regenerate.
2556 * configure.in: Remove dwarf.lo from the elf shell variable.
2557 * configure: Regenerate.
2558 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2559 * libcoff.h: Regenerate.
2560 * coffgen.c (coff_find_nearest_line): Call
2561 _bfd_dwarf2_find_nearest_line.
2562 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2564 (read_abbrevs): Likewise
2565 (decode_line_info): Likewise.
2566 (parse_comp_unit): Likewise.
2567 (comp_unit_find_nearest_line): Likewise.
2568 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2569 * libbfd.h: Regenerate.
2570 * elf.c (_bfd_elf_find_nearest_line): Update call.
2571 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2572 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2573 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2574 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2575 (styp_to_sec_flags): Handle DWARF2 sections.
2576 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2577 to _bfd_find_nearest_line.
2578 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2579 call to _bfd_find_nearest_line.
2581 2000-12-08 Kazu Hirata <kazu@hxi.com>
2583 * coffgen.c: Fix formatting.
2584 * elf-m10300.c: Likewise.
2585 * elf32-i386.c: Likewise.
2586 * elf32-i960.c: Likewise.
2587 * elf32-m68k.c: Likewise.
2588 * elf32-mcore.c: Likewise.
2589 * elf32-ppc.c: Likewise.
2590 * elf32-sh.c: Likewise.
2591 * elf32-sparc.c: Likewise.
2592 * elf32-v850.c: Likewise.
2593 * elf64-alpha.c: Likewise.
2594 * elf64-hppa.c: Likewise.
2595 * elf64-mips.c: Likewise.
2596 * elf64-sparc.c: Likewise.
2598 2000-12-07 Kazu Hirata <kazu@hxi.com>
2600 * elf32-ppc.c: Fix formatting.
2601 * elf64-x86-64.c: Likewise.
2603 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2605 From Ralf Baechle <ralf@gnu.org>
2607 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2608 BFDs containing no sections or empty .text, .data or .bss sections
2609 to be merged, regardless of their flags.
2611 2000-12-06 Kazu Hirata <kazu@hxi.com>
2613 * elf32-m32r.c: Fix formatting.
2614 * elf32-m68hc11.c: Likewise.
2615 * elf32-m68hc12.c: Likewise.
2616 * elf32-m68k.c: Likewise.
2617 * elf32-mcore.c: Likewise.
2618 * elf32-pj.c: Likewise.
2619 * elf32-ppc.c: Likewise.
2621 2000-12-05 Kazu Hirata <kazu@hxi.com>
2623 * elf32-fr30.c: Fix formatting.
2624 * elf32-hppa.c: Likewise.
2625 * elf32-i370.c: Likewise.
2626 * elf32-i386.c: Likewise.
2627 * elf32-i860.c: Likewise.
2628 * elf32-i960.c: Likewise.
2630 2000-12-03 Kazu Hirata <kazu@hxi.com>
2632 * elf32-arm.h: Fix formatting.
2633 * elf32-avr.c: Likewise.
2634 * elf32-cris.c: Likewise.
2635 * elf32-d10v.c: Likewise.
2636 * elf32-d30v.c: Likewise.
2637 * elf-hppa.h: Likewise.
2638 * elf-m10200.c: Likewise.
2639 * elf-m10300.c: Likewise.
2641 2000-12-01 Chris Demetriou <cgd@sibyte.com>
2643 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2644 bfd_mach_mips32_4k. Update FIXME comment.
2645 * archures.c (bfd_mach_mips32): New constant.
2646 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2647 the latter, renumber it.
2648 * bfd-in2.h (bfd_mach_mips32): New constant.
2649 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2650 the latter, renumber it.
2651 * cpu-mips.c (I_mips32): New constant.
2652 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2653 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2654 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2655 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2656 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2657 with E_MIPS_MACH_MIPS32_4K.
2658 (_bfd_mips_elf_final_write_processing): Replace
2659 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2660 bfd_mach_mips32 case.
2661 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2662 comparison with support for MIPS32.
2663 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2666 * aoutx.h (NAME(aout,machine_type)): Add cases for
2667 bfd_mach_mips5 and bfd_mach_mips64.
2668 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2669 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2670 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2671 (arch_info_struct): Add entries for bfd_mach_mips5 and
2673 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2674 _bfd_mips_elf_print_private_bfd_data): Add cases for
2675 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2676 (_bfd_mips_elf_final_write_processing): Add cases for
2677 bfd_mach_mips5 and bfd_mach_mips64.
2679 * aoutx.h (NAME(aout,machine_type)): Add a
2680 bfd_mach_mips_sb1 case.
2681 * archures.c (bfd_mach_mips_sb1): New constant.
2682 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2683 * cpu-mips.c (I_sb1): New constant.
2684 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2685 * elf32-mips.c (elf_mips_mach): Add case for
2687 (_bfd_mips_elf_final_write_processing): Add case for
2690 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2692 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2693 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2694 (sparc*-*-rtems*): Switched from a.out to ELF.
2696 2000-11-30 Jan Hubicka <jh@suse.cz>
2698 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2699 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2700 (elf64-x86-64.lo): Add dependencies.
2701 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2702 bfd_mach_x86_64_intel_syntax.
2703 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2704 * config.bfd (x86_64): Add.
2705 * configure.in: Add support for bfd_elf64_x86_64_vec.
2706 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2707 (bfd_i386_arch, i8086_ar): Link in.
2708 * elf64-x86-64.c: New file.
2709 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2710 * targets.c (bfd_elf64_x86_64_vec): Add.
2711 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2713 2000-11-30 Kazu Hirata <kazu@hxi.com>
2715 * xcofflink.c: Fix formatting.
2717 2000-11-28 Kazu Hirata <kazu@hxi.com>
2719 * aoutx.h: Fix formatting.
2720 * bfd-in.h: Likewise.
2721 * bfd-in2.h: Likewise.
2722 * cache.c: Likewise.
2723 * cisco-core.c: Likewise.
2724 * coff64-rs6000.c: Likewise.
2725 * coffcode.h: Likewise.
2726 * coffswap.h: Likewise.
2727 * corefile.c: Likewise.
2728 * elf32-mips.c: Likewise.
2730 2000-11-27 Kazu Hirata <kazu@hxi.com>
2732 * aout-adobe.c: Fix formatting.
2733 * coff64-rs6000.c: Likewise.
2734 * coffgen.c: Likewise.
2735 * cofflink.c: Likewise.
2737 2000-11-27 Philip Blundell <pb@futuretv.com>
2739 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2740 (obj_coff_strings_written): New accessor macro for above.
2741 * libcoff.h: Regenerate.
2742 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2744 * coffcode.h (coff_write_object_contents): No need to write out
2745 the string table if it's already been done.
2747 2000-11-22 Philip Blundell <pb@futuretv.com>
2749 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2750 weak undefined symbols.
2752 2000-11-24 Nick Clifton <nickc@redhat.com>
2754 * archures.c (bfd_mach_arm_5TE): Define.
2755 (bfd_mach_arm+XScale): Define.
2756 * bfd-in2.h: Regenerate.
2758 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2759 BFD_RELOC_ARM_PCREL_BLX.
2761 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2762 XScale machine numbers.
2764 * config.bfd (xscale-elf): Add target.
2765 (xscale-coff): Add target.
2767 * cpu-arm.c: Add xscale machine name.
2768 Add v5t, v5te and XScale machine numbers.
2770 2000-11-23 Kazu Hirata <kazu@hxi.com>
2772 * aix386-core.c: Fix formatting.
2774 2000-11-22 Jim Wilson <wilson@redhat.com>
2776 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2777 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2778 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2779 (ins_imms_scaled): Initialize sign_bit at function entry.
2780 (elf64_ia64_operands): Add missing initializers.
2781 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2782 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2783 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2784 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2785 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2787 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2788 and free_extsyms at function entry.
2789 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2790 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2791 (get_got): Delete unused local srel.
2792 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2793 (elfNN_ia64_relocate_section): Delete unused local dynindx.
2795 2000-11-21 Kazu Hirata <kazu@hxi.com>
2797 * coff-a29k.c: Fix formatting.
2798 * coff-h8500.c: Likewise.
2799 * coff-i960.c: Likewise.
2800 * coff-ppc.c: Likewise.
2801 * coff-rs6000.c: Likewise.
2802 * coff-stgo32.c: Likewise.
2803 * coff-tic54x.c: Likewise.
2804 * coff-w65.c: Likewise.
2805 * cpu-h8500.c: Likewise.
2806 * cpu-hppa.c: Likewise.
2807 * cpu-ns32k.c: Likewise.
2808 * ecoff.c: Likewise.
2809 * ecofflink.c: Likewise.
2811 2000-11-21 Nick Clifton <nickc@redhat.com>
2813 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2814 remove possibility of infinite loop.
2816 2000-11-20 Kazu Hirata <kazu@hxi.com>
2818 * aix386-core.c: Fix formatting.
2819 * aout-adobe.c: Likewise.
2820 * aout-arm.c: Likewise.
2821 * aout-encap.c: Likewise.
2822 * aout-ns32k.c: Likewise.
2823 * aout-target.h: Likewise.
2824 * aout-tic30.c: Likewise.
2825 * aoutf1.h: Likewise.
2826 * aoutx.h: Likewise.
2827 * archive.c: Likewise.
2828 * bfd-in.h: Likewise.
2829 * bfd-in2.h: Likewise.
2833 2000-11-17 H.J. Lu <hjl@gnu.org>
2835 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2836 pltoff entries for DT_INIT and DT_FINI.
2837 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2838 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2841 2000-11-16 Richard Henderson <rth@redhat.com>
2843 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2844 (allocate_dynrel_entries): Likewise.
2845 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2846 (set_pltoff_entry): Likewise.
2847 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2848 (elfNN_ia64_reloc_type_lookup): Likewise.
2849 (elfNN_ia64_install_value): Likewise.
2850 (elfNN_ia64_relocate_section): Likewise.
2851 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2852 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2854 2000-11-16 Kazu Hirata <kazu@hxi.com>
2856 * cpu-a29k.c: Fix formatting.
2857 * cpu-alpha.c: Likewise.
2858 * cpu-arm.c: Likewise.
2859 * cpu-avr.c: Likewise.
2860 * cpu-d10v.c: Likewise.
2861 * cpu-h8500.c: Likewise.
2862 * cpu-hppa.c: Likewise.
2863 * cpu-i370.c: Likewise.
2864 * cpu-i386.c: Likewise.
2865 * cpu-i960.c: Likewise.
2866 * cpu-ia64-opc.c: Likewise.
2867 * cpu-ia64.c: Likewise.
2868 * cpu-m32r.c: Likewise.
2869 * cpu-m68hc11.c: Likewise.
2870 * cpu-m68hc12.c: Likewise.
2871 * cpu-m68k.c: Likewise.
2872 * cpu-m88k.c: Likewise.
2873 * cpu-mips.c: Likewise.
2874 * cpu-ns32k.c: Likewise.
2875 * cpu-pj.c: Likewise.
2876 * cpu-powerpc.c: Likewise.
2877 * cpu-sh.c: Likewise.
2878 * cpu-sparc.c: Likewise.
2879 * cpu-tic54x.c: Likewise.
2880 * cpu-v850.c: Likewise.
2881 * cpu-vax.c: Likewise.
2882 * cpu-w65.c: Likewise.
2883 * cpu-we32k.c: Likewise.
2884 * cpu-z8k.c: Likewise.
2885 * dwarf1.c: Likewise.
2886 * dwarf2.c: Likewise.
2888 2000-11-15 Kazu Hirata <kazu@hxi.com>
2890 * coff-arm.c: Fix formatting.
2891 * coff-ppc.c: Likewise.
2892 * coff-rs6000.c: Likewise.
2893 * coff-sh.c: Likewise.
2894 * coff-sparc.c: Likewise.
2895 * coff-tic30.c: Likewise.
2896 * coff-tic54x.c: Likewise.
2897 * coff-tic80.c: Likewise.
2898 * coff-w65.c: Likewise.
2899 * coff-we32k.c: Likewise.
2900 * coff-z8k.c: Likewise.
2902 2000-11-15 Richard Henderson <rth@redhat.com>
2904 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2905 section with the same ALLOC|LOAD flags as the source section.
2907 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2909 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2910 by STO_ALPHA constants.
2912 2000-11-14 Kazu Hirata <kazu@hxi.com>
2914 * coff-pmac.c: Fix formatting.
2915 * coff-ppc.c: Likewise.
2917 2000-11-13 H.J. Lu <hjl@gnu.org>
2919 * elflink.h (elf_link_add_object_symbols): Also add indirect
2920 symbols for common symbols with the default version.
2922 2000-11-09 Philip Blundell <pb@futuretv.com>
2924 * section.c (STD_SECTION): Set gc_mark flag.
2926 2000-11-11 Kazu Hirata <kazu@hxi.com>
2928 * coff-i960.c: Likewise.
2929 * coff-m68k.c: Likewise.
2930 * coff-m88k.c: Likewise.
2931 * coff-mcore.c: Likewise.
2932 * coff-mips.c: Likewise.
2934 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2936 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2938 2000-11-10 Kazu Hirata <kazu@hxi.com>
2940 * coff-h8300.c: Fix formatting.
2941 * coff-h8500.c: Likewise.
2942 * coff-i386.c: Likewise.
2943 * coff-i860.c: Likewise.
2944 * coff-i960.c: Likewise.
2945 * coff-ia64.c: Likewise.
2947 2000-11-09 Kazu Hirata <kazu@hxi.com>
2949 * archive.c: Fix formatting.
2950 * archures.c: Likewise.
2952 2000-11-07 Richard Henderson <rth@redhat.com>
2954 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2955 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2956 * section.c (bfd_set_section_contents): Call memcpy if
2957 section->contents set and location not equal to contents plus offset.
2959 2000-11-08 Kazu Hirata <kazu@hxi.com>
2961 * bfd-in.h: Fix formatting.
2962 * bfd-in2.h: Likewise.
2964 * binary.c: Likewise.
2966 * coff-a29k.c: Likewise.
2967 * coff-alpha.c: Likewise.
2968 * coff-apollo.c: Likewise.
2969 * coff-aux.c: Likewise.
2971 2000-11-07 Kazu Hirata <kazu@hxi.com>
2973 * aix386-core.c: Fix formatting.
2974 * aoutf1.h: Likewise.
2975 * aoutx.h: Likewise.
2976 * archures.c: Likewise.
2977 * armnetbsd.c: Likewise.
2979 2000-11-07 Alan Modra <alan@linuxcare.com.au>
2981 * coff-h8300.c (special): Adjust reloc address.
2983 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2985 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2986 to differentiate elf32 and elf64 on ia64.
2987 * bfd-in2.h: Regenerate.
2988 * config.bfd: Add target for "ia64*-*-hpux*".
2989 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2990 * configure: Regenerate.
2991 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2992 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2994 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2995 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2996 * Makefile.in: Regnerate.
2997 * elf64-ia64.c: Deleted.
2998 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
3000 2000-11-06 Kazu Hirata <kazu@hxi.com>
3002 * aout-adobe.c: Fix formatting.
3003 * aout-arm.c: Likewise.
3004 * aout-cris.c: Likewise.
3005 * aout-encap.c: Likewise.
3006 * aout-ns32k.c: Likewise.
3007 * aout-target.h: Likewise.
3008 * aout-tic30.c: Likewise.
3010 2000-11-05 Philip Blundell <philb@gnu.org>
3012 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
3013 BFDs containing no sections to be merged, regardless of their flags.
3015 2000-11-04 Philip Blundell <philb@gnu.org>
3017 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
3018 if a relocation for an undefined symbol also results in an
3021 2000-11-06 Christopher Faylor <cgf@cygnus.com>
3023 * config.bfd: Add support for Sun Chorus.
3025 2000-11-05 David O'Brien <obrien@FreeBSD.org>
3027 * configure.in: Recognize alpha-*-freebsd*.
3028 * configure: Regenerate.
3030 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
3032 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
3033 (Chunk): New global variable set by a parameter in objcopy.c.
3034 (S3Forced): New global variable set by a parameter in
3036 (srec_set_section_contents): If S3Forced is true, always generate
3038 (srec_write_section): Use 'Chunk' to limit maximum length of S
3041 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3043 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3044 * Makefile.in: Regenerate.
3045 * bfd-in2.h: Regenerate.
3046 * po/bfd.pot: Regenerate.
3048 2000-10-31 Philip Blundell <philb@gnu.org>
3050 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3051 EF_SOFT_FLOAT if it is defined.
3053 2000-10-27 Philip Blundell <philb@gnu.org>
3055 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3056 attempts to mix PIC code with non-PIC, just mark the output as
3057 being position dependent.
3058 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
3059 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
3060 all mismatches, not just the first one.
3062 2000-10-25 Chris Demetriou <cgd@sibyte.com>
3064 * ieee.c (ieee_archive_p): Plug one of many possible
3065 memory leaks in error handling.
3067 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3069 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3070 elf32_sparc_object_p, elf32_sparc_final_write_processing):
3072 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3073 sparc64_elf_object_p): Support v9b.
3074 * archures.c: Declare v8plusb and v9b machines.
3076 * cpu-sparc.c: Ditto.
3078 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3080 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3083 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3084 (SYMBOL_CALLS_LOCAL): New macro.
3085 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3086 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3087 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3088 (ppc_elf_relocate_section): Use flag variable to determine
3089 whether the relocation refers to a local symbol.
3090 Test whether a PLTREL24 reloc will produce a reloc by looking
3091 to see whether a PLT entry was made.
3093 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3095 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3096 entries that could serve as a definition for a weak symbol.
3098 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
3100 From Ralf Baechle <ralf@gnu.org>
3102 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3103 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
3104 against local symbols.
3105 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
3107 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3109 * section.c (struct sec): Add kept_section.
3110 (struct bfd_comdat_info): Remove sec, we can use above.
3111 (STD_SECTION): Add initializer.
3112 (bfd_make_section_anyway): Init here too.
3114 * bfd-in2.h: Regenerate.
3116 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
3118 (elf_link_input_bfd): Set all asection->symbol->value's here, and
3119 fudge values for discarded link-once section symbols.
3121 * elf64-hppa.c: Include alloca-conf.h
3123 2000-10-11 Alan Modra <alan@linuxcare.com.au>
3125 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3127 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3129 2000-10-10 Alan Modra <alan@linuxcare.com.au>
3131 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3133 2000-10-10 Tom Rix <trix@redhat.com>
3135 * section.c (bfd_make_section_anyway): Release newsect ptr when
3136 newsect->symbol fails to alloc. Use bfd_release instead of free.
3138 2000-10-09 Richard Henderson <rth@cygnus.com
3140 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3141 (elf64_ia64_unwind_entry_compare): New.
3142 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3144 2000-10-07 Alan Modra <alan@linuxcare.com.au>
3146 * elflink.h (size_dynamic_sections): Don't create various tags if
3147 .dynstr is excluded from the link. Don't set first dynsym entry
3148 if dynsymcount is zero.
3149 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3150 .dynsym excluded from the link. Don't try to write any dynamic
3151 sections excluded from the link.
3153 * elf.c (swap_out_syms): Handle global section symbols.
3155 2000-10-05 DJ Delorie <dj@redhat.com>
3157 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3158 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3159 (coff_write_relocs): write extended reloc count
3160 (coff_write_object_contents): account for extended relocs
3162 2000-10-05 Jim Wilson <wilson@cygnus.com>
3164 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3166 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3167 elf_backend_section_flags function.
3168 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3170 (elf64_ia64_section_flags): New function containing flag conversion
3172 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3173 * elfxx-target.h (elf_backend_section_flags): Define.
3174 (elfNN_bed): Initialize elf_backend_section_flags field.
3176 2000-10-02 Alan Modra <alan@linuxcare.com.au>
3178 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3179 _bfd_elf32_gc_record_vtable. Correct a comment.
3181 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
3183 From Ralf Baechle <ralf@gnu.org>
3185 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3186 produces binaries with got[1] = 0x80000001 to differenciate them
3187 for the dynamic linker from the broken binaries produced by old
3190 2000-09-30 Petr Sorfa <petrs@sco.com>
3192 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3193 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3194 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3195 * configure: Regenerate.
3197 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
3199 Define two bfd_targets for absence and presence of leading
3200 underscore on symbols. Make sure to only link same kind.
3201 * elf32-cris.c (cris_elf_object_p,
3202 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3203 cris_elf_merge_private_bfd_data): New.
3204 (elf_backend_object_p, elf_backend_final_write_processing,
3205 bfd_elf32_bfd_print_private_bfd_data,
3206 bfd_elf32_bfd_merge_private_bfd_data): Define.
3207 <Target vector definition>: Include elf32-target.h twice with
3208 different macro settings:
3209 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3210 bfd_elf32_us_cris_vec.
3211 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3212 (elf_symbol_leading_char): First as 0, then '_'.
3213 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3214 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3215 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3216 * configure: Regenerate.
3217 * targets.c: Declare bfd_elf32_us_cris_vec.
3218 * po/bfd.pot: Regenerate.
3220 2000-09-29 Momchil Velikov <velco@fadata.bg>
3222 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3223 R_ARM_THM_PC22 relocations.
3225 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3227 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3229 2000-09-29 Momchil Velikov <velco@fadata.bg>
3231 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3232 is has the SEC_HAS_CONTENTS flag set.
3234 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
3235 Hans-Peter Nilsson <hp@axis.com>
3237 * aout-cris.c (N_TXTADDR): Define.
3239 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3241 * som.c: Include alloca-conf.h.
3242 * Makefile.am: "make dep-am"
3243 * Makefile.in: Regenerate.
3245 2000-09-27 Alan Modra <alan@linuxcare.com.au>
3247 * elf32-hppa.c (plt_stub): New.
3248 (PLT_STUB_ENTRY): Define.
3249 (elf32_hppa_link_hash_table): Change multi_subspace to packed
3250 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
3251 (elf32_hppa_link_hash_table_create): Init to suit.
3252 (elf32_hppa_check_relocs): Set has_12bit_branch and
3253 has_17bit_branch as appropriate.
3254 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
3255 non-local functions.
3256 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
3257 Add space for plt_stub as needed.
3258 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
3259 functions at plt_stub.
3260 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
3261 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
3263 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
3264 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
3265 of fixed size, and if negative, disable handling of input sections
3266 before stub section. Set up default stub group size depending
3267 on detected branch relocs.
3268 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
3269 ensure different offsets from sym_value aren't rounded to
3270 different 2k blocks. Use lrsel and rrsel for other stubs too for
3271 consistency rather than necessity.
3272 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
3273 (final_link_relocate): Likewise.
3274 (elf32_hppa_relocate_section): Likewise.
3276 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
3277 (_bfd_elf_hppa_gen_reloc_type): Generate them.
3278 (elf_hppa_final_link_relocate): Handle them.
3279 (elf_hppa_relocate_insn): Likewise.
3280 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3282 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
3284 * elfcode.h (elf_object_p): Preserve and clear abfd section
3285 information. Restore at error.
3287 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3289 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3290 is empty, make sure that its rva also 0. NT loader dislikes
3293 2000-09-26 Steve Ellcey <sje@cup.hp.com>
3295 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3298 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3300 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3301 currently unused RELATIVE_DYNAMIC_RELOCS code.
3302 (hppa_discard_copies): Likewise.
3303 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
3304 comments. Don't check non-code output sections for stub grouping.
3306 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3308 * section.c (bfd_get_unique_section_name): Return NULL if
3311 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3313 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3314 instruction sequence to actually work.
3315 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3318 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3320 * elf32-sh.c (sh_elf_relocate_section): Use
3321 _bfd_final_link_relocate to apply the relocation against a section
3322 symbol, when doing relocatable links.
3324 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3326 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3328 (stub_hash_newfunc): Here too.
3329 (hppa_add_stub): And here.
3330 (elf32_hppa_link_hash_table): Remove stub_section_created,
3331 reloc_section_created, first_init_sec and first_fini_sec. Add
3333 (elf32_hppa_link_hash_table_create): Init to suit.
3334 (hppa_get_stub_entry): Add support for grouping stub sections.
3335 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
3336 section code. Index stub vars by section->id.
3337 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
3338 exit paths. Zap allocation of above removed vars. Refine
3341 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3342 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3343 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3344 rather than pointer to bfd_link_info.
3345 (hppa_add_stub): Likewise.
3346 (final_link_relocate): Likewise.
3348 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
3350 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3353 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
3355 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3356 ld/emulparams/shelf.sh.
3358 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3360 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3361 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3362 * bfd-in2.h: Regenerate.
3364 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
3366 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3367 LITUSE relocations incorrectly if -relax is specified on the ld
3368 command line and the displacement field of the load or store
3369 instruction is non-zero. (Patch by paul.winalski@compaq.com)
3371 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3373 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3374 first_fini_sec here.
3375 (elf32_hppa_size_stubs): Instead correctly find the first .init
3376 and .fini section here.
3378 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
3380 * elf32-hppa.c (clobber_millicode_symbols): New function.
3381 (elf32_hppa_size_dynamic_sections): Call it.
3383 2000-09-14 Alan Modra <alan@linuxcare.com.au>
3385 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3386 packed. Add plabel, plt_abs packed booleans.
3387 (hppa_link_hash_newfunc): Init new fields.
3388 (PLABEL_PLT_ENTRY_SIZE): Define.
3389 (hppa_stub_name): Use size_t len vars.
3390 (hppa_add_stub): Likewise.
3391 (elf32_hppa_build_stubs): Likewise.
3392 (hppa_build_one_stub): Kill some compiler warnings.
3393 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3394 if dynamic linking. Munge the local plt offsets into
3395 local_got_refcounts. Set h->plabel for all global PLABELs. Use
3396 size_t len vars. Add assert for plabel addend.
3397 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3398 (elf32_hppa_hide_symbol): New function.
3399 (elf_backend_hide_symbol): Define.
3400 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3401 with h->plabel set. Don't make plt entries to have dynamic syms
3402 when they have been forced local. If plt entry is used by a
3403 plabel, make it PLABEL_PLT_ENTRY_SIZE.
3404 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3405 Set up .plt offsets for local syms.
3406 (elf32_hppa_relocate_section): Initialise plt entries for local
3407 syms. Leave weak undefined plabels zero. Make global plabel
3408 relocs against function symbol, and leave the addend zero.
3409 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3410 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3411 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
3412 relocs instead of SEGREL32 for dynamic got relocs.
3413 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3414 (elf_backend_got_header_size): Adjust.
3415 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3417 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3418 (hppa_type_of_stub): Use it instead of #if 0
3419 (hppa_discard_copies): Use it here too.
3420 (elf32_hppa_size_dynamic_sections): And here.
3422 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3423 (elf32_hppa_link_hash_table_create): And here.
3424 (hppa_build_one_stub): And here. Instead keep track of stub
3425 offset using _raw_size.
3426 (elf32_hppa_size_stubs): Likewise.
3427 (elf32_hppa_build_stubs): Likewise.
3428 (hppa_size_one_stub): Likewise. Resize reloc section too.
3430 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3431 first_fini_sec handling. Don't search for reloc section or set
3432 hplink->reloc_section_created here.
3433 (elf32_hppa_size_stubs): Instead search for reloc sections, and
3434 set reloc_section_created here.
3435 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3436 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3438 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3440 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3441 with `hplink->root.'.
3442 (elf32_hppa_check_relocs): Likewise.
3443 (elf32_hppa_gc_sweep_hook): Likewise.
3444 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3445 (hppa_handle_PIC_calls): Likewise.
3446 (elf32_hppa_size_dynamic_sections): Likewise.
3447 (elf32_hppa_set_gp): Likewise.
3448 (elf32_hppa_relocate_section): Likewise.
3449 (elf32_hppa_finish_dynamic_symbol): Likewise.
3450 (elf32_hppa_finish_dynamic_sections): Likewise.
3452 From David Huggins-Daines <dhd@linuxcare.com>
3453 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3454 defined weak symbols in shared links.
3455 (final_link_relocate): Calls to defined weak symbols in shared
3456 objects must go via import stubs, as the target might not be known
3459 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3461 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3462 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3463 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
3464 the original entries with EMPTY_HOWTOs, and added new ones to fill
3466 (sh_elf_info_to_howto): Make sure the new gap isn't used.
3467 (sh_elf_relocate_section): Likewise.
3469 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3471 * cpu-mips.c (arch_info_struct): Add mips:4K
3472 * bfd-in2.h (bfd_mach_mips4K): New define.
3473 * archures.c: Add bfd_mach_mips4K to comment.
3474 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3475 E_MIPS_ARCH_2 for bfd_mach_mips4K.
3477 2000-09-13 Marco Franzen <marcof@thyron.com>
3479 * som.c (som_write_symbol_strings): Do not used fixed buffers,
3480 use size_t as a counter.
3481 (som_write_space_strings): Similarly.
3483 2000-09-12 Jason Eckhardt <jle@cygnus.com>
3485 * elf32-i860.c (elf32_i860_relocate_pc26): New function
3487 (elf32_i860_relocate_section): Invoke new function from here.
3489 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3491 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3494 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3496 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3497 target section name instead of dumping core when the target symbol is
3500 2000-09-09 Kazu Hirata <kazu@hxi.com>
3502 * riscix.c: Remove DEFUN.
3504 2000-09-08 Nick Clifton <nickc@redhat.com>
3506 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3507 initialise flags in output bfd if the input bfd is the default
3508 architecture with the default flags.
3510 2000-09-08 Kazu Hirata <kazu@hxi.com>
3512 * archive.c: Fix formatting.
3513 * coff-arm.c: Likewise.
3514 * doc/chew.c: Likewise.
3516 2000-09-08 Alan Modra <alan@linuxcare.com.au>
3518 * section.c (bfd_get_unique_section_name): Put a dot before the
3521 2000-09-07 Kazu Hirata <kazu@hxi.com>
3523 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
3524 * elf.c: Fix formatting.
3526 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
3528 * config.bfd (sh-*-linux*): Added.
3529 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
3530 * targets.c: Declare them.
3531 * elf32-sh-lin.c: New file.
3532 * Makefile.am: Compile it.
3533 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
3534 * configure, Makefile.in: Rebuilt.
3536 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
3538 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
3539 pseduo-section when determining where the TOC ends.
3541 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
3542 output x_tvndx as it is only two bytes wide.
3544 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
3545 reloc is 26 or 32 bits wide.
3547 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
3548 for relocs that don't change anything. Also look at the full
3551 2000-09-06 Philip Blundell <philb@gnu.org>
3553 * config.bfd (arm*-*-uclinux*): New target.
3555 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3557 * configure: Rebuilt with new libtool.m4.
3559 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3561 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
3562 word for variable name.
3563 * bfd-in2.h: Regenerate.
3565 2000-09-05 Nick Clifton <nickc@redhat.com>
3567 * config.in: Regenerate.
3568 * libbfd.h: Regenerate.
3569 * po/bfd.pot: Regenerate.
3570 * doc/bfdint.texi: Remove CVS date string - it foils compares with
3573 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
3575 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
3577 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3579 Shared library and PIC support.
3580 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
3581 (GOT_ENTRY_SIZE): New.
3582 (ELF_DYNAMIC_INTERPRETER): New.
3583 (STUB_SUFFIX): Define.
3584 (LONG_BRANCH_PIC_IN_SHLIB): Define.
3585 (RELATIVE_DYNAMIC_RELOCS): Define.
3586 (enum elf32_hppa_stub_type): New.
3587 (struct elf32_hppa_stub_hash_entry): Rename offset to
3588 stub_offset. Add a number of new fields.
3589 (struct elf32_hppa_link_hash_entry): New.
3590 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
3592 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
3593 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
3594 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
3596 (hppa_link_hash_newfunc): New function.
3597 (elf32_hppa_link_hash_table_create): Use above function. Init new
3599 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
3600 instead of addend, and remove sym_name from args. Don't use
3601 symbol name for local syms, instead use sym index.
3602 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
3603 stub type rather than size. Pass in hash and handle import stub
3604 case. Also pass in reloc instead of offset so we can calculate
3605 PCREL22F and PCREL12F branches properly.
3606 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
3607 import and export stubs too.
3608 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
3609 import and export stub sizing.
3610 (elf32_hppa_check_relocs): New function.
3611 (elf32_hppa_adjust_dynamic_symbol): New function.
3612 (hppa_discard_copies): New function.
3613 (elf32_hppa_size_dynamic_sections): New function.
3614 (elf_backend_size_dynamic_sections): Define.
3615 (elf32_hppa_finish_dynamic_symbol): New function.
3616 (elf_backend_finish_dynamic_symbol): Define.
3617 (elf32_hppa_size_stubs): Stash params in link hash table, and move
3618 some local vars into the link hash table too. For shared links,
3619 trundle over function syms, generating export stubs. Handle
3620 PCREL22F branches. Break out stub creation code from here..
3621 (hppa_add_stub): .. to here. New function.
3622 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
3623 call the bfd linker. Use elf_gp to record global pointer.
3624 Calculate a value from sections if $global$ is missing.
3625 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
3626 (elf32_hppa_gc_mark_hook): New function.
3627 (elf_backend_gc_mark_hook): Define.
3628 (elf32_hppa_gc_sweep_hook): New function.
3629 (elf_backend_gc_sweep_hook): Define.
3630 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
3631 Add rel to args, and remove howto, input_bfd, offset, addend,
3632 sym_name as we can recalculate these locally. Handle calls to
3633 dynamic objects, extra PIC relocs, PCREL22F branches. Change
3634 handling of undefined weak syms. Check that stubs are in range.
3635 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
3636 message on hitting a DPREL21L reloc that needs fixing. Subtract
3637 off PC for PCREL14F. Break out code that does a stub lookup from
3639 (hppa_get_stub_entry): ..to here. New function.
3640 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
3641 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
3643 (elf32_hppa_finish_dynamic_sections): New function.
3644 (elf_backend_finish_dynamic_sections): Define.
3645 (elf_backend_final_write_processing) Define.
3646 (hppa_handle_PIC_calls): New function.
3647 (elf32_hppa_build_stubs): Call it. Pass link_info to
3648 hppa_build_one_stub.
3649 (elf32_hppa_create_dynamic_sections): New function
3650 to create .plt and .got then set .plt flags correctly.
3651 (elf_backend_create_dynamic_sections): Define.
3652 (elf32_hppa_object_p): New function.
3653 (elf_backend_object_p): Define.
3654 (elf32_hppa_elf_get_symbol_type): New function.
3655 (elf_backend_get_symbol_type): Define.
3656 (elf_backend_can_gc_sections): Define.
3657 (elf_backend_want_got_plt): Define.
3658 (elf_backend_plt_alignment): Set to 2.
3659 (elf_backend_plt_readonly): Define.
3660 (elf_backend_want_plt_sym): Define.
3661 (elf_backend_got_header_size): Reserve one entry.
3663 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
3664 (elf32_hppa_size_stubs): Pass in multi_subspace.
3665 (elf32_hppa_set_gp): Declare.
3667 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
3668 (bfd_get_unique_section_name): New function.
3669 * bfd-in2.h: Regenerate.
3671 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
3672 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
3675 From David Huggins-Daines <dhd@linuxcare.com>
3676 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
3677 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
3678 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
3679 been updated in finish_dynamic_symbol before modifying function
3682 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
3683 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
3684 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
3685 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
3686 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
3687 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
3688 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
3689 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
3691 From David Huggins-Daines <dhd@linuxcare.com>
3692 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
3693 style of local labels as well.
3695 2000-09-03 Philip Blundell <philb@gnu.org>
3697 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
3698 references to undefined symbols in debugging sections.
3700 2000-09-02 H.J. Lu <hjl@gnu.org>
3702 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3703 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
3704 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
3707 2000-09-02 Jason Eckhardt <jle@cygnus.com>
3709 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
3710 (elf32_i860_is_local_label_name): New function and prototype.
3712 2000-09-02 Nick Clifton <nickc@redhat.com>
3714 * configure.in: Increase version number to 2.10.91.
3715 * configure: Regenerate.
3716 * aclocal.m4: Regenerate.
3717 * config.in: Regenerate.
3718 * po/bfd.pot: Regenerate.
3720 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3722 * elf.c (_bfd_elf_make_section_from_shdr): Add
3723 .gnu.linkobce.wi. to the list of debug section names.
3725 2000-09-02 Nick Clifton <nickc@redhat.com>
3727 * dwarf2.c (find_debug_info): New function: Locate a section
3728 containing dwarf2 debug information.
3729 (bfd_dwarf2_find_nearest_line): Find all sections containing
3730 debug information and include them in the stash.
3732 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3734 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3735 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3736 (sh_reloc_map): Add new relocs.
3737 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3738 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3739 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3740 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3742 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3743 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3744 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3745 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3746 New array constants.
3747 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3749 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3750 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3751 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3752 elf_sh_plt_reloc_offset): Define.
3753 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3754 elf_sh_link_hash_table): New structs.
3755 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3756 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3758 (elf_backend_create_dynamic_sections,
3759 bfd_elf32_bfd_link_hash_table_create,
3760 elf_backend_adjust_dynamic_symbol,
3761 elf_backend_size_dynamic_sections,
3762 elf_backend_finish_dynamic_symbol,
3763 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3764 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3765 elf_backend_got_header_size, elf_backend_plt_header_size):
3767 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3768 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3770 * bfd-in2.h, libbfd.h: Rebuilt.
3772 2000-09-01 Alan Modra <alan@linuxcare.com.au>
3774 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3777 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
3779 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3780 not initialized, set them to indicate the SH1 instruction set.
3782 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3784 * acinclude.m4: Include libtool and gettext macros from the
3786 * aclocal.m4, configure: Rebuilt.
3788 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
3790 * elf.c: Eliminate references to __sparcv9 macro; replace with
3791 autoconf variables HAVE_PSINFO32_T etc.
3792 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
3793 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
3795 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
3796 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
3797 * aclocal.m4: Ditto.
3798 * configure: Regenerate.
3800 2000-08-27 Alan Modra <alan@linuxcare.com.au>
3802 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
3803 for any shared link, not just shared -Bsymbolic.
3804 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
3805 any shared link, and pass link info to it.
3806 (elf_i386_size_dynamic_sections): Update comment.
3807 (elf_i386_discard_copies): Modify to discard relocs for symbols
3808 that have been forced local.
3809 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
3810 that have been forced local.
3812 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
3814 * elflink.h (elf_link_add_object_symbols): Allow common
3815 symbols to have an alignment of 1 if explicitly requested, and
3816 not overridden by other definitions.
3818 2000-08-22 Doug Kwan <dkwan@transmeta.com>
3820 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
3821 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
3823 2000-08-22 H.J. Lu <hjl@gnu.org>
3825 * elf-bfd.h (elf_link_hash_table): Add runpath.
3827 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
3828 * bfd-in2.h: Rebuilt.
3830 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
3831 "runpath" field to NULL.
3832 (bfd_elf_get_runpath_list): New function.
3834 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
3837 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3839 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
3840 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
3841 explicitly. Improve validation of r_type.
3843 2000-08-21 H.J. Lu <hjl@gnu.org>
3845 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
3846 dynamic allocated content space. Add a comment to remind us that
3847 one day this ought to be fixed.
3848 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3849 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3850 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3852 2000-08-21 Jason Eckhardt <jle@cygnus.com>
3854 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
3855 field with the newly relocated value instead of adding it to the
3856 existing immediate field.
3857 (elf32_i860_relocate_splitn): Likewise.
3858 (elf32_i860_relocate_highadj): Likewise.
3860 2000-08-16 Jason Eckhardt <jle@cygnus.com>
3862 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
3863 was previously just a stub).
3865 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
3867 * elflink.c (_bfd_elf_create_got_section): Don't abort().
3869 (_bfd_elf_create_dynamic_sections): Likewise.
3871 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
3873 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
3874 for undefined symbols to be the beginning of the section.
3876 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
3877 four extra entries at the beginning of the .rela.plt section.
3878 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
3879 section to account for the four reserved entries in the .plt section.
3881 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
3883 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
3884 to the list of NOPs we recognize after a branch-and-link.
3885 Use the ori NOP when one is needed.
3887 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
3890 2000-08-14 Jim Wilson <wilson@cygnus.com>
3892 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
3893 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
3894 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
3897 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
3899 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
3901 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3903 * elf32-i860.c (elf32_i860_relocate_section): New function.
3904 (i860_final_link_relocate): New function.
3905 (elf32_i860_relocate_splitn): New function.
3906 (elf32_i860_relocate_pc16): New function.
3907 (elf32_i860_relocate_highadj): New function.
3908 (elf32_i860_howto): Minor adjustments to some relocations.
3909 (elf_info_to_howto_rel): Define.
3910 (elf_backend_relocate_section): Define.
3912 2000-08-10 Nick Clifton <nickc@cygnus.com>
3914 * elf32-arm.h: Fix formatting.
3916 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
3918 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
3920 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3922 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
3924 2000-08-07 Kazu Hirata <kazu@hxi.com>
3926 * ieee.c (ieee_write_debug_part): Rewrite a comment.
3927 * elf64-ia64.c: Fix a typo.
3929 2000-08-05 Jason Eckhardt <jle@cygnus.com>
3931 * elf32-i860.c (elf32_i860_howto_table): New structure.
3932 (lookup_howto): New function.
3933 (elf32_i860_reloc_type_lookup): New function.
3934 (elf32_i860_info_to_howto_rela): New function.
3935 (elf_code_to_howto_index): New structure.
3936 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
3937 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
3938 elf32_i860_reloc_type_lookup.
3940 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
3942 * som.c (struct fixup_format): Constify `format'.
3943 (som_hppa_howto_table): Use SOM_HOWTO macro.
3944 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
3945 (som_bfd_reloc_type_lookup): Likewise.
3946 (compare_subspaces): Remove unused `count1', `count2'.
3947 (som_begin_writing): Remove unused `total_reloc_size'.
3948 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
3949 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
3950 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
3951 (som_find_nearest_line): Decorate unused parameter(s).
3952 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
3953 (som_bfd_link_split_section): Likewise.
3955 2000-08-03 Nick Clifton <nickc@cygnus.com>
3957 * section.c: Restore backed out code.
3958 * elf.c: Restore backed out code.
3959 (copy_private_bfd_data): Fix bug preventing stipped dynamic
3960 binaries from working.
3961 * bfd-in2.h: Regenerate.
3963 2000-08-03 H.J. Lu <hjl@gnu.org>
3965 * section.c: Back out the change made by Nick Clifton
3966 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
3968 * bfd-in2.h: Likewise.
3971 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
3973 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
3975 2000-07-31 Jason Eckhardt <jle@cygnus.com>
3977 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
3978 * bfd-in2.h, libbfd.h: Regenerate.
3980 2000-07-31 Nick Clifton <nickc@cygnus.com>
3982 * section.c (struct sec): Add new boolean field 'segment_mark'.
3983 (STD_SECTION): Initialise new field to zero.
3985 * bfd-in2.h: Regenerate.
3987 * elf.c (copy_private_bfd_data): Reorganise section to segment
3988 mapping to cope with moved sections requiring new segments,
3989 and overlapping segments.
3990 (SEGMENT_END): New macro: Return the end address of a segment.
3991 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
3992 contains a section by comparing their VMA addresses.
3993 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
3994 contains a section by comparing their LMA addresses.
3995 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
3996 section should be included in a segment.
3997 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
3998 follows another in memory.
3999 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
4002 2000-07-22 Jason Eckhardt <jle@cygnus.com>
4004 * cpu-i860.c: Added comments.
4006 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
4007 bfd_elf32_i860_little_vec.
4008 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
4009 (ELF_MAXPAGESIZE): Changed to 4096.
4011 * targets.c (bfd_elf32_i860_little_vec): Declaration of
4013 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
4015 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
4016 config for little endian elf32 i860.
4017 (targ_defvec): Define for the new config above
4018 as "bfd_elf32_i860_little_vec".
4019 (targ_selvecs): Define for the new config above
4020 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
4022 * configure.in (bfd_elf32_i860_little_vec): Added recognition
4025 * configure: Regenerated.
4027 2000-07-27 H.J. Lu <hjl@gnu.org>
4029 * elflink.h (elf_merge_symbol): Take one more argument,
4030 dt_needed, to indicate if the symbol comes from a DT_NEEDED
4031 entry. Don't overide the existing weak definition if dt_needed
4033 (elf_link_add_object_symbols): Pass dt_needed to
4034 elf_merge_symbol ().
4036 2000-07-27 Nick Clifton <nickc@cygnus.com>
4038 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
4041 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
4043 * configure.host (*-*-aix*): AIX has 'long long' always.
4045 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
4046 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
4047 (xcoff_write_archive_contents_big): Don't update the offset
4048 of the symbol table, xcoff_write_armap will do it.
4050 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
4052 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
4053 of dynobj for SGI_COMPAT checks.
4055 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4057 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
4058 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
4059 * bfd-in2.h: Regenerate.
4061 2000-07-21 Nick Clifton <nickc@cygnus.com>
4063 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
4064 range symbol indices in relocs and issue an error message.
4066 2000-07-20 H.J. Lu <hjl@gnu.org>
4068 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
4069 info->new_dtags when setting DT_FLAGS_1. It will only be set
4070 by the new linker options. It shouldn't break anything.
4072 2000-07-20 H.J. Lu <hjl@gnu.org>
4074 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
4075 only if info->new_dtags is true.
4077 2000-07-20 H.J. Lu <hjl@gnu.org>
4079 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
4080 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
4082 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4084 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
4085 (ALL_MACHINES_CFILES): Add cpu-cris.c.
4086 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
4087 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
4088 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
4089 * Makefile.in: Rebuild.
4090 * aclocal.m4: Rebuild.
4091 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
4092 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
4093 (bfd_cris_arch): Declare.
4094 (bfd_archures_list): Add bfd_cris_arch.
4095 * bfd-in2.h: Rebuild.
4096 * config.bfd: (cris-*-*): New target.
4097 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
4098 * configure: Rebuild.
4099 * elf.c (prep_headers): Add bfd_arch_cris.
4100 * libbfd.h: Rebuild.
4101 * libaout.h (enum machine_type): Add M_CRIS.
4102 * reloc.c: Add CRIS relocations.
4103 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
4104 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
4105 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
4106 * po/POTFILES.in, po/bfd.pot: Regenerate.
4108 2000-07-19 H.J. Lu <hjl@gnu.org>
4110 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
4111 DF_TEXTREL if DT_TEXTREL is set.
4112 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4113 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4114 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4115 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
4116 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4117 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4118 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
4119 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4120 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
4121 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4123 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
4124 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
4126 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
4128 2000-07-19 H.J. Lu <hjl@gnu.org>
4130 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
4131 * bfd-in2.h: Rebuild.
4133 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
4134 (elf_dt_soname): New.
4136 * elf.c (bfd_elf_set_dt_needed_soname): New.
4138 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
4139 entry if the shared object loaded by DT_NEEDED is used to
4140 resolve the reference in a regular object.
4142 2000-07-19 H.J. Lu <hjl@gnu.org>
4144 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
4145 DT_DEPAUDIT and DT_AUDIT as strings.
4147 2000-07-19 Nick Clifton <nickc@cygnus.com>
4149 * format.c: Fix formatting.
4151 2000-07-19 H.J. Lu <hjl@gnu.org>
4153 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
4155 2000-07-19 H.J. Lu <hjl@gnu.org>
4157 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
4158 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
4159 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
4160 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
4161 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
4162 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
4163 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
4165 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
4167 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
4168 renamed functions from here...
4169 (assign_section_numbers): Use renamed functions.
4170 (prep_headers): Use renamed functions.
4172 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
4173 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
4174 * bfd-in2.h: Regenerate.
4176 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
4178 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
4179 parenthesis in if statement.
4181 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
4183 Enable the support for Traditional MIPS.
4184 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
4185 return ict_none appropriately for traditional mips targets.
4186 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
4187 (STUB_MOVE): Conditionalize for traditonal mips.
4188 (STUB_LI16): Likewise.
4189 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
4190 room for RTPROC header.
4191 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
4192 the permission for the PT_DYNAMIC as read, write and execute.
4193 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
4194 for traditonal mips.
4195 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
4196 _DYNAMIC_LINKING for traditonal mips.
4197 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
4198 in case of traditonal mips.
4199 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
4200 entry is required. For a function if PLT is not required then set the
4201 corresponding hash table entry to 0.
4202 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
4204 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
4205 shared object set the value to 0.
4206 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
4207 _DYNAMIC_LINKING for traditonal mips.
4208 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
4209 for traditonal mips.
4211 2000-07-15 H.J. Lu <hjl@gnu.org>
4213 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
4215 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4217 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
4218 out a structure that is BFD_IN_MEMORY.
4220 2000-07-11 Alan Modra <alan@linuxcare.com.au>
4222 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
4223 bfd pointer. Print section id instead of bfd pointer for local
4224 syms. Prefix addend with `+' for global syms as well as local.
4225 Correct calculation of name component lengths.
4226 (elf64_hppa_check_relocs): Update call to get_dyn_name.
4228 From David Huggins-Daines <dhd@linuxcare.com>
4229 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
4230 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
4231 (elf64_hppa_modify_segment_map): Likewise.
4233 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4235 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
4236 addresses to be "naturally" sign extended. Return -1 if unknown.
4237 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
4238 * bfd-in2.h: Regenerate.
4240 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4242 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
4243 and ECOF_SIGNED_64 to list ways to extract an offset.
4244 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
4245 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
4247 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
4248 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
4250 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4252 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
4253 bfd_get_start_address.
4254 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
4255 (elf_swap_ehdr_out): Ditto.
4257 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
4259 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
4260 compatibility with older binutils.
4262 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4264 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
4265 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
4267 From Ryan Bradetich <rbradetich@uswest.net>
4268 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
4269 (parse_line_table): Ditto.
4270 (_bfd_dwarf1_find_nearest_line): Ditto.
4271 * syms.c (cmpindexentry): Remove extra `*' from params.
4273 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
4275 * elf32-mips.c (sort_dynamic_relocs): New Function.
4276 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
4277 via qsort to sort the dynamic relocations in increasing r_symndx
4280 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4282 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4283 ATTRIBUTE_UNUSED to unused args.
4284 (get_opd): Likewise.
4285 (get_plt): Likewise.
4286 (get_dlt): Likewise.
4287 (get_stub): Likewise.
4288 (elf64_hppa_adjust_dynamic_symbol): Likewise.
4289 (elf64_hppa_link_output_symbol_hook): Likewise.
4290 (elf64_hppa_check_relocs): Delete unused var.
4291 (elf64_hppa_size_dynamic_sections): Likewise.
4292 (elf64_hppa_finalize_opd): Likewise.
4293 (elf64_hppa_finalize_dynreloc): Likewise.
4294 (elf64_hppa_modify_segment_map): Likewise.
4295 (elf64_hppa_finish_dynamic_sections): Likewise.
4297 * elf-hppa.h (elf_hppa_final_write_processing): Add
4298 ATTRIBUTE_UNUSED to unused args.
4299 (elf_hppa_final_link_relocate): Likewise.
4300 (elf_hppa_record_segment_addrs): Add paretheses.
4301 (elf_hppa_relocate_section): Constify dyn_name.
4303 From David Huggins-Daines <dhd@linuxcare.com>
4304 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4305 rearrange case statement so that it gets preferred to 32-bit ones.
4307 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4308 asection->id instead of address of asection structure.
4309 (elf32_hppa_size_stubs): Likewise.
4311 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4312 for .init* and .fini*.
4314 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4315 and addends used in stub names to 32 bits.
4316 (elf32_hppa_size_stubs): Likewise.
4318 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4319 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
4320 not bfd_put_64. Fix minor comment typo and formatting.
4322 Changes to create multiple linker stubs, positioned immediately
4323 before the section where they are required.
4324 * elf32-hppa.c: Don't include hppa_stubs.h.
4325 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4326 (elf32_hppa_stub_hash_table): Delete.
4327 (elf32_hppa_link_hash_entry): Delete.
4328 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4329 stub_hash_table, and store the struct here rather than a pointer.
4330 Delete output_symbol_count. Add offset array. Change
4331 global_value to a bfd_vma.
4332 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4333 (elf32_hppa_stub_hash_traverse): Delete.
4334 (elf32_hppa_name_of_stub): Delete.
4335 (elf32_hppa_link_hash_lookup): Delete.
4336 (elf32_hppa_link_hash_traverse): Delete.
4337 (elf32_hppa_stub_hash_table_init): Delete.
4338 (elf32_hppa_size_of_stub): Pass input section and offset rather
4339 than location and calculate location here. Don't pass name as all
4340 stubs are now the same size.
4341 (elf32_hppa_stub_hash_newfunc): Init new fields.
4342 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4344 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4345 comparing against ints. Rewrite stub handling code.
4346 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4347 Case enums to int before comparing against ints. Remove
4348 bfd_reloc_dangerous case.
4349 (elf32_hppa_build_one_stub): Rewrite.
4350 (elf32_hppa_size_one_stub): New function.
4351 (elf32_hppa_build_stubs): Rewrite.
4352 (elf32_hppa_size_stubs): Pass in linker call-back functions.
4353 Rewrite stub-handling specific code.
4355 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4357 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4359 * hppa_stubs.h: Delete.
4360 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4361 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4362 * Makefile.in: Regenerate.
4364 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4367 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4369 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4370 and section name for bfd_reloc_notsupported error message.
4371 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4372 bfd_reloc_notsupported.
4373 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4375 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4376 undefined weak symbols for all relocs.
4377 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4378 offsets are relative to one past the delay slot.
4379 (elf32_hppa_size_stubs): Account for reloc addend when calculating
4380 branch destination. Put addend into stub name too.
4381 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4382 adjust by 8 when deciding whether a linker stub is needed. Put
4383 addend into stub name as for above.
4385 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4386 various args and vars.
4387 (elf32_hppa_bfd_final_link_relocate): Here too.
4388 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
4389 inner block var to avoid shadowing.
4391 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
4393 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4394 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4395 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4397 * libhppa.h: Change practically all unsigned ints to plain ints.
4398 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
4401 From Ryan Bradetich <rbradetich@uswest.net>
4402 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4403 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4405 From David Huggins-Daines <dhd@linuxcare.com>
4406 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4407 to the new OP_* ones.
4409 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4410 error exit. Bail out earlier on plabel relocs that we aren't
4411 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
4412 string, and then don't free our copy.
4413 (elf32_hppa_build_one_stub): Make insn unsigned int.
4415 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4416 available with BL, not BE and BLE.
4418 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4419 code for elf arg relocs.
4420 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4421 argument with elf_link_hash_entry h. Handle undefined weak
4422 symbols. Move $global$ lookup from here...
4423 (elf32_hppa_relocate_section): ...to here. Return correct error
4424 message for non-handled relocs.
4425 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
4426 wrong test was -0x3ffff to +0x40000.
4428 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4429 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4430 Handle them as such.
4431 (elf_hppa_relocate_insn): Fix a typo.
4433 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4434 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4435 assemble_17, assemble_21): Delete.
4436 Supply defines for all 64 possible opcodes.
4437 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4438 formats. Handle COMICLR.
4439 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
4442 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4443 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4444 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4446 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
4447 the local syms - did this code get deleted accidentally? Ignore
4448 undefined and undefweak syms.
4450 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4451 block. Use it instead of elf64_hppa_hash_table (info).
4452 (elf_hppa_final_link_relocate): Use hppa_info instead of
4453 elf64_hppa_hash_table (info).
4455 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4456 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4457 (hppa_rebuild_insn): Mask immediate bits here instead.
4458 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4460 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4462 * section.c (struct sec): Add id field. Tidy comment formatting.
4463 (bfd_make_section_anyway): Set id.
4464 (STD_SECTION): Init id too.
4465 Change CONST to const throughout.
4466 * archures.c (bfd_arch_info): Tidy comment.
4467 (bfd_arch_list): Change a CONST to const.
4468 * libbfd-in.h: Tidy comments and replace CONST with const.
4469 * elf-bfd.h: Likewise.
4470 * libbfd.h: Regenerate.
4471 * bfd-in2.h: Regenerate.
4472 * libcoff.h: Regenerate.
4474 2000-07-07 DJ Delorie <dj@redhat.com>
4476 * archive.c (_bfd_write_archive_contents): Add an informative
4479 2000-07-06 Kazu Hirata <kazu@hxi.com>
4481 * srec.c: Fix formatting.
4483 2000-06-05 DJ Delorie <dj@redhat.com>
4487 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
4489 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4490 value of PC-relative offsets.
4492 2000-07-03 Jim Wilson <wilson@cygnus.com>
4494 * elf64-alpha.c (alpha_elf_size_info): New.
4495 (elf_backend_size_info): Define to alpha_elf_size_info.
4496 * elfcode.h (elf_size_info): Change hash bucket size to 4.
4498 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
4500 * elf32-mips.c: Include elf32-target.h again for the traditional
4503 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4505 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4506 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4507 (avr_info_to_howto_rela): Likewise.
4508 (elf32_avr_gc_mark_hook): Likewise.
4509 (elf32_avr_gc_sweep_hook): Likewise.
4510 (elf32_avr_relocate_section): Likewise.
4512 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
4514 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
4515 an external symbol for a non-shared, non-relocatable link.
4517 2000-07-03 Nick Clifton <nickc@redhat.com>
4519 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
4520 is an external symbol.
4521 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
4524 2000-07-03 Kazu Hirata <kazu@hxi.com>
4526 * reloc16.c: Fix formatting.
4528 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4530 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
4531 to add a new target for traditional mips i.e
4532 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
4533 * configure.in: Likewise.
4534 * configure: Rebuild.
4535 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
4537 (bfd_elf32_tradlittlemips_vec): Likewise.
4538 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
4539 to see that elfNN_bed does not get redefined even if the target file
4540 is included twice for a chip. See elf32-mips.c.
4542 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4544 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4545 (CLEANFILES): Add DEPA.
4546 * Makefile.in: Regenerate.
4548 2000-06-30 DJ Delorie <dj@cygnus.com>
4550 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
4551 can't assume the PE header is at 0x80.
4553 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4555 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4557 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
4559 * go32stub.h: Update stub.
4561 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4563 * archures.c (bfd_mach_avr5): Define.
4564 * bfd-in2.h (bfd_mach_avr5): Define.
4565 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
4566 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
4567 (compatible): Update comment. Add missing test.
4568 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
4569 for avr2 and avr4. Simplify 8K wrap code.
4570 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
4571 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
4573 2000-06-26 Kazu Hirata <kazu@hxi.com>
4575 * coff-h8300.c: Fix formatting.
4576 * cpu-h8300.c: Likewise.
4578 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
4580 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
4581 for local symbols whose names are unknown.
4583 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4585 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4587 * Makefile.in: Regenerate.
4588 * doc/Makefile.in: Regenerate.
4590 2000-06-20 H.J. Lu <hjl@gnu.org>
4592 * Makefile.am: Rebuild dependency.
4593 * Makefile.in: Rebuild.
4595 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4597 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
4598 (elf_backend_copy_indirect_symbol): Map to the new function.
4600 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4602 * archive.c (normalize): Correct pointer comparison when checking
4604 (bfd_bsd_truncate_arname): Likewise.
4605 (bfd_gnu_truncate_arname): Likewise.
4607 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
4609 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
4610 sections elf_{text,data}_{section,symbol}.
4611 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
4612 (_bfd_mips_elf_hide_symbol): New function.
4613 (elf_backend_hide_symbol): Map to the new function.
4614 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
4615 definitions of mips_elf_{text,data}_{section,symbol}.
4616 (mips_elf_local_relocation_p): Try to find the direct symbol
4617 based on new check_forced argument.
4618 (mips_elf_calculate_relocation): Use new version of
4619 mips_elf_local_relocation_p.
4620 (mips_elf_relocate_section): Likewise.
4621 (_bfd_mips_elf_relocate_section): Likewise.
4622 (mips_elf_sort_hash_table): Only assert that have enough GOT
4624 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
4625 entry if the relocation based on the new external argument.
4626 (mips_elf_create_dynamic_relocation): Assert that we have a
4627 section contents allocated where we can swap out the dynamic
4629 (mips_elf_calculate_relocation): Find the real hash-table entry
4630 correctly by using h->root.root.type. Only create a dynamic
4631 relocation entry if the symbol is defined in a shared library.
4632 Create an external GOT entry for the GOT16 relocation if the
4633 symbol was forced local.
4634 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
4635 dynamic index if the symbol was forced local.
4637 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4639 * elf32-mips.c: Fix typos in comments.
4641 2000-06-19 Mark Kettenis <kettenis@gnu.org>
4643 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
4646 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4648 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
4649 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
4650 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
4651 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
4652 (bfd_elf32_m68hc11_vec): Likewise.
4653 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
4654 Supports 68hc11 & 68hc12 at the same time.
4655 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
4657 (bfd_elf32_m68hc11_vec): Likewise.
4658 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
4659 * archures.c (bfd_m68hc12_arch): Define and register in global list
4660 (bfd_m68hc11_arch): Likewise.
4661 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
4662 BFD_RELOC_M68HC11_3B): Define.
4663 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
4664 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
4666 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
4668 * elf_bfd.h (struct elf_backend_data): Add info argument to
4669 elf_backend_hide_symbol.
4670 (_bfd_elf_link_hash_hide_symbol): Likewise.
4671 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
4672 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
4673 * elflink.h (elf_link_add_object_symbols): Likewise.
4674 (elf_link_assign_sym_version): Likewise.
4676 2000-06-18 H.J. Lu <hjl@gnu.org>
4678 * coff-i386.c (coff_i386_reloc): Don't return in case of
4679 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
4680 Compensate PE relocations when linking with non-PE object
4681 files to generate a non-PE executable.
4683 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
4685 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
4686 GOT entries if we're doing a static link or -Bsymbolic link.
4688 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
4690 * elflink.h (elf_link_adjust_relocs): Check for and call backend
4691 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
4693 (elf_link_output_relocs): Likewise.
4694 (elf_reloc_link_order): Likewise.
4696 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4698 * archures.c (enum bfd_architecture): #define constants for
4699 PowerPc and RS6000 machine numbers.
4700 * bfd-in2.h: Regenerate.
4701 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
4702 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
4703 and RS6000 machine numbers using #defined constants from
4705 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
4706 machine numbers using #defined constants from archures.c. Add
4707 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
4708 64-bit words in 620 entry.
4709 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
4711 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
4713 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
4715 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
4716 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
4717 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
4719 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4721 * bfd-in.h (bfd_family_coff): Define.
4722 * bfd-in2.h: Regenerate.
4723 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4724 coff_find_nearest_line): Check COFFness using bfd_family_coff()
4725 instead of bfd_target_coff_flavour.
4726 * cofflink.c (_bfd_coff_final_link): Likewise.
4727 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4728 exclude XCOFF files.
4729 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4731 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4732 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4733 * xcofflink.c (XCOFF_XVECP): Delete.
4734 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4735 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4736 bfd_xcoff_record_link_assignment,
4737 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4738 check for bfd_target_xcoff_flavour.
4740 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4742 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4744 (read_hdr): New function.
4745 (rs6000coff_core_p): Store mstsave or __context64 struct instead
4746 of trying to extract individual registers. Set abfd->arch_info
4747 to match the architecture that created the core file.
4748 (rs6000coff_get_section_contents): Delete.
4749 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4751 2000-06-14 H.J. Lu <hjl@gnu.org>
4753 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4756 2000-06-13 H.J. Lu <hjl@gnu.org>
4758 * configure: Regenerate.
4760 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
4762 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4765 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4767 * configure.in (VERSION): Update to show this is the CVS mainline.
4769 2000-06-07 Alan Modra <alan@linuxcare.com.au>
4771 * elf32-d10v.c: Include elf/d10v.h
4772 (enum reloc_type): Delete.
4773 * elf32-d30v.c: Include elf/d30v.h
4774 (enum reloc_type): Delete.
4776 * Makefile.am: Run "make dep-am" to regenerate dependencies.
4777 * Makefile.in: Regenerate.
4779 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4780 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4781 move HOWTOs into elf_howto_table.
4782 (R_386_standard, R_386_ext_offset): Define.
4783 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
4784 (elf_i386_reloc_type_lookup): Modify calculation of index into
4785 elf_howto_table since we've removed the padding.
4786 (elf_i386_info_to_howto_rel): Likewise.
4787 (elf_i386_relocate_section): Likewise.
4789 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
4791 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
4793 2000-06-05 H.J. Lu <hjl@gnu.org>
4795 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
4796 an error when seeing an undefined symbol with hidden/internal
4797 attribute. It is handled in *_relocate_section ().
4799 2000-06-05 H.J. Lu <hjl@gnu.org>
4801 * elflink.h (elf_fix_symbol_flags): Follow the link for the
4802 indirect symbol for the ELF_LINK_NON_ELF bit.
4803 (elf_link_output_extsym): Don't output the indirect symbol even
4804 if the ELF_LINK_NON_ELF bit is set.
4806 2000-06-01 J.T. Conklin <jtc@redback.com>
4808 * config.bfd (i[3456]86-*-netbsdelf*): New target.
4809 (i[3456]86-*-netbsdaout*): New target.
4810 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
4811 (i[3456]86-*-openbsd*): Likewise.
4813 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
4815 * trad-core.c: From hpux-core.c, include <dirent.h> or
4816 <sys/ndir.h> when possible.
4818 2000-05-31 Ulrich Drepper <drepper@redhat.com>
4820 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
4821 definitions. We must not assume they are sorted in the file
4822 according to their index numbers.
4824 2000-05-31 Alan Modra <alan@linuxcare.com.au>
4826 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
4827 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
4828 R_PARISC_DIR17F are for absolute branches; Handle them as such.
4830 2000-05-30 Nick Clifton <nickc@cygnus.com>
4832 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
4833 80960CA, 80960MC as valid machine names.
4835 2000-05-30 H.J. Lu <hjl@gnu.org>
4837 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
4838 visibility bits if the symbol is undefined. Correctly handle
4839 weak undefined symbols with hidden and internal attributes.
4841 * elflink.h (elf_link_add_object_symbols): Always turn the
4842 symbol into local if it has the hidden or internal attribute.
4844 2000-05-29 Philip Blundell <philb@gnu.org>
4846 * ppcboot.c: Add packed attribute if compiling with GCC.
4848 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
4850 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
4852 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
4854 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4855 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
4856 corefile on a 64-bit (Sparc Solaris) host. Also clean up
4859 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4861 * Makefile.am: Update dependencies with "make dep-am"
4862 * Makefile.in: Regenerate.
4864 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
4865 bindtextdomain): Replace defines with those from intl/libgettext.h
4866 to quieten gcc warnings.
4868 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4870 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
4872 * archive.c (normalize, bfd_bsd_truncate_arname,
4873 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
4874 file names with backslashes.
4876 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
4879 * sysdep.h: Include filenames.h.
4881 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4883 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
4885 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4887 * elf64-sparc.c (sparc64_elf_relax_section): New.
4888 (sparc64_elf_relocate_section): Optimize tail call into branch always
4890 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4891 (elf32_sparc_relax_section): New.
4893 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4895 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
4896 Remove unusued variables.
4897 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
4898 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
4899 previous fix, so that shared libs really don't influence targets
4900 extension mask and memory model.
4902 2000-05-23 H.J. Lu <hjl@gnu.org>
4904 * elf64-alpha.c (elf64_alpha_relocate_section): Check
4905 h->root.other not h->other.
4906 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4908 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
4910 2000-05-23 H.J. Lu <hjl@gnu.org>
4912 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
4913 undefined symbol with the non-default visibility attributes.
4914 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4915 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4916 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4917 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4918 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4919 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4920 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4921 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4922 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4923 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
4924 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4926 2000-05-22 Richard Henderson <rth@cygnus.com>
4928 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
4929 PCREL22, PCREL64I. Zero size of special relocs.
4930 (elf64_ia64_reloc_type_lookup): Likewise.
4931 (USE_BRL, oor_brl, oor_ip): New.
4932 (elf64_ia64_relax_section): New.
4933 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
4934 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
4935 (elf64_ia64_relocate_section): Likewise.
4936 (bfd_elf64_bfd_relax_section): New.
4937 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
4938 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
4939 * bfd-in2.h, libbfd.h: Regenerate.
4941 2000-05-22 Nick Clifton <nickc@cygnus.com>
4943 * configure.in : Add peigen.lo to MIPS PE targets.
4944 * configure: Regenerate.
4946 2000-05-22 Momchil Velikov <velco@fadata.bg>
4948 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
4949 only if it is known for both input and output bfds. Separate
4950 error message strings as in some languages, it may be necessary
4951 to change more than one place in the string to change between
4954 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
4955 endianess checks, call _bfd_generic_verify_endian_match() instead.
4957 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
4959 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
4961 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
4962 endianess before checking bfd flavours.
4964 2000-05-22 H.J. Lu <hjl@gnu.org>
4966 * elflink.h (elf_link_output_extsym): Clear the visibility
4967 field for symbols not defined locally.
4969 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4971 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4972 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4973 (hppa_rebuild_insn): Mask immediate bits here instead.
4974 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4976 2000-05-18 Momchil Velikov <velco@fadata.bg>
4978 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
4979 relocs for an executable, ensure that they are virtual addresses.
4981 2000-05-18 Jeffrey A Law (law@cygnus.com)
4983 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
4985 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4986 Rick Gorton <gorton@scrugs.lkg.dec.com>
4988 * elflink.h: Add emitrelocations support: when enabled, relocation
4989 information and relocation sections are put into final output
4990 executables. If the emitrelocations flag is set, do the following:
4991 (elf_bfd_final_link): Emit relocation sections.
4992 (elf_link_input_bfd): Compute relocation section contents.
4993 (elf_gc_sections): Don't clean relocation sections.
4995 2000-05-16 Catherine Moore <clm@cygnus.com>
4997 * som.c (som_decode_symclass): Recognize weak symbols.
4999 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
5001 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
5002 read idata section only from dataoff.
5003 (pe_print_edata): Correctly check for valid eat_member.
5005 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
5007 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
5009 2000-05-14 Philip Blundell <philb@gnu.org>
5011 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
5013 2000-05-12 Alan Modra <alan@linuxcare.com.au>
5015 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
5017 * peigen.c (pe_print_idata): Look for .idata section and print
5018 info even if data directory has zero entries. Read idata section
5019 starting from dataoff, and adjust all data offsets to suit. Cast
5020 all bfd_vma vars to unsigned long before passing to fprintf.
5021 * peigen.c (pe_print_edata): Similarly, look for .edata section
5022 and print info even if data directory has zero entries. Cast
5023 all bfd_vma vars to unsigned long before passing to fprintf.
5025 From Szabolcs Szakacsits <szaka@F-Secure.com>
5026 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
5027 directory size which may be bogus.
5028 * peigen.c (pe_print_edata): Similarly.
5030 2000-05-09 Alan Modra <alan@linuxcare.com.au>
5032 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
5034 (copy_private_bfd_data): Allow for space possibly taken up by elf
5035 headers when calculating segment physical address from lma.
5037 2000-05-08 Alan Modra <alan@linuxcare.com.au>
5039 * versados.c (versados_scan): Init stringlen and pass_2_done.
5041 * trad-core.c (trad_unix_core_file_p): Return
5042 bfd_error_wrong_format rather than bfd_error_file_truncated.
5044 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
5045 add_data_entry. DataDirectory virtual address is relative.
5046 (pe_print_idata): Account for relative DataDirectory virtual
5047 addresses. Don't trash datasize inside POWERPC_LE_PE code.
5048 (pe_print_edata): Similarly.
5050 From Szabolcs Szakacsits <szaka@F-Secure.com>
5051 * peigen.c (dir_names): Add Delay Import Directory.
5052 (pe_print_idata): Always search for bfd section containing
5053 idata address rather than looking up section name. Print this
5054 section name rather than .idata.
5055 (pe_print_edata): Similarly. Also print some fields as %08lx.
5056 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
5059 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5061 * xcoff.h: Rename to xcoff-target.h
5062 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
5063 * coff-rs6000.c: Ditto.
5064 * coff64-rs6000.c: Ditto.
5065 * coff-pmac.c: Ditto.
5066 * Makefile.in: Regenerate.
5068 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5070 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
5071 Change U802TOC64MAGIC to U803XTOCMAGIC.
5073 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
5075 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
5076 * bfd-in.h: Prototype bfd_elf_get_arch_size.
5077 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
5079 2000-05-04 Alan Modra <alan@linuxcare.com.au>
5081 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
5083 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
5085 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
5086 hidden and internal symbols.
5087 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
5089 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
5090 assign a PLT or GOT entry to symbols with hidden and
5091 internal visibility.
5093 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
5095 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
5097 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5099 2000-05-02 H.J. Lu <hjl@gnu.org>
5101 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
5104 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5106 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
5107 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
5109 * Makefile.in: Regenerate.
5111 2000-05-01 Jim Wilson <wilson@cygnus.com>
5113 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
5114 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
5115 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
5116 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
5117 * Makefile.in: Rebuild.
5119 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5121 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
5122 doesn't work very well.
5124 * elf-hppa.h (elf_hppa_internal_shdr): Define.
5125 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
5126 Set hdr->s_type to 1 if ARCH_SIZE == 32.
5127 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
5128 (elf_hppa_info_to_howto): Likewise.
5129 (elf_hppa_info_to_howto_rel): Likewise.
5130 (elf_hppa_reloc_type_lookup): Likewise.
5131 (elf_hppa_is_local_label_name): Likewise.
5132 (elf_hppa_fake_sections): Likewise.
5133 (elf_hppa_final_write_processing): Likewise.
5134 (elf_hppa_howto_table): Fully initialise all entries.
5135 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
5136 (elf_hppa_info_to_howto): Likewise.
5137 (elf_hppa_info_to_howto_rel): Likewise.
5138 (elf_hppa_reloc_type_lookup): Likewise.
5139 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
5140 elf_hppa_unmark_useless_dynamic_symbols,
5141 elf_hppa_remark_useless_dynamic_symbols,
5142 elf_hppa_record_segment_addrs, elf_hppa_final_link,
5143 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
5144 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
5145 elf32-hppa.c mess is cleaned up.
5146 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
5147 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
5148 r_field then call hppa_field_adjust inline func with variable
5149 r_field arg, instead call hppa_field_adjust with fixed arg.
5150 In case R_PARISC_PCREL22F, don't set r_field.
5151 (elf_hppa_relocate_insn): Change args and return type to unsigned
5152 int. Call re_assemble_* funcs to do the work.
5154 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
5157 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
5159 (sign_extend): Mask first before sign extending.
5160 (low_sign_extend): Rewrite without condition expression.
5161 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
5162 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
5163 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5164 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
5165 result as function return value rather than through pointer arg.
5166 Accept unsigned int args, and return unsigned int.
5167 (re_assemble_3): New. Combines function of dis_assemble_3 with
5168 re-assembly of opcode and immediate.
5169 (re_assemble_12): Likewise.
5170 (re_assemble_16): Likewise.
5171 (re_assemble_17): Likewise.
5172 (re_assemble_21): Likewise.
5173 (re_assemble_22): Likewise.
5174 (hppa_field_adjust): Rewrite and document, paying attention to
5175 size of types and signed/unsigned issues.
5176 (get_opcode): Shift before masking.
5177 (FDLW): Rename to FLDW.
5178 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
5179 (hppa_rebuild_insn): Change args and return value to unsigned
5180 int. Make use of re_assemble_*. Correct case 11.
5182 * dep-in.sed: Handle ../opcodes/.
5183 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
5184 elf64-hppa.h, hppa_stubs.h, xcoff.h.
5185 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
5186 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
5187 elfarm-nabi.lo dependencies outside of auto-dependency area.
5188 Regenerate dependencies.
5189 * Makefile.in: Regenerate.
5191 * configure.in (TRAD_HEADER): Test non-null before
5193 * configure: Regenerate.
5195 * reloc.c: Fix mis-spelling in comment.
5197 2000-05-01 Alan Modra <alan@linuxcare.com.au>
5199 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
5200 * vms.c (vms_openr_next_archived_file): Return NULL.
5202 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5204 * coffcode.h Copy changes mistakenly done to libcoff.h in
5207 2000-04-29 Andreas Jaeger <aj@suse.de>
5209 * libbfd-in.h: Correctly check GCC version.
5210 * bfd-in.h: Likewise.
5211 * libhppa.h: Likewise.
5212 * libbfd.h: Regenerate.
5213 * bfd-in2.h: Regenerate.
5215 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5217 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
5218 coffdu-rs6000.{lo,c}.
5219 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
5221 * Makefile.in: Regenerate.
5222 * xcoff.h: New file.
5223 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
5224 * coff-rs6000.c: Move all declarations and defines that are
5225 common to the xcoff backends into xcoff.h
5226 * coff64-rs6000.c: Ditto,
5228 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5230 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
5231 _bfd_coff_force_symnames in strings and
5232 _bfd_coff_debug_string_prefix_length to their default values.
5233 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
5235 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5237 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
5238 _bfd_coff_force_symnames in strings and
5239 _bfd_coff_debug_string_prefix_length to their default values.
5241 2000-04-27 Alan Modra <alan@linuxcare.com.au>
5243 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
5244 Check local_got_refcounts before dereferencing.
5246 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
5247 before deciding we don't need R_PPC_PLT32 relocation.
5248 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
5251 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
5253 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
5255 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
5256 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
5257 (elf_i386_relocate_section): Allow for .plt to go missing.
5258 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
5259 can use a relative reloc for got as elf_i386_relocate_section.
5260 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
5262 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
5264 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
5266 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
5268 * Makefile.am (coff64-rs6000.lo): New rule.
5269 * Makefile.in: Regenerate.
5270 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
5271 xcoff_is_local_label_name, xcoff_rtype2howto,
5272 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
5273 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
5274 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
5275 (NO_COFF_SYMBOLS): Define.
5276 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
5277 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
5279 (MINUS_ONE): New macro.
5280 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5282 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5283 coff_SWAP_aux_out): Map to the new functions.
5284 * coff64-rs6000.c: New file.
5285 * libcoff.h (bfd_coff_backend_data): Add new fields
5286 _bfd_coff_force_symnames_in_strings and
5287 _bfd_coff_debug_string_prefix_length.
5288 (bfd_coff_force_symnames_in_strings,
5289 bfd_coff_debug_string_prefix_length): New macros for above fields.
5290 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5291 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
5292 of using coff_swap_sym_in directly.
5293 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5294 (coff_set_flags) Set magic for XCOFF64.
5295 (coff_compute_section_file_positions): Add symbol name length to
5296 string section length if bfd_coff_debug_string_prefix_length is
5298 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5299 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5300 using coff_swap_lineno_in directly.
5301 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5302 and _bfd_coff_debug_string_prefix_length fields.
5303 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5304 symbol names into strings table when
5305 bfd_coff_force_symnames_in_strings is true.
5306 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5307 SET_RELOC_VADDR): New macros.
5308 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5309 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5311 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5312 changes within RS6000COFF_C specific code.
5313 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5314 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5315 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5316 Extend existing hack on target name.
5317 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5319 * coff-tic54x.c (ticof): Keep up to date with new fields
5320 in bfd_coff_backend_data.
5321 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5322 targ_selvecs to include rs6000coff64_vec for rs6000.
5323 * configure.in: Add rs6000coff64_vec case.
5324 * cpu-powerpc.c: New bfd_arch_info_type.
5326 2000-04-24 Jeffrey A Law (law@cygnus.com)
5328 * config.bfd: Only disable elf32-hppa vectors, not all of the
5329 BSD and OSF configuration support. Provide (disabled) clauses
5331 * configure.in: Add clause for PA64 support.
5332 * configure: Rebuilt.
5334 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5335 (bfd_elf64_hppa_vec): Declare.
5337 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5338 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5339 (elf64-hppa.lo): Add dependencies.
5340 * Makefile.in: Rebuilt.
5342 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5344 2000-04-24 Jason Eckhardt <jle@cygnus.com>
5346 * libhppa.h (dis_assemble_16): New function.
5347 (pa_arch): Added pa20w element.
5349 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
5351 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5352 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5353 bfd_elf64_slurp_reloc_table.
5355 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5356 definitions to get external names.
5357 (elf_write_relocs): Renamed from write_relocs and make global.
5358 (elf_slurp_reloc_table): Make global.
5359 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5361 * archive.c (hpux_uid_gid_encode): New function.
5362 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5363 defined and the ID is greater than 99999.
5364 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5365 special uid/gid fields into 32 bit values.
5367 2000-04-21 Matthew Green <mrg@cygnus.com>
5369 * config.bfd: Add NetBSD/sparc64 support.
5371 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5372 David Mosberger <davidm@hpl.hp.com>
5373 Timothy Wall <twall@cygnus.com>
5374 Jim Wilson <wilson@cygnus.com>
5376 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5377 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5378 (BFD64_BACKENDS): Add elf64-ia64.lo.
5379 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5380 (cpu-ia64.lo, elf64-ia64.lo): New rules.
5381 * Makefile.in: Rebuild.
5382 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5383 (bfd_ia64_arch): Declare.
5384 (bfd_archures_list): Add bfd_ia64_arch.
5385 * bfd-in2.h: Rebuild.
5386 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5387 * configure: Rebuild.
5388 * configure.host: (ia64-*-linux*): New host.
5389 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5390 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5391 * elf.c (prep_headers): Add bfd_arch_ia64.
5392 * libbfd.h: Rebuild.
5393 * reloc.c: Add IA-64 relocations.
5394 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5396 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5397 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5399 2000-04-21 Richard Henderson <rth@cygnus.com>
5401 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5402 contents when performing a partial link.
5403 (bfd_elf_d30v_reloc_21): Likewise.
5405 2000-04-20 H.J. Lu <hjl@gnu.org>
5407 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5408 patch to symbols defined by a shared object.
5409 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5411 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5414 * dwarf2.c (concat_filename): Avoid string literal concatenation.
5415 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5417 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
5419 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5420 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5421 (coff-ia64.lo): Add dependency.
5422 * Makefile.in: Regenerate.
5423 * coff-ia64.c: New file.
5424 * efi-app-ia32.c: Ditto.
5425 * efi-app-ia64.c: Ditto.
5426 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5427 (coff_set_flags): Ditto.
5428 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5429 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5430 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5431 * configure: Regenerate.
5432 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5433 (PUT_OPTHDR_IMAGE_BASE): Ditto.
5434 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5435 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5436 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5437 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5438 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5439 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5440 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5441 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5442 (GET_PDATA_ENTRY): Ditto.
5443 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5444 data_start. Use above macros to read fields that are 64 bit wide for
5445 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
5446 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5447 FileAlignment and SectionAlignment to minimum alignment if they
5449 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5450 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5451 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5452 Use above macros to write fields that are 64 bit wide for
5454 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5455 5*4 otherwise. This should be right for IA-32 and IA-64, but may
5456 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
5457 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
5458 begin address, end address, and unwind info address only. Use
5459 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
5461 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5462 HIGH3ADJ relocation names.
5463 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5464 * targets.c: Declare bfd_efi_app_ia32_vec and
5465 bfd_efi_app_ia64_vec.
5466 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5467 bfd_efi_app_ia64_vec.
5469 2000-04-17 Timothy Wall <twall@cygnus.com>
5471 * bfd-in2.h: Add prototypes for tic54x load page access.
5472 * bfd-in.h: Regenerate.
5473 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5474 in customized _set_arch_mach function.
5475 * coffcode.h (coff_set_alignment_hook): Set section load page if
5476 the appropriate macro is defined.
5477 (write_object_contents): Read section load page.
5479 2000-04-13 Alan Modra <alan@linuxcare.com.au>
5481 * elf32-hppa.h: Update copyright date.
5483 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5484 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5486 * elf32-d30v.c (MAX32): Don't use LL suffix.
5487 (MIN32): Define in terms of MAX32.
5488 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5490 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5493 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5495 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5497 * dep-in.sed: Match space before file name, not after.
5498 * Makefile.am: Regenerate dependencies.
5499 * Makefile.in: Regenerate.
5501 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5502 case, allow address wrap-around stupidly removed 2000-03-17. Sign
5503 extend without an if statement.
5505 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5507 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5509 * elf32-mips.c (gprel16_with_gp): Likewise.
5510 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
5511 here using -0x40000, not (int)0xfffc0000.
5512 (elf32_hppa_size_of_stub): Likewise.
5514 2000-04-11 Timothy Wall <twall@cygnus.com>
5516 * coff-tic54x.c: Now builds with all targets.
5517 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
5518 * Makefile.in: Regenerate.
5519 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
5520 unitialized variable.
5522 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
5524 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5525 --enable-build-warnings option.
5526 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5527 * Makefile.in, configure: Re-generate.
5529 2000-04-07 Nick Clifton <nickc@cygnus.com>
5531 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
5532 BFD_RELOC_THUMB_PCREL_BLX.
5534 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5535 R_ARM_XPC25 and R_ARM_THM_PC22.
5537 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
5538 R_ARM_XPC25 and R_ARM_THM_XPC22.
5539 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
5540 R_ARM_[XPC25|THM_XPC22].
5542 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
5543 elf/arm-oabi.h to elf/arm.h
5545 * Makefile.am: Fix dependency for elfarm-oabi.c
5546 * Makefile.in: Regenerate.
5548 * bfd-in2.h: Regenerate.
5549 * libbfd.h: Regenerate.
5551 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5553 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
5554 and restore it on failure. Release newly allocated tdata on
5557 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
5559 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
5560 (decode_line_info): Set it. Report error if unit->line_offset is
5561 equal to or larger than it.
5563 2000-04-07 Timothy Wall <twall@cygnus.com>
5565 * targets.c: Added vecs for tic54x.
5566 * reloc.c: Added relocs for tic54x.
5567 * libbfd.h: Regenerated.
5568 * configure: Add TI COFF vecs for tic54x.
5569 * configure.in: Ditto.
5570 * config.bfd (targ_cpu): Recognize new tic54x target.
5571 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
5572 * bfd-in2.h: Add tic54x target and relocations.
5573 * Makefile.am, Makefile.in: Add tic54x target.
5574 * archures.c (bfd_archures_list): Add tic54x target.
5575 * coff-tic54x.c: New.
5576 * cpu-tic54x.c: New.
5578 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5580 * elfcore.h (elf_core_file_p): call backend_object_p which
5581 thereby gets an opportunity to update the arch/machine type.
5583 2000-04-06 Timothy Wall <twall@cygnus.com>
5585 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
5586 class. Handle SEC_CLINK and SEC_BLOCK flags.
5587 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
5588 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
5590 2000-04-06 Nick Clifton <nickc@cygnus.com>
5592 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
5593 EF_INTERWORK if this is an unknown EABI.
5594 (elf32_arm_merge_private_bfd_data): Check EABI version
5595 numbers. Only check EF_xxx flags if the EABI version number
5597 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
5598 if the EABI version number is unknown.
5599 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
5600 if the EABI version number is unknown.
5602 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5604 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
5605 BFD_RELOC_SH_LOOP_END.
5606 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
5607 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
5608 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
5609 (sh_elf_reloc_loop): New function.
5610 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
5612 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
5613 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
5614 * bfd-in2.h, libbfd.h: Regenerate.
5616 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5618 * po/bfd.pot: Regenerate.
5620 * Makefile.am: Remove extraneous mkdep comment.
5621 (MKDEP): Use gcc -MM rather than mkdep.
5622 (DEP): Quote when passing vars to sub-make. Add warning
5624 (DEP1): Rewrite for "gcc -MM".
5625 (CLEANFILES): Add DEP2.
5626 Update dependencies.
5627 * Makefile.in: Regenerate.
5629 2000-04-03 Kevin Buettner <kevinb@redhat.com>
5631 * configure.in: Added corefile support for AIX 4.3. In particular,
5632 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
5633 compiling rs6000-core.c.
5634 * configure: Regenerated.
5636 2000-04-03 H.J. Lu <hjl@gnu.org>
5638 * cache.c (bfd_open_file): Unlink the output file only if
5639 it has non-zero size.
5641 2000-04-01 Ken Block USG <block@zk3.dec.com>
5643 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
5644 relative relocations for non-loaded sections in shared objects.
5645 (elf64_alpha_check_relocs): Similarly.
5647 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
5649 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
5650 BFD_RELOC_16 to switch for extended relocs.
5651 (MY_swap_ext_reloc_in): New.
5652 (MY_swap_ext_reloc_out): New.
5653 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
5654 than NAME(aout,swap_ext_reloc_in) for extended relocs.
5655 (NAME(aout,squirt_out_relocs)): Similarly use
5656 MY_swap_ext_reloc_out.
5657 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
5659 2000-04-03 Kazu Hirata <kazu@hxi.com>
5661 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
5662 the R_PCRWORD_B case.
5664 2000-03-31 Thomas de Lellis <tdel@wrs.com>
5666 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
5670 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
5672 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
5673 HOWTO references to bfd_elf_generic_reloc, that have
5674 partial_inplace == true, now use the new function. The function
5675 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
5676 extends its fixes to the R_M32R_{16,24,32} relocs.
5677 The new logic in m32r_elf_lo16_reloc() has been removed, and
5678 it instead calls the new routine to obtain that functionality.
5680 2000-03-27 Alan Modra <alan@linuxcare.com.au>
5682 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
5683 elf32_avr_check_relocs, avr_final_link_relocate,
5684 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
5685 elf32_avr_object_p): Add prototypes.
5686 (elf32_avr_gc_mark_hook): Add default for h->root.type.
5687 (bfd_elf_avr_final_write_processing): Make static.
5689 2000-03-27 Denis Chertykov <denisc@overta.ru>
5691 * cpu-avr.c: New file. BFD support routines for AVR architecture.
5692 * archures.c (bfd_architecture): Add AVR architecture.
5693 (bfd_archures_list): Add reference to AVR architecture info.
5694 * elf.c (prep_headers): Handle bfd_arch_avr.
5695 * reloc.c: Add various AVR relocation enums.
5696 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
5698 * Makefile.am: Add support for AVR elf.
5699 * configure.in: Likewise.
5700 * config.bfd: Likewise.
5701 * Makefile.in: Regenerate.
5702 * configure: This too.
5703 * bfd-in2.h: And this.
5704 * libbfd.h: And this.
5706 2000-03-24 H.J. Lu <hjl@gnu.org>
5708 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
5709 (elf64_alpha_find_reloc_at_ofs): Likewise.
5711 2000-03-17 Alan Modra <alan@linuxcare.com.au>
5713 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
5714 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
5715 allowable range used to be -2**(n-1) to 2**n-1.
5716 * reloc.c (_bfd_relocate_contents): Same here. Also replace
5717 "boolean overflow" with "bfd_reloc_status_type flag".
5719 2000-03-14 Doug Evans <dje@casey.transmeta.com>
5721 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5723 2000-03-14 Kazu Hirata <kazu@hxi.com>
5725 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5726 of shrinks properly, including the last reloc.
5728 2000-03-13 Kazu Hirata <kazu@hxi.com>
5730 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5733 2000-03-11 Alan Modra <alan@linuxcare.com.au>
5735 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5736 a format mismatch rather than an "error" from bfd_read such as
5737 bfd_error_file_truncated.
5739 2000-03-10 Geoff Keating <geoffk@cygnus.com>
5741 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5742 sign-extension and big-endian compensation for
5743 R_MIPS_64 even in ld -r.
5745 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5747 * elf32-mips.c (mips_elf_next_relocation): Rename from
5748 mips_elf_next_lo16_relocation, and generalize to look
5749 for any relocation type.
5750 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5751 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5752 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5753 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5754 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5755 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5756 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5757 (mips_rtype_to_howto): Likewise.
5758 (mips_elf_calculate_relocation): Handle new relocs.
5759 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5760 are paired. The addend for R_MIPS_GNU_REL16_S2
5761 is shifted right two bits.
5763 2000-03-10 Alan Modra <alan@linuxcare.com.au>
5765 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5766 comment, and ensure it doesn't happen again.
5767 (bfd_install_relocation): Same here.
5768 (_bfd_relocate_contents): Don't bother assigning unused signmask
5769 shift result. Fix typos in comments.
5770 Remove trailing whitespace throughout file.
5772 2000-03-07 Doug Evans <dje@casey.transmeta.com>
5774 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5775 * bfd-in2.h: Rebuild.
5777 2000-03-06 Nick Clifton <nickc@cygnus.com>
5779 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5781 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5782 (SIZEOF_ILF_STRINGS): Redefine.
5783 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
5784 relative reloc, as opposed to a section relative reloc.
5785 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
5787 Add length of symbol's prefix to string pointer.
5788 Store a pointer to the symbol in the symbol pointer table.
5789 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
5790 Initialise the symbol pointer table.
5791 Store the hint in the Hint/Name table.
5792 Make the jump reloc be symbol realtive, not section relative.
5793 Create an import symbol for imported code.
5795 2000-03-06 Catherine Moore <clm@cygnus.com>
5797 * elf.c (swap_out_syms): Check for null type_ptr.
5799 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
5801 * aout-target.h (MY(write_object_contents)): Remove unused
5802 and unusable "#if CHOOSE_RELOC_SIZE".
5803 * pc532-mach.c (MY(write_object_contents)): Ditto.
5804 * netbsd.h (MY(write_object_contents)): Ditto.
5805 * hp300hpux.c (MY(write_object_contents)): Ditto.
5806 * freebsd.h (MY(write_object_contents)): Ditto.
5807 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
5809 2000-02-29 H.J. Lu <hjl@gnu.org>
5811 * peicode.h (jtab): Make it static.
5813 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
5814 defined and COFF_IMAGE_WITH_PE is not defined.
5815 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
5816 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
5818 2000-03-01 Nick Clifton <nickc@cygnus.com>
5820 * coff-arm.c (bfd_arm_process_before_allocation): Make
5821 'symndx' signed to prevent compile time warning.
5823 * coff-mcore.c: Remove unused prototype for pe_object_p.
5825 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
5826 functions that are not used when COFF_IMAGE_WITH_PE is
5828 (struct sh_opcode): Change type of 'flags' field to unsigned
5829 long so that it can hold the USESAS flag.
5831 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
5833 * elf-m10300.c (mn10300_elf_relax_section): Initialise
5836 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
5838 Remove unusued variables and code.
5839 (elf_backend_add_symbol_hook): Fix prototype.
5841 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
5844 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
5847 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
5849 Remove unusued variables and code.
5850 (elf_backend_add_symbol_hook): Fix prototype.
5852 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
5854 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
5855 to unused function parameter.
5857 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
5859 Use EMPTY_HOWTO to initialise empty howto slots.
5860 Remove unused variables.
5862 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
5864 2000-03-01 H.J. Lu <hjl@gnu.org>
5866 * aoutx.h (aout_link_input_section_std): Pass "true" to
5867 the undefined_symbol callback.
5868 (aout_link_input_section_ext): Likewise.
5869 * bout.c (get_value): Likewise.
5870 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5871 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
5873 (alpha_relocate_section): Likewise.
5874 * coff-arm.c (coff_arm_relocate_section): Likewise.
5875 * coff-i960.c (coff_i960_relocate_section): Likewise.
5876 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5877 * coff-mips.c (mips_relocate_section): Likewise.
5878 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5879 * coff-sh.c (sh_relocate_section): Likewise.
5880 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5881 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
5882 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5883 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5884 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5885 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5886 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5887 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5888 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5889 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5890 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5891 * elf32-v850.c (v850_elf_relocate_section): Likewise.
5892 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
5893 * elflink.h (elf_link_output_extsym): Likewise.
5894 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
5895 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
5896 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
5898 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
5899 undefined_symbol callback when building shared library with
5900 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
5902 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5903 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5904 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5905 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5906 (elf32_mips_get_relocated_section_content): Likewise.
5907 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5908 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5909 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5910 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5912 2000-02-28 Nick Clifton <nickc@cygnus.com>
5914 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
5915 * Makefile.in: Regenerate.
5917 * configure.in: Add support for mips and sh pe vectors.
5918 * configure: regenerate.
5920 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
5923 * targets.c: Add mips and sh pe vectors.
5925 * libpei.h (coff_final_link_postscript): Only define if not
5928 * coffcode.h: Add support for WinCE magic numbers.
5930 * peigen.c (pe_print_reloc): Update comment and rearrange
5931 appending of newline character.
5933 * peicode.h: Add support for Image Library Format.
5934 (pe_ILF_vars): Structure containing data used by ILF code.
5935 (pe_ILF_make_a_section): New function. Create a section based
5937 (pe_ILF_make_a_reloc): New function. Create a reloc based on
5939 (pe_ILF_make_a_symbol): New function. Create a symbol based
5941 (pe_ILF_save_relocs): New function. Store the relocs created
5942 by pe_ILF_make_a_reloc in a section.
5943 (pe_ILF_build_a_bfd): New function. Create a BFD describing
5945 (pe_ILF_object_p): New function. Return a bfd_target pointer
5947 (pe_bfd_object_p): If an ILF object is detected call
5948 pe_ILF_object_p on it.
5950 * coff-arm.c: Add support for WinCE relocs which are different
5951 from normal ARM COFF relocs.
5952 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
5954 * coff-sh.c: Add support for sh-pe target.
5955 * pe-sh.c: New file. Support code for sh-pe target.
5956 * pei-sh.c: New file. Support code for sh-pe target.
5958 * pe-mips.c: New file. Support code for mips-pe target.
5959 * pei-mips.c: New file. Support code for mips-pe target.
5961 2000-02-27 Jakub Jelinek <jakub@redhat.com>
5963 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
5964 architecture if the object causing the bump is dynamic.
5965 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
5966 and also don't it for memory ordering.
5967 (sparc64_elf_write_relocs): Take src_rela out of the loop.
5969 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5971 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
5972 calling bfd_get_section_size_before_reloc.
5973 (decode_line_info): Likewise.
5974 (_bfd_dwarf2_find_nearest_line): Likewise.
5976 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
5978 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
5979 name of the libtool directory.
5980 * Makefile.in: Rebuild.
5982 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
5984 * som.c (SOM_HOWTO): Define.
5985 (som_hppa_howto_table): Use it.
5987 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5989 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
5991 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
5993 2000-02-24 Catherine Moore <clm@cygnus.com>
5995 * som.c (som_misc_symbol_info): Add field
5997 (som_bfd_derive_misc_symbol_info): Initialize
5999 (som_build_and_write_symbol_table): Keep track
6000 of secondary_def field.
6001 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
6002 if secondary_def field is set.
6003 (som_bfd_ar_write_symbol_stuff): Initialize
6006 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
6008 * dwarf2.c (read_address): Read 16-bits addresses.
6009 (parse_comp_unit): Accept addr_size == 2.
6011 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6013 * bfd-in.h: Update copyright date.
6015 2000-02-23 Linas Vepstas <linas@linas.org>
6017 * cpu-i370.c: New file.
6018 * elf32-i370.c: New file.
6019 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
6020 (bfd_i370_arch): New.
6021 (bfd_archures_list): Add bfd_i370_arch.
6022 * elf.c (prep_headers): Add bfd_arch_i370.
6023 * Makefile.am: Add support for IBM 370 elf.
6024 * config.bfd: Likewise.
6025 * configure.in: Likewise.
6026 * libbfd.h (bfd_reloc_code_real_names): Likewise.
6027 * reloc.c (bfd_reloc_code_type): Likewise.
6028 * targets.c: Likewise.
6030 * Makefile.in: Regenerate.
6031 * configure: Regenerate.
6032 * bfd-in2.h: Regenerate.
6034 2000-02-22 Ian Lance Taylor <ian@zembu.com>
6036 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
6037 invalid relocation types, and change them to R_386_NONE.
6039 2000-02-22 H.J. Lu <hjl@gnu.org>
6041 * elflink.h (elf_link_add_object_symbols): If a version symbol is
6042 not defined, don't add a second ELF_VER_CHR.
6044 * elflink.h (elf_bfd_final_link): Call output_extsym for global
6045 symbols converted to local symbols even when stripping all
6047 (elf_link_output_extsym): Process global symbols converted to
6048 local symbols even if they are being stripped.
6050 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6052 * archures.c (bfd_octets_per_byte): Return unsigned int.
6053 (bfd_arch_mach_octets_per_byte): Ditto.
6054 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
6056 * section.c (bfd_get_section_size_before_reloc): Quell signed
6057 vs. unsigned comparison warning.
6058 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
6059 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
6060 change. What was I thinking?
6061 * bfd-in2.h: Regenerate.
6063 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
6064 (elf_gc_sections): Same here.
6065 (elf_gc_common_finalize_got_offsets): And here.
6067 2000-02-21 Ian Lance Taylor <ian@zembu.com>
6069 ELF HPPA doesn't work at present; remove it until it does.
6070 * config.bfd: Comment out setting targ_defvec to
6072 * Makefile.am: Rebuild dependencies.
6073 (BFD32_BACKENDS): Remove elf32-hppa.lo.
6074 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
6075 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
6076 * Makefile.in: Rebuild.
6077 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
6079 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6081 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
6082 is no bfd_free(). Revert bfd_free part of previous change.
6084 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6086 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
6088 (coff_compute_section_file_positions): Use bfd_free to pair
6090 (coff_write_object_contents): Likewise.
6092 * coff-rs6000.c (xcoff_howto_table_16): New variable.
6093 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
6095 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
6097 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
6098 (xcoff_ar_file_hdr_big): New structure.
6099 (SIZEOF_AR_FILE_HDR_BIG): New macro.
6100 (xcoff_ar_hdr_big): New structure.
6101 (SIZEOF_AR_HDR_BIG): New macro.
6102 (xcoff_big_format_p): New macro.
6103 (xcoff_ardata_big): New macro.
6104 (arch_xhdr_big): New macro.
6105 (xcoff_slurp_armap): Handle large archives.
6106 (xcoff_archive_p): Detect large archives.
6107 (xcoff_read_ar_hdr): Handle large archives.
6108 (xcoff_openr_next_archived_file): Handle large archives.
6109 (xcoff_generic_stat_arch_elt): Handle large archives.
6110 (xcoff_write_armap_old): Rename from xcoff_write_armap.
6111 (xcoff_write_armap_big): New function.
6112 (xcoff_write_armap): New function, dispatch to _old or _big.
6113 (xcoff_write_archive_contents_old): Rename from
6114 xcoff_write_archive_contents.
6115 (xcoff_write_archive_contents_big): New function.
6116 (xcoff_write_archive_contents): New function, dispatch to _old or
6119 2000-02-18 Richard Henderson <rth@cygnus.com>
6121 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
6122 and hide_symbol members.
6123 (elf_link_hash_copy_indirect): Remove.
6124 (elf_link_hash_hide_symbol): Remove.
6125 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
6126 and elf_backend_hide_symbol.
6127 (_bfd_elf_link_hash_copy_indirect): Declare.
6128 (_bfd_elf_link_hash_hide_symbol): Declare.
6129 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
6130 (_bfd_elf_link_hash_hide_symbol): Likewise.
6131 (_bfd_elf_link_hash_table_init): Don't init killed members.
6132 * elflink.h (elf_link_add_object_symbols): Use the bed function
6133 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
6134 (elf_link_assign_sym_version): Likewise.
6135 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
6136 (elf_backend_hide_symbol): Likewise.
6137 (elfNN_bed): Update for new members.
6139 2000-02-17 Kevin Buettner <kevinb@redhat.com>
6141 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
6142 STACK_END_ADDR): Define for new core file format.
6143 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
6144 for handling the vagaries of the various core file structures used
6145 by AIX over the years.
6146 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
6147 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
6148 core_dumpx structure.
6150 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6152 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
6153 (bfd_mach_sh3_dsp): Likewise.
6154 (bfd_mach_sh4): Reinstate.
6155 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
6156 * bfd-in2.h: Regenerate.
6157 * coff-sh.c (struct sh_opcode): flags is no longer short.
6158 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
6159 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
6160 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
6161 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
6162 (sh_opcodes): No longer const.
6163 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
6164 (sh_insn_uses_reg): Check for USESAS and USESR8.
6165 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
6166 (_bfd_sh_align_load_span): Return early for SH4.
6167 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
6168 Take into account that field b of a parallel processing insn
6169 could be mistaken for a separate insn.
6170 * cpu-sh.c (arch_info_struct): New array elements for
6171 sh2, sh-dsp and sh3-dsp.
6172 Reinstate element for sh4.
6173 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
6174 (SH4_NEXT): Reinstate.
6175 (SH3_NEXT, SH3E_NEXT): Adjust.
6176 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
6177 * elf32-sh.c (sh_elf_set_private_flags): New function.
6178 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
6179 (sh_elf_merge_private_data): New function.
6180 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
6181 (bfd_elf32_bfd_copy_private_bfd_data): Define.
6182 (bfd_elf32_bfd_merge_private_bfd_data): Change to
6183 sh_elf_merge_private_data.
6185 2000-02-13 Richard Henderson <rth@cygnus.com>
6187 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
6188 hide_symbol members.
6189 (elf_link_hash_copy_indirect): New.
6190 (elf_link_hash_hide_symbol): New.
6191 * elflink.h (elf_link_add_object_symbols): Break out copy from
6192 indirect new new symbol to elf.c.
6193 (elf_link_assign_sym_version): Break out privatization of
6194 non-exported symbol to elf.c.
6195 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
6196 (_bfd_elf_link_hash_hide_symbol): New.
6197 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
6199 2000-02-13 Ian Lance Taylor <ian@zembu.com>
6201 * section.c (_bfd_strip_section_from_output): Add info parameter.
6202 If it passed as non-NULL, use it to check whether any input BFD
6203 has an input section which uses this output section. Change all
6205 * bfd-in2.h: Rebuild.
6207 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
6208 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
6210 * bfd-in2.h: Rebuild.
6212 2000-02-10 Timothy Wall <twall@cygnus.com>
6214 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
6215 allow final modifications of swapped-in symbol.
6216 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
6217 * coffcode.h (coff_write_relocs): Use macro
6218 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
6219 symbol index should be set to -1.
6221 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
6223 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
6224 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
6225 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
6226 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
6227 sh_insns_uses_or_sets_freg): New functions.
6228 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
6229 * (sh_insns_conflict): Use new functions and new macros to
6230 detect conflicts when two instructions both set same integer registers,
6231 both set same fp register, and both set special register.
6233 2000-02-09 Timothy Wall <twall@cygnus.com>
6235 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
6236 swapping in sections, so that the swapping routines have access to
6239 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
6241 * coff-go32.c: Update comment. Update copyright.
6243 2000-01-27 Thomas de Lellis <tdel@windriver.com>
6245 * syms.c (bfd_decode_symclass)
6246 Two new class characters were added - 'V' and 'v'. The
6247 meaning of 'W' is now restricted to just weak non-object
6248 symbols. This allows differentiation between, for example,
6249 weak functions vs weak objects. nm for example now dumps:
6251 'w' = weak unresolved
6252 'V' = weak global object
6253 'v' = weak unresolved object
6255 (bfd_is_undefined_symclass): New function. Return true if the
6256 given symbol class represents and undefined/unresolved symbol.
6258 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
6261 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
6263 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
6264 STT_ARM_16BIT flag set, but it is not attached to a data object
6265 return STT_ARM_16BIT so that it will be treated as code by the
6268 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6270 * coff-i386.c (i3coff_object_p): Remove prototype.
6273 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
6274 to name. Update copyright.
6276 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
6277 assignment to avoid warning. Update copyright.
6279 2000-01-24 Robert Lipe (robertl@sco.com)
6281 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6282 instead of using GNU C extension.
6284 2000-01-21 Nick Clifton <nickc@cygnus.com>
6286 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6287 amount from a bfd_in_memory structure.
6288 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6291 2000-01-14 Nick Clifton <nickc@cygnus.com>
6293 * linker.c (default_indirect_link_order): oops - fix incorrectly
6294 applied patch from Tim Wall.
6296 2000-01-13 Timothy Wall (twall@tiac.net>
6298 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6299 = scnhsz, filhsz, relsz, aoutsz, etc)
6301 * coffswap.h: Ditto.
6303 2000-01-13 Nick Clifton <nickc@cygnus.com>
6305 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6306 interwork thumb to arm stub.
6308 2000-01-13 Timothy Wall (twall@tiac.net>
6310 * archures.c (bfd_octets_per_byte): New function: Return
6312 (bfd_arch_mach_octets_per_byte): New function: Return target
6315 * section.c: Distinguish between octets and bytes for usage of
6316 _cooked_size, _raw_size, and output_offset. Clarify
6317 description of bfd_set_section_contents.
6319 * bfd-in2.h: Regenerate.
6321 * coffgen.c: Indicate that the offset parameter is in bytes, not
6324 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6325 where appropriate to get the octet offset when calling
6326 bfd_set_section_contents.
6327 (bfd_coff_reloc_link_order): Ditto.
6329 * linker.c (bfd_generic_reloc_link_order): Ditto.
6330 (_bfd_default_link_order): Ditto.
6332 * reloc.c (bfd_perform_relocation): Distinguish between octets
6333 and bytes. Use octets when indexing into octet data; use bytes
6334 when calculating target addresses.
6335 (bfd_install_relocation): Ditto.
6337 * srec.c (srec_write_section): Ditto.
6339 2000-01-13 Nick Clifton <nickc@cygnus.com>
6341 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6342 3 to 2. This allows 4 byte sized sections, which is necessary for
6343 dlltool to build functioning DLLs.
6345 2000-01-10 Philip Blundell <pb@futuretv.com>
6347 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6348 (arm*-*-conix*): New target.
6350 2000-01-10 Egor Duda <deo@logos-m.ru>
6352 * config.bfd: Include elf32_i386 vector to target list for cygwin
6355 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6356 * configure.in: Test for structure win32_pstatus_t in
6358 * configure: Regenerate.
6360 * elf.c (elfcore_grok_win32pstatus): New function: process
6361 win32_pstatus_t notes in elf core file.
6362 (elfcore_grok_note): Detect win32_pstatus notes.
6364 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6366 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6368 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6369 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6371 For older changes see ChangeLog-9899
6377 version-control: never