* config.bfd: Add powerpc64 target. Add powerpc64 vectors to
[binutils.git] / bfd / ChangeLog
blob72c921ec7d1c6ca6e5d582de70dabd144f0ab18f
1 2001-08-27  Linus Nordberg  <linus@swox.se>
2             Torbjorn Granlund  <tege@swox.com>
3             Staffan Ulfberg  <staffanu@swox.se>
4             Alan Modra  <amodra@bigpond.net.au>
6         * config.bfd: Add powerpc64 target.  Add powerpc64 vectors to
7         targ64_selvecs for 32 bit powerpc targets.
8         * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
9         (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
10         Run "make dep-am".
11         * Makefile.in: Regenerate.
12         * configure.in: Add elf64_powerpc vecs.
13         * configure: Regenerate.
14         * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
15         * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
16         * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
17         * elf64-ppc.c: New file.
18         * reloc.c: Add powerpc64 relocs.
19         * libbfd.h: Regenerate.
20         * bfd-in2.h: Regenerate.
22 2001-08-27  Andreas Schwab  <schwab@suse.de>
24         * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
25         reloc is against read-only section.
26         (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
27         looking up section names for DT_TEXTREL.
28         (elf32_m68k_reloc_type_class): New function.
29         (elf_backend_reloc_type_class): Define.
31 2001-08-27  Andreas Jaeger  <aj@suse.de>
33         * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
34         reloc is against read-only section.
35         (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
36         looking up section names for DT_TEXTREL.
37         (elf_s390_reloc_type_class): New.
38         (elf_backend_reloc_type_class): Define.
40         * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
41         reloc is against read-only section.
42         (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
43         looking up section names for DT_TEXTREL.
44         (elf_s390_reloc_type_class): New.
45         (elf_backend_reloc_type_class): Define.
47         * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
48         is against read-only section.
49         (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
50         looking up section names for DT_TEXTREL.
51         (ppc_elf_reloc_type_class): New.
52         (elf_backend_reloc_type_class): Define.
54 2001-08-26  Andreas Jaeger  <aj@suse.de>
56         * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
57         reloc is against read-only section.
58         (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
59         looking up section names for DT_TEXTREL.
60         (elf_cris_reloc_type_class): New.
61         (elf_backend_reloc_type_class): Define.
63         * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
64         against read-only section.
65         (elf_backend_reloc_type_class): Define.
66         (sh_elf_reloc_type_class): New.
67         (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
68         looking up section names for DT_TEXTREL.
70         * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
71         reloc is against read-only section.
72         (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
73         looking up section names for DT_TEXTREL.
74         (elf32_arm_reloc_type_class): New.
75         (elf_backend_reloc_type_class): Define.
77 2001-08-25  Andreas Jaeger  <aj@suse.de>
79         * oasys.c: Add missing prototypes.
81         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
82         attribute for parameter.
83         * elf.c (_bfd_elf_reloc_type_class): Likewise.
85         * versados.c (get_4): Make static.
86         (get_10): Make static.
87         Add missing prototypes.
88         (process_esd): Fix call to versados_new_symbol.
90 2001-08-25  Nick Clifton  <nickc@cambridge.redhat.com>
92         * coff-a29k.c: Add missing prototypes.
93         * coff-apollo.c: Add missing prototypes.
94         * coff-arm.c: Add missing prototypes.
95         * coff-i860.c: Add missing prototypes.
96         * coff-rs6000.c: Add missing prototypes.
97         * coff-tic80.c: Add missing prototypes.
98         * elf-m10200.c: Add missing prototypes.
99         * elf-m10300.c: Add missing prototypes.
100         * elf32-arm.h: Add missing prototypes.
101         * elf32-d10v.c: Add missing prototypes.
102         * elf32-m32r.c: Add missing prototypes.
103         * elf32-mcore.c: Add missing prototypes.
104         * elf32-openrisc.c: Add missing prototypes.
105         * elf32-sh.c: Add missing prototypes.
106         * elf32-sparc.c: Add missing prototypes.
107         * elf32-v850.c: Add missing prototypes.
108         * elfarm-nabi.c: Add missing prototypes.
109         * elfarm-oabi.c: Add missing prototypes.
111 2001-08-25  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
113         * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
114         E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
116 2001-08-24  H.J. Lu  <hjl@gnu.org>
118         * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
119         hash structure.
121 2001-08-24  Nick Clifton  <nickc@cambridge.redhat.com>
123         * elf-bfd.h (elf_hash_table): Revert definition.
124         (is_elf_hash_table): New macro.
125         * elflink.h (elf_link_add_object_symbols): Test
126         is_elf_hash_table before accessing ELF only fields in hash
127         structure.
128         (elf_link_create_dynamic_sections): Fail if not using an ELF
129         hash structure.
130         (elf_add_dynamic_entry): Fail if not using an ELF hash
131         structure.
132         (elf_link_record_local_dynamic_symbol): Fail if not using an
133         ELF hash structure.
134         (size_dynamic_sections): Fail if not using an ELF hash
135         structure.
136         (elf_adjust_dynamic_symbol): Fail if not using an ELF
137         hash structure.
138         (elf_bfd_final_link): Fail if not using an ELF hash
139         structure.
141 2001-08-24  H.J. Lu  <hjl@gnu.org>
143         * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
144         table is not an ELF linker hash table.
146         * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
147         table type to bfd_link_elf_hash_table.
149         * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
150         the last change.
152         * linker.c (_bfd_link_hash_table_init): Set the linker hash
153         table type to bfd_link_generic_hash_table.
155 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
157         * bfd.c (bfd_alt_mach_code): New function.
158         * bfd-in2.h: Rebuilt.
160 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
162         * elf-m10300.c (mn10300_elf_relocate_section): Test the right
163         `type' field in the hash entry when deciding whether to follow a
164         link.
166 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
168         * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
169         last.
170         (elf_link_sort_relocs): Adjust accordingly.
172         * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
173         (elf64_alpha_check_relocs): Set it if section this reloc is against
174         is read-only.  Set DF_TEXTREL if a RELATIVE reloc is needed against
175         read-only section.
176         (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
177         is is against read-only section.
178         (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
179         check section names.
180         (elf64_alpha_reloc_type_class): New.
181         (elf_backend_reloc_type_class): Define.
183 2001-08-24  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
185         * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
186         by bfd_malloc().
188 2001-08-23  Andreas Jaeger  <aj@suse.de>
190         * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
191         the reloc is against read-only section.
192         (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
193         of looking up section names for DT_TEXTREL.
194         (elf64_x86_64_reloc_type_class): New.
195         (elf_backend_reloc_type_class): Define.
197 2001-08-23  H.J. Lu  <hjl@gnu.org>
199         * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
200         * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
202         * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
203         bfd_print_symbol_vandf.
204         * coffgen.c (coff_print_symbol): Likewise.
205         * elf.c (bfd_elf_print_symbol): Likewise.
206         * ieee.c (ieee_print_symbol): Likewise.
207         * nlmcode.h (nlm_print_symbol): Likewise.
208         * oasys.c (oasys_print_symbol): Likewise.
209         * pdp11.c (NAME(aout,print_symbol)): Likewise.
210         * som.c (som_print_symbol): Likewise.
211         * srec.c (srec_print_symbol): Likewise.
212         * tekhex.c (tekhex_print_symbol): Likewise.
213         * versados.c (versados_print_symbol): Likewise.
214         * vms.c (vms_print_symbol): Likewise.
216         * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
217         with bfd_fprintf_vma.
218         (bfd_elf_print_symbol): Likewise.
219         * syms.c (bfd_print_symbol_vandf): Likewise.
221 2001-08-23  Nick Clifton  <nickc@cambridge.redhat.com>
223         * aoutf1.h (sunos_write_object_contents): Silence compile time
224         warning.
225         * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
227         * bout.c: Add missing function prototypes.  Fix formatting.
228         * coff-z8k.c: Add missing function prototypes.  Fix formatting.
229         * coff-w65.c: Add missing function prototypes.  Fix formatting.
230         * coff-h8500.c: Add missing function prototypes.  Fix formatting.
231         * coff-h8300.c: Add missing function prototypes.  Fix formatting.
232         * coff-tic54x.c: Add missing function prototypes.  Fix formatting.
233         * coff-tic30.c: Add missing function prototypes.  Fix formatting.
234         * coff-m68k.c: Add missing function prototypes.  Fix formatting.
235         * coff-rs6000.c: Add missing function prototypes.  Fix formatting.
236         * coff-sh.c: Add missing function prototypes.  Fix formatting.
238 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
240         * elf-bfd.h (enum elf_reloc_type_class): New.
241         (struct elf_backend_data): Add elf_backend_reloc_type_class.
242         (_bfd_elf_reloc_type_class): New.
243         * elfxx-target.h (elf_backend_reloc_type_class): Define.
244         (elfNN_bed): Add elf_backend_reloc_type_class.
245         * elf.c (_bfd_elf_reloc_type_class): New.
246         * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
247         is against read-only section.
248         (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
249         looking up section names for DT_TEXTREL.
250         (elf_i386_reloc_type_class): New.
251         (elf_backend_reloc_type_class): Define.
252         * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
253         reloc is against read-only section.
254         (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
255         looking up section names for DT_TEXTREL.
256         (elf32_sparc_reloc_type_class): New.
257         (elf_backend_reloc_type_class): Define.
258         * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
259         reloc is against read-only section.
260         (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
261         looking up section names for DT_TEXTREL.
262         (sparc64_elf_reloc_type_class): New.
263         (elf_backend_reloc_type_class): Define.
264         * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
265         (elfNN_ia64_hash_table_create): Clear ia64_info.
266         (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
267         section.
268         (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
269         instead of looking up section names for DT_TEXTREL.
270         (elfNN_ia64_reloc_type_class): New.
271         (elf_backend_reloc_type_class): Define.
272         * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
273         (struct elf_link_sort_rela): New.
274         (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
275         (elf_bfd_final_link): Call elf_link_sort_relocs.
276         Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
277         necessary.
279 2001-08-23  Nick Clifton  <nickc@cambridge.redhat.com>
281         * configure.in (x86-bsdi): No corefile support.
282         * configure: Regenerate.
284 2001-08-22  Nick Clifton  <nickc@cambridge.redhat.com>
286         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
287         comma.
289 2001-08-21  Mark Elbrecht  <snowball3@bigfoot.com>
291         * coff-go32.c: Make DWARF2 sections use an alignment of 0.  Set
292         the alignment of dwarf2 linkonce sections to 0.
293         * coff-sto32.c: Likewise.
295 2001-08-20  Andreas Jaeger  <aj@suse.de>
297         * coff-sparc.c: Add missing prototypes.
298         * elf32-s390.c: Likewise.
299         * elf32-i960.c: Likewise.
300         * aout-target.h: Likewise.
302 2001-08-20  H.J. Lu  <hjl@gnu.org>
304         * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
305         (elf_num_section_syms): New for num_section_syms.
307         * elf.c (elf_map_symbols): Set num_section_syms.
308         (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
309         the section symbol index.
311 2001-08-20  Nick Clifton  <nickc@cambridge.redhat.com>
313         * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
314         select the generic has table creator.  All elf backends need elf
315         specific fields in the hash table.
317 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
319         * archive.c (offsetof): Remove define.
320         * elf.c: Likewise.
321         * oasys.c: Likewise
322         * sysdep.h (offsetof): Define.
324 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
326         * bfd.c (bfd_get_gp_size): Return an unsigned int.
327         (bfd_set_gp_size): Make param unsigned.
328         * bfd-in2.h: Regenerate.
329         * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
330         than calling bfd_get_gp_size.
331         * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
332         * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
334 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
336         * linker.c (default_fill_link_order): Handle four byte fill value.
338 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
340         * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
341         prototype.
342         * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
344         * elf64-mips.c (UNUSED_RELOC): Define.
345         (mips_elf64_howto_table_rel): Use it.
346         (mips_elf64_howto_table_rela): Here too.
347         (mips_elf64_write_relocs): Fix signed/unsigned warning.
349         * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
350         silence warning.
351         * coffgen.c (coff_print_symbol): Fix warnings.
352         (coff_find_nearest_line): Likewise.
353         * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
354         * coff-alpha.c (alpha_convert_external_reloc): Likewise.
355         * format.c (bfd_check_format_matches): Likewise.
356         (bfd_set_format): Likewise.
357         * coff-ia64.c: Add missing prototypes.
358         * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
359         signed to silence warnings.
360         (elf64_alpha_relocate_section): Likewise.
361         (elf64_alpha_find_reloc_at_ofs): Fix warnings.
362         (elf64_alpha_add_symbol_hook): Likewise.
363         (elf64_alpha_final_link): Likewise.
364         (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
365         (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
366         (elf64_alpha_size_got_sections): Likewise.
367         * elfxx-ia64.c: Add missing prototypes.
368         (elfNN_ia64_relocate_section): Fix warning.
369         (elfNN_ia64_unwind_entry_compare): Make params const.
371 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
373         * config.bfd (targ64_selvecs): New.
374         <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
376         * bfd-in.h (BFD_VERSION): Remove wrong comment.
377         (BFD_DEFAULT_TARGET_SIZE): New.
378         (BFD_ARCH_SIZE): Comment.
379         * configure.in (target_size): New.  Set instead of target64 in
380         selvecs case statement.  Set target64 from it.
381         (bfd_default_target_size): New.  Set from taget_size. AC_SUBST.
382         * bfd-in2.h: Regenerate.
383         * configure: Regenerate.
385 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
387         * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
388         (bfd_errmsgs): Add corresponding message.
389         * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
390         finding an archive that contains different format object files.
391         Return bfd_error_wrong_object_format for this case.
392         * format.c: Formatting fixes.  s/CONST/const/.
393         (bfd_check_format_matches): Accept archives that give
394         bfd_error_wrong_object_format if no full match is found.  Tidy
395         code handling matching_vector.  Don't return a pointer to freed
396         memory in `matching'.  Handle ambiguous matches as for partial
397         archive matches.
398         * bfd-in2.h: Regenerate.
400 2001-08-15  Alan Modra  <amodra@bigpond.net.au>
402         * libieee.h (common_header_type): Add last_byte field.
404         * ieee.c: Add missing prototypes.  Some format fixes.
405         (struct output_buffer_struct): Move for availability to prototypes.
406         (ieee_part_after): New function.
407         (ieee_slurp_debug): Use it here.
408         (ieee_seek): Pass in ieee_data_struct rather than bfd.  Use
409         ieee_part_after to set last_byte to one past end of current part.
410         Update callers.
411         (ieee_pos): Pass in ieee_data_struct rather than bfd.
412         Update callers.
413         (parse_expression): Don't go beyond the end of the current part.
414         (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
415         (ieee_get_symtab_upper_bound, ieee_get_symtab,
416         ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
417         ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
418         ieee_set_section_contents, ieee_write_object_contents,
419         ieee_make_empty_symbol): Make static.
420         (ieee_archive_p): Correct comments regarding bfd_read.
421         (ieee_object_p): Similarly.
422         (ieee_mkobject): Move it.  Clear output_ptr_start, output_ptr,
423         output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
424         input_bfd, output_bfd, output_buffer.
425         (do_as_repeat): Write out ieee_set_current_pc_enum value as for
426         do_with_relocs, ie. as a symbol for relocatable files.
427         (ieee_vec): Add comments showing functions referenced by macros.
429 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
431         * aout-tic30.c: Add missing prototypes.  Fix formatting.
432         * aout-ns32k.c: Add missing prototypes.  Fix formatting.
433         * peXXigen.c: Add missining prototypes.  Fix formatting.
434         * aout-adobe.c: Add missining prototypes.  Fix formatting.
436 2001-08-13  Nick Clifton  <nickc@cambridge.redhat.com>
438         * elf32-v850.c: Add missing function prototypes.
439         Fix some formatting.
441         * cpu-v850.c: Add missing function prototype.
442         Fix some formatting.
444 2001-08-11  Nick Clifton  <nickc@cambridge.redhat.com>
446         * elf-bfd.h (struct elf_backend_data): Add new fields
447         'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
448         (bfd_elf_sprintf_vma): Rename function prototype to
449         '_bfd_elf_sprintf_vma'.
450         (bfd_elf_fprintf_vma): Rename function prototype to
451         '_bfd_elf_fprintf_vma'.
452         * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
453         directly, instead indirect via the elf_backend_data structure.
454         (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
455         instead indirect via the elf_backend_data structure.
456         * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
457         (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
458         * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
459         already defined.
460         (elf_backend_fprintf_vma): Initialise if not already defined.
461         (struct elf_backend_data): Initialise the
462         elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
464 2001-08-10  Andreas Jaeger  <aj@suse.de>
466         * elf64-sparc.c: Add missing prototypes.
467         * elf32-cris.c: Likewise.
468         * elf32-i370.c: Likewise.
469         * elf64-hppa.c: Likewise.
470         * elf64-s390.c: Likewise.
472 2001-08-10  Andreas Jaeger  <aj@suse.de>
474         * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
475         Add prototypes where needed.
477 2001-08-10  H.J. Lu  <hjl@gnu.org>
479         * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
480         (bfd_fprintf_vma): Likewise.
482 2001-08-10  H.J. Lu  <hjl@gnu.org>
484         * bfd.c (bfd_sprintf_vma): Don't return void.
485         (bfd_fprintf_vma): Likewise.
487 2001-08-10  Andreas Jaeger  <aj@suse.de>
489         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
490         to build warnings.
491         * configure: Regenerate.
493 2001-08-10  Alan Modra  <amodra@bigpond.net.au>
495         * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
496         warning if not BFD64.  Add braces so emacs auto format works.
497         (bfd_elf_fprintf_vma): Likewise.
499         * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
500         of _xcoff_swap_ld*.
501         * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
502         param to agree with libxcoff.h.
503         (xcoff_swap_ldhdr_out): Likewise.
504         (xcoff_swap_ldsym_in): Likewise.
505         (xcoff_swap_ldsym_out): Likewise.
506         (xcoff_swap_ldrel_in): Likewise.
507         (xcoff_swap_ldrel_out): Likewise.
508         (xcoff_create_csect_from_smclas): Likewise.
509         * coff64-rs6000.c: Add missing prototypes.
510         (xcoff64_swap_ldhdr_in): Modify type of external param to agree
511         with libxcoff.h.
512         (xcoff64_swap_ldhdr_out): Likewise.
513         (xcoff64_swap_ldsym_in): Likewise.
514         (xcoff64_swap_ldsym_out): Likewise.
515         (xcoff64_swap_ldrel_in): Likewise.
516         (xcoff64_swap_ldrel_out): Likewise.
517         (xcoff64_ppc_relocate_section): Make static.
518         (xcoff64_slurp_armap): Likewise.
519         (xcoff64_archive_p): Likewise.
520         (xcoff64_openr_next_archived_file): Likewise.
521         (xcoff64_sizeof_headers): Likewise.
522         (xcoff64_is_lineno_count_overflow): Likewise.
523         (xcoff64_is_reloc_count_overflow): Likewise.
524         (xcoff64_loader_symbol_offset): Likewise.
525         (xcoff64_loader_reloc_offset): Likewise.
526         * elf64-gen.c: Add missing prototypes.
528 2001-08-09  H.J. Lu  <hjl@gnu.org>
530         * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
531         (bfd_elf_fprintf_vma): Likewise.
533 2001-08-09  H.J. Lu  <hjl@gnu.org>
535         * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
536         to ...
537         * elf-bfd.h: Here.
538         * bfd-in2.h: Regenerated.
540 2001-08-09  H.J. Lu  <hjl@gnu.org>
542         * bfd-in.h (bfd_sprintf_vma): New prototype.
543         (bfd_fprintf_vma): Likewise.
544         (bfd_elf_sprintf_vma): Likewise.
545         (bfd_elf_fprintf_vma): Likewise.
546         (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
547         * bfd-in2.h: Regenerated.
549         * bfd.c (bfd_sprintf_vma): New. Defined.
550         (bfd_fprintf_vma): Likewise.
552         * elf.c (bfd_elf_sprintf_vma): New. Defined.
553         (bfd_elf_fprintf_vma): Likewise.
555 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
557         * coff-rs6000.c: Add missing prototypes.
558         (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
559         xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
560         xcoff_loader_reloc_offset): Make static.
561         * dwarf1.c: Add missing prototypes.
562         * dwarf2.c: Add missing prototypes.
563         (struct abbrev_info): Move definition.
564         (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
565         * elf.c: Add missing prototypes.
566         * elf32-gen.c: Likewise.
567         * elf32-i386.c: Likewise.
568         * elf32-ppc.c: Likewise.
569         (ppc_elf_sort_rela): Use PTR instead of "void *".
570         * elflink.h: Add missing prototypes.  Formatting fixes.
571         * merge.c: Add missing prototypes.
572         (last4_eq): Use PTR instead of "void *".
573         (last_eq): Likewise.
574         * syms.c: Add missing prototypes.
576 2001-08-09  Nick Clifton  <nickc@cambridge.redhat.com>
578         * bfd.c: Fix formatting.
579         * bfd-in2.h: Regenerate.
581 2001-08-09  Nick Clifton  <nickc@cambridge.redhat.com>
583         * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
584         true (this target uses REL relocations) and 'pcrel_offset' to
585         false (the PC is implied, not stored in the offset).
587 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
589         1999-10-19  Linus Nordberg  <linus@swox.se>
590         * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
591         * elfxx-target.h (elf_backend_want_got_sym): Define.
592         (elfNN_bed): Add elf_backend_want_got_sym.
593         * elflink.c (_bfd_elf_create_got_section): Define
594         _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
596 2001-08-08  Alexandre Oliva  <aoliva@redhat.com>
598         * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
599         (find_rela_addend): New function.
600         (parse_comp_unit): Call it to find the abbrev offset addend.
601         (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
602         members of dwarf2_debug as debugging information is read.
604 2001-08-07  Nick Clifton  <nickc@cambridge.redhat.com>
606         * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
607         targets as well as sh-pe.
609 2001-08-03  Ben Harris <bjh21@netbsd.org>
611         * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
612         reloc from start of section when computing value for R_ARM_REL32
613         reloc.
615 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
617         From  H.J. Lu  <hjl@gnu.org>
618         * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
619         keep relocs for undefined syms if there are no dynamic sections in
620         executable.
621         * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
623 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
625         * cofflink.c (coff_link_check_ar_symbols): also search for
626         __imp__symbol as well as _symbol.
627         * linker.c (_bfd_generic_link_add_archive_symbols): also
628         search for __imp__symbol as well as _symbol.
630 2001-08-01  Adam Nemet  <anemet@lnxw.com>
632         * elf.c (elf_sort_sections): Return zero only as the last step.
634 2001-08-01  Nick Clifton  <nickc@cambridge.redhat.com>
636         * config.bfd (arm-vxworks): Change name of define from VXWORKS to
637         ARM_COFF_BUGFIX.
638         (arm-epoc-pe): Define ARM_COFF_BUGFIX.
639         coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
640         ARM_COFF_BUGFIX.
642 2001-07-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
644         * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
645         to match corresponding bfd_coff_backend data member.
647 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
649         * Makefile.am: Update dependencies with "make dep-am".
650         * Makefile.in: Regenerate
652 2001-07-15  H.J. Lu  <hjl@gnu.org>
654         * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
655         (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
656         * Makefile.in: Regenerate.
658 2001-07-11  H.J. Lu  <hjl@gnu.org>
660         * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
661         flags when creating the reloc section if the ALLOC flag in the
662         source section is set.
664 2001-07-11  Steve Ellcey  <sje@cup.hp.com>
666         * reloc.c (bfd_reloc_code_type): Add IA64 relocs
667         BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
668         * bfd-in2.h: Regenerate.
669         * libbfd.h: Regenerate.
670         * elfxx-ia64.c (ia64_howto_table): Define how to handle
671         new relocations.
672         (elfNN_ia64_reloc_type_lookup): Handle new relocations.
673         (elfNN_ia64_check_relocs): Likewise.
674         (elfNN_ia64_install_value): Likewise.
675         (elfNN_ia64_relocate_section): Likewise.
677 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
679         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
680         R_SPARC_UA64.
681         (elf32_sparc_check_relocs): Likewise.
682         Only create .rela section for alloced sections in shared libraries.
683         (elf32_sparc_relocate_section): Likewise.
684         Remove redundant check.
685         Optimize unaligned reloc usage.
686         * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
687         check.
689 2001-07-11  H.J. Lu  <hjl@gnu.org>
691         * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
692         ALLOC|LOAD flags as the source section for debugging sections
693         when creating the reloc section.
695 2001-07-05  Jim Wilson  <wilson@redhat.com>
697         * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
698         the section of the bigger symbol.
700         * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
702 2001-07-05  Nick Clifton  <nickc@cambridge.redhat.com>
704         * peicode.h (coff_swap_scnhdr_in): For sections containing
705         uninitialised data, only set their size to s_paddr if this does
706         not reset their size to zero.  MS's latest compilers will set
707         s_paddr to zero.
709 2001-07-04  H.J. Lu  <hjl@gnu.org>
711         * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
712         Handle bfd_mach_mips4400, bfd_mach_mips4600 and
713         bfd_mach_mips5000.
715 2001-07-03  Mark Elbrecht  <snowball3@softhome.net>
717         * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
719         * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
720         sections being discarded.
722 2001-06-30  Alan Modra  <amodra@bigpond.net.au>
724         * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
725         instead of _bfd_elfcore_section_from_phdr.
726         * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
727         * elf.c (_bfd_elfcore_section_from_phdr): Remove.
728         (_bfd_elfcore_make_pseudosection): Expedite tail-call.
729         (elfcore_grok_prstatus): Likewise.
730         (elfcore_grok_lwpstatus): Likewise.
731         (bfd_get_elf_phdr_upper_bound): Likewise.
732         (elfcore_make_note_pseudosection): Formatting.
733         (_bfd_elfcore_strndup): Formatting.
734         * elf32-mips.c (mips_elf_sym_is_global): Formatting.
735         (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
737 2001-06-29  Daniel Jacobowitz  <drow@mvista.com>
739         * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
740         and _bfd_elfcore_strndup.
741         (struct elf_backend_data): Add elf_backend_grok_prstatus
742         and elf_backend_grok_psinfo.
743         * elf.c (_bfd_elfcore_make_pseudosection): New function.
744         (elfcore_grok_prstatus): Use it.
745         (elfcore_make_note_pseudosection): Likewise.
746         (elfcore_strndup):  Rename to...
747         (_bfd_elfcore_strndup): Here, and make global.
748         (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
749         (elfcore_grok_note): Call elf_backend_grok_prstatus
750         and elf_backend_grok_psinfo if available.
751         * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
752         (_bfd_elf32_mips_grok_psinfo): New function.
753         (elf_backend_grok_prstatus): Define.
754         (elf_backend_grok_psinfo): Define.
755         * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
756         (elf_backend_grok_psinfo): Likewise.
757         (elfNN_bed): Include elf_backend_grok_prstatus and
758         elf_backend_grok_psinfo.
760 2001-06-29  H.J. Lu  <hjl@gnu.org>
762         * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
763         hplink->sgot is NULL before filling GOT.  Check if hplink->splt
764         is NULL before filling PLT.
766 2001-06-29  Alan Modra  <amodra@bigpond.net.au>
768         * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
770 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
772         * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
773         here..
774         (elf32_hppa_adjust_dynamic_symbol): ..nor here..
775         (allocate_plt_and_got_and_discard_relocs): .. instead do so here
776         after gc has run.
778         * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
779         (IS_ABSOLUTE_RELOC): Define.
780         (elf32_hppa_link_hash_entry): Always include reloc_entries field.
781         (hppa_link_hash_newfunc): Always init it.
782         (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
783         create COPY relocs only when the reloc is in a read-only section.
784         Instead, allocate space for a dynamic reloc to reference the
785         library symbol directly.  Keep track of space we allocate using
786         relocs_entries.
787         (hppa_discard_copies): Delete, and move code to..
788         (allocate_plt_and_got): ..here.  Rename to
789         allocate_plt_and_got_and_discard_relocs.  Remove unneeded dynamic
790         relocs for non-shared link.
791         (elf32_hppa_size_dynamic_sections): Update calls to above.
792         (elf32_hppa_relocate_section): Write out the dynamic relocs used
793         in lieu of COPY relocs.
795         * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
796         here..
797         (elf_i386_adjust_dynamic_symbol): ..nor here..
798         (allocate_plt_and_got_and_discard_relocs): .. instead do so here
799         after gc has run.
800         (elf_i386_size_dynamic_sections): Fix a comment.
801         (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
802         involved in writing reloc out.
804 2001-06-25  Alan Modra  <amodra@bigpond.net.au>
806         * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
807         Ensure syms are dynamic if we might be emitting a reloc.
808         (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
809         for undefweak or undefined syms..
810         (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
812         * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
813         relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
814         (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
815         redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
817 2001-06-24  H.J. Lu  <hjl@gnu.org>
819         * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
820         strncasecmp/strcasecmp instead of strncmp/strcmp.
822 2001-06-23  H.J. Lu  <hjl@gnu.org>
824         * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
825         Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
826         in the regular object file and treat the weak definition as
827         the normal one.
829 2001-06-23  Alan Modra  <amodra@bigpond.net.au>
831         * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
832         unresolved_reloc test to exclude cases where we use "relocation"
833         before setting it to point into the .got.  Reinstate fudge for
834         unresolved relocs in debugging sections.
836         * elf32-i386.c (elf_i386_relocate_section): Replace ugly
837         complicated tests for unresolvable relocs with a simple direct
838         scheme using "unresolved_reloc" var.
840         * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
841         elf_i386_dyn_relocs.  Update comment.
842         (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
843         dyn_relocs.
844         (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
845         others to aborts.
846         (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
847         abort.
848         (elf_i386_size_dynamic_sections): Likewise.
849         (elf_i386_finish_dynamic_symbol): Likewise.
850         (elf_i386_finish_dynamic_sections): Likewise.
851         (elf_i386_relocate_section): Likewise.  Tidy R_386_GOT32 and error
852         handling code.
854         Avoid creating COPY relocs if possible.
855         * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
856         which .got created.  Mark symbols used by R_386_32 and R_386_PC32
857         relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
858         reloc is in a read-only section.  Instead, allocate space for a
859         dynamic reloc to reference the library symbol directly.  Keep
860         track of space we allocate using pcrel_relocs_copied.
861         (discard_copies): Delete, and move code to ..
862         (allocate_plt_and_got): ..here.  Rename to
863         allocate_plt_and_got_and_discard_relocs.  Remove unneeded dynamic
864         relocs for non-shared link.
865         (elf_i386_size_dynamic_sections): Update calls to above functions.
866         (elf_i386_relocate_section): Write out the dynamic relocs.  Add
867         more ugly logic to avoid "unresolvable relocation" error.  Use
868         htab shortcut in place of elf_hash_table macro.
869         (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
870         not always be created now.
872 2001-06-20  Bo Thorsen  <bo@suse.co.uk>
874         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
875         shared libraries.
877 2001-06-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
879         * configure.host (mips64-*-linux): Reformat.
881 2001-06-21  Alan Modra  <amodra@bigpond.net.au>
883         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
884         allocate local .got space.  Use shortcuts from hash table for .got
885         and .plt rather than comparing section names.
886         (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
887         adjusting index into local_got_refcounts to document what we are
888         really doing.
889         (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
890         Tidy .got and .plt error checking.
892 2001-06-20  Catherine Moore  <clm@redhat.com>
894         * elf-bfd.h (struct elf_backend_data):
895         elf_backend_emit_relocs: New field: Function for emitting
896         relocs.
897         elf_backend_count_relocs: New field: Function for determining
898         the number of relocs to be emitted.
899         * elfxx-target.h: Provide default (NULL) values for
900         elf_backend_emit_relocs and elf_backend_count_relocs.
901         * elflink.h (elf_link_size_reloc_section): Make the hash table
902         big enough to hold the relocs counted by either reloc_count or
903         o->reloc_count.
904         (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
905         should be emitted, either because of a command line option
906         stored in the info structure or because the target provides a
907         special reloc emitting function.
908         If the target provides a reloc counting function use it,
909         unless performing a relocatable link or emitting all relocs.
910         Also set the SEC_RELOC flag on any output section which will
911         contain relocs.
912         (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
913         should be emitted, either because of a command line option
914         stored in the info structure or because the target provides a
915         special reloc emitting function.
916         If the target provides a reloc emitting function, use it,
917         unless performing a relocatable link or emitting all relocs.
919 2001-06-20  H.J. Lu  <hjl@gnu.org>
921         * elf32-i386.c (elf_i386_size_dynamic_sections): Always
922         allocate local .got space.
924 2001-06-19  Andreas Jaeger  <aj@suse.de>
926         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
927         dynamic symbols.
929 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
931         * elflink.h (struct elf_assign_sym_version_info): Remove member
932         export_dynamic.  All users changed to use info member.
933         NAME(bfd_elf,size_dynamic_sections)): Remove parameter
934         export_dynamic, instead use member in parameter info.
935         * bfd-in.h (bfd_elf32_size_dynamic_sections,
936         bfd_elf64_size_dynamic_sections): Update prototype.
937         * bfd-in2.h: Regenerate.
939 2001-06-18  H.J. Lu  <hjl@gnu.org>
941         * elflink.h (elf_info_failed): Add a new field, verdefs.
942         (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
943         elf_export_symbol.
944         (elf_export_symbol): Check eif->verdefs to decide if a symbol
945         should be exported.
947 2001-06-17  H.J. Lu  <hjl@gnu.org>
949         * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
950         readonly_reloc, to record if a relocation in the .rel.dyn
951         section is against a read-only section.
952         (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
953         field to false.
954         (_bfd_mips_elf_check_relocs): Record if there is a relocation
955         in the .rel.dyn section against a read-only section by setting
956         DF_TEXTREL or readonly_reloc.
957         (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
958         it is true.
959         (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
960         there is a relocation in the .rel.dyn section against a
961         read-only section.
962         (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
963         DF_TEXTREL is set.
965 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
967         * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
968         function.  Move flagword result into parameter list.  Remove
969         comment about setting bfd_error_handler to intercept failure
970         results.
971         * coffgen.c (make_a_section_from_file): Examine result of
972         calling bfd_coff_styp_to_sec_flags and pass a failure back to
973         caller.
974         * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
975         function.  Move flagword result into parameter list.
976         * libcoff.h: Regenerate.
977         * libecoff.h: Regenerate.
979 2001-06-13  Nick Clifton  <nickc@cambridge.redhat.com>
981         * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
982         section is going to follow it.
984 2001-06-12  Catherine Moore  <clm@redhat.com>
986         * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
987         with the file_align entry from elf_backend_data.
988         (elf_gc_smash_unused_vtentry_relocs): Likewise.
989         (elf_gc_record_vtentry): Likewise.
991 2001-06-10  Alan Modra  <amodra@bigpond.net.au>
993         * elflink.h: Whitespace changes.
994         (elf_link_read_relocs_from_section): Use "unsigned int" iterator
995         rather than "unsigned char".
996         (elf_link_output_relocs): Likewise.
997         (elf_link_input_bfd): Likewise.
998         (elf_reloc_link_order): LIkewise.
999         * elf.c: s/CONST/const/.  Whitespace changes.
1000         * elf32-mips.c: Formatting fix.
1002         * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
1003         * Makefile.in: Regenerate.
1004         * po/Make-in: Remove trailing tab.
1006 2001-06-09  Philip Blundell  <philb@gnu.org>
1008         * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
1009         change.
1010         (elf32_arm_plt_entry): Likewise.
1012 2001-06-08  H.J. Lu  <hjl@gnu.org>
1014         * elf.c (swap_out_syms): Keep names for global section symbols.
1016 2001-06-07  H.J. Lu  <hjl@gnu.org>
1018         * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
1019         MIPS-based machines need it.
1021 2001-06-07  H.J. Lu  <hjl@gnu.org>
1023         * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
1024         for SGI only.
1026         * config.bfd: Remove ecoff from Linux/mips.
1028 2001-06-07  Andreas Jaeger  <aj@suse.de>
1030         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
1031         assertion.
1032         (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
1033         alignment of 8 for .rela sections; handle further relocations.
1035 2001-06-06  Christian Groessler <cpg@aladdin.de>
1037         * coff-z8k.c: Fix formatting.
1038         Fix howtos: howto->size was always 1.
1040 2001-06-05  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1042         * configure.host (mips64*-*-linux*): Define.
1044 2001-06-05  Alan Modra  <amodra@bigpond.net.au>
1046         * elf32-i386.c (elf_i386_discard_copies): Rename to
1047         discard_copies, and use elf_link_hash_entry arg rather than
1048         elf_i386_link_hash_entry.
1049         (elf_i386_link_hash_traverse): Delete.
1050         (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
1051         Tidy sizing of dynamic sections.
1052         (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
1053         possible .plt entries.
1054         (elf_i386_gc_sweep_hook): Likewise.
1055         (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
1056         everything with plt.refcount <= 0.
1058         * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
1059         .relgot space here.
1060         (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
1061         (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
1062         .rel.plt here..
1063         (allocate_plt_and_got): ..instead do it all here.  New function.
1064         (elf_i386_size_dynamic_sections): Allocate local .got space and
1065         call allocate_plt_and_got.  No need to zap .relgot if not dynamic.
1066         (bfd_elf32_bfd_final_link): Delete.  (ie. use regular final link
1067         rather than gc variety).
1068         (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1069         (elf_i386_relocate_section): Use it here and correct handling of
1070         R_386_GOT32.  Provide section and offset for "unresolvable
1071         relocation" error message.
1072         (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
1074         * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
1075         sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
1076         (elf_i386_link_hash_table_create): Init them.
1077         (create_got_section): New function.
1078         (elf_i386_create_dynamic_sections): New function.
1079         (elf_backend_create_dynamic_sections): Set to above.
1080         (elf_i386_check_relocs): Use shortcuts from hash table rather than
1081         calling bfd_get_section_by_name.
1082         (elf_i386_gc_sweep_hook): Likewise.
1083         (elf_i386_adjust_dynamic_symbol): Likewise.
1084         (elf_i386_size_dynamic_sections): Likewise.
1085         (elf_i386_relocate_section): Likewise.
1086         (elf_i386_finish_dynamic_sections): Likewise.
1088         * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
1090 2001-06-02  H.J. Lu  <hjl@gnu.org>
1092         * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
1093         and ELFOSABI_HPUX.
1094         * elf64-hppa.c (elf64_hppa_object_p): Likewise.
1096 2001-06-02  H.J. Lu  <hjl@gnu.org>
1098         * aout-cris.c (MACHTYPE_OK): New. Defined.
1100 2001-06-02  Hans-Peter Nilsson  <hp@axis.com>
1102         * section.c (_bfd_strip_section_from_output): Handle NULL
1103         output_section.
1105 2001-06-02  H.J. Lu  <hjl@gnu.org>
1107         * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
1108         rs6000coff64_vec only if BFD64 is defined.
1109         (powerpc64-*-aix*): Enable only if BFD64 is defined.
1111 2001-06-02  H.J. Lu  <hjl@gnu.org>
1113         * coff-ia64.c (ia64coff_object_p): Rewrite with
1114         external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
1116 2001-06-01  Andreas Jaeger  <aj@suse.de>
1118         * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
1119         relocation, small reformatting.
1121 2001-05-29  Andreas Jaeger  <aj@suse.de>
1123         * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
1124         (elf64_x86_64_relocate_section): Likewise.
1126 2001-05-30  Alan Modra  <amodra@one.net.au>
1128         * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
1129         millicode.  Don't allocate .got and .rela.got space here..
1130         (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
1131         (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
1132         .rela.plt here..
1133         (hppa_handle_PIC_calls): ..nor here..
1134         (allocate_plt_and_got): ..instead do it all here.  New function.
1135         (elf32_hppa_size_dynamic_sections): Allocate local .got space and
1136         call allocate_plt_and_got.  No need to zap .got if not dynamic.
1137         (elf32_hppa_final_link): Call regular bfd_final_link instead of
1138         gc_common_final_link.
1139         (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1140         (elf32_hppa_relocate_section): Use it here.
1141         (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
1142         dynamic_sections_created.
1143         (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
1145 2001-05-28  Andreas Jaeger  <aj@suse.de>
1147         * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
1148         generic version since we want a hashsize of 4.
1149         (elf_backend_size_info): Likewise.
1151 2001-05-28  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1153         * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
1154         a zeroing loop.
1155         (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
1156         (elf_link_input_bfd): Likewise.
1157         (elf_reloc_link_order): Likewise.
1158         (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
1159         relocations correctly.
1161 2001-05-28  Nicolas Pitre <nico@cam.org>
1163         * elf32-arm.h: fix PLT generation for big endian ARM
1165 2001-05-28  Alan Modra  <amodra@one.net.au>
1167         * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
1168         for symbols forced local that need plabels.
1169         (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
1170         .plt.rela for local syms if non-shared.
1171         (hppa_build_one_stub): Mask lsb of plt.offset.
1172         (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
1173         (clobber_millicode_symbols): Correct comment.
1174         (elf32_hppa_relocate_section): Likewise.
1175         (elf32_hppa_finish_dynamic_symbol): Likewise.
1177 2001-05-28  Jeff Sturm  <jsturm@one-point.com>
1179         * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
1180         * bfd-in2.h: Regenerate.
1181         * libbfd.h: Regenerate.
1182         * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
1183         and BFD_RELOC_SPARC_UA64 mapping
1184         * elf64-sparc.c: Likewise.
1186 2001-05-25  H.J. Lu  <hjl@gnu.org>
1188         * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
1189         (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
1190         (coff-rs6000.lo): Remove the old dependency.
1191         * Makefile.in: Rebuild.
1193         * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
1194         coff-rs6000.lo.
1196 2001-05-25  H.J. Lu  <hjl@gnu.org>
1198         * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
1199         rs6000coff_core_file_matches_executable_p,
1200         rs6000coff_core_file_failing_command and
1201         rs6000coff_core_file_failing_signal only if AIX_CORE is
1202         defined.
1203         (pmac_xcoff_vec): Likewise.
1204         * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1206 2001-05-25  Timothy Wall  <twall@redhat.com>
1208         * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
1209         for __GLOB_DATA_PTR on AIX5.  Clean up some relocation bugs.
1211 2001-05-25  H.J. Lu  <hjl@gnu.org>
1213         * bfd-in2.h: Regenerated.
1214         * libcoff.h: Likewise.
1216 2001-05-25  Alan Modra  <amodra@one.net.au>
1218         * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
1219         undefined millicode syms in shared libs.
1220         (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
1221         (elf32_hppa_check_relocs): Likewise.
1222         (elf32_hppa_adjust_dynamic_symbol): Likewise.
1223         (elf32_hppa_size_dynamic_sections): Likewise.
1224         (elf32_hppa_relocate_section): Likewise.
1225         (elf32_hppa_finish_dynamic_symbol): Likewise.
1226         (elf32_hppa_finish_dynamic_sections): Likewise.
1228 2001-05-24  Tom Rix <trix@redhat.com>
1230         * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
1231         xcoff-target.h not used to define rs6000 or ppc bfd.
1232         * Makefile.in same
1234         * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
1235         to 64 bit.
1237         * coff-rs6000.c : Many changes for 64 bit support.  Move common
1238         32/64 code to xcofflink.c.  Explictly define the rs6000coff_vec
1239         and pmac_xcoff_vec
1241         * coff64-rs6000.c : Many changes for 64 bit support.  64 bit
1242         linker now supported.  Explictly define the rs6000coff64_vec.
1244         * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
1245         (coff_print_aux) same
1246         (coff_write_object_contents) same
1247         (coff_slurp_line_table) same
1249         * coffgen.c : (coff_fix_symbol_name) formatting
1250         (coff_mangle_symbols) xcoff 64 bit support
1251         (coff_write_symbol) same
1252         (coff_write_alien_symbol) same
1253         (coff_write_native_symbol) same
1254         (coff_write_symbols) same
1255         (coff_get_symbol_info) same
1256         (bfd_coff_get_syment) same
1257         (coff_print_symbol) same
1259         * config.bfd : add powerpc64-*-aix* target
1261         * libcoff-in.h : formatting
1263         * libcoff.h : move xcoff extern declarations to libxcoff.h
1265         * libxcoff.h : New file
1267         * xcofflink.c : Many changes for xcoff64 support.  Move common
1268         structures to include/coff/xcoff.h.  Move specific structure to
1269         backends coff-rs6000.c and coff64-rs6000.c.   Use new backend
1270         functions, defined in libxcoff.h, to isolate 32/64 dependencies.
1272         (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
1273         aix4.2+ -binitfini.
1275         (xcoff_build_ldsyms) : handle special __rtinit symbol.
1277 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
1279         * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1280         s/ENTIRES/ENTRIES/.
1282 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1284         * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1285         * libbfd.h: Regenerate.
1286         * bfd-in2.h: Regenerate.
1288         * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1289         * archures.c (bfd_mach_mips12000): Define.
1290         * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1291         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1292         support.
1293         (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1294         * bfd-in2.h: Regenerate.
1295         * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1297 2001-05-23  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1299         * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1300         elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1301         elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1302         that is used by GCC.
1304 2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
1306         * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1307         of entries in a structured section.
1308         * elf.c: Use new macro.
1309         * elf32-i386.c: Use new macro.
1310         * elf32-mips.c: Use new macro.
1311         * elf64-alpha.c: Use new macro.
1312         * elf64-sparc.c: Use new macro.
1313         * elfcode.h: Use new macro.
1314         * elflink.h: Use new macro.
1316 2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
1318         * bfdint.texi: Replace -oformat with --oformat.
1320 2001-05-21  Andreas Jaeger  <aj@suse.de>
1322         * dwarf2.c (decode_line_info): Fix error message.
1323         (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1324         adjust error message.
1326 2001-05-18  H.J. Lu  <hjl@gnu.org>
1328         * elflink.h (elf_link_add_object_symbols): Revert the last
1329         change.
1331 2001-05-17  Alan Modra  <amodra@one.net.au>
1333         * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1334         ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1335         (hppa_build_one_stub): Add an assert to check plt.offset.
1337 2001-05-17  H.J. Lu  <hjl@gnu.org>
1339         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1340         version definition to basename of the output filename.
1342 2001-05-17  H.J. Lu  <hjl@gnu.org>
1344         * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1345         basename of the bfd filename.
1347 2001-05-16  Alan Modra  <amodra@one.net.au>
1349         * section.c (asection): Add linker_has_input field.
1350         (STD_SECTION): Adjust initialization to suit.
1351         * ecoff.c (bfd_debug_section): Likewise.
1352         * bfd-in2.h: Regenerate.
1354 2001-05-15  Alexandre Oliva  <aoliva@redhat.com>
1356         * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1357         negative 32-bit operands to 16 operands when the operand is
1358         going to be zero-extended by the modified opcode.
1360 2001-05-12  Peter Targett  <peter.targett@arccores.com>
1362         * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1363         name for 'arc5' core versions.
1364         (bfd_arc_arch): Make bfd_mach_arc_6 default.
1366         * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1367         architecture.
1368         (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1370 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
1372         * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1373         sections as well.
1374         (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1375         to .gnu.linkonce.t.FOO text section.
1377 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
1379         * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1380         fields, change sec into secinfo.
1381         (struct sec_merge_info): Add chain, remove last fields.
1382         (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1383         (sec_merge_hash_lookup): If lookup could not use a string only
1384         because it has bad alignment, mark the old string for deletion.
1385         (sec_merge_add): Add secinfo argument. Don't compute entry's
1386         position, instead record the section.
1387         (sec_merge_emit): Update for the sec into secinfo change in
1388         struct sec_merge_hash_entry.
1389         (_bfd_merge_section): Only record the section for merging, defer
1390         putting strings into the hash table.
1391         (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1392         _bfd_merge_sections): New functions.
1393         (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1394         changes.
1395         * libbfd-in.h (_bfd_merge_sections): Add prototype.
1396         (_bfd_nolink_bfd_merge_sections): Define.
1397         * libbfd.h: Likewise.
1398         (bfd_generic_merge_sections): Add prototype.
1399         * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1400         (struct bfd_target): Likewise.
1401         * bfd.c (bfd_merge_sections): Define.
1402         * bfd-in2.h: Rebuilt.
1403         * elf.c (_bfd_elf_merge_sections): New function.
1404         * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1405         * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1406         * reloc.c (bfd_generic_merge_sections): New function.
1407         * vms.c (vms_bfd_merge_sections): New function.
1408         * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1409         * aout-target.h (MY_bfd_merge_sections): Define.
1410         * aout-tic30.c (MY_bfd_merge_sections): Define.
1411         * binary.c (binary_bfd_merge_sections): Define.
1412         * bout.c (b_out_bfd_merge_sections): Define.
1413         * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1414         * coffcode.c (coff_bfd_merge_sections): Define.
1415         * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1416         * i386msdos.c (msdos_bfd_merge_sections): Define.
1417         * i386os9k.c (os9k_bfd_merge_sections): Define.
1418         * ieee.c (ieee_bfd_merge_sections): Define.
1419         * ihex.c (ihex_bfd_merge_sections): Define.
1420         * nlm-target.h (nlm_bfd_merge_sections): Define.
1421         * oasys.c (oasys_bfd_merge_sections): Define.
1422         * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1423         * som.c (som_bfd_merge_sections): Define.
1424         * srec.c (srec_bfd_merge_sections): Define.
1425         * tekhex.c (tekhex_bfd_merge_sections): Define.
1426         * versados.c (versados_bfd_merge_sections): Define.
1427         * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1429 2001-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
1431         * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1432         to be unsigned long, in order to match its use.
1434 2001-05-10  H.J. Lu  <hjl@gnu.org>
1436         * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1437         indirect symbols.
1439 2001-05-09  H.J. Lu  <hjl@gnu.org>
1441         * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1442         versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1443         Remove the unused veriable `dynver'.
1445 2001-05-08  Ian Lance Taylor  <ian@zembu.com>
1447         * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1448         NULL or is not COFF.
1449         (coff_i386_rtype_to_howto): Don't dump core if output section
1450         owner is not COFF.
1452 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1454         * ecoff.c (bfd_debug_section): Fix initialization.
1455         * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1456         is always a positive integer. Cast away sign mismatch.
1457         * elf32-mips.c: Fix misleading comment and typo.
1458         (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1459         correct data type.
1460         * elflink.c: Fix typo.
1461         (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1462         * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1464 2001-05-04  Richard Henderson  <rth@redhat.com>
1466         * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1468 2001-05-04  Nick Clifton  <nickc@cambridge.redhat.com>
1470         * elf32-arm.h (elf32_arm_final_link_relocate): Set
1471         EF_ARM_HASENTRY if the start address is set.
1473 2001-05-03  Nick Clifton  <nickc@cambridge.redhat.com>
1475         * targets.c (_bfd_target_vector_entries): Compute value based on
1476         the size of the _bfd_target_vector and not bfd_target_vector.
1478 2001-05-03  H.J. Lu  <hjl@gnu.org>
1480         * elfcode.h: Include "libiberty.h".
1482         * elflink.h (elf_link_add_object_symbols): Set
1483         elf_dt_name (abfd) to basename of the bfd filename.
1484         (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1485         of the bfd filename.
1487 2001-05-03  Andreas Jaeger  <aj@suse.de>
1489         * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1490         (elf_generic_info_to_howto_rel): Likewise.
1491         * coff-alpha.c (reloc_nil): Likewise.
1492         (alpha_ecoff_bad_format_hook): Likewise.
1493         (alpha_adjust_reloc_out): Likewise.
1494         (alpha_bfd_reloc_type_lookup): Likewise.
1495         (alpha_convert_external_reloc): Likewise.
1496         * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1497         (elf64_alpha_reloc_bad): Likewise.
1498         (elf64_alpha_reloc_gpdisp): Likewise.
1499         (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1500         (elf64_alpha_info_to_howto): Likewise.
1501         (elf64_alpha_add_symbol_hook): Likewise.
1502         (elf64_alpha_create_got_section): Likewise.
1503         (elf64_alpha_is_local_label_name): Likewise.
1504         (elf64_alpha_merge_ind_symbols): Likewise.
1505         * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1506         (mips_elf64_get_reloc_upper_bound): Likewise.
1507         * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1508         (nlm_alpha_get_public_offset): Likewise.
1510 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
1512         * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1513         about overflow in R_OPENRISC_LO_16_IN_INSN and
1514         R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1516 2001-04-30  H.J. Lu  <hjl@gnu.org>
1518         * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1519         only for ELF_LINK_FORCED_LOCAL.
1520         * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1521         * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1522         * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1524         * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1525         if the symbol has hidden or internal visibility.
1527 2001-04-30  Alan Modra  <amodra@one.net.au>
1529         * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1530         calls to undefined weak symbols.
1532 2001-04-30  Andreas Jaeger  <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1534         * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1535         R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1537 2001-04-27  Andreas Jaeger  <aj@suse.de>
1539         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1540         out handled entries.
1541         (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1542         (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1543         (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1544         GOT32.
1546 2001-04-27  Sean McNeil <sean@mcneil.com>
1548         * config.bfd: Add arm-vxworks target.
1549         * coff-arm (coff_arm_relocate_section): Add in symbol value to
1550         addend (fro VXworks targets).
1552 2001-04-26  H.J. Lu  <hjl@gnu.org>
1554         * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1555         valid.
1557 2001-04-25  Frank Ch. Eigler  <fche@redhat.com>
1559         * bfd-in.h (bfd_cache_close): Declare newly exported function.
1560         * bfd-in2.h: Regenerated.
1562 2001-04-24  Jakub Jelinek  <jakub@redhat.com>
1564         * merge.c (struct sec_merge_hash_entry): Add alignment field.
1565         (struct sec_merge_hash): Remove alignment_power.
1566         (sec_merge_hash_newfunc): Clear alignment.
1567         (sec_merge_hash_lookup): Pass alignment as argument.
1568         Use hashp->root.next, not hashp->next to walk the hash chain.
1569         If a string already in the hashtable does not have required
1570         alignment, create a new hashtable entry.
1571         (sec_merge_init): Remove alignment_power argument.
1572         (sec_merge_add): Add alignment argument.
1573         (sec_merge_emit): Alignment is now a per-entity thing, not per
1574         section.
1575         (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1576         for proper alignment.
1577         Pass alignment information to sec_merge_add.
1579 2001-04-24  Christian Groessler  <cpg@aladdin.de>
1581         * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1582         and R_REL16 reloc types; accept odd values for R_REL16 type
1584 2001-04-24  Johan Rydberg  <jrydberg@opencores.org>
1586         * cpu-openrisc.c: New file.
1587         * elf32-openrisc.c: Likewise.
1589         * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1590         (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1591         (BFD32_BACKENDS): Add elf32-openrisc.lo.
1592         (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1593         (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1594         * Makefile.in: Regenerated.
1595         * config.bfd: (openrisc-*-elf): New target.
1596         * configure.in (bfd_elf32_openrisc_vec): New vector.
1597         * configure: Regenerated.
1598         * libbfd.h: Regenerated.
1599         * bfd-in2.h: Regenerated.
1600         * reloc.c: Add OpenRISC relocations.
1601         * targets.c (bfd_elf32_openrisc_vec): Declare.
1602         (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1603         * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1604         (bfd_openrisc_arch): Declare.
1605         (bfd_archures_list): Add bfd_openrisc_arch.
1606         * elf.c (prep_headers): Add bfd_arch_openrisc.
1608 2001-04-23  Bo Thorsen  <bo@suse.de>
1610         * elf64-x86-64.c: Add c++ vtable hack.
1611         Small whitespace and comment changes.
1613 2001-04-19  Andreas Jaeger  <aj@suse.de>
1615         * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1616         (elf64_x86_64_plt_entry): Likewise.
1617         (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1618         (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1620 2001-04-17  Hans-Peter Nilsson  <hp@axis.com>
1622         * elf32-cris.c: Tweak comments related to dynamic linking.
1623         (cris_elf_relocate_section): When not creating shared object, fill
1624         in the .got table for any symbol not in the dynamic symbol table.
1625         (elf_cris_finish_dynamic_symbol): When not creating shared object,
1626         only emit a .got.rela reloc if the symbol is in the dynamic symbol
1627         table.
1628         (cris_elf_check_relocs): Use variable r_type in all places rather
1629         than the original expression.  Add default case in switch for
1630         reloc types.
1631         (elf_cris_size_dynamic_sections): Iterate over
1632         elf_cris_discard_excess_program_dynamics when not creating shared
1633         library.
1634         (elf_cris_discard_excess_dso_dynamics): Renamed from
1635         elf_cris_discard_copies.  Correct typo, s/Rel/Rela/.
1636         (elf_cris_discard_excess_program_dynamics): New.
1638 2001-04-14  Mark Elbrecht  <snowball3@bigfoot.com>
1640         * coffcode.h (coff_write_object_contents): Use
1641         bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1643 2001-04-14  H.J. Lu  <hjl@gnu.org>
1645         * bfd-in2.h: Regenerate.
1647 2001-04-14  Jakub Jelinek <jakub@redhat.com>
1649         * section.c (STD_SECTION): Add entsize.
1651 2001-04-13  H.J. Lu  <hjl@gnu.org>
1653         * section.c (SEC_MERGE): Define new flag for merging.
1654         (SEC_STRINGS): Likewise.
1655         (entsize): New field.
1657 2001-04-13  Roger Sayle  <roger@metaphorics.com>
1659         * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1660         flag on pe-i386 targets.
1662 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
1664         * libbfd-in.h (_bfd_merge_section): New.
1665         (_bfd_write_merged_section): New.
1666         (_bfd_merged_section_offset): New.
1667         * libbfd.h: Rebuilt.
1668         * linker.c (_bfd_generic_link_output_symbols): Handle
1669         discard_sec_merge.
1670         * aoutx.h (aout_link_write_symbols): Likewise.
1671         * pdp11.c (aout_link_write_symbols): Likewise.
1672         * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1673         (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1674         sections.
1675         (elf_link_sec_merge_syms): New.
1676         (elf_link_input_bfd): Call _bfd_merged_section_offset
1677         and _bfd_write_merged_section.
1678         Handle discard_sec_merge.
1679         * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1680         field.
1681         (struct bfd_elf_section_data): Likewise.
1682         * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1683         SEC_STRINGS section flags and entsize from their ELF counterparts.
1684         (_bfd_elf_link_hash_table_init): Initialize merge_info.
1685         (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1686         from their BFD counterparts.
1687         * merge.c: New file.
1688         * Makefile.am: Add strtab.lo.
1689         * Makefile.in: Rebuilt.
1691 2001-04-09  Hans-Peter Nilsson  <hp@axis.com>
1693         * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1694         only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1696 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
1698         * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1699         endian MIPS ELF target.
1700         * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1701         MIPS ELF target.
1703         * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1704         64bit big endian MIPS ELF target.
1705         (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1706         endian MIPS ELF target.
1707         * configure: Regenerated.
1709         * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1710         little endian targets.
1711         (mips_elf_sym_is_global): Handle traditional targets.
1713         * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1714         64bit big endian MIPS ELF target.
1715         (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1716         endian MIPS ELF target.
1718         * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1719         and bfd_elf64_tradlittlemips_vec.
1721 2001-04-05  David Mosberger  <davidm@hpl.hp.com>
1723         * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1724         ordinary "progbits" section.
1726 2001-04-04  Alan Modra  <alan@linuxcare.com.au>
1728         * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1729         when -Bsymbolic causes a symbol to no longer need a .plt entry.
1731 2001-04-03  David Mosberger  <davidm@hpl.hp.com>
1733         * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1735 2001-03-30  H.J. Lu  <hjl@gnu.org>
1737         * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1738         (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1740 2001-03-26  H.J. Lu  <hjl@gnu.org>
1742         * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1743         if there are any relocations for generic ELF.
1744         (bfd_elf32_bfd_link_add_symbols): Defined to
1745         elf32_generic_link_add_symbols.
1746         * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1747         if there are any relocations for generic ELF.
1748         (bfd_elf64_bfd_link_add_symbols): Defined to
1749         elf64_generic_link_add_symbols.
1751 2001-03-23  Nick Clifton  <nickc@redhat.com>
1753         * Makefile.am (BUILD_CFILES): New variable: List of C source
1754         files created in build directory.
1755         (BUILD_HFILES): New variable: List of header files created in
1756         build directory.
1757         (POTFILES): Delete.
1758         (po/POTFILES.in): Replace rule with empty entry.
1759         (po/SRC-POTFILES.in): New rule: Create a list of source files
1760         in the source directory.
1761         (po/BLD-POTFILES.in): New rule: Create a list of source files
1762         in the build directory.
1763         (MOSTLYCLEAN): Do not delete source files created in build
1764         directory.
1765         * Makefile.in: Regenerate.
1766         * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1767         into po/Makefile.
1768         * configure: Regenerate.
1770         * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1771         and BLD_POTFILES.
1772         Add .. to the search path when building bfd.pot.
1773         Delete POTFILES when performing distclean.
1774         Add comment describing why distclean is broken in maintainer mode.
1775         * po/POTFILES.in: Delete.
1776         * po/SRC-POTFILES.in: New file.
1777         * po/BLD-POTFILES.in: New file.
1778         * po/bfd.pot: Regenerate.
1780 2001-03-22  Hans-Peter Nilsson  <hp@axis.com>
1782         * elf32-cris.c: Shlib and PIC support.  PCREL tweaks.
1783         (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1784         elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1785         elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1786         elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1787         elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1788         functions.
1789         (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1790         R_CRIS_32_PCREL>: Correct comments.  Set pcrel_offset to false.
1791         <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1792         R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1793         R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1794         New HOWTO members for new relocs.
1795         (cris_reloc_map): Map new relocs.
1796         (ELF_DYNAMIC_INTERPRETER): Define.
1797         (PLT_ENTRY_SIZE): Define.
1798         (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1799         elf_cris_pic_plt_entry): New, PLT templates.
1800         (struct elf_cris_pcrel_relocs_copied, struct
1801         elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1802         (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1803         (cris_final_link_relocate): Check that 16-bit GOT relocs have
1804         positive values.  Adjust PCREL relocs to be relative to location
1805         after relocation.
1806         (cris_elf_relocate_section): Handle relocations to dynamic
1807         objects.  Handle new relocations.  Call error handler when seeing
1808         non-PIC relocation for read-only sections while generating shared
1809         object.
1810         (cris_elf_check_relocs): Set reference counts for GOT and PLT
1811         entries.
1812         (bfd_elf32_bfd_link_hash_table_create,
1813         elf_backend_adjust_dynamic_symbol,
1814         elf_backend_size_dynamic_sections,
1815         elf_backend_finish_dynamic_symbol,
1816         elf_backend_finish_dynamic_sections,
1817         elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1818         elf_backend_hide_symbol, elf_backend_want_got_plt,
1819         elf_backend_plt_readonly, elf_backend_want_plt_sym,
1820         elf_backend_got_header_size, elf_backend_plt_header_size):
1821         Define.
1823         * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1824         BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1825         BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1826         BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1827         BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1828         BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1829         * bfd-in2.h, libbfd.h: Regenerate.
1831 2001-03-21  Diego Novillo  <dnovillo@redhat.com>
1833         (_bfd_mips_elf_relocate_section): Give a better error message when
1834         a relocation is not recognized.
1836 2001-03-21  Alan Modra  <alan@linuxcare.com.au>
1838         * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1839         non-NULL before attempting to dereference.
1841 2001-03-20  H.J. Lu  <hjl@gnu.org>
1843         * configure.in: Remove the redundent AC_ARG_PROGRAM.
1844         * configure: Rebuild.
1846 2001-03-20  Andreas Schwab  <schwab@suse.de>
1848         * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1849         relocation value when resolving a reference from a debugging
1850         section.
1852 2001-03-16  Scott Thomason  <SThomaso@hii.com>
1854         * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1855         (xcoff64_swap_sym_out): Fix syntax errors.
1857 2001-03-16  Richard Sandiford  <rsandifo@redhat.com>
1859         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1861 2001-03-15  Alan Modra  <alan@linuxcare.com.au>
1863         * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1864         (hppa_link_hash_newfunc): Init it.
1865         (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1866         section appears to be non-PIC.
1867         (final_link_relocate): Likewise.
1868         (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1869         possible candidate function, and set pic_call for those that will
1870         only have a .plt entry for the PIC call stub.
1871         (hppa_handle_PIC_calls): Set maybe_pic_call.
1873 2001-03-12  DJ Delorie  <dj@redhat.com>
1875         * elf32-sh.c (sh_elf_relocate_section): Only relocation
1876         R_SH_DIR8WP* relocs if they're against external symbols, else
1877         they're just for relaxing.  Validate the reloc values.
1879 2001-03-12  Stefan Geuken <mail@stefan-geuken.de>
1881         * binary.c (bfd_external_binary_architecture): Declare.
1882         (binary_object_p): If bfd_external_binary_architecture is defined,
1883         set the architecture to this string.
1885 2001-03-11  Philip Blundell  <philb@gnu.org>
1887         * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1888         entries that could serve as a definition for a weak symbol.
1890 2001-03-08  Nick Clifton  <nickc@redhat.com>
1892         * Most files: Update copyright notices using Perl script created
1893         by Kevin Buettner <kevinb@redhat.com>.
1895 2001-03-07  Nick Clifton  <nickc@redhat.com>
1897         * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1898         prior patch on ! defined OLD_ARM_ABI.
1900 2001-03-07  Andreas Jaeger  <aj@suse.de>
1902         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1903         some relocation values.
1905 2001-03-06  Nick Clifton  <nickc@redhat.com>
1907         * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1908         of offset in BLX(1) instruction.
1909         * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1910         offset in BLX(1) instruction.
1911         Fix formatting.
1913 2001-03-06  Nick Clifton  <nickc@redhat.com>
1915         * coff-arm.c (coff_arm_reloc_type_lookup): Add
1916         BFD_RELOC_THUMB_PCREL_BLX.
1918 2001-03-06  Igor Shevlyakov  <igor@windriver.com>
1920         * archures.c (bfd_default_scan): Add Coldfire CPUs.
1921         * bfd-in2.h: Regenerate.
1922         * cpu-m68k.c: Add Coldfire CPUs for arch table.
1923         * ieee.c (ieee_write_processor): Set proper id for
1924         Coldfire CPUs.
1926 2001-03-01  D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1928         * configure.in: Add s390 target.
1929         * configure: Regenerate.
1931 2001-02-28  Andreas Jaeger  <aj@suse.de>
1933         * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1934         to addend.
1936 2001-02-28  Philip Blundell  <pb@futuretv.com>
1938         * elf32-arm.h: Update mentions of renamed EF_xx constants.
1939         (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1941 2001-02-27  H.J. Lu  <hjl@gnu.org>
1943         * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1944         abfd->tdata.aout_data == NULL.
1946 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
1948         * elf32-hppa.c: Correct field selector in stub comments.
1949         (clobber_millicode_symbols): Formatting fix.
1951         * configure.in: Bump version to 2.11.90.
1952         * configure: Regenerate.
1953         * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1954         (CFILES): $SOURCE_CFILES + generated C files.
1955         (POTFILES): Include $HFILES not $SOURCE_HFILES.
1956         Run "make dep-am"
1957         * Makefile.in: Regenerate.
1958         * doc/Makefile.in: This too.
1960 2001-02-26  Timothy Wall  <twall@cygnus.com>
1962         * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1963         comments.
1965 2001-02-26  Nick Clifton <nickc@redhat.com>
1967         * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1968         up, replacing multiple if statements with a switch.
1969         (handle_COMDAT): New function.
1971 2001-02-26  H.J. Lu  <hjl@gnu.org>
1973         * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1974         a warning for section flags we do not handle instead of
1975         aborting.
1977 2001-02-26  Andreas Jaeger  <aj@suse.de>
1979         * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1981 2001-02-22  Timothy Wall  <twall@cygnus.com>
1983         * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1984         * configure.in: Add objects for elf64_ia64_aix vectors.
1985         * configure: Regenerated.
1986         * configure.host: Recognize ia64-*-aix*.
1987         * elfxx-ia64.c: Add hooks for ELF64 on AIX5.  Define new vectors
1988         for AIX.  AIX5 requires most relocations to be dynamic (*all*
1989         binaries are somewhat similar to shared libraries).
1990         * targets.c: Add elf64_ia64_aix vectors.
1992 2001-02-21  David Mosberger  <davidm@hpl.hp.com>
1994         * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1995         C8 said "1" instead of "8".  Clarify error string for IMM22:
1996         "signed integer" instead of just "integer".
1998 2001-02-20  Andreas Jaeger  <aj@suse.de>
2000         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
2001         PLT entries that could serve as a definition for a weak symbol.
2003 2001-02-19  Jakub Jelinek  <jakub@redhat.com>
2005         * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
2006         entries that could serve as a definition for a weak symbol.
2007         * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
2009 2001-02-18  David O'Brien  <obrien@FreeBSD>
2011         * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
2012         FreeBSD/i386-CURRENT differently until I can figure out the needed
2013         corefile changes.
2014         * configure: Regenerate.
2015         * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
2016         FreeBSD/PowerPC, and FreeBSD/sparc64.
2018 2001-02-18  lars brinkhoff  <lars@nocrew.org>
2020         * Makefile.am: Add PDP-11 a.out target.
2021         * config.bfd: Likewise.
2022         * configure.in: Likewise.
2023         * targets.c: Likewise.
2024         * archures.c: Likewise.
2025         * bfd-in2.h: Likewise.  Add PDP-11 relocations.
2026         * libbfd.h: Add PDP-11 relocations.
2027         * reloc.c: Likewise.
2028         * cpu-pdp11.c: New file.
2029         * pdp11.c: New file.
2031         * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
2032         (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2033         (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2034         (PUT_WORD) [ARCH_SIZE==16]: Likewise.
2035         (GET_MAGIC): New macro.
2036         (PUT_MAGIC): Likewise.
2037         * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
2039 2001-02-18  Jim Kingdon  <jkingdon@engr.sgi.com>
2041         * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
2042         multiarch needs it).
2044 2001-02-18  H.J. Lu  <hjl@gnu.org>
2046         * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
2047         index.
2049 2001-02-18  Kazu Hirata  <kazu@hxi.com>
2051         * vms-misc.c: Fix formatting.
2053 2001-02-16  Kazu Hirata  <kazu@hxi.com>
2055         * vms.c: Fix formatting.
2057 2001-02-14  H.J. Lu  <hjl@gnu.org>
2059         * elf.c (elf_find_function): New function.
2060         (_bfd_elf_find_nearest_line): Call elf_find_function () to find
2061         the file name and function name.
2063 2001-02-14  Nick Clifton  <nickc@redhat.com>
2065         * ecoff.c (bfd_debug_section): Update to initialise new fields in
2066         asection structure.
2068         * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
2069         (BFD64_BACKENDS): Add pepigen.c
2070         Add rules to create peigen.c and pepigen.c from peXXigen.c.
2072         * Makefile.in: Regenerate.
2073         * configure:  Regenerate.
2074         * po/POTFILES.in: Regenerate.
2075         * po/bfd.pot: Regenerate.
2077 2001-02-14  H.J. Lu  <hjl@gnu.org>
2079         * libcoff-in.h (pe_tdata): Add members target_subsystem and
2080         force_minimum_alignment.
2082 2001-02-14  Bo Thorsen  <bo@suse.de>
2084         * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
2085         (elf64_86_64_size_info): Struct added to fix a problem
2086         with the hashtable string entries.
2087         (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
2088         (elf64_x86_64_size_dynamic_sections): A FIXME removed.
2089         (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
2090         remove the FIXME for this.
2091         (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
2092         section. Also removed the FIXME for it.
2093         (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
2094         (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
2095         (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
2097 2001-02-13  Richard Henderson  <rth@redhat.com>
2099         * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
2100         and not user provided.
2102 2001-02-13  Kazu Hirata  <kazu@hxi.com>
2104         * vms.c (vms_print_symbol): Remove unreachable code.
2106         * rs6000-core.c: Fix formatting.
2108 2001-02-13  David Mosberger  <davidm@hpl.hp.com>
2110         * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
2111         as _bfd_XXi_only_swap_filehdr_out.
2112         (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
2113         pe->force_minimum_alignment to TRUE.
2114         (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
2115         PEI_TARGET_SUBSYSTEM.
2116         (pe_print_private_bfd_data): Call
2117         _bfd_XX_print_private_bfd_data_common() instead of
2118         _bfd_pe_print_private_bfd_data_common().
2119         (pe_bfd_copy_private_bfd_data): Call
2120         _bfd_XX_bfd_copy_private_bfd_data_common() instead of
2121         _bfd_pe_bfd_copy_private_bfd_data_common().
2122         (coff_bfd_copy_private_section_data): Define as
2123         _bfd_XX_bfd_copy_private_section_data instead of
2124         _bfd_pe_bfd_copy_private_section_data.
2125         (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
2126         of a _bfd_pe_get_symbol_info.
2128         * peigen.c: Delete.
2130         * peXXigen.c: Renamed from peigen.c.
2131         (COFF_WITH_XX): Define this macro (will get expanded into
2132         COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
2133         compiled as peigen.c or pepigen.c.
2134         [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
2135         define the canonical PEP structures and definitions.
2136         (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
2137         effect, enforce minimum file and section alignments.  If
2138         extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
2139         pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
2140         so, by default, this is a no-op).
2142         * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
2143         (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
2144         _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
2145         _bfd_pefoo if it's not defined.  Use these macros to define
2146         coff swap macros.
2148         * libcoff.h (pe_tdata): Add members target_subsystem and
2149         force_minimum_alignment.
2151         * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
2152         COFF_WITH_pep.
2153         (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
2155         * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
2156         peigen.lo.
2158         * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
2159         (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
2160         PEPAOUTHDR.
2162         * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
2163         (BFD64_BACKENDS_CFILES): Mention pepigen.c
2164         (peigen.c): Add rule to generate from peXXigen.c.
2165         (pepigen.c): Ditto.
2166         (pepigen.lo): List dependencies for pepigen.lo.
2168 2001-02-13  Alan Modra  <alan@linuxcare.com.au>
2170         * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$.  If
2171         $global$ referenced but not defined, set its value here.
2173 2001-02-09  Bo Thorsen  <bo@suse.de>
2175         * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
2176         alignment to 3.
2177         (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
2178         and relocation.
2179         (elf64_x86_64_relocate_section): Fix formatting.
2180         (elf64_x86_64_relocate_section): Fix addend for relocation of
2181         R_X86_64_(8|16|32|PC8|PC16|PC32).
2183 2001-02-12  Jan Hubicka  <jh@suse.cz>
2185         * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
2187 2001-02-11  H.J. Lu  <hjl@gnu.org>
2189         * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
2190         alignment.
2192 2001-02-11  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2194         * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
2195         from 2000-10-13.  Do not add the symbol's value for R_MIPS_REL32
2196         relocations against dynsym symbols.
2198         * elf32-mips.c (elf_mips_howto_table): Fix the comment on
2199         the R_MIPS_26 relocation.
2200         (mips_elf_calculate_relocation): Use (p + 4) instead of p for
2201         the R_MIPS_26 relocation.
2202         (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
2203         relocation.
2204         * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
2205         the R_MIPS_26 relocation.
2206         (mips_elf64_howto_table_rela): Likewise.
2208         * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
2209         member to mark symbols that have non-CALL relocations against
2210         them.
2211         (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
2212         (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
2213         R_MIPS_GOT16.
2214         (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
2215         non-CALL relocation against it is encountered.
2216         (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
2217         (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
2218         no_fn_stub is not set.
2220         * elf32-mips.c (mips_elf_output_extsym): Get the output section
2221         information from the real symbol for indirect ones.
2222         Check no_fn_stub to find out if a symbol has a function stub
2223         indeed.
2225 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2227         * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
2228         * Makefile.in: Regenerate.
2230 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
2232         * elfxx-ia64.c (is_unwind_section_name): New function.  Returns
2233         true if section name is an unwind table section name.
2234         (elfNN_ia64_additional_program_headers): Count each unwind section
2235         separately.
2236         (elfNN_ia64_modify_segment_map): Install one unwind program header
2237         for each unwind separate section.  Note: normally the linker
2238         script merges the unwind sections that go into a single segment,
2239         so this still generates at most one unwind program header per
2240         segment.
2242         * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2243         name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2244         (elfNN_ia64_fake_sections): Mark sections with names that start
2245         with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2246         unwind section.
2248         * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2249         Use it to make sh_info in unwind section point to the text section
2250         it applies to.
2252 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2254         * Makefile.am: Add linux target for S/390.
2255         * archures.c: Likewise.
2256         * bfd-in2.h: Likewise.
2257         * config.bfd: Likewise.
2258         * configure.in: Likewise.
2259         * elf.c: Likewise.
2260         * libbfd.h: Likewise.
2261         * targets.c: Likewise.
2262         * cpu-s390.c: New file.
2263         * elf32-s390.c: New file.
2264         * elf64-s390.c: New file.
2266 2001-02-09  Nick Clifton  <nickc@redhat.com>
2268         * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2269         ImageBase.  This has already been done by coff_swap_hdr_in.
2271 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
2273         * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2275 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
2277         * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2278         (sparc64_elf_relocate_section): Likewise.
2280 2001-02-09  Mark Kettenis  <kettenis@gnu.org>
2282         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2283         similar to R_SPARC_32.
2284         * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2286 2001-02-08  H.J. Lu  <hjl@gnu.org>
2288         * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2289         relocation entries for weak definitions when building DSO with
2290         -Bsymbolic.
2292 2001-02-08  Richard Henderson  <rth@redhat.com>
2294         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2295         before visibility.  Locally defined protected symbols are not
2296         dynamic.
2298 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>
2300         * config.bfd: Enable coff64 for rs6000-*.  Patch from
2301         <hzoli@austin.ibm.com>.
2303 2001-02-07  Mark Elbrecht  <snowball3@bigfoot.com>
2305         * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2306         found, do not attempt to find dwarf2 info before returning.
2308 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
2310         * elflink.h (is_global_symbol_definition): Rename to
2311         is_global_data_symbol_definition and have it reject function
2312         symbols.
2313         (elf_link_is_defined_archive_symbol): Use renamed function.
2315 2001-02-07  Todd Vierling  <tv@wasabisystems.com>
2317         * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2318         * libbfd.h (bfd_target_vector): Likewise.
2319         * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
2320         make static; create pointer reference named bfd_target_vector.
2321         (_bfd_target_vector_entries): Calculate this based on the array
2322         typed _bfd_target_vector.
2324 2001-02-06  H.J. Lu  <hjl@gnu.org>
2326         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2327         internal symbols are not dynamic.
2328         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2330 2001-02-06  Nick Clifton  <nickc@redhat.com>
2332         * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2333         that it will not be pulled into the list of files that make up
2334         po/POTFILES.in.
2335         * Makefile.in: Regenerate.
2336         * po/bfd.pot:  Regenerate.
2338 2001-02-06  H.J. Lu  <hjl@gnu.org>
2340         * peicode.h (coff_swap_filehdr_in): Remove the e_magic
2341         checking.
2342         (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2343         external_PEI_IMAGE_hdr.
2345 2001-02-06  Kazu Hirata  <kazu@hxi.com>
2347         * elf-m10200.c: Fix formatting.
2349 2001-02-04  Nick Clifton  <nickc@redhat.com>
2351         * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2352         rel, it will be handled later on.
2354 2001-02-02  Fred Fish  <fnf@ninemoons.com>
2356         * Makefile.in: Fix typo.
2358 2001-02-01  Kazu Hirata  <kazu@hxi.com>
2360         * elf-m10300.c: Fix formatting.
2362 2001-01-30  Alan Modra  <alan@linuxcare.com.au>
2364         * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2365         (elf_backend_get_symbol_type): Define.
2366         (elf64_hppa_object_p): Set architecture and machine from elf
2367         header flags.
2369 2001-01-30  Curtis L. Janssen  <cljanss@ca.sandia.gov>
2371         * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2372         before mdebug.
2374 2001-01-26  Richard Henderson  <rth@redhat.com>
2376         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2377         for non-default visibility.
2378         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2379         delete ugly macro and replace with pretty function.
2381 2001-01-25  Mark Elbrecht  <snowball3@bigfoot.com>
2383         * coff-go32.c: Update copyright.
2384         * coff-stgo32.c: Likewise.
2385         * coff-go32.c (COFF_LONG_FILENAMES): Define.
2386         * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2387         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2388         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2390 2001-01-25  Kazu Hirata  <kazu@hxi.com>
2392         * bfd-in2.h: Rebuild.
2393         * libbfd.h: Likewise.
2395 2001-01-23  H.J. Lu  <hjl@gnu.org>
2397         * bfd-in2.h: Rebuild.
2399 2001-01-23  H.J. Lu  <hjl@gnu.org>
2401         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2402         is NULL or PRIV(vms_rec) is outside of the buffer.
2404 2001-01-23  Kazu Hirata  <kazu@hxi.com>
2406         * coff64-rs6000.c: Fix formatting.
2407         * coff-arm.c: Likewise.
2408         * coffgen.c: Likewise.
2409         * cofflink.c: Likewise.
2410         * coff-mcore.c: Likewise.
2411         * coff-mips.c: Likewise.
2412         * coff-pmac.c: Likewise.
2413         * coff-ppc.c: Likewise.
2414         * coff-rs6000.c: Likewise.
2415         * elf32.c: Likewise.
2416         * elf32-fr30.c: Likewise.
2417         * elf32-i370.c: Likewise.
2418         * elf32-i860.c: Likewise.
2419         * elf32-m32r.c: Likewise.
2420         * elf32-m68k.c: Likewise.
2421         * elf32-mcore.c: Likewise.
2422         * elf32-ppc.c: Likewise.
2423         * elf32-sh.c: Likewise.
2424         * elf32-v850.c: Likewise.
2425         * elf64-alpha.c: Likewise.
2426         * elf64-sparc.c: Likewise.
2427         * elflink.c: Likewise.
2428         * elflink.h: Likewise.
2429         * elf-m10200.c: Likewise.
2430         * elf-m10300.c: Likewise.
2431         * elfxx-ia64.c: Likewise.
2433         * aoutx.h: Fix formatting.
2434         * bfd.c: Likewise.
2435         * bfd-in2.h: Likewise.
2436         * bfd-in.h: Likewise.
2437         * cpu-i386.c: Likewise.
2438         * cpu-m68hc11.c: Likewise.
2439         * dwarf2.c: Likewise.
2440         * elf64-x86-64.c: Likewise.
2441         * format.c: Likewise.
2442         * freebsd.h: Likewise.
2443         * hash.c: Likewise.
2444         * hp300hpux.c: Likewise.
2445         * hppabsd-core.c: Likewise.
2446         * hpux-core.c: Likewise.
2448 2001-01-22  Bo Thorsen  <bo@suse.de>
2450         * elf64-x86-64.c: Added PIC support for X86-64.
2451         (elf64_x86_64_link_hash_newfunc): Function added.
2452         (elf64_x86_64_link_hash_table_create): Likewise.
2453         (elf64_x86_64_check_relocs): Likewise.
2454         (elf64_x86_64_gc_mark_hook): Likewise.
2455         (elf64_x86_64_gc_sweep_hook): Likewise.
2456         (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2457         (elf64_x86_64_size_dynamic_sections): Likewise.
2458         (elf64_x86_64_discard_copies): Likewise.
2459         (elf64_x86_64_finish_dynamic_symbol): Likewise.
2460         (elf64_x86_64_finish_dynamic_sections): Likewise.
2461         (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2463 2001-01-21  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2465         * Makefile.am (install-data-local): Make use of $(DESTDIR).
2466         * Makefile.in: Regenerate.
2468 2001-01-21  Kazu Hirata  <kazu@hxi.com>
2470         * coff-a29k.c: Fix formatting.
2472 2001-01-19  H.J. Lu  <hjl@gnu.org>
2474         * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2475         relocation section names.
2476         (elf_i386_relocate_section): Report files with bad relocation
2477         section names and return false.
2479 2001-01-17  Bo Thorsen  <bo@suse.de>
2481         * targets.c: Alphabetize list of xvecs.
2483 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
2485         * config.bfd: Add linux target variant for elfxx-hppa.
2486         * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2487         bfd_elf64_hppa_linux_vec.
2488         * configure: Regenerate.
2489         * elf64-hppa.c: Include elf64-target.h again to support linux
2490         target variant.
2491         (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2492         * elf32-hppa.c: Include elf32-target.h again to support linux
2493         target variant.
2494         (elf32_hppa_post_process_headers): New function.
2495         (elf_backend_post_process_headers): Define.
2496         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2497         bfd_elf32_hppa_linux_vec.
2499         * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2500         and data_segment_base fields.
2501         (elf32_hppa_link_hash_table_create ): Init them.
2502         (elf32_hppa_check_relocs): Update comments.
2503         (hppa_record_segment_addr): New function.
2504         (elf32_hppa_relocate_section): Call it.
2505         (final_link_relocate): Handle R_PARISC_SEGREL32.
2506         (elf32_hppa_final_link): New function.
2507         (bfd_elf32_bfd_final_link): Define to call it.
2508         (hppa_unwind_entry_compare): New function.
2509         * cache.c (bfd_open_file): Create files in write+read mode.
2511         * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2512         SEGREL32 and numerous other relocs.  Change duplicate
2513         R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2515         * opncls.c (bfd_fdopenr): Add parens like the comment says around
2516         O_ACCMODE.
2518         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2519         .plt entries for DT_INIT and DT_FINI.
2520         (elf32_hppa_finish_dynamic_sections): Remove special handling of
2521         DT_INIT and DT_FINI.
2523         * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2524         offsets for stub .plt access if wide mode.  Check offset in range.
2526 2001-01-13  Nick Clifton  <nickc@redhat.com>
2528         * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2529         line.
2531         * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2532         line.
2534 2001-01-12  Alan Modra  <alan@linuxcare.com.au>
2536         * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2537         * configure: Regenerate.
2539 2001-01-11  Peter Targett  <peter.targett@arccores.com>
2541         * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2542         bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2543         * cpu-arc.c (arch_info_struct): Add entries for variants.
2544         (bfd_arc_arch) Set default to bfd_mach_arc_5.
2545         (arc_get_mach) Don't assume machine names prefixed arc- before
2546         testing.
2547         * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2548         selections.
2549         (arc_elf_final_write_processing) Likewise.
2550         (ELF_MACHINE_CODE) Use EM_ARC.
2552 2001-01-10  Nick Clifton  <nickc@redhat.com>
2554         * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2556 2001-01-07  Philip Blundell  <philb@gnu.org>
2558         * README: Replace `bug-gnu-utils@gnu.org' with
2559         `bug-binutils@gnu.org'.
2561 2001-01-04  Kazu Hirata  <kazu@hxi.com>
2563         * som.c: Fix formatting.
2565 2001-01-03  Kazu Hirata  <kazu@hxi.com>
2567         * ecoffswap.h: Fix formatting.
2568         * elf-bfd.h: Likewise.
2569         * elfarm-nabi.c: Likewise.
2570         * elfarm-oabi.c: Likewise.
2571         * elfcode.h: Likewise.
2572         * elfcore.h: Likewise.
2573         * elflink.c: Likewise.
2574         * elflink.h: Likewise.
2575         * elfxx-ia64.c: Likewise.
2576         * elfxx-target.h: Likewise.
2577         * libbfd.c: Likewise
2578         * linker.c: Likewise.
2579         * lynx-core.c: Likewise.
2581 2001-01-02  Kazu Hirata  <kazu@hxi.com>
2583         * pc532-mach.c: Fix formatting.
2584         * pe-arm.c: Likewise.
2585         * pe-i386.c: Likewise.
2586         * pe-mips.c: Likewise.
2587         * pe-ppc.c: Likewise.
2588         * pe-sh.c: Likewise.
2589         * pei-mips.c: Likewise.
2590         * pei-sh.c: Likewise.
2591         * peicode.h: Likewise.
2592         * ppcboot.c: Likewise.
2593         * ptrace-core.c: Likewise.
2595 2001-01-01  Kazu Hirata  <kazu@hxi.com>
2597         * reloc.c: Fix formatting.
2598         * riscix.c: Likewise.
2599         * rs6000-core.c: Likewise.
2600         * xcoff-target.h: Likewise.
2602 2000-12-29  Hans-Peter Nilsson  <hp@bitrange.com>
2604         * elfcode.h (elf_object_p): Also restore the bfd mach field on
2605         error, by calling bfd_default_set_arch_mach with incoming
2606         values.
2608 2000-12-26  Kazu Hirata  <kazu@hxi.com>
2610         * vaxnetbsd.c: Fix formatting.
2611         * versados.c: Likewise.
2612         * vms-gsd.c: Likewise.
2613         * vms-hdr.c: Likewise.
2614         * vms-misc.c: Likewise.
2616 2000-12-25  Alexandre Oliva  <aoliva@redhat.com>
2618         * archive.c (coff_write_armap): Don't write more than symbol_count
2619         `archive_member_file_ptr's.
2621 2000-12-25  Kazu Hirata  <kazu@hxi.com>
2623         * vms-tir.c: Fix formatting.
2625 2000-12-23  Kazu Hirata  <kazu@hxi.com>
2627         * vms.c: Fix formatting.
2628         * vms.h: Likewise.
2630 2000-12-21  Santeri Paavolainen <santtu@ssh.com>
2632         * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2634         * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2636         * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2637         arithmetic.
2639         * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2641         * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2643 2000-12-21  Richard Sandiford  <rsandifo@redhat.com>
2645         * libbfd.c (bfd_get_bits): Added
2646         (bfd_put_bits): Likewise
2647         * bfd-in.h: Declared the above.
2648         * bfd-in2.h: Regenerated.
2650 2000-12-20  Kazu Hirata  <kazu@hxi.com>
2652         * targets.c: Fix formatting.
2653         * tekhex.c: Likewise.
2654         * trad-core.c: Likewise.
2656 2000-12-19  Kazu Hirata  <kazu@hxi.com>
2658         * sco5-core.c: Fix formatting.
2659         * section.c: Likewise.
2660         * sparclinux.c: Likewise.
2661         * sparclynx.c: Likewise.
2662         * sparcnetbsd.c: Likewise.
2663         * srec.c: Likewise.
2664         * stabs.c: Likewise.
2665         * stab-syms.c: Likewise.
2666         * sunos.c: Likewise.
2667         * syms.c: Likewise.
2668         * sysdep.h: Likewise.
2670 2000-12-18  Nick Clifton  <nickc@redhat.com>
2672         * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2673         defined.
2674         * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2675         * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2677 2000-12-18  Nick Clifton  <nickc@redhat.com>
2679         * vms-misc.c (_bfd_vms_get_record): Add default case to
2680         file_format switch.
2682 2000-12-15  Miloslav Trmac <mitr@volny.cz>
2684         * elfcore.h (elf_core_file_p): Move to the start of the program
2685         headers before attempting to read them.
2687 2000-12-14  Kazu Hirata  <kazu@hxi.com>
2689         * peigen.c: Fix formatting.
2690         * som.c: Likewise.
2691         * som.h: Likewise.
2693 2000-12-13  Kazu Hirata  <kazu@hxi.com>
2695         * peigen.c: Fix formatting.
2697 2000-12-12  Jim Wilson  <wilson@redhat.com>
2699         *  elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2701 2000-12-08  Mark Salter  <msalter@redhat.com>
2703         * binary.c (binary_set_section_contents): Ignore sections
2704         with zero size.
2706 2000-12-12  Kazu Hirata  <kazu@hxi.com>
2708         * m68klinux.c: Fix formatting.
2709         * m68knetbsd.c: Likewise.
2710         * mipsbsd.c: Likewise.
2711         * netbsd-core.c: Likewise.
2712         * netbsd.h: Likewise.
2713         * newsos3.c: Likewise.
2714         * nlm32-alpha.c: Likewise.
2715         * nlm32-i386.c: Likewise.
2716         * nlm32-ppc.c: Likewise.
2717         * nlm32-sparc.c: Likewise.
2718         * nlmcode.h: Likewise.
2719         * nlmswap.h: Likewise.
2720         * nlm-target.h: Likewise.
2721         * ns32knetbsd.c: Likewise.
2723 2000-12-10  Fred Fish  <fnf@be.com>
2725         * elflink.h (elf_link_output_extsym): Don't complain about undefined
2726         symbols in shared objects if allow_shlib_undefined is true.
2728 2000-12-12  Nick Clifton  <nickc@redhat.com>
2730         * cpu-sh.c: Fix formattng.
2731         * elf.c: Fix formattng.
2732         * elf32-mips.c: Fix formattng.
2733         * elf32-sh.c: Fix formattng.
2734         * elf64-alpha.c: Fix formattng.
2736 2000-12-09  Nick Clifton  <nickc@redhat.com>
2738         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2739         dwarf2_find_line_info as last parameter to invocation of
2740         _bfd_dwarf2_find_nearest_line.
2741         * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2742         dwarf2_find_line_info as last parameter to invocation of
2743         _bfd_dwarf2_find_nearest_line.
2745 2000-12-08  Mark Elbrecht  <snowball3@bigfoot.com>
2747         * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2748         (BFD_LIBS): ...to here.
2749         (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2750         (BFD_LIBS_CFILES): ...to here.
2751         * Makefile.in: Regenerate.
2752         * configure.in: Remove dwarf.lo from the elf shell variable.
2753         * configure: Regenerate.
2754         * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2755         * libcoff.h: Regenerate.
2756         * coffgen.c (coff_find_nearest_line): Call
2757         _bfd_dwarf2_find_nearest_line.
2758         * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2759         accordingly.
2760         (read_abbrevs): Likewise
2761         (decode_line_info): Likewise.
2762         (parse_comp_unit): Likewise.
2763         (comp_unit_find_nearest_line): Likewise.
2764         * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2765         * libbfd.h: Regenerate.
2766         * elf.c (_bfd_elf_find_nearest_line): Update call.
2767         * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2768         * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2769         * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2770         (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2771         (styp_to_sec_flags): Handle DWARF2 sections.
2772         * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2773         to _bfd_find_nearest_line.
2774         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2775         call to _bfd_find_nearest_line.
2777 2000-12-08  Kazu Hirata  <kazu@hxi.com>
2779         * coffgen.c: Fix formatting.
2780         * elf-m10300.c: Likewise.
2781         * elf32-i386.c: Likewise.
2782         * elf32-i960.c: Likewise.
2783         * elf32-m68k.c: Likewise.
2784         * elf32-mcore.c: Likewise.
2785         * elf32-ppc.c: Likewise.
2786         * elf32-sh.c: Likewise.
2787         * elf32-sparc.c: Likewise.
2788         * elf32-v850.c: Likewise.
2789         * elf64-alpha.c: Likewise.
2790         * elf64-hppa.c: Likewise.
2791         * elf64-mips.c: Likewise.
2792         * elf64-sparc.c: Likewise.
2794 2000-12-07  Kazu Hirata  <kazu@hxi.com>
2796         * elf32-ppc.c: Fix formatting.
2797         * elf64-x86-64.c: Likewise.
2799 2000-12-06  Ulf Carlsson  <ulfc@engr.sgi.com>
2801         From  Ralf Baechle  <ralf@gnu.org>
2803         * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2804         BFDs containing no sections or empty .text, .data or .bss sections
2805         to be merged, regardless of their flags.
2807 2000-12-06  Kazu Hirata  <kazu@hxi.com>
2809         * elf32-m32r.c: Fix formatting.
2810         * elf32-m68hc11.c: Likewise.
2811         * elf32-m68hc12.c: Likewise.
2812         * elf32-m68k.c: Likewise.
2813         * elf32-mcore.c: Likewise.
2814         * elf32-pj.c: Likewise.
2815         * elf32-ppc.c: Likewise.
2817 2000-12-05  Kazu Hirata  <kazu@hxi.com>
2819         * elf32-fr30.c: Fix formatting.
2820         * elf32-hppa.c: Likewise.
2821         * elf32-i370.c: Likewise.
2822         * elf32-i386.c: Likewise.
2823         * elf32-i860.c: Likewise.
2824         * elf32-i960.c: Likewise.
2826 2000-12-03  Kazu Hirata  <kazu@hxi.com>
2828         * elf32-arm.h: Fix formatting.
2829         * elf32-avr.c: Likewise.
2830         * elf32-cris.c: Likewise.
2831         * elf32-d10v.c: Likewise.
2832         * elf32-d30v.c: Likewise.
2833         * elf-hppa.h: Likewise.
2834         * elf-m10200.c: Likewise.
2835         * elf-m10300.c: Likewise.
2837 2000-12-01  Chris Demetriou  <cgd@sibyte.com>
2839         * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2840         bfd_mach_mips32_4k.  Update FIXME comment.
2841         * archures.c (bfd_mach_mips32): New constant.
2842         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2843         the latter, renumber it.
2844         * bfd-in2.h (bfd_mach_mips32): New constant.
2845         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2846         the latter, renumber it.
2847         * cpu-mips.c (I_mips32): New constant.
2848         (I_mips4K, I_mips32_4k): Rename the former to the latter.
2849         (arch_info_struct): Add bfd_mach_mips32 entry, replace
2850         bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2851         * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2852         (elf_mips_mach): Likewise.  Also, replace E_MIPS_MACH_MIPS32
2853         with E_MIPS_MACH_MIPS32_4K.
2854         (_bfd_mips_elf_final_write_processing): Replace
2855         bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2856         bfd_mach_mips32 case.
2857         (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2858         comparison with support for MIPS32.
2859         (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2860         MIPS32.
2862         * aoutx.h (NAME(aout,machine_type)): Add cases for
2863         bfd_mach_mips5 and bfd_mach_mips64.
2864         * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2865         * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2866         * cpu_mips.c (I_mips5, I_mips64): New definitions.
2867         (arch_info_struct): Add entries for bfd_mach_mips5 and
2868         bfd_mach_mips64.
2869         * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2870         _bfd_mips_elf_print_private_bfd_data): Add cases for
2871         E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2872         (_bfd_mips_elf_final_write_processing): Add cases for
2873         bfd_mach_mips5 and bfd_mach_mips64.
2875         * aoutx.h (NAME(aout,machine_type)): Add a
2876         bfd_mach_mips_sb1 case.
2877         * archures.c (bfd_mach_mips_sb1): New constant.
2878         * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2879         * cpu-mips.c (I_sb1): New constant.
2880         (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2881         * elf32-mips.c (elf_mips_mach): Add case for
2882         E_MIPS_MACH_SB1.
2883         (_bfd_mips_elf_final_write_processing): Add case for
2884         bfd_mach_mips_sb1.
2886 2000-12-01  Joel Sherrill <joel@OARcorp.com>
2888         * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2889         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2890         (sparc*-*-rtems*): Switched from a.out to ELF.
2892 2000-11-30  Jan Hubicka  <jh@suse.cz>
2894         * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2895         BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2896         (elf64-x86-64.lo): Add dependencies.
2897         * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2898         bfd_mach_x86_64_intel_syntax.
2899         * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2900         * config.bfd (x86_64): Add.
2901         * configure.in: Add support for bfd_elf64_x86_64_vec.
2902         * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2903         (bfd_i386_arch, i8086_ar): Link in.
2904         * elf64-x86-64.c: New file.
2905         * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2906         * targets.c (bfd_elf64_x86_64_vec): Add.
2907         (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2909 2000-11-30  Kazu Hirata  <kazu@hxi.com>
2911         * xcofflink.c: Fix formatting.
2913 2000-11-28  Kazu Hirata  <kazu@hxi.com>
2915         * aoutx.h: Fix formatting.
2916         * bfd-in.h: Likewise.
2917         * bfd-in2.h: Likewise.
2918         * cache.c: Likewise.
2919         * cisco-core.c: Likewise.
2920         * coff64-rs6000.c: Likewise.
2921         * coffcode.h: Likewise.
2922         * coffswap.h: Likewise.
2923         * corefile.c: Likewise.
2924         * elf32-mips.c: Likewise.
2926 2000-11-27  Kazu Hirata  <kazu@hxi.com>
2928         * aout-adobe.c: Fix formatting.
2929         * coff64-rs6000.c: Likewise.
2930         * coffgen.c: Likewise.
2931         * cofflink.c: Likewise.
2933 2000-11-27  Philip Blundell  <pb@futuretv.com>
2935         * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2936         (obj_coff_strings_written): New accessor macro for above.
2937         * libcoff.h: Regenerate.
2938         * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2939         strings.
2940         * coffcode.h (coff_write_object_contents): No need to write out
2941         the string table if it's already been done.
2943 2000-11-22  Philip Blundell  <pb@futuretv.com>
2945         * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2946         weak undefined symbols.
2948 2000-11-24  Nick Clifton  <nickc@redhat.com>
2950         * archures.c (bfd_mach_arm_5TE): Define.
2951         (bfd_mach_arm+XScale): Define.
2952         * bfd-in2.h: Regenerate.
2954         * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2955         BFD_RELOC_ARM_PCREL_BLX.
2957         * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2958         XScale machine numbers.
2960         * config.bfd (xscale-elf): Add target.
2961         (xscale-coff): Add target.
2963         * cpu-arm.c: Add xscale machine name.
2964         Add v5t, v5te and XScale machine numbers.
2966 2000-11-23  Kazu Hirata  <kazu@hxi.com>
2968         * aix386-core.c: Fix formatting.
2970 2000-11-22  Jim Wilson  <wilson@redhat.com>
2972         * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2973         (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2974         * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2975         (ins_imms_scaled): Initialize sign_bit at function entry.
2976         (elf64_ia64_operands): Add missing initializers.
2977         * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2978         elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2979         elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2980         elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2981         elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2982         parameters.
2983         (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2984         and free_extsyms at function entry.
2985         (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2986         (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2987         (get_got): Delete unused local srel.
2988         (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2989         (elfNN_ia64_relocate_section): Delete unused local dynindx.
2991 2000-11-21  Kazu Hirata  <kazu@hxi.com>
2993         * coff-a29k.c: Fix formatting.
2994         * coff-h8500.c: Likewise.
2995         * coff-i960.c: Likewise.
2996         * coff-ppc.c: Likewise.
2997         * coff-rs6000.c: Likewise.
2998         * coff-stgo32.c: Likewise.
2999         * coff-tic54x.c: Likewise.
3000         * coff-w65.c: Likewise.
3001         * cpu-h8500.c: Likewise.
3002         * cpu-hppa.c: Likewise.
3003         * cpu-ns32k.c: Likewise.
3004         * ecoff.c: Likewise.
3005         * ecofflink.c: Likewise.
3007 2000-11-21  Nick Clifton  <nickc@redhat.com>
3009         * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
3010         remove possibility of infinite loop.
3012 2000-11-20  Kazu Hirata  <kazu@hxi.com>
3014         * aix386-core.c: Fix formatting.
3015         * aout-adobe.c: Likewise.
3016         * aout-arm.c: Likewise.
3017         * aout-encap.c: Likewise.
3018         * aout-ns32k.c: Likewise.
3019         * aout-target.h: Likewise.
3020         * aout-tic30.c: Likewise.
3021         * aoutf1.h: Likewise.
3022         * aoutx.h: Likewise.
3023         * archive.c: Likewise.
3024         * bfd-in.h: Likewise.
3025         * bfd-in2.h: Likewise.
3026         * bfd.c: Likewise.
3027         * bout.c: Likewise.
3029 2000-11-17  H.J. Lu  <hjl@gnu.org>
3031         * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
3032         pltoff entries for DT_INIT and DT_FINI.
3033         (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
3034         (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
3035         entries.
3037 2000-11-16  Richard Henderson  <rth@redhat.com>
3039         * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
3040         (allocate_dynrel_entries): Likewise.
3041         (elfNN_ia64_relocate_section): Likewise.  Set REL addends correctly.
3042         (set_pltoff_entry): Likewise.
3043         (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
3044         (elfNN_ia64_reloc_type_lookup): Likewise.
3045         (elfNN_ia64_install_value): Likewise.
3046         (elfNN_ia64_relocate_section): Likewise.
3047         * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
3048         (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
3050 2000-11-16  Kazu Hirata  <kazu@hxi.com>
3052         * cpu-a29k.c: Fix formatting.
3053         * cpu-alpha.c: Likewise.
3054         * cpu-arm.c: Likewise.
3055         * cpu-avr.c: Likewise.
3056         * cpu-d10v.c: Likewise.
3057         * cpu-h8500.c: Likewise.
3058         * cpu-hppa.c: Likewise.
3059         * cpu-i370.c: Likewise.
3060         * cpu-i386.c: Likewise.
3061         * cpu-i960.c: Likewise.
3062         * cpu-ia64-opc.c: Likewise.
3063         * cpu-ia64.c: Likewise.
3064         * cpu-m32r.c: Likewise.
3065         * cpu-m68hc11.c: Likewise.
3066         * cpu-m68hc12.c: Likewise.
3067         * cpu-m68k.c: Likewise.
3068         * cpu-m88k.c: Likewise.
3069         * cpu-mips.c: Likewise.
3070         * cpu-ns32k.c: Likewise.
3071         * cpu-pj.c: Likewise.
3072         * cpu-powerpc.c: Likewise.
3073         * cpu-sh.c: Likewise.
3074         * cpu-sparc.c: Likewise.
3075         * cpu-tic54x.c: Likewise.
3076         * cpu-v850.c: Likewise.
3077         * cpu-vax.c: Likewise.
3078         * cpu-w65.c: Likewise.
3079         * cpu-we32k.c: Likewise.
3080         * cpu-z8k.c: Likewise.
3081         * dwarf1.c: Likewise.
3082         * dwarf2.c: Likewise.
3084 2000-11-15  Kazu Hirata  <kazu@hxi.com>
3086         * coff-arm.c: Fix formatting.
3087         * coff-ppc.c: Likewise.
3088         * coff-rs6000.c: Likewise.
3089         * coff-sh.c: Likewise.
3090         * coff-sparc.c: Likewise.
3091         * coff-tic30.c: Likewise.
3092         * coff-tic54x.c: Likewise.
3093         * coff-tic80.c: Likewise.
3094         * coff-w65.c: Likewise.
3095         * coff-we32k.c: Likewise.
3096         * coff-z8k.c: Likewise.
3098 2000-11-15  Richard Henderson  <rth@redhat.com>
3100         * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
3101         section with the same ALLOC|LOAD flags as the source section.
3103 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
3105         * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
3106         by STO_ALPHA constants.
3108 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3110         * coff-pmac.c: Fix formatting.
3111         * coff-ppc.c: Likewise.
3113 2000-11-13  H.J. Lu  <hjl@gnu.org>
3115         * elflink.h (elf_link_add_object_symbols): Also add indirect
3116         symbols for common symbols with the default version.
3118 2000-11-09  Philip Blundell  <pb@futuretv.com>
3120         * section.c (STD_SECTION): Set gc_mark flag.
3122 2000-11-11  Kazu Hirata  <kazu@hxi.com>
3124         * coff-i960.c: Likewise.
3125         * coff-m68k.c: Likewise.
3126         * coff-m88k.c: Likewise.
3127         * coff-mcore.c: Likewise.
3128         * coff-mips.c: Likewise.
3130 2000-11-11  Bernd Schmidt  <bernds@cygnus.co.uk>
3132         * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
3134 2000-11-10  Kazu Hirata  <kazu@hxi.com>
3136         * coff-h8300.c: Fix formatting.
3137         * coff-h8500.c: Likewise.
3138         * coff-i386.c: Likewise.
3139         * coff-i860.c: Likewise.
3140         * coff-i960.c: Likewise.
3141         * coff-ia64.c: Likewise.
3143 2000-11-09  Kazu Hirata  <kazu@hxi.com>
3145         * archive.c: Fix formatting.
3146         * archures.c: Likewise.
3148 2000-11-07  Richard Henderson  <rth@redhat.com>
3150         * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
3151         Set it before bfd_elf64_bfd_final_link call.  Use it after the call.
3152         * section.c (bfd_set_section_contents): Call memcpy if
3153         section->contents set and location not equal to contents plus offset.
3155 2000-11-08  Kazu Hirata  <kazu@hxi.com>
3157         * bfd-in.h: Fix formatting.
3158         * bfd-in2.h: Likewise.
3159         * bfd.c: Likewise.
3160         * binary.c: Likewise.
3161         * bout.c: Likewise.
3162         * coff-a29k.c: Likewise.
3163         * coff-alpha.c: Likewise.
3164         * coff-apollo.c: Likewise.
3165         * coff-aux.c: Likewise.
3167 2000-11-07  Kazu Hirata  <kazu@hxi.com>
3169         * aix386-core.c: Fix formatting.
3170         * aoutf1.h: Likewise.
3171         * aoutx.h: Likewise.
3172         * archures.c: Likewise.
3173         * armnetbsd.c: Likewise.
3175 2000-11-07  Alan Modra  <alan@linuxcare.com.au>
3177         * coff-h8300.c (special): Adjust reloc address.
3179 2000-11-06  Steve Ellcey <sje@cup.hp.com>
3181         * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
3182         to differentiate elf32 and elf64 on ia64.
3183         * bfd-in2.h: Regenerate.
3184         * config.bfd: Add target for "ia64*-*-hpux*".
3185         * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
3186         * configure: Regenerate.
3187         * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
3188         * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
3190         * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
3191         from elfxx-ia64.c.  Add depenency rules for making elf32-ia64.lo.
3192         * Makefile.in: Regnerate.
3193         * elf64-ia64.c: Deleted.
3194         * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
3196 2000-11-06  Kazu Hirata  <kazu@hxi.com>
3198         * aout-adobe.c: Fix formatting.
3199         * aout-arm.c: Likewise.
3200         * aout-cris.c: Likewise.
3201         * aout-encap.c: Likewise.
3202         * aout-ns32k.c: Likewise.
3203         * aout-target.h: Likewise.
3204         * aout-tic30.c: Likewise.
3206 2000-11-05  Philip Blundell  <philb@gnu.org>
3208         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
3209         BFDs containing no sections to be merged, regardless of their flags.
3211 2000-11-04  Philip Blundell  <philb@gnu.org>
3213         * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
3214         if a relocation for an undefined symbol also results in an
3215         overflow.
3217 2000-11-06  Christopher Faylor <cgf@cygnus.com>
3219         * config.bfd: Add support for Sun Chorus.
3221 2000-11-05  David O'Brien  <obrien@FreeBSD.org>
3223         * configure.in: Recognize alpha-*-freebsd*.
3224         * configure: Regenerate.
3226 2000-11-02  Luciano Gemme <ishitawa@yahoo.com>
3228         * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
3229         (Chunk): New global variable set by a parameter in objcopy.c.
3230         (S3Forced): New global variable set by a parameter in
3231         objcopy.c.
3232         (srec_set_section_contents): If S3Forced is true, always generate
3233         S3 records.
3234         (srec_write_section): Use 'Chunk' to limit maximum length of S
3235         records.
3237 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3239         * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3240         * Makefile.in: Regenerate.
3241         * bfd-in2.h: Regenerate.
3242         * po/bfd.pot: Regenerate.
3244 2000-10-31  Philip Blundell  <philb@gnu.org>
3246         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3247         EF_SOFT_FLOAT if it is defined.
3249 2000-10-27  Philip Blundell  <philb@gnu.org>
3251         * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3252         attempts to mix PIC code with non-PIC, just mark the output as
3253         being position dependent.
3254         (elf32_arm_merge_private_bfd_data): Likewise.  Print an error
3255         message for EF_SOFT_FLOAT mismatches.  Display diagnostics for
3256         all mismatches, not just the first one.
3258 2000-10-25  Chris Demetriou  <cgd@sibyte.com>
3260         * ieee.c (ieee_archive_p): Plug one of many possible
3261         memory leaks in error handling.
3263 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3265         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3266         elf32_sparc_object_p, elf32_sparc_final_write_processing):
3267         Support v8plusb.
3268         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3269         sparc64_elf_object_p): Support v9b.
3270         * archures.c: Declare v8plusb and v9b machines.
3271         * bfd-in2.h: Ditto.
3272         * cpu-sparc.c: Ditto.
3274 2000-10-16  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
3276         * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3277         of a GOT reloc.
3279         * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3280         (SYMBOL_CALLS_LOCAL): New macro.
3281         (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3282         (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3283         (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3284         (ppc_elf_relocate_section): Use flag variable to determine
3285         whether the relocation refers to a local symbol.
3286         Test whether a PLTREL24 reloc will produce a reloc by looking
3287         to see whether a PLT entry was made.
3289 2000-10-14  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
3291         * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3292         entries that could serve as a definition for a weak symbol.
3294 2000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>
3296         From  Ralf Baechle  <ralf@gnu.org>
3298         * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3299         local_p.  Add symbol value only for non-R_MIPS_REL32 relocations
3300         against local symbols.
3301         (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
3303 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3305         * section.c (struct sec): Add kept_section.
3306         (struct bfd_comdat_info): Remove sec, we can use above.
3307         (STD_SECTION): Add initializer.
3308         (bfd_make_section_anyway): Init here too.
3310         * bfd-in2.h: Regenerate.
3312         * elflink.h (elf_link_add_object_symbols): Remove unnecessary
3313         zeroing of `flags'.
3314         (elf_link_input_bfd): Set all asection->symbol->value's here, and
3315         fudge values for discarded link-once section symbols.
3317         * elf64-hppa.c: Include alloca-conf.h
3319 2000-10-11  Alan Modra  <alan@linuxcare.com.au>
3321         * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3323         * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3325 2000-10-10  Alan Modra  <alan@linuxcare.com.au>
3327         * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3329 2000-10-10  Tom Rix <trix@redhat.com>
3331         * section.c (bfd_make_section_anyway): Release newsect ptr when
3332         newsect->symbol fails to alloc.  Use bfd_release instead of free.
3334 2000-10-09  Richard Henderson  <rth@cygnus.com
3336         * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3337         (elf64_ia64_unwind_entry_compare): New.
3338         (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3340 2000-10-07  Alan Modra  <alan@linuxcare.com.au>
3342         * elflink.h (size_dynamic_sections): Don't create various tags if
3343         .dynstr is excluded from the link.  Don't set first dynsym entry
3344         if dynsymcount is zero.
3345         (elf_bfd_final_link): Don't try to swap out dynamic syms if
3346         .dynsym excluded from the link.  Don't try to write any dynamic
3347         sections excluded from the link.
3349         * elf.c (swap_out_syms): Handle global section symbols.
3351 2000-10-05  DJ Delorie  <dj@redhat.com>
3353         * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3354         * coffcode.h (coff_set_alignment_hook): read extended reloc count
3355         (coff_write_relocs): write extended reloc count
3356         (coff_write_object_contents): account for extended relocs
3358 2000-10-05  Jim Wilson  <wilson@cygnus.com>
3360         * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3361         field.
3362         * elf.c (_bfd_elf_make_section_from_shdr): Call the
3363         elf_backend_section_flags function.
3364         * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3365         code.
3366         (elf64_ia64_section_flags): New function containing flag conversion
3367         code.
3368         (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3369         * elfxx-target.h (elf_backend_section_flags): Define.
3370         (elfNN_bed): Initialize elf_backend_section_flags field.
3372 2000-10-02  Alan Modra  <alan@linuxcare.com.au>
3374         * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3375         _bfd_elf32_gc_record_vtable.  Correct a comment.
3377 2000-10-01  Ulf Carlsson  <ulfc@engr.sgi.com>
3379         From  Ralf Baechle  <ralf@gnu.org>
3381         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3382         produces binaries with got[1] = 0x80000001 to differenciate them
3383         for the dynamic linker from the broken binaries produced by old
3384         versions.
3386 2000-09-30  Petr Sorfa <petrs@sco.com>
3388         * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3389         (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3390         * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3391         * configure: Regenerate.
3393 2000-09-27  Hans-Peter Nilsson  <hp@axis.com>
3395         Define two bfd_targets for absence and presence of leading
3396         underscore on symbols.  Make sure to only link same kind.
3397         * elf32-cris.c (cris_elf_object_p,
3398         cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3399         cris_elf_merge_private_bfd_data): New.
3400         (elf_backend_object_p, elf_backend_final_write_processing,
3401         bfd_elf32_bfd_print_private_bfd_data,
3402         bfd_elf32_bfd_merge_private_bfd_data): Define.
3403         <Target vector definition>: Include elf32-target.h twice with
3404         different macro settings:
3405         (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3406         bfd_elf32_us_cris_vec.
3407         (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3408         (elf_symbol_leading_char): First as 0, then '_'.
3409         (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3410         * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3411         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3412         * configure: Regenerate.
3413         * targets.c: Declare bfd_elf32_us_cris_vec.
3414         * po/bfd.pot: Regenerate.
3416 2000-09-29  Momchil Velikov  <velco@fadata.bg>
3418         * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3419         R_ARM_THM_PC22 relocations.
3421 2000-09-29  NIIBE Yutaka <gniibe@chroot.org>
3423         * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3425 2000-09-29  Momchil Velikov <velco@fadata.bg>
3427         * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3428         is has the SEC_HAS_CONTENTS flag set.
3430 2000-09-28  ï¿½Ã–rjan Friberg  <orjanf@axis.com>
3431             Hans-Peter Nilsson  <hp@axis.com>
3433         * aout-cris.c (N_TXTADDR): Define.
3435 2000-09-28  John David Anglin <dave@hiauly1.hia.nrc.ca>
3437         * som.c: Include alloca-conf.h.
3438         * Makefile.am: "make dep-am"
3439         * Makefile.in: Regenerate.
3441 2000-09-27  Alan Modra  <alan@linuxcare.com.au>
3443         * elf32-hppa.c (plt_stub): New.
3444         (PLT_STUB_ENTRY): Define.
3445         (elf32_hppa_link_hash_table): Change multi_subspace to packed
3446         boolean.  Add need_plt_stub, has_12bit_branch and has_17bit_branch.
3447         (elf32_hppa_link_hash_table_create): Init to suit.
3448         (elf32_hppa_check_relocs): Set has_12bit_branch and
3449         has_17bit_branch as appropriate.
3450         (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
3451         non-local functions.
3452         (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
3453         Add space for plt_stub as needed.
3454         (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
3455         functions at plt_stub.
3456         (elf32_hppa_finish_dynamic_sections): Write plt_stub.
3457         (elf32_hppa_create_dynamic_sections): Leave .plt executable.
3459         * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
3460         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.  Use it instead
3461         of fixed size, and if negative, disable handling of input sections
3462         before stub section.  Set up default stub group size depending
3463         on detected branch relocs.
3464         (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
3465         ensure different offsets from sym_value aren't rounded to
3466         different 2k blocks.  Use lrsel and rrsel for other stubs too for
3467         consistency rather than necessity.
3468         (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
3469         (final_link_relocate): Likewise.
3470         (elf32_hppa_relocate_section): Likewise.
3472         * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
3473         (_bfd_elf_hppa_gen_reloc_type): Generate them.
3474         (elf_hppa_final_link_relocate): Handle them.
3475         (elf_hppa_relocate_insn): Likewise.
3476         (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3478 2000-09-26  Hans-Peter Nilsson  <hp@axis.com>
3480         * elfcode.h (elf_object_p): Preserve and clear abfd section
3481         information.  Restore at error.
3483 2000-09-26  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3485         * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3486         is empty, make sure that its rva also 0. NT loader dislikes
3487         having otherwise.
3489 2000-09-26  Steve Ellcey <sje@cup.hp.com>
3491         * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3492         global by default.
3494 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3496         * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3497         currently unused RELATIVE_DYNAMIC_RELOCS code.
3498         (hppa_discard_copies): Likewise.
3499         (elf32_hppa_size_stubs): Size `input_list' array correctly.  Correct
3500         comments.  Don't check non-code output sections for stub grouping.
3502 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3504         * section.c (bfd_get_unique_section_name): Return NULL if
3505         bfd_malloc fails.
3507 2000-09-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3509         * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3510         instruction sequence to actually work.
3511         (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3512         accordingly.
3514 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
3516         * elf32-sh.c (sh_elf_relocate_section): Use
3517         _bfd_final_link_relocate to apply the relocation against a section
3518         symbol, when doing relocatable links.
3520 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3522         * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3523         to id_sec.
3524         (stub_hash_newfunc): Here too.
3525         (hppa_add_stub): And here.
3526         (elf32_hppa_link_hash_table): Remove stub_section_created,
3527         reloc_section_created, first_init_sec and first_fini_sec.  Add
3528         stub_group.
3529         (elf32_hppa_link_hash_table_create): Init to suit.
3530         (hppa_get_stub_entry): Add support for grouping stub sections.
3531         (hppa_add_stub): Likewise.  Remove sec_count param and init/fini
3532         section code.  Index stub vars by section->id.
3533         (elf32_hppa_size_stubs): Likewise.  Remove duplicated function
3534         exit paths.  Zap allocation of above removed vars.  Refine
3535         link-once test.
3537         * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3538         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3539         (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3540         rather than pointer to bfd_link_info.
3541         (hppa_add_stub): Likewise.
3542         (final_link_relocate): Likewise.
3544 2000-09-17  David Huggins-Daines  <dhd@linuxcare.com>
3546         (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3547         link-once sections.
3549 2000-09-16  Alexandre Oliva  <aoliva@redhat.com>
3551         * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3552         ld/emulparams/shelf.sh.
3554 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3556         * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3557         * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3558         * bfd-in2.h: Regenerate.
3560 2000-09-15  Kenneth Block  <Kenneth.Block@compaq.com>
3562         * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3563         LITUSE relocations incorrectly if -relax is specified on the ld
3564         command line and the displacement field of the load or store
3565         instruction is non-zero. (Patch by paul.winalski@compaq.com)
3567 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3569         * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3570         first_fini_sec here.
3571         (elf32_hppa_size_stubs): Instead correctly find the first .init
3572         and .fini section here.
3574 2000-09-15  David Huggins-Daines  <dhd@linuxcare.com>
3576         * elf32-hppa.c (clobber_millicode_symbols): New function.
3577         (elf32_hppa_size_dynamic_sections): Call it.
3579 2000-09-14  Alan Modra  <alan@linuxcare.com.au>
3581         * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3582         packed.  Add plabel, plt_abs packed booleans.
3583         (hppa_link_hash_newfunc): Init new fields.
3584         (PLABEL_PLT_ENTRY_SIZE): Define.
3585         (hppa_stub_name): Use size_t len vars.
3586         (hppa_add_stub): Likewise.
3587         (elf32_hppa_build_stubs): Likewise.
3588         (hppa_build_one_stub): Kill some compiler warnings.
3589         (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3590         if dynamic linking.  Munge the local plt offsets into
3591         local_got_refcounts.  Set h->plabel for all global PLABELs.  Use
3592         size_t len vars.  Add assert for plabel addend.
3593         (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3594         (elf32_hppa_hide_symbol): New function.
3595         (elf_backend_hide_symbol): Define.
3596         (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3597         with h->plabel set.  Don't make plt entries to have dynamic syms
3598         when they have been forced local.  If plt entry is used by a
3599         plabel, make it PLABEL_PLT_ENTRY_SIZE.
3600         (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3601         Set up .plt offsets for local syms.
3602         (elf32_hppa_relocate_section): Initialise plt entries for local
3603         syms.  Leave weak undefined plabels zero.  Make global plabel
3604         relocs against function symbol, and leave the addend zero.
3605         Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3606         (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3607         non-dynamic syms.  Init extra plt for plabels.  Use *ABS* DIR32
3608         relocs instead of SEGREL32 for dynamic got relocs.
3609         (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3610         (elf_backend_got_header_size): Adjust.
3611         (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3613         * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3614         (hppa_type_of_stub): Use it instead of #if 0
3615         (hppa_discard_copies): Use it here too.
3616         (elf32_hppa_size_dynamic_sections): And here.
3618         * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3619         (elf32_hppa_link_hash_table_create): And here.
3620         (hppa_build_one_stub): And here.  Instead keep track of stub
3621         offset using _raw_size.
3622         (elf32_hppa_size_stubs): Likewise.
3623         (elf32_hppa_build_stubs): Likewise.
3624         (hppa_size_one_stub): Likewise.  Resize reloc section too.
3626         * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3627         first_fini_sec handling.  Don't search for reloc section or set
3628         hplink->reloc_section_created here.
3629         (elf32_hppa_size_stubs): Instead search for reloc sections, and
3630         set reloc_section_created here.
3631         (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3632         (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3633         and DT_FINI.
3634         (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3636         * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3637         with `hplink->root.'.
3638         (elf32_hppa_check_relocs): Likewise.
3639         (elf32_hppa_gc_sweep_hook): Likewise.
3640         (elf32_hppa_adjust_dynamic_symbol): Likewise.
3641         (hppa_handle_PIC_calls): Likewise.
3642         (elf32_hppa_size_dynamic_sections): Likewise.
3643         (elf32_hppa_set_gp): Likewise.
3644         (elf32_hppa_relocate_section): Likewise.
3645         (elf32_hppa_finish_dynamic_symbol): Likewise.
3646         (elf32_hppa_finish_dynamic_sections): Likewise.
3648         From  David Huggins-Daines  <dhd@linuxcare.com>
3649         * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3650         defined weak symbols in shared links.
3651         (final_link_relocate): Calls to defined weak symbols in shared
3652         objects must go via import stubs, as the target might not be known
3653         at link time.
3655 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
3657         * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3658         R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3659         R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167.  Replaced
3660         the original entries with EMPTY_HOWTOs, and added new ones to fill
3661         in the gap.
3662         (sh_elf_info_to_howto): Make sure the new gap isn't used.
3663         (sh_elf_relocate_section): Likewise.
3665 2000-09-13  Anders Norlander  <anorland@acc.umu.se>
3667         * cpu-mips.c (arch_info_struct): Add mips:4K
3668         * bfd-in2.h (bfd_mach_mips4K): New define.
3669         * archures.c: Add bfd_mach_mips4K to comment.
3670         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3671         E_MIPS_ARCH_2 for bfd_mach_mips4K.
3673 2000-09-13  Marco Franzen <marcof@thyron.com>
3675         * som.c (som_write_symbol_strings): Do not used fixed buffers,
3676         use size_t as a counter.
3677         (som_write_space_strings): Similarly.
3679 2000-09-12  Jason Eckhardt  <jle@cygnus.com>
3681         * elf32-i860.c (elf32_i860_relocate_pc26): New function
3682         and prototype.
3683         (elf32_i860_relocate_section): Invoke new function from here.
3685 2000-09-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3687         * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3688         static.
3690 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3692         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3693         target section name instead of dumping core when the target symbol is
3694         undefined.
3696 2000-09-09  Kazu Hirata  <kazu@hxi.com>
3698         * riscix.c: Remove DEFUN.
3700 2000-09-08  Nick Clifton  <nickc@redhat.com>
3702         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3703         initialise flags in output bfd if the input bfd is the default
3704         architecture with the default flags.
3706 2000-09-08  Kazu Hirata  <kazu@hxi.com>
3708         * archive.c: Fix formatting.
3709         * coff-arm.c: Likewise.
3710         * doc/chew.c: Likewise.
3712 2000-09-08  Alan Modra  <alan@linuxcare.com.au>
3714         * section.c (bfd_get_unique_section_name): Put a dot before the
3715         numeric suffix.
3717 2000-09-07  Kazu Hirata  <kazu@hxi.com>
3719         * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
3720         * elf.c: Fix formatting.
3722 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
3724         * config.bfd (sh-*-linux*): Added.
3725         * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
3726         * targets.c: Declare them.
3727         * elf32-sh-lin.c: New file.
3728         * Makefile.am: Compile it.
3729         * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
3730         * configure, Makefile.in: Rebuilt.
3732 2000-09-06  Geoffrey Keating  <geoffk@cygnus.com>
3734         * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
3735         pseduo-section when determining where the TOC ends.
3737         * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
3738         output x_tvndx as it is only two bytes wide.
3740         * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
3741         reloc is 26 or 32 bits wide.
3743         * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
3744         for relocs that don't change anything.  Also look at the full
3745         6 bits of bitsize.
3747 2000-09-06  Philip Blundell  <philb@gnu.org>
3749         * config.bfd (arm*-*-uclinux*): New target.
3751 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3753         * configure: Rebuilt with new libtool.m4.
3755 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3757         * section.c (bfd_get_unique_section_name): Avoid c++ reserved
3758         word for variable name.
3759         * bfd-in2.h: Regenerate.
3761 2000-09-05  Nick Clifton  <nickc@redhat.com>
3763         * config.in: Regenerate.
3764         * libbfd.h: Regenerate.
3765         * po/bfd.pot: Regenerate.
3766         * doc/bfdint.texi: Remove CVS date string - it foils compares with
3767         local versions.
3769 2000-09-05  Steven Johnson  <sbjohnson@ozemail.com.au>
3771         * cpu-powerpc.c  (arch_info_struct): Added MPC860 Family entry.
3773 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3775         Shared library and PIC support.
3776         * elf32-hppa.c (PLT_ENTRY_SIZE): New.
3777         (GOT_ENTRY_SIZE): New.
3778         (ELF_DYNAMIC_INTERPRETER): New.
3779         (STUB_SUFFIX): Define.
3780         (LONG_BRANCH_PIC_IN_SHLIB): Define.
3781         (RELATIVE_DYNAMIC_RELOCS): Define.
3782         (enum elf32_hppa_stub_type): New.
3783         (struct elf32_hppa_stub_hash_entry): Rename offset to
3784         stub_offset.  Add a number of new fields.
3785         (struct elf32_hppa_link_hash_entry): New.
3786         (struct elf32_hppa_link_hash_table): Add numerous fields.  Remove
3787         global_value.
3788         (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
3789         (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
3790         (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc.  Init
3791         new fields.
3792         (hppa_link_hash_newfunc): New function.
3793         (elf32_hppa_link_hash_table_create): Use above function. Init new
3794         fields.
3795         (elf32_hppa_stub_name): Rename to hppa_stub_name.  Pass in reloc
3796         instead of addend, and remove sym_name from args.  Don't use
3797         symbol name for local syms, instead use sym index.
3798         (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
3799         stub type rather than size.  Pass in hash and handle import stub
3800         case.  Also pass in reloc instead of offset so we can calculate
3801         PCREL22F and PCREL12F branches properly.
3802         (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub.  Build
3803         import and export stubs too.
3804         (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub.  Handle
3805         import and export stub sizing.
3806         (elf32_hppa_check_relocs): New function.
3807         (elf32_hppa_adjust_dynamic_symbol): New function.
3808         (hppa_discard_copies): New function.
3809         (elf32_hppa_size_dynamic_sections): New function.
3810         (elf_backend_size_dynamic_sections): Define.
3811         (elf32_hppa_finish_dynamic_symbol): New function.
3812         (elf_backend_finish_dynamic_symbol): Define.
3813         (elf32_hppa_size_stubs): Stash params in link hash table, and move
3814         some local vars into the link hash table too.  For shared links,
3815         trundle over function syms, generating export stubs.  Handle
3816         PCREL22F branches.  Break out stub creation code from here..
3817         (hppa_add_stub): .. to here.  New function.
3818         (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
3819         call the bfd linker.  Use elf_gp to record global pointer.
3820         Calculate a value from sections if $global$ is missing.
3821         (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
3822         (elf32_hppa_gc_mark_hook): New function.
3823         (elf_backend_gc_mark_hook): Define.
3824         (elf32_hppa_gc_sweep_hook): New function.
3825         (elf_backend_gc_sweep_hook): Define.
3826         (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
3827         Add rel to args, and remove howto, input_bfd, offset, addend,
3828         sym_name as we can recalculate these locally.  Handle calls to
3829         dynamic objects, extra PIC relocs, PCREL22F branches.  Change
3830         handling of undefined weak syms.  Check that stubs are in range.
3831         Only look for import stubs on PCREL17F and PCREL22F relocs.  Add
3832         message on hitting a DPREL21L reloc that needs fixing.  Subtract
3833         off PC for PCREL14F.  Break out code that does a stub lookup from
3834         here..
3835         (hppa_get_stub_entry): ..to here.  New function.
3836         (elf32_hppa_relocate_insn): Merge into final_link_relocate.
3837         (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
3838         relocs, etc. etc.
3839         (elf32_hppa_finish_dynamic_sections): New function.
3840         (elf_backend_finish_dynamic_sections): Define.
3841         (elf_backend_final_write_processing) Define.
3842         (hppa_handle_PIC_calls): New function.
3843         (elf32_hppa_build_stubs): Call it.  Pass link_info to
3844         hppa_build_one_stub.
3845         (elf32_hppa_create_dynamic_sections): New function
3846         to create .plt and .got then set .plt flags correctly.
3847         (elf_backend_create_dynamic_sections): Define.
3848         (elf32_hppa_object_p): New function.
3849         (elf_backend_object_p): Define.
3850         (elf32_hppa_elf_get_symbol_type): New function.
3851         (elf_backend_get_symbol_type): Define.
3852         (elf_backend_can_gc_sections): Define.
3853         (elf_backend_want_got_plt): Define.
3854         (elf_backend_plt_alignment): Set to 2.
3855         (elf_backend_plt_readonly): Define.
3856         (elf_backend_want_plt_sym): Define.
3857         (elf_backend_got_header_size): Reserve one entry.
3859         * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
3860         (elf32_hppa_size_stubs): Pass in multi_subspace.
3861         (elf32_hppa_set_gp): Declare.
3863         * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
3864         (bfd_get_unique_section_name): New function.
3865         * bfd-in2.h: Regenerate.
3867         * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
3868         (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
3869         comment.
3871         From  David Huggins-Daines  <dhd@linuxcare.com>
3872         * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
3873         (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
3874         (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
3875         been updated in finish_dynamic_symbol before modifying function
3876         symbol.
3878         * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
3879         eight entries.  Replace NULL with bfd_elf_generic_reloc.  Add
3880         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
3881         (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*.  Add some
3882         comments.  Handle format == 12 for R_HPPA_PCREL_CALL.
3883         (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
3884         (elf_hppa_relocate_insn): Likewise.  Reformat some comments.
3885         (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
3887         From David Huggins-Daines  <dhd@linuxcare.com>
3888         * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
3889         style of local labels as well.
3891 2000-09-03  Philip Blundell  <philb@gnu.org>
3893         * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
3894         references to undefined symbols in debugging sections.
3896 2000-09-02  H.J. Lu  <hjl@gnu.org>
3898         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3899         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
3900         BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
3901         section.
3903 2000-09-02  Jason Eckhardt  <jle@cygnus.com>
3905         * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
3906         (elf32_i860_is_local_label_name): New function and prototype.
3908 2000-09-02  Nick Clifton  <nickc@redhat.com>
3910         * configure.in: Increase version number to 2.10.91.
3911         * configure: Regenerate.
3912         * aclocal.m4: Regenerate.
3913         * config.in: Regenerate.
3914         * po/bfd.pot: Regenerate.
3916 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3918         * elf.c (_bfd_elf_make_section_from_shdr): Add
3919         .gnu.linkobce.wi. to the list of debug section names.
3921 2000-09-02  Nick Clifton  <nickc@redhat.com>
3923         * dwarf2.c (find_debug_info): New function: Locate a section
3924         containing dwarf2 debug information.
3925         (bfd_dwarf2_find_nearest_line): Find all sections containing
3926         debug information and include them in the stash.
3928 2000-09-01  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3930         * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3931         R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3932         (sh_reloc_map): Add new relocs.
3933         (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3934         sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3935         sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3936         sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3937         functions.
3938         (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3939         (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3940         elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3941         elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3942         New array constants.
3943         (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3944         New variables.
3945         (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3946         elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3947         elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3948         elf_sh_plt_reloc_offset): Define.
3949         (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3950         elf_sh_link_hash_table): New structs.
3951         (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3952         (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3953         relocation types.
3954         (elf_backend_create_dynamic_sections,
3955         bfd_elf32_bfd_link_hash_table_create,
3956         elf_backend_adjust_dynamic_symbol,
3957         elf_backend_size_dynamic_sections,
3958         elf_backend_finish_dynamic_symbol,
3959         elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3960         elf_backend_plt_readonly, elf_backend_want_plt_sym,
3961         elf_backend_got_header_size, elf_backend_plt_header_size):
3962         Define.
3963         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3964         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3965         New relocs.
3966         * bfd-in2.h, libbfd.h: Rebuilt.
3968 2000-09-01  Alan Modra  <alan@linuxcare.com.au>
3970         * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3971         change.
3973 2000-08-31  J"orn Rennecke <amylaar@cygnus.co.uk>
3975         * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3976         not initialized, set them to indicate the SH1 instruction set.
3978 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3980         * acinclude.m4: Include libtool and gettext macros from the
3981         top level.
3982         * aclocal.m4, configure: Rebuilt.
3984 2000-08-29  Michael Snyder  <msnyder@seadog.cygnus.com>
3986         * elf.c: Eliminate references to __sparcv9 macro; replace with
3987         autoconf variables HAVE_PSINFO32_T etc.
3988         * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
3989         HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
3990         * config.in: Ditto.
3991         * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
3992         detect the above typedefs.  (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
3993         * aclocal.m4: Ditto.
3994         * configure: Regenerate.
3996 2000-08-27  Alan Modra  <alan@linuxcare.com.au>
3998         * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
3999         for any shared link, not just shared -Bsymbolic.
4000         (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
4001         any shared link, and pass link info to it.
4002         (elf_i386_size_dynamic_sections): Update comment.
4003         (elf_i386_discard_copies): Modify to discard relocs for symbols
4004         that have been forced local.
4005         (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
4006         that have been forced local.
4008 2000-08-24  Denis Chertykov  <denisc@overta.ru> & Nick Clifton  <nickc@redhat.com>
4010         * elflink.h (elf_link_add_object_symbols): Allow common
4011         symbols to have an alignment of 1 if explicitly requested, and
4012         not overridden by other definitions.
4014 2000-08-22  Doug Kwan <dkwan@transmeta.com>
4016         * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
4017         * coffcode.h (coff_set_flags): Add detection of w65 architecture.
4019 2000-08-22  H.J. Lu  <hjl@gnu.org>
4021         * elf-bfd.h (elf_link_hash_table): Add runpath.
4023         * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
4024         * bfd-in2.h: Rebuilt.
4026         * elf.c (_bfd_elf_link_hash_table_init): Initialize the
4027         "runpath" field to NULL.
4028         (bfd_elf_get_runpath_list): New function.
4030         * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
4031         DT_RUNPATH entries.
4033 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
4035         * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
4036         R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
4037         explicitly.  Improve validation of r_type.
4039 2000-08-21  H.J. Lu  <hjl@gnu.org>
4041         * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
4042         dynamic allocated content space.  Add a comment to remind us that
4043         one day this ought to be fixed.
4044         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4045         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4046         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4048 2000-08-21  Jason Eckhardt  <jle@cygnus.com>
4050         * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
4051         field with the newly relocated value instead of adding it to the
4052         existing immediate field.
4053         (elf32_i860_relocate_splitn): Likewise.
4054         (elf32_i860_relocate_highadj): Likewise.
4056 2000-08-16  Jason Eckhardt  <jle@cygnus.com>
4058         * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
4059         was previously just a stub).
4061 2000-08-16  Alexandre Oliva  <aoliva@redhat.com>
4063         * elflink.c (_bfd_elf_create_got_section): Don't abort().
4064         Formatting fixes.
4065         (_bfd_elf_create_dynamic_sections): Likewise.
4067 2000-08-16  Andrew Macleod  <amacleod@cygnus.com>
4069         * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
4070         for undefined symbols to be the beginning of the section.
4072         * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
4073         four extra entries at the beginning of the .rela.plt section.
4074         (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
4075         section to account for the four reserved entries in the .plt section.
4077 2000-08-15  Geoffrey Keating  <geoffk@cygnus.com>
4079         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
4080         to the list of NOPs we recognize after a branch-and-link.
4081         Use the ori NOP when one is needed.
4083         * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
4084         for large archives.
4086 2000-08-14  Jim Wilson  <wilson@cygnus.com>
4088         * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
4089         EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
4090         (elf64_ia64_print_private_bfd_data): Likewise.  Also handle
4091         EF_IA_64_ABSOLUTE.
4093 2000-08-11  Alexandre Oliva  <aoliva@redhat.com>
4095         * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
4097 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
4099         * elf32-i860.c (elf32_i860_relocate_section): New function.
4100         (i860_final_link_relocate): New function.
4101         (elf32_i860_relocate_splitn): New function.
4102         (elf32_i860_relocate_pc16): New function.
4103         (elf32_i860_relocate_highadj): New function.
4104         (elf32_i860_howto): Minor adjustments to some relocations.
4105         (elf_info_to_howto_rel): Define.
4106         (elf_backend_relocate_section): Define.
4108 2000-08-10  Nick Clifton  <nickc@cygnus.com>
4110         * elf32-arm.h: Fix formatting.
4112 2000-08-10  Bernd Schmidt  <bernds@cygnus.co.uk>
4114         * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
4116 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
4118         * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
4120 2000-08-07  Kazu Hirata  <kazu@hxi.com>
4122         * ieee.c (ieee_write_debug_part): Rewrite a comment.
4123         * elf64-ia64.c: Fix a typo.
4125 2000-08-05  Jason Eckhardt  <jle@cygnus.com>
4127         * elf32-i860.c (elf32_i860_howto_table): New structure.
4128         (lookup_howto): New function.
4129         (elf32_i860_reloc_type_lookup): New function.
4130         (elf32_i860_info_to_howto_rela): New function.
4131         (elf_code_to_howto_index): New structure.
4132         (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
4133         (bfd_elf32_bfd_reloc_type_lookup): Re-define as
4134         elf32_i860_reloc_type_lookup.
4136 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
4138         * som.c (struct fixup_format): Constify `format'.
4139         (som_hppa_howto_table): Use SOM_HOWTO macro.
4140         (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
4141         (som_bfd_reloc_type_lookup): Likewise.
4142         (compare_subspaces): Remove unused `count1', `count2'.
4143         (som_begin_writing): Remove unused `total_reloc_size'.
4144         (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
4145         (som_print_symbol, som_bfd_is_local_label_name): Likewise.
4146         (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
4147         (som_find_nearest_line): Decorate unused parameter(s).
4148         (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
4149         (som_bfd_link_split_section): Likewise.
4151 2000-08-03  Nick Clifton  <nickc@cygnus.com>
4153         * section.c: Restore backed out code.
4154         * elf.c: Restore backed out code.
4155         (copy_private_bfd_data): Fix bug preventing stipped dynamic
4156         binaries from working.
4157         * bfd-in2.h: Regenerate.
4159 2000-08-03  H.J. Lu  <hjl@gnu.org>
4161         * section.c: Back out the change made by Nick Clifton
4162         <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
4163         binaries.
4164         * bfd-in2.h: Likewise.
4165         * elf.c: Likewise.
4167 2000-08-03  Alexandre Oliva  <aoliva@redhat.com>
4169         * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
4171 2000-07-31  Jason Eckhardt  <jle@cygnus.com>
4173         * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
4174         * bfd-in2.h, libbfd.h: Regenerate.
4176 2000-07-31  Nick Clifton  <nickc@cygnus.com>
4178         * section.c (struct sec): Add new boolean field 'segment_mark'.
4179         (STD_SECTION): Initialise new field to zero.
4181         * bfd-in2.h: Regenerate.
4183         * elf.c (copy_private_bfd_data): Reorganise section to segment
4184         mapping to cope with moved sections requiring new segments,
4185         and overlapping segments.
4186         (SEGMENT_END): New macro: Return the end address of a segment.
4187         (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
4188         contains a section by comparing their VMA addresses.
4189         (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
4190         contains a section by comparing their LMA addresses.
4191         (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
4192         section should be included in a segment.
4193         (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
4194         follows another in memory.
4195         (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
4196         segments overlap.
4198 2000-07-22  Jason Eckhardt  <jle@cygnus.com>
4200         * cpu-i860.c: Added comments.
4202         * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
4203         bfd_elf32_i860_little_vec.
4204         (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
4205         (ELF_MAXPAGESIZE): Changed to 4096.
4207         * targets.c (bfd_elf32_i860_little_vec): Declaration of
4208         new target.
4209         (bfd_target_vector): Added bfd_elf32_i860_little_vec.
4211         * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
4212         config for little endian elf32 i860.
4213         (targ_defvec): Define for the new config above
4214         as "bfd_elf32_i860_little_vec".
4215         (targ_selvecs): Define for the new config above
4216         as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
4218         * configure.in (bfd_elf32_i860_little_vec): Added recognition
4219         of new target vec.
4221         * configure: Regenerated.
4223 2000-07-27  H.J. Lu  <hjl@gnu.org>
4225         * elflink.h (elf_merge_symbol): Take one more argument,
4226         dt_needed, to indicate if the symbol comes from a DT_NEEDED
4227         entry. Don't overide the existing weak definition if dt_needed
4228         is true.
4229         (elf_link_add_object_symbols): Pass dt_needed to
4230         elf_merge_symbol ().
4232 2000-07-27  Nick Clifton  <nickc@cygnus.com>
4234         * elflink.h (elf_link_size_reloc_section): Zeroes the section's
4235         allocated contents.
4237 2000-07-25  Geoffrey Keating  <geoffk@cygnus.com>
4239         * configure.host (*-*-aix*): AIX has 'long long' always.
4241         * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
4242         (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
4243         (xcoff_write_archive_contents_big): Don't update the offset
4244         of the symbol table, xcoff_write_armap will do it.
4246 2000-07-23  Ulf Carlsson  <ulfc@engr.sgi.com>
4248         * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
4249         of dynobj for SGI_COMPAT checks.
4251 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4253         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
4254         * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
4255         * bfd-in2.h: Regenerate.
4257 2000-07-21  Nick Clifton  <nickc@cygnus.com>
4259         * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
4260         range symbol indices in relocs and issue an error message.
4262 2000-07-20  H.J. Lu  <hjl@gnu.org>
4264         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
4265         info->new_dtags when setting DT_FLAGS_1. It will only be set
4266         by the new linker options. It shouldn't break anything.
4268 2000-07-20  H.J. Lu  <hjl@gnu.org>
4270         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
4271         only if info->new_dtags is true.
4273 2000-07-20  H.J. Lu  <hjl@gnu.org>
4275         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
4276         DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
4278 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
4280         * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
4281         (ALL_MACHINES_CFILES): Add cpu-cris.c.
4282         (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
4283         (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
4284         (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
4285         * Makefile.in: Rebuild.
4286         * aclocal.m4: Rebuild.
4287         * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
4288         * archures.c (enum bfd_architecture): Add bfd_arch_cris.
4289         (bfd_cris_arch): Declare.
4290         (bfd_archures_list): Add bfd_cris_arch.
4291         * bfd-in2.h: Rebuild.
4292         * config.bfd: (cris-*-*): New target.
4293         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
4294         * configure: Rebuild.
4295         * elf.c (prep_headers): Add bfd_arch_cris.
4296         * libbfd.h: Rebuild.
4297         * libaout.h (enum machine_type): Add M_CRIS.
4298         * reloc.c: Add CRIS relocations.
4299         * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
4300         (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
4301         * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
4302         * po/POTFILES.in, po/bfd.pot: Regenerate.
4304 2000-07-19  H.J. Lu  <hjl@gnu.org>
4306         * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
4307         DF_TEXTREL if DT_TEXTREL is set.
4308         * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4309         * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4310         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4311         * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
4312         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4313         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4314         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
4315         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4316         * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
4317         * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4319         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
4320         set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
4321         DT_RPATH is set.
4322         Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
4324 2000-07-19  H.J. Lu  <hjl@gnu.org>
4326         * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
4327         * bfd-in2.h: Rebuild.
4329         * elf-bfd.h (elf_obj_tdata): Add dt_soname.
4330         (elf_dt_soname): New.
4332         * elf.c (bfd_elf_set_dt_needed_soname): New.
4334         * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
4335         entry if the shared object loaded by DT_NEEDED is used to
4336         resolve the reference in a regular object.
4338 2000-07-19  H.J. Lu  <hjl@gnu.org>
4340         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
4341         DT_DEPAUDIT and DT_AUDIT as strings.
4343 2000-07-19  Nick Clifton  <nickc@cygnus.com>
4345         * format.c: Fix formatting.
4347 2000-07-19  H.J. Lu  <hjl@gnu.org>
4349         * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
4351 2000-07-19  H.J. Lu  <hjl@gnu.org>
4353         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
4354         DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
4355         DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
4356         DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
4357         DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
4358         DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
4359         DT_FLAGS_1, DT_USED and DT_CHECKSUM.
4361 2000-07-18  Andrew Cagney  <cagney@b1.cygnus.com>
4363         * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
4364         renamed functions from here...
4365         (assign_section_numbers): Use renamed functions.
4366         (prep_headers): Use renamed functions.
4368         * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
4369         * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
4370         * bfd-in2.h: Regenerate.
4372 2000-07-18  Ulf Carlsson  <ulfc@engr.sgi.com>
4374         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
4375         parenthesis in if statement.
4377 2000-07-17  Koundinya K  <kk@ddeorg.soft.net>
4379         Enable the support for Traditional MIPS.
4380         * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
4381         return ict_none appropriately for traditional mips targets.
4382         (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
4383         (STUB_MOVE): Conditionalize for traditonal mips.
4384         (STUB_LI16): Likewise.
4385         (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
4386         room for RTPROC header.
4387         (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
4388         the permission for the PT_DYNAMIC as read, write and execute.
4389         (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
4390         for traditonal mips.
4391         (_bfd_mips_elf_create_dynamic_sections): Add the symbol
4392         _DYNAMIC_LINKING for traditonal mips.
4393         (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
4394         in case of traditonal mips.
4395         (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
4396         entry is required. For a function if PLT is not required then set the
4397         corresponding hash table entry to 0.
4398         (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
4399         traditonal mips.
4400         (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
4401         shared object set the value to 0.
4402         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
4403         _DYNAMIC_LINKING for traditonal mips.
4404         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
4405         for traditonal mips.
4407 2000-07-15  H.J. Lu  <hjl@gnu.org>
4409         * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
4411 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4413         * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
4414         out a structure that is BFD_IN_MEMORY.
4416 2000-07-11  Alan Modra  <alan@linuxcare.com.au>
4418         * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
4419         bfd pointer.  Print section id instead of bfd pointer for local
4420         syms.  Prefix addend with `+' for global syms as well as local.
4421         Correct calculation of name component lengths.
4422         (elf64_hppa_check_relocs): Update call to get_dyn_name.
4424         From David Huggins-Daines  <dhd@linuxcare.com>
4425         * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
4426         * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
4427         (elf64_hppa_modify_segment_map): Likewise.
4429 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
4431         * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
4432         addresses to be "naturally" sign extended.  Return -1 if unknown.
4433         * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
4434         * bfd-in2.h: Regenerate.
4436 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
4438         * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
4439         and ECOF_SIGNED_64 to list ways to extract an offset.
4440         (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
4441         ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
4442         Update.
4443         * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
4444         * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
4446 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
4448         * elfcode.h (elf_object_p): Use bfd_set_start_address and not
4449         bfd_get_start_address.
4450         (elf_swap_ehdr_in): Sign extend e_entry when applicable.
4451         (elf_swap_ehdr_out): Ditto.
4453 2000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>
4455         * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
4456         compatibility with older binutils.
4458 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4460         * section.c (bfd_make_section_anyway): Start section_id at 0x10.
4461         (STD_SECTION): Avoid negative ids, instead use 0 to 3.
4463         From Ryan Bradetich  <rbradetich@uswest.net>
4464         * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
4465         (parse_line_table): Ditto.
4466         (_bfd_dwarf1_find_nearest_line): Ditto.
4467         * syms.c (cmpindexentry): Remove extra `*' from params.
4469 2000-07-09  Koundinya K  <kk@ddeorg.soft.net>
4471         * elf32-mips.c (sort_dynamic_relocs): New Function.
4472         (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
4473         via qsort to sort the dynamic relocations in increasing r_symndx
4474         value.
4476 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4478         * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4479         ATTRIBUTE_UNUSED to unused args.
4480         (get_opd): Likewise.
4481         (get_plt): Likewise.
4482         (get_dlt): Likewise.
4483         (get_stub): Likewise.
4484         (elf64_hppa_adjust_dynamic_symbol): Likewise.
4485         (elf64_hppa_link_output_symbol_hook): Likewise.
4486         (elf64_hppa_check_relocs): Delete unused var.
4487         (elf64_hppa_size_dynamic_sections): Likewise.
4488         (elf64_hppa_finalize_opd): Likewise.
4489         (elf64_hppa_finalize_dynreloc): Likewise.
4490         (elf64_hppa_modify_segment_map): Likewise.
4491         (elf64_hppa_finish_dynamic_sections): Likewise.
4493         * elf-hppa.h (elf_hppa_final_write_processing): Add
4494         ATTRIBUTE_UNUSED to unused args.
4495         (elf_hppa_final_link_relocate): Likewise.
4496         (elf_hppa_record_segment_addrs): Add paretheses.
4497         (elf_hppa_relocate_section): Constify dyn_name.
4499         From  David Huggins-Daines  <dhd@linuxcare.com>
4500         * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4501         rearrange case statement so that it gets preferred to 32-bit ones.
4503         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4504         asection->id instead of address of asection structure.
4505         (elf32_hppa_size_stubs): Likewise.
4507         * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4508         for .init* and .fini*.
4510         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4511         and addends used in stub names to 32 bits.
4512         (elf32_hppa_size_stubs): Likewise.
4514         * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4515         twice for R_PARISC_GPREL64.  Use bfd_put_32 for R_PARISC_PCREL32,
4516         not bfd_put_64.  Fix minor comment typo and formatting.
4518         Changes to create multiple linker stubs, positioned immediately
4519         before the section where they are required.
4520         * elf32-hppa.c: Don't include hppa_stubs.h.
4521         (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4522         (elf32_hppa_stub_hash_table): Delete.
4523         (elf32_hppa_link_hash_entry): Delete.
4524         (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4525         stub_hash_table, and store the struct here rather than a pointer.
4526         Delete output_symbol_count.  Add offset array.  Change
4527         global_value to a bfd_vma.
4528         (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4529         (elf32_hppa_stub_hash_traverse): Delete.
4530         (elf32_hppa_name_of_stub): Delete.
4531         (elf32_hppa_link_hash_lookup): Delete.
4532         (elf32_hppa_link_hash_traverse): Delete.
4533         (elf32_hppa_stub_hash_table_init): Delete.
4534         (elf32_hppa_size_of_stub): Pass input section and offset rather
4535         than location and calculate location here.  Don't pass name as all
4536         stubs are now the same size.
4537         (elf32_hppa_stub_hash_newfunc): Init new fields.
4538         (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4539         too.
4540         (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4541         comparing against ints.  Rewrite stub handling code.
4542         (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4543         Case enums to int before comparing against ints.  Remove
4544         bfd_reloc_dangerous case.
4545         (elf32_hppa_build_one_stub): Rewrite.
4546         (elf32_hppa_size_one_stub): New function.
4547         (elf32_hppa_build_stubs): Rewrite.
4548         (elf32_hppa_size_stubs): Pass in linker call-back functions.
4549         Rewrite stub-handling specific code.
4551         * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4553         * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4555         * hppa_stubs.h: Delete.
4556         * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4557         (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4558         * Makefile.in: Regenerate.
4560         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4561         e_nlrsel.
4563         * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4565         * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4566         and section name for bfd_reloc_notsupported error message.
4567         (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4568         bfd_reloc_notsupported.
4569         (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4571         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4572         undefined weak symbols for all relocs.
4573         (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4574         offsets are relative to one past the delay slot.
4575         (elf32_hppa_size_stubs): Account for reloc addend when calculating
4576         branch destination.  Put addend into stub name too.
4577         (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4578         adjust by 8 when deciding whether a linker stub is needed.  Put
4579         addend into stub name as for above.
4581         * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4582         various args and vars.
4583         (elf32_hppa_bfd_final_link_relocate): Here too.
4584         (elf32_hppa_size_stubs): Rename index -> indx.  Use e_indx for
4585         inner block var to avoid shadowing.
4587         * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type):  Make `field' arg
4588         unsigned.
4589         * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4590         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4591         (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4593         * libhppa.h: Change practically all unsigned ints to plain ints.
4594         Remove tests on gcc version.  Instead use ATTRIBUTE_UNUSED for
4595         prototypes.
4597         From Ryan Bradetich  <rbradetich@uswest.net>
4598         * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4599         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4600         suit above.
4601         From  David Huggins-Daines  <dhd@linuxcare.com>
4602         * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4603         to the new OP_* ones.
4605         * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4606         error exit.  Bail out earlier on plabel relocs that we aren't
4607         interested in.  Don't tell elf32_hppa_stub_hash_lookup to copy
4608         string, and then don't free our copy.
4609         (elf32_hppa_build_one_stub): Make insn unsigned int.
4611         * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4612         available with BL, not BE and BLE.
4614         * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4615         code for elf arg relocs.
4616         (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4617         argument with elf_link_hash_entry h.  Handle undefined weak
4618         symbols.  Move $global$ lookup from here...
4619         (elf32_hppa_relocate_section): ...to here.  Return correct error
4620         message for non-handled relocs.
4621         (elf32_hppa_size_of_stub): Correctly test branch range.  Previous
4622         wrong test was -0x3ffff to +0x40000.
4624         * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4625         R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4626         Handle them as such.
4627         (elf_hppa_relocate_insn): Fix a typo.
4629         * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4630         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4631         assemble_17, assemble_21): Delete.
4632         Supply defines for all 64 possible opcodes.
4633         (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4634         formats.  Handle COMICLR.
4635         (hppa_rebuild_insn): Delete bfd argument.  Handle formats 10, -11,
4636         -10, -16, 16, 22.
4638         * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4639         (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4640         (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4641         to suit.
4642         (elf32_hppa_size_stubs): Don't free stub_name twice.  Read in all
4643         the local syms - did this code get deleted accidentally?  Ignore
4644         undefined and undefweak syms.
4646         * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4647         block.  Use it instead of elf64_hppa_hash_table (info).
4648         (elf_hppa_final_link_relocate): Use hppa_info instead of
4649         elf64_hppa_hash_table (info).
4651         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4652         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4653         (hppa_rebuild_insn): Mask immediate bits here instead.
4654         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4656 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4658         * section.c (struct sec): Add id field.  Tidy comment formatting.
4659         (bfd_make_section_anyway): Set id.
4660         (STD_SECTION): Init id too.
4661         Change CONST to const throughout.
4662         * archures.c (bfd_arch_info): Tidy comment.
4663         (bfd_arch_list): Change a CONST to const.
4664         * libbfd-in.h: Tidy comments and replace CONST with const.
4665         * elf-bfd.h: Likewise.
4666         * libbfd.h: Regenerate.
4667         * bfd-in2.h: Regenerate.
4668         * libcoff.h: Regenerate.
4670 2000-07-07  DJ Delorie  <dj@redhat.com>
4672         * archive.c (_bfd_write_archive_contents): Add an informative
4673         comment.
4675 2000-07-06  Kazu Hirata  <kazu@hxi.com>
4677         * srec.c: Fix formatting.
4679 2000-06-05  DJ Delorie  <dj@redhat.com>
4681         * MAINTAINERS: new
4683 2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
4685         * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4686         value of PC-relative offsets.
4688 2000-07-03  Jim Wilson  <wilson@cygnus.com>
4690         * elf64-alpha.c (alpha_elf_size_info): New.
4691         (elf_backend_size_info): Define to alpha_elf_size_info.
4692         * elfcode.h (elf_size_info): Change hash bucket size to 4.
4694 2000-07-03  Ulf Carlsson  <ulfc@engr.sgi.com>
4696         * elf32-mips.c: Include elf32-target.h again for the traditional
4697         MIPS targets.
4699 2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
4701         * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4702         Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4703         (avr_info_to_howto_rela): Likewise.
4704         (elf32_avr_gc_mark_hook): Likewise.
4705         (elf32_avr_gc_sweep_hook): Likewise.
4706         (elf32_avr_relocate_section): Likewise.
4708 2000-07-03  Mark Elbrecht  <snowball3@bigfoot.com>
4710         * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
4711         an external symbol for a non-shared, non-relocatable link.
4713 2000-07-03  Nick Clifton  <nickc@redhat.com>
4715         * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
4716         is an external symbol.
4717         (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
4718         external symbol.
4720 2000-07-03  Kazu Hirata  <kazu@hxi.com>
4722         * reloc16.c: Fix formatting.
4724 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4726         * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
4727         to add a new target for traditional mips i.e
4728         bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
4729         * configure.in: Likewise.
4730         * configure: Rebuild.
4731         * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
4732         bfd_target_vector.
4733         (bfd_elf32_tradlittlemips_vec): Likewise.
4734         * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
4735         to see that elfNN_bed does not get redefined even if the target file
4736         is included twice for a chip. See elf32-mips.c.
4738 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4740         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4741         (CLEANFILES): Add DEPA.
4742         * Makefile.in: Regenerate.
4744 2000-06-30  DJ Delorie  <dj@cygnus.com>
4746         * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
4747         can't assume the PE header is at 0x80.
4749 2000-06-29  Mark Elbrecht  <snowball3@bigfoot.com>
4751         * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4753 2000-06-28  Mark Elbrecht  <snowball3@bigfoot.com>
4755         * go32stub.h: Update stub.
4757 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4759         * archures.c (bfd_mach_avr5): Define.
4760         * bfd-in2.h (bfd_mach_avr5): Define.
4761         * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
4762         bfd_mach_avr5, add bfd_mach_avr4.  Update comments.
4763         (compatible): Update comment.  Add missing test.
4764         * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
4765         for avr2 and avr4.  Simplify 8K wrap code.
4766         (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
4767         (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
4769 2000-06-26  Kazu Hirata  <kazu@hxi.com>
4771         * coff-h8300.c: Fix formatting.
4772         * cpu-h8300.c: Likewise.
4774 2000-06-24  Alexandre Oliva  <aoliva@redhat.com>
4776         * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
4777         for local symbols whose names are unknown.
4779 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4781         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4782         find one.
4783         * Makefile.in: Regenerate.
4784         * doc/Makefile.in: Regenerate.
4786 2000-06-20  H.J. Lu  <hjl@gnu.org>
4788         * Makefile.am: Rebuild dependency.
4789         * Makefile.in: Rebuild.
4791 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4793         * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
4794         (elf_backend_copy_indirect_symbol): Map to the new function.
4796 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4798         * archive.c (normalize): Correct pointer comparison when checking
4799         for backslashes.
4800         (bfd_bsd_truncate_arname): Likewise.
4801         (bfd_gnu_truncate_arname): Likewise.
4803 2000-06-20  Ulf Carlsson  <ulfc@engr.sgi.com>
4805         * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
4806         sections elf_{text,data}_{section,symbol}.
4807         * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
4808         (_bfd_mips_elf_hide_symbol): New function.
4809         (elf_backend_hide_symbol): Map to the new function.
4810         (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
4811         definitions of mips_elf_{text,data}_{section,symbol}.
4812         (mips_elf_local_relocation_p): Try to find the direct symbol
4813         based on new check_forced argument.
4814         (mips_elf_calculate_relocation): Use new version of
4815         mips_elf_local_relocation_p.
4816         (mips_elf_relocate_section): Likewise.
4817         (_bfd_mips_elf_relocate_section): Likewise.
4818         (mips_elf_sort_hash_table): Only assert that have enough GOT
4819         space.
4820         (mips_elf_got16_entry): Match all 32 bits to the existing GOT
4821         entry if the relocation based on the new external argument.
4822         (mips_elf_create_dynamic_relocation): Assert that we have a
4823         section contents allocated where we can swap out the dynamic
4824         relocations.
4825         (mips_elf_calculate_relocation): Find the real hash-table entry
4826         correctly by using h->root.root.type.  Only create a dynamic
4827         relocation entry if the symbol is defined in a shared library.
4828         Create an external GOT entry for the GOT16 relocation if the
4829         symbol was forced local.
4830         (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
4831         dynamic index if the symbol was forced local.
4833 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4835         * elf32-mips.c: Fix typos in comments.
4837 2000-06-19  Mark Kettenis  <kettenis@gnu.org>
4839         * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
4840         CORE_VERSION_1.
4842 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4844         * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
4845         * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
4846         BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
4847         * configure.in (bfd_elf32_m68hc12_vec): Recognize.
4848         (bfd_elf32_m68hc11_vec): Likewise.
4849         * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
4850         Supports 68hc11 & 68hc12  at the same time.
4851         * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
4852         bfd_target_vector.
4853         (bfd_elf32_m68hc11_vec): Likewise.
4854         * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
4855         * archures.c (bfd_m68hc12_arch): Define and register in global list
4856         (bfd_m68hc11_arch): Likewise.
4857         * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
4858         BFD_RELOC_M68HC11_3B): Define.
4859         * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
4860         * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
4862 2000-06-18  Ulf Carlsson  <ulfc@engr.sgi.com>
4864         * elf_bfd.h (struct elf_backend_data): Add info argument to
4865         elf_backend_hide_symbol.
4866         (_bfd_elf_link_hash_hide_symbol): Likewise.
4867         * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
4868         * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
4869         * elflink.h (elf_link_add_object_symbols): Likewise.
4870         (elf_link_assign_sym_version): Likewise.
4872 2000-06-18  H.J. Lu  <hjl@gnu.org>
4874         * coff-i386.c (coff_i386_reloc): Don't return in case of
4875         output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
4876         Compensate PE relocations when linking with non-PE object
4877         files to generate a non-PE executable.
4879 2000-06-17  Ulf Carlsson  <ulfc@engr.sgi.com>
4881         * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
4882         GOT entries if we're doing a static link or -Bsymbolic link.
4884 2000-06-15  Ulf Carlsson  <ulfc@engr.sgi.com>
4886         * elflink.h (elf_link_adjust_relocs): Check for and call backend
4887         specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
4888         available.
4889         (elf_link_output_relocs): Likewise.
4890         (elf_reloc_link_order): Likewise.
4892 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
4894         * archures.c (enum bfd_architecture): #define constants for
4895         PowerPc and RS6000 machine numbers.
4896         * bfd-in2.h: Regenerate.
4897         * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
4898         to bfd_arch_powerpc instead of bfd_arch_rs6000.  Refer to PowerPc
4899         and RS6000 machine numbers using #defined constants from
4900         archures.c.
4901         * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
4902         machine numbers using #defined constants from archures.c.  Add
4903         entries for EC603e, 630, A35, RS64II, RS64III, 7400.  Specify
4904         64-bit words in 620 entry.
4905         * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
4906         RSC, and RS2.
4907         (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
4909 2000-06-16  Nicholas Duffek  <nsd@cygnus.com>
4911         * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
4912         * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
4913         * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
4915 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
4917         * bfd-in.h (bfd_family_coff): Define.
4918         * bfd-in2.h: Regenerate.
4919         * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4920         coff_find_nearest_line): Check COFFness using bfd_family_coff()
4921         instead of bfd_target_coff_flavour.
4922         * cofflink.c (_bfd_coff_final_link): Likewise.
4923         * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4924         exclude XCOFF files.
4925         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4926         Likewise.
4927         * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4928         * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4929         * xcofflink.c (XCOFF_XVECP): Delete.
4930         (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4931         bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4932         bfd_xcoff_record_link_assignment,
4933         bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4934         check for bfd_target_xcoff_flavour.
4936 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
4938         * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4939         files on AIX 4.3.
4940         (read_hdr): New function.
4941         (rs6000coff_core_p): Store mstsave or __context64 struct instead
4942         of trying to extract individual registers.  Set abfd->arch_info
4943         to match the architecture that created the core file.
4944         (rs6000coff_get_section_contents): Delete.
4945         * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4947 2000-06-14  H.J. Lu  <hjl@gnu.org>
4949         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4950         is NULL.
4952 2000-06-13  H.J. Lu  <hjl@gnu.org>
4954         * configure: Regenerate.
4956 2000-06-13  J"orn Rennecke <amylaar@cygnus.co.uk>
4958         * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4959         armpei_little_vec.
4961 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4963         * configure.in (VERSION): Update to show this is the CVS mainline.
4965 2000-06-07  Alan Modra  <alan@linuxcare.com.au>
4967         * elf32-d10v.c: Include elf/d10v.h
4968         (enum reloc_type): Delete.
4969         * elf32-d30v.c: Include elf/d30v.h
4970         (enum reloc_type): Delete.
4972         * Makefile.am: Run "make dep-am" to regenerate dependencies.
4973         * Makefile.in: Regenerate.
4975         * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4976         (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4977         move HOWTOs into elf_howto_table.
4978         (R_386_standard, R_386_ext_offset): Define.
4979         (R_386_ext, R_386_vt_offset, R_386_vt): Define.
4980         (elf_i386_reloc_type_lookup): Modify calculation of index into
4981         elf_howto_table since we've removed the padding.
4982         (elf_i386_info_to_howto_rel): Likewise.
4983         (elf_i386_relocate_section): Likewise.
4985 2000-06-06  Michael Snyder  <msnyder@seadog.cygnus.com>
4987         * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
4989 2000-06-05  H.J. Lu  <hjl@gnu.org>
4991         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
4992         an error when seeing an undefined symbol with hidden/internal
4993         attribute. It is handled in *_relocate_section ().
4995 2000-06-05  H.J. Lu  <hjl@gnu.org>
4997         * elflink.h (elf_fix_symbol_flags): Follow the link for the
4998         indirect symbol for the ELF_LINK_NON_ELF bit.
4999         (elf_link_output_extsym): Don't output the indirect symbol even
5000         if the ELF_LINK_NON_ELF bit is set.
5002 2000-06-01  J.T. Conklin  <jtc@redback.com>
5004         * config.bfd (i[3456]86-*-netbsdelf*): New target.
5005         (i[3456]86-*-netbsdaout*): New target.
5006         (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
5007         (i[3456]86-*-openbsd*): Likewise.
5009 2000-05-30  Andrew Cagney  <cagney@b1.cygnus.com>
5011         * trad-core.c: From hpux-core.c, include <dirent.h> or
5012         <sys/ndir.h> when possible.
5014 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
5016         * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
5017         definitions.  We must not assume they are sorted in the file
5018         according to their index numbers.
5020 2000-05-31  Alan Modra  <alan@linuxcare.com.au>
5022         * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
5023         selector for R_PARISC_PCREL17R.  R_PARISC_DIR17R and
5024         R_PARISC_DIR17F are for absolute branches; Handle them as such.
5026 2000-05-30  Nick Clifton  <nickc@cygnus.com>
5028         * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
5029         80960CA, 80960MC as valid machine names.
5031 2000-05-30  H.J. Lu  <hjl@gnu.org>
5033         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
5034         visibility bits if the symbol is undefined. Correctly handle
5035         weak undefined symbols with hidden and internal attributes.
5037         * elflink.h (elf_link_add_object_symbols): Always turn the
5038         symbol into local if it has the hidden or internal attribute.
5040 2000-05-29  Philip Blundell  <philb@gnu.org>
5042         * ppcboot.c:  Add packed attribute if compiling with GCC.
5044 2000-05-29  Anatoly Vorobey  <mellon@pobox.com>
5046         * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
5048 2000-05-26  Michael Snyder  <msnyder@seadog.cygnus.com>
5050         * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
5051         elfcore_grok_psinfo): Add code to allow debugging a 32-bit
5052         corefile on a 64-bit (Sparc Solaris) host.  Also clean up
5053         a few old comments.
5055 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
5057         * Makefile.am: Update dependencies with "make dep-am"
5058         * Makefile.in: Regenerate.
5060         * sysdep.h (gettext, dgettext, dcgettext, textdomain,
5061         bindtextdomain): Replace defines with those from intl/libgettext.h
5062         to quieten gcc warnings.
5064 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
5066         * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
5068         * archive.c (normalize, bfd_bsd_truncate_arname,
5069         bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
5070         file names with backslashes.
5072         * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
5073         before opening it.
5075         * sysdep.h: Include filenames.h.
5077 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
5079         * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
5081 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
5083         * elf64-sparc.c (sparc64_elf_relax_section): New.
5084         (sparc64_elf_relocate_section): Optimize tail call into branch always
5085         if possible.
5086         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5087         (elf32_sparc_relax_section): New.
5089 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
5091         * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
5092         Remove unusued variables.
5093         (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
5094         (sparc64_elf_merge_private_bfd_data): Fix shared library case from
5095         previous fix, so that shared libs really don't influence targets
5096         extension mask and memory model.
5098 2000-05-23  H.J. Lu  <hjl@gnu.org>
5100         * elf64-alpha.c (elf64_alpha_relocate_section): Check
5101         h->root.other not h->other.
5102         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5104         * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
5106 2000-05-23  H.J. Lu  <hjl@gnu.org>
5108         * elf32-i386.c (elf_i386_relocate_section): Don't allow the
5109         undefined symbol with the non-default visibility attributes.
5110         * elf-hppa.h (elf_hppa_relocate_section): Likewise.
5111         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5112         * elf32-i370.c (i370_elf_relocate_section): Likewise.
5113         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5114         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5115         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5116         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5117         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5118         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5119         * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
5120         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5122 2000-05-22  Richard Henderson  <rth@cygnus.com>
5124         * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
5125         PCREL22, PCREL64I.  Zero size of special relocs.
5126         (elf64_ia64_reloc_type_lookup): Likewise.
5127         (USE_BRL, oor_brl, oor_ip): New.
5128         (elf64_ia64_relax_section): New.
5129         (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
5130         (elf64_ia64_install_value): Likewise, plus PCREL21BI.
5131         (elf64_ia64_relocate_section): Likewise.
5132         (bfd_elf64_bfd_relax_section): New.
5133         * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
5134         (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
5135         * bfd-in2.h, libbfd.h: Regenerate.
5137 2000-05-22  Nick Clifton  <nickc@cygnus.com>
5139         * configure.in : Add peigen.lo to MIPS PE targets.
5140         * configure: Regenerate.
5142 2000-05-22  Momchil Velikov  <velco@fadata.bg>
5144         * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
5145         only if it is known for both input and output bfds. Separate
5146         error message strings as in some languages, it may be necessary
5147         to change more than one place in the string to change between
5148         'big' and 'little'.
5150         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
5151         endianess checks, call _bfd_generic_verify_endian_match() instead.
5153         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
5155         * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
5157         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
5158         endianess before checking bfd flavours.
5160 2000-05-22  H.J. Lu  <hjl@gnu.org>
5162         * elflink.h (elf_link_output_extsym): Clear the visibility
5163         field for symbols not defined locally.
5165 2000-05-18  Alan Modra  <alan@linuxcare.com.au>
5167         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5168         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5169         (hppa_rebuild_insn): Mask immediate bits here instead.
5170         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5172 2000-05-18  Momchil Velikov <velco@fadata.bg>
5174         * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
5175         relocs for an executable, ensure that they are virtual addresses.
5177 2000-05-18  Jeffrey A Law  (law@cygnus.com)
5179         * config.bfd (hppa*64*-*-hpux11*): New target triplet.
5181 2000-05-17  S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
5182             Rick Gorton             <gorton@scrugs.lkg.dec.com>
5184         * elflink.h: Add emitrelocations support: when enabled, relocation
5185         information and relocation sections are put into final output
5186         executables.  If the emitrelocations flag is set, do the following:
5187         (elf_bfd_final_link): Emit relocation sections.
5188         (elf_link_input_bfd): Compute relocation section contents.
5189         (elf_gc_sections): Don't clean relocation sections.
5191 2000-05-16  Catherine Moore  <clm@cygnus.com>
5193         * som.c (som_decode_symclass):  Recognize weak symbols.
5195 2000-05-16  Szabolcs Szakacsits <szaka@F-Secure.com>
5197         * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
5198         read idata section only from dataoff.
5199         (pe_print_edata): Correctly check for valid eat_member.
5201 2000-05-16  J"orn Rennecke <amylaar@cygnus.co.uk>
5203         * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
5205 2000-05-14  Philip Blundell  <philb@gnu.org>
5207         * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
5209 2000-05-12  Alan Modra  <alan@linuxcare.com.au>
5211         * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
5213         * peigen.c (pe_print_idata): Look for .idata section and print
5214         info even if data directory has zero entries.  Read idata section
5215         starting from dataoff, and adjust all data offsets to suit.  Cast
5216         all bfd_vma vars to unsigned long before passing to fprintf.
5217         * peigen.c (pe_print_edata): Similarly, look for .edata section
5218         and print info even if data directory has zero entries.  Cast
5219         all bfd_vma vars to unsigned long before passing to fprintf.
5221         From Szabolcs Szakacsits <szaka@F-Secure.com>
5222         * peigen.c (pe_print_idata): Use bfd_section_size rather than data
5223         directory size which may be bogus.
5224         * peigen.c (pe_print_edata): Similarly.
5226 2000-05-09  Alan Modra  <alan@linuxcare.com.au>
5228         * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
5229         section is empty.
5230         (copy_private_bfd_data): Allow for space possibly taken up by elf
5231         headers when calculating segment physical address from lma.
5233 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
5235         * versados.c (versados_scan): Init stringlen and pass_2_done.
5237         * trad-core.c (trad_unix_core_file_p): Return
5238         bfd_error_wrong_format rather than bfd_error_file_truncated.
5240         * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
5241         add_data_entry.  DataDirectory virtual address is relative.
5242         (pe_print_idata): Account for relative DataDirectory virtual
5243         addresses.  Don't trash datasize inside POWERPC_LE_PE code.
5244         (pe_print_edata): Similarly.
5246         From Szabolcs Szakacsits <szaka@F-Secure.com>
5247         * peigen.c (dir_names): Add Delay Import Directory.
5248         (pe_print_idata):  Always search for bfd section containing
5249         idata address rather than looking up section name.  Print this
5250         section name rather than .idata.
5251         (pe_print_edata): Similarly.  Also print some fields as %08lx.
5252         (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
5253         Win32Version.
5255 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
5257         * xcoff.h: Rename to xcoff-target.h
5258         * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
5259         * coff-rs6000.c: Ditto.
5260         * coff64-rs6000.c: Ditto.
5261         * coff-pmac.c: Ditto.
5262         * Makefile.in: Regenerate.
5264 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
5266         * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
5267         Change U802TOC64MAGIC to U803XTOCMAGIC.
5269 2000-05-04  Michael Snyder  <msnyder@seadog.cygnus.com>
5271         * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
5272         * bfd-in.h: Prototype bfd_elf_get_arch_size.
5273         * bfd-in2.h: Prototype bfd_elf_get_arch_size.
5275 2000-05-04  Alan Modra  <alan@linuxcare.com.au>
5277         * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
5279 2000-05-03  Martin v. L�öwis  <loewis@informatik.hu-berlin.de>
5281         * elflink.h (elf_link_add_object_symbols): Reset dynindx for
5282         hidden and internal symbols.
5283         (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
5284         visibility.
5285         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
5286         assign a PLT or GOT entry to symbols with hidden and
5287         internal visibility.
5289 2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
5291         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
5292         the .bss section.
5293         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5295 2000-05-02  H.J. Lu  <hjl@gnu.org>
5297         * elf.c (prep_headers): Use ELFOSABI_NONE instead of
5298         ELFOSABI_SYSV.
5300 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
5302         * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
5303         * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo.  Regenerate
5304         dependencies.
5305         * Makefile.in: Regenerate.
5307 2000-05-01  Jim Wilson  <wilson@cygnus.com>
5309         * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
5310         (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
5311         (BFD64_BACKENDS): Delete coff-ia64.lo.  Add efi-app-ia64.lo.
5312         (BFD64_BACKENDS_CFILES): Delete coff-ia64.c.  Add efi-app-ia64.c.
5313         * Makefile.in: Rebuild.
5315 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
5317         * config.bfd: Re-enable elf32-hppa.  It now compiles, even if it
5318         doesn't work very well.
5320         * elf-hppa.h (elf_hppa_internal_shdr): Define.
5321         (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
5322         Set hdr->s_type to 1 if ARCH_SIZE == 32.
5323         (_bfd_elf_hppa_gen_reloc_type): Add prototype.
5324         (elf_hppa_info_to_howto): Likewise.
5325         (elf_hppa_info_to_howto_rel): Likewise.
5326         (elf_hppa_reloc_type_lookup): Likewise.
5327         (elf_hppa_is_local_label_name): Likewise.
5328         (elf_hppa_fake_sections): Likewise.
5329         (elf_hppa_final_write_processing): Likewise.
5330         (elf_hppa_howto_table): Fully initialise all entries.
5331         (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
5332         (elf_hppa_info_to_howto): Likewise.
5333         (elf_hppa_info_to_howto_rel): Likewise.
5334         (elf_hppa_reloc_type_lookup): Likewise.
5335         (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
5336         elf_hppa_unmark_useless_dynamic_symbols,
5337         elf_hppa_remark_useless_dynamic_symbols,
5338         elf_hppa_record_segment_addrs, elf_hppa_final_link,
5339         elf_hppa_relocate_section, elf_hppa_final_link_relocate,
5340         elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
5341         elf32-hppa.c mess is cleaned up.
5342         (elf_hppa_final_link_relocate): Make insn and r_type unsigned
5343         int.  Delete r_field.  In case R_PARISC_PCREL21L, don't set
5344         r_field then call hppa_field_adjust inline func with variable
5345         r_field arg, instead call hppa_field_adjust with fixed arg.
5346         In case R_PARISC_PCREL22F, don't set r_field.
5347         (elf_hppa_relocate_insn): Change args and return type to unsigned
5348         int.  Call re_assemble_* funcs to do the work.
5350         * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
5351         sign extending.
5353         * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
5354         extending.
5355         (sign_extend): Mask first before sign extending.
5356         (low_sign_extend): Rewrite without condition expression.
5357         (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
5358         dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
5359         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5360         assemble_17, assemble_21, sign_unext, low_sign_unext): Return
5361         result as function return value rather than through pointer arg.
5362         Accept unsigned int args, and return unsigned int.
5363         (re_assemble_3): New.  Combines function of dis_assemble_3 with
5364         re-assembly of opcode and immediate.
5365         (re_assemble_12): Likewise.
5366         (re_assemble_16): Likewise.
5367         (re_assemble_17): Likewise.
5368         (re_assemble_21): Likewise.
5369         (re_assemble_22): Likewise.
5370         (hppa_field_adjust): Rewrite and document, paying attention to
5371         size of types and signed/unsigned issues.
5372         (get_opcode): Shift before masking.
5373         (FDLW): Rename to FLDW.
5374         (bfd_hppa_insn2fmt): Change arg to unsigned int.  Delete fmt.
5375         (hppa_rebuild_insn): Change args and return value to unsigned
5376         int.  Make use of re_assemble_*.  Correct case 11.
5378         * dep-in.sed: Handle ../opcodes/.
5379         * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
5380         elf64-hppa.h, hppa_stubs.h, xcoff.h.
5381         (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
5382         Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
5383         elfarm-nabi.lo dependencies outside of auto-dependency area.
5384         Regenerate dependencies.
5385         * Makefile.in: Regenerate.
5387         * configure.in (TRAD_HEADER): Test non-null before
5388         AC_DEFINE_UNQUOTED.
5389         * configure: Regenerate.
5391         * reloc.c: Fix mis-spelling in comment.
5393 2000-05-01  Alan Modra  <alan@linuxcare.com.au>
5395         * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
5396         * vms.c (vms_openr_next_archived_file): Return NULL.
5398 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
5400         * coffcode.h Copy changes mistakenly done to libcoff.h in
5401         4/24/2000 patch.
5403 2000-04-29  Andreas Jaeger  <aj@suse.de>
5405         * libbfd-in.h: Correctly check GCC version.
5406         * bfd-in.h: Likewise.
5407         * libhppa.h: Likewise.
5408         * libbfd.h: Regenerate.
5409         * bfd-in2.h: Regenerate.
5411 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
5413         * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
5414         coffdu-rs6000.{lo,c}.
5415         (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
5416         on xcoff.h
5417         * Makefile.in: Regenerate.
5418         * xcoff.h: New file.
5419         * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
5420         * coff-rs6000.c: Move all declarations and defines that are
5421         common to the xcoff backends into xcoff.h
5422         * coff64-rs6000.c: Ditto,
5424 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
5426         * coff-mips.c (mips_ecoff_backend_data):  Add initialization of
5427         _bfd_coff_force_symnames in strings and
5428         _bfd_coff_debug_string_prefix_length to their default values.
5429         * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
5431 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
5433         * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
5434         _bfd_coff_force_symnames in strings and
5435         _bfd_coff_debug_string_prefix_length to their default values.
5437 2000-04-27  Alan Modra  <alan@linuxcare.com.au>
5439         * elf32-m68k.c (elf_m68k_gc_sweep_hook):  Return if dynobj NULL.
5440         Check local_got_refcounts before dereferencing.
5442         * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
5443         before deciding we don't need R_PPC_PLT32 relocation.
5444         (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
5445         dereferencing.
5447         * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
5449         * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
5450         .plt entries.
5451         (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
5452         (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
5453         (elf_i386_relocate_section): Allow for .plt to go missing.
5454         (elf_i386_finish_dynamic_symbol): Use same test to decide if we
5455         can use a relative reloc for got as elf_i386_relocate_section.
5456         (bfd_elf32_bfd_final_link): Define to use gc form of final link.
5458 2000-04-26  Clinton Popetz  <cpopetz@cygnus.com>
5460         * config.bfd: Remove extraneous bfd_powerpc_64_arch.
5462 2000-04-24  Clinton Popetz  <cpopetz@cygnus.com>
5464         * Makefile.am (coff64-rs6000.lo): New rule.
5465         * Makefile.in: Regenerate.
5466         * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
5467         xcoff_is_local_label_name, xcoff_rtype2howto,
5468         xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
5469         xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
5470         xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
5471         (NO_COFF_SYMBOLS): Define.
5472         (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
5473         xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
5474         internally.
5475         (MINUS_ONE): New macro.
5476         (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5477         relocation.
5478         (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5479         coff_SWAP_aux_out): Map to the new functions.
5480         * coff64-rs6000.c: New file.
5481         * libcoff.h (bfd_coff_backend_data): Add new fields
5482         _bfd_coff_force_symnames_in_strings and
5483         _bfd_coff_debug_string_prefix_length.
5484         (bfd_coff_force_symnames_in_strings,
5485         bfd_coff_debug_string_prefix_length): New macros for above fields.
5486         * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5487         Set machine to 620 for XCOFF64.  Use bfd_coff_swap_sym_in instead
5488         of using coff_swap_sym_in directly.
5489         (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5490         (coff_set_flags) Set magic for XCOFF64.
5491         (coff_compute_section_file_positions): Add symbol name length to
5492         string section length if bfd_coff_debug_string_prefix_length is
5493         true.
5494         (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5495         (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5496         using coff_swap_lineno_in directly.
5497         (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5498         and _bfd_coff_debug_string_prefix_length fields.
5499         * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5500         symbol names into strings table when
5501         bfd_coff_force_symnames_in_strings is true.
5502         * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5503         SET_RELOC_VADDR): New macros.
5504         (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5505         (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5506         code.
5507         (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5508         changes within RS6000COFF_C specific code.
5509         (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5510         MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5511         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5512         Extend existing hack on target name.
5513         * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5514         target name.
5515         * coff-tic54x.c (ticof): Keep up to date with new fields
5516         in bfd_coff_backend_data.
5517         * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5518         targ_selvecs to include rs6000coff64_vec for rs6000.
5519         * configure.in: Add rs6000coff64_vec case.
5520         * cpu-powerpc.c: New bfd_arch_info_type.
5522 2000-04-24  Jeffrey A Law  (law@cygnus.com)
5524         * config.bfd: Only disable elf32-hppa vectors, not all of the
5525         BSD and OSF configuration support.  Provide (disabled) clauses
5526         for PA64 support.
5527         * configure.in: Add clause for PA64 support.
5528         * configure: Rebuilt.
5530         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5531         (bfd_elf64_hppa_vec): Declare.
5533         * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5534         (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5535         (elf64-hppa.lo): Add dependencies.
5536         * Makefile.in: Rebuilt.
5538         * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5540 2000-04-24  Jason Eckhardt  <jle@cygnus.com>
5542         * libhppa.h (dis_assemble_16): New function.
5543         (pa_arch): Added pa20w element.
5545 2000-04-24  Ulrich Drepper  <drepper@cygnus.com>
5547         * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5548         bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5549         bfd_elf64_slurp_reloc_table.
5551         * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5552         definitions to get external names.
5553         (elf_write_relocs): Renamed from write_relocs and make global.
5554         (elf_slurp_reloc_table): Make global.
5555         (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5557         * archive.c (hpux_uid_gid_encode): New function.
5558         (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5559         defined and the ID is greater than 99999.
5560         (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5561         special uid/gid fields into 32 bit values.
5563 2000-04-21  Matthew Green  <mrg@cygnus.com>
5565         * config.bfd: Add NetBSD/sparc64 support.
5567 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
5568                           David Mosberger  <davidm@hpl.hp.com>
5569                           Timothy Wall <twall@cygnus.com>
5570                           Jim Wilson  <wilson@cygnus.com>
5572         * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5573         (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5574         (BFD64_BACKENDS): Add elf64-ia64.lo.
5575         (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5576         (cpu-ia64.lo, elf64-ia64.lo): New rules.
5577         * Makefile.in: Rebuild.
5578         * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5579         (bfd_ia64_arch): Declare.
5580         (bfd_archures_list): Add bfd_ia64_arch.
5581         * bfd-in2.h: Rebuild.
5582         * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5583         * configure: Rebuild.
5584         * configure.host: (ia64-*-linux*): New host.
5585         * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5586         bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5587         * elf.c (prep_headers): Add bfd_arch_ia64.
5588         * libbfd.h: Rebuild.
5589         * reloc.c: Add IA-64 relocations.
5590         * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5591         Declare.
5592         (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5593         * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5595 2000-04-21  Richard Henderson  <rth@cygnus.com>
5597         * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5598         contents when performing a partial link.
5599         (bfd_elf_d30v_reloc_21): Likewise.
5601 2000-04-20  H.J. Lu  <hjl@gnu.org>
5603         * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5604         patch to symbols defined by a shared object.
5605         * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5607 2000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5609         K&R compiler fixes.
5610         * dwarf2.c (concat_filename): Avoid string literal concatenation.
5611         * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5613 Mon Apr 17 19:14:36 2000  David Mosberger  <davidm@hpl.hp.com>
5615         * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5616         (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5617         (coff-ia64.lo): Add dependency.
5618         * Makefile.in: Regenerate.
5619         * coff-ia64.c: New file.
5620         * efi-app-ia32.c: Ditto.
5621         * efi-app-ia64.c: Ditto.
5622         * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5623         (coff_set_flags): Ditto.
5624         (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5625         * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5626         * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5627         * configure: Regenerate.
5628         * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5629         (PUT_OPTHDR_IMAGE_BASE): Ditto.
5630         (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5631         (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5632         (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5633         (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5634         (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5635         (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5636         (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5637         (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5638         (GET_PDATA_ENTRY): Ditto.
5639         * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5640         data_start.  Use above macros to read fields that are 64 bit wide for
5641         COFF_WITH_PEP64.  Don't truncate entry and text_start to 32 bits.
5642         (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5643         FileAlignment and SectionAlignment to minimum alignment if they
5644         are zero.
5645         (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5646         Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5647         (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5648         Use above macros to write fields that are 64 bit wide for
5649         COFF_WITH_PEP64.
5650         (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5651         5*4 otherwise.  This should be right for IA-32 and IA-64, but may
5652         be wrong for platforms.  Use PDATA_ROW_SIZE instead of hardcoded
5653         value of 20 bytes.  Modify printing for COFF_WITH_PEP64 to print
5654         begin address, end address, and unwind info address only.  Use
5655         GET_PDATA_ENTRY() to read .pdata entries.  Use fprintf_vma() to
5656         print addresses.
5657         (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5658         HIGH3ADJ relocation names.
5659         (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5660         * targets.c: Declare bfd_efi_app_ia32_vec and
5661         bfd_efi_app_ia64_vec.
5662         (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5663         bfd_efi_app_ia64_vec.
5665 2000-04-17  Timothy Wall  <twall@cygnus.com>
5667         * bfd-in2.h: Add prototypes for tic54x load page access.
5668         * bfd-in.h: Regenerate.
5669         * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5670         in customized _set_arch_mach function.
5671         * coffcode.h (coff_set_alignment_hook): Set section load page if
5672         the appropriate macro is defined.
5673         (write_object_contents): Read section load page.
5675 2000-04-13  Alan Modra  <alan@linuxcare.com.au>
5677         * elf32-hppa.h: Update copyright date.
5679         * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5680         * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5682         * elf32-d30v.c (MAX32): Don't use LL suffix.
5683         (MIN32): Define in terms of MAX32.
5684         (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5686         * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5687         expression.
5689         * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5691 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
5693         * dep-in.sed: Match space before file name, not after.
5694         * Makefile.am: Regenerate dependencies.
5695         * Makefile.in: Regenerate.
5697         * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5698         case, allow address wrap-around stupidly removed 2000-03-17.  Sign
5699         extend without an if statement.
5701 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
5703         * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5704         signed quantites.
5705         * elf32-mips.c (gprel16_with_gp): Likewise.
5706         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
5707         here using -0x40000, not (int)0xfffc0000.
5708         (elf32_hppa_size_of_stub): Likewise.
5710 2000-04-11  Timothy Wall  <twall@cygnus.com>
5712         * coff-tic54x.c: Now builds with all targets.
5713         * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
5714         * Makefile.in: Regenerate.
5715         * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
5716         unitialized variable.
5718 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
5720         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
5721         --enable-build-warnings option.
5722         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5723         * Makefile.in, configure: Re-generate.
5725 2000-04-07  Nick Clifton  <nickc@cygnus.com>
5727         * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
5728         BFD_RELOC_THUMB_PCREL_BLX.
5730         * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5731         R_ARM_XPC25 and R_ARM_THM_PC22.
5733         * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
5734         R_ARM_XPC25 and R_ARM_THM_XPC22.
5735         (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
5736         R_ARM_[XPC25|THM_XPC22].
5738         * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
5739         elf/arm-oabi.h to elf/arm.h
5741         * Makefile.am: Fix dependency for elfarm-oabi.c
5742         * Makefile.in: Regenerate.
5744         * bfd-in2.h: Regenerate.
5745         * libbfd.h: Regenerate.
5747 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
5749         * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
5750         and restore it on failure.  Release newly allocated tdata on
5751         failure.
5753 Fri Apr  7 11:33:47 2000  Jim Wilson  <wilson@cygnus.com>
5755         * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
5756         (decode_line_info): Set it.  Report error if unit->line_offset is
5757         equal to or larger than it.
5759 2000-04-07  Timothy Wall  <twall@cygnus.com>
5761         * targets.c: Added vecs for tic54x.
5762         * reloc.c: Added relocs for tic54x.
5763         * libbfd.h: Regenerated.
5764         * configure: Add TI COFF vecs for tic54x.
5765         * configure.in: Ditto.
5766         * config.bfd (targ_cpu): Recognize new tic54x target.
5767         * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
5768         * bfd-in2.h: Add tic54x target and relocations.
5769         * Makefile.am, Makefile.in: Add tic54x target.
5770         * archures.c (bfd_archures_list): Add tic54x target.
5771         * coff-tic54x.c: New.
5772         * cpu-tic54x.c: New.
5774 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
5776         * elfcore.h (elf_core_file_p): call backend_object_p which
5777         thereby gets an opportunity to update the arch/machine type.
5779 2000-04-06  Timothy Wall  <twall@cygnus.com>
5781         * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
5782         class.  Handle SEC_CLINK and SEC_BLOCK flags.
5783         * section.c: Add SEC_CLINK and SEC_BLOCK flags.
5784         * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
5786 2000-04-06  Nick Clifton  <nickc@cygnus.com>
5788         * elf32-arm.h (elf32_arm_set_private_flags): Only check for
5789         EF_INTERWORK if this is an unknown EABI.
5790         (elf32_arm_merge_private_bfd_data): Check EABI version
5791         numbers.  Only check EF_xxx flags if the EABI version number
5792         is unknown.
5793         (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
5794         if the EABI version number is unknown.
5795         (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
5796         if the EABI version number is unknown.
5798 Wed Apr  5 22:04:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5800         * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
5801         BFD_RELOC_SH_LOOP_END.
5802         * elf32-sh.c (sh_elf_howto_tab): Change special_func to
5803         sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
5804         Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
5805         (sh_elf_reloc_loop): New function.
5806         (sh_elf_reloc): No need to test for always-to-be-ignored relocs
5807         any more.
5808         (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
5809         (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
5810         * bfd-in2.h, libbfd.h: Regenerate.
5812 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
5814         * po/bfd.pot: Regenerate.
5816         * Makefile.am: Remove extraneous mkdep comment.
5817         (MKDEP): Use gcc -MM rather than mkdep.
5818         (DEP): Quote when passing vars to sub-make.  Add warning
5819         message to end.
5820         (DEP1): Rewrite for "gcc -MM".
5821         (CLEANFILES): Add DEP2.
5822         Update dependencies.
5823         * Makefile.in: Regenerate.
5825 2000-04-03  Kevin Buettner  <kevinb@redhat.com>
5827         * configure.in: Added corefile support for AIX 4.3.  In particular,
5828         AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
5829         compiling rs6000-core.c.
5830         * configure: Regenerated.
5832 2000-04-03  H.J. Lu  <hjl@gnu.org>
5834         * cache.c (bfd_open_file): Unlink the output file only if
5835         it has non-zero size.
5837 2000-04-01  Ken Block USG  <block@zk3.dec.com>
5839         * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
5840         relative relocations for non-loaded sections in shared objects.
5841         (elf64_alpha_check_relocs): Similarly.
5843 Mon Apr  3 13:37:15 2000  Hans-Peter Nilsson  <hp@axis.com>
5845         * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
5846         BFD_RELOC_16 to switch for extended relocs.
5847         (MY_swap_ext_reloc_in): New.
5848         (MY_swap_ext_reloc_out): New.
5849         (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
5850         than NAME(aout,swap_ext_reloc_in) for extended relocs.
5851         (NAME(aout,squirt_out_relocs)): Similarly use
5852         MY_swap_ext_reloc_out.
5853         (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
5855 2000-04-03  Kazu Hirata  <kazu@hxi.com>
5857         * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
5858         the R_PCRWORD_B case.
5860 2000-03-31  Thomas de Lellis  <tdel@wrs.com>
5862         * srec.c : Set CHUNK size to 16 bytes to prevent download failures
5863         on some targets.
5864         * ihex.c : Ditto.
5866 Wed Mar 30 15:28:00 2000  Donald Lindsay  <dlindsay@cygnus.com>
5868         * elf32-m32r.c (m32r_elf_generic_reloc): new function.  All
5869         HOWTO references to bfd_elf_generic_reloc, that have
5870         partial_inplace == true, now use the new function.  The function
5871         is based on the recent rewrite of m32r_elf_lo16_reloc(), and
5872         extends its fixes to the R_M32R_{16,24,32} relocs.
5873         The new logic in m32r_elf_lo16_reloc() has been removed, and
5874         it instead calls the new routine to obtain that functionality.
5876 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
5878         * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
5879         elf32_avr_check_relocs, avr_final_link_relocate,
5880         elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
5881         elf32_avr_object_p): Add prototypes.
5882         (elf32_avr_gc_mark_hook): Add default for h->root.type.
5883         (bfd_elf_avr_final_write_processing): Make static.
5885 2000-03-27  Denis Chertykov  <denisc@overta.ru>
5887         * cpu-avr.c: New file.  BFD support routines for AVR architecture.
5888         * archures.c (bfd_architecture): Add AVR architecture.
5889         (bfd_archures_list): Add reference to AVR architecture info.
5890         * elf.c (prep_headers): Handle bfd_arch_avr.
5891         * reloc.c: Add various AVR relocation enums.
5892         * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
5893         list.
5894         * Makefile.am: Add support for AVR elf.
5895         * configure.in: Likewise.
5896         * config.bfd: Likewise.
5897         * Makefile.in: Regenerate.
5898         * configure: This too.
5899         * bfd-in2.h: And this.
5900         * libbfd.h: And this.
5902 2000-03-24  H.J. Lu  <hjl@gnu.org>
5904         * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
5905         (elf64_alpha_find_reloc_at_ofs): Likewise.
5907 2000-03-17  Alan Modra  <alan@linuxcare.com.au>
5909         * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
5910         flag an overflow if the bitfield is outside -2**n to 2**n-1.  The
5911         allowable range used to be -2**(n-1) to 2**n-1.
5912         * reloc.c (_bfd_relocate_contents): Same here.  Also replace
5913         "boolean overflow" with "bfd_reloc_status_type flag".
5915 2000-03-14  Doug Evans  <dje@casey.transmeta.com>
5917         * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5919 2000-03-14  Kazu Hirata  <kazu@hxi.com>
5921         * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5922         of shrinks properly, including the last reloc.
5924 2000-03-13  Kazu Hirata  <kazu@hxi.com>
5926         * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5927         check for R_MOVL2.
5929 2000-03-11  Alan Modra  <alan@linuxcare.com.au>
5931         * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5932         a format mismatch rather than an "error" from bfd_read such as
5933         bfd_error_file_truncated.
5935 2000-03-10  Geoff Keating  <geoffk@cygnus.com>
5937         * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5938         sign-extension and big-endian compensation for
5939         R_MIPS_64 even in ld -r.
5941 2000-03-10  Geoffrey Keating  <geoffk@cygnus.com>
5943         * elf32-mips.c (mips_elf_next_relocation): Rename from
5944         mips_elf_next_lo16_relocation, and generalize to look
5945         for any relocation type.
5946         (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5947         (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5948         (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5949         (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5950         (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5951         (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5952         (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5953         (mips_rtype_to_howto): Likewise.
5954         (mips_elf_calculate_relocation): Handle new relocs.
5955         (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5956         are paired.  The addend for R_MIPS_GNU_REL16_S2
5957         is shifted right two bits.
5959 2000-03-10  Alan Modra  <alan@linuxcare.com.au>
5961         * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5962         comment, and ensure it doesn't happen again.
5963         (bfd_install_relocation): Same here.
5964         (_bfd_relocate_contents): Don't bother assigning unused signmask
5965         shift result.  Fix typos in comments.
5966         Remove trailing whitespace throughout file.
5968 2000-03-07  Doug Evans  <dje@casey.transmeta.com>
5970         * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5971         * bfd-in2.h: Rebuild.
5973 2000-03-06  Nick Clifton  <nickc@cygnus.com>
5975         * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5976         sym_ptr_ptr fields.
5977         (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5978         (SIZEOF_ILF_STRINGS): Redefine.
5979         (pe_ILF_make_a_symbol-reloc): New function.  Creates a symbol
5980         relative reloc, as opposed to a section relative reloc.
5981         (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
5982         not C_LABEL.
5983         Add length of symbol's prefix to string pointer.
5984         Store a pointer to the symbol in the symbol pointer table.
5985         (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
5986         Initialise the symbol pointer table.
5987         Store the hint in the Hint/Name table.
5988         Make the jump reloc be symbol realtive, not section relative.
5989         Create an import symbol for imported code.
5991 2000-03-06  Catherine Moore  <clm@cygnus.com>
5993         * elf.c (swap_out_syms):  Check for null type_ptr.
5995 2000-03-01  Hans-Peter Nilsson  <hp@axis.com>
5997         * aout-target.h (MY(write_object_contents)): Remove unused
5998         and unusable "#if CHOOSE_RELOC_SIZE".
5999         * pc532-mach.c (MY(write_object_contents)): Ditto.
6000         * netbsd.h (MY(write_object_contents)): Ditto.
6001         * hp300hpux.c (MY(write_object_contents)): Ditto.
6002         * freebsd.h (MY(write_object_contents)): Ditto.
6003         * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
6005 2000-02-29  H.J. Lu  <hjl@gnu.org>
6007         * peicode.h (jtab): Make it static.
6009         * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
6010         defined and COFF_IMAGE_WITH_PE is not defined.
6011         (_bfd_sh_align_load_span): Defined as sh_align_load_span if
6012         COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
6014 2000-03-01  Nick Clifton  <nickc@cygnus.com>
6016         * coff-arm.c (bfd_arm_process_before_allocation): Make
6017         'symndx' signed to prevent compile time warning.
6019         * coff-mcore.c: Remove unused prototype for pe_object_p.
6021         * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
6022         functions that are not used when COFF_IMAGE_WITH_PE is
6023         defined.
6024         (struct sh_opcode): Change type of 'flags' field to unsigned
6025         long so that it can hold the USESAS flag.
6027         * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
6029         * elf-m10300.c (mn10300_elf_relax_section): Initialise
6030         'sym_sec'.
6032         * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
6033         parameters.
6034         Remove unusued variables and code.
6035         (elf_backend_add_symbol_hook): Fix prototype.
6037         * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
6038         'srelgot'.
6040         * elf32-mcore.c (mcore_elf_relocate_section): Initialise
6041         'oldinst'.
6043         * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
6044         parameters.
6045         Remove unusued variables and code.
6046         (elf_backend_add_symbol_hook): Fix prototype.
6048         * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
6050         * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
6051         to unused function parameter.
6053         * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
6054         parameters.
6055         Use EMPTY_HOWTO to initialise empty howto slots.
6056         Remove unused variables.
6058         * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
6060 2000-03-01  H.J. Lu  <hjl@gnu.org>
6062         * aoutx.h (aout_link_input_section_std): Pass "true" to
6063         the undefined_symbol callback.
6064         (aout_link_input_section_ext): Likewise.
6065         * bout.c (get_value): Likewise.
6066         * coff-a29k.c (coff_a29k_relocate_section): Likewise.
6067         * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
6068         Likewise.
6069         (alpha_relocate_section): Likewise.
6070         * coff-arm.c (coff_arm_relocate_section): Likewise.
6071         * coff-i960.c (coff_i960_relocate_section): Likewise.
6072         * coff-mcore.c (coff_mcore_relocate_section): Likewise.
6073         * coff-mips.c (mips_relocate_section): Likewise.
6074         * coff-ppc.c (coff_ppc_relocate_section): Likewise.
6075         * coff-sh.c (sh_relocate_section): Likewise.
6076         * coff-tic80.c (coff_tic80_relocate_section): Likewise.
6077         * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
6078         * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
6079         * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
6080         * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
6081         * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
6082         * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
6083         * elf32-i370.c (i370_elf_relocate_section): Likewise.
6084         * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
6085         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6086         * elf32-sh.c (sh_elf_relocate_section): Likewise.
6087         * elf32-v850.c (v850_elf_relocate_section): Likewise.
6088         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
6089         * elflink.h (elf_link_output_extsym): Likewise.
6090         * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
6091         * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
6092         * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
6094         * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
6095         undefined_symbol callback when building shared library with
6096         -Bsymbolic and undefined symbols are allowed. Otherwise, pass
6097         "true".
6098         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6099         * elf32-i386.c (elf_i386_relocate_section): Likewise.
6100         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6101         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6102         (elf32_mips_get_relocated_section_content): Likewise.
6103         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6104         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6105         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6106         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6108 2000-02-28  Nick Clifton  <nickc@cygnus.com>
6110         * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
6111         * Makefile.in: Regenerate.
6113         * configure.in: Add support for mips and sh pe vectors.
6114         * configure: regenerate.
6116         * config.bfd: Add support for arm-wince, mips-pe and sh-pe
6117         targets.
6119         * targets.c: Add mips and sh pe vectors.
6121         * libpei.h (coff_final_link_postscript): Only define if not
6122         already defined.
6124         * coffcode.h: Add support for WinCE magic numbers.
6126         * peigen.c (pe_print_reloc): Update comment and rearrange
6127         appending of newline character.
6129         * peicode.h: Add support for Image Library Format.
6130         (pe_ILF_vars): Structure containing data used by ILF code.
6131         (pe_ILF_make_a_section): New function.  Create a section based
6132         on ILF data.
6133         (pe_ILF_make_a_reloc): New function.  Create a reloc based on
6134         ILF data.
6135         (pe_ILF_make_a_symbol): New function.  Create a symbol based
6136         on ILF data.
6137         (pe_ILF_save_relocs): New function.  Store the relocs created
6138         by pe_ILF_make_a_reloc in a section.
6139         (pe_ILF_build_a_bfd): New function.  Create a BFD describing
6140         an ILF object.
6141         (pe_ILF_object_p): New function.  Return a bfd_target pointer
6142         for an ILF object.
6143         (pe_bfd_object_p): If an ILF object is detected call
6144         pe_ILF_object_p on it.
6146         * coff-arm.c: Add support for WinCE relocs which are different
6147         from normal ARM COFF relocs.
6148         * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
6150         * coff-sh.c: Add support for sh-pe target.
6151         * pe-sh.c: New file.  Support code for sh-pe target.
6152         * pei-sh.c: New file.  Support code for sh-pe target.
6154         * pe-mips.c: New file.  Support code for mips-pe target.
6155         * pei-mips.c: New file.  Support code for mips-pe target.
6157 2000-02-27  Jakub Jelinek  <jakub@redhat.com>
6159         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
6160         architecture if the object causing the bump is dynamic.
6161         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
6162         and also don't it for memory ordering.
6163         (sparc64_elf_write_relocs): Take src_rela out of the loop.
6165 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
6167         * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
6168         calling bfd_get_section_size_before_reloc.
6169         (decode_line_info): Likewise.
6170         (_bfd_dwarf2_find_nearest_line): Likewise.
6172 2000-02-27  Eli Zaretskii  <eliz@is.elta.co.il>
6174         * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
6175         name of the libtool directory.
6176         * Makefile.in: Rebuild.
6178 Fri Feb 25 18:39:26 2000  Rodney Brown (RodneyBrown@pmsc.com)
6180         * som.c (SOM_HOWTO): Define.
6181         (som_hppa_howto_table): Use it.
6183 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
6185         * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
6187         * config.bfd: Enable 64 bit support for Solaris7+/sparc.
6189 2000-02-24  Catherine Moore  <clm@cygnus.com>
6191         * som.c (som_misc_symbol_info):  Add field
6192         secondary_def.
6193         (som_bfd_derive_misc_symbol_info):  Initialize
6194         secondary_def.
6195         (som_build_and_write_symbol_table): Keep track
6196         of secondary_def field.
6197         (som_slurp_symbol_table): Set BSF_WEAK symbol flag
6198         if secondary_def field is set.
6199         (som_bfd_ar_write_symbol_stuff): Initialize
6200         secondary_def.
6202 2000-02-23  Stephane Carrez  <stcarrez@worldnet.fr>
6204         * dwarf2.c (read_address): Read 16-bits addresses.
6205         (parse_comp_unit): Accept addr_size == 2.
6207 2000-02-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
6209         * bfd-in.h: Update copyright date.
6211 2000-02-23  Linas Vepstas <linas@linas.org>
6213         * cpu-i370.c: New file.
6214         * elf32-i370.c:  New file.
6215         * archures.c (enum bfd_architecture): Add bfd_arch_i370.
6216         (bfd_i370_arch): New.
6217         (bfd_archures_list): Add bfd_i370_arch.
6218         * elf.c (prep_headers): Add bfd_arch_i370.
6219         * Makefile.am: Add support for IBM 370 elf.
6220         * config.bfd: Likewise.
6221         * configure.in: Likewise.
6222         * libbfd.h (bfd_reloc_code_real_names): Likewise.
6223         * reloc.c (bfd_reloc_code_type): Likewise.
6224         * targets.c: Likewise.
6226         * Makefile.in: Regenerate.
6227         * configure: Regenerate.
6228         * bfd-in2.h: Regenerate.
6230 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
6232         * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
6233         invalid relocation types, and change them to R_386_NONE.
6235 2000-02-22  H.J. Lu  <hjl@gnu.org>
6237         * elflink.h (elf_link_add_object_symbols): If a version symbol is
6238         not defined, don't add a second ELF_VER_CHR.
6240         * elflink.h (elf_bfd_final_link): Call output_extsym for global
6241         symbols converted to local symbols even when stripping all
6242         symbols.
6243         (elf_link_output_extsym): Process global symbols converted to
6244         local symbols even if they are being stripped.
6246 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
6248         * archures.c (bfd_octets_per_byte): Return unsigned int.
6249         (bfd_arch_mach_octets_per_byte): Ditto.
6250         * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
6251         comparison warning.
6252         * section.c (bfd_get_section_size_before_reloc): Quell signed
6253         vs. unsigned comparison warning.
6254         (bfd_get_section_size_after_reloc): Same here.  Fix parentheses too.
6255         * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
6256         change.  What was I thinking?
6257         * bfd-in2.h: Regenerate.
6259         * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
6260         (elf_gc_sections): Same here.
6261         (elf_gc_common_finalize_got_offsets): And here.
6263 2000-02-21  Ian Lance Taylor  <ian@zembu.com>
6265         ELF HPPA doesn't work at present; remove it until it does.
6266         * config.bfd: Comment out setting targ_defvec to
6267         bfd_elf32_hppa_vec.
6268         * Makefile.am: Rebuild dependencies.
6269         (BFD32_BACKENDS): Remove elf32-hppa.lo.
6270         (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
6271         (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
6272         * Makefile.in: Rebuild.
6273         * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
6275 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
6277         * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
6278         is no bfd_free().  Revert bfd_free part of previous change.
6280 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
6282         * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
6283         arrays.
6284         (coff_compute_section_file_positions): Use bfd_free to pair
6285         bfd_malloc.
6286         (coff_write_object_contents): Likewise.
6288         * coff-rs6000.c (xcoff_howto_table_16): New variable.
6289         (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
6291 2000-02-18  Ulrich Drepper  <drepper@cygnus.com>
6293         * coff-rs6000.c (XCOFFARMAGBIG): New macro.
6294         (xcoff_ar_file_hdr_big): New structure.
6295         (SIZEOF_AR_FILE_HDR_BIG): New macro.
6296         (xcoff_ar_hdr_big): New structure.
6297         (SIZEOF_AR_HDR_BIG): New macro.
6298         (xcoff_big_format_p): New macro.
6299         (xcoff_ardata_big): New macro.
6300         (arch_xhdr_big): New macro.
6301         (xcoff_slurp_armap): Handle large archives.
6302         (xcoff_archive_p): Detect large archives.
6303         (xcoff_read_ar_hdr): Handle large archives.
6304         (xcoff_openr_next_archived_file): Handle large archives.
6305         (xcoff_generic_stat_arch_elt): Handle large archives.
6306         (xcoff_write_armap_old): Rename from xcoff_write_armap.
6307         (xcoff_write_armap_big): New function.
6308         (xcoff_write_armap): New function, dispatch to _old or _big.
6309         (xcoff_write_archive_contents_old): Rename from
6310         xcoff_write_archive_contents.
6311         (xcoff_write_archive_contents_big): New function.
6312         (xcoff_write_archive_contents): New function, dispatch to _old or
6313         _big.
6315 2000-02-18  Richard Henderson  <rth@cygnus.com>
6317         * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
6318         and hide_symbol members.
6319         (elf_link_hash_copy_indirect): Remove.
6320         (elf_link_hash_hide_symbol): Remove.
6321         (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
6322         and elf_backend_hide_symbol.
6323         (_bfd_elf_link_hash_copy_indirect): Declare.
6324         (_bfd_elf_link_hash_hide_symbol): Declare.
6325         * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
6326         (_bfd_elf_link_hash_hide_symbol): Likewise.
6327         (_bfd_elf_link_hash_table_init): Don't init killed members.
6328         * elflink.h (elf_link_add_object_symbols): Use the bed function
6329         pointers not elf_link_hash_{copy_indirect,hide_symbol}.
6330         (elf_link_assign_sym_version): Likewise.
6331         * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
6332         (elf_backend_hide_symbol): Likewise.
6333         (elfNN_bed): Update for new members.
6335 2000-02-17  Kevin Buettner  <kevinb@redhat.com>
6337         * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
6338         STACK_END_ADDR): Define for new core file format.
6339         (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
6340         for handling the vagaries of the various core file structures used
6341         by AIX over the years.
6342         (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
6343         Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
6344         core_dumpx structure.
6346 Thu Feb 17 00:04:48 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6348         * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
6349         (bfd_mach_sh3_dsp): Likewise.
6350         (bfd_mach_sh4): Reinstate.
6351         (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
6352         * bfd-in2.h: Regenerate.
6353         * coff-sh.c (struct sh_opcode): flags is no longer short.
6354         (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
6355         (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
6356         (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
6357         (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
6358         (sh_opcodes): No longer const.
6359         (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
6360         (sh_insn_uses_reg): Check for USESAS and USESR8.
6361         (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
6362         (_bfd_sh_align_load_span): Return early for SH4.
6363         Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
6364         Take into account that field b of a parallel processing insn
6365         could be mistaken for a separate insn.
6366         * cpu-sh.c (arch_info_struct): New array elements for
6367         sh2, sh-dsp and sh3-dsp.
6368         Reinstate element for sh4.
6369         (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
6370         (SH4_NEXT): Reinstate.
6371         (SH3_NEXT, SH3E_NEXT): Adjust.
6372         * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
6373         * elf32-sh.c (sh_elf_set_private_flags): New function.
6374         (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
6375         (sh_elf_merge_private_data): New function.
6376         (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
6377         (bfd_elf32_bfd_copy_private_bfd_data): Define.
6378         (bfd_elf32_bfd_merge_private_bfd_data): Change to
6379         sh_elf_merge_private_data.
6381 2000-02-13  Richard Henderson  <rth@cygnus.com>
6383         * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
6384         hide_symbol members.
6385         (elf_link_hash_copy_indirect): New.
6386         (elf_link_hash_hide_symbol): New.
6387         * elflink.h (elf_link_add_object_symbols): Break out copy from
6388         indirect new new symbol to elf.c.
6389         (elf_link_assign_sym_version): Break out privatization of
6390         non-exported symbol to elf.c.
6391         * elf.c (_bfd_elf_link_hash_copy_indirect): New.
6392         (_bfd_elf_link_hash_hide_symbol): New.
6393         (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
6395 2000-02-13  Ian Lance Taylor  <ian@zembu.com>
6397         * section.c (_bfd_strip_section_from_output): Add info parameter.
6398         If it passed as non-NULL, use it to check whether any input BFD
6399         has an input section which uses this output section.  Change all
6400         callers.
6401         * bfd-in2.h: Rebuild.
6403         * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
6404         bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
6405         1999-11-29.
6406         * bfd-in2.h: Rebuild.
6408 2000-02-10  Timothy Wall  <twall@cygnus.com>
6410         * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
6411         allow final modifications of swapped-in symbol.
6412         (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
6413         * coffcode.h (coff_write_relocs): Use macro
6414         SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
6415         symbol index should be set to -1.
6417 Thu Feb 10 20:07:50 GMT 2000  Toshiyasu Morita (toshi.morita@sega.com)
6419         * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
6420         USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
6421         * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
6422         * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
6423         sh_insns_uses_or_sets_freg): New functions.
6424         * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
6425         * (sh_insns_conflict): Use new functions and new macros to
6426         detect conflicts when two instructions both set same integer registers,
6427         both set same fp register, and both set special register.
6429 2000-02-09  Timothy Wall  <twall@cygnus.com>
6431         * coffgen.c (coff_real_object_p): Set arch/mach info prior to
6432         swapping in sections, so that the swapping routines have access to
6433         the arch/mach info.
6435 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
6437         * coff-go32.c: Update comment. Update copyright.
6439 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
6441         * syms.c (bfd_decode_symclass)
6442         Two new class characters were added - 'V' and 'v'.  The
6443         meaning of 'W' is now restricted to just weak non-object
6444         symbols.  This allows differentiation between, for example,
6445         weak functions vs weak objects.  nm for example now dumps:
6446         'W' = weak global
6447         'w' = weak unresolved
6448         'V' = weak global object
6449         'v' = weak unresolved object
6451         (bfd_is_undefined_symclass): New function.  Return true if the
6452         given symbol class represents and undefined/unresolved symbol.
6454         (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
6455         unresolved symbols.
6457         * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
6459         * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
6460         STT_ARM_16BIT flag set, but it is not attached to a data object
6461         return STT_ARM_16BIT so that it will be treated as code by the
6462         disassembler.
6464 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
6466         * coff-i386.c (i3coff_object_p): Remove prototype.
6467         Update copyright.
6469         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
6470         to name.  Update copyright.
6472         * trad-core.c (trad_unix_core_file_p): Cast core_regsec
6473         assignment to avoid warning.  Update copyright.
6475 2000-01-24  Robert Lipe  (robertl@sco.com)
6477         * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6478         instead of using GNU C extension.
6480 2000-01-21  Nick Clifton  <nickc@cygnus.com>
6482         * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6483         amount from a bfd_in_memory structure.
6484         (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6485         structure.
6487 2000-01-14  Nick Clifton  <nickc@cygnus.com>
6489         * linker.c (default_indirect_link_order): oops - fix incorrectly
6490         applied patch from Tim Wall.
6492 2000-01-13  Timothy Wall (twall@tiac.net>
6494         * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6495         = scnhsz, filhsz, relsz, aoutsz, etc)
6497         * coffswap.h: Ditto.
6499 2000-01-13  Nick Clifton  <nickc@cygnus.com>
6501         * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6502         interwork thumb to arm stub.
6504 2000-01-13  Timothy Wall (twall@tiac.net>
6506         * archures.c (bfd_octets_per_byte): New function: Return
6507         target byte size.
6508         (bfd_arch_mach_octets_per_byte): New function: Return target
6509         byte size.
6511         * section.c: Distinguish between octets and bytes for usage of
6512         _cooked_size,  _raw_size, and output_offset.  Clarify
6513         description of bfd_set_section_contents.
6515         * bfd-in2.h: Regenerate.
6517         * coffgen.c: Indicate that the offset parameter is in bytes, not
6518         octets.
6520         * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6521         where appropriate to get the octet offset when calling
6522         bfd_set_section_contents.
6523         (bfd_coff_reloc_link_order): Ditto.
6525         * linker.c (bfd_generic_reloc_link_order): Ditto.
6526         (_bfd_default_link_order): Ditto.
6528         * reloc.c (bfd_perform_relocation):  Distinguish between octets
6529         and bytes.  Use octets when indexing into octet data; use bytes
6530         when calculating target addresses.
6531         (bfd_install_relocation): Ditto.
6533         * srec.c (srec_write_section): Ditto.
6535 2000-01-13  Nick Clifton  <nickc@cygnus.com>
6537         * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6538         3 to 2.  This allows 4 byte sized sections, which is necessary for
6539         dlltool to build functioning DLLs.
6541 2000-01-10  Philip Blundell  <pb@futuretv.com>
6543         * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6544         (arm*-*-conix*): New target.
6546 2000-01-10  Egor Duda  <deo@logos-m.ru>
6548         * config.bfd: Include elf32_i386 vector to target list for cygwin
6549         and mingw.
6551         * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6552         * configure.in: Test for structure win32_pstatus_t in
6553         <sys/procfs.h>
6554         * configure: Regenerate.
6556         * elf.c (elfcore_grok_win32pstatus): New function: process
6557         win32_pstatus_t notes in elf core file.
6558         (elfcore_grok_note): Detect win32_pstatus notes.
6560 2000-01-03  Martin v. Loewis  <loewis@informatik.hu-berlin.de>
6562         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6563         visibility.
6564         * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6565         * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6567 For older changes see ChangeLog-9899
6569 Local Variables:
6570 mode: change-log
6571 left-margin: 8
6572 fill-column: 74
6573 version-control: never
6574 End: