1 2001-08-23 Jakub Jelinek <jakub@redhat.com>
3 * elf-bfd.h (enum elf_reloc_type_class): New.
4 (struct elf_backend_data): Add elf_backend_reloc_type_class.
5 (_bfd_elf_reloc_type_class): New.
6 * elfxx-target.h (elf_backend_reloc_type_class): Define.
7 (elfNN_bed): Add elf_backend_reloc_type_class.
8 * elf.c (_bfd_elf_reloc_type_class): New.
9 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
10 is against read-only section.
11 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
12 looking up section names for DT_TEXTREL.
13 (elf_i386_reloc_type_class): New.
14 (elf_backend_reloc_type_class): Define.
15 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
16 reloc is against read-only section.
17 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
18 looking up section names for DT_TEXTREL.
19 (elf32_sparc_reloc_type_class): New.
20 (elf_backend_reloc_type_class): Define.
21 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
22 reloc is against read-only section.
23 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
24 looking up section names for DT_TEXTREL.
25 (sparc64_elf_reloc_type_class): New.
26 (elf_backend_reloc_type_class): Define.
27 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
28 (elfNN_ia64_hash_table_create): Clear ia64_info.
29 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
31 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
32 instead of looking up section names for DT_TEXTREL.
33 (elfNN_ia64_reloc_type_class): New.
34 (elf_backend_reloc_type_class): Define.
35 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
36 (struct elf_link_sort_rela): New.
37 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
38 (elf_bfd_final_link): Call elf_link_sort_relocs.
39 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
42 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
44 * configure.in (x86-bsdi): No corefile support.
45 * configure: Regenerate.
47 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
49 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
52 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
54 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
55 the alignment of dwarf2 linkonce sections to 0.
56 * coff-sto32.c: Likewise.
58 2001-08-20 Andreas Jaeger <aj@suse.de>
60 * coff-sparc.c: Add missing prototypes.
61 * elf32-s390.c: Likewise.
62 * elf32-i960.c: Likewise.
63 * aout-target.h: Likewise.
65 2001-08-20 H.J. Lu <hjl@gnu.org>
67 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
68 (elf_num_section_syms): New for num_section_syms.
70 * elf.c (elf_map_symbols): Set num_section_syms.
71 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
72 the section symbol index.
74 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
76 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
77 select the generic has table creator. All elf backends need elf
78 specific fields in the hash table.
80 2001-08-20 Alan Modra <amodra@bigpond.net.au>
82 * archive.c (offsetof): Remove define.
85 * sysdep.h (offsetof): Define.
87 2001-08-17 Alan Modra <amodra@bigpond.net.au>
89 * bfd.c (bfd_get_gp_size): Return an unsigned int.
90 (bfd_set_gp_size): Make param unsigned.
91 * bfd-in2.h: Regenerate.
92 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
93 than calling bfd_get_gp_size.
94 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
95 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
97 2001-08-17 Alan Modra <amodra@bigpond.net.au>
99 * linker.c (default_fill_link_order): Handle four byte fill value.
101 2001-08-17 Alan Modra <amodra@bigpond.net.au>
103 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
105 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
107 * elf64-mips.c (UNUSED_RELOC): Define.
108 (mips_elf64_howto_table_rel): Use it.
109 (mips_elf64_howto_table_rela): Here too.
110 (mips_elf64_write_relocs): Fix signed/unsigned warning.
112 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
114 * coffgen.c (coff_print_symbol): Fix warnings.
115 (coff_find_nearest_line): Likewise.
116 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
117 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
118 * format.c (bfd_check_format_matches): Likewise.
119 (bfd_set_format): Likewise.
120 * coff-ia64.c: Add missing prototypes.
121 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
122 signed to silence warnings.
123 (elf64_alpha_relocate_section): Likewise.
124 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
125 (elf64_alpha_add_symbol_hook): Likewise.
126 (elf64_alpha_final_link): Likewise.
127 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
128 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
129 (elf64_alpha_size_got_sections): Likewise.
130 * elfxx-ia64.c: Add missing prototypes.
131 (elfNN_ia64_relocate_section): Fix warning.
132 (elfNN_ia64_unwind_entry_compare): Make params const.
134 2001-08-17 Alan Modra <amodra@bigpond.net.au>
136 * config.bfd (targ64_selvecs): New.
137 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
139 * bfd-in.h (BFD_VERSION): Remove wrong comment.
140 (BFD_DEFAULT_TARGET_SIZE): New.
141 (BFD_ARCH_SIZE): Comment.
142 * configure.in (target_size): New. Set instead of target64 in
143 selvecs case statement. Set target64 from it.
144 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
145 * bfd-in2.h: Regenerate.
146 * configure: Regenerate.
148 2001-08-17 Alan Modra <amodra@bigpond.net.au>
150 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
151 (bfd_errmsgs): Add corresponding message.
152 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
153 finding an archive that contains different format object files.
154 Return bfd_error_wrong_object_format for this case.
155 * format.c: Formatting fixes. s/CONST/const/.
156 (bfd_check_format_matches): Accept archives that give
157 bfd_error_wrong_object_format if no full match is found. Tidy
158 code handling matching_vector. Don't return a pointer to freed
159 memory in `matching'. Handle ambiguous matches as for partial
161 * bfd-in2.h: Regenerate.
163 2001-08-15 Alan Modra <amodra@bigpond.net.au>
165 * libieee.h (common_header_type): Add last_byte field.
167 * ieee.c: Add missing prototypes. Some format fixes.
168 (struct output_buffer_struct): Move for availability to prototypes.
169 (ieee_part_after): New function.
170 (ieee_slurp_debug): Use it here.
171 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
172 ieee_part_after to set last_byte to one past end of current part.
174 (ieee_pos): Pass in ieee_data_struct rather than bfd.
176 (parse_expression): Don't go beyond the end of the current part.
177 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
178 (ieee_get_symtab_upper_bound, ieee_get_symtab,
179 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
180 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
181 ieee_set_section_contents, ieee_write_object_contents,
182 ieee_make_empty_symbol): Make static.
183 (ieee_archive_p): Correct comments regarding bfd_read.
184 (ieee_object_p): Similarly.
185 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
186 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
187 input_bfd, output_bfd, output_buffer.
188 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
189 do_with_relocs, ie. as a symbol for relocatable files.
190 (ieee_vec): Add comments showing functions referenced by macros.
192 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
194 * aout-tic30.c: Add missing prototypes. Fix formatting.
195 * aout-ns32k.c: Add missing prototypes. Fix formatting.
196 * peXXigen.c: Add missining prototypes. Fix formatting.
197 * aout-adobe.c: Add missining prototypes. Fix formatting.
199 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
201 * elf32-v850.c: Add missing function prototypes.
204 * cpu-v850.c: Add missing function prototype.
207 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
209 * elf-bfd.h (struct elf_backend_data): Add new fields
210 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
211 (bfd_elf_sprintf_vma): Rename function prototype to
212 '_bfd_elf_sprintf_vma'.
213 (bfd_elf_fprintf_vma): Rename function prototype to
214 '_bfd_elf_fprintf_vma'.
215 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
216 directly, instead indirect via the elf_backend_data structure.
217 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
218 instead indirect via the elf_backend_data structure.
219 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
220 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
221 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
223 (elf_backend_fprintf_vma): Initialise if not already defined.
224 (struct elf_backend_data): Initialise the
225 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
227 2001-08-10 Andreas Jaeger <aj@suse.de>
229 * elf64-sparc.c: Add missing prototypes.
230 * elf32-cris.c: Likewise.
231 * elf32-i370.c: Likewise.
232 * elf64-hppa.c: Likewise.
233 * elf64-s390.c: Likewise.
235 2001-08-10 Andreas Jaeger <aj@suse.de>
237 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
238 Add prototypes where needed.
240 2001-08-10 H.J. Lu <hjl@gnu.org>
242 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
243 (bfd_fprintf_vma): Likewise.
245 2001-08-10 H.J. Lu <hjl@gnu.org>
247 * bfd.c (bfd_sprintf_vma): Don't return void.
248 (bfd_fprintf_vma): Likewise.
250 2001-08-10 Andreas Jaeger <aj@suse.de>
252 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
254 * configure: Regenerate.
256 2001-08-10 Alan Modra <amodra@bigpond.net.au>
258 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
259 warning if not BFD64. Add braces so emacs auto format works.
260 (bfd_elf_fprintf_vma): Likewise.
262 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
264 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
265 param to agree with libxcoff.h.
266 (xcoff_swap_ldhdr_out): Likewise.
267 (xcoff_swap_ldsym_in): Likewise.
268 (xcoff_swap_ldsym_out): Likewise.
269 (xcoff_swap_ldrel_in): Likewise.
270 (xcoff_swap_ldrel_out): Likewise.
271 (xcoff_create_csect_from_smclas): Likewise.
272 * coff64-rs6000.c: Add missing prototypes.
273 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
275 (xcoff64_swap_ldhdr_out): Likewise.
276 (xcoff64_swap_ldsym_in): Likewise.
277 (xcoff64_swap_ldsym_out): Likewise.
278 (xcoff64_swap_ldrel_in): Likewise.
279 (xcoff64_swap_ldrel_out): Likewise.
280 (xcoff64_ppc_relocate_section): Make static.
281 (xcoff64_slurp_armap): Likewise.
282 (xcoff64_archive_p): Likewise.
283 (xcoff64_openr_next_archived_file): Likewise.
284 (xcoff64_sizeof_headers): Likewise.
285 (xcoff64_is_lineno_count_overflow): Likewise.
286 (xcoff64_is_reloc_count_overflow): Likewise.
287 (xcoff64_loader_symbol_offset): Likewise.
288 (xcoff64_loader_reloc_offset): Likewise.
289 * elf64-gen.c: Add missing prototypes.
291 2001-08-09 H.J. Lu <hjl@gnu.org>
293 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
294 (bfd_elf_fprintf_vma): Likewise.
296 2001-08-09 H.J. Lu <hjl@gnu.org>
298 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
301 * bfd-in2.h: Regenerated.
303 2001-08-09 H.J. Lu <hjl@gnu.org>
305 * bfd-in.h (bfd_sprintf_vma): New prototype.
306 (bfd_fprintf_vma): Likewise.
307 (bfd_elf_sprintf_vma): Likewise.
308 (bfd_elf_fprintf_vma): Likewise.
309 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
310 * bfd-in2.h: Regenerated.
312 * bfd.c (bfd_sprintf_vma): New. Defined.
313 (bfd_fprintf_vma): Likewise.
315 * elf.c (bfd_elf_sprintf_vma): New. Defined.
316 (bfd_elf_fprintf_vma): Likewise.
318 2001-08-09 Alan Modra <amodra@bigpond.net.au>
320 * coff-rs6000.c: Add missing prototypes.
321 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
322 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
323 xcoff_loader_reloc_offset): Make static.
324 * dwarf1.c: Add missing prototypes.
325 * dwarf2.c: Add missing prototypes.
326 (struct abbrev_info): Move definition.
327 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
328 * elf.c: Add missing prototypes.
329 * elf32-gen.c: Likewise.
330 * elf32-i386.c: Likewise.
331 * elf32-ppc.c: Likewise.
332 (ppc_elf_sort_rela): Use PTR instead of "void *".
333 * elflink.h: Add missing prototypes. Formatting fixes.
334 * merge.c: Add missing prototypes.
335 (last4_eq): Use PTR instead of "void *".
337 * syms.c: Add missing prototypes.
339 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
341 * bfd.c: Fix formatting.
342 * bfd-in2.h: Regenerate.
344 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
346 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
347 true (this target uses REL relocations) and 'pcrel_offset' to
348 false (the PC is implied, not stored in the offset).
350 2001-08-08 Alan Modra <amodra@bigpond.net.au>
352 1999-10-19 Linus Nordberg <linus@swox.se>
353 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
354 * elfxx-target.h (elf_backend_want_got_sym): Define.
355 (elfNN_bed): Add elf_backend_want_got_sym.
356 * elflink.c (_bfd_elf_create_got_section): Define
357 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
359 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
361 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
362 (find_rela_addend): New function.
363 (parse_comp_unit): Call it to find the abbrev offset addend.
364 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
365 members of dwarf2_debug as debugging information is read.
367 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
369 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
370 targets as well as sh-pe.
372 2001-08-03 Ben Harris <bjh21@netbsd.org>
374 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
375 reloc from start of section when computing value for R_ARM_REL32
378 2001-08-03 Alan Modra <amodra@bigpond.net.au>
380 From H.J. Lu <hjl@gnu.org>
381 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
382 keep relocs for undefined syms if there are no dynamic sections in
384 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
386 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
388 * cofflink.c (coff_link_check_ar_symbols): also search for
389 __imp__symbol as well as _symbol.
390 * linker.c (_bfd_generic_link_add_archive_symbols): also
391 search for __imp__symbol as well as _symbol.
393 2001-08-01 Adam Nemet <anemet@lnxw.com>
395 * elf.c (elf_sort_sections): Return zero only as the last step.
397 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
399 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
401 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
402 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
405 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
407 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
408 to match corresponding bfd_coff_backend data member.
410 2001-07-24 Alan Modra <amodra@bigpond.net.au>
412 * Makefile.am: Update dependencies with "make dep-am".
413 * Makefile.in: Regenerate
415 2001-07-15 H.J. Lu <hjl@gnu.org>
417 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
418 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
419 * Makefile.in: Regenerate.
421 2001-07-11 H.J. Lu <hjl@gnu.org>
423 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
424 flags when creating the reloc section if the ALLOC flag in the
425 source section is set.
427 2001-07-11 Steve Ellcey <sje@cup.hp.com>
429 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
430 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
431 * bfd-in2.h: Regenerate.
432 * libbfd.h: Regenerate.
433 * elfxx-ia64.c (ia64_howto_table): Define how to handle
435 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
436 (elfNN_ia64_check_relocs): Likewise.
437 (elfNN_ia64_install_value): Likewise.
438 (elfNN_ia64_relocate_section): Likewise.
440 2001-07-11 Jakub Jelinek <jakub@redhat.com>
442 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
444 (elf32_sparc_check_relocs): Likewise.
445 Only create .rela section for alloced sections in shared libraries.
446 (elf32_sparc_relocate_section): Likewise.
447 Remove redundant check.
448 Optimize unaligned reloc usage.
449 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
452 2001-07-11 H.J. Lu <hjl@gnu.org>
454 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
455 ALLOC|LOAD flags as the source section for debugging sections
456 when creating the reloc section.
458 2001-07-05 Jim Wilson <wilson@redhat.com>
460 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
461 the section of the bigger symbol.
463 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
465 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
467 * peicode.h (coff_swap_scnhdr_in): For sections containing
468 uninitialised data, only set their size to s_paddr if this does
469 not reset their size to zero. MS's latest compilers will set
472 2001-07-04 H.J. Lu <hjl@gnu.org>
474 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
475 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
478 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
480 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
482 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
483 sections being discarded.
485 2001-06-30 Alan Modra <amodra@bigpond.net.au>
487 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
488 instead of _bfd_elfcore_section_from_phdr.
489 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
490 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
491 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
492 (elfcore_grok_prstatus): Likewise.
493 (elfcore_grok_lwpstatus): Likewise.
494 (bfd_get_elf_phdr_upper_bound): Likewise.
495 (elfcore_make_note_pseudosection): Formatting.
496 (_bfd_elfcore_strndup): Formatting.
497 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
498 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
500 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
502 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
503 and _bfd_elfcore_strndup.
504 (struct elf_backend_data): Add elf_backend_grok_prstatus
505 and elf_backend_grok_psinfo.
506 * elf.c (_bfd_elfcore_make_pseudosection): New function.
507 (elfcore_grok_prstatus): Use it.
508 (elfcore_make_note_pseudosection): Likewise.
509 (elfcore_strndup): Rename to...
510 (_bfd_elfcore_strndup): Here, and make global.
511 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
512 (elfcore_grok_note): Call elf_backend_grok_prstatus
513 and elf_backend_grok_psinfo if available.
514 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
515 (_bfd_elf32_mips_grok_psinfo): New function.
516 (elf_backend_grok_prstatus): Define.
517 (elf_backend_grok_psinfo): Define.
518 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
519 (elf_backend_grok_psinfo): Likewise.
520 (elfNN_bed): Include elf_backend_grok_prstatus and
521 elf_backend_grok_psinfo.
523 2001-06-29 H.J. Lu <hjl@gnu.org>
525 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
526 hplink->sgot is NULL before filling GOT. Check if hplink->splt
527 is NULL before filling PLT.
529 2001-06-29 Alan Modra <amodra@bigpond.net.au>
531 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
533 2001-06-27 Alan Modra <amodra@bigpond.net.au>
535 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
537 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
538 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
541 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
542 (IS_ABSOLUTE_RELOC): Define.
543 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
544 (hppa_link_hash_newfunc): Always init it.
545 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
546 create COPY relocs only when the reloc is in a read-only section.
547 Instead, allocate space for a dynamic reloc to reference the
548 library symbol directly. Keep track of space we allocate using
550 (hppa_discard_copies): Delete, and move code to..
551 (allocate_plt_and_got): ..here. Rename to
552 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
553 relocs for non-shared link.
554 (elf32_hppa_size_dynamic_sections): Update calls to above.
555 (elf32_hppa_relocate_section): Write out the dynamic relocs used
556 in lieu of COPY relocs.
558 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
560 (elf_i386_adjust_dynamic_symbol): ..nor here..
561 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
563 (elf_i386_size_dynamic_sections): Fix a comment.
564 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
565 involved in writing reloc out.
567 2001-06-25 Alan Modra <amodra@bigpond.net.au>
569 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
570 Ensure syms are dynamic if we might be emitting a reloc.
571 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
572 for undefweak or undefined syms..
573 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
575 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
576 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
577 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
578 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
580 2001-06-24 H.J. Lu <hjl@gnu.org>
582 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
583 strncasecmp/strcasecmp instead of strncmp/strcmp.
585 2001-06-23 H.J. Lu <hjl@gnu.org>
587 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
588 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
589 in the regular object file and treat the weak definition as
592 2001-06-23 Alan Modra <amodra@bigpond.net.au>
594 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
595 unresolved_reloc test to exclude cases where we use "relocation"
596 before setting it to point into the .got. Reinstate fudge for
597 unresolved relocs in debugging sections.
599 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
600 complicated tests for unresolvable relocs with a simple direct
601 scheme using "unresolved_reloc" var.
603 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
604 elf_i386_dyn_relocs. Update comment.
605 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
607 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
609 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
611 (elf_i386_size_dynamic_sections): Likewise.
612 (elf_i386_finish_dynamic_symbol): Likewise.
613 (elf_i386_finish_dynamic_sections): Likewise.
614 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
617 Avoid creating COPY relocs if possible.
618 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
619 which .got created. Mark symbols used by R_386_32 and R_386_PC32
620 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
621 reloc is in a read-only section. Instead, allocate space for a
622 dynamic reloc to reference the library symbol directly. Keep
623 track of space we allocate using pcrel_relocs_copied.
624 (discard_copies): Delete, and move code to ..
625 (allocate_plt_and_got): ..here. Rename to
626 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
627 relocs for non-shared link.
628 (elf_i386_size_dynamic_sections): Update calls to above functions.
629 (elf_i386_relocate_section): Write out the dynamic relocs. Add
630 more ugly logic to avoid "unresolvable relocation" error. Use
631 htab shortcut in place of elf_hash_table macro.
632 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
633 not always be created now.
635 2001-06-20 Bo Thorsen <bo@suse.co.uk>
637 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
640 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
642 * configure.host (mips64-*-linux): Reformat.
644 2001-06-21 Alan Modra <amodra@bigpond.net.au>
646 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
647 allocate local .got space. Use shortcuts from hash table for .got
648 and .plt rather than comparing section names.
649 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
650 adjusting index into local_got_refcounts to document what we are
652 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
653 Tidy .got and .plt error checking.
655 2001-06-20 Catherine Moore <clm@redhat.com>
657 * elf-bfd.h (struct elf_backend_data):
658 elf_backend_emit_relocs: New field: Function for emitting
660 elf_backend_count_relocs: New field: Function for determining
661 the number of relocs to be emitted.
662 * elfxx-target.h: Provide default (NULL) values for
663 elf_backend_emit_relocs and elf_backend_count_relocs.
664 * elflink.h (elf_link_size_reloc_section): Make the hash table
665 big enough to hold the relocs counted by either reloc_count or
667 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
668 should be emitted, either because of a command line option
669 stored in the info structure or because the target provides a
670 special reloc emitting function.
671 If the target provides a reloc counting function use it,
672 unless performing a relocatable link or emitting all relocs.
673 Also set the SEC_RELOC flag on any output section which will
675 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
676 should be emitted, either because of a command line option
677 stored in the info structure or because the target provides a
678 special reloc emitting function.
679 If the target provides a reloc emitting function, use it,
680 unless performing a relocatable link or emitting all relocs.
682 2001-06-20 H.J. Lu <hjl@gnu.org>
684 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
685 allocate local .got space.
687 2001-06-19 Andreas Jaeger <aj@suse.de>
689 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
692 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
694 * elflink.h (struct elf_assign_sym_version_info): Remove member
695 export_dynamic. All users changed to use info member.
696 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
697 export_dynamic, instead use member in parameter info.
698 * bfd-in.h (bfd_elf32_size_dynamic_sections,
699 bfd_elf64_size_dynamic_sections): Update prototype.
700 * bfd-in2.h: Regenerate.
702 2001-06-18 H.J. Lu <hjl@gnu.org>
704 * elflink.h (elf_info_failed): Add a new field, verdefs.
705 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
707 (elf_export_symbol): Check eif->verdefs to decide if a symbol
710 2001-06-17 H.J. Lu <hjl@gnu.org>
712 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
713 readonly_reloc, to record if a relocation in the .rel.dyn
714 section is against a read-only section.
715 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
717 (_bfd_mips_elf_check_relocs): Record if there is a relocation
718 in the .rel.dyn section against a read-only section by setting
719 DF_TEXTREL or readonly_reloc.
720 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
722 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
723 there is a relocation in the .rel.dyn section against a
725 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
728 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
730 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
731 function. Move flagword result into parameter list. Remove
732 comment about setting bfd_error_handler to intercept failure
734 * coffgen.c (make_a_section_from_file): Examine result of
735 calling bfd_coff_styp_to_sec_flags and pass a failure back to
737 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
738 function. Move flagword result into parameter list.
739 * libcoff.h: Regenerate.
740 * libecoff.h: Regenerate.
742 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
744 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
745 section is going to follow it.
747 2001-06-12 Catherine Moore <clm@redhat.com>
749 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
750 with the file_align entry from elf_backend_data.
751 (elf_gc_smash_unused_vtentry_relocs): Likewise.
752 (elf_gc_record_vtentry): Likewise.
754 2001-06-10 Alan Modra <amodra@bigpond.net.au>
756 * elflink.h: Whitespace changes.
757 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
758 rather than "unsigned char".
759 (elf_link_output_relocs): Likewise.
760 (elf_link_input_bfd): Likewise.
761 (elf_reloc_link_order): LIkewise.
762 * elf.c: s/CONST/const/. Whitespace changes.
763 * elf32-mips.c: Formatting fix.
765 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
766 * Makefile.in: Regenerate.
767 * po/Make-in: Remove trailing tab.
769 2001-06-09 Philip Blundell <philb@gnu.org>
771 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
773 (elf32_arm_plt_entry): Likewise.
775 2001-06-08 H.J. Lu <hjl@gnu.org>
777 * elf.c (swap_out_syms): Keep names for global section symbols.
779 2001-06-07 H.J. Lu <hjl@gnu.org>
781 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
782 MIPS-based machines need it.
784 2001-06-07 H.J. Lu <hjl@gnu.org>
786 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
789 * config.bfd: Remove ecoff from Linux/mips.
791 2001-06-07 Andreas Jaeger <aj@suse.de>
793 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
795 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
796 alignment of 8 for .rela sections; handle further relocations.
798 2001-06-06 Christian Groessler <cpg@aladdin.de>
800 * coff-z8k.c: Fix formatting.
801 Fix howtos: howto->size was always 1.
803 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
805 * configure.host (mips64*-*-linux*): Define.
807 2001-06-05 Alan Modra <amodra@bigpond.net.au>
809 * elf32-i386.c (elf_i386_discard_copies): Rename to
810 discard_copies, and use elf_link_hash_entry arg rather than
811 elf_i386_link_hash_entry.
812 (elf_i386_link_hash_traverse): Delete.
813 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
814 Tidy sizing of dynamic sections.
815 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
816 possible .plt entries.
817 (elf_i386_gc_sweep_hook): Likewise.
818 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
819 everything with plt.refcount <= 0.
821 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
823 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
824 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
826 (allocate_plt_and_got): ..instead do it all here. New function.
827 (elf_i386_size_dynamic_sections): Allocate local .got space and
828 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
829 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
830 rather than gc variety).
831 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
832 (elf_i386_relocate_section): Use it here and correct handling of
833 R_386_GOT32. Provide section and offset for "unresolvable
834 relocation" error message.
835 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
837 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
838 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
839 (elf_i386_link_hash_table_create): Init them.
840 (create_got_section): New function.
841 (elf_i386_create_dynamic_sections): New function.
842 (elf_backend_create_dynamic_sections): Set to above.
843 (elf_i386_check_relocs): Use shortcuts from hash table rather than
844 calling bfd_get_section_by_name.
845 (elf_i386_gc_sweep_hook): Likewise.
846 (elf_i386_adjust_dynamic_symbol): Likewise.
847 (elf_i386_size_dynamic_sections): Likewise.
848 (elf_i386_relocate_section): Likewise.
849 (elf_i386_finish_dynamic_sections): Likewise.
851 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
853 2001-06-02 H.J. Lu <hjl@gnu.org>
855 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
857 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
859 2001-06-02 H.J. Lu <hjl@gnu.org>
861 * aout-cris.c (MACHTYPE_OK): New. Defined.
863 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
865 * section.c (_bfd_strip_section_from_output): Handle NULL
868 2001-06-02 H.J. Lu <hjl@gnu.org>
870 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
871 rs6000coff64_vec only if BFD64 is defined.
872 (powerpc64-*-aix*): Enable only if BFD64 is defined.
874 2001-06-02 H.J. Lu <hjl@gnu.org>
876 * coff-ia64.c (ia64coff_object_p): Rewrite with
877 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
879 2001-06-01 Andreas Jaeger <aj@suse.de>
881 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
882 relocation, small reformatting.
884 2001-05-29 Andreas Jaeger <aj@suse.de>
886 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
887 (elf64_x86_64_relocate_section): Likewise.
889 2001-05-30 Alan Modra <amodra@one.net.au>
891 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
892 millicode. Don't allocate .got and .rela.got space here..
893 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
894 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
896 (hppa_handle_PIC_calls): ..nor here..
897 (allocate_plt_and_got): ..instead do it all here. New function.
898 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
899 call allocate_plt_and_got. No need to zap .got if not dynamic.
900 (elf32_hppa_final_link): Call regular bfd_final_link instead of
901 gc_common_final_link.
902 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
903 (elf32_hppa_relocate_section): Use it here.
904 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
905 dynamic_sections_created.
906 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
908 2001-05-28 Andreas Jaeger <aj@suse.de>
910 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
911 generic version since we want a hashsize of 4.
912 (elf_backend_size_info): Likewise.
914 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
916 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
918 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
919 (elf_link_input_bfd): Likewise.
920 (elf_reloc_link_order): Likewise.
921 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
922 relocations correctly.
924 2001-05-28 Nicolas Pitre <nico@cam.org>
926 * elf32-arm.h: fix PLT generation for big endian ARM
928 2001-05-28 Alan Modra <amodra@one.net.au>
930 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
931 for symbols forced local that need plabels.
932 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
933 .plt.rela for local syms if non-shared.
934 (hppa_build_one_stub): Mask lsb of plt.offset.
935 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
936 (clobber_millicode_symbols): Correct comment.
937 (elf32_hppa_relocate_section): Likewise.
938 (elf32_hppa_finish_dynamic_symbol): Likewise.
940 2001-05-28 Jeff Sturm <jsturm@one-point.com>
942 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
943 * bfd-in2.h: Regenerate.
944 * libbfd.h: Regenerate.
945 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
946 and BFD_RELOC_SPARC_UA64 mapping
947 * elf64-sparc.c: Likewise.
949 2001-05-25 H.J. Lu <hjl@gnu.org>
951 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
952 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
953 (coff-rs6000.lo): Remove the old dependency.
954 * Makefile.in: Rebuild.
956 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
959 2001-05-25 H.J. Lu <hjl@gnu.org>
961 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
962 rs6000coff_core_file_matches_executable_p,
963 rs6000coff_core_file_failing_command and
964 rs6000coff_core_file_failing_signal only if AIX_CORE is
966 (pmac_xcoff_vec): Likewise.
967 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
969 2001-05-25 Timothy Wall <twall@redhat.com>
971 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
972 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
974 2001-05-25 H.J. Lu <hjl@gnu.org>
976 * bfd-in2.h: Regenerated.
977 * libcoff.h: Likewise.
979 2001-05-25 Alan Modra <amodra@one.net.au>
981 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
982 undefined millicode syms in shared libs.
983 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
984 (elf32_hppa_check_relocs): Likewise.
985 (elf32_hppa_adjust_dynamic_symbol): Likewise.
986 (elf32_hppa_size_dynamic_sections): Likewise.
987 (elf32_hppa_relocate_section): Likewise.
988 (elf32_hppa_finish_dynamic_symbol): Likewise.
989 (elf32_hppa_finish_dynamic_sections): Likewise.
991 2001-05-24 Tom Rix <trix@redhat.com>
993 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
994 xcoff-target.h not used to define rs6000 or ppc bfd.
997 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
1000 * coff-rs6000.c : Many changes for 64 bit support. Move common
1001 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
1004 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
1005 linker now supported. Explictly define the rs6000coff64_vec.
1007 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
1008 (coff_print_aux) same
1009 (coff_write_object_contents) same
1010 (coff_slurp_line_table) same
1012 * coffgen.c : (coff_fix_symbol_name) formatting
1013 (coff_mangle_symbols) xcoff 64 bit support
1014 (coff_write_symbol) same
1015 (coff_write_alien_symbol) same
1016 (coff_write_native_symbol) same
1017 (coff_write_symbols) same
1018 (coff_get_symbol_info) same
1019 (bfd_coff_get_syment) same
1020 (coff_print_symbol) same
1022 * config.bfd : add powerpc64-*-aix* target
1024 * libcoff-in.h : formatting
1026 * libcoff.h : move xcoff extern declarations to libxcoff.h
1028 * libxcoff.h : New file
1030 * xcofflink.c : Many changes for xcoff64 support. Move common
1031 structures to include/coff/xcoff.h. Move specific structure to
1032 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
1033 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
1035 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
1038 (xcoff_build_ldsyms) : handle special __rtinit symbol.
1040 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1042 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1045 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1047 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1048 * libbfd.h: Regenerate.
1049 * bfd-in2.h: Regenerate.
1051 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1052 * archures.c (bfd_mach_mips12000): Define.
1053 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1054 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1056 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1057 * bfd-in2.h: Regenerate.
1058 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1060 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
1062 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1063 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1064 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1065 that is used by GCC.
1067 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1069 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1070 of entries in a structured section.
1071 * elf.c: Use new macro.
1072 * elf32-i386.c: Use new macro.
1073 * elf32-mips.c: Use new macro.
1074 * elf64-alpha.c: Use new macro.
1075 * elf64-sparc.c: Use new macro.
1076 * elfcode.h: Use new macro.
1077 * elflink.h: Use new macro.
1079 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1081 * bfdint.texi: Replace -oformat with --oformat.
1083 2001-05-21 Andreas Jaeger <aj@suse.de>
1085 * dwarf2.c (decode_line_info): Fix error message.
1086 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1087 adjust error message.
1089 2001-05-18 H.J. Lu <hjl@gnu.org>
1091 * elflink.h (elf_link_add_object_symbols): Revert the last
1094 2001-05-17 Alan Modra <amodra@one.net.au>
1096 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1097 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1098 (hppa_build_one_stub): Add an assert to check plt.offset.
1100 2001-05-17 H.J. Lu <hjl@gnu.org>
1102 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1103 version definition to basename of the output filename.
1105 2001-05-17 H.J. Lu <hjl@gnu.org>
1107 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1108 basename of the bfd filename.
1110 2001-05-16 Alan Modra <amodra@one.net.au>
1112 * section.c (asection): Add linker_has_input field.
1113 (STD_SECTION): Adjust initialization to suit.
1114 * ecoff.c (bfd_debug_section): Likewise.
1115 * bfd-in2.h: Regenerate.
1117 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
1119 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1120 negative 32-bit operands to 16 operands when the operand is
1121 going to be zero-extended by the modified opcode.
1123 2001-05-12 Peter Targett <peter.targett@arccores.com>
1125 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1126 name for 'arc5' core versions.
1127 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1129 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1131 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1133 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1135 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1137 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1138 to .gnu.linkonce.t.FOO text section.
1140 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1142 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1143 fields, change sec into secinfo.
1144 (struct sec_merge_info): Add chain, remove last fields.
1145 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1146 (sec_merge_hash_lookup): If lookup could not use a string only
1147 because it has bad alignment, mark the old string for deletion.
1148 (sec_merge_add): Add secinfo argument. Don't compute entry's
1149 position, instead record the section.
1150 (sec_merge_emit): Update for the sec into secinfo change in
1151 struct sec_merge_hash_entry.
1152 (_bfd_merge_section): Only record the section for merging, defer
1153 putting strings into the hash table.
1154 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1155 _bfd_merge_sections): New functions.
1156 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1158 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1159 (_bfd_nolink_bfd_merge_sections): Define.
1160 * libbfd.h: Likewise.
1161 (bfd_generic_merge_sections): Add prototype.
1162 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1163 (struct bfd_target): Likewise.
1164 * bfd.c (bfd_merge_sections): Define.
1165 * bfd-in2.h: Rebuilt.
1166 * elf.c (_bfd_elf_merge_sections): New function.
1167 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1168 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1169 * reloc.c (bfd_generic_merge_sections): New function.
1170 * vms.c (vms_bfd_merge_sections): New function.
1171 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1172 * aout-target.h (MY_bfd_merge_sections): Define.
1173 * aout-tic30.c (MY_bfd_merge_sections): Define.
1174 * binary.c (binary_bfd_merge_sections): Define.
1175 * bout.c (b_out_bfd_merge_sections): Define.
1176 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1177 * coffcode.c (coff_bfd_merge_sections): Define.
1178 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1179 * i386msdos.c (msdos_bfd_merge_sections): Define.
1180 * i386os9k.c (os9k_bfd_merge_sections): Define.
1181 * ieee.c (ieee_bfd_merge_sections): Define.
1182 * ihex.c (ihex_bfd_merge_sections): Define.
1183 * nlm-target.h (nlm_bfd_merge_sections): Define.
1184 * oasys.c (oasys_bfd_merge_sections): Define.
1185 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1186 * som.c (som_bfd_merge_sections): Define.
1187 * srec.c (srec_bfd_merge_sections): Define.
1188 * tekhex.c (tekhex_bfd_merge_sections): Define.
1189 * versados.c (versados_bfd_merge_sections): Define.
1190 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1192 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1194 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1195 to be unsigned long, in order to match its use.
1197 2001-05-10 H.J. Lu <hjl@gnu.org>
1199 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1202 2001-05-09 H.J. Lu <hjl@gnu.org>
1204 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1205 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1206 Remove the unused veriable `dynver'.
1208 2001-05-08 Ian Lance Taylor <ian@zembu.com>
1210 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1211 NULL or is not COFF.
1212 (coff_i386_rtype_to_howto): Don't dump core if output section
1215 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1217 * ecoff.c (bfd_debug_section): Fix initialization.
1218 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1219 is always a positive integer. Cast away sign mismatch.
1220 * elf32-mips.c: Fix misleading comment and typo.
1221 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1223 * elflink.c: Fix typo.
1224 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1225 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1227 2001-05-04 Richard Henderson <rth@redhat.com>
1229 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1231 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1233 * elf32-arm.h (elf32_arm_final_link_relocate): Set
1234 EF_ARM_HASENTRY if the start address is set.
1236 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1238 * targets.c (_bfd_target_vector_entries): Compute value based on
1239 the size of the _bfd_target_vector and not bfd_target_vector.
1241 2001-05-03 H.J. Lu <hjl@gnu.org>
1243 * elfcode.h: Include "libiberty.h".
1245 * elflink.h (elf_link_add_object_symbols): Set
1246 elf_dt_name (abfd) to basename of the bfd filename.
1247 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1248 of the bfd filename.
1250 2001-05-03 Andreas Jaeger <aj@suse.de>
1252 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1253 (elf_generic_info_to_howto_rel): Likewise.
1254 * coff-alpha.c (reloc_nil): Likewise.
1255 (alpha_ecoff_bad_format_hook): Likewise.
1256 (alpha_adjust_reloc_out): Likewise.
1257 (alpha_bfd_reloc_type_lookup): Likewise.
1258 (alpha_convert_external_reloc): Likewise.
1259 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1260 (elf64_alpha_reloc_bad): Likewise.
1261 (elf64_alpha_reloc_gpdisp): Likewise.
1262 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1263 (elf64_alpha_info_to_howto): Likewise.
1264 (elf64_alpha_add_symbol_hook): Likewise.
1265 (elf64_alpha_create_got_section): Likewise.
1266 (elf64_alpha_is_local_label_name): Likewise.
1267 (elf64_alpha_merge_ind_symbols): Likewise.
1268 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1269 (mips_elf64_get_reloc_upper_bound): Likewise.
1270 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1271 (nlm_alpha_get_public_offset): Likewise.
1273 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1275 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1276 about overflow in R_OPENRISC_LO_16_IN_INSN and
1277 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1279 2001-04-30 H.J. Lu <hjl@gnu.org>
1281 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1282 only for ELF_LINK_FORCED_LOCAL.
1283 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1284 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1285 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1287 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1288 if the symbol has hidden or internal visibility.
1290 2001-04-30 Alan Modra <amodra@one.net.au>
1292 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1293 calls to undefined weak symbols.
1295 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1297 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1298 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1300 2001-04-27 Andreas Jaeger <aj@suse.de>
1302 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1303 out handled entries.
1304 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1305 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1306 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1309 2001-04-27 Sean McNeil <sean@mcneil.com>
1311 * config.bfd: Add arm-vxworks target.
1312 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1313 addend (fro VXworks targets).
1315 2001-04-26 H.J. Lu <hjl@gnu.org>
1317 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1320 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
1322 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1323 * bfd-in2.h: Regenerated.
1325 2001-04-24 Jakub Jelinek <jakub@redhat.com>
1327 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1328 (struct sec_merge_hash): Remove alignment_power.
1329 (sec_merge_hash_newfunc): Clear alignment.
1330 (sec_merge_hash_lookup): Pass alignment as argument.
1331 Use hashp->root.next, not hashp->next to walk the hash chain.
1332 If a string already in the hashtable does not have required
1333 alignment, create a new hashtable entry.
1334 (sec_merge_init): Remove alignment_power argument.
1335 (sec_merge_add): Add alignment argument.
1336 (sec_merge_emit): Alignment is now a per-entity thing, not per
1338 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1339 for proper alignment.
1340 Pass alignment information to sec_merge_add.
1342 2001-04-24 Christian Groessler <cpg@aladdin.de>
1344 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1345 and R_REL16 reloc types; accept odd values for R_REL16 type
1347 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
1349 * cpu-openrisc.c: New file.
1350 * elf32-openrisc.c: Likewise.
1352 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1353 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1354 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1355 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1356 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1357 * Makefile.in: Regenerated.
1358 * config.bfd: (openrisc-*-elf): New target.
1359 * configure.in (bfd_elf32_openrisc_vec): New vector.
1360 * configure: Regenerated.
1361 * libbfd.h: Regenerated.
1362 * bfd-in2.h: Regenerated.
1363 * reloc.c: Add OpenRISC relocations.
1364 * targets.c (bfd_elf32_openrisc_vec): Declare.
1365 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1366 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1367 (bfd_openrisc_arch): Declare.
1368 (bfd_archures_list): Add bfd_openrisc_arch.
1369 * elf.c (prep_headers): Add bfd_arch_openrisc.
1371 2001-04-23 Bo Thorsen <bo@suse.de>
1373 * elf64-x86-64.c: Add c++ vtable hack.
1374 Small whitespace and comment changes.
1376 2001-04-19 Andreas Jaeger <aj@suse.de>
1378 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1379 (elf64_x86_64_plt_entry): Likewise.
1380 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1381 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1383 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
1385 * elf32-cris.c: Tweak comments related to dynamic linking.
1386 (cris_elf_relocate_section): When not creating shared object, fill
1387 in the .got table for any symbol not in the dynamic symbol table.
1388 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1389 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1391 (cris_elf_check_relocs): Use variable r_type in all places rather
1392 than the original expression. Add default case in switch for
1394 (elf_cris_size_dynamic_sections): Iterate over
1395 elf_cris_discard_excess_program_dynamics when not creating shared
1397 (elf_cris_discard_excess_dso_dynamics): Renamed from
1398 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1399 (elf_cris_discard_excess_program_dynamics): New.
1401 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1403 * coffcode.h (coff_write_object_contents): Use
1404 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1406 2001-04-14 H.J. Lu <hjl@gnu.org>
1408 * bfd-in2.h: Regenerate.
1410 2001-04-14 Jakub Jelinek <jakub@redhat.com>
1412 * section.c (STD_SECTION): Add entsize.
1414 2001-04-13 H.J. Lu <hjl@gnu.org>
1416 * section.c (SEC_MERGE): Define new flag for merging.
1417 (SEC_STRINGS): Likewise.
1418 (entsize): New field.
1420 2001-04-13 Roger Sayle <roger@metaphorics.com>
1422 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1423 flag on pe-i386 targets.
1425 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1427 * libbfd-in.h (_bfd_merge_section): New.
1428 (_bfd_write_merged_section): New.
1429 (_bfd_merged_section_offset): New.
1430 * libbfd.h: Rebuilt.
1431 * linker.c (_bfd_generic_link_output_symbols): Handle
1433 * aoutx.h (aout_link_write_symbols): Likewise.
1434 * pdp11.c (aout_link_write_symbols): Likewise.
1435 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1436 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1438 (elf_link_sec_merge_syms): New.
1439 (elf_link_input_bfd): Call _bfd_merged_section_offset
1440 and _bfd_write_merged_section.
1441 Handle discard_sec_merge.
1442 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1444 (struct bfd_elf_section_data): Likewise.
1445 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1446 SEC_STRINGS section flags and entsize from their ELF counterparts.
1447 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1448 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1449 from their BFD counterparts.
1450 * merge.c: New file.
1451 * Makefile.am: Add strtab.lo.
1452 * Makefile.in: Rebuilt.
1454 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
1456 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1457 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1459 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1461 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1462 endian MIPS ELF target.
1463 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1466 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1467 64bit big endian MIPS ELF target.
1468 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1469 endian MIPS ELF target.
1470 * configure: Regenerated.
1472 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1473 little endian targets.
1474 (mips_elf_sym_is_global): Handle traditional targets.
1476 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1477 64bit big endian MIPS ELF target.
1478 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1479 endian MIPS ELF target.
1481 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1482 and bfd_elf64_tradlittlemips_vec.
1484 2001-04-05 David Mosberger <davidm@hpl.hp.com>
1486 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1487 ordinary "progbits" section.
1489 2001-04-04 Alan Modra <alan@linuxcare.com.au>
1491 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1492 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1494 2001-04-03 David Mosberger <davidm@hpl.hp.com>
1496 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1498 2001-03-30 H.J. Lu <hjl@gnu.org>
1500 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1501 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1503 2001-03-26 H.J. Lu <hjl@gnu.org>
1505 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1506 if there are any relocations for generic ELF.
1507 (bfd_elf32_bfd_link_add_symbols): Defined to
1508 elf32_generic_link_add_symbols.
1509 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1510 if there are any relocations for generic ELF.
1511 (bfd_elf64_bfd_link_add_symbols): Defined to
1512 elf64_generic_link_add_symbols.
1514 2001-03-23 Nick Clifton <nickc@redhat.com>
1516 * Makefile.am (BUILD_CFILES): New variable: List of C source
1517 files created in build directory.
1518 (BUILD_HFILES): New variable: List of header files created in
1521 (po/POTFILES.in): Replace rule with empty entry.
1522 (po/SRC-POTFILES.in): New rule: Create a list of source files
1523 in the source directory.
1524 (po/BLD-POTFILES.in): New rule: Create a list of source files
1525 in the build directory.
1526 (MOSTLYCLEAN): Do not delete source files created in build
1528 * Makefile.in: Regenerate.
1529 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1531 * configure: Regenerate.
1533 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1535 Add .. to the search path when building bfd.pot.
1536 Delete POTFILES when performing distclean.
1537 Add comment describing why distclean is broken in maintainer mode.
1538 * po/POTFILES.in: Delete.
1539 * po/SRC-POTFILES.in: New file.
1540 * po/BLD-POTFILES.in: New file.
1541 * po/bfd.pot: Regenerate.
1543 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
1545 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1546 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1547 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1548 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1549 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1550 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1552 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1553 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1554 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1555 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1556 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1557 New HOWTO members for new relocs.
1558 (cris_reloc_map): Map new relocs.
1559 (ELF_DYNAMIC_INTERPRETER): Define.
1560 (PLT_ENTRY_SIZE): Define.
1561 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1562 elf_cris_pic_plt_entry): New, PLT templates.
1563 (struct elf_cris_pcrel_relocs_copied, struct
1564 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1565 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1566 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1567 positive values. Adjust PCREL relocs to be relative to location
1569 (cris_elf_relocate_section): Handle relocations to dynamic
1570 objects. Handle new relocations. Call error handler when seeing
1571 non-PIC relocation for read-only sections while generating shared
1573 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1575 (bfd_elf32_bfd_link_hash_table_create,
1576 elf_backend_adjust_dynamic_symbol,
1577 elf_backend_size_dynamic_sections,
1578 elf_backend_finish_dynamic_symbol,
1579 elf_backend_finish_dynamic_sections,
1580 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1581 elf_backend_hide_symbol, elf_backend_want_got_plt,
1582 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1583 elf_backend_got_header_size, elf_backend_plt_header_size):
1586 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1587 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1588 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1589 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1590 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1591 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1592 * bfd-in2.h, libbfd.h: Regenerate.
1594 2001-03-21 Diego Novillo <dnovillo@redhat.com>
1596 (_bfd_mips_elf_relocate_section): Give a better error message when
1597 a relocation is not recognized.
1599 2001-03-21 Alan Modra <alan@linuxcare.com.au>
1601 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1602 non-NULL before attempting to dereference.
1604 2001-03-20 H.J. Lu <hjl@gnu.org>
1606 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1607 * configure: Rebuild.
1609 2001-03-20 Andreas Schwab <schwab@suse.de>
1611 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1612 relocation value when resolving a reference from a debugging
1615 2001-03-16 Scott Thomason <SThomaso@hii.com>
1617 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1618 (xcoff64_swap_sym_out): Fix syntax errors.
1620 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
1622 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1624 2001-03-15 Alan Modra <alan@linuxcare.com.au>
1626 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1627 (hppa_link_hash_newfunc): Init it.
1628 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1629 section appears to be non-PIC.
1630 (final_link_relocate): Likewise.
1631 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1632 possible candidate function, and set pic_call for those that will
1633 only have a .plt entry for the PIC call stub.
1634 (hppa_handle_PIC_calls): Set maybe_pic_call.
1636 2001-03-12 DJ Delorie <dj@redhat.com>
1638 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1639 R_SH_DIR8WP* relocs if they're against external symbols, else
1640 they're just for relaxing. Validate the reloc values.
1642 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1644 * binary.c (bfd_external_binary_architecture): Declare.
1645 (binary_object_p): If bfd_external_binary_architecture is defined,
1646 set the architecture to this string.
1648 2001-03-11 Philip Blundell <philb@gnu.org>
1650 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1651 entries that could serve as a definition for a weak symbol.
1653 2001-03-08 Nick Clifton <nickc@redhat.com>
1655 * Most files: Update copyright notices using Perl script created
1656 by Kevin Buettner <kevinb@redhat.com>.
1658 2001-03-07 Nick Clifton <nickc@redhat.com>
1660 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1661 prior patch on ! defined OLD_ARM_ABI.
1663 2001-03-07 Andreas Jaeger <aj@suse.de>
1665 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1666 some relocation values.
1668 2001-03-06 Nick Clifton <nickc@redhat.com>
1670 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1671 of offset in BLX(1) instruction.
1672 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1673 offset in BLX(1) instruction.
1676 2001-03-06 Nick Clifton <nickc@redhat.com>
1678 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1679 BFD_RELOC_THUMB_PCREL_BLX.
1681 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1683 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1684 * bfd-in2.h: Regenerate.
1685 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1686 * ieee.c (ieee_write_processor): Set proper id for
1689 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1691 * configure.in: Add s390 target.
1692 * configure: Regenerate.
1694 2001-02-28 Andreas Jaeger <aj@suse.de>
1696 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1699 2001-02-28 Philip Blundell <pb@futuretv.com>
1701 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1702 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1704 2001-02-27 H.J. Lu <hjl@gnu.org>
1706 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1707 abfd->tdata.aout_data == NULL.
1709 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1711 * elf32-hppa.c: Correct field selector in stub comments.
1712 (clobber_millicode_symbols): Formatting fix.
1714 * configure.in: Bump version to 2.11.90.
1715 * configure: Regenerate.
1716 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1717 (CFILES): $SOURCE_CFILES + generated C files.
1718 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1720 * Makefile.in: Regenerate.
1721 * doc/Makefile.in: This too.
1723 2001-02-26 Timothy Wall <twall@cygnus.com>
1725 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1728 2001-02-26 Nick Clifton <nickc@redhat.com>
1730 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1731 up, replacing multiple if statements with a switch.
1732 (handle_COMDAT): New function.
1734 2001-02-26 H.J. Lu <hjl@gnu.org>
1736 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1737 a warning for section flags we do not handle instead of
1740 2001-02-26 Andreas Jaeger <aj@suse.de>
1742 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1744 2001-02-22 Timothy Wall <twall@cygnus.com>
1746 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1747 * configure.in: Add objects for elf64_ia64_aix vectors.
1748 * configure: Regenerated.
1749 * configure.host: Recognize ia64-*-aix*.
1750 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1751 for AIX. AIX5 requires most relocations to be dynamic (*all*
1752 binaries are somewhat similar to shared libraries).
1753 * targets.c: Add elf64_ia64_aix vectors.
1755 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1757 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1758 C8 said "1" instead of "8". Clarify error string for IMM22:
1759 "signed integer" instead of just "integer".
1761 2001-02-20 Andreas Jaeger <aj@suse.de>
1763 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1764 PLT entries that could serve as a definition for a weak symbol.
1766 2001-02-19 Jakub Jelinek <jakub@redhat.com>
1768 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1769 entries that could serve as a definition for a weak symbol.
1770 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1772 2001-02-18 David O'Brien <obrien@FreeBSD>
1774 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1775 FreeBSD/i386-CURRENT differently until I can figure out the needed
1777 * configure: Regenerate.
1778 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1779 FreeBSD/PowerPC, and FreeBSD/sparc64.
1781 2001-02-18 lars brinkhoff <lars@nocrew.org>
1783 * Makefile.am: Add PDP-11 a.out target.
1784 * config.bfd: Likewise.
1785 * configure.in: Likewise.
1786 * targets.c: Likewise.
1787 * archures.c: Likewise.
1788 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1789 * libbfd.h: Add PDP-11 relocations.
1790 * reloc.c: Likewise.
1791 * cpu-pdp11.c: New file.
1792 * pdp11.c: New file.
1794 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1795 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1796 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1797 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1798 (GET_MAGIC): New macro.
1799 (PUT_MAGIC): Likewise.
1800 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1802 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1804 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1805 multiarch needs it).
1807 2001-02-18 H.J. Lu <hjl@gnu.org>
1809 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1812 2001-02-18 Kazu Hirata <kazu@hxi.com>
1814 * vms-misc.c: Fix formatting.
1816 2001-02-16 Kazu Hirata <kazu@hxi.com>
1818 * vms.c: Fix formatting.
1820 2001-02-14 H.J. Lu <hjl@gnu.org>
1822 * elf.c (elf_find_function): New function.
1823 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1824 the file name and function name.
1826 2001-02-14 Nick Clifton <nickc@redhat.com>
1828 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1831 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1832 (BFD64_BACKENDS): Add pepigen.c
1833 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1835 * Makefile.in: Regenerate.
1836 * configure: Regenerate.
1837 * po/POTFILES.in: Regenerate.
1838 * po/bfd.pot: Regenerate.
1840 2001-02-14 H.J. Lu <hjl@gnu.org>
1842 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1843 force_minimum_alignment.
1845 2001-02-14 Bo Thorsen <bo@suse.de>
1847 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1848 (elf64_86_64_size_info): Struct added to fix a problem
1849 with the hashtable string entries.
1850 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1851 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1852 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1853 remove the FIXME for this.
1854 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1855 section. Also removed the FIXME for it.
1856 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1857 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1858 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1860 2001-02-13 Richard Henderson <rth@redhat.com>
1862 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1863 and not user provided.
1865 2001-02-13 Kazu Hirata <kazu@hxi.com>
1867 * vms.c (vms_print_symbol): Remove unreachable code.
1869 * rs6000-core.c: Fix formatting.
1871 2001-02-13 David Mosberger <davidm@hpl.hp.com>
1873 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1874 as _bfd_XXi_only_swap_filehdr_out.
1875 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1876 pe->force_minimum_alignment to TRUE.
1877 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1878 PEI_TARGET_SUBSYSTEM.
1879 (pe_print_private_bfd_data): Call
1880 _bfd_XX_print_private_bfd_data_common() instead of
1881 _bfd_pe_print_private_bfd_data_common().
1882 (pe_bfd_copy_private_bfd_data): Call
1883 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1884 _bfd_pe_bfd_copy_private_bfd_data_common().
1885 (coff_bfd_copy_private_section_data): Define as
1886 _bfd_XX_bfd_copy_private_section_data instead of
1887 _bfd_pe_bfd_copy_private_section_data.
1888 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1889 of a _bfd_pe_get_symbol_info.
1893 * peXXigen.c: Renamed from peigen.c.
1894 (COFF_WITH_XX): Define this macro (will get expanded into
1895 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1896 compiled as peigen.c or pepigen.c.
1897 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1898 define the canonical PEP structures and definitions.
1899 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1900 effect, enforce minimum file and section alignments. If
1901 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1902 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1903 so, by default, this is a no-op).
1905 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1906 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1907 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1908 _bfd_pefoo if it's not defined. Use these macros to define
1911 * libcoff.h (pe_tdata): Add members target_subsystem and
1912 force_minimum_alignment.
1914 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1916 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1918 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1921 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1922 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1925 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1926 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1927 (peigen.c): Add rule to generate from peXXigen.c.
1929 (pepigen.lo): List dependencies for pepigen.lo.
1931 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1933 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1934 $global$ referenced but not defined, set its value here.
1936 2001-02-09 Bo Thorsen <bo@suse.de>
1938 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1940 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1942 (elf64_x86_64_relocate_section): Fix formatting.
1943 (elf64_x86_64_relocate_section): Fix addend for relocation of
1944 R_X86_64_(8|16|32|PC8|PC16|PC32).
1946 2001-02-12 Jan Hubicka <jh@suse.cz>
1948 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1950 2001-02-11 H.J. Lu <hjl@gnu.org>
1952 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1955 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1957 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1958 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1959 relocations against dynsym symbols.
1961 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1962 the R_MIPS_26 relocation.
1963 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1964 the R_MIPS_26 relocation.
1965 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1967 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1968 the R_MIPS_26 relocation.
1969 (mips_elf64_howto_table_rela): Likewise.
1971 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1972 member to mark symbols that have non-CALL relocations against
1974 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1975 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1977 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1978 non-CALL relocation against it is encountered.
1979 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1980 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1981 no_fn_stub is not set.
1983 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1984 information from the real symbol for indirect ones.
1985 Check no_fn_stub to find out if a symbol has a function stub
1988 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1990 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1991 * Makefile.in: Regenerate.
1993 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1995 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1996 true if section name is an unwind table section name.
1997 (elfNN_ia64_additional_program_headers): Count each unwind section
1999 (elfNN_ia64_modify_segment_map): Install one unwind program header
2000 for each unwind separate section. Note: normally the linker
2001 script merges the unwind sections that go into a single segment,
2002 so this still generates at most one unwind program header per
2005 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2006 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2007 (elfNN_ia64_fake_sections): Mark sections with names that start
2008 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2011 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2012 Use it to make sh_info in unwind section point to the text section
2015 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2017 * Makefile.am: Add linux target for S/390.
2018 * archures.c: Likewise.
2019 * bfd-in2.h: Likewise.
2020 * config.bfd: Likewise.
2021 * configure.in: Likewise.
2023 * libbfd.h: Likewise.
2024 * targets.c: Likewise.
2025 * cpu-s390.c: New file.
2026 * elf32-s390.c: New file.
2027 * elf64-s390.c: New file.
2029 2001-02-09 Nick Clifton <nickc@redhat.com>
2031 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2032 ImageBase. This has already been done by coff_swap_hdr_in.
2034 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2036 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2038 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2040 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2041 (sparc64_elf_relocate_section): Likewise.
2043 2001-02-09 Mark Kettenis <kettenis@gnu.org>
2045 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2046 similar to R_SPARC_32.
2047 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2049 2001-02-08 H.J. Lu <hjl@gnu.org>
2051 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2052 relocation entries for weak definitions when building DSO with
2055 2001-02-08 Richard Henderson <rth@redhat.com>
2057 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2058 before visibility. Locally defined protected symbols are not
2061 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
2063 * config.bfd: Enable coff64 for rs6000-*. Patch from
2064 <hzoli@austin.ibm.com>.
2066 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
2068 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2069 found, do not attempt to find dwarf2 info before returning.
2071 2001-02-07 Jakub Jelinek <jakub@redhat.com>
2073 * elflink.h (is_global_symbol_definition): Rename to
2074 is_global_data_symbol_definition and have it reject function
2076 (elf_link_is_defined_archive_symbol): Use renamed function.
2078 2001-02-07 Todd Vierling <tv@wasabisystems.com>
2080 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2081 * libbfd.h (bfd_target_vector): Likewise.
2082 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
2083 make static; create pointer reference named bfd_target_vector.
2084 (_bfd_target_vector_entries): Calculate this based on the array
2085 typed _bfd_target_vector.
2087 2001-02-06 H.J. Lu <hjl@gnu.org>
2089 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2090 internal symbols are not dynamic.
2091 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2093 2001-02-06 Nick Clifton <nickc@redhat.com>
2095 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2096 that it will not be pulled into the list of files that make up
2098 * Makefile.in: Regenerate.
2099 * po/bfd.pot: Regenerate.
2101 2001-02-06 H.J. Lu <hjl@gnu.org>
2103 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
2105 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2106 external_PEI_IMAGE_hdr.
2108 2001-02-06 Kazu Hirata <kazu@hxi.com>
2110 * elf-m10200.c: Fix formatting.
2112 2001-02-04 Nick Clifton <nickc@redhat.com>
2114 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2115 rel, it will be handled later on.
2117 2001-02-02 Fred Fish <fnf@ninemoons.com>
2119 * Makefile.in: Fix typo.
2121 2001-02-01 Kazu Hirata <kazu@hxi.com>
2123 * elf-m10300.c: Fix formatting.
2125 2001-01-30 Alan Modra <alan@linuxcare.com.au>
2127 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2128 (elf_backend_get_symbol_type): Define.
2129 (elf64_hppa_object_p): Set architecture and machine from elf
2132 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
2134 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2137 2001-01-26 Richard Henderson <rth@redhat.com>
2139 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2140 for non-default visibility.
2141 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2142 delete ugly macro and replace with pretty function.
2144 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
2146 * coff-go32.c: Update copyright.
2147 * coff-stgo32.c: Likewise.
2148 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2149 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2150 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2151 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2153 2001-01-25 Kazu Hirata <kazu@hxi.com>
2155 * bfd-in2.h: Rebuild.
2156 * libbfd.h: Likewise.
2158 2001-01-23 H.J. Lu <hjl@gnu.org>
2160 * bfd-in2.h: Rebuild.
2162 2001-01-23 H.J. Lu <hjl@gnu.org>
2164 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2165 is NULL or PRIV(vms_rec) is outside of the buffer.
2167 2001-01-23 Kazu Hirata <kazu@hxi.com>
2169 * coff64-rs6000.c: Fix formatting.
2170 * coff-arm.c: Likewise.
2171 * coffgen.c: Likewise.
2172 * cofflink.c: Likewise.
2173 * coff-mcore.c: Likewise.
2174 * coff-mips.c: Likewise.
2175 * coff-pmac.c: Likewise.
2176 * coff-ppc.c: Likewise.
2177 * coff-rs6000.c: Likewise.
2178 * elf32.c: Likewise.
2179 * elf32-fr30.c: Likewise.
2180 * elf32-i370.c: Likewise.
2181 * elf32-i860.c: Likewise.
2182 * elf32-m32r.c: Likewise.
2183 * elf32-m68k.c: Likewise.
2184 * elf32-mcore.c: Likewise.
2185 * elf32-ppc.c: Likewise.
2186 * elf32-sh.c: Likewise.
2187 * elf32-v850.c: Likewise.
2188 * elf64-alpha.c: Likewise.
2189 * elf64-sparc.c: Likewise.
2190 * elflink.c: Likewise.
2191 * elflink.h: Likewise.
2192 * elf-m10200.c: Likewise.
2193 * elf-m10300.c: Likewise.
2194 * elfxx-ia64.c: Likewise.
2196 * aoutx.h: Fix formatting.
2198 * bfd-in2.h: Likewise.
2199 * bfd-in.h: Likewise.
2200 * cpu-i386.c: Likewise.
2201 * cpu-m68hc11.c: Likewise.
2202 * dwarf2.c: Likewise.
2203 * elf64-x86-64.c: Likewise.
2204 * format.c: Likewise.
2205 * freebsd.h: Likewise.
2207 * hp300hpux.c: Likewise.
2208 * hppabsd-core.c: Likewise.
2209 * hpux-core.c: Likewise.
2211 2001-01-22 Bo Thorsen <bo@suse.de>
2213 * elf64-x86-64.c: Added PIC support for X86-64.
2214 (elf64_x86_64_link_hash_newfunc): Function added.
2215 (elf64_x86_64_link_hash_table_create): Likewise.
2216 (elf64_x86_64_check_relocs): Likewise.
2217 (elf64_x86_64_gc_mark_hook): Likewise.
2218 (elf64_x86_64_gc_sweep_hook): Likewise.
2219 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2220 (elf64_x86_64_size_dynamic_sections): Likewise.
2221 (elf64_x86_64_discard_copies): Likewise.
2222 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2223 (elf64_x86_64_finish_dynamic_sections): Likewise.
2224 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2226 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2228 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2229 * Makefile.in: Regenerate.
2231 2001-01-21 Kazu Hirata <kazu@hxi.com>
2233 * coff-a29k.c: Fix formatting.
2235 2001-01-19 H.J. Lu <hjl@gnu.org>
2237 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2238 relocation section names.
2239 (elf_i386_relocate_section): Report files with bad relocation
2240 section names and return false.
2242 2001-01-17 Bo Thorsen <bo@suse.de>
2244 * targets.c: Alphabetize list of xvecs.
2246 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2248 * config.bfd: Add linux target variant for elfxx-hppa.
2249 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2250 bfd_elf64_hppa_linux_vec.
2251 * configure: Regenerate.
2252 * elf64-hppa.c: Include elf64-target.h again to support linux
2254 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2255 * elf32-hppa.c: Include elf32-target.h again to support linux
2257 (elf32_hppa_post_process_headers): New function.
2258 (elf_backend_post_process_headers): Define.
2259 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2260 bfd_elf32_hppa_linux_vec.
2262 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2263 and data_segment_base fields.
2264 (elf32_hppa_link_hash_table_create ): Init them.
2265 (elf32_hppa_check_relocs): Update comments.
2266 (hppa_record_segment_addr): New function.
2267 (elf32_hppa_relocate_section): Call it.
2268 (final_link_relocate): Handle R_PARISC_SEGREL32.
2269 (elf32_hppa_final_link): New function.
2270 (bfd_elf32_bfd_final_link): Define to call it.
2271 (hppa_unwind_entry_compare): New function.
2272 * cache.c (bfd_open_file): Create files in write+read mode.
2274 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2275 SEGREL32 and numerous other relocs. Change duplicate
2276 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2278 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2281 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2282 .plt entries for DT_INIT and DT_FINI.
2283 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2284 DT_INIT and DT_FINI.
2286 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2287 offsets for stub .plt access if wide mode. Check offset in range.
2289 2001-01-13 Nick Clifton <nickc@redhat.com>
2291 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2294 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2297 2001-01-12 Alan Modra <alan@linuxcare.com.au>
2299 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2300 * configure: Regenerate.
2302 2001-01-11 Peter Targett <peter.targett@arccores.com>
2304 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2305 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2306 * cpu-arc.c (arch_info_struct): Add entries for variants.
2307 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2308 (arc_get_mach) Don't assume machine names prefixed arc- before
2310 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2312 (arc_elf_final_write_processing) Likewise.
2313 (ELF_MACHINE_CODE) Use EM_ARC.
2315 2001-01-10 Nick Clifton <nickc@redhat.com>
2317 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2319 2001-01-07 Philip Blundell <philb@gnu.org>
2321 * README: Replace `bug-gnu-utils@gnu.org' with
2322 `bug-binutils@gnu.org'.
2324 2001-01-04 Kazu Hirata <kazu@hxi.com>
2326 * som.c: Fix formatting.
2328 2001-01-03 Kazu Hirata <kazu@hxi.com>
2330 * ecoffswap.h: Fix formatting.
2331 * elf-bfd.h: Likewise.
2332 * elfarm-nabi.c: Likewise.
2333 * elfarm-oabi.c: Likewise.
2334 * elfcode.h: Likewise.
2335 * elfcore.h: Likewise.
2336 * elflink.c: Likewise.
2337 * elflink.h: Likewise.
2338 * elfxx-ia64.c: Likewise.
2339 * elfxx-target.h: Likewise.
2340 * libbfd.c: Likewise
2341 * linker.c: Likewise.
2342 * lynx-core.c: Likewise.
2344 2001-01-02 Kazu Hirata <kazu@hxi.com>
2346 * pc532-mach.c: Fix formatting.
2347 * pe-arm.c: Likewise.
2348 * pe-i386.c: Likewise.
2349 * pe-mips.c: Likewise.
2350 * pe-ppc.c: Likewise.
2351 * pe-sh.c: Likewise.
2352 * pei-mips.c: Likewise.
2353 * pei-sh.c: Likewise.
2354 * peicode.h: Likewise.
2355 * ppcboot.c: Likewise.
2356 * ptrace-core.c: Likewise.
2358 2001-01-01 Kazu Hirata <kazu@hxi.com>
2360 * reloc.c: Fix formatting.
2361 * riscix.c: Likewise.
2362 * rs6000-core.c: Likewise.
2363 * xcoff-target.h: Likewise.
2365 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2367 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2368 error, by calling bfd_default_set_arch_mach with incoming
2371 2000-12-26 Kazu Hirata <kazu@hxi.com>
2373 * vaxnetbsd.c: Fix formatting.
2374 * versados.c: Likewise.
2375 * vms-gsd.c: Likewise.
2376 * vms-hdr.c: Likewise.
2377 * vms-misc.c: Likewise.
2379 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
2381 * archive.c (coff_write_armap): Don't write more than symbol_count
2382 `archive_member_file_ptr's.
2384 2000-12-25 Kazu Hirata <kazu@hxi.com>
2386 * vms-tir.c: Fix formatting.
2388 2000-12-23 Kazu Hirata <kazu@hxi.com>
2390 * vms.c: Fix formatting.
2393 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
2395 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2397 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2399 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2402 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2404 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2406 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
2408 * libbfd.c (bfd_get_bits): Added
2409 (bfd_put_bits): Likewise
2410 * bfd-in.h: Declared the above.
2411 * bfd-in2.h: Regenerated.
2413 2000-12-20 Kazu Hirata <kazu@hxi.com>
2415 * targets.c: Fix formatting.
2416 * tekhex.c: Likewise.
2417 * trad-core.c: Likewise.
2419 2000-12-19 Kazu Hirata <kazu@hxi.com>
2421 * sco5-core.c: Fix formatting.
2422 * section.c: Likewise.
2423 * sparclinux.c: Likewise.
2424 * sparclynx.c: Likewise.
2425 * sparcnetbsd.c: Likewise.
2427 * stabs.c: Likewise.
2428 * stab-syms.c: Likewise.
2429 * sunos.c: Likewise.
2431 * sysdep.h: Likewise.
2433 2000-12-18 Nick Clifton <nickc@redhat.com>
2435 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2437 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2438 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2440 2000-12-18 Nick Clifton <nickc@redhat.com>
2442 * vms-misc.c (_bfd_vms_get_record): Add default case to
2445 2000-12-15 Miloslav Trmac <mitr@volny.cz>
2447 * elfcore.h (elf_core_file_p): Move to the start of the program
2448 headers before attempting to read them.
2450 2000-12-14 Kazu Hirata <kazu@hxi.com>
2452 * peigen.c: Fix formatting.
2456 2000-12-13 Kazu Hirata <kazu@hxi.com>
2458 * peigen.c: Fix formatting.
2460 2000-12-12 Jim Wilson <wilson@redhat.com>
2462 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2464 2000-12-08 Mark Salter <msalter@redhat.com>
2466 * binary.c (binary_set_section_contents): Ignore sections
2469 2000-12-12 Kazu Hirata <kazu@hxi.com>
2471 * m68klinux.c: Fix formatting.
2472 * m68knetbsd.c: Likewise.
2473 * mipsbsd.c: Likewise.
2474 * netbsd-core.c: Likewise.
2475 * netbsd.h: Likewise.
2476 * newsos3.c: Likewise.
2477 * nlm32-alpha.c: Likewise.
2478 * nlm32-i386.c: Likewise.
2479 * nlm32-ppc.c: Likewise.
2480 * nlm32-sparc.c: Likewise.
2481 * nlmcode.h: Likewise.
2482 * nlmswap.h: Likewise.
2483 * nlm-target.h: Likewise.
2484 * ns32knetbsd.c: Likewise.
2486 2000-12-10 Fred Fish <fnf@be.com>
2488 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2489 symbols in shared objects if allow_shlib_undefined is true.
2491 2000-12-12 Nick Clifton <nickc@redhat.com>
2493 * cpu-sh.c: Fix formattng.
2494 * elf.c: Fix formattng.
2495 * elf32-mips.c: Fix formattng.
2496 * elf32-sh.c: Fix formattng.
2497 * elf64-alpha.c: Fix formattng.
2499 2000-12-09 Nick Clifton <nickc@redhat.com>
2501 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2502 dwarf2_find_line_info as last parameter to invocation of
2503 _bfd_dwarf2_find_nearest_line.
2504 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2505 dwarf2_find_line_info as last parameter to invocation of
2506 _bfd_dwarf2_find_nearest_line.
2508 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2510 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2511 (BFD_LIBS): ...to here.
2512 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2513 (BFD_LIBS_CFILES): ...to here.
2514 * Makefile.in: Regenerate.
2515 * configure.in: Remove dwarf.lo from the elf shell variable.
2516 * configure: Regenerate.
2517 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2518 * libcoff.h: Regenerate.
2519 * coffgen.c (coff_find_nearest_line): Call
2520 _bfd_dwarf2_find_nearest_line.
2521 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2523 (read_abbrevs): Likewise
2524 (decode_line_info): Likewise.
2525 (parse_comp_unit): Likewise.
2526 (comp_unit_find_nearest_line): Likewise.
2527 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2528 * libbfd.h: Regenerate.
2529 * elf.c (_bfd_elf_find_nearest_line): Update call.
2530 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2531 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2532 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2533 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2534 (styp_to_sec_flags): Handle DWARF2 sections.
2535 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2536 to _bfd_find_nearest_line.
2537 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2538 call to _bfd_find_nearest_line.
2540 2000-12-08 Kazu Hirata <kazu@hxi.com>
2542 * coffgen.c: Fix formatting.
2543 * elf-m10300.c: Likewise.
2544 * elf32-i386.c: Likewise.
2545 * elf32-i960.c: Likewise.
2546 * elf32-m68k.c: Likewise.
2547 * elf32-mcore.c: Likewise.
2548 * elf32-ppc.c: Likewise.
2549 * elf32-sh.c: Likewise.
2550 * elf32-sparc.c: Likewise.
2551 * elf32-v850.c: Likewise.
2552 * elf64-alpha.c: Likewise.
2553 * elf64-hppa.c: Likewise.
2554 * elf64-mips.c: Likewise.
2555 * elf64-sparc.c: Likewise.
2557 2000-12-07 Kazu Hirata <kazu@hxi.com>
2559 * elf32-ppc.c: Fix formatting.
2560 * elf64-x86-64.c: Likewise.
2562 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2564 From Ralf Baechle <ralf@gnu.org>
2566 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2567 BFDs containing no sections or empty .text, .data or .bss sections
2568 to be merged, regardless of their flags.
2570 2000-12-06 Kazu Hirata <kazu@hxi.com>
2572 * elf32-m32r.c: Fix formatting.
2573 * elf32-m68hc11.c: Likewise.
2574 * elf32-m68hc12.c: Likewise.
2575 * elf32-m68k.c: Likewise.
2576 * elf32-mcore.c: Likewise.
2577 * elf32-pj.c: Likewise.
2578 * elf32-ppc.c: Likewise.
2580 2000-12-05 Kazu Hirata <kazu@hxi.com>
2582 * elf32-fr30.c: Fix formatting.
2583 * elf32-hppa.c: Likewise.
2584 * elf32-i370.c: Likewise.
2585 * elf32-i386.c: Likewise.
2586 * elf32-i860.c: Likewise.
2587 * elf32-i960.c: Likewise.
2589 2000-12-03 Kazu Hirata <kazu@hxi.com>
2591 * elf32-arm.h: Fix formatting.
2592 * elf32-avr.c: Likewise.
2593 * elf32-cris.c: Likewise.
2594 * elf32-d10v.c: Likewise.
2595 * elf32-d30v.c: Likewise.
2596 * elf-hppa.h: Likewise.
2597 * elf-m10200.c: Likewise.
2598 * elf-m10300.c: Likewise.
2600 2000-12-01 Chris Demetriou <cgd@sibyte.com>
2602 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2603 bfd_mach_mips32_4k. Update FIXME comment.
2604 * archures.c (bfd_mach_mips32): New constant.
2605 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2606 the latter, renumber it.
2607 * bfd-in2.h (bfd_mach_mips32): New constant.
2608 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2609 the latter, renumber it.
2610 * cpu-mips.c (I_mips32): New constant.
2611 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2612 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2613 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2614 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2615 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2616 with E_MIPS_MACH_MIPS32_4K.
2617 (_bfd_mips_elf_final_write_processing): Replace
2618 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2619 bfd_mach_mips32 case.
2620 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2621 comparison with support for MIPS32.
2622 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2625 * aoutx.h (NAME(aout,machine_type)): Add cases for
2626 bfd_mach_mips5 and bfd_mach_mips64.
2627 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2628 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2629 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2630 (arch_info_struct): Add entries for bfd_mach_mips5 and
2632 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2633 _bfd_mips_elf_print_private_bfd_data): Add cases for
2634 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2635 (_bfd_mips_elf_final_write_processing): Add cases for
2636 bfd_mach_mips5 and bfd_mach_mips64.
2638 * aoutx.h (NAME(aout,machine_type)): Add a
2639 bfd_mach_mips_sb1 case.
2640 * archures.c (bfd_mach_mips_sb1): New constant.
2641 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2642 * cpu-mips.c (I_sb1): New constant.
2643 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2644 * elf32-mips.c (elf_mips_mach): Add case for
2646 (_bfd_mips_elf_final_write_processing): Add case for
2649 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2651 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2652 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2653 (sparc*-*-rtems*): Switched from a.out to ELF.
2655 2000-11-30 Jan Hubicka <jh@suse.cz>
2657 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2658 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2659 (elf64-x86-64.lo): Add dependencies.
2660 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2661 bfd_mach_x86_64_intel_syntax.
2662 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2663 * config.bfd (x86_64): Add.
2664 * configure.in: Add support for bfd_elf64_x86_64_vec.
2665 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2666 (bfd_i386_arch, i8086_ar): Link in.
2667 * elf64-x86-64.c: New file.
2668 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2669 * targets.c (bfd_elf64_x86_64_vec): Add.
2670 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2672 2000-11-30 Kazu Hirata <kazu@hxi.com>
2674 * xcofflink.c: Fix formatting.
2676 2000-11-28 Kazu Hirata <kazu@hxi.com>
2678 * aoutx.h: Fix formatting.
2679 * bfd-in.h: Likewise.
2680 * bfd-in2.h: Likewise.
2681 * cache.c: Likewise.
2682 * cisco-core.c: Likewise.
2683 * coff64-rs6000.c: Likewise.
2684 * coffcode.h: Likewise.
2685 * coffswap.h: Likewise.
2686 * corefile.c: Likewise.
2687 * elf32-mips.c: Likewise.
2689 2000-11-27 Kazu Hirata <kazu@hxi.com>
2691 * aout-adobe.c: Fix formatting.
2692 * coff64-rs6000.c: Likewise.
2693 * coffgen.c: Likewise.
2694 * cofflink.c: Likewise.
2696 2000-11-27 Philip Blundell <pb@futuretv.com>
2698 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2699 (obj_coff_strings_written): New accessor macro for above.
2700 * libcoff.h: Regenerate.
2701 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2703 * coffcode.h (coff_write_object_contents): No need to write out
2704 the string table if it's already been done.
2706 2000-11-22 Philip Blundell <pb@futuretv.com>
2708 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2709 weak undefined symbols.
2711 2000-11-24 Nick Clifton <nickc@redhat.com>
2713 * archures.c (bfd_mach_arm_5TE): Define.
2714 (bfd_mach_arm+XScale): Define.
2715 * bfd-in2.h: Regenerate.
2717 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2718 BFD_RELOC_ARM_PCREL_BLX.
2720 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2721 XScale machine numbers.
2723 * config.bfd (xscale-elf): Add target.
2724 (xscale-coff): Add target.
2726 * cpu-arm.c: Add xscale machine name.
2727 Add v5t, v5te and XScale machine numbers.
2729 2000-11-23 Kazu Hirata <kazu@hxi.com>
2731 * aix386-core.c: Fix formatting.
2733 2000-11-22 Jim Wilson <wilson@redhat.com>
2735 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2736 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2737 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2738 (ins_imms_scaled): Initialize sign_bit at function entry.
2739 (elf64_ia64_operands): Add missing initializers.
2740 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2741 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2742 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2743 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2744 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2746 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2747 and free_extsyms at function entry.
2748 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2749 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2750 (get_got): Delete unused local srel.
2751 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2752 (elfNN_ia64_relocate_section): Delete unused local dynindx.
2754 2000-11-21 Kazu Hirata <kazu@hxi.com>
2756 * coff-a29k.c: Fix formatting.
2757 * coff-h8500.c: Likewise.
2758 * coff-i960.c: Likewise.
2759 * coff-ppc.c: Likewise.
2760 * coff-rs6000.c: Likewise.
2761 * coff-stgo32.c: Likewise.
2762 * coff-tic54x.c: Likewise.
2763 * coff-w65.c: Likewise.
2764 * cpu-h8500.c: Likewise.
2765 * cpu-hppa.c: Likewise.
2766 * cpu-ns32k.c: Likewise.
2767 * ecoff.c: Likewise.
2768 * ecofflink.c: Likewise.
2770 2000-11-21 Nick Clifton <nickc@redhat.com>
2772 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2773 remove possibility of infinite loop.
2775 2000-11-20 Kazu Hirata <kazu@hxi.com>
2777 * aix386-core.c: Fix formatting.
2778 * aout-adobe.c: Likewise.
2779 * aout-arm.c: Likewise.
2780 * aout-encap.c: Likewise.
2781 * aout-ns32k.c: Likewise.
2782 * aout-target.h: Likewise.
2783 * aout-tic30.c: Likewise.
2784 * aoutf1.h: Likewise.
2785 * aoutx.h: Likewise.
2786 * archive.c: Likewise.
2787 * bfd-in.h: Likewise.
2788 * bfd-in2.h: Likewise.
2792 2000-11-17 H.J. Lu <hjl@gnu.org>
2794 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2795 pltoff entries for DT_INIT and DT_FINI.
2796 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2797 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2800 2000-11-16 Richard Henderson <rth@redhat.com>
2802 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2803 (allocate_dynrel_entries): Likewise.
2804 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2805 (set_pltoff_entry): Likewise.
2806 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2807 (elfNN_ia64_reloc_type_lookup): Likewise.
2808 (elfNN_ia64_install_value): Likewise.
2809 (elfNN_ia64_relocate_section): Likewise.
2810 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2811 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2813 2000-11-16 Kazu Hirata <kazu@hxi.com>
2815 * cpu-a29k.c: Fix formatting.
2816 * cpu-alpha.c: Likewise.
2817 * cpu-arm.c: Likewise.
2818 * cpu-avr.c: Likewise.
2819 * cpu-d10v.c: Likewise.
2820 * cpu-h8500.c: Likewise.
2821 * cpu-hppa.c: Likewise.
2822 * cpu-i370.c: Likewise.
2823 * cpu-i386.c: Likewise.
2824 * cpu-i960.c: Likewise.
2825 * cpu-ia64-opc.c: Likewise.
2826 * cpu-ia64.c: Likewise.
2827 * cpu-m32r.c: Likewise.
2828 * cpu-m68hc11.c: Likewise.
2829 * cpu-m68hc12.c: Likewise.
2830 * cpu-m68k.c: Likewise.
2831 * cpu-m88k.c: Likewise.
2832 * cpu-mips.c: Likewise.
2833 * cpu-ns32k.c: Likewise.
2834 * cpu-pj.c: Likewise.
2835 * cpu-powerpc.c: Likewise.
2836 * cpu-sh.c: Likewise.
2837 * cpu-sparc.c: Likewise.
2838 * cpu-tic54x.c: Likewise.
2839 * cpu-v850.c: Likewise.
2840 * cpu-vax.c: Likewise.
2841 * cpu-w65.c: Likewise.
2842 * cpu-we32k.c: Likewise.
2843 * cpu-z8k.c: Likewise.
2844 * dwarf1.c: Likewise.
2845 * dwarf2.c: Likewise.
2847 2000-11-15 Kazu Hirata <kazu@hxi.com>
2849 * coff-arm.c: Fix formatting.
2850 * coff-ppc.c: Likewise.
2851 * coff-rs6000.c: Likewise.
2852 * coff-sh.c: Likewise.
2853 * coff-sparc.c: Likewise.
2854 * coff-tic30.c: Likewise.
2855 * coff-tic54x.c: Likewise.
2856 * coff-tic80.c: Likewise.
2857 * coff-w65.c: Likewise.
2858 * coff-we32k.c: Likewise.
2859 * coff-z8k.c: Likewise.
2861 2000-11-15 Richard Henderson <rth@redhat.com>
2863 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2864 section with the same ALLOC|LOAD flags as the source section.
2866 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2868 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2869 by STO_ALPHA constants.
2871 2000-11-14 Kazu Hirata <kazu@hxi.com>
2873 * coff-pmac.c: Fix formatting.
2874 * coff-ppc.c: Likewise.
2876 2000-11-13 H.J. Lu <hjl@gnu.org>
2878 * elflink.h (elf_link_add_object_symbols): Also add indirect
2879 symbols for common symbols with the default version.
2881 2000-11-09 Philip Blundell <pb@futuretv.com>
2883 * section.c (STD_SECTION): Set gc_mark flag.
2885 2000-11-11 Kazu Hirata <kazu@hxi.com>
2887 * coff-i960.c: Likewise.
2888 * coff-m68k.c: Likewise.
2889 * coff-m88k.c: Likewise.
2890 * coff-mcore.c: Likewise.
2891 * coff-mips.c: Likewise.
2893 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2895 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2897 2000-11-10 Kazu Hirata <kazu@hxi.com>
2899 * coff-h8300.c: Fix formatting.
2900 * coff-h8500.c: Likewise.
2901 * coff-i386.c: Likewise.
2902 * coff-i860.c: Likewise.
2903 * coff-i960.c: Likewise.
2904 * coff-ia64.c: Likewise.
2906 2000-11-09 Kazu Hirata <kazu@hxi.com>
2908 * archive.c: Fix formatting.
2909 * archures.c: Likewise.
2911 2000-11-07 Richard Henderson <rth@redhat.com>
2913 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2914 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2915 * section.c (bfd_set_section_contents): Call memcpy if
2916 section->contents set and location not equal to contents plus offset.
2918 2000-11-08 Kazu Hirata <kazu@hxi.com>
2920 * bfd-in.h: Fix formatting.
2921 * bfd-in2.h: Likewise.
2923 * binary.c: Likewise.
2925 * coff-a29k.c: Likewise.
2926 * coff-alpha.c: Likewise.
2927 * coff-apollo.c: Likewise.
2928 * coff-aux.c: Likewise.
2930 2000-11-07 Kazu Hirata <kazu@hxi.com>
2932 * aix386-core.c: Fix formatting.
2933 * aoutf1.h: Likewise.
2934 * aoutx.h: Likewise.
2935 * archures.c: Likewise.
2936 * armnetbsd.c: Likewise.
2938 2000-11-07 Alan Modra <alan@linuxcare.com.au>
2940 * coff-h8300.c (special): Adjust reloc address.
2942 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2944 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2945 to differentiate elf32 and elf64 on ia64.
2946 * bfd-in2.h: Regenerate.
2947 * config.bfd: Add target for "ia64*-*-hpux*".
2948 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2949 * configure: Regenerate.
2950 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2951 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2953 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2954 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2955 * Makefile.in: Regnerate.
2956 * elf64-ia64.c: Deleted.
2957 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2959 2000-11-06 Kazu Hirata <kazu@hxi.com>
2961 * aout-adobe.c: Fix formatting.
2962 * aout-arm.c: Likewise.
2963 * aout-cris.c: Likewise.
2964 * aout-encap.c: Likewise.
2965 * aout-ns32k.c: Likewise.
2966 * aout-target.h: Likewise.
2967 * aout-tic30.c: Likewise.
2969 2000-11-05 Philip Blundell <philb@gnu.org>
2971 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2972 BFDs containing no sections to be merged, regardless of their flags.
2974 2000-11-04 Philip Blundell <philb@gnu.org>
2976 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2977 if a relocation for an undefined symbol also results in an
2980 2000-11-06 Christopher Faylor <cgf@cygnus.com>
2982 * config.bfd: Add support for Sun Chorus.
2984 2000-11-05 David O'Brien <obrien@FreeBSD.org>
2986 * configure.in: Recognize alpha-*-freebsd*.
2987 * configure: Regenerate.
2989 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2991 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2992 (Chunk): New global variable set by a parameter in objcopy.c.
2993 (S3Forced): New global variable set by a parameter in
2995 (srec_set_section_contents): If S3Forced is true, always generate
2997 (srec_write_section): Use 'Chunk' to limit maximum length of S
3000 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3002 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3003 * Makefile.in: Regenerate.
3004 * bfd-in2.h: Regenerate.
3005 * po/bfd.pot: Regenerate.
3007 2000-10-31 Philip Blundell <philb@gnu.org>
3009 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3010 EF_SOFT_FLOAT if it is defined.
3012 2000-10-27 Philip Blundell <philb@gnu.org>
3014 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3015 attempts to mix PIC code with non-PIC, just mark the output as
3016 being position dependent.
3017 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
3018 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
3019 all mismatches, not just the first one.
3021 2000-10-25 Chris Demetriou <cgd@sibyte.com>
3023 * ieee.c (ieee_archive_p): Plug one of many possible
3024 memory leaks in error handling.
3026 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3028 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3029 elf32_sparc_object_p, elf32_sparc_final_write_processing):
3031 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3032 sparc64_elf_object_p): Support v9b.
3033 * archures.c: Declare v8plusb and v9b machines.
3035 * cpu-sparc.c: Ditto.
3037 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3039 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3042 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3043 (SYMBOL_CALLS_LOCAL): New macro.
3044 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3045 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3046 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3047 (ppc_elf_relocate_section): Use flag variable to determine
3048 whether the relocation refers to a local symbol.
3049 Test whether a PLTREL24 reloc will produce a reloc by looking
3050 to see whether a PLT entry was made.
3052 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3054 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3055 entries that could serve as a definition for a weak symbol.
3057 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
3059 From Ralf Baechle <ralf@gnu.org>
3061 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3062 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
3063 against local symbols.
3064 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
3066 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3068 * section.c (struct sec): Add kept_section.
3069 (struct bfd_comdat_info): Remove sec, we can use above.
3070 (STD_SECTION): Add initializer.
3071 (bfd_make_section_anyway): Init here too.
3073 * bfd-in2.h: Regenerate.
3075 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
3077 (elf_link_input_bfd): Set all asection->symbol->value's here, and
3078 fudge values for discarded link-once section symbols.
3080 * elf64-hppa.c: Include alloca-conf.h
3082 2000-10-11 Alan Modra <alan@linuxcare.com.au>
3084 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3086 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3088 2000-10-10 Alan Modra <alan@linuxcare.com.au>
3090 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3092 2000-10-10 Tom Rix <trix@redhat.com>
3094 * section.c (bfd_make_section_anyway): Release newsect ptr when
3095 newsect->symbol fails to alloc. Use bfd_release instead of free.
3097 2000-10-09 Richard Henderson <rth@cygnus.com
3099 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3100 (elf64_ia64_unwind_entry_compare): New.
3101 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3103 2000-10-07 Alan Modra <alan@linuxcare.com.au>
3105 * elflink.h (size_dynamic_sections): Don't create various tags if
3106 .dynstr is excluded from the link. Don't set first dynsym entry
3107 if dynsymcount is zero.
3108 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3109 .dynsym excluded from the link. Don't try to write any dynamic
3110 sections excluded from the link.
3112 * elf.c (swap_out_syms): Handle global section symbols.
3114 2000-10-05 DJ Delorie <dj@redhat.com>
3116 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3117 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3118 (coff_write_relocs): write extended reloc count
3119 (coff_write_object_contents): account for extended relocs
3121 2000-10-05 Jim Wilson <wilson@cygnus.com>
3123 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3125 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3126 elf_backend_section_flags function.
3127 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3129 (elf64_ia64_section_flags): New function containing flag conversion
3131 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3132 * elfxx-target.h (elf_backend_section_flags): Define.
3133 (elfNN_bed): Initialize elf_backend_section_flags field.
3135 2000-10-02 Alan Modra <alan@linuxcare.com.au>
3137 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3138 _bfd_elf32_gc_record_vtable. Correct a comment.
3140 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
3142 From Ralf Baechle <ralf@gnu.org>
3144 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3145 produces binaries with got[1] = 0x80000001 to differenciate them
3146 for the dynamic linker from the broken binaries produced by old
3149 2000-09-30 Petr Sorfa <petrs@sco.com>
3151 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3152 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3153 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3154 * configure: Regenerate.
3156 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
3158 Define two bfd_targets for absence and presence of leading
3159 underscore on symbols. Make sure to only link same kind.
3160 * elf32-cris.c (cris_elf_object_p,
3161 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3162 cris_elf_merge_private_bfd_data): New.
3163 (elf_backend_object_p, elf_backend_final_write_processing,
3164 bfd_elf32_bfd_print_private_bfd_data,
3165 bfd_elf32_bfd_merge_private_bfd_data): Define.
3166 <Target vector definition>: Include elf32-target.h twice with
3167 different macro settings:
3168 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3169 bfd_elf32_us_cris_vec.
3170 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3171 (elf_symbol_leading_char): First as 0, then '_'.
3172 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3173 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3174 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3175 * configure: Regenerate.
3176 * targets.c: Declare bfd_elf32_us_cris_vec.
3177 * po/bfd.pot: Regenerate.
3179 2000-09-29 Momchil Velikov <velco@fadata.bg>
3181 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3182 R_ARM_THM_PC22 relocations.
3184 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3186 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3188 2000-09-29 Momchil Velikov <velco@fadata.bg>
3190 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3191 is has the SEC_HAS_CONTENTS flag set.
3193 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
3194 Hans-Peter Nilsson <hp@axis.com>
3196 * aout-cris.c (N_TXTADDR): Define.
3198 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3200 * som.c: Include alloca-conf.h.
3201 * Makefile.am: "make dep-am"
3202 * Makefile.in: Regenerate.
3204 2000-09-27 Alan Modra <alan@linuxcare.com.au>
3206 * elf32-hppa.c (plt_stub): New.
3207 (PLT_STUB_ENTRY): Define.
3208 (elf32_hppa_link_hash_table): Change multi_subspace to packed
3209 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
3210 (elf32_hppa_link_hash_table_create): Init to suit.
3211 (elf32_hppa_check_relocs): Set has_12bit_branch and
3212 has_17bit_branch as appropriate.
3213 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
3214 non-local functions.
3215 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
3216 Add space for plt_stub as needed.
3217 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
3218 functions at plt_stub.
3219 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
3220 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
3222 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
3223 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
3224 of fixed size, and if negative, disable handling of input sections
3225 before stub section. Set up default stub group size depending
3226 on detected branch relocs.
3227 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
3228 ensure different offsets from sym_value aren't rounded to
3229 different 2k blocks. Use lrsel and rrsel for other stubs too for
3230 consistency rather than necessity.
3231 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
3232 (final_link_relocate): Likewise.
3233 (elf32_hppa_relocate_section): Likewise.
3235 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
3236 (_bfd_elf_hppa_gen_reloc_type): Generate them.
3237 (elf_hppa_final_link_relocate): Handle them.
3238 (elf_hppa_relocate_insn): Likewise.
3239 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3241 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
3243 * elfcode.h (elf_object_p): Preserve and clear abfd section
3244 information. Restore at error.
3246 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3248 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3249 is empty, make sure that its rva also 0. NT loader dislikes
3252 2000-09-26 Steve Ellcey <sje@cup.hp.com>
3254 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3257 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3259 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3260 currently unused RELATIVE_DYNAMIC_RELOCS code.
3261 (hppa_discard_copies): Likewise.
3262 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
3263 comments. Don't check non-code output sections for stub grouping.
3265 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3267 * section.c (bfd_get_unique_section_name): Return NULL if
3270 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3272 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3273 instruction sequence to actually work.
3274 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3277 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3279 * elf32-sh.c (sh_elf_relocate_section): Use
3280 _bfd_final_link_relocate to apply the relocation against a section
3281 symbol, when doing relocatable links.
3283 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3285 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3287 (stub_hash_newfunc): Here too.
3288 (hppa_add_stub): And here.
3289 (elf32_hppa_link_hash_table): Remove stub_section_created,
3290 reloc_section_created, first_init_sec and first_fini_sec. Add
3292 (elf32_hppa_link_hash_table_create): Init to suit.
3293 (hppa_get_stub_entry): Add support for grouping stub sections.
3294 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
3295 section code. Index stub vars by section->id.
3296 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
3297 exit paths. Zap allocation of above removed vars. Refine
3300 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3301 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3302 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3303 rather than pointer to bfd_link_info.
3304 (hppa_add_stub): Likewise.
3305 (final_link_relocate): Likewise.
3307 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
3309 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3312 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
3314 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3315 ld/emulparams/shelf.sh.
3317 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3319 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3320 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3321 * bfd-in2.h: Regenerate.
3323 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
3325 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3326 LITUSE relocations incorrectly if -relax is specified on the ld
3327 command line and the displacement field of the load or store
3328 instruction is non-zero. (Patch by paul.winalski@compaq.com)
3330 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3332 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3333 first_fini_sec here.
3334 (elf32_hppa_size_stubs): Instead correctly find the first .init
3335 and .fini section here.
3337 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
3339 * elf32-hppa.c (clobber_millicode_symbols): New function.
3340 (elf32_hppa_size_dynamic_sections): Call it.
3342 2000-09-14 Alan Modra <alan@linuxcare.com.au>
3344 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3345 packed. Add plabel, plt_abs packed booleans.
3346 (hppa_link_hash_newfunc): Init new fields.
3347 (PLABEL_PLT_ENTRY_SIZE): Define.
3348 (hppa_stub_name): Use size_t len vars.
3349 (hppa_add_stub): Likewise.
3350 (elf32_hppa_build_stubs): Likewise.
3351 (hppa_build_one_stub): Kill some compiler warnings.
3352 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3353 if dynamic linking. Munge the local plt offsets into
3354 local_got_refcounts. Set h->plabel for all global PLABELs. Use
3355 size_t len vars. Add assert for plabel addend.
3356 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3357 (elf32_hppa_hide_symbol): New function.
3358 (elf_backend_hide_symbol): Define.
3359 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3360 with h->plabel set. Don't make plt entries to have dynamic syms
3361 when they have been forced local. If plt entry is used by a
3362 plabel, make it PLABEL_PLT_ENTRY_SIZE.
3363 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3364 Set up .plt offsets for local syms.
3365 (elf32_hppa_relocate_section): Initialise plt entries for local
3366 syms. Leave weak undefined plabels zero. Make global plabel
3367 relocs against function symbol, and leave the addend zero.
3368 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3369 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3370 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
3371 relocs instead of SEGREL32 for dynamic got relocs.
3372 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3373 (elf_backend_got_header_size): Adjust.
3374 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3376 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3377 (hppa_type_of_stub): Use it instead of #if 0
3378 (hppa_discard_copies): Use it here too.
3379 (elf32_hppa_size_dynamic_sections): And here.
3381 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3382 (elf32_hppa_link_hash_table_create): And here.
3383 (hppa_build_one_stub): And here. Instead keep track of stub
3384 offset using _raw_size.
3385 (elf32_hppa_size_stubs): Likewise.
3386 (elf32_hppa_build_stubs): Likewise.
3387 (hppa_size_one_stub): Likewise. Resize reloc section too.
3389 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3390 first_fini_sec handling. Don't search for reloc section or set
3391 hplink->reloc_section_created here.
3392 (elf32_hppa_size_stubs): Instead search for reloc sections, and
3393 set reloc_section_created here.
3394 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3395 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3397 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3399 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3400 with `hplink->root.'.
3401 (elf32_hppa_check_relocs): Likewise.
3402 (elf32_hppa_gc_sweep_hook): Likewise.
3403 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3404 (hppa_handle_PIC_calls): Likewise.
3405 (elf32_hppa_size_dynamic_sections): Likewise.
3406 (elf32_hppa_set_gp): Likewise.
3407 (elf32_hppa_relocate_section): Likewise.
3408 (elf32_hppa_finish_dynamic_symbol): Likewise.
3409 (elf32_hppa_finish_dynamic_sections): Likewise.
3411 From David Huggins-Daines <dhd@linuxcare.com>
3412 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3413 defined weak symbols in shared links.
3414 (final_link_relocate): Calls to defined weak symbols in shared
3415 objects must go via import stubs, as the target might not be known
3418 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3420 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3421 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3422 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
3423 the original entries with EMPTY_HOWTOs, and added new ones to fill
3425 (sh_elf_info_to_howto): Make sure the new gap isn't used.
3426 (sh_elf_relocate_section): Likewise.
3428 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3430 * cpu-mips.c (arch_info_struct): Add mips:4K
3431 * bfd-in2.h (bfd_mach_mips4K): New define.
3432 * archures.c: Add bfd_mach_mips4K to comment.
3433 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3434 E_MIPS_ARCH_2 for bfd_mach_mips4K.
3436 2000-09-13 Marco Franzen <marcof@thyron.com>
3438 * som.c (som_write_symbol_strings): Do not used fixed buffers,
3439 use size_t as a counter.
3440 (som_write_space_strings): Similarly.
3442 2000-09-12 Jason Eckhardt <jle@cygnus.com>
3444 * elf32-i860.c (elf32_i860_relocate_pc26): New function
3446 (elf32_i860_relocate_section): Invoke new function from here.
3448 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3450 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3453 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3455 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3456 target section name instead of dumping core when the target symbol is
3459 2000-09-09 Kazu Hirata <kazu@hxi.com>
3461 * riscix.c: Remove DEFUN.
3463 2000-09-08 Nick Clifton <nickc@redhat.com>
3465 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3466 initialise flags in output bfd if the input bfd is the default
3467 architecture with the default flags.
3469 2000-09-08 Kazu Hirata <kazu@hxi.com>
3471 * archive.c: Fix formatting.
3472 * coff-arm.c: Likewise.
3473 * doc/chew.c: Likewise.
3475 2000-09-08 Alan Modra <alan@linuxcare.com.au>
3477 * section.c (bfd_get_unique_section_name): Put a dot before the
3480 2000-09-07 Kazu Hirata <kazu@hxi.com>
3482 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
3483 * elf.c: Fix formatting.
3485 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
3487 * config.bfd (sh-*-linux*): Added.
3488 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
3489 * targets.c: Declare them.
3490 * elf32-sh-lin.c: New file.
3491 * Makefile.am: Compile it.
3492 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
3493 * configure, Makefile.in: Rebuilt.
3495 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
3497 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
3498 pseduo-section when determining where the TOC ends.
3500 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
3501 output x_tvndx as it is only two bytes wide.
3503 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
3504 reloc is 26 or 32 bits wide.
3506 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
3507 for relocs that don't change anything. Also look at the full
3510 2000-09-06 Philip Blundell <philb@gnu.org>
3512 * config.bfd (arm*-*-uclinux*): New target.
3514 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3516 * configure: Rebuilt with new libtool.m4.
3518 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3520 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
3521 word for variable name.
3522 * bfd-in2.h: Regenerate.
3524 2000-09-05 Nick Clifton <nickc@redhat.com>
3526 * config.in: Regenerate.
3527 * libbfd.h: Regenerate.
3528 * po/bfd.pot: Regenerate.
3529 * doc/bfdint.texi: Remove CVS date string - it foils compares with
3532 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
3534 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
3536 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3538 Shared library and PIC support.
3539 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
3540 (GOT_ENTRY_SIZE): New.
3541 (ELF_DYNAMIC_INTERPRETER): New.
3542 (STUB_SUFFIX): Define.
3543 (LONG_BRANCH_PIC_IN_SHLIB): Define.
3544 (RELATIVE_DYNAMIC_RELOCS): Define.
3545 (enum elf32_hppa_stub_type): New.
3546 (struct elf32_hppa_stub_hash_entry): Rename offset to
3547 stub_offset. Add a number of new fields.
3548 (struct elf32_hppa_link_hash_entry): New.
3549 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
3551 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
3552 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
3553 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
3555 (hppa_link_hash_newfunc): New function.
3556 (elf32_hppa_link_hash_table_create): Use above function. Init new
3558 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
3559 instead of addend, and remove sym_name from args. Don't use
3560 symbol name for local syms, instead use sym index.
3561 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
3562 stub type rather than size. Pass in hash and handle import stub
3563 case. Also pass in reloc instead of offset so we can calculate
3564 PCREL22F and PCREL12F branches properly.
3565 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
3566 import and export stubs too.
3567 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
3568 import and export stub sizing.
3569 (elf32_hppa_check_relocs): New function.
3570 (elf32_hppa_adjust_dynamic_symbol): New function.
3571 (hppa_discard_copies): New function.
3572 (elf32_hppa_size_dynamic_sections): New function.
3573 (elf_backend_size_dynamic_sections): Define.
3574 (elf32_hppa_finish_dynamic_symbol): New function.
3575 (elf_backend_finish_dynamic_symbol): Define.
3576 (elf32_hppa_size_stubs): Stash params in link hash table, and move
3577 some local vars into the link hash table too. For shared links,
3578 trundle over function syms, generating export stubs. Handle
3579 PCREL22F branches. Break out stub creation code from here..
3580 (hppa_add_stub): .. to here. New function.
3581 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
3582 call the bfd linker. Use elf_gp to record global pointer.
3583 Calculate a value from sections if $global$ is missing.
3584 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
3585 (elf32_hppa_gc_mark_hook): New function.
3586 (elf_backend_gc_mark_hook): Define.
3587 (elf32_hppa_gc_sweep_hook): New function.
3588 (elf_backend_gc_sweep_hook): Define.
3589 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
3590 Add rel to args, and remove howto, input_bfd, offset, addend,
3591 sym_name as we can recalculate these locally. Handle calls to
3592 dynamic objects, extra PIC relocs, PCREL22F branches. Change
3593 handling of undefined weak syms. Check that stubs are in range.
3594 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
3595 message on hitting a DPREL21L reloc that needs fixing. Subtract
3596 off PC for PCREL14F. Break out code that does a stub lookup from
3598 (hppa_get_stub_entry): ..to here. New function.
3599 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
3600 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
3602 (elf32_hppa_finish_dynamic_sections): New function.
3603 (elf_backend_finish_dynamic_sections): Define.
3604 (elf_backend_final_write_processing) Define.
3605 (hppa_handle_PIC_calls): New function.
3606 (elf32_hppa_build_stubs): Call it. Pass link_info to
3607 hppa_build_one_stub.
3608 (elf32_hppa_create_dynamic_sections): New function
3609 to create .plt and .got then set .plt flags correctly.
3610 (elf_backend_create_dynamic_sections): Define.
3611 (elf32_hppa_object_p): New function.
3612 (elf_backend_object_p): Define.
3613 (elf32_hppa_elf_get_symbol_type): New function.
3614 (elf_backend_get_symbol_type): Define.
3615 (elf_backend_can_gc_sections): Define.
3616 (elf_backend_want_got_plt): Define.
3617 (elf_backend_plt_alignment): Set to 2.
3618 (elf_backend_plt_readonly): Define.
3619 (elf_backend_want_plt_sym): Define.
3620 (elf_backend_got_header_size): Reserve one entry.
3622 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
3623 (elf32_hppa_size_stubs): Pass in multi_subspace.
3624 (elf32_hppa_set_gp): Declare.
3626 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
3627 (bfd_get_unique_section_name): New function.
3628 * bfd-in2.h: Regenerate.
3630 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
3631 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
3634 From David Huggins-Daines <dhd@linuxcare.com>
3635 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
3636 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
3637 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
3638 been updated in finish_dynamic_symbol before modifying function
3641 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
3642 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
3643 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
3644 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
3645 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
3646 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
3647 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
3648 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
3650 From David Huggins-Daines <dhd@linuxcare.com>
3651 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
3652 style of local labels as well.
3654 2000-09-03 Philip Blundell <philb@gnu.org>
3656 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
3657 references to undefined symbols in debugging sections.
3659 2000-09-02 H.J. Lu <hjl@gnu.org>
3661 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3662 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
3663 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
3666 2000-09-02 Jason Eckhardt <jle@cygnus.com>
3668 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
3669 (elf32_i860_is_local_label_name): New function and prototype.
3671 2000-09-02 Nick Clifton <nickc@redhat.com>
3673 * configure.in: Increase version number to 2.10.91.
3674 * configure: Regenerate.
3675 * aclocal.m4: Regenerate.
3676 * config.in: Regenerate.
3677 * po/bfd.pot: Regenerate.
3679 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3681 * elf.c (_bfd_elf_make_section_from_shdr): Add
3682 .gnu.linkobce.wi. to the list of debug section names.
3684 2000-09-02 Nick Clifton <nickc@redhat.com>
3686 * dwarf2.c (find_debug_info): New function: Locate a section
3687 containing dwarf2 debug information.
3688 (bfd_dwarf2_find_nearest_line): Find all sections containing
3689 debug information and include them in the stash.
3691 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3693 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3694 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3695 (sh_reloc_map): Add new relocs.
3696 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3697 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3698 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3699 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3701 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3702 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3703 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3704 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3705 New array constants.
3706 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3708 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3709 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3710 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3711 elf_sh_plt_reloc_offset): Define.
3712 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3713 elf_sh_link_hash_table): New structs.
3714 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3715 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3717 (elf_backend_create_dynamic_sections,
3718 bfd_elf32_bfd_link_hash_table_create,
3719 elf_backend_adjust_dynamic_symbol,
3720 elf_backend_size_dynamic_sections,
3721 elf_backend_finish_dynamic_symbol,
3722 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3723 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3724 elf_backend_got_header_size, elf_backend_plt_header_size):
3726 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3727 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3729 * bfd-in2.h, libbfd.h: Rebuilt.
3731 2000-09-01 Alan Modra <alan@linuxcare.com.au>
3733 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3736 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
3738 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3739 not initialized, set them to indicate the SH1 instruction set.
3741 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3743 * acinclude.m4: Include libtool and gettext macros from the
3745 * aclocal.m4, configure: Rebuilt.
3747 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
3749 * elf.c: Eliminate references to __sparcv9 macro; replace with
3750 autoconf variables HAVE_PSINFO32_T etc.
3751 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
3752 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
3754 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
3755 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
3756 * aclocal.m4: Ditto.
3757 * configure: Regenerate.
3759 2000-08-27 Alan Modra <alan@linuxcare.com.au>
3761 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
3762 for any shared link, not just shared -Bsymbolic.
3763 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
3764 any shared link, and pass link info to it.
3765 (elf_i386_size_dynamic_sections): Update comment.
3766 (elf_i386_discard_copies): Modify to discard relocs for symbols
3767 that have been forced local.
3768 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
3769 that have been forced local.
3771 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
3773 * elflink.h (elf_link_add_object_symbols): Allow common
3774 symbols to have an alignment of 1 if explicitly requested, and
3775 not overridden by other definitions.
3777 2000-08-22 Doug Kwan <dkwan@transmeta.com>
3779 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
3780 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
3782 2000-08-22 H.J. Lu <hjl@gnu.org>
3784 * elf-bfd.h (elf_link_hash_table): Add runpath.
3786 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
3787 * bfd-in2.h: Rebuilt.
3789 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
3790 "runpath" field to NULL.
3791 (bfd_elf_get_runpath_list): New function.
3793 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
3796 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3798 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
3799 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
3800 explicitly. Improve validation of r_type.
3802 2000-08-21 H.J. Lu <hjl@gnu.org>
3804 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
3805 dynamic allocated content space. Add a comment to remind us that
3806 one day this ought to be fixed.
3807 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3808 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3809 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3811 2000-08-21 Jason Eckhardt <jle@cygnus.com>
3813 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
3814 field with the newly relocated value instead of adding it to the
3815 existing immediate field.
3816 (elf32_i860_relocate_splitn): Likewise.
3817 (elf32_i860_relocate_highadj): Likewise.
3819 2000-08-16 Jason Eckhardt <jle@cygnus.com>
3821 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
3822 was previously just a stub).
3824 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
3826 * elflink.c (_bfd_elf_create_got_section): Don't abort().
3828 (_bfd_elf_create_dynamic_sections): Likewise.
3830 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
3832 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
3833 for undefined symbols to be the beginning of the section.
3835 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
3836 four extra entries at the beginning of the .rela.plt section.
3837 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
3838 section to account for the four reserved entries in the .plt section.
3840 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
3842 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
3843 to the list of NOPs we recognize after a branch-and-link.
3844 Use the ori NOP when one is needed.
3846 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
3849 2000-08-14 Jim Wilson <wilson@cygnus.com>
3851 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
3852 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
3853 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
3856 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
3858 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
3860 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3862 * elf32-i860.c (elf32_i860_relocate_section): New function.
3863 (i860_final_link_relocate): New function.
3864 (elf32_i860_relocate_splitn): New function.
3865 (elf32_i860_relocate_pc16): New function.
3866 (elf32_i860_relocate_highadj): New function.
3867 (elf32_i860_howto): Minor adjustments to some relocations.
3868 (elf_info_to_howto_rel): Define.
3869 (elf_backend_relocate_section): Define.
3871 2000-08-10 Nick Clifton <nickc@cygnus.com>
3873 * elf32-arm.h: Fix formatting.
3875 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
3877 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
3879 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3881 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
3883 2000-08-07 Kazu Hirata <kazu@hxi.com>
3885 * ieee.c (ieee_write_debug_part): Rewrite a comment.
3886 * elf64-ia64.c: Fix a typo.
3888 2000-08-05 Jason Eckhardt <jle@cygnus.com>
3890 * elf32-i860.c (elf32_i860_howto_table): New structure.
3891 (lookup_howto): New function.
3892 (elf32_i860_reloc_type_lookup): New function.
3893 (elf32_i860_info_to_howto_rela): New function.
3894 (elf_code_to_howto_index): New structure.
3895 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
3896 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
3897 elf32_i860_reloc_type_lookup.
3899 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
3901 * som.c (struct fixup_format): Constify `format'.
3902 (som_hppa_howto_table): Use SOM_HOWTO macro.
3903 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
3904 (som_bfd_reloc_type_lookup): Likewise.
3905 (compare_subspaces): Remove unused `count1', `count2'.
3906 (som_begin_writing): Remove unused `total_reloc_size'.
3907 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
3908 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
3909 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
3910 (som_find_nearest_line): Decorate unused parameter(s).
3911 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
3912 (som_bfd_link_split_section): Likewise.
3914 2000-08-03 Nick Clifton <nickc@cygnus.com>
3916 * section.c: Restore backed out code.
3917 * elf.c: Restore backed out code.
3918 (copy_private_bfd_data): Fix bug preventing stipped dynamic
3919 binaries from working.
3920 * bfd-in2.h: Regenerate.
3922 2000-08-03 H.J. Lu <hjl@gnu.org>
3924 * section.c: Back out the change made by Nick Clifton
3925 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
3927 * bfd-in2.h: Likewise.
3930 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
3932 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
3934 2000-07-31 Jason Eckhardt <jle@cygnus.com>
3936 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
3937 * bfd-in2.h, libbfd.h: Regenerate.
3939 2000-07-31 Nick Clifton <nickc@cygnus.com>
3941 * section.c (struct sec): Add new boolean field 'segment_mark'.
3942 (STD_SECTION): Initialise new field to zero.
3944 * bfd-in2.h: Regenerate.
3946 * elf.c (copy_private_bfd_data): Reorganise section to segment
3947 mapping to cope with moved sections requiring new segments,
3948 and overlapping segments.
3949 (SEGMENT_END): New macro: Return the end address of a segment.
3950 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
3951 contains a section by comparing their VMA addresses.
3952 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
3953 contains a section by comparing their LMA addresses.
3954 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
3955 section should be included in a segment.
3956 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
3957 follows another in memory.
3958 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
3961 2000-07-22 Jason Eckhardt <jle@cygnus.com>
3963 * cpu-i860.c: Added comments.
3965 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
3966 bfd_elf32_i860_little_vec.
3967 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
3968 (ELF_MAXPAGESIZE): Changed to 4096.
3970 * targets.c (bfd_elf32_i860_little_vec): Declaration of
3972 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3974 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3975 config for little endian elf32 i860.
3976 (targ_defvec): Define for the new config above
3977 as "bfd_elf32_i860_little_vec".
3978 (targ_selvecs): Define for the new config above
3979 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3981 * configure.in (bfd_elf32_i860_little_vec): Added recognition
3984 * configure: Regenerated.
3986 2000-07-27 H.J. Lu <hjl@gnu.org>
3988 * elflink.h (elf_merge_symbol): Take one more argument,
3989 dt_needed, to indicate if the symbol comes from a DT_NEEDED
3990 entry. Don't overide the existing weak definition if dt_needed
3992 (elf_link_add_object_symbols): Pass dt_needed to
3993 elf_merge_symbol ().
3995 2000-07-27 Nick Clifton <nickc@cygnus.com>
3997 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
4000 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
4002 * configure.host (*-*-aix*): AIX has 'long long' always.
4004 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
4005 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
4006 (xcoff_write_archive_contents_big): Don't update the offset
4007 of the symbol table, xcoff_write_armap will do it.
4009 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
4011 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
4012 of dynobj for SGI_COMPAT checks.
4014 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4016 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
4017 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
4018 * bfd-in2.h: Regenerate.
4020 2000-07-21 Nick Clifton <nickc@cygnus.com>
4022 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
4023 range symbol indices in relocs and issue an error message.
4025 2000-07-20 H.J. Lu <hjl@gnu.org>
4027 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
4028 info->new_dtags when setting DT_FLAGS_1. It will only be set
4029 by the new linker options. It shouldn't break anything.
4031 2000-07-20 H.J. Lu <hjl@gnu.org>
4033 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
4034 only if info->new_dtags is true.
4036 2000-07-20 H.J. Lu <hjl@gnu.org>
4038 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
4039 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
4041 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4043 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
4044 (ALL_MACHINES_CFILES): Add cpu-cris.c.
4045 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
4046 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
4047 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
4048 * Makefile.in: Rebuild.
4049 * aclocal.m4: Rebuild.
4050 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
4051 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
4052 (bfd_cris_arch): Declare.
4053 (bfd_archures_list): Add bfd_cris_arch.
4054 * bfd-in2.h: Rebuild.
4055 * config.bfd: (cris-*-*): New target.
4056 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
4057 * configure: Rebuild.
4058 * elf.c (prep_headers): Add bfd_arch_cris.
4059 * libbfd.h: Rebuild.
4060 * libaout.h (enum machine_type): Add M_CRIS.
4061 * reloc.c: Add CRIS relocations.
4062 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
4063 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
4064 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
4065 * po/POTFILES.in, po/bfd.pot: Regenerate.
4067 2000-07-19 H.J. Lu <hjl@gnu.org>
4069 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
4070 DF_TEXTREL if DT_TEXTREL is set.
4071 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4072 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4073 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4074 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
4075 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4076 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4077 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
4078 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4079 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
4080 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4082 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
4083 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
4085 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
4087 2000-07-19 H.J. Lu <hjl@gnu.org>
4089 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
4090 * bfd-in2.h: Rebuild.
4092 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
4093 (elf_dt_soname): New.
4095 * elf.c (bfd_elf_set_dt_needed_soname): New.
4097 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
4098 entry if the shared object loaded by DT_NEEDED is used to
4099 resolve the reference in a regular object.
4101 2000-07-19 H.J. Lu <hjl@gnu.org>
4103 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
4104 DT_DEPAUDIT and DT_AUDIT as strings.
4106 2000-07-19 Nick Clifton <nickc@cygnus.com>
4108 * format.c: Fix formatting.
4110 2000-07-19 H.J. Lu <hjl@gnu.org>
4112 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
4114 2000-07-19 H.J. Lu <hjl@gnu.org>
4116 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
4117 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
4118 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
4119 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
4120 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
4121 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
4122 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
4124 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
4126 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
4127 renamed functions from here...
4128 (assign_section_numbers): Use renamed functions.
4129 (prep_headers): Use renamed functions.
4131 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
4132 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
4133 * bfd-in2.h: Regenerate.
4135 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
4137 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
4138 parenthesis in if statement.
4140 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
4142 Enable the support for Traditional MIPS.
4143 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
4144 return ict_none appropriately for traditional mips targets.
4145 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
4146 (STUB_MOVE): Conditionalize for traditonal mips.
4147 (STUB_LI16): Likewise.
4148 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
4149 room for RTPROC header.
4150 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
4151 the permission for the PT_DYNAMIC as read, write and execute.
4152 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
4153 for traditonal mips.
4154 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
4155 _DYNAMIC_LINKING for traditonal mips.
4156 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
4157 in case of traditonal mips.
4158 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
4159 entry is required. For a function if PLT is not required then set the
4160 corresponding hash table entry to 0.
4161 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
4163 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
4164 shared object set the value to 0.
4165 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
4166 _DYNAMIC_LINKING for traditonal mips.
4167 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
4168 for traditonal mips.
4170 2000-07-15 H.J. Lu <hjl@gnu.org>
4172 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
4174 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4176 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
4177 out a structure that is BFD_IN_MEMORY.
4179 2000-07-11 Alan Modra <alan@linuxcare.com.au>
4181 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
4182 bfd pointer. Print section id instead of bfd pointer for local
4183 syms. Prefix addend with `+' for global syms as well as local.
4184 Correct calculation of name component lengths.
4185 (elf64_hppa_check_relocs): Update call to get_dyn_name.
4187 From David Huggins-Daines <dhd@linuxcare.com>
4188 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
4189 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
4190 (elf64_hppa_modify_segment_map): Likewise.
4192 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4194 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
4195 addresses to be "naturally" sign extended. Return -1 if unknown.
4196 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
4197 * bfd-in2.h: Regenerate.
4199 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4201 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
4202 and ECOF_SIGNED_64 to list ways to extract an offset.
4203 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
4204 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
4206 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
4207 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
4209 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
4211 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
4212 bfd_get_start_address.
4213 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
4214 (elf_swap_ehdr_out): Ditto.
4216 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
4218 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
4219 compatibility with older binutils.
4221 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4223 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
4224 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
4226 From Ryan Bradetich <rbradetich@uswest.net>
4227 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
4228 (parse_line_table): Ditto.
4229 (_bfd_dwarf1_find_nearest_line): Ditto.
4230 * syms.c (cmpindexentry): Remove extra `*' from params.
4232 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
4234 * elf32-mips.c (sort_dynamic_relocs): New Function.
4235 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
4236 via qsort to sort the dynamic relocations in increasing r_symndx
4239 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4241 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4242 ATTRIBUTE_UNUSED to unused args.
4243 (get_opd): Likewise.
4244 (get_plt): Likewise.
4245 (get_dlt): Likewise.
4246 (get_stub): Likewise.
4247 (elf64_hppa_adjust_dynamic_symbol): Likewise.
4248 (elf64_hppa_link_output_symbol_hook): Likewise.
4249 (elf64_hppa_check_relocs): Delete unused var.
4250 (elf64_hppa_size_dynamic_sections): Likewise.
4251 (elf64_hppa_finalize_opd): Likewise.
4252 (elf64_hppa_finalize_dynreloc): Likewise.
4253 (elf64_hppa_modify_segment_map): Likewise.
4254 (elf64_hppa_finish_dynamic_sections): Likewise.
4256 * elf-hppa.h (elf_hppa_final_write_processing): Add
4257 ATTRIBUTE_UNUSED to unused args.
4258 (elf_hppa_final_link_relocate): Likewise.
4259 (elf_hppa_record_segment_addrs): Add paretheses.
4260 (elf_hppa_relocate_section): Constify dyn_name.
4262 From David Huggins-Daines <dhd@linuxcare.com>
4263 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4264 rearrange case statement so that it gets preferred to 32-bit ones.
4266 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4267 asection->id instead of address of asection structure.
4268 (elf32_hppa_size_stubs): Likewise.
4270 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4271 for .init* and .fini*.
4273 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4274 and addends used in stub names to 32 bits.
4275 (elf32_hppa_size_stubs): Likewise.
4277 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4278 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
4279 not bfd_put_64. Fix minor comment typo and formatting.
4281 Changes to create multiple linker stubs, positioned immediately
4282 before the section where they are required.
4283 * elf32-hppa.c: Don't include hppa_stubs.h.
4284 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4285 (elf32_hppa_stub_hash_table): Delete.
4286 (elf32_hppa_link_hash_entry): Delete.
4287 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4288 stub_hash_table, and store the struct here rather than a pointer.
4289 Delete output_symbol_count. Add offset array. Change
4290 global_value to a bfd_vma.
4291 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4292 (elf32_hppa_stub_hash_traverse): Delete.
4293 (elf32_hppa_name_of_stub): Delete.
4294 (elf32_hppa_link_hash_lookup): Delete.
4295 (elf32_hppa_link_hash_traverse): Delete.
4296 (elf32_hppa_stub_hash_table_init): Delete.
4297 (elf32_hppa_size_of_stub): Pass input section and offset rather
4298 than location and calculate location here. Don't pass name as all
4299 stubs are now the same size.
4300 (elf32_hppa_stub_hash_newfunc): Init new fields.
4301 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4303 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4304 comparing against ints. Rewrite stub handling code.
4305 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4306 Case enums to int before comparing against ints. Remove
4307 bfd_reloc_dangerous case.
4308 (elf32_hppa_build_one_stub): Rewrite.
4309 (elf32_hppa_size_one_stub): New function.
4310 (elf32_hppa_build_stubs): Rewrite.
4311 (elf32_hppa_size_stubs): Pass in linker call-back functions.
4312 Rewrite stub-handling specific code.
4314 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4316 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4318 * hppa_stubs.h: Delete.
4319 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4320 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4321 * Makefile.in: Regenerate.
4323 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4326 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4328 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4329 and section name for bfd_reloc_notsupported error message.
4330 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4331 bfd_reloc_notsupported.
4332 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4334 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4335 undefined weak symbols for all relocs.
4336 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4337 offsets are relative to one past the delay slot.
4338 (elf32_hppa_size_stubs): Account for reloc addend when calculating
4339 branch destination. Put addend into stub name too.
4340 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4341 adjust by 8 when deciding whether a linker stub is needed. Put
4342 addend into stub name as for above.
4344 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4345 various args and vars.
4346 (elf32_hppa_bfd_final_link_relocate): Here too.
4347 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
4348 inner block var to avoid shadowing.
4350 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
4352 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4353 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4354 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4356 * libhppa.h: Change practically all unsigned ints to plain ints.
4357 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
4360 From Ryan Bradetich <rbradetich@uswest.net>
4361 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4362 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4364 From David Huggins-Daines <dhd@linuxcare.com>
4365 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4366 to the new OP_* ones.
4368 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4369 error exit. Bail out earlier on plabel relocs that we aren't
4370 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
4371 string, and then don't free our copy.
4372 (elf32_hppa_build_one_stub): Make insn unsigned int.
4374 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4375 available with BL, not BE and BLE.
4377 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4378 code for elf arg relocs.
4379 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4380 argument with elf_link_hash_entry h. Handle undefined weak
4381 symbols. Move $global$ lookup from here...
4382 (elf32_hppa_relocate_section): ...to here. Return correct error
4383 message for non-handled relocs.
4384 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
4385 wrong test was -0x3ffff to +0x40000.
4387 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4388 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4389 Handle them as such.
4390 (elf_hppa_relocate_insn): Fix a typo.
4392 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4393 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4394 assemble_17, assemble_21): Delete.
4395 Supply defines for all 64 possible opcodes.
4396 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4397 formats. Handle COMICLR.
4398 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
4401 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4402 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4403 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4405 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
4406 the local syms - did this code get deleted accidentally? Ignore
4407 undefined and undefweak syms.
4409 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4410 block. Use it instead of elf64_hppa_hash_table (info).
4411 (elf_hppa_final_link_relocate): Use hppa_info instead of
4412 elf64_hppa_hash_table (info).
4414 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4415 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4416 (hppa_rebuild_insn): Mask immediate bits here instead.
4417 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4419 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4421 * section.c (struct sec): Add id field. Tidy comment formatting.
4422 (bfd_make_section_anyway): Set id.
4423 (STD_SECTION): Init id too.
4424 Change CONST to const throughout.
4425 * archures.c (bfd_arch_info): Tidy comment.
4426 (bfd_arch_list): Change a CONST to const.
4427 * libbfd-in.h: Tidy comments and replace CONST with const.
4428 * elf-bfd.h: Likewise.
4429 * libbfd.h: Regenerate.
4430 * bfd-in2.h: Regenerate.
4431 * libcoff.h: Regenerate.
4433 2000-07-07 DJ Delorie <dj@redhat.com>
4435 * archive.c (_bfd_write_archive_contents): Add an informative
4438 2000-07-06 Kazu Hirata <kazu@hxi.com>
4440 * srec.c: Fix formatting.
4442 2000-06-05 DJ Delorie <dj@redhat.com>
4446 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
4448 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4449 value of PC-relative offsets.
4451 2000-07-03 Jim Wilson <wilson@cygnus.com>
4453 * elf64-alpha.c (alpha_elf_size_info): New.
4454 (elf_backend_size_info): Define to alpha_elf_size_info.
4455 * elfcode.h (elf_size_info): Change hash bucket size to 4.
4457 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
4459 * elf32-mips.c: Include elf32-target.h again for the traditional
4462 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4464 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4465 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4466 (avr_info_to_howto_rela): Likewise.
4467 (elf32_avr_gc_mark_hook): Likewise.
4468 (elf32_avr_gc_sweep_hook): Likewise.
4469 (elf32_avr_relocate_section): Likewise.
4471 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
4473 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
4474 an external symbol for a non-shared, non-relocatable link.
4476 2000-07-03 Nick Clifton <nickc@redhat.com>
4478 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
4479 is an external symbol.
4480 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
4483 2000-07-03 Kazu Hirata <kazu@hxi.com>
4485 * reloc16.c: Fix formatting.
4487 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4489 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
4490 to add a new target for traditional mips i.e
4491 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
4492 * configure.in: Likewise.
4493 * configure: Rebuild.
4494 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
4496 (bfd_elf32_tradlittlemips_vec): Likewise.
4497 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
4498 to see that elfNN_bed does not get redefined even if the target file
4499 is included twice for a chip. See elf32-mips.c.
4501 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4503 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4504 (CLEANFILES): Add DEPA.
4505 * Makefile.in: Regenerate.
4507 2000-06-30 DJ Delorie <dj@cygnus.com>
4509 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
4510 can't assume the PE header is at 0x80.
4512 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4514 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4516 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
4518 * go32stub.h: Update stub.
4520 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4522 * archures.c (bfd_mach_avr5): Define.
4523 * bfd-in2.h (bfd_mach_avr5): Define.
4524 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
4525 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
4526 (compatible): Update comment. Add missing test.
4527 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
4528 for avr2 and avr4. Simplify 8K wrap code.
4529 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
4530 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
4532 2000-06-26 Kazu Hirata <kazu@hxi.com>
4534 * coff-h8300.c: Fix formatting.
4535 * cpu-h8300.c: Likewise.
4537 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
4539 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
4540 for local symbols whose names are unknown.
4542 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4544 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4546 * Makefile.in: Regenerate.
4547 * doc/Makefile.in: Regenerate.
4549 2000-06-20 H.J. Lu <hjl@gnu.org>
4551 * Makefile.am: Rebuild dependency.
4552 * Makefile.in: Rebuild.
4554 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4556 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
4557 (elf_backend_copy_indirect_symbol): Map to the new function.
4559 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4561 * archive.c (normalize): Correct pointer comparison when checking
4563 (bfd_bsd_truncate_arname): Likewise.
4564 (bfd_gnu_truncate_arname): Likewise.
4566 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
4568 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
4569 sections elf_{text,data}_{section,symbol}.
4570 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
4571 (_bfd_mips_elf_hide_symbol): New function.
4572 (elf_backend_hide_symbol): Map to the new function.
4573 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
4574 definitions of mips_elf_{text,data}_{section,symbol}.
4575 (mips_elf_local_relocation_p): Try to find the direct symbol
4576 based on new check_forced argument.
4577 (mips_elf_calculate_relocation): Use new version of
4578 mips_elf_local_relocation_p.
4579 (mips_elf_relocate_section): Likewise.
4580 (_bfd_mips_elf_relocate_section): Likewise.
4581 (mips_elf_sort_hash_table): Only assert that have enough GOT
4583 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
4584 entry if the relocation based on the new external argument.
4585 (mips_elf_create_dynamic_relocation): Assert that we have a
4586 section contents allocated where we can swap out the dynamic
4588 (mips_elf_calculate_relocation): Find the real hash-table entry
4589 correctly by using h->root.root.type. Only create a dynamic
4590 relocation entry if the symbol is defined in a shared library.
4591 Create an external GOT entry for the GOT16 relocation if the
4592 symbol was forced local.
4593 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
4594 dynamic index if the symbol was forced local.
4596 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4598 * elf32-mips.c: Fix typos in comments.
4600 2000-06-19 Mark Kettenis <kettenis@gnu.org>
4602 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
4605 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4607 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
4608 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
4609 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
4610 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
4611 (bfd_elf32_m68hc11_vec): Likewise.
4612 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
4613 Supports 68hc11 & 68hc12 at the same time.
4614 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
4616 (bfd_elf32_m68hc11_vec): Likewise.
4617 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
4618 * archures.c (bfd_m68hc12_arch): Define and register in global list
4619 (bfd_m68hc11_arch): Likewise.
4620 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
4621 BFD_RELOC_M68HC11_3B): Define.
4622 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
4623 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
4625 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
4627 * elf_bfd.h (struct elf_backend_data): Add info argument to
4628 elf_backend_hide_symbol.
4629 (_bfd_elf_link_hash_hide_symbol): Likewise.
4630 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
4631 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
4632 * elflink.h (elf_link_add_object_symbols): Likewise.
4633 (elf_link_assign_sym_version): Likewise.
4635 2000-06-18 H.J. Lu <hjl@gnu.org>
4637 * coff-i386.c (coff_i386_reloc): Don't return in case of
4638 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
4639 Compensate PE relocations when linking with non-PE object
4640 files to generate a non-PE executable.
4642 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
4644 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
4645 GOT entries if we're doing a static link or -Bsymbolic link.
4647 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
4649 * elflink.h (elf_link_adjust_relocs): Check for and call backend
4650 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
4652 (elf_link_output_relocs): Likewise.
4653 (elf_reloc_link_order): Likewise.
4655 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4657 * archures.c (enum bfd_architecture): #define constants for
4658 PowerPc and RS6000 machine numbers.
4659 * bfd-in2.h: Regenerate.
4660 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
4661 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
4662 and RS6000 machine numbers using #defined constants from
4664 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
4665 machine numbers using #defined constants from archures.c. Add
4666 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
4667 64-bit words in 620 entry.
4668 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
4670 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
4672 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
4674 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
4675 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
4676 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
4678 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4680 * bfd-in.h (bfd_family_coff): Define.
4681 * bfd-in2.h: Regenerate.
4682 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4683 coff_find_nearest_line): Check COFFness using bfd_family_coff()
4684 instead of bfd_target_coff_flavour.
4685 * cofflink.c (_bfd_coff_final_link): Likewise.
4686 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4687 exclude XCOFF files.
4688 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4690 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4691 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4692 * xcofflink.c (XCOFF_XVECP): Delete.
4693 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4694 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4695 bfd_xcoff_record_link_assignment,
4696 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4697 check for bfd_target_xcoff_flavour.
4699 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4701 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4703 (read_hdr): New function.
4704 (rs6000coff_core_p): Store mstsave or __context64 struct instead
4705 of trying to extract individual registers. Set abfd->arch_info
4706 to match the architecture that created the core file.
4707 (rs6000coff_get_section_contents): Delete.
4708 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4710 2000-06-14 H.J. Lu <hjl@gnu.org>
4712 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4715 2000-06-13 H.J. Lu <hjl@gnu.org>
4717 * configure: Regenerate.
4719 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
4721 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4724 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4726 * configure.in (VERSION): Update to show this is the CVS mainline.
4728 2000-06-07 Alan Modra <alan@linuxcare.com.au>
4730 * elf32-d10v.c: Include elf/d10v.h
4731 (enum reloc_type): Delete.
4732 * elf32-d30v.c: Include elf/d30v.h
4733 (enum reloc_type): Delete.
4735 * Makefile.am: Run "make dep-am" to regenerate dependencies.
4736 * Makefile.in: Regenerate.
4738 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4739 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4740 move HOWTOs into elf_howto_table.
4741 (R_386_standard, R_386_ext_offset): Define.
4742 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
4743 (elf_i386_reloc_type_lookup): Modify calculation of index into
4744 elf_howto_table since we've removed the padding.
4745 (elf_i386_info_to_howto_rel): Likewise.
4746 (elf_i386_relocate_section): Likewise.
4748 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
4750 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
4752 2000-06-05 H.J. Lu <hjl@gnu.org>
4754 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
4755 an error when seeing an undefined symbol with hidden/internal
4756 attribute. It is handled in *_relocate_section ().
4758 2000-06-05 H.J. Lu <hjl@gnu.org>
4760 * elflink.h (elf_fix_symbol_flags): Follow the link for the
4761 indirect symbol for the ELF_LINK_NON_ELF bit.
4762 (elf_link_output_extsym): Don't output the indirect symbol even
4763 if the ELF_LINK_NON_ELF bit is set.
4765 2000-06-01 J.T. Conklin <jtc@redback.com>
4767 * config.bfd (i[3456]86-*-netbsdelf*): New target.
4768 (i[3456]86-*-netbsdaout*): New target.
4769 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
4770 (i[3456]86-*-openbsd*): Likewise.
4772 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
4774 * trad-core.c: From hpux-core.c, include <dirent.h> or
4775 <sys/ndir.h> when possible.
4777 2000-05-31 Ulrich Drepper <drepper@redhat.com>
4779 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
4780 definitions. We must not assume they are sorted in the file
4781 according to their index numbers.
4783 2000-05-31 Alan Modra <alan@linuxcare.com.au>
4785 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
4786 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
4787 R_PARISC_DIR17F are for absolute branches; Handle them as such.
4789 2000-05-30 Nick Clifton <nickc@cygnus.com>
4791 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
4792 80960CA, 80960MC as valid machine names.
4794 2000-05-30 H.J. Lu <hjl@gnu.org>
4796 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
4797 visibility bits if the symbol is undefined. Correctly handle
4798 weak undefined symbols with hidden and internal attributes.
4800 * elflink.h (elf_link_add_object_symbols): Always turn the
4801 symbol into local if it has the hidden or internal attribute.
4803 2000-05-29 Philip Blundell <philb@gnu.org>
4805 * ppcboot.c: Add packed attribute if compiling with GCC.
4807 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
4809 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
4811 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
4813 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4814 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
4815 corefile on a 64-bit (Sparc Solaris) host. Also clean up
4818 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4820 * Makefile.am: Update dependencies with "make dep-am"
4821 * Makefile.in: Regenerate.
4823 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
4824 bindtextdomain): Replace defines with those from intl/libgettext.h
4825 to quieten gcc warnings.
4827 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4829 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
4831 * archive.c (normalize, bfd_bsd_truncate_arname,
4832 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
4833 file names with backslashes.
4835 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
4838 * sysdep.h: Include filenames.h.
4840 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4842 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
4844 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4846 * elf64-sparc.c (sparc64_elf_relax_section): New.
4847 (sparc64_elf_relocate_section): Optimize tail call into branch always
4849 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4850 (elf32_sparc_relax_section): New.
4852 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4854 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
4855 Remove unusued variables.
4856 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
4857 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
4858 previous fix, so that shared libs really don't influence targets
4859 extension mask and memory model.
4861 2000-05-23 H.J. Lu <hjl@gnu.org>
4863 * elf64-alpha.c (elf64_alpha_relocate_section): Check
4864 h->root.other not h->other.
4865 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4867 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
4869 2000-05-23 H.J. Lu <hjl@gnu.org>
4871 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
4872 undefined symbol with the non-default visibility attributes.
4873 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4874 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4875 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4876 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4877 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4878 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4879 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4880 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4881 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4882 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
4883 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4885 2000-05-22 Richard Henderson <rth@cygnus.com>
4887 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
4888 PCREL22, PCREL64I. Zero size of special relocs.
4889 (elf64_ia64_reloc_type_lookup): Likewise.
4890 (USE_BRL, oor_brl, oor_ip): New.
4891 (elf64_ia64_relax_section): New.
4892 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
4893 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
4894 (elf64_ia64_relocate_section): Likewise.
4895 (bfd_elf64_bfd_relax_section): New.
4896 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
4897 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
4898 * bfd-in2.h, libbfd.h: Regenerate.
4900 2000-05-22 Nick Clifton <nickc@cygnus.com>
4902 * configure.in : Add peigen.lo to MIPS PE targets.
4903 * configure: Regenerate.
4905 2000-05-22 Momchil Velikov <velco@fadata.bg>
4907 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
4908 only if it is known for both input and output bfds. Separate
4909 error message strings as in some languages, it may be necessary
4910 to change more than one place in the string to change between
4913 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
4914 endianess checks, call _bfd_generic_verify_endian_match() instead.
4916 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
4918 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
4920 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
4921 endianess before checking bfd flavours.
4923 2000-05-22 H.J. Lu <hjl@gnu.org>
4925 * elflink.h (elf_link_output_extsym): Clear the visibility
4926 field for symbols not defined locally.
4928 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4930 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4931 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4932 (hppa_rebuild_insn): Mask immediate bits here instead.
4933 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4935 2000-05-18 Momchil Velikov <velco@fadata.bg>
4937 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
4938 relocs for an executable, ensure that they are virtual addresses.
4940 2000-05-18 Jeffrey A Law (law@cygnus.com)
4942 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
4944 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4945 Rick Gorton <gorton@scrugs.lkg.dec.com>
4947 * elflink.h: Add emitrelocations support: when enabled, relocation
4948 information and relocation sections are put into final output
4949 executables. If the emitrelocations flag is set, do the following:
4950 (elf_bfd_final_link): Emit relocation sections.
4951 (elf_link_input_bfd): Compute relocation section contents.
4952 (elf_gc_sections): Don't clean relocation sections.
4954 2000-05-16 Catherine Moore <clm@cygnus.com>
4956 * som.c (som_decode_symclass): Recognize weak symbols.
4958 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
4960 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
4961 read idata section only from dataoff.
4962 (pe_print_edata): Correctly check for valid eat_member.
4964 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
4966 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4968 2000-05-14 Philip Blundell <philb@gnu.org>
4970 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
4972 2000-05-12 Alan Modra <alan@linuxcare.com.au>
4974 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4976 * peigen.c (pe_print_idata): Look for .idata section and print
4977 info even if data directory has zero entries. Read idata section
4978 starting from dataoff, and adjust all data offsets to suit. Cast
4979 all bfd_vma vars to unsigned long before passing to fprintf.
4980 * peigen.c (pe_print_edata): Similarly, look for .edata section
4981 and print info even if data directory has zero entries. Cast
4982 all bfd_vma vars to unsigned long before passing to fprintf.
4984 From Szabolcs Szakacsits <szaka@F-Secure.com>
4985 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4986 directory size which may be bogus.
4987 * peigen.c (pe_print_edata): Similarly.
4989 2000-05-09 Alan Modra <alan@linuxcare.com.au>
4991 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4993 (copy_private_bfd_data): Allow for space possibly taken up by elf
4994 headers when calculating segment physical address from lma.
4996 2000-05-08 Alan Modra <alan@linuxcare.com.au>
4998 * versados.c (versados_scan): Init stringlen and pass_2_done.
5000 * trad-core.c (trad_unix_core_file_p): Return
5001 bfd_error_wrong_format rather than bfd_error_file_truncated.
5003 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
5004 add_data_entry. DataDirectory virtual address is relative.
5005 (pe_print_idata): Account for relative DataDirectory virtual
5006 addresses. Don't trash datasize inside POWERPC_LE_PE code.
5007 (pe_print_edata): Similarly.
5009 From Szabolcs Szakacsits <szaka@F-Secure.com>
5010 * peigen.c (dir_names): Add Delay Import Directory.
5011 (pe_print_idata): Always search for bfd section containing
5012 idata address rather than looking up section name. Print this
5013 section name rather than .idata.
5014 (pe_print_edata): Similarly. Also print some fields as %08lx.
5015 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
5018 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5020 * xcoff.h: Rename to xcoff-target.h
5021 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
5022 * coff-rs6000.c: Ditto.
5023 * coff64-rs6000.c: Ditto.
5024 * coff-pmac.c: Ditto.
5025 * Makefile.in: Regenerate.
5027 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
5029 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
5030 Change U802TOC64MAGIC to U803XTOCMAGIC.
5032 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
5034 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
5035 * bfd-in.h: Prototype bfd_elf_get_arch_size.
5036 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
5038 2000-05-04 Alan Modra <alan@linuxcare.com.au>
5040 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
5042 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
5044 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
5045 hidden and internal symbols.
5046 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
5048 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
5049 assign a PLT or GOT entry to symbols with hidden and
5050 internal visibility.
5052 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
5054 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
5056 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5058 2000-05-02 H.J. Lu <hjl@gnu.org>
5060 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
5063 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5065 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
5066 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
5068 * Makefile.in: Regenerate.
5070 2000-05-01 Jim Wilson <wilson@cygnus.com>
5072 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
5073 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
5074 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
5075 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
5076 * Makefile.in: Rebuild.
5078 2000-05-02 Alan Modra <alan@linuxcare.com.au>
5080 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
5081 doesn't work very well.
5083 * elf-hppa.h (elf_hppa_internal_shdr): Define.
5084 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
5085 Set hdr->s_type to 1 if ARCH_SIZE == 32.
5086 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
5087 (elf_hppa_info_to_howto): Likewise.
5088 (elf_hppa_info_to_howto_rel): Likewise.
5089 (elf_hppa_reloc_type_lookup): Likewise.
5090 (elf_hppa_is_local_label_name): Likewise.
5091 (elf_hppa_fake_sections): Likewise.
5092 (elf_hppa_final_write_processing): Likewise.
5093 (elf_hppa_howto_table): Fully initialise all entries.
5094 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
5095 (elf_hppa_info_to_howto): Likewise.
5096 (elf_hppa_info_to_howto_rel): Likewise.
5097 (elf_hppa_reloc_type_lookup): Likewise.
5098 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
5099 elf_hppa_unmark_useless_dynamic_symbols,
5100 elf_hppa_remark_useless_dynamic_symbols,
5101 elf_hppa_record_segment_addrs, elf_hppa_final_link,
5102 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
5103 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
5104 elf32-hppa.c mess is cleaned up.
5105 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
5106 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
5107 r_field then call hppa_field_adjust inline func with variable
5108 r_field arg, instead call hppa_field_adjust with fixed arg.
5109 In case R_PARISC_PCREL22F, don't set r_field.
5110 (elf_hppa_relocate_insn): Change args and return type to unsigned
5111 int. Call re_assemble_* funcs to do the work.
5113 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
5116 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
5118 (sign_extend): Mask first before sign extending.
5119 (low_sign_extend): Rewrite without condition expression.
5120 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
5121 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
5122 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5123 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
5124 result as function return value rather than through pointer arg.
5125 Accept unsigned int args, and return unsigned int.
5126 (re_assemble_3): New. Combines function of dis_assemble_3 with
5127 re-assembly of opcode and immediate.
5128 (re_assemble_12): Likewise.
5129 (re_assemble_16): Likewise.
5130 (re_assemble_17): Likewise.
5131 (re_assemble_21): Likewise.
5132 (re_assemble_22): Likewise.
5133 (hppa_field_adjust): Rewrite and document, paying attention to
5134 size of types and signed/unsigned issues.
5135 (get_opcode): Shift before masking.
5136 (FDLW): Rename to FLDW.
5137 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
5138 (hppa_rebuild_insn): Change args and return value to unsigned
5139 int. Make use of re_assemble_*. Correct case 11.
5141 * dep-in.sed: Handle ../opcodes/.
5142 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
5143 elf64-hppa.h, hppa_stubs.h, xcoff.h.
5144 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
5145 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
5146 elfarm-nabi.lo dependencies outside of auto-dependency area.
5147 Regenerate dependencies.
5148 * Makefile.in: Regenerate.
5150 * configure.in (TRAD_HEADER): Test non-null before
5152 * configure: Regenerate.
5154 * reloc.c: Fix mis-spelling in comment.
5156 2000-05-01 Alan Modra <alan@linuxcare.com.au>
5158 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
5159 * vms.c (vms_openr_next_archived_file): Return NULL.
5161 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5163 * coffcode.h Copy changes mistakenly done to libcoff.h in
5166 2000-04-29 Andreas Jaeger <aj@suse.de>
5168 * libbfd-in.h: Correctly check GCC version.
5169 * bfd-in.h: Likewise.
5170 * libhppa.h: Likewise.
5171 * libbfd.h: Regenerate.
5172 * bfd-in2.h: Regenerate.
5174 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5176 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
5177 coffdu-rs6000.{lo,c}.
5178 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
5180 * Makefile.in: Regenerate.
5181 * xcoff.h: New file.
5182 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
5183 * coff-rs6000.c: Move all declarations and defines that are
5184 common to the xcoff backends into xcoff.h
5185 * coff64-rs6000.c: Ditto,
5187 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5189 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
5190 _bfd_coff_force_symnames in strings and
5191 _bfd_coff_debug_string_prefix_length to their default values.
5192 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
5194 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
5196 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
5197 _bfd_coff_force_symnames in strings and
5198 _bfd_coff_debug_string_prefix_length to their default values.
5200 2000-04-27 Alan Modra <alan@linuxcare.com.au>
5202 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
5203 Check local_got_refcounts before dereferencing.
5205 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
5206 before deciding we don't need R_PPC_PLT32 relocation.
5207 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
5210 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
5212 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
5214 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
5215 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
5216 (elf_i386_relocate_section): Allow for .plt to go missing.
5217 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
5218 can use a relative reloc for got as elf_i386_relocate_section.
5219 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
5221 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
5223 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
5225 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
5227 * Makefile.am (coff64-rs6000.lo): New rule.
5228 * Makefile.in: Regenerate.
5229 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
5230 xcoff_is_local_label_name, xcoff_rtype2howto,
5231 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
5232 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
5233 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
5234 (NO_COFF_SYMBOLS): Define.
5235 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
5236 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
5238 (MINUS_ONE): New macro.
5239 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5241 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5242 coff_SWAP_aux_out): Map to the new functions.
5243 * coff64-rs6000.c: New file.
5244 * libcoff.h (bfd_coff_backend_data): Add new fields
5245 _bfd_coff_force_symnames_in_strings and
5246 _bfd_coff_debug_string_prefix_length.
5247 (bfd_coff_force_symnames_in_strings,
5248 bfd_coff_debug_string_prefix_length): New macros for above fields.
5249 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5250 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
5251 of using coff_swap_sym_in directly.
5252 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5253 (coff_set_flags) Set magic for XCOFF64.
5254 (coff_compute_section_file_positions): Add symbol name length to
5255 string section length if bfd_coff_debug_string_prefix_length is
5257 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5258 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5259 using coff_swap_lineno_in directly.
5260 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5261 and _bfd_coff_debug_string_prefix_length fields.
5262 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5263 symbol names into strings table when
5264 bfd_coff_force_symnames_in_strings is true.
5265 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5266 SET_RELOC_VADDR): New macros.
5267 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5268 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5270 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5271 changes within RS6000COFF_C specific code.
5272 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5273 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5274 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5275 Extend existing hack on target name.
5276 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5278 * coff-tic54x.c (ticof): Keep up to date with new fields
5279 in bfd_coff_backend_data.
5280 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5281 targ_selvecs to include rs6000coff64_vec for rs6000.
5282 * configure.in: Add rs6000coff64_vec case.
5283 * cpu-powerpc.c: New bfd_arch_info_type.
5285 2000-04-24 Jeffrey A Law (law@cygnus.com)
5287 * config.bfd: Only disable elf32-hppa vectors, not all of the
5288 BSD and OSF configuration support. Provide (disabled) clauses
5290 * configure.in: Add clause for PA64 support.
5291 * configure: Rebuilt.
5293 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5294 (bfd_elf64_hppa_vec): Declare.
5296 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5297 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5298 (elf64-hppa.lo): Add dependencies.
5299 * Makefile.in: Rebuilt.
5301 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5303 2000-04-24 Jason Eckhardt <jle@cygnus.com>
5305 * libhppa.h (dis_assemble_16): New function.
5306 (pa_arch): Added pa20w element.
5308 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
5310 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5311 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5312 bfd_elf64_slurp_reloc_table.
5314 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5315 definitions to get external names.
5316 (elf_write_relocs): Renamed from write_relocs and make global.
5317 (elf_slurp_reloc_table): Make global.
5318 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5320 * archive.c (hpux_uid_gid_encode): New function.
5321 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5322 defined and the ID is greater than 99999.
5323 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5324 special uid/gid fields into 32 bit values.
5326 2000-04-21 Matthew Green <mrg@cygnus.com>
5328 * config.bfd: Add NetBSD/sparc64 support.
5330 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5331 David Mosberger <davidm@hpl.hp.com>
5332 Timothy Wall <twall@cygnus.com>
5333 Jim Wilson <wilson@cygnus.com>
5335 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5336 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5337 (BFD64_BACKENDS): Add elf64-ia64.lo.
5338 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5339 (cpu-ia64.lo, elf64-ia64.lo): New rules.
5340 * Makefile.in: Rebuild.
5341 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5342 (bfd_ia64_arch): Declare.
5343 (bfd_archures_list): Add bfd_ia64_arch.
5344 * bfd-in2.h: Rebuild.
5345 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5346 * configure: Rebuild.
5347 * configure.host: (ia64-*-linux*): New host.
5348 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5349 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5350 * elf.c (prep_headers): Add bfd_arch_ia64.
5351 * libbfd.h: Rebuild.
5352 * reloc.c: Add IA-64 relocations.
5353 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5355 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5356 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5358 2000-04-21 Richard Henderson <rth@cygnus.com>
5360 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5361 contents when performing a partial link.
5362 (bfd_elf_d30v_reloc_21): Likewise.
5364 2000-04-20 H.J. Lu <hjl@gnu.org>
5366 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5367 patch to symbols defined by a shared object.
5368 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5370 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5373 * dwarf2.c (concat_filename): Avoid string literal concatenation.
5374 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5376 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
5378 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5379 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5380 (coff-ia64.lo): Add dependency.
5381 * Makefile.in: Regenerate.
5382 * coff-ia64.c: New file.
5383 * efi-app-ia32.c: Ditto.
5384 * efi-app-ia64.c: Ditto.
5385 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5386 (coff_set_flags): Ditto.
5387 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5388 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5389 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5390 * configure: Regenerate.
5391 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5392 (PUT_OPTHDR_IMAGE_BASE): Ditto.
5393 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5394 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5395 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5396 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5397 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5398 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5399 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5400 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5401 (GET_PDATA_ENTRY): Ditto.
5402 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5403 data_start. Use above macros to read fields that are 64 bit wide for
5404 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
5405 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5406 FileAlignment and SectionAlignment to minimum alignment if they
5408 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5409 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5410 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5411 Use above macros to write fields that are 64 bit wide for
5413 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5414 5*4 otherwise. This should be right for IA-32 and IA-64, but may
5415 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
5416 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
5417 begin address, end address, and unwind info address only. Use
5418 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
5420 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5421 HIGH3ADJ relocation names.
5422 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5423 * targets.c: Declare bfd_efi_app_ia32_vec and
5424 bfd_efi_app_ia64_vec.
5425 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5426 bfd_efi_app_ia64_vec.
5428 2000-04-17 Timothy Wall <twall@cygnus.com>
5430 * bfd-in2.h: Add prototypes for tic54x load page access.
5431 * bfd-in.h: Regenerate.
5432 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5433 in customized _set_arch_mach function.
5434 * coffcode.h (coff_set_alignment_hook): Set section load page if
5435 the appropriate macro is defined.
5436 (write_object_contents): Read section load page.
5438 2000-04-13 Alan Modra <alan@linuxcare.com.au>
5440 * elf32-hppa.h: Update copyright date.
5442 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5443 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5445 * elf32-d30v.c (MAX32): Don't use LL suffix.
5446 (MIN32): Define in terms of MAX32.
5447 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5449 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5452 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5454 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5456 * dep-in.sed: Match space before file name, not after.
5457 * Makefile.am: Regenerate dependencies.
5458 * Makefile.in: Regenerate.
5460 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5461 case, allow address wrap-around stupidly removed 2000-03-17. Sign
5462 extend without an if statement.
5464 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5466 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5468 * elf32-mips.c (gprel16_with_gp): Likewise.
5469 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
5470 here using -0x40000, not (int)0xfffc0000.
5471 (elf32_hppa_size_of_stub): Likewise.
5473 2000-04-11 Timothy Wall <twall@cygnus.com>
5475 * coff-tic54x.c: Now builds with all targets.
5476 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
5477 * Makefile.in: Regenerate.
5478 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
5479 unitialized variable.
5481 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
5483 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5484 --enable-build-warnings option.
5485 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5486 * Makefile.in, configure: Re-generate.
5488 2000-04-07 Nick Clifton <nickc@cygnus.com>
5490 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
5491 BFD_RELOC_THUMB_PCREL_BLX.
5493 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5494 R_ARM_XPC25 and R_ARM_THM_PC22.
5496 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
5497 R_ARM_XPC25 and R_ARM_THM_XPC22.
5498 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
5499 R_ARM_[XPC25|THM_XPC22].
5501 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
5502 elf/arm-oabi.h to elf/arm.h
5504 * Makefile.am: Fix dependency for elfarm-oabi.c
5505 * Makefile.in: Regenerate.
5507 * bfd-in2.h: Regenerate.
5508 * libbfd.h: Regenerate.
5510 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5512 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
5513 and restore it on failure. Release newly allocated tdata on
5516 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
5518 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
5519 (decode_line_info): Set it. Report error if unit->line_offset is
5520 equal to or larger than it.
5522 2000-04-07 Timothy Wall <twall@cygnus.com>
5524 * targets.c: Added vecs for tic54x.
5525 * reloc.c: Added relocs for tic54x.
5526 * libbfd.h: Regenerated.
5527 * configure: Add TI COFF vecs for tic54x.
5528 * configure.in: Ditto.
5529 * config.bfd (targ_cpu): Recognize new tic54x target.
5530 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
5531 * bfd-in2.h: Add tic54x target and relocations.
5532 * Makefile.am, Makefile.in: Add tic54x target.
5533 * archures.c (bfd_archures_list): Add tic54x target.
5534 * coff-tic54x.c: New.
5535 * cpu-tic54x.c: New.
5537 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5539 * elfcore.h (elf_core_file_p): call backend_object_p which
5540 thereby gets an opportunity to update the arch/machine type.
5542 2000-04-06 Timothy Wall <twall@cygnus.com>
5544 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
5545 class. Handle SEC_CLINK and SEC_BLOCK flags.
5546 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
5547 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
5549 2000-04-06 Nick Clifton <nickc@cygnus.com>
5551 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
5552 EF_INTERWORK if this is an unknown EABI.
5553 (elf32_arm_merge_private_bfd_data): Check EABI version
5554 numbers. Only check EF_xxx flags if the EABI version number
5556 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
5557 if the EABI version number is unknown.
5558 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
5559 if the EABI version number is unknown.
5561 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5563 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
5564 BFD_RELOC_SH_LOOP_END.
5565 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
5566 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
5567 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
5568 (sh_elf_reloc_loop): New function.
5569 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
5571 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
5572 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
5573 * bfd-in2.h, libbfd.h: Regenerate.
5575 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5577 * po/bfd.pot: Regenerate.
5579 * Makefile.am: Remove extraneous mkdep comment.
5580 (MKDEP): Use gcc -MM rather than mkdep.
5581 (DEP): Quote when passing vars to sub-make. Add warning
5583 (DEP1): Rewrite for "gcc -MM".
5584 (CLEANFILES): Add DEP2.
5585 Update dependencies.
5586 * Makefile.in: Regenerate.
5588 2000-04-03 Kevin Buettner <kevinb@redhat.com>
5590 * configure.in: Added corefile support for AIX 4.3. In particular,
5591 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
5592 compiling rs6000-core.c.
5593 * configure: Regenerated.
5595 2000-04-03 H.J. Lu <hjl@gnu.org>
5597 * cache.c (bfd_open_file): Unlink the output file only if
5598 it has non-zero size.
5600 2000-04-01 Ken Block USG <block@zk3.dec.com>
5602 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
5603 relative relocations for non-loaded sections in shared objects.
5604 (elf64_alpha_check_relocs): Similarly.
5606 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
5608 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
5609 BFD_RELOC_16 to switch for extended relocs.
5610 (MY_swap_ext_reloc_in): New.
5611 (MY_swap_ext_reloc_out): New.
5612 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
5613 than NAME(aout,swap_ext_reloc_in) for extended relocs.
5614 (NAME(aout,squirt_out_relocs)): Similarly use
5615 MY_swap_ext_reloc_out.
5616 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
5618 2000-04-03 Kazu Hirata <kazu@hxi.com>
5620 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
5621 the R_PCRWORD_B case.
5623 2000-03-31 Thomas de Lellis <tdel@wrs.com>
5625 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
5629 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
5631 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
5632 HOWTO references to bfd_elf_generic_reloc, that have
5633 partial_inplace == true, now use the new function. The function
5634 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
5635 extends its fixes to the R_M32R_{16,24,32} relocs.
5636 The new logic in m32r_elf_lo16_reloc() has been removed, and
5637 it instead calls the new routine to obtain that functionality.
5639 2000-03-27 Alan Modra <alan@linuxcare.com.au>
5641 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
5642 elf32_avr_check_relocs, avr_final_link_relocate,
5643 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
5644 elf32_avr_object_p): Add prototypes.
5645 (elf32_avr_gc_mark_hook): Add default for h->root.type.
5646 (bfd_elf_avr_final_write_processing): Make static.
5648 2000-03-27 Denis Chertykov <denisc@overta.ru>
5650 * cpu-avr.c: New file. BFD support routines for AVR architecture.
5651 * archures.c (bfd_architecture): Add AVR architecture.
5652 (bfd_archures_list): Add reference to AVR architecture info.
5653 * elf.c (prep_headers): Handle bfd_arch_avr.
5654 * reloc.c: Add various AVR relocation enums.
5655 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
5657 * Makefile.am: Add support for AVR elf.
5658 * configure.in: Likewise.
5659 * config.bfd: Likewise.
5660 * Makefile.in: Regenerate.
5661 * configure: This too.
5662 * bfd-in2.h: And this.
5663 * libbfd.h: And this.
5665 2000-03-24 H.J. Lu <hjl@gnu.org>
5667 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
5668 (elf64_alpha_find_reloc_at_ofs): Likewise.
5670 2000-03-17 Alan Modra <alan@linuxcare.com.au>
5672 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
5673 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
5674 allowable range used to be -2**(n-1) to 2**n-1.
5675 * reloc.c (_bfd_relocate_contents): Same here. Also replace
5676 "boolean overflow" with "bfd_reloc_status_type flag".
5678 2000-03-14 Doug Evans <dje@casey.transmeta.com>
5680 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5682 2000-03-14 Kazu Hirata <kazu@hxi.com>
5684 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5685 of shrinks properly, including the last reloc.
5687 2000-03-13 Kazu Hirata <kazu@hxi.com>
5689 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5692 2000-03-11 Alan Modra <alan@linuxcare.com.au>
5694 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5695 a format mismatch rather than an "error" from bfd_read such as
5696 bfd_error_file_truncated.
5698 2000-03-10 Geoff Keating <geoffk@cygnus.com>
5700 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5701 sign-extension and big-endian compensation for
5702 R_MIPS_64 even in ld -r.
5704 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5706 * elf32-mips.c (mips_elf_next_relocation): Rename from
5707 mips_elf_next_lo16_relocation, and generalize to look
5708 for any relocation type.
5709 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5710 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5711 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5712 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5713 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5714 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5715 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5716 (mips_rtype_to_howto): Likewise.
5717 (mips_elf_calculate_relocation): Handle new relocs.
5718 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5719 are paired. The addend for R_MIPS_GNU_REL16_S2
5720 is shifted right two bits.
5722 2000-03-10 Alan Modra <alan@linuxcare.com.au>
5724 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5725 comment, and ensure it doesn't happen again.
5726 (bfd_install_relocation): Same here.
5727 (_bfd_relocate_contents): Don't bother assigning unused signmask
5728 shift result. Fix typos in comments.
5729 Remove trailing whitespace throughout file.
5731 2000-03-07 Doug Evans <dje@casey.transmeta.com>
5733 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5734 * bfd-in2.h: Rebuild.
5736 2000-03-06 Nick Clifton <nickc@cygnus.com>
5738 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5740 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5741 (SIZEOF_ILF_STRINGS): Redefine.
5742 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
5743 relative reloc, as opposed to a section relative reloc.
5744 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
5746 Add length of symbol's prefix to string pointer.
5747 Store a pointer to the symbol in the symbol pointer table.
5748 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
5749 Initialise the symbol pointer table.
5750 Store the hint in the Hint/Name table.
5751 Make the jump reloc be symbol realtive, not section relative.
5752 Create an import symbol for imported code.
5754 2000-03-06 Catherine Moore <clm@cygnus.com>
5756 * elf.c (swap_out_syms): Check for null type_ptr.
5758 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
5760 * aout-target.h (MY(write_object_contents)): Remove unused
5761 and unusable "#if CHOOSE_RELOC_SIZE".
5762 * pc532-mach.c (MY(write_object_contents)): Ditto.
5763 * netbsd.h (MY(write_object_contents)): Ditto.
5764 * hp300hpux.c (MY(write_object_contents)): Ditto.
5765 * freebsd.h (MY(write_object_contents)): Ditto.
5766 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
5768 2000-02-29 H.J. Lu <hjl@gnu.org>
5770 * peicode.h (jtab): Make it static.
5772 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
5773 defined and COFF_IMAGE_WITH_PE is not defined.
5774 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
5775 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
5777 2000-03-01 Nick Clifton <nickc@cygnus.com>
5779 * coff-arm.c (bfd_arm_process_before_allocation): Make
5780 'symndx' signed to prevent compile time warning.
5782 * coff-mcore.c: Remove unused prototype for pe_object_p.
5784 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
5785 functions that are not used when COFF_IMAGE_WITH_PE is
5787 (struct sh_opcode): Change type of 'flags' field to unsigned
5788 long so that it can hold the USESAS flag.
5790 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
5792 * elf-m10300.c (mn10300_elf_relax_section): Initialise
5795 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
5797 Remove unusued variables and code.
5798 (elf_backend_add_symbol_hook): Fix prototype.
5800 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
5803 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
5806 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
5808 Remove unusued variables and code.
5809 (elf_backend_add_symbol_hook): Fix prototype.
5811 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
5813 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
5814 to unused function parameter.
5816 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
5818 Use EMPTY_HOWTO to initialise empty howto slots.
5819 Remove unused variables.
5821 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
5823 2000-03-01 H.J. Lu <hjl@gnu.org>
5825 * aoutx.h (aout_link_input_section_std): Pass "true" to
5826 the undefined_symbol callback.
5827 (aout_link_input_section_ext): Likewise.
5828 * bout.c (get_value): Likewise.
5829 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5830 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
5832 (alpha_relocate_section): Likewise.
5833 * coff-arm.c (coff_arm_relocate_section): Likewise.
5834 * coff-i960.c (coff_i960_relocate_section): Likewise.
5835 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5836 * coff-mips.c (mips_relocate_section): Likewise.
5837 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5838 * coff-sh.c (sh_relocate_section): Likewise.
5839 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5840 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
5841 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5842 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5843 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5844 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5845 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5846 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5847 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5848 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5849 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5850 * elf32-v850.c (v850_elf_relocate_section): Likewise.
5851 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
5852 * elflink.h (elf_link_output_extsym): Likewise.
5853 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
5854 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
5855 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
5857 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
5858 undefined_symbol callback when building shared library with
5859 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
5861 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5862 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5863 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5864 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5865 (elf32_mips_get_relocated_section_content): Likewise.
5866 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5867 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5868 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5869 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5871 2000-02-28 Nick Clifton <nickc@cygnus.com>
5873 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
5874 * Makefile.in: Regenerate.
5876 * configure.in: Add support for mips and sh pe vectors.
5877 * configure: regenerate.
5879 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
5882 * targets.c: Add mips and sh pe vectors.
5884 * libpei.h (coff_final_link_postscript): Only define if not
5887 * coffcode.h: Add support for WinCE magic numbers.
5889 * peigen.c (pe_print_reloc): Update comment and rearrange
5890 appending of newline character.
5892 * peicode.h: Add support for Image Library Format.
5893 (pe_ILF_vars): Structure containing data used by ILF code.
5894 (pe_ILF_make_a_section): New function. Create a section based
5896 (pe_ILF_make_a_reloc): New function. Create a reloc based on
5898 (pe_ILF_make_a_symbol): New function. Create a symbol based
5900 (pe_ILF_save_relocs): New function. Store the relocs created
5901 by pe_ILF_make_a_reloc in a section.
5902 (pe_ILF_build_a_bfd): New function. Create a BFD describing
5904 (pe_ILF_object_p): New function. Return a bfd_target pointer
5906 (pe_bfd_object_p): If an ILF object is detected call
5907 pe_ILF_object_p on it.
5909 * coff-arm.c: Add support for WinCE relocs which are different
5910 from normal ARM COFF relocs.
5911 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
5913 * coff-sh.c: Add support for sh-pe target.
5914 * pe-sh.c: New file. Support code for sh-pe target.
5915 * pei-sh.c: New file. Support code for sh-pe target.
5917 * pe-mips.c: New file. Support code for mips-pe target.
5918 * pei-mips.c: New file. Support code for mips-pe target.
5920 2000-02-27 Jakub Jelinek <jakub@redhat.com>
5922 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
5923 architecture if the object causing the bump is dynamic.
5924 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
5925 and also don't it for memory ordering.
5926 (sparc64_elf_write_relocs): Take src_rela out of the loop.
5928 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5930 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
5931 calling bfd_get_section_size_before_reloc.
5932 (decode_line_info): Likewise.
5933 (_bfd_dwarf2_find_nearest_line): Likewise.
5935 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
5937 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
5938 name of the libtool directory.
5939 * Makefile.in: Rebuild.
5941 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
5943 * som.c (SOM_HOWTO): Define.
5944 (som_hppa_howto_table): Use it.
5946 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5948 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
5950 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
5952 2000-02-24 Catherine Moore <clm@cygnus.com>
5954 * som.c (som_misc_symbol_info): Add field
5956 (som_bfd_derive_misc_symbol_info): Initialize
5958 (som_build_and_write_symbol_table): Keep track
5959 of secondary_def field.
5960 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
5961 if secondary_def field is set.
5962 (som_bfd_ar_write_symbol_stuff): Initialize
5965 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
5967 * dwarf2.c (read_address): Read 16-bits addresses.
5968 (parse_comp_unit): Accept addr_size == 2.
5970 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5972 * bfd-in.h: Update copyright date.
5974 2000-02-23 Linas Vepstas <linas@linas.org>
5976 * cpu-i370.c: New file.
5977 * elf32-i370.c: New file.
5978 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5979 (bfd_i370_arch): New.
5980 (bfd_archures_list): Add bfd_i370_arch.
5981 * elf.c (prep_headers): Add bfd_arch_i370.
5982 * Makefile.am: Add support for IBM 370 elf.
5983 * config.bfd: Likewise.
5984 * configure.in: Likewise.
5985 * libbfd.h (bfd_reloc_code_real_names): Likewise.
5986 * reloc.c (bfd_reloc_code_type): Likewise.
5987 * targets.c: Likewise.
5989 * Makefile.in: Regenerate.
5990 * configure: Regenerate.
5991 * bfd-in2.h: Regenerate.
5993 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5995 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5996 invalid relocation types, and change them to R_386_NONE.
5998 2000-02-22 H.J. Lu <hjl@gnu.org>
6000 * elflink.h (elf_link_add_object_symbols): If a version symbol is
6001 not defined, don't add a second ELF_VER_CHR.
6003 * elflink.h (elf_bfd_final_link): Call output_extsym for global
6004 symbols converted to local symbols even when stripping all
6006 (elf_link_output_extsym): Process global symbols converted to
6007 local symbols even if they are being stripped.
6009 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6011 * archures.c (bfd_octets_per_byte): Return unsigned int.
6012 (bfd_arch_mach_octets_per_byte): Ditto.
6013 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
6015 * section.c (bfd_get_section_size_before_reloc): Quell signed
6016 vs. unsigned comparison warning.
6017 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
6018 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
6019 change. What was I thinking?
6020 * bfd-in2.h: Regenerate.
6022 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
6023 (elf_gc_sections): Same here.
6024 (elf_gc_common_finalize_got_offsets): And here.
6026 2000-02-21 Ian Lance Taylor <ian@zembu.com>
6028 ELF HPPA doesn't work at present; remove it until it does.
6029 * config.bfd: Comment out setting targ_defvec to
6031 * Makefile.am: Rebuild dependencies.
6032 (BFD32_BACKENDS): Remove elf32-hppa.lo.
6033 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
6034 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
6035 * Makefile.in: Rebuild.
6036 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
6038 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6040 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
6041 is no bfd_free(). Revert bfd_free part of previous change.
6043 2000-02-18 Geoff Keating <geoffk@cygnus.com>
6045 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
6047 (coff_compute_section_file_positions): Use bfd_free to pair
6049 (coff_write_object_contents): Likewise.
6051 * coff-rs6000.c (xcoff_howto_table_16): New variable.
6052 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
6054 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
6056 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
6057 (xcoff_ar_file_hdr_big): New structure.
6058 (SIZEOF_AR_FILE_HDR_BIG): New macro.
6059 (xcoff_ar_hdr_big): New structure.
6060 (SIZEOF_AR_HDR_BIG): New macro.
6061 (xcoff_big_format_p): New macro.
6062 (xcoff_ardata_big): New macro.
6063 (arch_xhdr_big): New macro.
6064 (xcoff_slurp_armap): Handle large archives.
6065 (xcoff_archive_p): Detect large archives.
6066 (xcoff_read_ar_hdr): Handle large archives.
6067 (xcoff_openr_next_archived_file): Handle large archives.
6068 (xcoff_generic_stat_arch_elt): Handle large archives.
6069 (xcoff_write_armap_old): Rename from xcoff_write_armap.
6070 (xcoff_write_armap_big): New function.
6071 (xcoff_write_armap): New function, dispatch to _old or _big.
6072 (xcoff_write_archive_contents_old): Rename from
6073 xcoff_write_archive_contents.
6074 (xcoff_write_archive_contents_big): New function.
6075 (xcoff_write_archive_contents): New function, dispatch to _old or
6078 2000-02-18 Richard Henderson <rth@cygnus.com>
6080 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
6081 and hide_symbol members.
6082 (elf_link_hash_copy_indirect): Remove.
6083 (elf_link_hash_hide_symbol): Remove.
6084 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
6085 and elf_backend_hide_symbol.
6086 (_bfd_elf_link_hash_copy_indirect): Declare.
6087 (_bfd_elf_link_hash_hide_symbol): Declare.
6088 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
6089 (_bfd_elf_link_hash_hide_symbol): Likewise.
6090 (_bfd_elf_link_hash_table_init): Don't init killed members.
6091 * elflink.h (elf_link_add_object_symbols): Use the bed function
6092 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
6093 (elf_link_assign_sym_version): Likewise.
6094 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
6095 (elf_backend_hide_symbol): Likewise.
6096 (elfNN_bed): Update for new members.
6098 2000-02-17 Kevin Buettner <kevinb@redhat.com>
6100 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
6101 STACK_END_ADDR): Define for new core file format.
6102 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
6103 for handling the vagaries of the various core file structures used
6104 by AIX over the years.
6105 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
6106 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
6107 core_dumpx structure.
6109 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6111 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
6112 (bfd_mach_sh3_dsp): Likewise.
6113 (bfd_mach_sh4): Reinstate.
6114 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
6115 * bfd-in2.h: Regenerate.
6116 * coff-sh.c (struct sh_opcode): flags is no longer short.
6117 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
6118 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
6119 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
6120 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
6121 (sh_opcodes): No longer const.
6122 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
6123 (sh_insn_uses_reg): Check for USESAS and USESR8.
6124 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
6125 (_bfd_sh_align_load_span): Return early for SH4.
6126 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
6127 Take into account that field b of a parallel processing insn
6128 could be mistaken for a separate insn.
6129 * cpu-sh.c (arch_info_struct): New array elements for
6130 sh2, sh-dsp and sh3-dsp.
6131 Reinstate element for sh4.
6132 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
6133 (SH4_NEXT): Reinstate.
6134 (SH3_NEXT, SH3E_NEXT): Adjust.
6135 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
6136 * elf32-sh.c (sh_elf_set_private_flags): New function.
6137 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
6138 (sh_elf_merge_private_data): New function.
6139 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
6140 (bfd_elf32_bfd_copy_private_bfd_data): Define.
6141 (bfd_elf32_bfd_merge_private_bfd_data): Change to
6142 sh_elf_merge_private_data.
6144 2000-02-13 Richard Henderson <rth@cygnus.com>
6146 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
6147 hide_symbol members.
6148 (elf_link_hash_copy_indirect): New.
6149 (elf_link_hash_hide_symbol): New.
6150 * elflink.h (elf_link_add_object_symbols): Break out copy from
6151 indirect new new symbol to elf.c.
6152 (elf_link_assign_sym_version): Break out privatization of
6153 non-exported symbol to elf.c.
6154 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
6155 (_bfd_elf_link_hash_hide_symbol): New.
6156 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
6158 2000-02-13 Ian Lance Taylor <ian@zembu.com>
6160 * section.c (_bfd_strip_section_from_output): Add info parameter.
6161 If it passed as non-NULL, use it to check whether any input BFD
6162 has an input section which uses this output section. Change all
6164 * bfd-in2.h: Rebuild.
6166 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
6167 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
6169 * bfd-in2.h: Rebuild.
6171 2000-02-10 Timothy Wall <twall@cygnus.com>
6173 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
6174 allow final modifications of swapped-in symbol.
6175 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
6176 * coffcode.h (coff_write_relocs): Use macro
6177 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
6178 symbol index should be set to -1.
6180 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
6182 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
6183 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
6184 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
6185 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
6186 sh_insns_uses_or_sets_freg): New functions.
6187 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
6188 * (sh_insns_conflict): Use new functions and new macros to
6189 detect conflicts when two instructions both set same integer registers,
6190 both set same fp register, and both set special register.
6192 2000-02-09 Timothy Wall <twall@cygnus.com>
6194 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
6195 swapping in sections, so that the swapping routines have access to
6198 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
6200 * coff-go32.c: Update comment. Update copyright.
6202 2000-01-27 Thomas de Lellis <tdel@windriver.com>
6204 * syms.c (bfd_decode_symclass)
6205 Two new class characters were added - 'V' and 'v'. The
6206 meaning of 'W' is now restricted to just weak non-object
6207 symbols. This allows differentiation between, for example,
6208 weak functions vs weak objects. nm for example now dumps:
6210 'w' = weak unresolved
6211 'V' = weak global object
6212 'v' = weak unresolved object
6214 (bfd_is_undefined_symclass): New function. Return true if the
6215 given symbol class represents and undefined/unresolved symbol.
6217 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
6220 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
6222 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
6223 STT_ARM_16BIT flag set, but it is not attached to a data object
6224 return STT_ARM_16BIT so that it will be treated as code by the
6227 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6229 * coff-i386.c (i3coff_object_p): Remove prototype.
6232 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
6233 to name. Update copyright.
6235 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
6236 assignment to avoid warning. Update copyright.
6238 2000-01-24 Robert Lipe (robertl@sco.com)
6240 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6241 instead of using GNU C extension.
6243 2000-01-21 Nick Clifton <nickc@cygnus.com>
6245 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6246 amount from a bfd_in_memory structure.
6247 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6250 2000-01-14 Nick Clifton <nickc@cygnus.com>
6252 * linker.c (default_indirect_link_order): oops - fix incorrectly
6253 applied patch from Tim Wall.
6255 2000-01-13 Timothy Wall (twall@tiac.net>
6257 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6258 = scnhsz, filhsz, relsz, aoutsz, etc)
6260 * coffswap.h: Ditto.
6262 2000-01-13 Nick Clifton <nickc@cygnus.com>
6264 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6265 interwork thumb to arm stub.
6267 2000-01-13 Timothy Wall (twall@tiac.net>
6269 * archures.c (bfd_octets_per_byte): New function: Return
6271 (bfd_arch_mach_octets_per_byte): New function: Return target
6274 * section.c: Distinguish between octets and bytes for usage of
6275 _cooked_size, _raw_size, and output_offset. Clarify
6276 description of bfd_set_section_contents.
6278 * bfd-in2.h: Regenerate.
6280 * coffgen.c: Indicate that the offset parameter is in bytes, not
6283 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6284 where appropriate to get the octet offset when calling
6285 bfd_set_section_contents.
6286 (bfd_coff_reloc_link_order): Ditto.
6288 * linker.c (bfd_generic_reloc_link_order): Ditto.
6289 (_bfd_default_link_order): Ditto.
6291 * reloc.c (bfd_perform_relocation): Distinguish between octets
6292 and bytes. Use octets when indexing into octet data; use bytes
6293 when calculating target addresses.
6294 (bfd_install_relocation): Ditto.
6296 * srec.c (srec_write_section): Ditto.
6298 2000-01-13 Nick Clifton <nickc@cygnus.com>
6300 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6301 3 to 2. This allows 4 byte sized sections, which is necessary for
6302 dlltool to build functioning DLLs.
6304 2000-01-10 Philip Blundell <pb@futuretv.com>
6306 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6307 (arm*-*-conix*): New target.
6309 2000-01-10 Egor Duda <deo@logos-m.ru>
6311 * config.bfd: Include elf32_i386 vector to target list for cygwin
6314 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6315 * configure.in: Test for structure win32_pstatus_t in
6317 * configure: Regenerate.
6319 * elf.c (elfcore_grok_win32pstatus): New function: process
6320 win32_pstatus_t notes in elf core file.
6321 (elfcore_grok_note): Detect win32_pstatus notes.
6323 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6325 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6327 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6328 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6330 For older changes see ChangeLog-9899
6336 version-control: never