* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
[binutils.git] / bfd / ChangeLog
blobf64124e8549e4319f81d1323d9816e473e669811
1 2001-02-08  Richard Henderson  <rth@redhat.com>
3         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4         before visibility.  Locally defined protected symbols are not
5         dynamic.
7 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>
9         * config.bfd: Enable coff64 for rs6000-*.  Patch from
10         <hzoli@austin.ibm.com>.
12 2001-02-07  Mark Elbrecht  <snowball3@bigfoot.com>
14         * coffgen.c (coff_find_nearest_line): If stabs info is successfully
15         found, do not attempt to find dwarf2 info before returning.
17 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
19         * elflink.h (is_global_symbol_definition): Rename to
20         is_global_data_symbol_definition and have it reject function
21         symbols.
22         (elf_link_is_defined_archive_symbol): Use renamed function.
24 2001-02-07  Todd Vierling  <tv@wasabisystems.com>
26         * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
27         * libbfd.h (bfd_target_vector): Likewise.
28         * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
29         make static; create pointer reference named bfd_target_vector.
30         (_bfd_target_vector_entries): Calculate this based on the array
31         typed _bfd_target_vector.
33 2001-02-06  H.J. Lu  <hjl@gnu.org>
35         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
36         internal symbols are not dynamic.
37         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
39 2001-02-06  Nick Clifton  <nickc@redhat.com>
41         * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
42         that it will not be pulled into the list of files that make up
43         po/POTFILES.in.
44         * Makefile.in: Regenerate.
45         * po/bfd.pot:  Regenerate.
47 2001-02-06  H.J. Lu  <hjl@gnu.org>
49         * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
50         checking.
51         (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
52         external_PEI_IMAGE_hdr.
54 2001-02-06  Kazu Hirata  <kazu@hxi.com>
56         * elf-m10200.c: Fix formatting.
58 2001-02-04  Nick Clifton  <nickc@redhat.com>
60         * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
61         rel, it will be handled later on.
63 2001-02-02  Fred Fish  <fnf@ninemoons.com>
65         * Makefile.in: Fix typo.
67 2001-02-01  Kazu Hirata  <kazu@hxi.com>
69         * elf-m10300.c: Fix formatting.
71 2001-01-30  Alan Modra  <alan@linuxcare.com.au>
73         * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
74         (elf_backend_get_symbol_type): Define.
75         (elf64_hppa_object_p): Set architecture and machine from elf
76         header flags.
78 2001-01-30  Curtis L. Janssen  <cljanss@ca.sandia.gov>
80         * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
81         before mdebug.
83 2001-01-26  Richard Henderson  <rth@redhat.com>
85         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
86         for non-default visibility.
87         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
88         delete ugly macro and replace with pretty function.
90 2001-01-25  Mark Elbrecht  <snowball3@bigfoot.com>
92         * coff-go32.c: Update copyright.
93         * coff-stgo32.c: Likewise.
94         * coff-go32.c (COFF_LONG_FILENAMES): Define.
95         * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
96         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
97         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
99 2001-01-25  Kazu Hirata  <kazu@hxi.com>
101         * bfd-in2.h: Rebuild.
102         * libbfd.h: Likewise.
104 2001-01-23  H.J. Lu  <hjl@gnu.org>
106         * bfd-in2.h: Rebuild.
108 2001-01-23  H.J. Lu  <hjl@gnu.org>
110         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
111         is NULL or PRIV(vms_rec) is outside of the buffer.
113 2001-01-23  Kazu Hirata  <kazu@hxi.com>
115         * coff64-rs6000.c: Fix formatting.
116         * coff-arm.c: Likewise.
117         * coffgen.c: Likewise.
118         * cofflink.c: Likewise.
119         * coff-mcore.c: Likewise.
120         * coff-mips.c: Likewise.
121         * coff-pmac.c: Likewise.
122         * coff-ppc.c: Likewise.
123         * coff-rs6000.c: Likewise.
124         * elf32.c: Likewise.
125         * elf32-fr30.c: Likewise.
126         * elf32-i370.c: Likewise.
127         * elf32-i860.c: Likewise.
128         * elf32-m32r.c: Likewise.
129         * elf32-m68k.c: Likewise.
130         * elf32-mcore.c: Likewise.
131         * elf32-ppc.c: Likewise.
132         * elf32-sh.c: Likewise.
133         * elf32-v850.c: Likewise.
134         * elf64-alpha.c: Likewise.
135         * elf64-sparc.c: Likewise.
136         * elflink.c: Likewise.
137         * elflink.h: Likewise.
138         * elf-m10200.c: Likewise.
139         * elf-m10300.c: Likewise.
140         * elfxx-ia64.c: Likewise.
142         * aoutx.h: Fix formatting.
143         * bfd.c: Likewise.
144         * bfd-in2.h: Likewise.
145         * bfd-in.h: Likewise.
146         * cpu-i386.c: Likewise.
147         * cpu-m68hc11.c: Likewise.
148         * dwarf2.c: Likewise.
149         * elf64-x86-64.c: Likewise.
150         * format.c: Likewise.
151         * freebsd.h: Likewise.
152         * hash.c: Likewise.
153         * hp300hpux.c: Likewise.
154         * hppabsd-core.c: Likewise.
155         * hpux-core.c: Likewise.
157 2001-01-22  Bo Thorsen  <bo@suse.de>
159         * elf64-x86-64.c: Added PIC support for X86-64.
160         (elf64_x86_64_link_hash_newfunc): Function added.
161         (elf64_x86_64_link_hash_table_create): Likewise.
162         (elf64_x86_64_check_relocs): Likewise.
163         (elf64_x86_64_gc_mark_hook): Likewise.
164         (elf64_x86_64_gc_sweep_hook): Likewise.
165         (elf64_x86_64_adjust_dynamic_symbol): Likewise.
166         (elf64_x86_64_size_dynamic_sections): Likewise.
167         (elf64_x86_64_discard_copies): Likewise.
168         (elf64_x86_64_finish_dynamic_symbol): Likewise.
169         (elf64_x86_64_finish_dynamic_sections): Likewise.
170         (elf64_x86_64_relocate_section): Add relocation of PIC sections.
172 2001-01-21  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
174         * Makefile.am (install-data-local): Make use of $(DESTDIR).
175         * Makefile.in: Regenerate.
177 2001-01-21  Kazu Hirata  <kazu@hxi.com>
179         * coff-a29k.c: Fix formatting.
181 2001-01-19  H.J. Lu  <hjl@gnu.org>
183         * elf32-i386.c (elf_i386_check_relocs): Report files with bad
184         relocation section names.
185         (elf_i386_relocate_section): Report files with bad relocation
186         section names and return false.
188 2001-01-17  Bo Thorsen  <bo@suse.de>
190         * targets.c: Alphabetize list of xvecs.
192 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
194         * config.bfd: Add linux target variant for elfxx-hppa.
195         * configure.in: Recognize bfd_elf32_hppa_linux_vec and
196         bfd_elf64_hppa_linux_vec.
197         * configure: Regenerate.
198         * elf64-hppa.c: Include elf64-target.h again to support linux
199         target variant.
200         (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
201         * elf32-hppa.c: Include elf32-target.h again to support linux
202         target variant.
203         (elf32_hppa_post_process_headers): New function.
204         (elf_backend_post_process_headers): Define.
205         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
206         bfd_elf32_hppa_linux_vec.
208         * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
209         and data_segment_base fields.
210         (elf32_hppa_link_hash_table_create ): Init them.
211         (elf32_hppa_check_relocs): Update comments.
212         (hppa_record_segment_addr): New function.
213         (elf32_hppa_relocate_section): Call it.
214         (final_link_relocate): Handle R_PARISC_SEGREL32.
215         (elf32_hppa_final_link): New function.
216         (bfd_elf32_bfd_final_link): Define to call it.
217         (hppa_unwind_entry_compare): New function.
218         * cache.c (bfd_open_file): Create files in write+read mode.
220         * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
221         SEGREL32 and numerous other relocs.  Change duplicate
222         R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
224         * opncls.c (bfd_fdopenr): Add parens like the comment says around
225         O_ACCMODE.
227         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
228         .plt entries for DT_INIT and DT_FINI.
229         (elf32_hppa_finish_dynamic_sections): Remove special handling of
230         DT_INIT and DT_FINI.
232         * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
233         offsets for stub .plt access if wide mode.  Check offset in range.
235 2001-01-13  Nick Clifton  <nickc@redhat.com>
237         * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
238         line.
240         * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
241         line.
243 2001-01-12  Alan Modra  <alan@linuxcare.com.au>
245         * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
246         * configure: Regenerate.
248 2001-01-11  Peter Targett  <peter.targett@arccores.com>
250         * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
251         bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
252         * cpu-arc.c (arch_info_struct): Add entries for variants.
253         (bfd_arc_arch) Set default to bfd_mach_arc_5.
254         (arc_get_mach) Don't assume machine names prefixed arc- before
255         testing.
256         * elf32-arc.c (arc_elf_object_p): Set machine number based on new
257         selections.
258         (arc_elf_final_write_processing) Likewise.
259         (ELF_MACHINE_CODE) Use EM_ARC.
261 2001-01-10  Nick Clifton  <nickc@redhat.com>
263         * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
265 2001-01-07  Philip Blundell  <philb@gnu.org>
267         * README: Replace `bug-gnu-utils@gnu.org' with
268         `bug-binutils@gnu.org'.
270 2001-01-04  Kazu Hirata  <kazu@hxi.com>
272         * som.c: Fix formatting.
274 2001-01-03  Kazu Hirata  <kazu@hxi.com>
276         * ecoffswap.h: Fix formatting.
277         * elf-bfd.h: Likewise.
278         * elfarm-nabi.c: Likewise.
279         * elfarm-oabi.c: Likewise.
280         * elfcode.h: Likewise.
281         * elfcore.h: Likewise.
282         * elflink.c: Likewise.
283         * elflink.h: Likewise.
284         * elfxx-ia64.c: Likewise.
285         * elfxx-target.h: Likewise.
286         * libbfd.c: Likewise
287         * linker.c: Likewise.
288         * lynx-core.c: Likewise.
290 2001-01-02  Kazu Hirata  <kazu@hxi.com>
292         * pc532-mach.c: Fix formatting.
293         * pe-arm.c: Likewise.
294         * pe-i386.c: Likewise.
295         * pe-mips.c: Likewise.
296         * pe-ppc.c: Likewise.
297         * pe-sh.c: Likewise.
298         * pei-mips.c: Likewise.
299         * pei-sh.c: Likewise.
300         * peicode.h: Likewise.
301         * ppcboot.c: Likewise.
302         * ptrace-core.c: Likewise.
304 2001-01-01  Kazu Hirata  <kazu@hxi.com>
306         * reloc.c: Fix formatting.
307         * riscix.c: Likewise.
308         * rs6000-core.c: Likewise.
309         * xcoff-target.h: Likewise.
311 2000-12-29  Hans-Peter Nilsson  <hp@bitrange.com>
313         * elfcode.h (elf_object_p): Also restore the bfd mach field on
314         error, by calling bfd_default_set_arch_mach with incoming
315         values.
317 2000-12-26  Kazu Hirata  <kazu@hxi.com>
319         * vaxnetbsd.c: Fix formatting.
320         * versados.c: Likewise.
321         * vms-gsd.c: Likewise.
322         * vms-hdr.c: Likewise.
323         * vms-misc.c: Likewise.
325 2000-12-25  Alexandre Oliva  <aoliva@redhat.com>
327         * archive.c (coff_write_armap): Don't write more than symbol_count
328         `archive_member_file_ptr's.
330 2000-12-25  Kazu Hirata  <kazu@hxi.com>
332         * vms-tir.c: Fix formatting.
334 2000-12-23  Kazu Hirata  <kazu@hxi.com>
336         * vms.c: Fix formatting.
337         * vms.h: Likewise.
339 2000-12-21  Santeri Paavolainen <santtu@ssh.com>
341         * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
343         * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
345         * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
346         arithmetic.
348         * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
350         * coffcode.h (styp_to_sec_flags): Add empty statement after label.
352 2000-12-21  Richard Sandiford  <rsandifo@redhat.com>
354         * libbfd.c (bfd_get_bits): Added
355         (bfd_put_bits): Likewise
356         * bfd-in.h: Declared the above.
357         * bfd-in2.h: Regenerated.
359 2000-12-20  Kazu Hirata  <kazu@hxi.com>
361         * targets.c: Fix formatting.
362         * tekhex.c: Likewise.
363         * trad-core.c: Likewise.
365 2000-12-19  Kazu Hirata  <kazu@hxi.com>
367         * sco5-core.c: Fix formatting.
368         * section.c: Likewise.
369         * sparclinux.c: Likewise.
370         * sparclynx.c: Likewise.
371         * sparcnetbsd.c: Likewise.
372         * srec.c: Likewise.
373         * stabs.c: Likewise.
374         * stab-syms.c: Likewise.
375         * sunos.c: Likewise.
376         * syms.c: Likewise.
377         * sysdep.h: Likewise.
379 2000-12-18  Nick Clifton  <nickc@redhat.com>
381         * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
382         defined.
383         * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
384         * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
386 2000-12-18  Nick Clifton  <nickc@redhat.com>
388         * vms-misc.c (_bfd_vms_get_record): Add default case to
389         file_format switch.
391 2000-12-15  Miloslav Trmac <mitr@volny.cz>
393         * elfcore.h (elf_core_file_p): Move to the start of the program
394         headers before attempting to read them.
396 2000-12-14  Kazu Hirata  <kazu@hxi.com>
398         * peigen.c: Fix formatting.
399         * som.c: Likewise.
400         * som.h: Likewise.
402 2000-12-13  Kazu Hirata  <kazu@hxi.com>
404         * peigen.c: Fix formatting.
406 2000-12-12  Jim Wilson  <wilson@redhat.com>
408         *  elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
410 2000-12-08  Mark Salter  <msalter@redhat.com>
412         * binary.c (binary_set_section_contents): Ignore sections
413         with zero size.
415 2000-12-12  Kazu Hirata  <kazu@hxi.com>
417         * m68klinux.c: Fix formatting.
418         * m68knetbsd.c: Likewise.
419         * mipsbsd.c: Likewise.
420         * netbsd-core.c: Likewise.
421         * netbsd.h: Likewise.
422         * newsos3.c: Likewise.
423         * nlm32-alpha.c: Likewise.
424         * nlm32-i386.c: Likewise.
425         * nlm32-ppc.c: Likewise.
426         * nlm32-sparc.c: Likewise.
427         * nlmcode.h: Likewise.
428         * nlmswap.h: Likewise.
429         * nlm-target.h: Likewise.
430         * ns32knetbsd.c: Likewise.
432 2000-12-10  Fred Fish  <fnf@be.com>
434         * elflink.h (elf_link_output_extsym): Don't complain about undefined
435         symbols in shared objects if allow_shlib_undefined is true.
437 2000-12-12  Nick Clifton  <nickc@redhat.com>
439         * cpu-sh.c: Fix formattng.
440         * elf.c: Fix formattng.
441         * elf32-mips.c: Fix formattng.
442         * elf32-sh.c: Fix formattng.
443         * elf64-alpha.c: Fix formattng.
445 2000-12-09  Nick Clifton  <nickc@redhat.com>
447         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
448         dwarf2_find_line_info as last parameter to invocation of
449         _bfd_dwarf2_find_nearest_line.
450         * elf32-arm.h (elf32_arm_find_nearest_line): Pass
451         dwarf2_find_line_info as last parameter to invocation of
452         _bfd_dwarf2_find_nearest_line.
454 2000-12-08  Mark Elbrecht  <snowball3@bigfoot.com>
456         * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
457         (BFD_LIBS): ...to here.
458         (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
459         (BFD_LIBS_CFILES): ...to here.
460         * Makefile.in: Regenerate.
461         * configure.in: Remove dwarf.lo from the elf shell variable.
462         * configure: Regenerate.
463         * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
464         * libcoff.h: Regenerate.
465         * coffgen.c (coff_find_nearest_line): Call
466         _bfd_dwarf2_find_nearest_line.
467         * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
468         accordingly.
469         (read_abbrevs): Likewise
470         (decode_line_info): Likewise.
471         (parse_comp_unit): Likewise.
472         (comp_unit_find_nearest_line): Likewise.
473         * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
474         * libbfd.h: Regenerate.
475         * elf.c (_bfd_elf_find_nearest_line): Update call.
476         * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
477         * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
478         * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
479         (sec_to_styp_flags): Use them. Handle DWARF2 sections.
480         (styp_to_sec_flags): Handle DWARF2 sections.
481         * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
482         to _bfd_find_nearest_line.
483         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
484         call to _bfd_find_nearest_line.
486 2000-12-08  Kazu Hirata  <kazu@hxi.com>
488         * coffgen.c: Fix formatting.
489         * elf-m10300.c: Likewise.
490         * elf32-i386.c: Likewise.
491         * elf32-i960.c: Likewise.
492         * elf32-m68k.c: Likewise.
493         * elf32-mcore.c: Likewise.
494         * elf32-ppc.c: Likewise.
495         * elf32-sh.c: Likewise.
496         * elf32-sparc.c: Likewise.
497         * elf32-v850.c: Likewise.
498         * elf64-alpha.c: Likewise.
499         * elf64-hppa.c: Likewise.
500         * elf64-mips.c: Likewise.
501         * elf64-sparc.c: Likewise.
503 2000-12-07  Kazu Hirata  <kazu@hxi.com>
505         * elf32-ppc.c: Fix formatting.
506         * elf64-x86-64.c: Likewise.
508 2000-12-06  Ulf Carlsson  <ulfc@engr.sgi.com>
510         From  Ralf Baechle  <ralf@gnu.org>
512         * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
513         BFDs containing no sections or empty .text, .data or .bss sections
514         to be merged, regardless of their flags.
516 2000-12-06  Kazu Hirata  <kazu@hxi.com>
518         * elf32-m32r.c: Fix formatting.
519         * elf32-m68hc11.c: Likewise.
520         * elf32-m68hc12.c: Likewise.
521         * elf32-m68k.c: Likewise.
522         * elf32-mcore.c: Likewise.
523         * elf32-pj.c: Likewise.
524         * elf32-ppc.c: Likewise.
526 2000-12-05  Kazu Hirata  <kazu@hxi.com>
528         * elf32-fr30.c: Fix formatting.
529         * elf32-hppa.c: Likewise.
530         * elf32-i370.c: Likewise.
531         * elf32-i386.c: Likewise.
532         * elf32-i860.c: Likewise.
533         * elf32-i960.c: Likewise.
535 2000-12-03  Kazu Hirata  <kazu@hxi.com>
537         * elf32-arm.h: Fix formatting.
538         * elf32-avr.c: Likewise.
539         * elf32-cris.c: Likewise.
540         * elf32-d10v.c: Likewise.
541         * elf32-d30v.c: Likewise.
542         * elf-hppa.h: Likewise.
543         * elf-m10200.c: Likewise.
544         * elf-m10300.c: Likewise.
546 2000-12-01  Chris Demetriou  <cgd@sibyte.com>
548         * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
549         bfd_mach_mips32_4k.  Update FIXME comment.
550         * archures.c (bfd_mach_mips32): New constant.
551         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
552         the latter, renumber it.
553         * bfd-in2.h (bfd_mach_mips32): New constant.
554         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
555         the latter, renumber it.
556         * cpu-mips.c (I_mips32): New constant.
557         (I_mips4K, I_mips32_4k): Rename the former to the latter.
558         (arch_info_struct): Add bfd_mach_mips32 entry, replace
559         bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
560         * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
561         (elf_mips_mach): Likewise.  Also, replace E_MIPS_MACH_MIPS32
562         with E_MIPS_MACH_MIPS32_4K.
563         (_bfd_mips_elf_final_write_processing): Replace
564         bfd_mach_mips4K with bfd_mach_mips32_4k case, add
565         bfd_mach_mips32 case.
566         (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
567         comparison with support for MIPS32.
568         (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
569         MIPS32.
571         * aoutx.h (NAME(aout,machine_type)): Add cases for
572         bfd_mach_mips5 and bfd_mach_mips64.
573         * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
574         * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
575         * cpu_mips.c (I_mips5, I_mips64): New definitions.
576         (arch_info_struct): Add entries for bfd_mach_mips5 and
577         bfd_mach_mips64.
578         * elf32-mips.c (elf_mips_isa, elf_mips_mach,
579         _bfd_mips_elf_print_private_bfd_data): Add cases for
580         E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
581         (_bfd_mips_elf_final_write_processing): Add cases for
582         bfd_mach_mips5 and bfd_mach_mips64.
584         * bfd/aoutx.h (NAME(aout,machine_type)): Add a
585         bfd_mach_mips_sb1 case.
586         * bfd/archures.c (bfd_mach_mips_sb1): New constant.
587         * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
588         * bfd/cpu-mips.c (I_sb1): New constant.
589         (arch_info_struct): Add entry for bfd_mach_mips_sb1.
590         * bfd/elf32-mips.c (elf_mips_mach): Add case for
591         E_MIPS_MACH_SB1.
592         (_bfd_mips_elf_final_write_processing): Add case for
593         bfd_mach_mips_sb1.
595 2000-12-01  Joel Sherrill <joel@OARcorp.com>
597         * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
598         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
599         (sparc*-*-rtems*): Switched from a.out to ELF.
601 2000-11-30  Jan Hubicka  <jh@suse.cz>
603         * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
604         BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
605         (elf64-x86-64.lo): Add dependencies.
606         * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
607         bfd_mach_x86_64_intel_syntax.
608         * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
609         * config.bfd (x86_64): Add.
610         * configure.in: Add support for bfd_elf64_x86_64_vec.
611         * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
612         (bfd_i386_arch, i8086_ar): Link in.
613         * elf64-x86-64.c: New file.
614         * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
615         * targets.c (bfd_elf64_x86_64_vec): Add.
616         (bfd_target_vect): Add bfd_elf64_x86_64_vec.
618 2000-11-30  Kazu Hirata  <kazu@hxi.com>
620         * xcofflink.c: Fix formatting.
622 2000-11-28  Kazu Hirata  <kazu@hxi.com>
624         * aoutx.h: Fix formatting.
625         * bfd-in.h: Likewise.
626         * bfd-in2.h: Likewise.
627         * cache.c: Likewise.
628         * cisco-core.c: Likewise.
629         * coff64-rs6000.c: Likewise.
630         * coffcode.h: Likewise.
631         * coffswap.h: Likewise.
632         * corefile.c: Likewise.
633         * elf32-mips.c: Likewise.
635 2000-11-27  Kazu Hirata  <kazu@hxi.com>
637         * aout-adobe.c: Fix formatting.
638         * coff64-rs6000.c: Likewise.
639         * coffgen.c: Likewise.
640         * cofflink.c: Likewise.
642 2000-11-27  Philip Blundell  <pb@futuretv.com>
644         * libcoff-in.h (coff_tdata): Add `strings_written' flag.
645         (obj_coff_strings_written): New accessor macro for above.
646         * libcoff.h: Regenerate.
647         * cofflink.c (_bfd_coff_final_link): Say that we wrote the
648         strings.
649         * coffcode.h (coff_write_object_contents): No need to write out
650         the string table if it's already been done.
652 2000-11-22  Philip Blundell  <pb@futuretv.com>
654         * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
655         weak undefined symbols.
657 2000-11-24  Nick Clifton  <nickc@redhat.com>
659         * archures.c (bfd_mach_arm_5TE): Define.
660         (bfd_mach_arm+XScale): Define.
661         * bfd-in2.h: Regenerate.
663         * coff-arm.c (coff_arm_reloc_type_lookup): Accept
664         BFD_RELOC_ARM_PCREL_BLX.
666         * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
667         XScale machine numbers.
669         * config.bfd (xscale-elf): Add target.
670         (xscale-coff): Add target.
672         * cpu-arm.c: Add xscale machine name.
673         Add v5t, v5te and XScale machine numbers.
675 2000-11-23  Kazu Hirata  <kazu@hxi.com>
677         * aix386-core.c: Fix formatting.
679 2000-11-22  Jim Wilson  <wilson@redhat.com>
681         * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
682         (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
683         * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
684         (ins_imms_scaled): Initialize sign_bit at function entry.
685         (elf64_ia64_operands): Add missing initializers.
686         * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
687         elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
688         elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
689         elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
690         elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
691         parameters.
692         (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
693         and free_extsyms at function entry.
694         (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
695         (elfNN_ia64_create_dynamic_sections): Delete unused local h.
696         (get_got): Delete unused local srel.
697         (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
698         (elfNN_ia64_relocate_section): Delete unused local dynindx.
700 2000-11-21  Kazu Hirata  <kazu@hxi.com>
702         * coff-a29k.c: Fix formatting.
703         * coff-h8500.c: Likewise.
704         * coff-i960.c: Likewise.
705         * coff-ppc.c: Likewise.
706         * coff-rs6000.c: Likewise.
707         * coff-stgo32.c: Likewise.
708         * coff-tic54x.c: Likewise.
709         * coff-w65.c: Likewise.
710         * cpu-h8500.c: Likewise.
711         * cpu-hppa.c: Likewise.
712         * cpu-ns32k.c: Likewise.
713         * ecoff.c: Likewise.
714         * ecofflink.c: Likewise.
716 2000-11-21  Nick Clifton  <nickc@redhat.com>
718         * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
719         remove possibility of infinite loop.
721 2000-11-20  Kazu Hirata  <kazu@hxi.com>
723         * aix386-core.c: Fix formatting.
724         * aout-adobe.c: Likewise.
725         * aout-arm.c: Likewise.
726         * aout-encap.c: Likewise.
727         * aout-ns32k.c: Likewise.
728         * aout-target.h: Likewise.
729         * aout-tic30.c: Likewise.
730         * aoutf1.h: Likewise.
731         * aoutx.h: Likewise.
732         * archive.c: Likewise.
733         * bfd-in.h: Likewise.
734         * bfd-in2.h: Likewise.
735         * bfd.c: Likewise.
736         * bout.c: Likewise.
738 2000-11-17  H.J. Lu  <hjl@gnu.org>
740         * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
741         pltoff entries for DT_INIT and DT_FINI.
742         (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
743         (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
744         entries.
746 2000-11-16  Richard Henderson  <rth@redhat.com>
748         * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
749         (allocate_dynrel_entries): Likewise.
750         (elfNN_ia64_relocate_section): Likewise.  Set REL addends correctly.
751         (set_pltoff_entry): Likewise.
752         (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
753         (elfNN_ia64_reloc_type_lookup): Likewise.
754         (elfNN_ia64_install_value): Likewise.
755         (elfNN_ia64_relocate_section): Likewise.
756         * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
757         (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
759 2000-11-16  Kazu Hirata  <kazu@hxi.com>
761         * cpu-a29k.c: Fix formatting.
762         * cpu-alpha.c: Likewise.
763         * cpu-arm.c: Likewise.
764         * cpu-avr.c: Likewise.
765         * cpu-d10v.c: Likewise.
766         * cpu-h8500.c: Likewise.
767         * cpu-hppa.c: Likewise.
768         * cpu-i370.c: Likewise.
769         * cpu-i386.c: Likewise.
770         * cpu-i960.c: Likewise.
771         * cpu-ia64-opc.c: Likewise.
772         * cpu-ia64.c: Likewise.
773         * cpu-m32r.c: Likewise.
774         * cpu-m68hc11.c: Likewise.
775         * cpu-m68hc12.c: Likewise.
776         * cpu-m68k.c: Likewise.
777         * cpu-m88k.c: Likewise.
778         * cpu-mips.c: Likewise.
779         * cpu-ns32k.c: Likewise.
780         * cpu-pj.c: Likewise.
781         * cpu-powerpc.c: Likewise.
782         * cpu-sh.c: Likewise.
783         * cpu-sparc.c: Likewise.
784         * cpu-tic54x.c: Likewise.
785         * cpu-v850.c: Likewise.
786         * cpu-vax.c: Likewise.
787         * cpu-w65.c: Likewise.
788         * cpu-we32k.c: Likewise.
789         * cpu-z8k.c: Likewise.
790         * dwarf1.c: Likewise.
791         * dwarf2.c: Likewise.
793 2000-11-15  Kazu Hirata  <kazu@hxi.com>
795         * coff-arm.c: Fix formatting.
796         * coff-ppc.c: Likewise.
797         * coff-rs6000.c: Likewise.
798         * coff-sh.c: Likewise.
799         * coff-sparc.c: Likewise.
800         * coff-tic30.c: Likewise.
801         * coff-tic54x.c: Likewise.
802         * coff-tic80.c: Likewise.
803         * coff-w65.c: Likewise.
804         * coff-we32k.c: Likewise.
805         * coff-z8k.c: Likewise.
807 2000-11-15  Richard Henderson  <rth@redhat.com>
809         * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
810         section with the same ALLOC|LOAD flags as the source section.
812 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
814         * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
815         by STO_ALPHA constants.
817 2000-11-14  Kazu Hirata  <kazu@hxi.com>
819         * coff-pmac.c: Fix formatting.
820         * coff-ppc.c: Likewise.
822 2000-11-13  H.J. Lu  <hjl@gnu.org>
824         * elflink.h (elf_link_add_object_symbols): Also add indirect
825         symbols for common symbols with the default version.
827 2000-11-09  Philip Blundell  <pb@futuretv.com>
829         * section.c (STD_SECTION): Set gc_mark flag.
831 2000-11-11  Kazu Hirata  <kazu@hxi.com>
833         * coff-i960.c: Likewise.
834         * coff-m68k.c: Likewise.
835         * coff-m88k.c: Likewise.
836         * coff-mcore.c: Likewise.
837         * coff-mips.c: Likewise.
839 2000-11-11  Bernd Schmidt  <bernds@cygnus.co.uk>
841         * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
843 2000-11-10  Kazu Hirata  <kazu@hxi.com>
845         * coff-h8300.c: Fix formatting.
846         * coff-h8500.c: Likewise.
847         * coff-i386.c: Likewise.
848         * coff-i860.c: Likewise.
849         * coff-i960.c: Likewise.
850         * coff-ia64.c: Likewise.
852 2000-11-09  Kazu Hirata  <kazu@hxi.com>
854         * archive.c: Fix formatting.
855         * archures.c: Likewise.
857 2000-11-07  Richard Henderson  <rth@redhat.com>
859         * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
860         Set it before bfd_elf64_bfd_final_link call.  Use it after the call.
861         * section.c (bfd_set_section_contents): Call memcpy if
862         section->contents set and location not equal to contents plus offset.
864 2000-11-08  Kazu Hirata  <kazu@hxi.com>
866         * bfd-in.h: Fix formatting.
867         * bfd-in2.h: Likewise.
868         * bfd.c: Likewise.
869         * binary.c: Likewise.
870         * bout.c: Likewise.
871         * coff-a29k.c: Likewise.
872         * coff-alpha.c: Likewise.
873         * coff-apollo.c: Likewise.
874         * coff-aux.c: Likewise.
876 2000-11-07  Kazu Hirata  <kazu@hxi.com>
878         * aix386-core.c: Fix formatting.
879         * aoutf1.h: Likewise.
880         * aoutx.h: Likewise.
881         * archures.c: Likewise.
882         * armnetbsd.c: Likewise.
884 2000-11-07  Alan Modra  <alan@linuxcare.com.au>
886         * coff-h8300.c (special): Adjust reloc address.
888 2000-11-06  Steve Ellcey <sje@cup.hp.com>
890         * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
891         to differentiate elf32 and elf64 on ia64.
892         * bfd-in2.h: Regenerate.
893         * config.bfd: Add target for "ia64*-*-hpux*".
894         * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
895         * configure: Regenerate.
896         * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
897         * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
899         * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
900         from elfxx-ia64.c.  Add depenency rules for making elf32-ia64.lo.
901         * Makefile.in: Regnerate.
902         * elf64-ia64.c: Deleted.
903         * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
905 2000-11-06  Kazu Hirata  <kazu@hxi.com>
907         * aout-adobe.c: Fix formatting.
908         * aout-arm.c: Likewise.
909         * aout-cris.c: Likewise.
910         * aout-encap.c: Likewise.
911         * aout-ns32k.c: Likewise.
912         * aout-target.h: Likewise.
913         * aout-tic30.c: Likewise.
915 2000-11-05  Philip Blundell  <philb@gnu.org>
917         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
918         BFDs containing no sections to be merged, regardless of their flags.
920 2000-11-04  Philip Blundell  <philb@gnu.org>
922         * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
923         if a relocation for an undefined symbol also results in an
924         overflow.
926 2000-11-06  Christopher Faylor <cgf@cygnus.com>
928         * config.bfd: Add support for Sun Chorus.
930 2000-11-05  David O'Brien  <obrien@FreeBSD.org>
932         * configure.in: Recognize alpha-*-freebsd*.
933         * configure: Regenerate.
935 2000-11-02  Luciano Gemme <ishitawa@yahoo.com>
937         * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
938         (Chunk): New global variable set by a parameter in objcopy.c.
939         (S3Forced): New global variable set by a parameter in
940         objcopy.c.
941         (srec_set_section_contents): If S3Forced is true, always generate
942         S3 records.
943         (srec_write_section): Use 'Chunk' to limit maximum length of S
944         records.
946 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
948         * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
949         * Makefile.in: Regenerate.
950         * bfd-in2.h: Regenerate.
951         * po/bfd.pot: Regenerate.
953 2000-10-31  Philip Blundell  <philb@gnu.org>
955         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
956         EF_SOFT_FLOAT if it is defined.
958 2000-10-27  Philip Blundell  <philb@gnu.org>
960         * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
961         attempts to mix PIC code with non-PIC, just mark the output as
962         being position dependent.
963         (elf32_arm_merge_private_bfd_data): Likewise.  Print an error
964         message for EF_SOFT_FLOAT mismatches.  Display diagnostics for
965         all mismatches, not just the first one.
967 2000-10-25  Chris Demetriou  <cgd@sibyte.com>
969         * ieee.c (ieee_archive_p): Plug one of many possible
970         memory leaks in error handling.
972 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
974         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
975         elf32_sparc_object_p, elf32_sparc_final_write_processing):
976         Support v8plusb.
977         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
978         sparc64_elf_object_p): Support v9b.
979         * archures.c: Declare v8plusb and v9b machines.
980         * bfd-in2.h: Ditto.
981         * cpu-sparc.c: Ditto.
983 2000-10-16  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
985         * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
986         of a GOT reloc.
988         * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
989         (SYMBOL_CALLS_LOCAL): New macro.
990         (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
991         (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
992         (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
993         (ppc_elf_relocate_section): Use flag variable to determine
994         whether the relocation refers to a local symbol.
995         Test whether a PLTREL24 reloc will produce a reloc by looking
996         to see whether a PLT entry was made.
998 2000-10-14  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
1000         * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1001         entries that could serve as a definition for a weak symbol.
1003 2000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>
1005         From  Ralf Baechle  <ralf@gnu.org>
1007         * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1008         local_p.  Add symbol value only for non-R_MIPS_REL32 relocations
1009         against local symbols.
1010         (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1012 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
1014         * section.c (struct sec): Add kept_section.
1015         (struct bfd_comdat_info): Remove sec, we can use above.
1016         (STD_SECTION): Add initializer.
1017         (bfd_make_section_anyway): Init here too.
1019         * bfd-in2.h: Regenerate.
1021         * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1022         zeroing of `flags'.
1023         (elf_link_input_bfd): Set all asection->symbol->value's here, and
1024         fudge values for discarded link-once section symbols.
1026         * elf64-hppa.c: Include alloca-conf.h
1028 2000-10-11  Alan Modra  <alan@linuxcare.com.au>
1030         * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1032         * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1034 2000-10-10  Alan Modra  <alan@linuxcare.com.au>
1036         * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1038 2000-10-10  Tom Rix <trix@redhat.com>
1040         * section.c (bfd_make_section_anyway): Release newsect ptr when
1041         newsect->symbol fails to alloc.  Use bfd_release instead of free.
1043 2000-10-09  Richard Henderson  <rth@cygnus.com
1045         * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1046         (elf64_ia64_unwind_entry_compare): New.
1047         (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1049 2000-10-07  Alan Modra  <alan@linuxcare.com.au>
1051         * elflink.h (size_dynamic_sections): Don't create various tags if
1052         .dynstr is excluded from the link.  Don't set first dynsym entry
1053         if dynsymcount is zero.
1054         (elf_bfd_final_link): Don't try to swap out dynamic syms if
1055         .dynsym excluded from the link.  Don't try to write any dynamic
1056         sections excluded from the link.
1058         * elf.c (swap_out_syms): Handle global section symbols.
1060 2000-10-05  DJ Delorie  <dj@redhat.com>
1062         * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1063         * coffcode.h (coff_set_alignment_hook): read extended reloc count
1064         (coff_write_relocs): write extended reloc count
1065         (coff_write_object_contents): account for extended relocs
1067 2000-10-05  Jim Wilson  <wilson@cygnus.com>
1069         * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1070         field.
1071         * elf.c (_bfd_elf_make_section_from_shdr): Call the
1072         elf_backend_section_flags function.
1073         * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1074         code.
1075         (elf64_ia64_section_flags): New function containing flag conversion
1076         code.
1077         (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1078         * elfxx-target.h (elf_backend_section_flags): Define.
1079         (elfNN_bed): Initialize elf_backend_section_flags field.
1081 2000-10-02  Alan Modra  <alan@linuxcare.com.au>
1083         * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1084         _bfd_elf32_gc_record_vtable.  Correct a comment.
1086 2000-10-01  Ulf Carlsson  <ulfc@engr.sgi.com>
1088         From  Ralf Baechle  <ralf@gnu.org>
1090         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1091         produces binaries with got[1] = 0x80000001 to differenciate them
1092         for the dynamic linker from the broken binaries produced by old
1093         versions.
1095 2000-09-30  Petr Sorfa <petrs@sco.com>
1097         * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1098         (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1099         * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1100         * configure: Regenerate.
1102 2000-09-27  Hans-Peter Nilsson  <hp@axis.com>
1104         Define two bfd_targets for absence and presence of leading
1105         underscore on symbols.  Make sure to only link same kind.
1106         * elf32-cris.c (cris_elf_object_p,
1107         cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1108         cris_elf_merge_private_bfd_data): New.
1109         (elf_backend_object_p, elf_backend_final_write_processing,
1110         bfd_elf32_bfd_print_private_bfd_data,
1111         bfd_elf32_bfd_merge_private_bfd_data): Define.
1112         <Target vector definition>: Include elf32-target.h twice with
1113         different macro settings:
1114         (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1115         bfd_elf32_us_cris_vec.
1116         (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1117         (elf_symbol_leading_char): First as 0, then '_'.
1118         (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1119         * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1120         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1121         * configure: Regenerate.
1122         * targets.c: Declare bfd_elf32_us_cris_vec.
1123         * po/bfd.pot: Regenerate.
1125 2000-09-29  Momchil Velikov  <velco@fadata.bg>
1127         * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1128         R_ARM_THM_PC22 relocations.
1130 2000-09-29  NIIBE Yutaka <gniibe@chroot.org>
1132         * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1134 2000-09-29  Momchil Velikov <velco@fadata.bg>
1136         * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1137         is has the SEC_HAS_CONTENTS flag set.
1139 2000-09-28  Ã–rjan Friberg  <orjanf@axis.com>
1140             Hans-Peter Nilsson  <hp@axis.com>
1142         * aout-cris.c (N_TXTADDR): Define.
1144 2000-09-28  John David Anglin <dave@hiauly1.hia.nrc.ca>
1146         * som.c: Include alloca-conf.h.
1147         * Makefile.am: "make dep-am"
1148         * Makefile.in: Regenerate.
1150 2000-09-27  Alan Modra  <alan@linuxcare.com.au>
1152         * elf32-hppa.c (plt_stub): New.
1153         (PLT_STUB_ENTRY): Define.
1154         (elf32_hppa_link_hash_table): Change multi_subspace to packed
1155         boolean.  Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1156         (elf32_hppa_link_hash_table_create): Init to suit.
1157         (elf32_hppa_check_relocs): Set has_12bit_branch and
1158         has_17bit_branch as appropriate.
1159         (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1160         non-local functions.
1161         (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1162         Add space for plt_stub as needed.
1163         (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1164         functions at plt_stub.
1165         (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1166         (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1168         * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1169         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.  Use it instead
1170         of fixed size, and if negative, disable handling of input sections
1171         before stub section.  Set up default stub group size depending
1172         on detected branch relocs.
1173         (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1174         ensure different offsets from sym_value aren't rounded to
1175         different 2k blocks.  Use lrsel and rrsel for other stubs too for
1176         consistency rather than necessity.
1177         (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1178         (final_link_relocate): Likewise.
1179         (elf32_hppa_relocate_section): Likewise.
1181         * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1182         (_bfd_elf_hppa_gen_reloc_type): Generate them.
1183         (elf_hppa_final_link_relocate): Handle them.
1184         (elf_hppa_relocate_insn): Likewise.
1185         (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1187 2000-09-26  Hans-Peter Nilsson  <hp@axis.com>
1189         * elfcode.h (elf_object_p): Preserve and clear abfd section
1190         information.  Restore at error.
1192 2000-09-26  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1194         * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1195         is empty, make sure that its rva also 0. NT loader dislikes
1196         having otherwise.
1198 2000-09-26  Steve Ellcey <sje@cup.hp.com>
1200         * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1201         global by default.
1203 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
1205         * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1206         currently unused RELATIVE_DYNAMIC_RELOCS code.
1207         (hppa_discard_copies): Likewise.
1208         (elf32_hppa_size_stubs): Size `input_list' array correctly.  Correct
1209         comments.  Don't check non-code output sections for stub grouping.
1211 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
1213         * section.c (bfd_get_unique_section_name): Return NULL if
1214         bfd_malloc fails.
1216 2000-09-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1218         * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1219         instruction sequence to actually work.
1220         (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1221         accordingly.
1223 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
1225         * elf32-sh.c (sh_elf_relocate_section): Use
1226         _bfd_final_link_relocate to apply the relocation against a section
1227         symbol, when doing relocatable links.
1229 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
1231         * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1232         to id_sec.
1233         (stub_hash_newfunc): Here too.
1234         (hppa_add_stub): And here.
1235         (elf32_hppa_link_hash_table): Remove stub_section_created,
1236         reloc_section_created, first_init_sec and first_fini_sec.  Add
1237         stub_group.
1238         (elf32_hppa_link_hash_table_create): Init to suit.
1239         (hppa_get_stub_entry): Add support for grouping stub sections.
1240         (hppa_add_stub): Likewise.  Remove sec_count param and init/fini
1241         section code.  Index stub vars by section->id.
1242         (elf32_hppa_size_stubs): Likewise.  Remove duplicated function
1243         exit paths.  Zap allocation of above removed vars.  Refine
1244         link-once test.
1246         * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1247         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1248         (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1249         rather than pointer to bfd_link_info.
1250         (hppa_add_stub): Likewise.
1251         (final_link_relocate): Likewise.
1253 2000-09-17  David Huggins-Daines  <dhd@linuxcare.com>
1255         (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1256         link-once sections.
1258 2000-09-16  Alexandre Oliva  <aoliva@redhat.com>
1260         * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1261         ld/emulparams/shelf.sh.
1263 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1265         * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1266         * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1267         * bfd-in2.h: Regenerate.
1269 2000-09-15  Kenneth Block  <Kenneth.Block@compaq.com>
1271         * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1272         LITUSE relocations incorrectly if -relax is specified on the ld
1273         command line and the displacement field of the load or store
1274         instruction is non-zero. (Patch by paul.winalski@compaq.com)
1276 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
1278         * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1279         first_fini_sec here.
1280         (elf32_hppa_size_stubs): Instead correctly find the first .init
1281         and .fini section here.
1283 2000-09-15  David Huggins-Daines  <dhd@linuxcare.com>
1285         * elf32-hppa.c (clobber_millicode_symbols): New function.
1286         (elf32_hppa_size_dynamic_sections): Call it.
1288 2000-09-14  Alan Modra  <alan@linuxcare.com.au>
1290         * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1291         packed.  Add plabel, plt_abs packed booleans.
1292         (hppa_link_hash_newfunc): Init new fields.
1293         (PLABEL_PLT_ENTRY_SIZE): Define.
1294         (hppa_stub_name): Use size_t len vars.
1295         (hppa_add_stub): Likewise.
1296         (elf32_hppa_build_stubs): Likewise.
1297         (hppa_build_one_stub): Kill some compiler warnings.
1298         (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1299         if dynamic linking.  Munge the local plt offsets into
1300         local_got_refcounts.  Set h->plabel for all global PLABELs.  Use
1301         size_t len vars.  Add assert for plabel addend.
1302         (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1303         (elf32_hppa_hide_symbol): New function.
1304         (elf_backend_hide_symbol): Define.
1305         (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1306         with h->plabel set.  Don't make plt entries to have dynamic syms
1307         when they have been forced local.  If plt entry is used by a
1308         plabel, make it PLABEL_PLT_ENTRY_SIZE.
1309         (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1310         Set up .plt offsets for local syms.
1311         (elf32_hppa_relocate_section): Initialise plt entries for local
1312         syms.  Leave weak undefined plabels zero.  Make global plabel
1313         relocs against function symbol, and leave the addend zero.
1314         Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1315         (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1316         non-dynamic syms.  Init extra plt for plabels.  Use *ABS* DIR32
1317         relocs instead of SEGREL32 for dynamic got relocs.
1318         (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1319         (elf_backend_got_header_size): Adjust.
1320         (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1322         * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1323         (hppa_type_of_stub): Use it instead of #if 0
1324         (hppa_discard_copies): Use it here too.
1325         (elf32_hppa_size_dynamic_sections): And here.
1327         * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1328         (elf32_hppa_link_hash_table_create): And here.
1329         (hppa_build_one_stub): And here.  Instead keep track of stub
1330         offset using _raw_size.
1331         (elf32_hppa_size_stubs): Likewise.
1332         (elf32_hppa_build_stubs): Likewise.
1333         (hppa_size_one_stub): Likewise.  Resize reloc section too.
1335         * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1336         first_fini_sec handling.  Don't search for reloc section or set
1337         hplink->reloc_section_created here.
1338         (elf32_hppa_size_stubs): Instead search for reloc sections, and
1339         set reloc_section_created here.
1340         (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1341         (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1342         and DT_FINI.
1343         (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1345         * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1346         with `hplink->root.'.
1347         (elf32_hppa_check_relocs): Likewise.
1348         (elf32_hppa_gc_sweep_hook): Likewise.
1349         (elf32_hppa_adjust_dynamic_symbol): Likewise.
1350         (hppa_handle_PIC_calls): Likewise.
1351         (elf32_hppa_size_dynamic_sections): Likewise.
1352         (elf32_hppa_set_gp): Likewise.
1353         (elf32_hppa_relocate_section): Likewise.
1354         (elf32_hppa_finish_dynamic_symbol): Likewise.
1355         (elf32_hppa_finish_dynamic_sections): Likewise.
1357         From  David Huggins-Daines  <dhd@linuxcare.com>
1358         * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1359         defined weak symbols in shared links.
1360         (final_link_relocate): Calls to defined weak symbols in shared
1361         objects must go via import stubs, as the target might not be known
1362         at link time.
1364 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
1366         * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1367         R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1368         R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167.  Replaced
1369         the original entries with EMPTY_HOWTOs, and added new ones to fill
1370         in the gap.
1371         (sh_elf_info_to_howto): Make sure the new gap isn't used.
1372         (sh_elf_relocate_section): Likewise.
1374 2000-09-13  Anders Norlander  <anorland@acc.umu.se>
1376         * cpu-mips.c (arch_info_struct): Add mips:4K
1377         * bfd-in2.h (bfd_mach_mips4K): New define.
1378         * archures.c: Add bfd_mach_mips4K to comment.
1379         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1380         E_MIPS_ARCH_2 for bfd_mach_mips4K.
1382 2000-09-13  Marco Franzen <marcof@thyron.com>
1384         * som.c (som_write_symbol_strings): Do not used fixed buffers,
1385         use size_t as a counter.
1386         (som_write_space_strings): Similarly.
1388 2000-09-12  Jason Eckhardt  <jle@cygnus.com>
1390         * elf32-i860.c (elf32_i860_relocate_pc26): New function
1391         and prototype.
1392         (elf32_i860_relocate_section): Invoke new function from here.
1394 2000-09-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1396         * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1397         static.
1399 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1401         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1402         target section name instead of dumping core when the target symbol is
1403         undefined.
1405 2000-09-09  Kazu Hirata  <kazu@hxi.com>
1407         * riscix.c: Remove DEFUN.
1409 2000-09-08  Nick Clifton  <nickc@redhat.com>
1411         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1412         initialise flags in output bfd if the input bfd is the default
1413         architecture with the default flags.
1415 2000-09-08  Kazu Hirata  <kazu@hxi.com>
1417         * archive.c: Fix formatting.
1418         * coff-arm.c: Likewise.
1419         * doc/chew.c: Likewise.
1421 2000-09-08  Alan Modra  <alan@linuxcare.com.au>
1423         * section.c (bfd_get_unique_section_name): Put a dot before the
1424         numeric suffix.
1426 2000-09-07  Kazu Hirata  <kazu@hxi.com>
1428         * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1429         * elf.c: Fix formatting.
1431 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
1433         * config.bfd (sh-*-linux*): Added.
1434         * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1435         * targets.c: Declare them.
1436         * elf32-sh-lin.c: New file.
1437         * Makefile.am: Compile it.
1438         * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1439         * configure, Makefile.in: Rebuilt.
1441 2000-09-06  Geoffrey Keating  <geoffk@cygnus.com>
1443         * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1444         pseduo-section when determining where the TOC ends.
1446         * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1447         output x_tvndx as it is only two bytes wide.
1449         * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1450         reloc is 26 or 32 bits wide.
1452         * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1453         for relocs that don't change anything.  Also look at the full
1454         6 bits of bitsize.
1456 2000-09-06  Philip Blundell  <philb@gnu.org>
1458         * config.bfd (arm*-*-uclinux*): New target.
1460 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
1462         * configure: Rebuilt with new libtool.m4.
1464 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
1466         * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1467         word for variable name.
1468         * bfd-in2.h: Regenerate.
1470 2000-09-05  Nick Clifton  <nickc@redhat.com>
1472         * config.in: Regenerate.
1473         * libbfd.h: Regenerate.
1474         * po/bfd.pot: Regenerate.
1475         * doc/bfdint.texi: Remove CVS date string - it foils compares with
1476         local versions.
1478 2000-09-05  Steven Johnson  <sbjohnson@ozemail.com.au>
1480         * cpu-powerpc.c  (arch_info_struct): Added MPC860 Family entry.
1482 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
1484         Shared library and PIC support.
1485         * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1486         (GOT_ENTRY_SIZE): New.
1487         (ELF_DYNAMIC_INTERPRETER): New.
1488         (STUB_SUFFIX): Define.
1489         (LONG_BRANCH_PIC_IN_SHLIB): Define.
1490         (RELATIVE_DYNAMIC_RELOCS): Define.
1491         (enum elf32_hppa_stub_type): New.
1492         (struct elf32_hppa_stub_hash_entry): Rename offset to
1493         stub_offset.  Add a number of new fields.
1494         (struct elf32_hppa_link_hash_entry): New.
1495         (struct elf32_hppa_link_hash_table): Add numerous fields.  Remove
1496         global_value.
1497         (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1498         (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1499         (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc.  Init
1500         new fields.
1501         (hppa_link_hash_newfunc): New function.
1502         (elf32_hppa_link_hash_table_create): Use above function. Init new
1503         fields.
1504         (elf32_hppa_stub_name): Rename to hppa_stub_name.  Pass in reloc
1505         instead of addend, and remove sym_name from args.  Don't use
1506         symbol name for local syms, instead use sym index.
1507         (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1508         stub type rather than size.  Pass in hash and handle import stub
1509         case.  Also pass in reloc instead of offset so we can calculate
1510         PCREL22F and PCREL12F branches properly.
1511         (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub.  Build
1512         import and export stubs too.
1513         (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub.  Handle
1514         import and export stub sizing.
1515         (elf32_hppa_check_relocs): New function.
1516         (elf32_hppa_adjust_dynamic_symbol): New function.
1517         (hppa_discard_copies): New function.
1518         (elf32_hppa_size_dynamic_sections): New function.
1519         (elf_backend_size_dynamic_sections): Define.
1520         (elf32_hppa_finish_dynamic_symbol): New function.
1521         (elf_backend_finish_dynamic_symbol): Define.
1522         (elf32_hppa_size_stubs): Stash params in link hash table, and move
1523         some local vars into the link hash table too.  For shared links,
1524         trundle over function syms, generating export stubs.  Handle
1525         PCREL22F branches.  Break out stub creation code from here..
1526         (hppa_add_stub): .. to here.  New function.
1527         (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1528         call the bfd linker.  Use elf_gp to record global pointer.
1529         Calculate a value from sections if $global$ is missing.
1530         (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1531         (elf32_hppa_gc_mark_hook): New function.
1532         (elf_backend_gc_mark_hook): Define.
1533         (elf32_hppa_gc_sweep_hook): New function.
1534         (elf_backend_gc_sweep_hook): Define.
1535         (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1536         Add rel to args, and remove howto, input_bfd, offset, addend,
1537         sym_name as we can recalculate these locally.  Handle calls to
1538         dynamic objects, extra PIC relocs, PCREL22F branches.  Change
1539         handling of undefined weak syms.  Check that stubs are in range.
1540         Only look for import stubs on PCREL17F and PCREL22F relocs.  Add
1541         message on hitting a DPREL21L reloc that needs fixing.  Subtract
1542         off PC for PCREL14F.  Break out code that does a stub lookup from
1543         here..
1544         (hppa_get_stub_entry): ..to here.  New function.
1545         (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1546         (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1547         relocs, etc. etc.
1548         (elf32_hppa_finish_dynamic_sections): New function.
1549         (elf_backend_finish_dynamic_sections): Define.
1550         (elf_backend_final_write_processing) Define.
1551         (hppa_handle_PIC_calls): New function.
1552         (elf32_hppa_build_stubs): Call it.  Pass link_info to
1553         hppa_build_one_stub.
1554         (elf32_hppa_create_dynamic_sections): New function
1555         to create .plt and .got then set .plt flags correctly.
1556         (elf_backend_create_dynamic_sections): Define.
1557         (elf32_hppa_object_p): New function.
1558         (elf_backend_object_p): Define.
1559         (elf32_hppa_elf_get_symbol_type): New function.
1560         (elf_backend_get_symbol_type): Define.
1561         (elf_backend_can_gc_sections): Define.
1562         (elf_backend_want_got_plt): Define.
1563         (elf_backend_plt_alignment): Set to 2.
1564         (elf_backend_plt_readonly): Define.
1565         (elf_backend_want_plt_sym): Define.
1566         (elf_backend_got_header_size): Reserve one entry.
1568         * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1569         (elf32_hppa_size_stubs): Pass in multi_subspace.
1570         (elf32_hppa_set_gp): Declare.
1572         * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1573         (bfd_get_unique_section_name): New function.
1574         * bfd_in2.h: Regenerate.
1576         * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1577         (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1578         comment.
1580         From  David Huggins-Daines  <dhd@linuxcare.com>
1581         * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1582         (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1583         (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1584         been updated in finish_dynamic_symbol before modifying function
1585         symbol.
1587         * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1588         eight entries.  Replace NULL with bfd_elf_generic_reloc.  Add
1589         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1590         (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*.  Add some
1591         comments.  Handle format == 12 for R_HPPA_PCREL_CALL.
1592         (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1593         (elf_hppa_relocate_insn): Likewise.  Reformat some comments.
1594         (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1596         From David Huggins-Daines  <dhd@linuxcare.com>
1597         * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1598         style of local labels as well.
1600 2000-09-03  Philip Blundell  <philb@gnu.org>
1602         * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1603         references to undefined symbols in debugging sections.
1605 2000-09-02  H.J. Lu  <hjl@gnu.org>
1607         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1608         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1609         BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1610         section.
1612 2000-09-02  Jason Eckhardt  <jle@cygnus.com>
1614         * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1615         (elf32_i860_is_local_label_name): New function and prototype.
1617 2000-09-02  Nick Clifton  <nickc@redhat.com>
1619         * configure.in: Increase version number to 2.10.91.
1620         * configure: Regenerate.
1621         * aclocal.m4: Regenerate.
1622         * config.in: Regenerate.
1623         * po/bfd.pot: Regenerate.
1625 2000-09-02  Daniel Berlin <dberlin@redhat.com>
1627         * elf.c (_bfd_elf_make_section_from_shdr): Add
1628         .gnu.linkobce.wi. to the list of debug section names.
1630 2000-09-02  Nick Clifton  <nickc@redhat.com>
1632         * dwarf2.c (find_debug_info): New function: Locate a section
1633         containing dwarf2 debug information.
1634         (bfd_dwarf2_find_nearest_line): Find all sections containing
1635         debug information and include them in the stash.
1637 2000-09-01  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
1639         * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1640         R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1641         (sh_reloc_map): Add new relocs.
1642         (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1643         sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1644         sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1645         sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1646         functions.
1647         (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1648         (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1649         elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1650         elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1651         New array constants.
1652         (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1653         New variables.
1654         (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1655         elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1656         elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1657         elf_sh_plt_reloc_offset): Define.
1658         (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1659         elf_sh_link_hash_table): New structs.
1660         (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1661         (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1662         relocation types.
1663         (elf_backend_create_dynamic_sections,
1664         bfd_elf32_bfd_link_hash_table_create,
1665         elf_backend_adjust_dynamic_symbol,
1666         elf_backend_size_dynamic_sections,
1667         elf_backend_finish_dynamic_symbol,
1668         elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1669         elf_backend_plt_readonly, elf_backend_want_plt_sym,
1670         elf_backend_got_header_size, elf_backend_plt_header_size):
1671         Define.
1672         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1673         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1674         New relocs.
1675         * bfd-in2.h, libbfd.h: Rebuilt.
1677 2000-09-01  Alan Modra  <alan@linuxcare.com.au>
1679         * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1680         change.
1682 2000-08-31  J"orn Rennecke <amylaar@cygnus.co.uk>
1684         * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1685         not initialized, set them to indicate the SH1 instruction set.
1687 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
1689         * acinclude.m4: Include libtool and gettext macros from the
1690         top level.
1691         * aclocal.m4, configure: Rebuilt.
1693 2000-08-29  Michael Snyder  <msnyder@seadog.cygnus.com>
1695         * elf.c: Eliminate references to __sparcv9 macro; replace with
1696         autoconf variables HAVE_PSINFO32_T etc.
1697         * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1698         HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1699         * config.in: Ditto.
1700         * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1701         detect the above typedefs.  (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1702         * aclocal.m4: Ditto.
1703         * configure: Regenerate.
1705 2000-08-27  Alan Modra  <alan@linuxcare.com.au>
1707         * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1708         for any shared link, not just shared -Bsymbolic.
1709         (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1710         any shared link, and pass link info to it.
1711         (elf_i386_size_dynamic_sections): Update comment.
1712         (elf_i386_discard_copies): Modify to discard relocs for symbols
1713         that have been forced local.
1714         (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1715         that have been forced local.
1717 2000-08-24  Denis Chertykov  <denisc@overta.ru> & Nick Clifton  <nickc@redhat.com>
1719         * elflink.h (elf_link_add_object_symbols): Allow common
1720         symbols to have an alignment of 1 if explicitly requested, and
1721         not overridden by other definitions.
1723 2000-08-22  Doug Kwan <dkwan@transmeta.com>
1725         * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1726         * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1728 2000-08-22  H.J. Lu  <hjl@gnu.org>
1730         * elf-bfd.h (elf_link_hash_table): Add runpath.
1732         * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1733         * bfd-in2.h: Rebuilt.
1735         * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1736         "runpath" field to NULL.
1737         (bfd_elf_get_runpath_list): New function.
1739         * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1740         DT_RUNPATH entries.
1742 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
1744         * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1745         R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1746         explicitly.  Improve validation of r_type.
1748 2000-08-21  H.J. Lu  <hjl@gnu.org>
1750         * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1751         dynamic allocated content space.  Add a comment to remind us that
1752         one day this ought to be fixed.
1753         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1754         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1755         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1757 2000-08-21  Jason Eckhardt  <jle@cygnus.com>
1759         * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
1760         field with the newly relocated value instead of adding it to the
1761         existing immediate field.
1762         (elf32_i860_relocate_splitn): Likewise.
1763         (elf32_i860_relocate_highadj): Likewise.
1765 2000-08-16  Jason Eckhardt  <jle@cygnus.com>
1767         * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
1768         was previously just a stub).
1770 2000-08-16  Alexandre Oliva  <aoliva@redhat.com>
1772         * elflink.c (_bfd_elf_create_got_section): Don't abort().
1773         Formatting fixes.
1774         (_bfd_elf_create_dynamic_sections): Likewise.
1776 2000-08-16  Andrew Macleod  <amacleod@cygnus.com>
1778         * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
1779         for undefined symbols to be the beginning of the section.
1781         * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
1782         four extra entries at the beginning of the .rela.plt section.
1783         (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
1784         section to account for the four reserved entries in the .plt section.
1786 2000-08-15  Geoffrey Keating  <geoffk@cygnus.com>
1788         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
1789         to the list of NOPs we recognize after a branch-and-link.
1790         Use the ori NOP when one is needed.
1792         * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
1793         for large archives.
1795 2000-08-14  Jim Wilson  <wilson@cygnus.com>
1797         * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
1798         EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
1799         (elf64_ia64_print_private_bfd_data): Likewise.  Also handle
1800         EF_IA_64_ABSOLUTE.
1802 2000-08-11  Alexandre Oliva  <aoliva@redhat.com>
1804         * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1806 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
1808         * elf32-i860.c (elf32_i860_relocate_section): New function.
1809         (i860_final_link_relocate): New function.
1810         (elf32_i860_relocate_splitn): New function.
1811         (elf32_i860_relocate_pc16): New function.
1812         (elf32_i860_relocate_highadj): New function.
1813         (elf32_i860_howto): Minor adjustments to some relocations.
1814         (elf_info_to_howto_rel): Define.
1815         (elf_backend_relocate_section): Define.
1817 2000-08-10  Nick Clifton  <nickc@cygnus.com>
1819         * elf32-arm.h: Fix formatting.
1821 2000-08-10  Bernd Schmidt  <bernds@cygnus.co.uk>
1823         * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
1825 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
1827         * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
1829 2000-08-07  Kazu Hirata  <kazu@hxi.com>
1831         * ieee.c (ieee_write_debug_part): Rewrite a comment.
1832         * elf64-ia64.c: Fix a typo.
1834 2000-08-05  Jason Eckhardt  <jle@cygnus.com>
1836         * elf32-i860 (elf32_i860_howto_table): New structure.
1837         (lookup_howto): New function.
1838         (elf32_i860_reloc_type_lookup): New function.
1839         (elf32_i860_info_to_howto_rela): New function.
1840         (elf_code_to_howto_index): New structure.
1841         (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
1842         (bfd_elf32_bfd_reloc_type_lookup): Re-define as
1843         elf32_i860_reloc_type_lookup.
1845 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
1847         * som.c (struct fixup_format): Constify `format'.
1848         (som_hppa_howto_table): Use SOM_HOWTO macro.
1849         (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
1850         (som_bfd_reloc_type_lookup): Likewise.
1851         (compare_subspaces): Remove unused `count1', `count2'.
1852         (som_begin_writing): Remove unused `total_reloc_size'.
1853         (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
1854         (som_print_symbol, som_bfd_is_local_label_name): Likewise.
1855         (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
1856         (som_find_nearest_line): Decorate unused parameter(s).
1857         (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
1858         (som_bfd_link_split_section): Likewise.
1860 2000-08-03  Nick Clifton  <nickc@cygnus.com>
1862         * section.c: Restore backed out code.
1863         * elf.c: Restore backed out code.
1864         (copy_private_bfd_data): Fix bug preventing stipped dynamic
1865         binaries from working.
1866         * bfd-in2.h: Regenerate.
1868 2000-08-03  H.J. Lu  <hjl@gnu.org>
1870         * section.c: Back out the change made by Nick Clifton
1871         <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
1872         binaries.
1873         * bfd-in2.h: Likewise.
1874         * elf.c: Likewise.
1876 2000-08-03  Alexandre Oliva  <aoliva@redhat.com>
1878         * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
1880 2000-07-31  Jason Eckhardt  <jle@cygnus.com>
1882         * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
1883         * bfd-in2.h, libbfd.h: Regenerate.
1885 2000-07-31  Nick Clifton  <nickc@cygnus.com>
1887         * section.c (struct sec): Add new boolean field 'segment_mark'.
1888         (STD_SECTION): Initialise new field to zero.
1890         * bfd-in2.h: Regenerate.
1892         * elf.c (copy_private_bfd_data): Reorganise section to segment
1893         mapping to cope with moved sections requiring new segments,
1894         and overlapping segments.
1895         (SEGMENT_END): New macro: Return the end address of a segment.
1896         (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
1897         contains a section by comparing their VMA addresses.
1898         (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
1899         contains a section by comparing their LMA addresses.
1900         (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
1901         section should be included in a segment.
1902         (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
1903         follows another in memory.
1904         (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
1905         segments overlap.
1907 2000-07-22  Jason Eckhardt  <jle@cygnus.com>
1909         * cpu-i860.c: Added comments.
1911         * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
1912         bfd_elf32_i860_little_vec.
1913         (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
1914         (ELF_MAXPAGESIZE): Changed to 4096.
1916         * targets.c (bfd_elf32_i860_little_vec): Declaration of
1917         new target.
1918         (bfd_target_vector): Added bfd_elf32_i860_little_vec.
1920         * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
1921         config for little endian elf32 i860.
1922         (targ_defvec): Define for the new config above
1923         as "bfd_elf32_i860_little_vec".
1924         (targ_selvecs): Define for the new config above
1925         as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
1927         * configure.in (bfd_elf32_i860_little_vec): Added recognition
1928         of new target vec.
1930         * configure: Regenerated.
1932 2000-07-27  H.J. Lu  <hjl@gnu.org>
1934         * elflink.h (elf_merge_symbol): Take one more argument,
1935         dt_needed, to indicate if the symbol comes from a DT_NEEDED
1936         entry. Don't overide the existing weak definition if dt_needed
1937         is true.
1938         (elf_link_add_object_symbols): Pass dt_needed to
1939         elf_merge_symbol ().
1941 2000-07-27  Nick Clifton  <nickc@cygnus.com>
1943         * elflink.h (elf_link_size_reloc_section): Zeroes the section's
1944         allocated contents.
1946 2000-07-25  Geoffrey Keating  <geoffk@cygnus.com>
1948         * configure.host (*-*-aix*): AIX has 'long long' always.
1950         * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
1951         (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
1952         (xcoff_write_archive_contents_big): Don't update the offset
1953         of the symbol table, xcoff_write_armap will do it.
1955 2000-07-23  Ulf Carlsson  <ulfc@engr.sgi.com>
1957         * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
1958         of dynobj for SGI_COMPAT checks.
1960 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1962         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
1963         * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
1964         * bfd-in2.h: Regenerate.
1966 2000-07-21  Nick Clifton  <nickc@cygnus.com>
1968         * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
1969         range symbol indices in relocs and issue an error message.
1971 2000-07-20  H.J. Lu  <hjl@gnu.org>
1973         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
1974         info->new_dtags when setting DT_FLAGS_1. It will only be set
1975         by the new linker options. It shouldn't break anything.
1977 2000-07-20  H.J. Lu  <hjl@gnu.org>
1979         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
1980         only if info->new_dtags is true.
1982 2000-07-20  H.J. Lu  <hjl@gnu.org>
1984         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
1985         DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
1987 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
1989         * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
1990         (ALL_MACHINES_CFILES): Add cpu-cris.c.
1991         (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
1992         (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
1993         (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
1994         * Makefile.in: Rebuild.
1995         * aclocal.m4: Rebuild.
1996         * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
1997         * archures.c (enum bfd_architecture): Add bfd_arch_cris.
1998         (bfd_cris_arch): Declare.
1999         (bfd_archures_list): Add bfd_cris_arch.
2000         * bfd-in2.h: Rebuild.
2001         * config.bfd: (cris-*-*): New target.
2002         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2003         * configure: Rebuild.
2004         * elf.c (prep_headers): Add bfd_arch_cris.
2005         * libbfd.h: Rebuild.
2006         * libaout.h (enum machine_type): Add M_CRIS.
2007         * reloc.c: Add CRIS relocations.
2008         * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2009         (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2010         * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2011         * po/POTFILES.in, po/bfd.pot: Regenerate.
2013 2000-07-19  H.J. Lu  <hjl@gnu.org>
2015         * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2016         DF_TEXTREL if DT_TEXTREL is set.
2017         * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2018         * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2019         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2020         * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2021         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2022         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2023         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2024         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2025         * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2026         * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2028         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2029         set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2030         DT_RPATH is set.
2031         Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2033 2000-07-19  H.J. Lu  <hjl@gnu.org>
2035         * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2036         * bfd-in2.h: Rebuild.
2038         * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2039         (elf_dt_soname): New.
2041         * elf.c (bfd_elf_set_dt_needed_soname): New.
2043         * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2044         entry if the shared object loaded by DT_NEEDED is used to
2045         resolve the reference in a regular object.
2047 2000-07-19  H.J. Lu  <hjl@gnu.org>
2049         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2050         DT_DEPAUDIT and DT_AUDIT as strings.
2052 2000-07-19  Nick Clifton  <nickc@cygnus.com>
2054         * format.c: Fix formatting.
2056 2000-07-19  H.J. Lu  <hjl@gnu.org>
2058         * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2060 2000-07-19  H.J. Lu  <hjl@gnu.org>
2062         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2063         DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2064         DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2065         DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2066         DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2067         DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2068         DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2070 2000-07-18  Andrew Cagney  <cagney@b1.cygnus.com>
2072         * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2073         renamed functions from here...
2074         (assign_section_numbers): Use renamed functions.
2075         (prep_headers): Use renamed functions.
2077         * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2078         * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2079         * bfd-in2.h: Regenerate.
2081 2000-07-18  Ulf Carlsson  <ulfc@engr.sgi.com>
2083         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2084         parenthesis in if statement.
2086 2000-07-17  Koundinya K  <kk@ddeorg.soft.net>
2088         Enable the support for Traditional MIPS.
2089         * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2090         return ict_none appropriately for traditional mips targets.
2091         (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2092         (STUB_MOVE): Conditionalize for traditonal mips.
2093         (STUB_LI16): Likewise.
2094         (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2095         room for RTPROC header.
2096         (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2097         the permission for the PT_DYNAMIC as read, write and execute.
2098         (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2099         for traditonal mips.
2100         (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2101         _DYNAMIC_LINKING for traditonal mips.
2102         (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2103         in case of traditonal mips.
2104         (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2105         entry is required. For a function if PLT is not required then set the
2106         corresponding hash table entry to 0.
2107         (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2108         traditonal mips.
2109         (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2110         shared object set the value to 0.
2111         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2112         _DYNAMIC_LINKING for traditonal mips.
2113         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2114         for traditonal mips.
2116 2000-07-15  H.J. Lu  <hjl@gnu.org>
2118         * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2120 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
2122         * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2123         out a structure that is BFD_IN_MEMORY.
2125 2000-07-11  Alan Modra  <alan@linuxcare.com.au>
2127         * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2128         bfd pointer.  Print section id instead of bfd pointer for local
2129         syms.  Prefix addend with `+' for global syms as well as local.
2130         Correct calculation of name component lengths.
2131         (elf64_hppa_check_relocs): Update call to get_dyn_name.
2133         From David Huggins-Daines  <dhd@linuxcare.com>
2134         * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2135         * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2136         (elf64_hppa_modify_segment_map): Likewise.
2138 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2140         * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2141         addresses to be "naturally" sign extended.  Return -1 if unknown.
2142         * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2143         * bfd-in2.h: Regenerate.
2145 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2147         * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2148         and ECOF_SIGNED_64 to list ways to extract an offset.
2149         (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2150         ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2151         Update.
2152         * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2153         * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2155 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2157         * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2158         bfd_get_start_address.
2159         (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2160         (elf_swap_ehdr_out): Ditto.
2162 2000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>
2164         * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2165         compatibility with older binutils.
2167 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
2169         * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2170         (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2172         From Ryan Bradetich  <rbradetich@uswest.net>
2173         * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2174         (parse_line_table): Ditto.
2175         (_bfd_dwarf1_find_nearest_line): Ditto.
2176         * syms.c (cmpindexentry): Remove extra `*' from params.
2178 2000-07-09  Koundinya K  <kk@ddeorg.soft.net>
2180         * elf32-mips.c (sort_dynamic_relocs): New Function.
2181         (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2182         via qsort to sort the dynamic relocations in increasing r_symndx
2183         value.
2185 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
2187         * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2188         ATTRIBUTE_UNUSED to unused args.
2189         (get_opd): Likewise.
2190         (get_plt): Likewise.
2191         (get_dlt): Likewise.
2192         (get_stub): Likewise.
2193         (elf64_hppa_adjust_dynamic_symbol): Likewise.
2194         (elf64_hppa_link_output_symbol_hook): Likewise.
2195         (elf64_hppa_check_relocs): Delete unused var.
2196         (elf64_hppa_size_dynamic_sections): Likewise.
2197         (elf64_hppa_finalize_opd): Likewise.
2198         (elf64_hppa_finalize_dynreloc): Likewise.
2199         (elf64_hppa_modify_segment_map): Likewise.
2200         (elf64_hppa_finish_dynamic_sections): Likewise.
2202         * elf-hppa.h (elf_hppa_final_write_processing): Add
2203         ATTRIBUTE_UNUSED to unused args.
2204         (elf_hppa_final_link_relocate): Likewise.
2205         (elf_hppa_record_segment_addrs): Add paretheses.
2206         (elf_hppa_relocate_section): Constify dyn_name.
2208         From  David Huggins-Daines  <dhd@linuxcare.com>
2209         * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2210         rearrange case statement so that it gets preferred to 32-bit ones.
2212         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2213         asection->id instead of address of asection structure.
2214         (elf32_hppa_size_stubs): Likewise.
2216         * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2217         for .init* and .fini*.
2219         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2220         and addends used in stub names to 32 bits.
2221         (elf32_hppa_size_stubs): Likewise.
2223         * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2224         twice for R_PARISC_GPREL64.  Use bfd_put_32 for R_PARISC_PCREL32,
2225         not bfd_put_64.  Fix minor comment typo and formatting.
2227         Changes to create multiple linker stubs, positioned immediately
2228         before the section where they are required.
2229         * elf32-hppa.c: Don't include hppa_stubs.h.
2230         (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2231         (elf32_hppa_stub_hash_table): Delete.
2232         (elf32_hppa_link_hash_entry): Delete.
2233         (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2234         stub_hash_table, and store the struct here rather than a pointer.
2235         Delete output_symbol_count.  Add offset array.  Change
2236         global_value to a bfd_vma.
2237         (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2238         (elf32_hppa_stub_hash_traverse): Delete.
2239         (elf32_hppa_name_of_stub): Delete.
2240         (elf32_hppa_link_hash_lookup): Delete.
2241         (elf32_hppa_link_hash_traverse): Delete.
2242         (elf32_hppa_stub_hash_table_init): Delete.
2243         (elf32_hppa_size_of_stub): Pass input section and offset rather
2244         than location and calculate location here.  Don't pass name as all
2245         stubs are now the same size.
2246         (elf32_hppa_stub_hash_newfunc): Init new fields.
2247         (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2248         too.
2249         (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2250         comparing against ints.  Rewrite stub handling code.
2251         (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2252         Case enums to int before comparing against ints.  Remove
2253         bfd_reloc_dangerous case.
2254         (elf32_hppa_build_one_stub): Rewrite.
2255         (elf32_hppa_size_one_stub): New function.
2256         (elf32_hppa_build_stubs): Rewrite.
2257         (elf32_hppa_size_stubs): Pass in linker call-back functions.
2258         Rewrite stub-handling specific code.
2260         * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2262         * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2264         * hppa_stubs.h: Delete.
2265         * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2266         (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2267         * Makefile.in: Regenerate.
2269         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2270         e_nlrsel.
2272         * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2274         * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2275         and section name for bfd_reloc_notsupported error message.
2276         (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2277         bfd_reloc_notsupported.
2278         (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2280         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2281         undefined weak symbols for all relocs.
2282         (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2283         offsets are relative to one past the delay slot.
2284         (elf32_hppa_size_stubs): Account for reloc addend when calculating
2285         branch destination.  Put addend into stub name too.
2286         (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2287         adjust by 8 when deciding whether a linker stub is needed.  Put
2288         addend into stub name as for above.
2290         * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2291         various args and vars.
2292         (elf32_hppa_bfd_final_link_relocate): Here too.
2293         (elf32_hppa_size_stubs): Rename index -> indx.  Use e_indx for
2294         inner block var to avoid shadowing.
2296         * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type):  Make `field' arg
2297         unsigned.
2298         * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2299         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2300         (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2302         * libhppa.h: Change practically all unsigned ints to plain ints.
2303         Remove tests on gcc version.  Instead use ATTRIBUTE_UNUSED for
2304         prototypes.
2306         From Ryan Bradetich  <rbradetich@uswest.net>
2307         * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2308         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2309         suit above.
2310         From  David Huggins-Daines  <dhd@linuxcare.com>
2311         * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2312         to the new OP_* ones.
2314         * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2315         error exit.  Bail out earlier on plabel relocs that we aren't
2316         interested in.  Don't tell elf32_hppa_stub_hash_lookup to copy
2317         string, and then don't free our copy.
2318         (elf32_hppa_build_one_stub): Make insn unsigned int.
2320         * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2321         available with BL, not BE and BLE.
2323         * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2324         code for elf arg relocs.
2325         (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2326         argument with elf_link_hash_entry h.  Handle undefined weak
2327         symbols.  Move $global$ lookup from here...
2328         (elf32_hppa_relocate_section): ...to here.  Return correct error
2329         message for non-handled relocs.
2330         (elf32_hppa_size_of_stub): Correctly test branch range.  Previous
2331         wrong test was -0x3ffff to +0x40000.
2333         * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2334         R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2335         Handle them as such.
2336         (elf_hppa_relocate_insn): Fix a typo.
2338         * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2339         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2340         assemble_17, assemble_21): Delete.
2341         Supply defines for all 64 possible opcodes.
2342         (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2343         formats.  Handle COMICLR.
2344         (hppa_rebuild_insn): Delete bfd argument.  Handle formats 10, -11,
2345         -10, -16, 16, 22.
2347         * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2348         (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2349         (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2350         to suit.
2351         (elf32_hppa_size_stubs): Don't free stub_name twice.  Read in all
2352         the local syms - did this code get deleted accidentally?  Ignore
2353         undefined and undefweak syms.
2355         * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2356         block.  Use it instead of elf64_hppa_hash_table (info).
2357         (elf_hppa_final_link_relocate): Use hppa_info instead of
2358         elf64_hppa_hash_table (info).
2360         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2361         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2362         (hppa_rebuild_insn): Mask immediate bits here instead.
2363         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2365 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
2367         * section.c (struct sec): Add id field.  Tidy comment formatting.
2368         (bfd_make_section_anyway): Set id.
2369         (STD_SECTION): Init id too.
2370         Change CONST to const throughout.
2371         * archures.c (bfd_arch_info): Tidy comment.
2372         (bfd_arch_list): Change a CONST to const.
2373         * libbfd-in.h: Tidy comments and replace CONST with const.
2374         * elf-bfd.h: Likewise.
2375         * libbfd.h: Regenerate.
2376         * bfd-in2.h: Regenerate.
2377         * libcoff.h: Regenerate.
2379 2000-07-07  DJ Delorie  <dj@redhat.com>
2381         * archive.c (_bfd_write_archive_contents): Add an informative
2382         comment.
2384 2000-07-06  Kazu Hirata  <kazu@hxi.com>
2386         * srec.c: Fix formatting.
2388 2000-06-05  DJ Delorie  <dj@redhat.com>
2390         * MAINTAINERS: new
2392 2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
2394         * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2395         value of PC-relative offsets.
2397 2000-07-03  Jim Wilson  <wilson@cygnus.com>
2399         * elf64-alpha.c (alpha_elf_size_info): New.
2400         (elf_backend_size_info): Define to alpha_elf_size_info.
2401         * elfcode.h (elf_size_info): Change hash bucket size to 4.
2403 2000-07-03  Ulf Carlsson  <ulfc@engr.sgi.com>
2405         * elf32-mips.c: Include elf32-target.h again for the traditional
2406         MIPS targets.
2408 2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
2410         * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2411         Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2412         (avr_info_to_howto_rela): Likewise.
2413         (elf32_avr_gc_mark_hook): Likewise.
2414         (elf32_avr_gc_sweep_hook): Likewise.
2415         (elf32_avr_relocate_section): Likewise.
2417 2000-07-03  Mark Elbrecht  <snowball3@bigfoot.com>
2419         * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2420         an external symbol for a non-shared, non-relocatable link.
2422 2000-07-03  Nick Clifton  <nickc@redhat.com>
2424         * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2425         is an external symbol.
2426         (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2427         external symbol.
2429 2000-07-03  Kazu Hirata  <kazu@hxi.com>
2431         * reloc16.c: Fix formatting.
2433 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
2435         * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2436         to add a new target for traditional mips i.e
2437         bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2438         * configure.in: Likewise.
2439         * configure: Rebuild.
2440         * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2441         bfd_target_vector.
2442         (bfd_elf32_tradlittlemips_vec): Likewise.
2443         * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2444         to see that elfNN_bed does not get redefined even if the target file
2445         is included twice for a chip. See elf32-mips.c.
2447 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
2449         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
2450         (CLEANFILES): Add DEPA.
2451         * Makefile.in: Regenerate.
2453 2000-06-30  DJ Delorie  <dj@cygnus.com>
2455         * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2456         can't assume the PE header is at 0x80.
2458 2000-06-29  Mark Elbrecht  <snowball3@bigfoot.com>
2460         * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2462 2000-06-28  Mark Elbrecht  <snowball3@bigfoot.com>
2464         * go32stub.h: Update stub.
2466 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
2468         * archures.c (bfd_mach_avr5): Define.
2469         * bfd-in2.h (bfd_mach_avr5): Define.
2470         * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2471         bfd_mach_avr5, add bfd_mach_avr4.  Update comments.
2472         (compatible): Update comment.  Add missing test.
2473         * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2474         for avr2 and avr4.  Simplify 8K wrap code.
2475         (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2476         (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2478 2000-06-26  Kazu Hirata  <kazu@hxi.com>
2480         * coff-h8300.c: Fix formatting.
2481         * cpu-h8300.c: Likewise.
2483 2000-06-24  Alexandre Oliva  <aoliva@redhat.com>
2485         * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2486         for local symbols whose names are unknown.
2488 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
2490         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2491         find one.
2492         * Makefile.in: Regenerate.
2493         * doc/Makefile.in: Regenerate.
2495 2000-06-20  H.J. Lu  <hjl@gnu.org>
2497         * Makefile.am: Rebuild dependency.
2498         * Makefile.in: Rebuild.
2500 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2502         * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2503         (elf_backend_copy_indirect_symbol): Map to the new function.
2505 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
2507         * archive.c (normalize): Correct pointer comparison when checking
2508         for backslashes.
2509         (bfd_bsd_truncate_arname): Likewise.
2510         (bfd_gnu_truncate_arname): Likewise.
2512 2000-06-20  Ulf Carlsson  <ulfc@engr.sgi.com>
2514         * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2515         sections elf_{text,data}_{section,symbol}.
2516         * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2517         (_bfd_mips_elf_hide_symbol): New function.
2518         (elf_backend_hide_symbol): Map to the new function.
2519         (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2520         definitions of mips_elf_{text,data}_{section,symbol}.
2521         (mips_elf_local_relocation_p): Try to find the direct symbol
2522         based on new check_forced argument.
2523         (mips_elf_calculate_relocation): Use new version of
2524         mips_elf_local_relocation_p.
2525         (mips_elf_relocate_section): Likewise.
2526         (_bfd_mips_elf_relocate_section): Likewise.
2527         (mips_elf_sort_hash_table): Only assert that have enough GOT
2528         space.
2529         (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2530         entry if the relocation based on the new external argument.
2531         (mips_elf_create_dynamic_relocation): Assert that we have a
2532         section contents allocated where we can swap out the dynamic
2533         relocations.
2534         (mips_elf_calculate_relocation): Find the real hash-table entry
2535         correctly by using h->root.root.type.  Only create a dynamic
2536         relocation entry if the symbol is defined in a shared library.
2537         Create an external GOT entry for the GOT16 relocation if the
2538         symbol was forced local.
2539         (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2540         dynamic index if the symbol was forced local.
2542 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2544         * elf32-mips.c: Fix typos in comments.
2546 2000-06-19  Mark Kettenis  <kettenis@gnu.org>
2548         * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2549         CORE_VERSION_1.
2551 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
2553         * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2554         * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2555         BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2556         * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2557         (bfd_elf32_m68hc11_vec): Likewise.
2558         * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2559         Supports 68hc11 & 68hc12  at the same time.
2560         * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2561         bfd_target_vector.
2562         (bfd_elf32_m68hc11_vec): Likewise.
2563         * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2564         * archures.c (bfd_m68hc12_arch): Define and register in global list
2565         (bfd_m68hc11_arch): Likewise.
2566         * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2567         BFD_RELOC_M68HC11_3B): Define.
2568         * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2569         * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2571 2000-06-18  Ulf Carlsson  <ulfc@engr.sgi.com>
2573         * elf_bfd.h (struct elf_backend_data): Add info argument to
2574         elf_backend_hide_symbol.
2575         (_bfd_elf_link_hash_hide_symbol): Likewise.
2576         * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2577         * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2578         * elflink.h (elf_link_add_object_symbols): Likewise.
2579         (elf_link_assign_sym_version): Likewise.
2581 2000-06-18  H.J. Lu  <hjl@gnu.org>
2583         * coff-i386.c (coff_i386_reloc): Don't return in case of
2584         output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2585         Compensate PE relocations when linking with non-PE object
2586         files to generate a non-PE executable.
2588 2000-06-17  Ulf Carlsson  <ulfc@engr.sgi.com>
2590         * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2591         GOT entries if we're doing a static link or -Bsymbolic link.
2593 2000-06-15  Ulf Carlsson  <ulfc@engr.sgi.com>
2595         * elflink.h (elf_link_adjust_relocs): Check for and call backend
2596         specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2597         available.
2598         (elf_link_output_relocs): Likewise.
2599         (elf_reloc_link_order): Likewise.
2601 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
2603         * archures.c (enum bfd_architecture): #define constants for
2604         PowerPc and RS6000 machine numbers.
2605         * bfd-in2.h: Regenerate.
2606         * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2607         to bfd_arch_powerpc instead of bfd_arch_rs6000.  Refer to PowerPc
2608         and RS6000 machine numbers using #defined constants from
2609         archures.c.
2610         * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2611         machine numbers using #defined constants from archures.c.  Add
2612         entries for EC603e, 630, A35, RS64II, RS64III, 7400.  Specify
2613         64-bit words in 620 entry.
2614         * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2615         RSC, and RS2.
2616         (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2618 2000-06-16  Nicholas Duffek  <nsd@cygnus.com>
2620         * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2621         * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2622         * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2624 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
2626         * bfd-in.h (bfd_family_coff): Define.
2627         * bfd-in2.h: Regenerate.
2628         * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2629         coff_find_nearest_line): Check COFFness using bfd_family_coff()
2630         instead of bfd_target_coff_flavour.
2631         * cofflink.c (_bfd_coff_final_link): Likewise.
2632         * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2633         exclude XCOFF files.
2634         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2635         Likewise.
2636         * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2637         * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2638         * xcofflink.c (XCOFF_XVECP): Delete.
2639         (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2640         bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2641         bfd_xcoff_record_link_assignment,
2642         bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2643         check for bfd_target_xcoff_flavour.
2645 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
2647         * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2648         files on AIX 4.3.
2649         (read_hdr): New function.
2650         (rs6000coff_core_p): Store mstsave or __context64 struct instead
2651         of trying to extract individual registers.  Set abfd->arch_info
2652         to match the architecture that created the core file.
2653         (rs6000coff_get_section_contents): Delete.
2654         * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2656 2000-06-14  H.J. Lu  <hjl@gnu.org>
2658         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2659         is NULL.
2661 2000-06-13  H.J. Lu  <hjl@gnu.org>
2663         * configure: Regenerate.
2665 2000-06-13  J"orn Rennecke <amylaar@cygnus.co.uk>
2667         * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2668         armpei_little_vec.
2670 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
2672         * configure.in (VERSION): Update to show this is the CVS mainline.
2674 2000-06-07  Alan Modra  <alan@linuxcare.com.au>
2676         * elf32-d10v.c: Include elf/d10v.h
2677         (enum reloc_type): Delete.
2678         * elf32-d30v.c: Include elf/d30v.h
2679         (enum reloc_type): Delete.
2681         * Makefile.am: Run "make dep-am" to regenerate dependencies.
2682         * Makefile.in: Regenerate.
2684         * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2685         (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2686         move HOWTOs into elf_howto_table.
2687         (R_386_standard, R_386_ext_offset): Define.
2688         (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2689         (elf_i386_reloc_type_lookup): Modify calculation of index into
2690         elf_howto_table since we've removed the padding.
2691         (elf_i386_info_to_howto_rel): Likewise.
2692         (elf_i386_relocate_section): Likewise.
2694 2000-06-06  Michael Snyder  <msnyder@seadog.cygnus.com>
2696         * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2698 2000-06-05  H.J. Lu  <hjl@gnu.org>
2700         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2701         an error when seeing an undefined symbol with hidden/internal
2702         attribute. It is handled in *_relocate_section ().
2704 2000-06-05  H.J. Lu  <hjl@gnu.org>
2706         * elflink.h (elf_fix_symbol_flags): Follow the link for the
2707         indirect symbol for the ELF_LINK_NON_ELF bit.
2708         (elf_link_output_extsym): Don't output the indirect symbol even
2709         if the ELF_LINK_NON_ELF bit is set.
2711 2000-06-01  J.T. Conklin  <jtc@redback.com>
2713         * config.bfd (i[3456]86-*-netbsdelf*): New target.
2714         (i[3456]86-*-netbsdaout*): New target.
2715         (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2716         (i[3456]86-*-openbsd*): Likewise.
2718 2000-05-30  Andrew Cagney  <cagney@b1.cygnus.com>
2720         * trad-core.c: From hpux-core.c, include <dirent.h> or
2721         <sys/ndir.h> when possible.
2723 2000-05-31  Nick Clifton  <nickc@cygnus.com>
2725         * opintl.h (_(String)): Explain why dgettext is used instead
2726         of gettext.
2728 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
2730         * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2731         definitions.  We must not assume they are sorted in the file
2732         according to their index numbers.
2734 2000-05-31  Alan Modra  <alan@linuxcare.com.au>
2736         * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2737         selector for R_PARISC_PCREL17R.  R_PARISC_DIR17R and
2738         R_PARISC_DIR17F are for absolute branches; Handle them as such.
2740 2000-05-30  Nick Clifton  <nickc@cygnus.com>
2742         * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2743         80960CA, 80960MC as valid machine names.
2745 2000-05-30  H.J. Lu  <hjl@gnu.org>
2747         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2748         visibility bits if the symbol is undefined. Correctly handle
2749         weak undefined symbols with hidden and internal attributes.
2751         * elflink.h (elf_link_add_object_symbols): Always turn the
2752         symbol into local if it has the hidden or internal attribute.
2754 2000-05-29  Philip Blundell  <philb@gnu.org>
2756         * ppcboot.c:  Add packed attribute if compiling with GCC.
2758 2000-05-29  Anatoly Vorobey  <mellon@pobox.com>
2760         * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2762 2000-05-26  Michael Snyder  <msnyder@seadog.cygnus.com>
2764         * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
2765         elfcore_grok_psinfo): Add code to allow debugging a 32-bit
2766         corefile on a 64-bit (Sparc Solaris) host.  Also clean up
2767         a few old comments.
2769 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
2771         * Makefile.am: Update dependencies with "make dep-am"
2772         * Makefile.in: Regenerate.
2774         * sysdep.h (gettext, dgettext, dcgettext, textdomain,
2775         bindtextdomain): Replace defines with those from intl/libgettext.h
2776         to quieten gcc warnings.
2778 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
2780         * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
2782         * archive.c (normalize, bfd_bsd_truncate_arname,
2783         bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
2784         file names with backslashes.
2786         * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
2787         before opening it.
2789         * sysdep.h: Include filenames.h.
2791 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
2793         * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2795 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
2797         * elf64-sparc.c (sparc64_elf_relax_section): New.
2798         (sparc64_elf_relocate_section): Optimize tail call into branch always
2799         if possible.
2800         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2801         (elf32_sparc_relax_section): New.
2803 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
2805         * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
2806         Remove unusued variables.
2807         (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
2808         (sparc64_elf_merge_private_bfd_data): Fix shared library case from
2809         previous fix, so that shared libs really don't influence targets
2810         extension mask and memory model.
2812 2000-05-23  H.J. Lu  <hjl@gnu.org>
2814         * elf64-alpha.c (elf64_alpha_relocate_section): Check
2815         h->root.other not h->other.
2816         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2818         * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2820 2000-05-23  H.J. Lu  <hjl@gnu.org>
2822         * elf32-i386.c (elf_i386_relocate_section): Don't allow the
2823         undefined symbol with the non-default visibility attributes.
2824         * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2825         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2826         * elf32-i370.c (i370_elf_relocate_section): Likewise.
2827         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2828         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2829         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2830         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2831         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2832         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2833         * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
2834         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2836 2000-05-22  Richard Henderson  <rth@cygnus.com>
2838         * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
2839         PCREL22, PCREL64I.  Zero size of special relocs.
2840         (elf64_ia64_reloc_type_lookup): Likewise.
2841         (USE_BRL, oor_brl, oor_ip): New.
2842         (elf64_ia64_relax_section): New.
2843         (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
2844         (elf64_ia64_install_value): Likewise, plus PCREL21BI.
2845         (elf64_ia64_relocate_section): Likewise.
2846         (bfd_elf64_bfd_relax_section): New.
2847         * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
2848         (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
2849         * bfd-in2.h, libbfd.h: Regenerate.
2851 2000-05-22  Nick Clifton  <nickc@cygnus.com>
2853         * configure.in : Add peigen.lo to MIPS PE targets.
2854         * configure: Regenerate.
2856 2000-05-22  Momchil Velikov  <velco@fadata.bg>
2858         * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
2859         only if it is known for both input and output bfds. Separate
2860         error message strings as in some languages, it may be necessary
2861         to change more than one place in the string to change between
2862         'big' and 'little'.
2864         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
2865         endianess checks, call _bfd_generic_verify_endian_match() instead.
2867         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2869         * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
2871         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
2872         endianess before checking bfd flavours.
2874 2000-05-22  H.J. Lu  <hjl@gnu.org>
2876         * elflink.h (elf_link_output_extsym): Clear the visibility
2877         field for symbols not defined locally.
2879 2000-05-18  Alan Modra  <alan@linuxcare.com.au>
2881         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2882         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2883         (hppa_rebuild_insn): Mask immediate bits here instead.
2884         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2886 2000-05-18  Momchil Velikov <velco@fadata.bg>
2888         * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
2889         relocs for an executable, ensure that they are virtual addresses.
2891 2000-05-18  Jeffrey A Law  (law@cygnus.com)
2893         * config.bfd (hppa*64*-*-hpux11*): New target triplet.
2895 2000-05-17  S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
2896             Rick Gorton             <gorton@scrugs.lkg.dec.com>
2898         * elflink.h: Add emitrelocations support: when enabled, relocation
2899         information and relocation sections are put into final output
2900         executables.  If the emitrelocations flag is set, do the following:
2901         (elf_bfd_final_link): Emit relocation sections.
2902         (elf_link_input_bfd): Compute relocation section contents.
2903         (elf_gc_sections): Don't clean relocation sections.
2905 2000-05-16  Catherine Moore  <clm@cygnus.com>
2907         * som.c (som_decode_symclass):  Recognize weak symbols.
2909 2000-05-16  Szabolcs Szakacsits <szaka@F-Secure.com>
2911         * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
2912         read idata section only from dataoff.
2913         (pe_print_edata): Correctly check for valid eat_member.
2915 2000-05-16  J"orn Rennecke <amylaar@cygnus.co.uk>
2917         * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2919 2000-05-14  Philip Blundell  <philb@gnu.org>
2921         * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2923 2000-05-12  Alan Modra  <alan@linuxcare.com.au>
2925         * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
2927         * peigen.c (pe_print_idata): Look for .idata section and print
2928         info even if data directory has zero entries.  Read idata section
2929         starting from dataoff, and adjust all data offsets to suit.  Cast
2930         all bfd_vma vars to unsigned long before passing to fprintf.
2931         * peigen.c (pe_print_edata): Similarly, look for .edata section
2932         and print info even if data directory has zero entries.  Cast
2933         all bfd_vma vars to unsigned long before passing to fprintf.
2935         From Szabolcs Szakacsits <szaka@F-Secure.com>
2936         * peigen.c (pe_print_idata): Use bfd_section_size rather than data
2937         directory size which may be bogus.
2938         * peigen.c (pe_print_edata): Similarly.
2940 2000-05-09  Alan Modra  <alan@linuxcare.com.au>
2942         * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
2943         section is empty.
2944         (copy_private_bfd_data): Allow for space possibly taken up by elf
2945         headers when calculating segment physical address from lma.
2947 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
2949         * versados.c (versados_scan): Init stringlen and pass_2_done.
2951         * trad-core.c (trad_unix_core_file_p): Return
2952         bfd_error_wrong_format rather than bfd_error_file_truncated.
2954         * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
2955         add_data_entry.  DataDirectory virtual address is relative.
2956         (pe_print_idata): Account for relative DataDirectory virtual
2957         addresses.  Don't trash datasize inside POWERPC_LE_PE code.
2958         (pe_print_edata): Similarly.
2960         From Szabolcs Szakacsits <szaka@F-Secure.com>
2961         * peigen.c (dir_names): Add Delay Import Directory.
2962         (pe_print_idata):  Always search for bfd section containing
2963         idata address rather than looking up section name.  Print this
2964         section name rather than .idata.
2965         (pe_print_edata): Similarly.  Also print some fields as %08lx.
2966         (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
2967         Win32Version.
2969 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
2971         * xcoff.h: Rename to xcoff-target.h
2972         * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
2973         * coff-rs6000.c: Ditto.
2974         * coff64-rs6000.c: Ditto.
2975         * coff-pmac.c: Ditto.
2976         * Makefile.in: Regenerate.
2978 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
2980         * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
2981         Change U802TOC64MAGIC to U803XTOCMAGIC.
2983 2000-05-04  Michael Snyder  <msnyder@seadog.cygnus.com>
2985         * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
2986         * bfd-in.h: Prototype bfd_elf_get_arch_size.
2987         * bfd-in2.h: Prototype bfd_elf_get_arch_size.
2989 2000-05-04  Alan Modra  <alan@linuxcare.com.au>
2991         * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
2993 2000-05-03  Martin v. Löwis  <loewis@informatik.hu-berlin.de>
2995         * elflink.h (elf_link_add_object_symbols): Reset dynindx for
2996         hidden and internal symbols.
2997         (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
2998         visibility.
2999         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3000         assign a PLT or GOT entry to symbols with hidden and
3001         internal visibility.
3003 2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
3005         * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3006         the .bss section.
3007         * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3009 2000-05-02  H.J. Lu  <hjl@gnu.org>
3011         * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3012         ELFOSABI_SYSV.
3014 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
3016         * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3017         * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo.  Regenerate
3018         dependencies.
3019         * Makefile.in: Regenerate.
3021 2000-05-01  Jim Wilson  <wilson@cygnus.com>
3023         * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3024         (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3025         (BFD64_BACKENDS): Delete coff-ia64.lo.  Add efi-app-ia64.lo.
3026         (BFD64_BACKENDS_CFILES): Delete coff-ia64.c.  Add efi-app-ia64.c.
3027         * Makefile.in: Rebuild.
3029 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
3031         * config.bfd: Re-enable elf32-hppa.  It now compiles, even if it
3032         doesn't work very well.
3034         * elf-hppa.h (elf_hppa_internal_shdr): Define.
3035         (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3036         Set hdr->s_type to 1 if ARCH_SIZE == 32.
3037         (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3038         (elf_hppa_info_to_howto): Likewise.
3039         (elf_hppa_info_to_howto_rel): Likewise.
3040         (elf_hppa_reloc_type_lookup): Likewise.
3041         (elf_hppa_is_local_label_name): Likewise.
3042         (elf_hppa_fake_sections): Likewise.
3043         (elf_hppa_final_write_processing): Likewise.
3044         (elf_hppa_howto_table): Fully initialise all entries.
3045         (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3046         (elf_hppa_info_to_howto): Likewise.
3047         (elf_hppa_info_to_howto_rel): Likewise.
3048         (elf_hppa_reloc_type_lookup): Likewise.
3049         (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3050         elf_hppa_unmark_useless_dynamic_symbols,
3051         elf_hppa_remark_useless_dynamic_symbols,
3052         elf_hppa_record_segment_addrs, elf_hppa_final_link,
3053         elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3054         elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3055         elf32-hppa.c mess is cleaned up.
3056         (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3057         int.  Delete r_field.  In case R_PARISC_PCREL21L, don't set
3058         r_field then call hppa_field_adjust inline func with variable
3059         r_field arg, instead call hppa_field_adjust with fixed arg.
3060         In case R_PARISC_PCREL22F, don't set r_field.
3061         (elf_hppa_relocate_insn): Change args and return type to unsigned
3062         int.  Call re_assemble_* funcs to do the work.
3064         * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3065         sign extending.
3067         * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3068         extending.
3069         (sign_extend): Mask first before sign extending.
3070         (low_sign_extend): Rewrite without condition expression.
3071         (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3072         dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3073         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3074         assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3075         result as function return value rather than through pointer arg.
3076         Accept unsigned int args, and return unsigned int.
3077         (re_assemble_3): New.  Combines function of dis_assemble_3 with
3078         re-assembly of opcode and immediate.
3079         (re_assemble_12): Likewise.
3080         (re_assemble_16): Likewise.
3081         (re_assemble_17): Likewise.
3082         (re_assemble_21): Likewise.
3083         (re_assemble_22): Likewise.
3084         (hppa_field_adjust): Rewrite and document, paying attention to
3085         size of types and signed/unsigned issues.
3086         (get_opcode): Shift before masking.
3087         (FDLW): Rename to FLDW.
3088         (bfd_hppa_insn2fmt): Change arg to unsigned int.  Delete fmt.
3089         (hppa_rebuild_insn): Change args and return value to unsigned
3090         int.  Make use of re_assemble_*.  Correct case 11.
3092         * dep-in.sed: Handle ../opcodes/.
3093         * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3094         elf64-hppa.h, hppa_stubs.h, xcoff.h.
3095         (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3096         Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3097         elfarm-nabi.lo dependencies outside of auto-dependency area.
3098         Regenerate dependencies.
3099         * Makefile.in: Regenerate.
3101         * configure.in (TRAD_HEADER): Test non-null before
3102         AC_DEFINE_UNQUOTED.
3103         * configure: Regenerate.
3105         * reloc.c: Fix mis-spelling in comment.
3107 2000-05-01  Alan Modra  <alan@linuxcare.com.au>
3109         * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3110         * vms.c (vms_openr_next_archived_file): Return NULL.
3112 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3114         * coffcode.h Copy changes mistakenly done to libcoff.h in
3115         4/24/2000 patch.
3117 2000-04-29  Andreas Jaeger  <aj@suse.de>
3119         * libbfd-in.h: Correctly check GCC version.
3120         * bfd-in.h: Likewise.
3121         * libhppa.h: Likewise.
3122         * libbfd.h: Regenerate.
3123         * bfd-in2.h: Regenerate.
3125 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3127         * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3128         coffdu-rs6000.{lo,c}.
3129         (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3130         on xcoff.h
3131         * Makefile.in: Regenerate.
3132         * xcoff.h: New file.
3133         * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3134         * coff-rs6000.c: Move all declarations and defines that are
3135         common to the xcoff backends into xcoff.h
3136         * coff64-rs6000.c: Ditto,
3138 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3140         * coff-mips.c (mips_ecoff_backend_data):  Add initialization of
3141         _bfd_coff_force_symnames in strings and
3142         _bfd_coff_debug_string_prefix_length to their default values.
3143         * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3145 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3147         * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3148         _bfd_coff_force_symnames in strings and
3149         _bfd_coff_debug_string_prefix_length to their default values.
3151 2000-04-27  Alan Modra  <alan@linuxcare.com.au>
3153         * elf32-m68k.c (elf_m68k_gc_sweep_hook):  Return if dynobj NULL.
3154         Check local_got_refcounts before dereferencing.
3156         * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3157         before deciding we don't need R_PPC_PLT32 relocation.
3158         (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3159         dereferencing.
3161         * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3163         * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3164         .plt entries.
3165         (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3166         (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3167         (elf_i386_relocate_section): Allow for .plt to go missing.
3168         (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3169         can use a relative reloc for got as elf_i386_relocate_section.
3170         (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3172 2000-04-26  Clinton Popetz  <cpopetz@cygnus.com>
3174         * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3176 2000-04-24  Clinton Popetz  <cpopetz@cygnus.com>
3178         * Makefile.am (coff64-rs6000.lo): New rule.
3179         * Makefile.in: Regenerate.
3180         * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3181         xcoff_is_local_label_name, xcoff_rtype2howto,
3182         xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3183         xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3184         xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3185         (NO_COFF_SYMBOLS): Define.
3186         (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3187         xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3188         internally.
3189         (MINUS_ONE): New macro.
3190         (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3191         relocation.
3192         (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3193         coff_SWAP_aux_out): Map to the new functions.
3194         * coff64-rs6000.c: New file.
3195         * libcoff.h (bfd_coff_backend_data): Add new fields
3196         _bfd_coff_force_symnames_in_strings and
3197         _bfd_coff_debug_string_prefix_length.
3198         (bfd_coff_force_symnames_in_strings,
3199         bfd_coff_debug_string_prefix_length): New macros for above fields.
3200         * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3201         Set machine to 620 for XCOFF64.  Use bfd_coff_swap_sym_in instead
3202         of using coff_swap_sym_in directly.
3203         (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3204         (coff_set_flags) Set magic for XCOFF64.
3205         (coff_compute_section_file_positions): Add symbol name length to
3206         string section length if bfd_coff_debug_string_prefix_length is
3207         true.
3208         (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3209         (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3210         using coff_swap_lineno_in directly.
3211         (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3212         and _bfd_coff_debug_string_prefix_length fields.
3213         * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3214         symbol names into strings table when
3215         bfd_coff_force_symnames_in_strings is true.
3216         * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3217         SET_RELOC_VADDR): New macros.
3218         (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3219         (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3220         code.
3221         (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3222         changes within RS6000COFF_C specific code.
3223         (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3224         MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3225         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3226         Extend existing hack on target name.
3227         * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3228         target name.
3229         * coff-tic54x.c (ticof): Keep up to date with new fields
3230         in bfd_coff_backend_data.
3231         * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3232         targ_selvecs to include rs6000coff64_vec for rs6000.
3233         * configure.in: Add rs6000coff64_vec case.
3234         * cpu-powerpc.c: New bfd_arch_info_type.
3236 2000-04-24  Jeffrey A Law  (law@cygnus.com)
3238         * config.bfd: Only disable elf32-hppa vectors, not all of the
3239         BSD and OSF configuration support.  Provide (disabled) clauses
3240         for PA64 support.
3241         * configure.in: Add clause for PA64 support.
3242         * configure: Rebuilt.
3244         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3245         (bfd_elf64_hppa_vec): Declare.
3247         * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3248         (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3249         (elf64-hppa.lo): Add dependencies.
3250         * Makefile.in: Rebuilt.
3252         * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3254 2000-04-24  Jason Eckhardt  <jle@cygnus.com>
3256         * libhppa.h (dis_assemble_16): New function.
3257         (pa_arch): Added pa20w element.
3259 2000-04-24  Ulrich Drepper  <drepper@cygnus.com>
3261         * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3262         bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3263         bfd_elf64_slurp_reloc_table.
3265         * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3266         definitions to get external names.
3267         (elf_write_relocs): Renamed from write_relocs and make global.
3268         (elf_slurp_reloc_table): Make global.
3269         (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3271         * archive.c (hpux_uid_gid_encode): New function.
3272         (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3273         defined and the ID is greater than 99999.
3274         (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3275         special uid/gid fields into 32 bit values.
3277 2000-04-21  Matthew Green  <mrg@cygnus.com>
3279         * config.bfd: Add NetBSD/sparc64 support.
3281 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
3282                           David Mosberger  <davidm@hpl.hp.com>
3283                           Timothy Wall <twall@cygnus.com>
3284                           Jim Wilson  <wilson@cygnus.com>
3286         * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3287         (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3288         (BFD64_BACKENDS): Add elf64-ia64.lo.
3289         (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3290         (cpu-ia64.lo, elf64-ia64.lo): New rules.
3291         * Makefile.in: Rebuild.
3292         * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3293         (bfd_ia64_arch): Declare.
3294         (bfd_archures_list): Add bfd_ia64_arch.
3295         * bfd-in2.h: Rebuild.
3296         * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3297         * configure: Rebuild.
3298         * configure.host: (ia64-*-linux*): New host.
3299         * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3300         bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3301         * elf.c (prep_headers): Add bfd_arch_ia64.
3302         * libbfd.h: Rebuild.
3303         * reloc.c: Add IA-64 relocations.
3304         * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3305         Declare.
3306         (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3307         * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3309 2000-04-21  Richard Henderson  <rth@cygnus.com>
3311         * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3312         contents when performing a partial link.
3313         (bfd_elf_d30v_reloc_21): Likewise.
3315 2000-04-20  H.J. Lu  <hjl@gnu.org>
3317         * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3318         patch to symbols defined by a shared object.
3319         * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3321 2000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3323         K&R compiler fixes.
3324         * dwarf2.c (concat_filename): Avoid string literal concatenation.
3325         * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3327 Mon Apr 17 19:14:36 2000  David Mosberger  <davidm@hpl.hp.com>
3329         * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3330         (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3331         (coff-ia64.lo): Add dependency.
3332         * Makefile.in: Regenerate.
3333         * coff-ia64.c: New file.
3334         * efi-app-ia32.c: Ditto.
3335         * efi-app-ia64.c: Ditto.
3336         * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3337         (coff_set_flags): Ditto.
3338         (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3339         * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3340         * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3341         * configure: Regenerate.
3342         * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3343         (PUT_OPTHDR_IMAGE_BASE): Ditto.
3344         (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3345         (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3346         (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3347         (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3348         (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3349         (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3350         (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3351         (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3352         (GET_PDATA_ENTRY): Ditto.
3353         * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3354         data_start.  Use above macros to read fields that are 64 bit wide for
3355         COFF_WITH_PEP64.  Don't truncate entry and text_start to 32 bits.
3356         (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3357         FileAlignment and SectionAlignment to minimum alignment if they
3358         are zero.
3359         (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3360         Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3361         (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3362         Use above macros to write fields that are 64 bit wide for
3363         COFF_WITH_PEP64.
3364         (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3365         5*4 otherwise.  This should be right for IA-32 and IA-64, but may
3366         be wrong for platforms.  Use PDATA_ROW_SIZE instead of hardcoded
3367         value of 20 bytes.  Modify printing for COFF_WITH_PEP64 to print
3368         begin address, end address, and unwind info address only.  Use
3369         GET_PDATA_ENTRY() to read .pdata entries.  Use fprintf_vma() to
3370         print addresses.
3371         (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3372         HIGH3ADJ relocation names.
3373         (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3374         * targets.c: Declare bfd_efi_app_ia32_vec and
3375         bfd_efi_app_ia64_vec.
3376         (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3377         bfd_efi_app_ia64_vec.
3379 2000-04-17  Timothy Wall  <twall@cygnus.com>
3381         * bfd-in2.h: Add prototypes for tic54x load page access.
3382         * bfd-in.h: Regenerate.
3383         * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3384         in customized _set_arch_mach function.
3385         * coffcode.h (coff_set_alignment_hook): Set section load page if
3386         the appropriate macro is defined.
3387         (write_object_contents): Read section load page.
3389 2000-04-13  Alan Modra  <alan@linuxcare.com.au>
3391         * elf32-hppa.h: Update copyright date.
3393         * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3394         * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3396         * elf32-d30v.c (MAX32): Don't use LL suffix.
3397         (MIN32): Define in terms of MAX32.
3398         (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3400         * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3401         expression.
3403         * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3405 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
3407         * dep-in.sed: Match space before file name, not after.
3408         * Makefile.am: Regenerate dependencies.
3409         * Makefile.in: Regenerate.
3411         * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3412         case, allow address wrap-around stupidly removed 2000-03-17.  Sign
3413         extend without an if statement.
3415 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
3417         * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3418         signed quantites.
3419         * elf32-mips.c (gprel16_with_gp): Likewise.
3420         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3421         here using -0x40000, not (int)0xfffc0000.
3422         (elf32_hppa_size_of_stub): Likewise.
3424 2000-04-11  Timothy Wall  <twall@cygnus.com>
3426         * coff-tic54x.c: Now builds with all targets.
3427         * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3428         * Makefile.in: Regenerate.
3429         * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3430         unitialized variable.
3432 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
3434         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
3435         --enable-build-warnings option.
3436         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3437         * Makefile.in, configure: Re-generate.
3439 2000-04-07  Nick Clifton  <nickc@cygnus.com>
3441         * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3442         BFD_RELOC_THUMB_PCREL_BLX.
3444         * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3445         R_ARM_XPC25 and R_ARM_THM_PC22.
3447         * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3448         R_ARM_XPC25 and R_ARM_THM_XPC22.
3449         (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3450         R_ARM_[XPC25|THM_XPC22].
3452         * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3453         elf/arm-oabi.h to elf/arm.h
3455         * Makefile.am: Fix dependency for elfarm-oabi.c
3456         * Makefile.in: Regenerate.
3458         * bfd-in2.h: Regenerate.
3459         * libbfd.h: Regenerate.
3461 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
3463         * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3464         and restore it on failure.  Release newly allocated tdata on
3465         failure.
3467 Fri Apr  7 11:33:47 2000  Jim Wilson  <wilson@cygnus.com>
3469         * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3470         (decode_line_info): Set it.  Report error if unit->line_offset is
3471         equal to or larger than it.
3473 2000-04-07  Timothy Wall  <twall@cygnus.com>
3475         * targets.c: Added vecs for tic54x.
3476         * reloc.c: Added relocs for tic54x.
3477         * libbfd.h: Regenerated.
3478         * configure: Add TI COFF vecs for tic54x.
3479         * configure.in: Ditto.
3480         * config.bfd (targ_cpu): Recognize new tic54x target.
3481         * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3482         * bfd-in2.h: Add tic54x target and relocations.
3483         * Makefile.am, Makefile.in: Add tic54x target.
3484         * archures.c (bfd_archures_list): Add tic54x target.
3485         * coff-tic54x.c: New.
3486         * cpu-tic54x.c: New.
3488 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
3490         * elfcore.h (elf_core_file_p): call backend_object_p which
3491         thereby gets an opportunity to update the arch/machine type.
3493 2000-04-06  Timothy Wall  <twall@cygnus.com>
3495         * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3496         class.  Handle SEC_CLINK and SEC_BLOCK flags.
3497         * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3498         * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3500 2000-04-06  Nick Clifton  <nickc@cygnus.com>
3502         * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3503         EF_INTERWORK if this is an unknown EABI.
3504         (elf32_arm_merge_private_bfd_data): Check EABI version
3505         numbers.  Only check EF_xxx flags if the EABI version number
3506         is unknown.
3507         (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3508         if the EABI version number is unknown.
3509         (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3510         if the EABI version number is unknown.
3512 Wed Apr  5 22:04:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
3514         * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3515         BFD_RELOC_SH_LOOP_END.
3516         * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3517         sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3518         Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3519         (sh_elf_reloc_loop): New function.
3520         (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3521         any more.
3522         (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3523         (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3524         * bfd-in2.h, libbfd.h: Regenerate.
3526 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
3528         * po/bfd.pot: Regenerate.
3530         * Makefile.am: Remove extraneous mkdep comment.
3531         (MKDEP): Use gcc -MM rather than mkdep.
3532         (DEP): Quote when passing vars to sub-make.  Add warning
3533         message to end.
3534         (DEP1): Rewrite for "gcc -MM".
3535         (CLEANFILES): Add DEP2.
3536         Update dependencies.
3537         * Makefile.in: Regenerate.
3539 2000-04-03  Kevin Buettner  <kevinb@redhat.com>
3541         * configure.in: Added corefile support for AIX 4.3.  In particular,
3542         AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3543         compiling rs6000-core.c.
3544         * configure: Regenerated.
3546 2000-04-03  H.J. Lu  <hjl@gnu.org>
3548         * cache.c (bfd_open_file): Unlink the output file only if
3549         it has non-zero size.
3551 2000-04-01  Ken Block USG  <block@zk3.dec.com>
3553         * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3554         relative relocations for non-loaded sections in shared objects.
3555         (elf64_alpha_check_relocs): Similarly.
3557 Mon Apr  3 13:37:15 2000  Hans-Peter Nilsson  <hp@axis.com>
3559         * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3560         BFD_RELOC_16 to switch for extended relocs.
3561         (MY_swap_ext_reloc_in): New.
3562         (MY_swap_ext_reloc_out): New.
3563         (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3564         than NAME(aout,swap_ext_reloc_in) for extended relocs.
3565         (NAME(aout,squirt_out_relocs)): Similarly use
3566         MY_swap_ext_reloc_out.
3567         (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3569 2000-04-03  Kazu Hirata  <kazu@hxi.com>
3571         * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3572         the R_PCRWORD_B case.
3574 2000-03-31  Thomas de Lellis  <tdel@wrs.com>
3576         * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3577         on some targets.
3578         * ihex.c : Ditto.
3580 Wed Mar 30 15:28:00 2000  Donald Lindsay  <dlindsay@cygnus.com>
3582         * elf32-m32r.c (m32r_elf_generic_reloc): new function.  All
3583         HOWTO references to bfd_elf_generic_reloc, that have
3584         partial_inplace == true, now use the new function.  The function
3585         is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3586         extends its fixes to the R_M32R_{16,24,32} relocs.
3587         The new logic in m32r_elf_lo16_reloc() has been removed, and
3588         it instead calls the new routine to obtain that functionality.
3590 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
3592         * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3593         elf32_avr_check_relocs, avr_final_link_relocate,
3594         elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3595         elf32_avr_object_p): Add prototypes.
3596         (elf32_avr_gc_mark_hook): Add default for h->root.type.
3597         (bfd_elf_avr_final_write_processing): Make static.
3599 2000-03-27  Denis Chertykov  <denisc@overta.ru>
3601         * cpu-avr.c: New file.  BFD support routines for AVR architecture.
3602         * archures.c (bfd_architecture): Add AVR architecture.
3603         (bfd_archures_list): Add reference to AVR architecture info.
3604         * elf.c (prep_headers): Handle bfd_arch_avr.
3605         * reloc.c: Add various AVR relocation enums.
3606         * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3607         list.
3608         * Makefile.am: Add support for AVR elf.
3609         * configure.in: Likewise.
3610         * config.bfd: Likewise.
3611         * Makefile.in: Regenerate.
3612         * configure: This too.
3613         * bfd-in2.h: And this.
3614         * libbfd.h: And this.
3616 2000-03-24  H.J. Lu  <hjl@gnu.org>
3618         * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3619         (elf64_alpha_find_reloc_at_ofs): Likewise.
3621 2000-03-17  Alan Modra  <alan@linuxcare.com.au>
3623         * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3624         flag an overflow if the bitfield is outside -2**n to 2**n-1.  The
3625         allowable range used to be -2**(n-1) to 2**n-1.
3626         * reloc.c (_bfd_relocate_contents): Same here.  Also replace
3627         "boolean overflow" with "bfd_reloc_status_type flag".
3629 2000-03-14  Doug Evans  <dje@casey.transmeta.com>
3631         * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3633 2000-03-14  Kazu Hirata  <kazu@hxi.com>
3635         * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3636         of shrinks properly, including the last reloc.
3638 2000-03-13  Kazu Hirata  <kazu@hxi.com>
3640         * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3641         check for R_MOVL2.
3643 2000-03-11  Alan Modra  <alan@linuxcare.com.au>
3645         * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3646         a format mismatch rather than an "error" from bfd_read such as
3647         bfd_error_file_truncated.
3649 2000-03-10  Geoff Keating  <geoffk@cygnus.com>
3651         * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3652         sign-extension and big-endian compensation for
3653         R_MIPS_64 even in ld -r.
3655 2000-03-10  Geoffrey Keating  <geoffk@cygnus.com>
3657         * elf32-mips.c (mips_elf_next_relocation): Rename from
3658         mips_elf_next_lo16_relocation, and generalize to look
3659         for any relocation type.
3660         (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3661         (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3662         (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3663         (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3664         (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3665         (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3666         (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3667         (mips_rtype_to_howto): Likewise.
3668         (mips_elf_calculate_relocation): Handle new relocs.
3669         (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3670         are paired.  The addend for R_MIPS_GNU_REL16_S2
3671         is shifted right two bits.
3673 2000-03-10  Alan Modra  <alan@linuxcare.com.au>
3675         * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3676         comment, and ensure it doesn't happen again.
3677         (bfd_install_relocation): Same here.
3678         (_bfd_relocate_contents): Don't bother assigning unused signmask
3679         shift result.  Fix typos in comments.
3680         Remove trailing whitespace throughout file.
3682 2000-03-07  Doug Evans  <dje@casey.transmeta.com>
3684         * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3685         * bfd-in2.h: Rebuild.
3687 2000-03-06  Nick Clifton  <nickc@cygnus.com>
3689         * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3690         sym_ptr_ptr fields.
3691         (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3692         (SIZEOF_ILF_STRINGS): Redefine.
3693         (pe_ILF_make_a_symbol-reloc): New function.  Creates a symbol
3694         relative reloc, as opposed to a section relative reloc.
3695         (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3696         not C_LABEL.
3697         Add length of symbol's prefix to string pointer.
3698         Store a pointer to the symbol in the symbol pointer table.
3699         (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3700         Initialise the symbol pointer table.
3701         Store the hint in the Hint/Name table.
3702         Make the jump reloc be symbol realtive, not section relative.
3703         Create an import symbol for imported code.
3705 2000-03-06  Catherine Moore  <clm@cygnus.com>
3707         * elf.c (swap_out_syms):  Check for null type_ptr.
3709 2000-03-01  Hans-Peter Nilsson  <hp@axis.com>
3711         * aout-target.h (MY(write_object_contents)): Remove unused
3712         and unusable "#if CHOOSE_RELOC_SIZE".
3713         * pc532-mach.c (MY(write_object_contents)): Ditto.
3714         * netbsd.h (MY(write_object_contents)): Ditto.
3715         * hp300hpux.c (MY(write_object_contents)): Ditto.
3716         * freebsd.h (MY(write_object_contents)): Ditto.
3717         * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3719 2000-02-29  H.J. Lu  <hjl@gnu.org>
3721         * peicode.h (jtab): Make it static.
3723         * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3724         defined and COFF_IMAGE_WITH_PE is not defined.
3725         (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3726         COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3728 2000-03-01  Nick Clifton  <nickc@cygnus.com>
3730         * coff-arm.c (bfd_arm_process_before_allocation): Make
3731         'symndx' signed to prevent compile time warning.
3733         * coff-mcore.c: Remove unused prototype for pe_object_p.
3735         * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3736         functions that are not used when COFF_IMAGE_WITH_PE is
3737         defined.
3738         (struct sh_opcode): Change type of 'flags' field to unsigned
3739         long so that it can hold the USESAS flag.
3741         * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3743         * elf-m10300.c (mn10300_elf_relax_section): Initialise
3744         'sym_sec'.
3746         * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3747         parameters.
3748         Remove unusued variables and code.
3749         (elf_backend_add_symbol_hook): Fix prototype.
3751         * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3752         'srelgot'.
3754         * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3755         'oldinst'.
3757         * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
3758         parameters.
3759         Remove unusued variables and code.
3760         (elf_backend_add_symbol_hook): Fix prototype.
3762         * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
3764         * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
3765         to unused function parameter.
3767         * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
3768         parameters.
3769         Use EMPTY_HOWTO to initialise empty howto slots.
3770         Remove unused variables.
3772         * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
3774 2000-03-01  H.J. Lu  <hjl@gnu.org>
3776         * aoutx.h (aout_link_input_section_std): Pass "true" to
3777         the undefined_symbol callback.
3778         (aout_link_input_section_ext): Likewise.
3779         * bout.c (get_value): Likewise.
3780         * coff-a29k.c (coff_a29k_relocate_section): Likewise.
3781         * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
3782         Likewise.
3783         (alpha_relocate_section): Likewise.
3784         * coff-arm.c (coff_arm_relocate_section): Likewise.
3785         * coff-i960.c (coff_i960_relocate_section): Likewise.
3786         * coff-mcore.c (coff_mcore_relocate_section): Likewise.
3787         * coff-mips.c (mips_relocate_section): Likewise.
3788         * coff-ppc.c (coff_ppc_relocate_section): Likewise.
3789         * coff-sh.c (sh_relocate_section): Likewise.
3790         * coff-tic80.c (coff_tic80_relocate_section): Likewise.
3791         * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
3792         * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
3793         * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3794         * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
3795         * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3796         * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3797         * elf32-i370.c (i370_elf_relocate_section): Likewise.
3798         * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3799         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3800         * elf32-sh.c (sh_elf_relocate_section): Likewise.
3801         * elf32-v850.c (v850_elf_relocate_section): Likewise.
3802         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3803         * elflink.h (elf_link_output_extsym): Likewise.
3804         * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
3805         * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
3806         * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
3808         * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
3809         undefined_symbol callback when building shared library with
3810         -Bsymbolic and undefined symbols are allowed. Otherwise, pass
3811         "true".
3812         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3813         * elf32-i386.c (elf_i386_relocate_section): Likewise.
3814         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3815         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3816         (elf32_mips_get_relocated_section_content): Likewise.
3817         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3818         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3819         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3820         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3822 2000-02-28  Nick Clifton  <nickc@cygnus.com>
3824         * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
3825         * Makefile.in: Regenerate.
3827         * configure.in: Add support for mips and sh pe vectors.
3828         * configure: regenerate.
3830         * config.bfd: Add support for arm-wince, mips-pe and sh-pe
3831         targets.
3833         * targets.c: Add mips and sh pe vectors.
3835         * libpei.h (coff_final_link_postscript): Only define if not
3836         already defined.
3838         * coffcode.h: Add support for WinCE magic numbers.
3840         * peigen.c (pe_print_reloc): Update comment and rearrange
3841         appending of newline character.
3843         * peicode.h: Add support for Image Library Format.
3844         (pe_ILF_vars): Structure containing data used by ILF code.
3845         (pe_ILF_make_a_section): New function.  Create a section based
3846         on ILF data.
3847         (pe_ILF_make_a_reloc): New function.  Create a reloc based on
3848         ILF data.
3849         (pe_ILF_make_a_symbol): New function.  Create a symbol based
3850         on ILF data.
3851         (pe_ILF_save_relocs): New function.  Store the relocs created
3852         by pe_ILF_make_a_reloc in a section.
3853         (pe_ILF_build_a_bfd): New function.  Create a BFD describing
3854         an ILF object.
3855         (pe_ILF_object_p): New function.  Return a bfd_target pointer
3856         for an ILF object.
3857         (pe_bfd_object_p): If an ILF object is detected call
3858         pe_ILF_object_p on it.
3860         * coff-arm.c: Add support for WinCE relocs which are different
3861         from normal ARM COFF relocs.
3862         * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
3864         * coff-sh.c: Add support for sh-pe target.
3865         * pe-sh.c: New file.  Support code for sh-pe target.
3866         * pei-sh.c: New file.  Support code for sh-pe target.
3868         * pe-mips.c: New file.  Support code for mips-pe target.
3869         * pei-mips.c: New file.  Support code for mips-pe target.
3871 2000-02-27  Jakub Jelinek  <jakub@redhat.com>
3873         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
3874         architecture if the object causing the bump is dynamic.
3875         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
3876         and also don't it for memory ordering.
3877         (sparc64_elf_write_relocs): Take src_rela out of the loop.
3879 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
3881         * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
3882         calling bfd_get_section_size_before_reloc.
3883         (decode_line_info): Likewise.
3884         (_bfd_dwarf2_find_nearest_line): Likewise.
3886 2000-02-27  Eli Zaretskii  <eliz@is.elta.co.il>
3888         * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
3889         name of the libtool directory.
3890         * Makefile.in: Rebuild.
3892 Fri Feb 25 18:39:26 2000  Rodney Brown (RodneyBrown@pmsc.com)
3894         * som.c (SOM_HOWTO): Define.
3895         (som_hppa_howto_table): Use it.
3897 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
3899         * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
3901         * config.bfd: Enable 64 bit support for Solaris7+/sparc.
3903 2000-02-24  Catherine Moore  <clm@cygnus.com>
3905         * som.c (som_misc_symbol_info):  Add field
3906         secondary_def.
3907         (som_bfd_derive_misc_symbol_info):  Initialize
3908         secondary_def.
3909         (som_build_and_write_symbol_table): Keep track
3910         of secondary_def field.
3911         (som_slurp_symbol_table): Set BSF_WEAK symbol flag
3912         if secondary_def field is set.
3913         (som_bfd_ar_write_symbol_stuff): Initialize
3914         secondary_def.
3916 2000-02-23  Stephane Carrez  <stcarrez@worldnet.fr>
3918         * dwarf2.c (read_address): Read 16-bits addresses.
3919         (parse_comp_unit): Accept addr_size == 2.
3921 2000-02-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
3923         * bfd-in.h: Update copyright date.
3925 2000-02-23  Linas Vepstas <linas@linas.org>
3927         * cpu-i370.c: New file.
3928         * elf32-i370.c:  New file.
3929         * archures.c (enum bfd_architecture): Add bfd_arch_i370.
3930         (bfd_i370_arch): New.
3931         (bfd_archures_list): Add bfd_i370_arch.
3932         * elf.c (prep_headers): Add bfd_arch_i370.
3933         * Makefile.am: Add support for IBM 370 elf.
3934         * config.bfd: Likewise.
3935         * configure.in: Likewise.
3936         * libbfd.h (bfd_reloc_code_real_names): Likewise.
3937         * reloc.c (bfd_reloc_code_type): Likewise.
3938         * targets.c: Likewise.
3940         * Makefile.in: Regenerate.
3941         * configure: Regenerate.
3942         * bfd-in2.h: Regenerate.
3944 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
3946         * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
3947         invalid relocation types, and change them to R_386_NONE.
3949 2000-02-22  H.J. Lu  <hjl@gnu.org>
3951         * elflink.h (elf_link_add_object_symbols): If a version symbol is
3952         not defined, don't add a second ELF_VER_CHR.
3954         * elflink.h (elf_bfd_final_link): Call output_extsym for global
3955         symbols converted to local symbols even when stripping all
3956         symbols.
3957         (elf_link_output_extsym): Process global symbols converted to
3958         local symbols even if they are being stripped.
3960 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
3962         * archures.c (bfd_octets_per_byte): Return unsigned int.
3963         (bfd_arch_mach_octets_per_byte): Ditto.
3964         * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
3965         comparison warning.
3966         * section.c (bfd_get_section_size_before_reloc): Quell signed
3967         vs. unsigned comparison warning.
3968         (bfd_get_section_size_after_reloc): Same here.  Fix parentheses too.
3969         * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
3970         change.  What was I thinking?
3971         * bfd-in2.h: Regenerate.
3973         * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
3974         (elf_gc_sections): Same here.
3975         (elf_gc_common_finalize_got_offsets): And here.
3977 2000-02-21  Ian Lance Taylor  <ian@zembu.com>
3979         ELF HPPA doesn't work at present; remove it until it does.
3980         * config.bfd: Comment out setting targ_defvec to
3981         bfd_elf32_hppa_vec.
3982         * Makefile.am: Rebuild dependencies.
3983         (BFD32_BACKENDS): Remove elf32-hppa.lo.
3984         (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
3985         (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
3986         * Makefile.in: Rebuild.
3987         * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
3989 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
3991         * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
3992         is no bfd_free().  Revert bfd_free part of previous change.
3994 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
3996         * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
3997         arrays.
3998         (coff_compute_section_file_positions): Use bfd_free to pair
3999         bfd_malloc.
4000         (coff_write_object_contents): Likewise.
4002         * coff-rs6000.c (xcoff_howto_table_16): New variable.
4003         (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4005 2000-02-18  Ulrich Drepper  <drepper@cygnus.com>
4007         * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4008         (xcoff_ar_file_hdr_big): New structure.
4009         (SIZEOF_AR_FILE_HDR_BIG): New macro.
4010         (xcoff_ar_hdr_big): New structure.
4011         (SIZEOF_AR_HDR_BIG): New macro.
4012         (xcoff_big_format_p): New macro.
4013         (xcoff_ardata_big): New macro.
4014         (arch_xhdr_big): New macro.
4015         (xcoff_slurp_armap): Handle large archives.
4016         (xcoff_archive_p): Detect large archives.
4017         (xcoff_read_ar_hdr): Handle large archives.
4018         (xcoff_openr_next_archived_file): Handle large archives.
4019         (xcoff_generic_stat_arch_elt): Handle large archives.
4020         (xcoff_write_armap_old): Rename from xcoff_write_armap.
4021         (xcoff_write_armap_big): New function.
4022         (xcoff_write_armap): New function, dispatch to _old or _big.
4023         (xcoff_write_archive_contents_old): Rename from
4024         xcoff_write_archive_contents.
4025         (xcoff_write_archive_contents_big): New function.
4026         (xcoff_write_archive_contents): New function, dispatch to _old or
4027         _big.
4029 2000-02-18  Richard Henderson  <rth@cygnus.com>
4031         * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4032         and hide_symbol members.
4033         (elf_link_hash_copy_indirect): Remove.
4034         (elf_link_hash_hide_symbol): Remove.
4035         (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4036         and elf_backend_hide_symbol.
4037         (_bfd_elf_link_hash_copy_indirect): Declare.
4038         (_bfd_elf_link_hash_hide_symbol): Declare.
4039         * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4040         (_bfd_elf_link_hash_hide_symbol): Likewise.
4041         (_bfd_elf_link_hash_table_init): Don't init killed members.
4042         * elflink.h (elf_link_add_object_symbols): Use the bed function
4043         pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4044         (elf_link_assign_sym_version): Likewise.
4045         * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4046         (elf_backend_hide_symbol): Likewise.
4047         (elfNN_bed): Update for new members.
4049 2000-02-17  Kevin Buettner  <kevinb@redhat.com>
4051         * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4052         STACK_END_ADDR): Define for new core file format.
4053         (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4054         for handling the vagaries of the various core file structures used
4055         by AIX over the years.
4056         (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4057         Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4058         core_dumpx structure.
4060 Thu Feb 17 00:04:48 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4062         * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4063         (bfd_mach_sh3_dsp): Likewise.
4064         (bfd_mach_sh4): Reinstate.
4065         (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4066         * bfd-in2.h: Regenerate.
4067         * coff-sh.c (struct sh_opcode): flags is no longer short.
4068         (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4069         (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4070         (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4071         (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4072         (sh_opcodes): No longer const.
4073         (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4074         (sh_insn_uses_reg): Check for USESAS and USESR8.
4075         (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4076         (_bfd_sh_align_load_span): Return early for SH4.
4077         Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4078         Take into account that field b of a parallel processing insn
4079         could be mistaken for a separate insn.
4080         * cpu-sh.c (arch_info_struct): New array elements for
4081         sh2, sh-dsp and sh3-dsp.
4082         Reinstate element for sh4.
4083         (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4084         (SH4_NEXT): Reinstate.
4085         (SH3_NEXT, SH3E_NEXT): Adjust.
4086         * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4087         * elf32-sh.c (sh_elf_set_private_flags): New function.
4088         (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4089         (sh_elf_merge_private_data): New function.
4090         (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4091         (bfd_elf32_bfd_copy_private_bfd_data): Define.
4092         (bfd_elf32_bfd_merge_private_bfd_data): Change to
4093         sh_elf_merge_private_data.
4095 2000-02-13  Richard Henderson  <rth@cygnus.com>
4097         * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4098         hide_symbol members.
4099         (elf_link_hash_copy_indirect): New.
4100         (elf_link_hash_hide_symbol): New.
4101         * elflink.h (elf_link_add_object_symbols): Break out copy from
4102         indirect new new symbol to elf.c.
4103         (elf_link_assign_sym_version): Break out privatization of
4104         non-exported symbol to elf.c.
4105         * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4106         (_bfd_elf_link_hash_hide_symbol): New.
4107         (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4109 2000-02-13  Ian Lance Taylor  <ian@zembu.com>
4111         * section.c (_bfd_strip_section_from_output): Add info parameter.
4112         If it passed as non-NULL, use it to check whether any input BFD
4113         has an input section which uses this output section.  Change all
4114         callers.
4115         * bfd-in2.h: Rebuild.
4117         * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4118         bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4119         1999-11-29.
4120         * bfd-in2.h: Rebuild.
4122 2000-02-10  Timothy Wall  <twall@cygnus.com>
4124         * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4125         allow final modifications of swapped-in symbol.
4126         (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4127         * coffcode.h (coff_write_relocs): Use macro
4128         SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4129         symbol index should be set to -1.
4131 Thu Feb 10 20:07:50 GMT 2000  Toshiyasu Morita (toshi.morita@sega.com)
4133         * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4134         USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4135         * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4136         * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4137         sh_insns_uses_or_sets_freg): New functions.
4138         * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4139         * (sh_insns_conflict): Use new functions and new macros to
4140         detect conflicts when two instructions both set same integer registers,
4141         both set same fp register, and both set special register.
4143 2000-02-09  Timothy Wall  <twall@cygnus.com>
4145         * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4146         swapping in sections, so that the swapping routines have access to
4147         the arch/mach info.
4149 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4151         * coff-go32.c: Update comment. Update copyright.
4153 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
4155         * syms.c (bfd_decode_symclass)
4156         Two new class characters were added - 'V' and 'v'.  The
4157         meaning of 'W' is now restricted to just weak non-object
4158         symbols.  This allows differentiation between, for example,
4159         weak functions vs weak objects.  nm for example now dumps:
4160         'W' = weak global
4161         'w' = weak unresolved
4162         'V' = weak global object
4163         'v' = weak unresolved object
4165         (bfd_is_undefined_symclass): New function.  Return true if the
4166         given symbol class represents and undefined/unresolved symbol.
4168         (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4169         unresolved symbols.
4171         * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4173         * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4174         STT_ARM_16BIT flag set, but it is not attached to a data object
4175         return STT_ARM_16BIT so that it will be treated as code by the
4176         disassembler.
4178 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4180         * coff-i386.c (i3coff_object_p): Remove prototype.
4181         Update copyright.
4183         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4184         to name.  Update copyright.
4186         * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4187         assignment to avoid warning.  Update copyright.
4189 2000-01-24  Robert Lipe  (robertl@sco.com)
4191         * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4192         instead of using GNU C extension.
4194 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4196         * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4197         amount from a bfd_in_memory structure.
4198         (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4199         structure.
4201 2000-01-14  Nick Clifton  <nickc@cygnus.com>
4203         * linker.c (default_indirect_link_order): oops - fix incorrectly
4204         applied patch from Tim Wall.
4206 2000-01-13  Timothy Wall (twall@tiac.net>
4208         * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4209         = scnhsz, filhsz, relsz, aoutsz, etc)
4211         * coffswap.h: Ditto.
4213 2000-01-13  Nick Clifton  <nickc@cygnus.com>
4215         * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4216         interwork thumb to arm stub.
4218 2000-01-13  Timothy Wall (twall@tiac.net>
4220         * archures.c (bfd_octets_per_byte): New function: Return
4221         target byte size.
4222         (bfd_arch_mach_octets_per_byte): New function: Return target
4223         byte size.
4225         * section.c: Distinguish between octets and bytes for usage of
4226         _cooked_size,  _raw_size, and output_offset.  Clarify
4227         description of bfd_set_section_contents.
4229         * bfd-in2.h: Regenerate.
4231         * coffgen.c: Indicate that the offset parameter is in bytes, not
4232         octets.
4234         * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4235         where appropriate to get the octet offset when calling
4236         bfd_set_section_contents.
4237         (bfd_coff_reloc_link_order): Ditto.
4239         * linker.c (bfd_generic_reloc_link_order): Ditto.
4240         (_bfd_default_link_order): Ditto.
4242         * reloc.c (bfd_perform_relocation):  Distinguish between octets
4243         and bytes.  Use octets when indexing into octet data; use bytes
4244         when calculating target addresses.
4245         (bfd_install_relocation): Ditto.
4247         * srec.c (srec_write_section): Ditto.
4249 2000-01-13  Nick Clifton  <nickc@cygnus.com>
4251         * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4252         3 to 2.  This allows 4 byte sized sections, which is necessary for
4253         dlltool to build functioning DLLs.
4255 2000-01-10  Philip Blundell  <pb@futuretv.com>
4257         * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4258         (arm*-*-conix*): New target.
4260 2000-01-10  Egor Duda  <deo@logos-m.ru>
4262         * config.bfd: Include elf32_i386 vector to target list for cygwin
4263         and mingw.
4265         * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4266         * configure.in: Test for structure win32_pstatus_t in
4267         <sys/procfs.h>
4268         * configure: Regenerate.
4270         * elf.c (elfcore_grok_win32pstatus): New function: process
4271         win32_pstatus_t notes in elf core file.
4272         (elfcore_grok_note): Detect win32_pstatus notes.
4274 2000-01-03  Martin v. Loewis  <loewis@informatik.hu-berlin.de>
4276         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4277         visibility.
4278         * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4279         * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4281 For older changes see ChangeLog-9899
4283 Local Variables:
4284 mode: change-log
4285 left-margin: 8
4286 fill-column: 74
4287 version-control: never
4288 End: