monterey updates
[binutils.git] / bfd / ChangeLog
blob8ed90d37e204f61715f895e35780ff31b224fb6b
1 2001-05-25  Timothy Wall  <twall@redhat.com>
3         * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
4         for __GLOB_DATA_PTR on AIX5.  Clean up some relocation bugs.
6 2001-05-25  H.J. Lu  <hjl@gnu.org>
8         * bfd-in2.h: Regenerated.
9         * libcoff.h: Likewise.
11 2001-05-25  Alan Modra  <amodra@one.net.au>
13         * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
14         undefined millicode syms in shared libs.
15         (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
16         (elf32_hppa_check_relocs): Likewise.
17         (elf32_hppa_adjust_dynamic_symbol): Likewise.
18         (elf32_hppa_size_dynamic_sections): Likewise.
19         (elf32_hppa_relocate_section): Likewise.
20         (elf32_hppa_finish_dynamic_symbol): Likewise.
21         (elf32_hppa_finish_dynamic_sections): Likewise.
23 2001-05-24  Tom Rix <trix@redhat.com>
25         * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
26         xcoff-target.h not used to define rs6000 or ppc bfd.
27         * Makefile.in same
29         * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
30         to 64 bit.
32         * coff-rs6000.c : Many changes for 64 bit support.  Move common
33         32/64 code to xcofflink.c.  Explictly define the rs6000coff_vec
34         and pmac_xcoff_vec
36         * coff64-rs6000.c : Many changes for 64 bit support.  64 bit
37         linker now supported.  Explictly define the rs6000coff64_vec.
39         * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
40         (coff_print_aux) same 
41         (coff_write_object_contents) same
42         (coff_slurp_line_table) same
44         * coffgen.c : (coff_fix_symbol_name) formatting
45         (coff_mangle_symbols) xcoff 64 bit support
46         (coff_write_symbol) same
47         (coff_write_alien_symbol) same
48         (coff_write_native_symbol) same
49         (coff_write_symbols) same
50         (coff_get_symbol_info) same
51         (bfd_coff_get_syment) same
52         (coff_print_symbol) same
54         * config.bfd : add powerpc64-*-aix* target
56         * libcoff-in.h : formatting
58         * libcoff.h : move xcoff extern declarations to libxcoff.h
60         * libxcoff.h : New file
62         * xcofflink.c : Many changes for xcoff64 support.  Move common 
63         structures to include/coff/xcoff.h.  Move specific structure to 
64         backends coff-rs6000.c and coff64-rs6000.c.   Use new backend
65         functions, defined in libxcoff.h, to isolate 32/64 dependencies.
66         
67         (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for 
68         aix4.2+ -binitfini.
70         (xcoff_build_ldsyms) : handle special __rtinit symbol.
72 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
74         * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
75         s/ENTIRES/ENTRIES/.
77 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
79         * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
80         * libbfd.h: Regenerate.
81         * bfd0in2.h: Regenerate.
83         * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
84         * archures.c (bfd_mach_mips12000): Define.
85         * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
86         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
87         support.
88         (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
89         * bfd-in2.h: Regenerate.
90         * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
92 2001-05-23  kaz Kojima  <kkojima@rr.iij4u.or.jp>
94         * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
95         elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
96         elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
97         that is used by GCC.
99 2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
101         * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
102         of entries in a structured section.
103         * elf.c: Use new macro.
104         * elf32-i386.c: Use new macro.
105         * elf32-mips.c: Use new macro.
106         * elf64-alpha.c: Use new macro.
107         * elf64-sparc.c: Use new macro.
108         * elfcode.h: Use new macro.
109         * elflink.h: Use new macro.
111 2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
113         * bfdint.texi: Replace -oformat with --oformat.
115 2001-05-21  Andreas Jaeger  <aj@suse.de>
117         * dwarf2.c (decode_line_info): Fix error message.
118         (read_abbrevs): Fix test for offset as suggested by Alan Modra and
119         adjust error message.
121 2001-05-18  H.J. Lu  <hjl@gnu.org>
123         * elflink.h (elf_link_add_object_symbols): Revert the last
124         change.
126 2001-05-17  Alan Modra  <amodra@one.net.au>
128         * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
129         ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
130         (hppa_build_one_stub): Add an assert to check plt.offset.
132 2001-05-17  H.J. Lu  <hjl@gnu.org>
134         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
135         version definition to basename of the output filename.
137 2001-05-17  H.J. Lu  <hjl@gnu.org>
139         * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
140         basename of the bfd filename.
142 2001-05-16  Alan Modra  <amodra@one.net.au>
144         * section.c (asection): Add linker_has_input field.
145         (STD_SECTION): Adjust initialization to suit.
146         * ecoff.c (bfd_debug_section): Likewise.
147         * bfd-in2.h: Regenerate.
149 2001-05-15  Alexandre Oliva  <aoliva@redhat.com>
151         * elf-m10300.c (mn10300_elf_relax_section): Don't relax
152         negative 32-bit operands to 16 operands when the operand is
153         going to be zero-extended by the modified opcode.
155 2001-05-12  Peter Targett  <peter.targett@arccores.com>
157         * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
158         name for 'arc5' core versions.
159         (bfd_arc_arch): Make bfd_mach_arc_6 default.
161         * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
162         architecture.
163         (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
165 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
167         * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
168         sections as well.
169         (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
170         to .gnu.linkonce.t.FOO text section.
172 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
174         * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
175         fields, change sec into secinfo.
176         (struct sec_merge_info): Add chain, remove last fields.
177         (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
178         (sec_merge_hash_lookup): If lookup could not use a string only
179         because it has bad alignment, mark the old string for deletion.
180         (sec_merge_add): Add secinfo argument. Don't compute entry's
181         position, instead record the section.
182         (sec_merge_emit): Update for the sec into secinfo change in
183         struct sec_merge_hash_entry.
184         (_bfd_merge_section): Only record the section for merging, defer
185         putting strings into the hash table.
186         (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
187         _bfd_merge_sections): New functions.
188         (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
189         changes.
190         * libbfd-in.h (_bfd_merge_sections): Add prototype.
191         (_bfd_nolink_bfd_merge_sections): Define.
192         * libbfd.h: Likewise.
193         (bfd_generic_merge_sections): Add prototype.
194         * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
195         (struct bfd_target): Likewise.
196         * bfd.c (bfd_merge_sections): Define.
197         * bfd-in2.h: Rebuilt.
198         * elf.c (_bfd_elf_merge_sections): New function.
199         * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
200         * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
201         * reloc.c (bfd_generic_merge_sections): New function.
202         * vms.c (vms_bfd_merge_sections): New function.
203         * aout-adobe.c (aout_32_bfd_merge_sections): Define.
204         * aout-target.h (MY_bfd_merge_sections): Define.
205         * aout-tic30.c (MY_bfd_merge_sections): Define.
206         * binary.c (binary_bfd_merge_sections): Define.
207         * bout.c (b_out_bfd_merge_sections): Define.
208         * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
209         * coffcode.c (coff_bfd_merge_sections): Define.
210         * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
211         * i386msdos.c (msdos_bfd_merge_sections): Define.
212         * i386os9k.c (os9k_bfd_merge_sections): Define.
213         * ieee.c (ieee_bfd_merge_sections): Define.
214         * ihex.c (ihex_bfd_merge_sections): Define.
215         * nlm-target.h (nlm_bfd_merge_sections): Define.
216         * oasys.c (oasys_bfd_merge_sections): Define.
217         * ppcboot.c (ppcboot_bfd_merge_sections): Define.
218         * som.c (som_bfd_merge_sections): Define.
219         * srec.c (srec_bfd_merge_sections): Define.
220         * tekhex.c (tekhex_bfd_merge_sections): Define.
221         * versados.c (versados_bfd_merge_sections): Define.
222         * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
224 2001-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
226         * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
227         to be unsigned long, in order to match its use.
229 2001-05-10  H.J. Lu  <hjl@gnu.org>
231         * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
232         indirect symbols.
234 2001-05-09  H.J. Lu  <hjl@gnu.org>
236         * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
237         versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
238         Remove the unused veriable `dynver'.
240 2001-05-08  Ian Lance Taylor  <ian@zembu.com>
242         * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
243         NULL or is not COFF.
244         (coff_i386_rtype_to_howto): Don't dump core if output section
245         owner is not COFF.
247 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
249         * ecoff.c (bfd_debug_section): Fix initialization.
250         * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
251         is always a positive integer. Cast away sign mismatch.
252         * elf32-mips.c: Fix misleading comment and typo.
253         (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
254         correct data type.
255         * elflink.c: Fix typo.
256         (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
257         * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
259 2001-05-04  Richard Henderson  <rth@redhat.com>
261         * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
263 2001-05-04  Nick Clifton  <nickc@cambridge.redhat.com>
265         * elf32-arm.h (elf32_arm_final_link_relocate): Set
266         EF_ARM_HASENTRY if the start address is set.
268 2001-05-03  Nick Clifton  <nickc@cambridge.redhat.com>
270         * targets.c (_bfd_target_vector_entries): Compute value based on
271         the size of the _bfd_target_vector and not bfd_target_vector.
273 2001-05-03  H.J. Lu  <hjl@gnu.org>
275         * elfcode.h: Include "libiberty.h".
277         * elflink.h (elf_link_add_object_symbols): Set
278         elf_dt_name (abfd) to basename of the bfd filename.
279         (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
280         of the bfd filename.
282 2001-05-03  Andreas Jaeger  <aj@suse.de>
284         * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
285         (elf_generic_info_to_howto_rel): Likewise.
286         * coff-alpha.c (reloc_nil): Likewise.
287         (alpha_ecoff_bad_format_hook): Likewise.
288         (alpha_adjust_reloc_out): Likewise.
289         (alpha_bfd_reloc_type_lookup): Likewise.
290         (alpha_convert_external_reloc): Likewise.
291         * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
292         (elf64_alpha_reloc_bad): Likewise.
293         (elf64_alpha_reloc_gpdisp): Likewise.
294         (elf64_alpha_bfd_reloc_type_lookup): Likewise.
295         (elf64_alpha_info_to_howto): Likewise.
296         (elf64_alpha_add_symbol_hook): Likewise.
297         (elf64_alpha_create_got_section): Likewise.
298         (elf64_alpha_is_local_label_name): Likewise.
299         (elf64_alpha_merge_ind_symbols): Likewise.
300         * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
301         (mips_elf64_get_reloc_upper_bound): Likewise.
302         * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
303         (nlm_alpha_get_public_offset): Likewise.
305 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
307         * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
308         about overflow in R_OPENRISC_LO_16_IN_INSN and
309         R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
311 2001-04-30  H.J. Lu  <hjl@gnu.org>
313         * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
314         only for ELF_LINK_FORCED_LOCAL.
315         * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
316         * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
317         * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
319         * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
320         if the symbol has hidden or internal visibility.
322 2001-04-30  Alan Modra  <amodra@one.net.au>
324         * elf32-hppa.c (final_link_relocate): Branch to .+8 for
325         calls to undefined weak symbols.
327 2001-04-30  Andreas Jaeger  <aj@suse.de>, Andreas Schwab <schwab@suse.de>
329         * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
330         R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
332 2001-04-27  Andreas Jaeger  <aj@suse.de>
334         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
335         out handled entries.
336         (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
337         (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
338         (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
339         GOT32.
341 2001-04-27  Sean McNeil <sean@mcneil.com>
343         * config.bfd: Add arm-vxworks target.
344         * coff-arm (coff_arm_relocate_section): Add in symbol value to
345         addend (fro VXworks targets).
347 2001-04-26  H.J. Lu  <hjl@gnu.org>
349         * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
350         valid.
352 2001-04-25  Frank Ch. Eigler  <fche@redhat.com>
354         * bfd-in.h (bfd_cache_close): Declare newly exported function.
355         * bfd-in2.h: Regenerated.
357 2001-04-24  Jakub Jelinek  <jakub@redhat.com>
359         * merge.c (struct sec_merge_hash_entry): Add alignment field.
360         (struct sec_merge_hash): Remove alignment_power.
361         (sec_merge_hash_newfunc): Clear alignment.
362         (sec_merge_hash_lookup): Pass alignment as argument.
363         Use hashp->root.next, not hashp->next to walk the hash chain.
364         If a string already in the hashtable does not have required
365         alignment, create a new hashtable entry.
366         (sec_merge_init): Remove alignment_power argument.
367         (sec_merge_add): Add alignment argument.
368         (sec_merge_emit): Alignment is now a per-entity thing, not per
369         section.
370         (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
371         for proper alignment.
372         Pass alignment information to sec_merge_add.
374 2001-04-24  Christian Groessler  <cpg@aladdin.de>
376         * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
377         and R_REL16 reloc types; accept odd values for R_REL16 type
379 2001-04-24  Johan Rydberg  <jrydberg@opencores.org>
381         * cpu-openrisc.c: New file.
382         * elf32-openrisc.c: Likewise.
384         * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
385         (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
386         (BFD32_BACKENDS): Add elf32-openrisc.lo.
387         (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
388         (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
389         * Makefile.in: Regenerated.
390         * config.bfd: (openrisc-*-elf): New target.
391         * configure.in (bfd_elf32_openrisc_vec): New vector.
392         * configure: Regenerated.
393         * libbfd.h: Regenerated.
394         * bfd-in2.h: Regenerated.
395         * reloc.c: Add OpenRISC relocations.
396         * targets.c (bfd_elf32_openrisc_vec): Declare.
397         (bfd_target_vect): Add bfd_elf32_openrisc_vec.
398         * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
399         (bfd_openrisc_arch): Declare.
400         (bfd_archures_list): Add bfd_openrisc_arch.
401         * elf.c (prep_headers): Add bfd_arch_openrisc.
403 2001-04-23  Bo Thorsen  <bo@suse.de>
405         * elf64-x86-64.c: Add c++ vtable hack.
406         Small whitespace and comment changes.
408 2001-04-19  Andreas Jaeger  <aj@suse.de>
410         * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
411         (elf64_x86_64_plt_entry): Likewise.
412         (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
413         (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
415 2001-04-17  Hans-Peter Nilsson  <hp@axis.com>
417         * elf32-cris.c: Tweak comments related to dynamic linking.
418         (cris_elf_relocate_section): When not creating shared object, fill
419         in the .got table for any symbol not in the dynamic symbol table.
420         (elf_cris_finish_dynamic_symbol): When not creating shared object,
421         only emit a .got.rela reloc if the symbol is in the dynamic symbol
422         table.
423         (cris_elf_check_relocs): Use variable r_type in all places rather
424         than the original expression.  Add default case in switch for
425         reloc types.
426         (elf_cris_size_dynamic_sections): Iterate over
427         elf_cris_discard_excess_program_dynamics when not creating shared
428         library.
429         (elf_cris_discard_excess_dso_dynamics): Renamed from
430         elf_cris_discard_copies.  Correct typo, s/Rel/Rela/.
431         (elf_cris_discard_excess_program_dynamics): New.
433 2001-04-14  Mark Elbrecht  <snowball3@bigfoot.com>
435         * coffcode.h (coff_write_object_contents): Use
436         bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
438 2001-04-14  H.J. Lu  <hjl@gnu.org>
440         * bfd-in2.h: Regenerate.
442 2001-04-14  Jakub Jelinek <jakub@redhat.com>
444         * section.c (STD_SECTION): Add entsize.
446 2001-04-13  H.J. Lu  <hjl@gnu.org>
448         * section.c (SEC_MERGE): Define new flag for merging.
449         (SEC_STRINGS): Likewise.
450         (entsize): New field.
452 2001-04-13  Roger Sayle  <roger@metaphorics.com>
454         * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
455         flag on pe-i386 targets.
457 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
459         * libbfd-in.h (_bfd_merge_section): New.
460         (_bfd_write_merged_section): New.
461         (_bfd_merged_section_offset): New.
462         * libbfd.h: Rebuilt.
463         * linker.c (_bfd_generic_link_output_symbols): Handle
464         discard_sec_merge.
465         * aoutx.h (aout_link_write_symbols): Likewise.
466         * pdp11.c (aout_link_write_symbols): Likewise.
467         * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
468         (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
469         sections.
470         (elf_link_sec_merge_syms): New.
471         (elf_link_input_bfd): Call _bfd_merged_section_offset
472         and _bfd_write_merged_section.
473         Handle discard_sec_merge.
474         * elf-bfd.h (struct elf_link_hash_table): Add merge_info
475         field.
476         (struct bfd_elf_section_data): Likewise.
477         * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
478         SEC_STRINGS section flags and entsize from their ELF counterparts.
479         (_bfd_elf_link_hash_table_init): Initialize merge_info.
480         (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
481         from their BFD counterparts.
482         * merge.c: New file.
483         * Makefile.am: Add strtab.lo.
484         * Makefile.in: Rebuilt.
486 2001-04-09  Hans-Peter Nilsson  <hp@axis.com>
488         * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
489         only hide symbols marked STV_INTERNAL or STV_HIDDEN.
491 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
493         * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
494         endian MIPS ELF target.
495         * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
496         MIPS ELF target.
498         * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
499         64bit big endian MIPS ELF target.
500         (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
501         endian MIPS ELF target.
502         * configure: Regenerated.
504         * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
505         little endian targets.
506         (mips_elf_sym_is_global): Handle traditional targets.
508         * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
509         64bit big endian MIPS ELF target.
510         (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
511         endian MIPS ELF target.
513         * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
514         and bfd_elf64_tradlittlemips_vec.
516 2001-04-05  David Mosberger  <davidm@hpl.hp.com>
518         * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
519         ordinary "progbits" section.
521 2001-04-04  Alan Modra  <alan@linuxcare.com.au>
523         * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
524         when -Bsymbolic causes a symbol to no longer need a .plt entry.
526 2001-04-03  David Mosberger  <davidm@hpl.hp.com>
528         * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
530 2001-03-30  H.J. Lu  <hjl@gnu.org>
532         * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
533         (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
535 2001-03-26  H.J. Lu  <hjl@gnu.org>
537         * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
538         if there are any relocations for generic ELF.
539         (bfd_elf32_bfd_link_add_symbols): Defined to
540         elf32_generic_link_add_symbols.
541         * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
542         if there are any relocations for generic ELF.
543         (bfd_elf64_bfd_link_add_symbols): Defined to
544         elf64_generic_link_add_symbols.
546 2001-03-23  Nick Clifton  <nickc@redhat.com>
548         * Makefile.am (BUILD_CFILES): New variable: List of C source
549         files created in build directory.
550         (BUILD_HFILES): New variable: List of header files created in
551         build directory.
552         (POTFILES): Delete.
553         (po/POTFILES.in): Replace rule with empty entry.
554         (po/SRC-POTFILES.in): New rule: Create a list of source files
555         in the source directory.
556         (po/BLD-POTFILES.in): New rule: Create a list of source files
557         in the build directory.
558         (MOSTLYCLEAN): Do not delete source files created in build
559         directory.
560         * Makefile.in: Regenerate.
561         * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
562         into po/Makefile.
563         * configure: Regenerate.
565         * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
566         and BLD_POTFILES.
567         Add .. to the search path when building bfd.pot.
568         Delete POTFILES when performing distclean.
569         Add comment describing why distclean is broken in maintainer mode.
570         * po/POTFILES.in: Delete.
571         * po/SRC-POTFILES.in: New file.
572         * po/BLD-POTFILES.in: New file.
573         * po/bfd.pot: Regenerate.
575 2001-03-22  Hans-Peter Nilsson  <hp@axis.com>
577         * elf32-cris.c: Shlib and PIC support.  PCREL tweaks.
578         (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
579         elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
580         elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
581         elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
582         elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
583         functions.
584         (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
585         R_CRIS_32_PCREL>: Correct comments.  Set pcrel_offset to false.
586         <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
587         R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
588         R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
589         New HOWTO members for new relocs.
590         (cris_reloc_map): Map new relocs.
591         (ELF_DYNAMIC_INTERPRETER): Define.
592         (PLT_ENTRY_SIZE): Define.
593         (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
594         elf_cris_pic_plt_entry): New, PLT templates.
595         (struct elf_cris_pcrel_relocs_copied, struct
596         elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
597         (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
598         (cris_final_link_relocate): Check that 16-bit GOT relocs have
599         positive values.  Adjust PCREL relocs to be relative to location
600         after relocation.
601         (cris_elf_relocate_section): Handle relocations to dynamic
602         objects.  Handle new relocations.  Call error handler when seeing
603         non-PIC relocation for read-only sections while generating shared
604         object.
605         (cris_elf_check_relocs): Set reference counts for GOT and PLT
606         entries.
607         (bfd_elf32_bfd_link_hash_table_create,
608         elf_backend_adjust_dynamic_symbol,
609         elf_backend_size_dynamic_sections,
610         elf_backend_finish_dynamic_symbol,
611         elf_backend_finish_dynamic_sections,
612         elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
613         elf_backend_hide_symbol, elf_backend_want_got_plt,
614         elf_backend_plt_readonly, elf_backend_want_plt_sym,
615         elf_backend_got_header_size, elf_backend_plt_header_size):
616         Define.
618         * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
619         BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
620         BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
621         BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
622         BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
623         BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
624         * bfd-in2.h, libbfd.h: Regenerate.
626 2001-03-21  Diego Novillo  <dnovillo@redhat.com>
628         (_bfd_mips_elf_relocate_section): Give a better error message when
629         a relocation is not recognized.
631 2001-03-21  Alan Modra  <alan@linuxcare.com.au>
633         * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
634         non-NULL before attempting to dereference.
636 2001-03-20  H.J. Lu  <hjl@gnu.org>
638         * configure.in: Remove the redundent AC_ARG_PROGRAM.
639         * configure: Rebuild.
641 2001-03-20  Andreas Schwab  <schwab@suse.de>
643         * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
644         relocation value when resolving a reference from a debugging
645         section.
647 2001-03-16  Scott Thomason  <SThomaso@hii.com>
649         * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
650         (xcoff64_swap_sym_out): Fix syntax errors.
652 2001-03-16  Richard Sandiford  <rsandifo@redhat.com>
654         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
656 2001-03-15  Alan Modra  <alan@linuxcare.com.au>
658         * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
659         (hppa_link_hash_newfunc): Init it.
660         (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
661         section appears to be non-PIC.
662         (final_link_relocate): Likewise.
663         (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
664         possible candidate function, and set pic_call for those that will
665         only have a .plt entry for the PIC call stub.
666         (hppa_handle_PIC_calls): Set maybe_pic_call.
668 2001-03-12  DJ Delorie  <dj@redhat.com>
670         * elf32-sh.c (sh_elf_relocate_section): Only relocation
671         R_SH_DIR8WP* relocs if they're against external symbols, else
672         they're just for relaxing.  Validate the reloc values.
674 2001-03-12  Stefan Geuken <mail@stefan-geuken.de>
676         * binary.c (bfd_external_binary_architecture): Declare.
677         (binary_object_p): If bfd_external_binary_architecture is defined,
678         set the architecture to this string.
680 2001-03-11  Philip Blundell  <philb@gnu.org>
682         * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
683         entries that could serve as a definition for a weak symbol.
685 2001-03-08  Nick Clifton  <nickc@redhat.com>
687         * Most files: Update copyright notices using Perl script created
688         by Kevin Buettner <kevinb@redhat.com>.
690 2001-03-07  Nick Clifton  <nickc@redhat.com>
692         * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
693         prior patch on ! defined OLD_ARM_ABI.
695 2001-03-07  Andreas Jaeger  <aj@suse.de>
697         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
698         some relocation values.
700 2001-03-06  Nick Clifton  <nickc@redhat.com>
702         * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
703         of offset in BLX(1) instruction.
704         * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
705         offset in BLX(1) instruction.
706         Fix formatting.
708 2001-03-06  Nick Clifton  <nickc@redhat.com>
710         * coff-arm.c (coff_arm_reloc_type_lookup): Add
711         BFD_RELOC_THUMB_PCREL_BLX.
713 2001-03-06  Igor Shevlyakov  <igor@windriver.com>
715         * archures.c (bfd_default_scan): Add Coldfire CPUs.
716         * bfd-in2.h: Regenerate.
717         * cpu-m68k.c: Add Coldfire CPUs for arch table.
718         * ieee.c (ieee_write_processor): Set proper id for
719         Coldfire CPUs.
721 2001-03-01  D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
723         * configure.in: Add s390 target.
724         * configure: Regenerate.
726 2001-02-28  Andreas Jaeger  <aj@suse.de>
728         * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
729         to addend.
731 2001-02-28  Philip Blundell  <pb@futuretv.com>
733         * elf32-arm.h: Update mentions of renamed EF_xx constants.
734         (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
736 2001-02-27  H.J. Lu  <hjl@gnu.org>
738         * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
739         abfd->tdata.aout_data == NULL.
741 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
743         * elf32-hppa.c: Correct field selector in stub comments.
744         (clobber_millicode_symbols): Formatting fix.
746         * configure.in: Bump version to 2.11.90.
747         * configure: Regenerate.
748         * Makefile.am (CFILES): Rename to SOURCE_CFILES.
749         (CFILES): $SOURCE_CFILES + generated C files.
750         (POTFILES): Include $HFILES not $SOURCE_HFILES.
751         Run "make dep-am"
752         * Makefile.in: Regenerate.
753         * doc/Makefile.in: This too.
755 2001-02-26  Timothy Wall  <twall@cygnus.com>
757         * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
758         comments.
760 2001-02-26  Nick Clifton <nickc@redhat.com>
762         * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
763         up, replacing multiple if statements with a switch.
764         (handle_COMDAT): New function.
766 2001-02-26  H.J. Lu  <hjl@gnu.org>
768         * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
769         a warning for section flags we do not handle instead of
770         aborting.
772 2001-02-26  Andreas Jaeger  <aj@suse.de>
774         * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
776 2001-02-22  Timothy Wall  <twall@cygnus.com>
778         * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
779         * configure.in: Add objects for elf64_ia64_aix vectors.
780         * configure: Regenerated.
781         * configure.host: Recognize ia64-*-aix*.
782         * elfxx-ia64.c: Add hooks for ELF64 on AIX5.  Define new vectors
783         for AIX.  AIX5 requires most relocations to be dynamic (*all*
784         binaries are somewhat similar to shared libraries).
785         * targets.c: Add elf64_ia64_aix vectors.
787 2001-02-21  David Mosberger  <davidm@hpl.hp.com>
789         * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
790         C8 said "1" instead of "8".  Clarify error string for IMM22:
791         "signed integer" instead of just "integer".
793 2001-02-20  Andreas Jaeger  <aj@suse.de>
795         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
796         PLT entries that could serve as a definition for a weak symbol.
798 2001-02-19  Jakub Jelinek  <jakub@redhat.com>
800         * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
801         entries that could serve as a definition for a weak symbol.
802         * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
804 2001-02-18  David O'Brien  <obrien@FreeBSD>
806         * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
807         FreeBSD/i386-CURRENT differently until I can figure out the needed
808         corefile changes.
809         * configure: Regenerate.
810         * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
811         FreeBSD/PowerPC, and FreeBSD/sparc64.
813 2001-02-18  lars brinkhoff  <lars@nocrew.org>
815         * Makefile.am: Add PDP-11 a.out target.
816         * config.bfd: Likewise.
817         * configure.in: Likewise.
818         * targets.c: Likewise.
819         * archures.c: Likewise.
820         * bfd-in2.h: Likewise.  Add PDP-11 relocations.
821         * libbfd.h: Add PDP-11 relocations.
822         * reloc.c: Likewise.
823         * cpu-pdp11.c: New file.
824         * pdp11.c: New file.
826         * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
827         (GET_SWORD) [ARCH_SIZE==16]: Likewise.
828         (GET_SWORD) [ARCH_SIZE==16]: Likewise.
829         (PUT_WORD) [ARCH_SIZE==16]: Likewise.
830         (GET_MAGIC): New macro.
831         (PUT_MAGIC): Likewise.
832         * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
834 2001-02-18  Jim Kingdon  <jkingdon@engr.sgi.com>
836         * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
837         multiarch needs it).
839 2001-02-18  H.J. Lu  <hjl@gnu.org>
841         * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
842         index.
844 2001-02-18  Kazu Hirata  <kazu@hxi.com>
846         * vms-misc.c: Fix formatting.
848 2001-02-16  Kazu Hirata  <kazu@hxi.com>
850         * vms.c: Fix formatting.
852 2001-02-14  H.J. Lu  <hjl@gnu.org>
854         * elf.c (elf_find_function): New function.
855         (_bfd_elf_find_nearest_line): Call elf_find_function () to find
856         the file name and function name.
858 2001-02-14  Nick Clifton  <nickc@redhat.com>
860         * ecoff.c (bfd_debug_section): Update to initialise new fields in
861         asection structure.
863         * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
864         (BFD64_BACKENDS): Add pepigen.c
865         Add rules to create peigen.c and pepigen.c from peXXigen.c.
867         * Makefile.in: Regenerate.
868         * configure:  Regenerate.
869         * po/POTFILES.in: Regenerate.
870         * po/bfd.pot: Regenerate.
872 2001-02-14  H.J. Lu  <hjl@gnu.org>
874         * libcoff-in.h (pe_tdata): Add members target_subsystem and
875         force_minimum_alignment.
877 2001-02-14  Bo Thorsen  <bo@suse.de>
879         * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
880         (elf64_86_64_size_info): Struct added to fix a problem
881         with the hashtable string entries.
882         (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
883         (elf64_x86_64_size_dynamic_sections): A FIXME removed.
884         (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
885         remove the FIXME for this.
886         (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
887         section. Also removed the FIXME for it.
888         (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
889         (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
890         (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
892 2001-02-13  Richard Henderson  <rth@redhat.com>
894         * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
895         and not user provided.
897 2001-02-13  Kazu Hirata  <kazu@hxi.com>
899         * vms.c (vms_print_symbol): Remove unreachable code.
901         * rs6000-core.c: Fix formatting.
903 2001-02-13  David Mosberger  <davidm@hpl.hp.com>
905         * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
906         as _bfd_XXi_only_swap_filehdr_out.
907         (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
908         pe->force_minimum_alignment to TRUE.
909         (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
910         PEI_TARGET_SUBSYSTEM.
911         (pe_print_private_bfd_data): Call
912         _bfd_XX_print_private_bfd_data_common() instead of
913         _bfd_pe_print_private_bfd_data_common().
914         (pe_bfd_copy_private_bfd_data): Call
915         _bfd_XX_bfd_copy_private_bfd_data_common() instead of
916         _bfd_pe_bfd_copy_private_bfd_data_common().
917         (coff_bfd_copy_private_section_data): Define as
918         _bfd_XX_bfd_copy_private_section_data instead of
919         _bfd_pe_bfd_copy_private_section_data.
920         (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
921         of a _bfd_pe_get_symbol_info.
923         * peigen.c: Delete.
925         * peXXigen.c: Renamed from peigen.c.
926         (COFF_WITH_XX): Define this macro (will get expanded into
927         COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
928         compiled as peigen.c or pepigen.c.
929         [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
930         define the canonical PEP structures and definitions.
931         (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
932         effect, enforce minimum file and section alignments.  If
933         extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
934         pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
935         so, by default, this is a no-op).
937         * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
938         (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
939         _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
940         _bfd_pefoo if it's not defined.  Use these macros to define
941         coff swap macros.
943         * libcoff.h (pe_tdata): Add members target_subsystem and
944         force_minimum_alignment.
946         * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
947         COFF_WITH_pep.
948         (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
950         * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
951         peigen.lo.
953         * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
954         (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
955         PEPAOUTHDR.
957         * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
958         (BFD64_BACKENDS_CFILES): Mention pepigen.c
959         (peigen.c): Add rule to generate from peXXigen.c.
960         (pepigen.c): Ditto.
961         (pepigen.lo): List dependencies for pepigen.lo.
963 2001-02-13  Alan Modra  <alan@linuxcare.com.au>
965         * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$.  If
966         $global$ referenced but not defined, set its value here.
968 2001-02-09  Bo Thorsen  <bo@suse.de>
970         * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
971         alignment to 3.
972         (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
973         and relocation.
974         (elf64_x86_64_relocate_section): Fix formatting.
975         (elf64_x86_64_relocate_section): Fix addend for relocation of
976         R_X86_64_(8|16|32|PC8|PC16|PC32).
978 2001-02-12  Jan Hubicka  <jh@suse.cz>
980         * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
982 2001-02-11  H.J. Lu  <hjl@gnu.org>
984         * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
985         alignment.
987 2001-02-11  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
989         * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
990         from 2000-10-13.  Do not add the symbol's value for R_MIPS_REL32
991         relocations against dynsym symbols.
993         * elf32-mips.c (elf_mips_howto_table): Fix the comment on
994         the R_MIPS_26 relocation.
995         (mips_elf_calculate_relocation): Use (p + 4) instead of p for
996         the R_MIPS_26 relocation.
997         (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
998         relocation.
999         * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1000         the R_MIPS_26 relocation.
1001         (mips_elf64_howto_table_rela): Likewise.
1003         * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1004         member to mark symbols that have non-CALL relocations against
1005         them.
1006         (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1007         (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1008         R_MIPS_GOT16.
1009         (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1010         non-CALL relocation against it is encountered.
1011         (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1012         (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1013         no_fn_stub is not set.
1015         * elf32-mips.c (mips_elf_output_extsym): Get the output section
1016         information from the real symbol for indirect ones.
1017         Check no_fn_stub to find out if a symbol has a function stub
1018         indeed.
1020 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1022         * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1023         * Makefile.in: Regenerate.
1025 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
1027         * elfxx-ia64.c (is_unwind_section_name): New function.  Returns
1028         true if section name is an unwind table section name.
1029         (elfNN_ia64_additional_program_headers): Count each unwind section
1030         separately.
1031         (elfNN_ia64_modify_segment_map): Install one unwind program header
1032         for each unwind separate section.  Note: normally the linker
1033         script merges the unwind sections that go into a single segment,
1034         so this still generates at most one unwind program header per
1035         segment.
1037         * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1038         name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1039         (elfNN_ia64_fake_sections): Mark sections with names that start
1040         with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1041         unwind section.
1043         * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1044         Use it to make sh_info in unwind section point to the text section
1045         it applies to.
1047 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1049         * Makefile.am: Add linux target for S/390.
1050         * archures.c: Likewise.
1051         * bfd-in2.h: Likewise.
1052         * config.bfd: Likewise.
1053         * configure.in: Likewise.
1054         * elf.c: Likewise.
1055         * libbfd.h: Likewise.
1056         * targets.c: Likewise.
1057         * cpu-s390.c: New file.
1058         * elf32-s390.c: New file.
1059         * elf64-s390.c: New file.
1061 2001-02-09  Nick Clifton  <nickc@redhat.com>
1063         * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1064         ImageBase.  This has already been done by coff_swap_hdr_in.
1066 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
1068         * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1070 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
1072         * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1073         (sparc64_elf_relocate_section): Likewise.
1075 2001-02-09  Mark Kettenis  <kettenis@gnu.org>
1077         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1078         similar to R_SPARC_32.
1079         * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1081 2001-02-08  H.J. Lu  <hjl@gnu.org>
1083         * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1084         relocation entries for weak definitions when building DSO with
1085         -Bsymbolic.
1087 2001-02-08  Richard Henderson  <rth@redhat.com>
1089         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1090         before visibility.  Locally defined protected symbols are not
1091         dynamic.
1093 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>
1095         * config.bfd: Enable coff64 for rs6000-*.  Patch from
1096         <hzoli@austin.ibm.com>.
1098 2001-02-07  Mark Elbrecht  <snowball3@bigfoot.com>
1100         * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1101         found, do not attempt to find dwarf2 info before returning.
1103 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
1105         * elflink.h (is_global_symbol_definition): Rename to
1106         is_global_data_symbol_definition and have it reject function
1107         symbols.
1108         (elf_link_is_defined_archive_symbol): Use renamed function.
1110 2001-02-07  Todd Vierling  <tv@wasabisystems.com>
1112         * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1113         * libbfd.h (bfd_target_vector): Likewise.
1114         * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1115         make static; create pointer reference named bfd_target_vector.
1116         (_bfd_target_vector_entries): Calculate this based on the array
1117         typed _bfd_target_vector.
1119 2001-02-06  H.J. Lu  <hjl@gnu.org>
1121         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1122         internal symbols are not dynamic.
1123         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1125 2001-02-06  Nick Clifton  <nickc@redhat.com>
1127         * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1128         that it will not be pulled into the list of files that make up
1129         po/POTFILES.in.
1130         * Makefile.in: Regenerate.
1131         * po/bfd.pot:  Regenerate.
1133 2001-02-06  H.J. Lu  <hjl@gnu.org>
1135         * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1136         checking.
1137         (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1138         external_PEI_IMAGE_hdr.
1140 2001-02-06  Kazu Hirata  <kazu@hxi.com>
1142         * elf-m10200.c: Fix formatting.
1144 2001-02-04  Nick Clifton  <nickc@redhat.com>
1146         * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1147         rel, it will be handled later on.
1149 2001-02-02  Fred Fish  <fnf@ninemoons.com>
1151         * Makefile.in: Fix typo.
1153 2001-02-01  Kazu Hirata  <kazu@hxi.com>
1155         * elf-m10300.c: Fix formatting.
1157 2001-01-30  Alan Modra  <alan@linuxcare.com.au>
1159         * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1160         (elf_backend_get_symbol_type): Define.
1161         (elf64_hppa_object_p): Set architecture and machine from elf
1162         header flags.
1164 2001-01-30  Curtis L. Janssen  <cljanss@ca.sandia.gov>
1166         * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1167         before mdebug.
1169 2001-01-26  Richard Henderson  <rth@redhat.com>
1171         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1172         for non-default visibility.
1173         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1174         delete ugly macro and replace with pretty function.
1176 2001-01-25  Mark Elbrecht  <snowball3@bigfoot.com>
1178         * coff-go32.c: Update copyright.
1179         * coff-stgo32.c: Likewise.
1180         * coff-go32.c (COFF_LONG_FILENAMES): Define.
1181         * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1182         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1183         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1185 2001-01-25  Kazu Hirata  <kazu@hxi.com>
1187         * bfd-in2.h: Rebuild.
1188         * libbfd.h: Likewise.
1190 2001-01-23  H.J. Lu  <hjl@gnu.org>
1192         * bfd-in2.h: Rebuild.
1194 2001-01-23  H.J. Lu  <hjl@gnu.org>
1196         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1197         is NULL or PRIV(vms_rec) is outside of the buffer.
1199 2001-01-23  Kazu Hirata  <kazu@hxi.com>
1201         * coff64-rs6000.c: Fix formatting.
1202         * coff-arm.c: Likewise.
1203         * coffgen.c: Likewise.
1204         * cofflink.c: Likewise.
1205         * coff-mcore.c: Likewise.
1206         * coff-mips.c: Likewise.
1207         * coff-pmac.c: Likewise.
1208         * coff-ppc.c: Likewise.
1209         * coff-rs6000.c: Likewise.
1210         * elf32.c: Likewise.
1211         * elf32-fr30.c: Likewise.
1212         * elf32-i370.c: Likewise.
1213         * elf32-i860.c: Likewise.
1214         * elf32-m32r.c: Likewise.
1215         * elf32-m68k.c: Likewise.
1216         * elf32-mcore.c: Likewise.
1217         * elf32-ppc.c: Likewise.
1218         * elf32-sh.c: Likewise.
1219         * elf32-v850.c: Likewise.
1220         * elf64-alpha.c: Likewise.
1221         * elf64-sparc.c: Likewise.
1222         * elflink.c: Likewise.
1223         * elflink.h: Likewise.
1224         * elf-m10200.c: Likewise.
1225         * elf-m10300.c: Likewise.
1226         * elfxx-ia64.c: Likewise.
1228         * aoutx.h: Fix formatting.
1229         * bfd.c: Likewise.
1230         * bfd-in2.h: Likewise.
1231         * bfd-in.h: Likewise.
1232         * cpu-i386.c: Likewise.
1233         * cpu-m68hc11.c: Likewise.
1234         * dwarf2.c: Likewise.
1235         * elf64-x86-64.c: Likewise.
1236         * format.c: Likewise.
1237         * freebsd.h: Likewise.
1238         * hash.c: Likewise.
1239         * hp300hpux.c: Likewise.
1240         * hppabsd-core.c: Likewise.
1241         * hpux-core.c: Likewise.
1243 2001-01-22  Bo Thorsen  <bo@suse.de>
1245         * elf64-x86-64.c: Added PIC support for X86-64.
1246         (elf64_x86_64_link_hash_newfunc): Function added.
1247         (elf64_x86_64_link_hash_table_create): Likewise.
1248         (elf64_x86_64_check_relocs): Likewise.
1249         (elf64_x86_64_gc_mark_hook): Likewise.
1250         (elf64_x86_64_gc_sweep_hook): Likewise.
1251         (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1252         (elf64_x86_64_size_dynamic_sections): Likewise.
1253         (elf64_x86_64_discard_copies): Likewise.
1254         (elf64_x86_64_finish_dynamic_symbol): Likewise.
1255         (elf64_x86_64_finish_dynamic_sections): Likewise.
1256         (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1258 2001-01-21  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1260         * Makefile.am (install-data-local): Make use of $(DESTDIR).
1261         * Makefile.in: Regenerate.
1263 2001-01-21  Kazu Hirata  <kazu@hxi.com>
1265         * coff-a29k.c: Fix formatting.
1267 2001-01-19  H.J. Lu  <hjl@gnu.org>
1269         * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1270         relocation section names.
1271         (elf_i386_relocate_section): Report files with bad relocation
1272         section names and return false.
1274 2001-01-17  Bo Thorsen  <bo@suse.de>
1276         * targets.c: Alphabetize list of xvecs.
1278 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
1280         * config.bfd: Add linux target variant for elfxx-hppa.
1281         * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1282         bfd_elf64_hppa_linux_vec.
1283         * configure: Regenerate.
1284         * elf64-hppa.c: Include elf64-target.h again to support linux
1285         target variant.
1286         (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1287         * elf32-hppa.c: Include elf32-target.h again to support linux
1288         target variant.
1289         (elf32_hppa_post_process_headers): New function.
1290         (elf_backend_post_process_headers): Define.
1291         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1292         bfd_elf32_hppa_linux_vec.
1294         * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1295         and data_segment_base fields.
1296         (elf32_hppa_link_hash_table_create ): Init them.
1297         (elf32_hppa_check_relocs): Update comments.
1298         (hppa_record_segment_addr): New function.
1299         (elf32_hppa_relocate_section): Call it.
1300         (final_link_relocate): Handle R_PARISC_SEGREL32.
1301         (elf32_hppa_final_link): New function.
1302         (bfd_elf32_bfd_final_link): Define to call it.
1303         (hppa_unwind_entry_compare): New function.
1304         * cache.c (bfd_open_file): Create files in write+read mode.
1306         * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1307         SEGREL32 and numerous other relocs.  Change duplicate
1308         R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1310         * opncls.c (bfd_fdopenr): Add parens like the comment says around
1311         O_ACCMODE.
1313         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1314         .plt entries for DT_INIT and DT_FINI.
1315         (elf32_hppa_finish_dynamic_sections): Remove special handling of
1316         DT_INIT and DT_FINI.
1318         * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1319         offsets for stub .plt access if wide mode.  Check offset in range.
1321 2001-01-13  Nick Clifton  <nickc@redhat.com>
1323         * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1324         line.
1326         * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1327         line.
1329 2001-01-12  Alan Modra  <alan@linuxcare.com.au>
1331         * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1332         * configure: Regenerate.
1334 2001-01-11  Peter Targett  <peter.targett@arccores.com>
1336         * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1337         bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1338         * cpu-arc.c (arch_info_struct): Add entries for variants.
1339         (bfd_arc_arch) Set default to bfd_mach_arc_5.
1340         (arc_get_mach) Don't assume machine names prefixed arc- before
1341         testing.
1342         * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1343         selections.
1344         (arc_elf_final_write_processing) Likewise.
1345         (ELF_MACHINE_CODE) Use EM_ARC.
1347 2001-01-10  Nick Clifton  <nickc@redhat.com>
1349         * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1351 2001-01-07  Philip Blundell  <philb@gnu.org>
1353         * README: Replace `bug-gnu-utils@gnu.org' with
1354         `bug-binutils@gnu.org'.
1356 2001-01-04  Kazu Hirata  <kazu@hxi.com>
1358         * som.c: Fix formatting.
1360 2001-01-03  Kazu Hirata  <kazu@hxi.com>
1362         * ecoffswap.h: Fix formatting.
1363         * elf-bfd.h: Likewise.
1364         * elfarm-nabi.c: Likewise.
1365         * elfarm-oabi.c: Likewise.
1366         * elfcode.h: Likewise.
1367         * elfcore.h: Likewise.
1368         * elflink.c: Likewise.
1369         * elflink.h: Likewise.
1370         * elfxx-ia64.c: Likewise.
1371         * elfxx-target.h: Likewise.
1372         * libbfd.c: Likewise
1373         * linker.c: Likewise.
1374         * lynx-core.c: Likewise.
1376 2001-01-02  Kazu Hirata  <kazu@hxi.com>
1378         * pc532-mach.c: Fix formatting.
1379         * pe-arm.c: Likewise.
1380         * pe-i386.c: Likewise.
1381         * pe-mips.c: Likewise.
1382         * pe-ppc.c: Likewise.
1383         * pe-sh.c: Likewise.
1384         * pei-mips.c: Likewise.
1385         * pei-sh.c: Likewise.
1386         * peicode.h: Likewise.
1387         * ppcboot.c: Likewise.
1388         * ptrace-core.c: Likewise.
1390 2001-01-01  Kazu Hirata  <kazu@hxi.com>
1392         * reloc.c: Fix formatting.
1393         * riscix.c: Likewise.
1394         * rs6000-core.c: Likewise.
1395         * xcoff-target.h: Likewise.
1397 2000-12-29  Hans-Peter Nilsson  <hp@bitrange.com>
1399         * elfcode.h (elf_object_p): Also restore the bfd mach field on
1400         error, by calling bfd_default_set_arch_mach with incoming
1401         values.
1403 2000-12-26  Kazu Hirata  <kazu@hxi.com>
1405         * vaxnetbsd.c: Fix formatting.
1406         * versados.c: Likewise.
1407         * vms-gsd.c: Likewise.
1408         * vms-hdr.c: Likewise.
1409         * vms-misc.c: Likewise.
1411 2000-12-25  Alexandre Oliva  <aoliva@redhat.com>
1413         * archive.c (coff_write_armap): Don't write more than symbol_count
1414         `archive_member_file_ptr's.
1416 2000-12-25  Kazu Hirata  <kazu@hxi.com>
1418         * vms-tir.c: Fix formatting.
1420 2000-12-23  Kazu Hirata  <kazu@hxi.com>
1422         * vms.c: Fix formatting.
1423         * vms.h: Likewise.
1425 2000-12-21  Santeri Paavolainen <santtu@ssh.com>
1427         * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1429         * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1431         * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1432         arithmetic.
1434         * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1436         * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1438 2000-12-21  Richard Sandiford  <rsandifo@redhat.com>
1440         * libbfd.c (bfd_get_bits): Added
1441         (bfd_put_bits): Likewise
1442         * bfd-in.h: Declared the above.
1443         * bfd-in2.h: Regenerated.
1445 2000-12-20  Kazu Hirata  <kazu@hxi.com>
1447         * targets.c: Fix formatting.
1448         * tekhex.c: Likewise.
1449         * trad-core.c: Likewise.
1451 2000-12-19  Kazu Hirata  <kazu@hxi.com>
1453         * sco5-core.c: Fix formatting.
1454         * section.c: Likewise.
1455         * sparclinux.c: Likewise.
1456         * sparclynx.c: Likewise.
1457         * sparcnetbsd.c: Likewise.
1458         * srec.c: Likewise.
1459         * stabs.c: Likewise.
1460         * stab-syms.c: Likewise.
1461         * sunos.c: Likewise.
1462         * syms.c: Likewise.
1463         * sysdep.h: Likewise.
1465 2000-12-18  Nick Clifton  <nickc@redhat.com>
1467         * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1468         defined.
1469         * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1470         * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1472 2000-12-18  Nick Clifton  <nickc@redhat.com>
1474         * vms-misc.c (_bfd_vms_get_record): Add default case to
1475         file_format switch.
1477 2000-12-15  Miloslav Trmac <mitr@volny.cz>
1479         * elfcore.h (elf_core_file_p): Move to the start of the program
1480         headers before attempting to read them.
1482 2000-12-14  Kazu Hirata  <kazu@hxi.com>
1484         * peigen.c: Fix formatting.
1485         * som.c: Likewise.
1486         * som.h: Likewise.
1488 2000-12-13  Kazu Hirata  <kazu@hxi.com>
1490         * peigen.c: Fix formatting.
1492 2000-12-12  Jim Wilson  <wilson@redhat.com>
1494         *  elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1496 2000-12-08  Mark Salter  <msalter@redhat.com>
1498         * binary.c (binary_set_section_contents): Ignore sections
1499         with zero size.
1501 2000-12-12  Kazu Hirata  <kazu@hxi.com>
1503         * m68klinux.c: Fix formatting.
1504         * m68knetbsd.c: Likewise.
1505         * mipsbsd.c: Likewise.
1506         * netbsd-core.c: Likewise.
1507         * netbsd.h: Likewise.
1508         * newsos3.c: Likewise.
1509         * nlm32-alpha.c: Likewise.
1510         * nlm32-i386.c: Likewise.
1511         * nlm32-ppc.c: Likewise.
1512         * nlm32-sparc.c: Likewise.
1513         * nlmcode.h: Likewise.
1514         * nlmswap.h: Likewise.
1515         * nlm-target.h: Likewise.
1516         * ns32knetbsd.c: Likewise.
1518 2000-12-10  Fred Fish  <fnf@be.com>
1520         * elflink.h (elf_link_output_extsym): Don't complain about undefined
1521         symbols in shared objects if allow_shlib_undefined is true.
1523 2000-12-12  Nick Clifton  <nickc@redhat.com>
1525         * cpu-sh.c: Fix formattng.
1526         * elf.c: Fix formattng.
1527         * elf32-mips.c: Fix formattng.
1528         * elf32-sh.c: Fix formattng.
1529         * elf64-alpha.c: Fix formattng.
1531 2000-12-09  Nick Clifton  <nickc@redhat.com>
1533         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1534         dwarf2_find_line_info as last parameter to invocation of
1535         _bfd_dwarf2_find_nearest_line.
1536         * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1537         dwarf2_find_line_info as last parameter to invocation of
1538         _bfd_dwarf2_find_nearest_line.
1540 2000-12-08  Mark Elbrecht  <snowball3@bigfoot.com>
1542         * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1543         (BFD_LIBS): ...to here.
1544         (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1545         (BFD_LIBS_CFILES): ...to here.
1546         * Makefile.in: Regenerate.
1547         * configure.in: Remove dwarf.lo from the elf shell variable.
1548         * configure: Regenerate.
1549         * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1550         * libcoff.h: Regenerate.
1551         * coffgen.c (coff_find_nearest_line): Call
1552         _bfd_dwarf2_find_nearest_line.
1553         * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1554         accordingly.
1555         (read_abbrevs): Likewise
1556         (decode_line_info): Likewise.
1557         (parse_comp_unit): Likewise.
1558         (comp_unit_find_nearest_line): Likewise.
1559         * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1560         * libbfd.h: Regenerate.
1561         * elf.c (_bfd_elf_find_nearest_line): Update call.
1562         * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1563         * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1564         * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1565         (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1566         (styp_to_sec_flags): Handle DWARF2 sections.
1567         * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1568         to _bfd_find_nearest_line.
1569         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1570         call to _bfd_find_nearest_line.
1572 2000-12-08  Kazu Hirata  <kazu@hxi.com>
1574         * coffgen.c: Fix formatting.
1575         * elf-m10300.c: Likewise.
1576         * elf32-i386.c: Likewise.
1577         * elf32-i960.c: Likewise.
1578         * elf32-m68k.c: Likewise.
1579         * elf32-mcore.c: Likewise.
1580         * elf32-ppc.c: Likewise.
1581         * elf32-sh.c: Likewise.
1582         * elf32-sparc.c: Likewise.
1583         * elf32-v850.c: Likewise.
1584         * elf64-alpha.c: Likewise.
1585         * elf64-hppa.c: Likewise.
1586         * elf64-mips.c: Likewise.
1587         * elf64-sparc.c: Likewise.
1589 2000-12-07  Kazu Hirata  <kazu@hxi.com>
1591         * elf32-ppc.c: Fix formatting.
1592         * elf64-x86-64.c: Likewise.
1594 2000-12-06  Ulf Carlsson  <ulfc@engr.sgi.com>
1596         From  Ralf Baechle  <ralf@gnu.org>
1598         * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1599         BFDs containing no sections or empty .text, .data or .bss sections
1600         to be merged, regardless of their flags.
1602 2000-12-06  Kazu Hirata  <kazu@hxi.com>
1604         * elf32-m32r.c: Fix formatting.
1605         * elf32-m68hc11.c: Likewise.
1606         * elf32-m68hc12.c: Likewise.
1607         * elf32-m68k.c: Likewise.
1608         * elf32-mcore.c: Likewise.
1609         * elf32-pj.c: Likewise.
1610         * elf32-ppc.c: Likewise.
1612 2000-12-05  Kazu Hirata  <kazu@hxi.com>
1614         * elf32-fr30.c: Fix formatting.
1615         * elf32-hppa.c: Likewise.
1616         * elf32-i370.c: Likewise.
1617         * elf32-i386.c: Likewise.
1618         * elf32-i860.c: Likewise.
1619         * elf32-i960.c: Likewise.
1621 2000-12-03  Kazu Hirata  <kazu@hxi.com>
1623         * elf32-arm.h: Fix formatting.
1624         * elf32-avr.c: Likewise.
1625         * elf32-cris.c: Likewise.
1626         * elf32-d10v.c: Likewise.
1627         * elf32-d30v.c: Likewise.
1628         * elf-hppa.h: Likewise.
1629         * elf-m10200.c: Likewise.
1630         * elf-m10300.c: Likewise.
1632 2000-12-01  Chris Demetriou  <cgd@sibyte.com>
1634         * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1635         bfd_mach_mips32_4k.  Update FIXME comment.
1636         * archures.c (bfd_mach_mips32): New constant.
1637         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1638         the latter, renumber it.
1639         * bfd-in2.h (bfd_mach_mips32): New constant.
1640         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1641         the latter, renumber it.
1642         * cpu-mips.c (I_mips32): New constant.
1643         (I_mips4K, I_mips32_4k): Rename the former to the latter.
1644         (arch_info_struct): Add bfd_mach_mips32 entry, replace
1645         bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1646         * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1647         (elf_mips_mach): Likewise.  Also, replace E_MIPS_MACH_MIPS32
1648         with E_MIPS_MACH_MIPS32_4K.
1649         (_bfd_mips_elf_final_write_processing): Replace
1650         bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1651         bfd_mach_mips32 case.
1652         (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1653         comparison with support for MIPS32.
1654         (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1655         MIPS32.
1657         * aoutx.h (NAME(aout,machine_type)): Add cases for
1658         bfd_mach_mips5 and bfd_mach_mips64.
1659         * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1660         * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1661         * cpu_mips.c (I_mips5, I_mips64): New definitions.
1662         (arch_info_struct): Add entries for bfd_mach_mips5 and
1663         bfd_mach_mips64.
1664         * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1665         _bfd_mips_elf_print_private_bfd_data): Add cases for
1666         E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1667         (_bfd_mips_elf_final_write_processing): Add cases for
1668         bfd_mach_mips5 and bfd_mach_mips64.
1670         * aoutx.h (NAME(aout,machine_type)): Add a
1671         bfd_mach_mips_sb1 case.
1672         * archures.c (bfd_mach_mips_sb1): New constant.
1673         * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1674         * cpu-mips.c (I_sb1): New constant.
1675         (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1676         * elf32-mips.c (elf_mips_mach): Add case for
1677         E_MIPS_MACH_SB1.
1678         (_bfd_mips_elf_final_write_processing): Add case for
1679         bfd_mach_mips_sb1.
1681 2000-12-01  Joel Sherrill <joel@OARcorp.com>
1683         * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1684         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1685         (sparc*-*-rtems*): Switched from a.out to ELF.
1687 2000-11-30  Jan Hubicka  <jh@suse.cz>
1689         * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1690         BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1691         (elf64-x86-64.lo): Add dependencies.
1692         * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1693         bfd_mach_x86_64_intel_syntax.
1694         * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1695         * config.bfd (x86_64): Add.
1696         * configure.in: Add support for bfd_elf64_x86_64_vec.
1697         * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1698         (bfd_i386_arch, i8086_ar): Link in.
1699         * elf64-x86-64.c: New file.
1700         * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1701         * targets.c (bfd_elf64_x86_64_vec): Add.
1702         (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1704 2000-11-30  Kazu Hirata  <kazu@hxi.com>
1706         * xcofflink.c: Fix formatting.
1708 2000-11-28  Kazu Hirata  <kazu@hxi.com>
1710         * aoutx.h: Fix formatting.
1711         * bfd-in.h: Likewise.
1712         * bfd-in2.h: Likewise.
1713         * cache.c: Likewise.
1714         * cisco-core.c: Likewise.
1715         * coff64-rs6000.c: Likewise.
1716         * coffcode.h: Likewise.
1717         * coffswap.h: Likewise.
1718         * corefile.c: Likewise.
1719         * elf32-mips.c: Likewise.
1721 2000-11-27  Kazu Hirata  <kazu@hxi.com>
1723         * aout-adobe.c: Fix formatting.
1724         * coff64-rs6000.c: Likewise.
1725         * coffgen.c: Likewise.
1726         * cofflink.c: Likewise.
1728 2000-11-27  Philip Blundell  <pb@futuretv.com>
1730         * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1731         (obj_coff_strings_written): New accessor macro for above.
1732         * libcoff.h: Regenerate.
1733         * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1734         strings.
1735         * coffcode.h (coff_write_object_contents): No need to write out
1736         the string table if it's already been done.
1738 2000-11-22  Philip Blundell  <pb@futuretv.com>
1740         * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1741         weak undefined symbols.
1743 2000-11-24  Nick Clifton  <nickc@redhat.com>
1745         * archures.c (bfd_mach_arm_5TE): Define.
1746         (bfd_mach_arm+XScale): Define.
1747         * bfd-in2.h: Regenerate.
1749         * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1750         BFD_RELOC_ARM_PCREL_BLX.
1752         * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1753         XScale machine numbers.
1755         * config.bfd (xscale-elf): Add target.
1756         (xscale-coff): Add target.
1758         * cpu-arm.c: Add xscale machine name.
1759         Add v5t, v5te and XScale machine numbers.
1761 2000-11-23  Kazu Hirata  <kazu@hxi.com>
1763         * aix386-core.c: Fix formatting.
1765 2000-11-22  Jim Wilson  <wilson@redhat.com>
1767         * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1768         (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1769         * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1770         (ins_imms_scaled): Initialize sign_bit at function entry.
1771         (elf64_ia64_operands): Add missing initializers.
1772         * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1773         elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1774         elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1775         elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1776         elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1777         parameters.
1778         (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1779         and free_extsyms at function entry.
1780         (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1781         (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1782         (get_got): Delete unused local srel.
1783         (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1784         (elfNN_ia64_relocate_section): Delete unused local dynindx.
1786 2000-11-21  Kazu Hirata  <kazu@hxi.com>
1788         * coff-a29k.c: Fix formatting.
1789         * coff-h8500.c: Likewise.
1790         * coff-i960.c: Likewise.
1791         * coff-ppc.c: Likewise.
1792         * coff-rs6000.c: Likewise.
1793         * coff-stgo32.c: Likewise.
1794         * coff-tic54x.c: Likewise.
1795         * coff-w65.c: Likewise.
1796         * cpu-h8500.c: Likewise.
1797         * cpu-hppa.c: Likewise.
1798         * cpu-ns32k.c: Likewise.
1799         * ecoff.c: Likewise.
1800         * ecofflink.c: Likewise.
1802 2000-11-21  Nick Clifton  <nickc@redhat.com>
1804         * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1805         remove possibility of infinite loop.
1807 2000-11-20  Kazu Hirata  <kazu@hxi.com>
1809         * aix386-core.c: Fix formatting.
1810         * aout-adobe.c: Likewise.
1811         * aout-arm.c: Likewise.
1812         * aout-encap.c: Likewise.
1813         * aout-ns32k.c: Likewise.
1814         * aout-target.h: Likewise.
1815         * aout-tic30.c: Likewise.
1816         * aoutf1.h: Likewise.
1817         * aoutx.h: Likewise.
1818         * archive.c: Likewise.
1819         * bfd-in.h: Likewise.
1820         * bfd-in2.h: Likewise.
1821         * bfd.c: Likewise.
1822         * bout.c: Likewise.
1824 2000-11-17  H.J. Lu  <hjl@gnu.org>
1826         * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1827         pltoff entries for DT_INIT and DT_FINI.
1828         (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1829         (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1830         entries.
1832 2000-11-16  Richard Henderson  <rth@redhat.com>
1834         * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1835         (allocate_dynrel_entries): Likewise.
1836         (elfNN_ia64_relocate_section): Likewise.  Set REL addends correctly.
1837         (set_pltoff_entry): Likewise.
1838         (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1839         (elfNN_ia64_reloc_type_lookup): Likewise.
1840         (elfNN_ia64_install_value): Likewise.
1841         (elfNN_ia64_relocate_section): Likewise.
1842         * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1843         (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1845 2000-11-16  Kazu Hirata  <kazu@hxi.com>
1847         * cpu-a29k.c: Fix formatting.
1848         * cpu-alpha.c: Likewise.
1849         * cpu-arm.c: Likewise.
1850         * cpu-avr.c: Likewise.
1851         * cpu-d10v.c: Likewise.
1852         * cpu-h8500.c: Likewise.
1853         * cpu-hppa.c: Likewise.
1854         * cpu-i370.c: Likewise.
1855         * cpu-i386.c: Likewise.
1856         * cpu-i960.c: Likewise.
1857         * cpu-ia64-opc.c: Likewise.
1858         * cpu-ia64.c: Likewise.
1859         * cpu-m32r.c: Likewise.
1860         * cpu-m68hc11.c: Likewise.
1861         * cpu-m68hc12.c: Likewise.
1862         * cpu-m68k.c: Likewise.
1863         * cpu-m88k.c: Likewise.
1864         * cpu-mips.c: Likewise.
1865         * cpu-ns32k.c: Likewise.
1866         * cpu-pj.c: Likewise.
1867         * cpu-powerpc.c: Likewise.
1868         * cpu-sh.c: Likewise.
1869         * cpu-sparc.c: Likewise.
1870         * cpu-tic54x.c: Likewise.
1871         * cpu-v850.c: Likewise.
1872         * cpu-vax.c: Likewise.
1873         * cpu-w65.c: Likewise.
1874         * cpu-we32k.c: Likewise.
1875         * cpu-z8k.c: Likewise.
1876         * dwarf1.c: Likewise.
1877         * dwarf2.c: Likewise.
1879 2000-11-15  Kazu Hirata  <kazu@hxi.com>
1881         * coff-arm.c: Fix formatting.
1882         * coff-ppc.c: Likewise.
1883         * coff-rs6000.c: Likewise.
1884         * coff-sh.c: Likewise.
1885         * coff-sparc.c: Likewise.
1886         * coff-tic30.c: Likewise.
1887         * coff-tic54x.c: Likewise.
1888         * coff-tic80.c: Likewise.
1889         * coff-w65.c: Likewise.
1890         * coff-we32k.c: Likewise.
1891         * coff-z8k.c: Likewise.
1893 2000-11-15  Richard Henderson  <rth@redhat.com>
1895         * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1896         section with the same ALLOC|LOAD flags as the source section.
1898 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
1900         * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1901         by STO_ALPHA constants.
1903 2000-11-14  Kazu Hirata  <kazu@hxi.com>
1905         * coff-pmac.c: Fix formatting.
1906         * coff-ppc.c: Likewise.
1908 2000-11-13  H.J. Lu  <hjl@gnu.org>
1910         * elflink.h (elf_link_add_object_symbols): Also add indirect
1911         symbols for common symbols with the default version.
1913 2000-11-09  Philip Blundell  <pb@futuretv.com>
1915         * section.c (STD_SECTION): Set gc_mark flag.
1917 2000-11-11  Kazu Hirata  <kazu@hxi.com>
1919         * coff-i960.c: Likewise.
1920         * coff-m68k.c: Likewise.
1921         * coff-m88k.c: Likewise.
1922         * coff-mcore.c: Likewise.
1923         * coff-mips.c: Likewise.
1925 2000-11-11  Bernd Schmidt  <bernds@cygnus.co.uk>
1927         * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1929 2000-11-10  Kazu Hirata  <kazu@hxi.com>
1931         * coff-h8300.c: Fix formatting.
1932         * coff-h8500.c: Likewise.
1933         * coff-i386.c: Likewise.
1934         * coff-i860.c: Likewise.
1935         * coff-i960.c: Likewise.
1936         * coff-ia64.c: Likewise.
1938 2000-11-09  Kazu Hirata  <kazu@hxi.com>
1940         * archive.c: Fix formatting.
1941         * archures.c: Likewise.
1943 2000-11-07  Richard Henderson  <rth@redhat.com>
1945         * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1946         Set it before bfd_elf64_bfd_final_link call.  Use it after the call.
1947         * section.c (bfd_set_section_contents): Call memcpy if
1948         section->contents set and location not equal to contents plus offset.
1950 2000-11-08  Kazu Hirata  <kazu@hxi.com>
1952         * bfd-in.h: Fix formatting.
1953         * bfd-in2.h: Likewise.
1954         * bfd.c: Likewise.
1955         * binary.c: Likewise.
1956         * bout.c: Likewise.
1957         * coff-a29k.c: Likewise.
1958         * coff-alpha.c: Likewise.
1959         * coff-apollo.c: Likewise.
1960         * coff-aux.c: Likewise.
1962 2000-11-07  Kazu Hirata  <kazu@hxi.com>
1964         * aix386-core.c: Fix formatting.
1965         * aoutf1.h: Likewise.
1966         * aoutx.h: Likewise.
1967         * archures.c: Likewise.
1968         * armnetbsd.c: Likewise.
1970 2000-11-07  Alan Modra  <alan@linuxcare.com.au>
1972         * coff-h8300.c (special): Adjust reloc address.
1974 2000-11-06  Steve Ellcey <sje@cup.hp.com>
1976         * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1977         to differentiate elf32 and elf64 on ia64.
1978         * bfd-in2.h: Regenerate.
1979         * config.bfd: Add target for "ia64*-*-hpux*".
1980         * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1981         * configure: Regenerate.
1982         * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1983         * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1985         * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1986         from elfxx-ia64.c.  Add depenency rules for making elf32-ia64.lo.
1987         * Makefile.in: Regnerate.
1988         * elf64-ia64.c: Deleted.
1989         * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1991 2000-11-06  Kazu Hirata  <kazu@hxi.com>
1993         * aout-adobe.c: Fix formatting.
1994         * aout-arm.c: Likewise.
1995         * aout-cris.c: Likewise.
1996         * aout-encap.c: Likewise.
1997         * aout-ns32k.c: Likewise.
1998         * aout-target.h: Likewise.
1999         * aout-tic30.c: Likewise.
2001 2000-11-05  Philip Blundell  <philb@gnu.org>
2003         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2004         BFDs containing no sections to be merged, regardless of their flags.
2006 2000-11-04  Philip Blundell  <philb@gnu.org>
2008         * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2009         if a relocation for an undefined symbol also results in an
2010         overflow.
2012 2000-11-06  Christopher Faylor <cgf@cygnus.com>
2014         * config.bfd: Add support for Sun Chorus.
2016 2000-11-05  David O'Brien  <obrien@FreeBSD.org>
2018         * configure.in: Recognize alpha-*-freebsd*.
2019         * configure: Regenerate.
2021 2000-11-02  Luciano Gemme <ishitawa@yahoo.com>
2023         * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2024         (Chunk): New global variable set by a parameter in objcopy.c.
2025         (S3Forced): New global variable set by a parameter in
2026         objcopy.c.
2027         (srec_set_section_contents): If S3Forced is true, always generate
2028         S3 records.
2029         (srec_write_section): Use 'Chunk' to limit maximum length of S
2030         records.
2032 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
2034         * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2035         * Makefile.in: Regenerate.
2036         * bfd-in2.h: Regenerate.
2037         * po/bfd.pot: Regenerate.
2039 2000-10-31  Philip Blundell  <philb@gnu.org>
2041         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2042         EF_SOFT_FLOAT if it is defined.
2044 2000-10-27  Philip Blundell  <philb@gnu.org>
2046         * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2047         attempts to mix PIC code with non-PIC, just mark the output as
2048         being position dependent.
2049         (elf32_arm_merge_private_bfd_data): Likewise.  Print an error
2050         message for EF_SOFT_FLOAT mismatches.  Display diagnostics for
2051         all mismatches, not just the first one.
2053 2000-10-25  Chris Demetriou  <cgd@sibyte.com>
2055         * ieee.c (ieee_archive_p): Plug one of many possible
2056         memory leaks in error handling.
2058 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
2060         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2061         elf32_sparc_object_p, elf32_sparc_final_write_processing):
2062         Support v8plusb.
2063         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2064         sparc64_elf_object_p): Support v9b.
2065         * archures.c: Declare v8plusb and v9b machines.
2066         * bfd-in2.h: Ditto.
2067         * cpu-sparc.c: Ditto.
2069 2000-10-16  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
2071         * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2072         of a GOT reloc.
2074         * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2075         (SYMBOL_CALLS_LOCAL): New macro.
2076         (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2077         (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2078         (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2079         (ppc_elf_relocate_section): Use flag variable to determine
2080         whether the relocation refers to a local symbol.
2081         Test whether a PLTREL24 reloc will produce a reloc by looking
2082         to see whether a PLT entry was made.
2084 2000-10-14  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
2086         * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2087         entries that could serve as a definition for a weak symbol.
2089 2000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>
2091         From  Ralf Baechle  <ralf@gnu.org>
2093         * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2094         local_p.  Add symbol value only for non-R_MIPS_REL32 relocations
2095         against local symbols.
2096         (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2098 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
2100         * section.c (struct sec): Add kept_section.
2101         (struct bfd_comdat_info): Remove sec, we can use above.
2102         (STD_SECTION): Add initializer.
2103         (bfd_make_section_anyway): Init here too.
2105         * bfd-in2.h: Regenerate.
2107         * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2108         zeroing of `flags'.
2109         (elf_link_input_bfd): Set all asection->symbol->value's here, and
2110         fudge values for discarded link-once section symbols.
2112         * elf64-hppa.c: Include alloca-conf.h
2114 2000-10-11  Alan Modra  <alan@linuxcare.com.au>
2116         * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2118         * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2120 2000-10-10  Alan Modra  <alan@linuxcare.com.au>
2122         * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2124 2000-10-10  Tom Rix <trix@redhat.com>
2126         * section.c (bfd_make_section_anyway): Release newsect ptr when
2127         newsect->symbol fails to alloc.  Use bfd_release instead of free.
2129 2000-10-09  Richard Henderson  <rth@cygnus.com
2131         * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2132         (elf64_ia64_unwind_entry_compare): New.
2133         (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2135 2000-10-07  Alan Modra  <alan@linuxcare.com.au>
2137         * elflink.h (size_dynamic_sections): Don't create various tags if
2138         .dynstr is excluded from the link.  Don't set first dynsym entry
2139         if dynsymcount is zero.
2140         (elf_bfd_final_link): Don't try to swap out dynamic syms if
2141         .dynsym excluded from the link.  Don't try to write any dynamic
2142         sections excluded from the link.
2144         * elf.c (swap_out_syms): Handle global section symbols.
2146 2000-10-05  DJ Delorie  <dj@redhat.com>
2148         * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2149         * coffcode.h (coff_set_alignment_hook): read extended reloc count
2150         (coff_write_relocs): write extended reloc count
2151         (coff_write_object_contents): account for extended relocs
2153 2000-10-05  Jim Wilson  <wilson@cygnus.com>
2155         * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2156         field.
2157         * elf.c (_bfd_elf_make_section_from_shdr): Call the
2158         elf_backend_section_flags function.
2159         * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2160         code.
2161         (elf64_ia64_section_flags): New function containing flag conversion
2162         code.
2163         (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2164         * elfxx-target.h (elf_backend_section_flags): Define.
2165         (elfNN_bed): Initialize elf_backend_section_flags field.
2167 2000-10-02  Alan Modra  <alan@linuxcare.com.au>
2169         * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2170         _bfd_elf32_gc_record_vtable.  Correct a comment.
2172 2000-10-01  Ulf Carlsson  <ulfc@engr.sgi.com>
2174         From  Ralf Baechle  <ralf@gnu.org>
2176         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2177         produces binaries with got[1] = 0x80000001 to differenciate them
2178         for the dynamic linker from the broken binaries produced by old
2179         versions.
2181 2000-09-30  Petr Sorfa <petrs@sco.com>
2183         * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2184         (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2185         * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2186         * configure: Regenerate.
2188 2000-09-27  Hans-Peter Nilsson  <hp@axis.com>
2190         Define two bfd_targets for absence and presence of leading
2191         underscore on symbols.  Make sure to only link same kind.
2192         * elf32-cris.c (cris_elf_object_p,
2193         cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2194         cris_elf_merge_private_bfd_data): New.
2195         (elf_backend_object_p, elf_backend_final_write_processing,
2196         bfd_elf32_bfd_print_private_bfd_data,
2197         bfd_elf32_bfd_merge_private_bfd_data): Define.
2198         <Target vector definition>: Include elf32-target.h twice with
2199         different macro settings:
2200         (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2201         bfd_elf32_us_cris_vec.
2202         (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2203         (elf_symbol_leading_char): First as 0, then '_'.
2204         (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2205         * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2206         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2207         * configure: Regenerate.
2208         * targets.c: Declare bfd_elf32_us_cris_vec.
2209         * po/bfd.pot: Regenerate.
2211 2000-09-29  Momchil Velikov  <velco@fadata.bg>
2213         * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2214         R_ARM_THM_PC22 relocations.
2216 2000-09-29  NIIBE Yutaka <gniibe@chroot.org>
2218         * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2220 2000-09-29  Momchil Velikov <velco@fadata.bg>
2222         * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2223         is has the SEC_HAS_CONTENTS flag set.
2225 2000-09-28  ï¿½Ã–rjan Friberg  <orjanf@axis.com>
2226             Hans-Peter Nilsson  <hp@axis.com>
2228         * aout-cris.c (N_TXTADDR): Define.
2230 2000-09-28  John David Anglin <dave@hiauly1.hia.nrc.ca>
2232         * som.c: Include alloca-conf.h.
2233         * Makefile.am: "make dep-am"
2234         * Makefile.in: Regenerate.
2236 2000-09-27  Alan Modra  <alan@linuxcare.com.au>
2238         * elf32-hppa.c (plt_stub): New.
2239         (PLT_STUB_ENTRY): Define.
2240         (elf32_hppa_link_hash_table): Change multi_subspace to packed
2241         boolean.  Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2242         (elf32_hppa_link_hash_table_create): Init to suit.
2243         (elf32_hppa_check_relocs): Set has_12bit_branch and
2244         has_17bit_branch as appropriate.
2245         (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2246         non-local functions.
2247         (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2248         Add space for plt_stub as needed.
2249         (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2250         functions at plt_stub.
2251         (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2252         (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2254         * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2255         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.  Use it instead
2256         of fixed size, and if negative, disable handling of input sections
2257         before stub section.  Set up default stub group size depending
2258         on detected branch relocs.
2259         (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2260         ensure different offsets from sym_value aren't rounded to
2261         different 2k blocks.  Use lrsel and rrsel for other stubs too for
2262         consistency rather than necessity.
2263         (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2264         (final_link_relocate): Likewise.
2265         (elf32_hppa_relocate_section): Likewise.
2267         * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2268         (_bfd_elf_hppa_gen_reloc_type): Generate them.
2269         (elf_hppa_final_link_relocate): Handle them.
2270         (elf_hppa_relocate_insn): Likewise.
2271         (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2273 2000-09-26  Hans-Peter Nilsson  <hp@axis.com>
2275         * elfcode.h (elf_object_p): Preserve and clear abfd section
2276         information.  Restore at error.
2278 2000-09-26  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2280         * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2281         is empty, make sure that its rva also 0. NT loader dislikes
2282         having otherwise.
2284 2000-09-26  Steve Ellcey <sje@cup.hp.com>
2286         * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2287         global by default.
2289 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
2291         * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2292         currently unused RELATIVE_DYNAMIC_RELOCS code.
2293         (hppa_discard_copies): Likewise.
2294         (elf32_hppa_size_stubs): Size `input_list' array correctly.  Correct
2295         comments.  Don't check non-code output sections for stub grouping.
2297 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
2299         * section.c (bfd_get_unique_section_name): Return NULL if
2300         bfd_malloc fails.
2302 2000-09-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2304         * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2305         instruction sequence to actually work.
2306         (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2307         accordingly.
2309 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
2311         * elf32-sh.c (sh_elf_relocate_section): Use
2312         _bfd_final_link_relocate to apply the relocation against a section
2313         symbol, when doing relocatable links.
2315 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
2317         * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2318         to id_sec.
2319         (stub_hash_newfunc): Here too.
2320         (hppa_add_stub): And here.
2321         (elf32_hppa_link_hash_table): Remove stub_section_created,
2322         reloc_section_created, first_init_sec and first_fini_sec.  Add
2323         stub_group.
2324         (elf32_hppa_link_hash_table_create): Init to suit.
2325         (hppa_get_stub_entry): Add support for grouping stub sections.
2326         (hppa_add_stub): Likewise.  Remove sec_count param and init/fini
2327         section code.  Index stub vars by section->id.
2328         (elf32_hppa_size_stubs): Likewise.  Remove duplicated function
2329         exit paths.  Zap allocation of above removed vars.  Refine
2330         link-once test.
2332         * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2333         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2334         (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2335         rather than pointer to bfd_link_info.
2336         (hppa_add_stub): Likewise.
2337         (final_link_relocate): Likewise.
2339 2000-09-17  David Huggins-Daines  <dhd@linuxcare.com>
2341         (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2342         link-once sections.
2344 2000-09-16  Alexandre Oliva  <aoliva@redhat.com>
2346         * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2347         ld/emulparams/shelf.sh.
2349 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2351         * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2352         * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2353         * bfd-in2.h: Regenerate.
2355 2000-09-15  Kenneth Block  <Kenneth.Block@compaq.com>
2357         * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2358         LITUSE relocations incorrectly if -relax is specified on the ld
2359         command line and the displacement field of the load or store
2360         instruction is non-zero. (Patch by paul.winalski@compaq.com)
2362 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
2364         * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2365         first_fini_sec here.
2366         (elf32_hppa_size_stubs): Instead correctly find the first .init
2367         and .fini section here.
2369 2000-09-15  David Huggins-Daines  <dhd@linuxcare.com>
2371         * elf32-hppa.c (clobber_millicode_symbols): New function.
2372         (elf32_hppa_size_dynamic_sections): Call it.
2374 2000-09-14  Alan Modra  <alan@linuxcare.com.au>
2376         * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2377         packed.  Add plabel, plt_abs packed booleans.
2378         (hppa_link_hash_newfunc): Init new fields.
2379         (PLABEL_PLT_ENTRY_SIZE): Define.
2380         (hppa_stub_name): Use size_t len vars.
2381         (hppa_add_stub): Likewise.
2382         (elf32_hppa_build_stubs): Likewise.
2383         (hppa_build_one_stub): Kill some compiler warnings.
2384         (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2385         if dynamic linking.  Munge the local plt offsets into
2386         local_got_refcounts.  Set h->plabel for all global PLABELs.  Use
2387         size_t len vars.  Add assert for plabel addend.
2388         (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2389         (elf32_hppa_hide_symbol): New function.
2390         (elf_backend_hide_symbol): Define.
2391         (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2392         with h->plabel set.  Don't make plt entries to have dynamic syms
2393         when they have been forced local.  If plt entry is used by a
2394         plabel, make it PLABEL_PLT_ENTRY_SIZE.
2395         (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2396         Set up .plt offsets for local syms.
2397         (elf32_hppa_relocate_section): Initialise plt entries for local
2398         syms.  Leave weak undefined plabels zero.  Make global plabel
2399         relocs against function symbol, and leave the addend zero.
2400         Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2401         (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2402         non-dynamic syms.  Init extra plt for plabels.  Use *ABS* DIR32
2403         relocs instead of SEGREL32 for dynamic got relocs.
2404         (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2405         (elf_backend_got_header_size): Adjust.
2406         (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2408         * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2409         (hppa_type_of_stub): Use it instead of #if 0
2410         (hppa_discard_copies): Use it here too.
2411         (elf32_hppa_size_dynamic_sections): And here.
2413         * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2414         (elf32_hppa_link_hash_table_create): And here.
2415         (hppa_build_one_stub): And here.  Instead keep track of stub
2416         offset using _raw_size.
2417         (elf32_hppa_size_stubs): Likewise.
2418         (elf32_hppa_build_stubs): Likewise.
2419         (hppa_size_one_stub): Likewise.  Resize reloc section too.
2421         * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2422         first_fini_sec handling.  Don't search for reloc section or set
2423         hplink->reloc_section_created here.
2424         (elf32_hppa_size_stubs): Instead search for reloc sections, and
2425         set reloc_section_created here.
2426         (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2427         (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2428         and DT_FINI.
2429         (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2431         * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2432         with `hplink->root.'.
2433         (elf32_hppa_check_relocs): Likewise.
2434         (elf32_hppa_gc_sweep_hook): Likewise.
2435         (elf32_hppa_adjust_dynamic_symbol): Likewise.
2436         (hppa_handle_PIC_calls): Likewise.
2437         (elf32_hppa_size_dynamic_sections): Likewise.
2438         (elf32_hppa_set_gp): Likewise.
2439         (elf32_hppa_relocate_section): Likewise.
2440         (elf32_hppa_finish_dynamic_symbol): Likewise.
2441         (elf32_hppa_finish_dynamic_sections): Likewise.
2443         From  David Huggins-Daines  <dhd@linuxcare.com>
2444         * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2445         defined weak symbols in shared links.
2446         (final_link_relocate): Calls to defined weak symbols in shared
2447         objects must go via import stubs, as the target might not be known
2448         at link time.
2450 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
2452         * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2453         R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2454         R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167.  Replaced
2455         the original entries with EMPTY_HOWTOs, and added new ones to fill
2456         in the gap.
2457         (sh_elf_info_to_howto): Make sure the new gap isn't used.
2458         (sh_elf_relocate_section): Likewise.
2460 2000-09-13  Anders Norlander  <anorland@acc.umu.se>
2462         * cpu-mips.c (arch_info_struct): Add mips:4K
2463         * bfd-in2.h (bfd_mach_mips4K): New define.
2464         * archures.c: Add bfd_mach_mips4K to comment.
2465         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2466         E_MIPS_ARCH_2 for bfd_mach_mips4K.
2468 2000-09-13  Marco Franzen <marcof@thyron.com>
2470         * som.c (som_write_symbol_strings): Do not used fixed buffers,
2471         use size_t as a counter.
2472         (som_write_space_strings): Similarly.
2474 2000-09-12  Jason Eckhardt  <jle@cygnus.com>
2476         * elf32-i860.c (elf32_i860_relocate_pc26): New function
2477         and prototype.
2478         (elf32_i860_relocate_section): Invoke new function from here.
2480 2000-09-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2482         * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2483         static.
2485 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2487         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2488         target section name instead of dumping core when the target symbol is
2489         undefined.
2491 2000-09-09  Kazu Hirata  <kazu@hxi.com>
2493         * riscix.c: Remove DEFUN.
2495 2000-09-08  Nick Clifton  <nickc@redhat.com>
2497         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2498         initialise flags in output bfd if the input bfd is the default
2499         architecture with the default flags.
2501 2000-09-08  Kazu Hirata  <kazu@hxi.com>
2503         * archive.c: Fix formatting.
2504         * coff-arm.c: Likewise.
2505         * doc/chew.c: Likewise.
2507 2000-09-08  Alan Modra  <alan@linuxcare.com.au>
2509         * section.c (bfd_get_unique_section_name): Put a dot before the
2510         numeric suffix.
2512 2000-09-07  Kazu Hirata  <kazu@hxi.com>
2514         * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2515         * elf.c: Fix formatting.
2517 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
2519         * config.bfd (sh-*-linux*): Added.
2520         * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2521         * targets.c: Declare them.
2522         * elf32-sh-lin.c: New file.
2523         * Makefile.am: Compile it.
2524         * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2525         * configure, Makefile.in: Rebuilt.
2527 2000-09-06  Geoffrey Keating  <geoffk@cygnus.com>
2529         * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2530         pseduo-section when determining where the TOC ends.
2532         * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2533         output x_tvndx as it is only two bytes wide.
2535         * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2536         reloc is 26 or 32 bits wide.
2538         * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2539         for relocs that don't change anything.  Also look at the full
2540         6 bits of bitsize.
2542 2000-09-06  Philip Blundell  <philb@gnu.org>
2544         * config.bfd (arm*-*-uclinux*): New target.
2546 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
2548         * configure: Rebuilt with new libtool.m4.
2550 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
2552         * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2553         word for variable name.
2554         * bfd-in2.h: Regenerate.
2556 2000-09-05  Nick Clifton  <nickc@redhat.com>
2558         * config.in: Regenerate.
2559         * libbfd.h: Regenerate.
2560         * po/bfd.pot: Regenerate.
2561         * doc/bfdint.texi: Remove CVS date string - it foils compares with
2562         local versions.
2564 2000-09-05  Steven Johnson  <sbjohnson@ozemail.com.au>
2566         * cpu-powerpc.c  (arch_info_struct): Added MPC860 Family entry.
2568 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
2570         Shared library and PIC support.
2571         * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2572         (GOT_ENTRY_SIZE): New.
2573         (ELF_DYNAMIC_INTERPRETER): New.
2574         (STUB_SUFFIX): Define.
2575         (LONG_BRANCH_PIC_IN_SHLIB): Define.
2576         (RELATIVE_DYNAMIC_RELOCS): Define.
2577         (enum elf32_hppa_stub_type): New.
2578         (struct elf32_hppa_stub_hash_entry): Rename offset to
2579         stub_offset.  Add a number of new fields.
2580         (struct elf32_hppa_link_hash_entry): New.
2581         (struct elf32_hppa_link_hash_table): Add numerous fields.  Remove
2582         global_value.
2583         (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2584         (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2585         (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc.  Init
2586         new fields.
2587         (hppa_link_hash_newfunc): New function.
2588         (elf32_hppa_link_hash_table_create): Use above function. Init new
2589         fields.
2590         (elf32_hppa_stub_name): Rename to hppa_stub_name.  Pass in reloc
2591         instead of addend, and remove sym_name from args.  Don't use
2592         symbol name for local syms, instead use sym index.
2593         (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2594         stub type rather than size.  Pass in hash and handle import stub
2595         case.  Also pass in reloc instead of offset so we can calculate
2596         PCREL22F and PCREL12F branches properly.
2597         (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub.  Build
2598         import and export stubs too.
2599         (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub.  Handle
2600         import and export stub sizing.
2601         (elf32_hppa_check_relocs): New function.
2602         (elf32_hppa_adjust_dynamic_symbol): New function.
2603         (hppa_discard_copies): New function.
2604         (elf32_hppa_size_dynamic_sections): New function.
2605         (elf_backend_size_dynamic_sections): Define.
2606         (elf32_hppa_finish_dynamic_symbol): New function.
2607         (elf_backend_finish_dynamic_symbol): Define.
2608         (elf32_hppa_size_stubs): Stash params in link hash table, and move
2609         some local vars into the link hash table too.  For shared links,
2610         trundle over function syms, generating export stubs.  Handle
2611         PCREL22F branches.  Break out stub creation code from here..
2612         (hppa_add_stub): .. to here.  New function.
2613         (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2614         call the bfd linker.  Use elf_gp to record global pointer.
2615         Calculate a value from sections if $global$ is missing.
2616         (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2617         (elf32_hppa_gc_mark_hook): New function.
2618         (elf_backend_gc_mark_hook): Define.
2619         (elf32_hppa_gc_sweep_hook): New function.
2620         (elf_backend_gc_sweep_hook): Define.
2621         (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2622         Add rel to args, and remove howto, input_bfd, offset, addend,
2623         sym_name as we can recalculate these locally.  Handle calls to
2624         dynamic objects, extra PIC relocs, PCREL22F branches.  Change
2625         handling of undefined weak syms.  Check that stubs are in range.
2626         Only look for import stubs on PCREL17F and PCREL22F relocs.  Add
2627         message on hitting a DPREL21L reloc that needs fixing.  Subtract
2628         off PC for PCREL14F.  Break out code that does a stub lookup from
2629         here..
2630         (hppa_get_stub_entry): ..to here.  New function.
2631         (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2632         (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2633         relocs, etc. etc.
2634         (elf32_hppa_finish_dynamic_sections): New function.
2635         (elf_backend_finish_dynamic_sections): Define.
2636         (elf_backend_final_write_processing) Define.
2637         (hppa_handle_PIC_calls): New function.
2638         (elf32_hppa_build_stubs): Call it.  Pass link_info to
2639         hppa_build_one_stub.
2640         (elf32_hppa_create_dynamic_sections): New function
2641         to create .plt and .got then set .plt flags correctly.
2642         (elf_backend_create_dynamic_sections): Define.
2643         (elf32_hppa_object_p): New function.
2644         (elf_backend_object_p): Define.
2645         (elf32_hppa_elf_get_symbol_type): New function.
2646         (elf_backend_get_symbol_type): Define.
2647         (elf_backend_can_gc_sections): Define.
2648         (elf_backend_want_got_plt): Define.
2649         (elf_backend_plt_alignment): Set to 2.
2650         (elf_backend_plt_readonly): Define.
2651         (elf_backend_want_plt_sym): Define.
2652         (elf_backend_got_header_size): Reserve one entry.
2654         * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2655         (elf32_hppa_size_stubs): Pass in multi_subspace.
2656         (elf32_hppa_set_gp): Declare.
2658         * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2659         (bfd_get_unique_section_name): New function.
2660         * bfd-in2.h: Regenerate.
2662         * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2663         (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2664         comment.
2666         From  David Huggins-Daines  <dhd@linuxcare.com>
2667         * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2668         (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2669         (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2670         been updated in finish_dynamic_symbol before modifying function
2671         symbol.
2673         * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2674         eight entries.  Replace NULL with bfd_elf_generic_reloc.  Add
2675         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2676         (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*.  Add some
2677         comments.  Handle format == 12 for R_HPPA_PCREL_CALL.
2678         (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2679         (elf_hppa_relocate_insn): Likewise.  Reformat some comments.
2680         (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2682         From David Huggins-Daines  <dhd@linuxcare.com>
2683         * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2684         style of local labels as well.
2686 2000-09-03  Philip Blundell  <philb@gnu.org>
2688         * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2689         references to undefined symbols in debugging sections.
2691 2000-09-02  H.J. Lu  <hjl@gnu.org>
2693         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2694         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2695         BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2696         section.
2698 2000-09-02  Jason Eckhardt  <jle@cygnus.com>
2700         * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2701         (elf32_i860_is_local_label_name): New function and prototype.
2703 2000-09-02  Nick Clifton  <nickc@redhat.com>
2705         * configure.in: Increase version number to 2.10.91.
2706         * configure: Regenerate.
2707         * aclocal.m4: Regenerate.
2708         * config.in: Regenerate.
2709         * po/bfd.pot: Regenerate.
2711 2000-09-02  Daniel Berlin <dberlin@redhat.com>
2713         * elf.c (_bfd_elf_make_section_from_shdr): Add
2714         .gnu.linkobce.wi. to the list of debug section names.
2716 2000-09-02  Nick Clifton  <nickc@redhat.com>
2718         * dwarf2.c (find_debug_info): New function: Locate a section
2719         containing dwarf2 debug information.
2720         (bfd_dwarf2_find_nearest_line): Find all sections containing
2721         debug information and include them in the stash.
2723 2000-09-01  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
2725         * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2726         R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2727         (sh_reloc_map): Add new relocs.
2728         (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2729         sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2730         sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2731         sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2732         functions.
2733         (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2734         (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2735         elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2736         elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2737         New array constants.
2738         (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2739         New variables.
2740         (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2741         elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2742         elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2743         elf_sh_plt_reloc_offset): Define.
2744         (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2745         elf_sh_link_hash_table): New structs.
2746         (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2747         (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2748         relocation types.
2749         (elf_backend_create_dynamic_sections,
2750         bfd_elf32_bfd_link_hash_table_create,
2751         elf_backend_adjust_dynamic_symbol,
2752         elf_backend_size_dynamic_sections,
2753         elf_backend_finish_dynamic_symbol,
2754         elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2755         elf_backend_plt_readonly, elf_backend_want_plt_sym,
2756         elf_backend_got_header_size, elf_backend_plt_header_size):
2757         Define.
2758         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2759         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2760         New relocs.
2761         * bfd-in2.h, libbfd.h: Rebuilt.
2763 2000-09-01  Alan Modra  <alan@linuxcare.com.au>
2765         * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2766         change.
2768 2000-08-31  J"orn Rennecke <amylaar@cygnus.co.uk>
2770         * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2771         not initialized, set them to indicate the SH1 instruction set.
2773 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
2775         * acinclude.m4: Include libtool and gettext macros from the
2776         top level.
2777         * aclocal.m4, configure: Rebuilt.
2779 2000-08-29  Michael Snyder  <msnyder@seadog.cygnus.com>
2781         * elf.c: Eliminate references to __sparcv9 macro; replace with
2782         autoconf variables HAVE_PSINFO32_T etc.
2783         * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2784         HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2785         * config.in: Ditto.
2786         * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2787         detect the above typedefs.  (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2788         * aclocal.m4: Ditto.
2789         * configure: Regenerate.
2791 2000-08-27  Alan Modra  <alan@linuxcare.com.au>
2793         * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2794         for any shared link, not just shared -Bsymbolic.
2795         (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2796         any shared link, and pass link info to it.
2797         (elf_i386_size_dynamic_sections): Update comment.
2798         (elf_i386_discard_copies): Modify to discard relocs for symbols
2799         that have been forced local.
2800         (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2801         that have been forced local.
2803 2000-08-24  Denis Chertykov  <denisc@overta.ru> & Nick Clifton  <nickc@redhat.com>
2805         * elflink.h (elf_link_add_object_symbols): Allow common
2806         symbols to have an alignment of 1 if explicitly requested, and
2807         not overridden by other definitions.
2809 2000-08-22  Doug Kwan <dkwan@transmeta.com>
2811         * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2812         * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2814 2000-08-22  H.J. Lu  <hjl@gnu.org>
2816         * elf-bfd.h (elf_link_hash_table): Add runpath.
2818         * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2819         * bfd-in2.h: Rebuilt.
2821         * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2822         "runpath" field to NULL.
2823         (bfd_elf_get_runpath_list): New function.
2825         * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2826         DT_RUNPATH entries.
2828 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
2830         * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2831         R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2832         explicitly.  Improve validation of r_type.
2834 2000-08-21  H.J. Lu  <hjl@gnu.org>
2836         * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2837         dynamic allocated content space.  Add a comment to remind us that
2838         one day this ought to be fixed.
2839         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2840         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2841         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2843 2000-08-21  Jason Eckhardt  <jle@cygnus.com>
2845         * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2846         field with the newly relocated value instead of adding it to the
2847         existing immediate field.
2848         (elf32_i860_relocate_splitn): Likewise.
2849         (elf32_i860_relocate_highadj): Likewise.
2851 2000-08-16  Jason Eckhardt  <jle@cygnus.com>
2853         * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2854         was previously just a stub).
2856 2000-08-16  Alexandre Oliva  <aoliva@redhat.com>
2858         * elflink.c (_bfd_elf_create_got_section): Don't abort().
2859         Formatting fixes.
2860         (_bfd_elf_create_dynamic_sections): Likewise.
2862 2000-08-16  Andrew Macleod  <amacleod@cygnus.com>
2864         * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2865         for undefined symbols to be the beginning of the section.
2867         * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2868         four extra entries at the beginning of the .rela.plt section.
2869         (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2870         section to account for the four reserved entries in the .plt section.
2872 2000-08-15  Geoffrey Keating  <geoffk@cygnus.com>
2874         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2875         to the list of NOPs we recognize after a branch-and-link.
2876         Use the ori NOP when one is needed.
2878         * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2879         for large archives.
2881 2000-08-14  Jim Wilson  <wilson@cygnus.com>
2883         * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2884         EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2885         (elf64_ia64_print_private_bfd_data): Likewise.  Also handle
2886         EF_IA_64_ABSOLUTE.
2888 2000-08-11  Alexandre Oliva  <aoliva@redhat.com>
2890         * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2892 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
2894         * elf32-i860.c (elf32_i860_relocate_section): New function.
2895         (i860_final_link_relocate): New function.
2896         (elf32_i860_relocate_splitn): New function.
2897         (elf32_i860_relocate_pc16): New function.
2898         (elf32_i860_relocate_highadj): New function.
2899         (elf32_i860_howto): Minor adjustments to some relocations.
2900         (elf_info_to_howto_rel): Define.
2901         (elf_backend_relocate_section): Define.
2903 2000-08-10  Nick Clifton  <nickc@cygnus.com>
2905         * elf32-arm.h: Fix formatting.
2907 2000-08-10  Bernd Schmidt  <bernds@cygnus.co.uk>
2909         * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2911 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
2913         * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2915 2000-08-07  Kazu Hirata  <kazu@hxi.com>
2917         * ieee.c (ieee_write_debug_part): Rewrite a comment.
2918         * elf64-ia64.c: Fix a typo.
2920 2000-08-05  Jason Eckhardt  <jle@cygnus.com>
2922         * elf32-i860.c (elf32_i860_howto_table): New structure.
2923         (lookup_howto): New function.
2924         (elf32_i860_reloc_type_lookup): New function.
2925         (elf32_i860_info_to_howto_rela): New function.
2926         (elf_code_to_howto_index): New structure.
2927         (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2928         (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2929         elf32_i860_reloc_type_lookup.
2931 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
2933         * som.c (struct fixup_format): Constify `format'.
2934         (som_hppa_howto_table): Use SOM_HOWTO macro.
2935         (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2936         (som_bfd_reloc_type_lookup): Likewise.
2937         (compare_subspaces): Remove unused `count1', `count2'.
2938         (som_begin_writing): Remove unused `total_reloc_size'.
2939         (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2940         (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2941         (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2942         (som_find_nearest_line): Decorate unused parameter(s).
2943         (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2944         (som_bfd_link_split_section): Likewise.
2946 2000-08-03  Nick Clifton  <nickc@cygnus.com>
2948         * section.c: Restore backed out code.
2949         * elf.c: Restore backed out code.
2950         (copy_private_bfd_data): Fix bug preventing stipped dynamic
2951         binaries from working.
2952         * bfd-in2.h: Regenerate.
2954 2000-08-03  H.J. Lu  <hjl@gnu.org>
2956         * section.c: Back out the change made by Nick Clifton
2957         <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2958         binaries.
2959         * bfd-in2.h: Likewise.
2960         * elf.c: Likewise.
2962 2000-08-03  Alexandre Oliva  <aoliva@redhat.com>
2964         * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2966 2000-07-31  Jason Eckhardt  <jle@cygnus.com>
2968         * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2969         * bfd-in2.h, libbfd.h: Regenerate.
2971 2000-07-31  Nick Clifton  <nickc@cygnus.com>
2973         * section.c (struct sec): Add new boolean field 'segment_mark'.
2974         (STD_SECTION): Initialise new field to zero.
2976         * bfd-in2.h: Regenerate.
2978         * elf.c (copy_private_bfd_data): Reorganise section to segment
2979         mapping to cope with moved sections requiring new segments,
2980         and overlapping segments.
2981         (SEGMENT_END): New macro: Return the end address of a segment.
2982         (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2983         contains a section by comparing their VMA addresses.
2984         (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2985         contains a section by comparing their LMA addresses.
2986         (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2987         section should be included in a segment.
2988         (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2989         follows another in memory.
2990         (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2991         segments overlap.
2993 2000-07-22  Jason Eckhardt  <jle@cygnus.com>
2995         * cpu-i860.c: Added comments.
2997         * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2998         bfd_elf32_i860_little_vec.
2999         (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
3000         (ELF_MAXPAGESIZE): Changed to 4096.
3002         * targets.c (bfd_elf32_i860_little_vec): Declaration of
3003         new target.
3004         (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3006         * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3007         config for little endian elf32 i860.
3008         (targ_defvec): Define for the new config above
3009         as "bfd_elf32_i860_little_vec".
3010         (targ_selvecs): Define for the new config above
3011         as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3013         * configure.in (bfd_elf32_i860_little_vec): Added recognition
3014         of new target vec.
3016         * configure: Regenerated.
3018 2000-07-27  H.J. Lu  <hjl@gnu.org>
3020         * elflink.h (elf_merge_symbol): Take one more argument,
3021         dt_needed, to indicate if the symbol comes from a DT_NEEDED
3022         entry. Don't overide the existing weak definition if dt_needed
3023         is true.
3024         (elf_link_add_object_symbols): Pass dt_needed to
3025         elf_merge_symbol ().
3027 2000-07-27  Nick Clifton  <nickc@cygnus.com>
3029         * elflink.h (elf_link_size_reloc_section): Zeroes the section's
3030         allocated contents.
3032 2000-07-25  Geoffrey Keating  <geoffk@cygnus.com>
3034         * configure.host (*-*-aix*): AIX has 'long long' always.
3036         * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
3037         (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
3038         (xcoff_write_archive_contents_big): Don't update the offset
3039         of the symbol table, xcoff_write_armap will do it.
3041 2000-07-23  Ulf Carlsson  <ulfc@engr.sgi.com>
3043         * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
3044         of dynobj for SGI_COMPAT checks.
3046 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3048         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
3049         * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
3050         * bfd-in2.h: Regenerate.
3052 2000-07-21  Nick Clifton  <nickc@cygnus.com>
3054         * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
3055         range symbol indices in relocs and issue an error message.
3057 2000-07-20  H.J. Lu  <hjl@gnu.org>
3059         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
3060         info->new_dtags when setting DT_FLAGS_1. It will only be set
3061         by the new linker options. It shouldn't break anything.
3063 2000-07-20  H.J. Lu  <hjl@gnu.org>
3065         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
3066         only if info->new_dtags is true.
3068 2000-07-20  H.J. Lu  <hjl@gnu.org>
3070         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
3071         DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
3073 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
3075         * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
3076         (ALL_MACHINES_CFILES): Add cpu-cris.c.
3077         (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
3078         (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
3079         (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
3080         * Makefile.in: Rebuild.
3081         * aclocal.m4: Rebuild.
3082         * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
3083         * archures.c (enum bfd_architecture): Add bfd_arch_cris.
3084         (bfd_cris_arch): Declare.
3085         (bfd_archures_list): Add bfd_cris_arch.
3086         * bfd-in2.h: Rebuild.
3087         * config.bfd: (cris-*-*): New target.
3088         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
3089         * configure: Rebuild.
3090         * elf.c (prep_headers): Add bfd_arch_cris.
3091         * libbfd.h: Rebuild.
3092         * libaout.h (enum machine_type): Add M_CRIS.
3093         * reloc.c: Add CRIS relocations.
3094         * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
3095         (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
3096         * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
3097         * po/POTFILES.in, po/bfd.pot: Regenerate.
3099 2000-07-19  H.J. Lu  <hjl@gnu.org>
3101         * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
3102         DF_TEXTREL if DT_TEXTREL is set.
3103         * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3104         * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3105         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3106         * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
3107         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3108         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3109         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
3110         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3111         * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
3112         * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3114         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
3115         set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
3116         DT_RPATH is set.
3117         Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
3119 2000-07-19  H.J. Lu  <hjl@gnu.org>
3121         * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
3122         * bfd-in2.h: Rebuild.
3124         * elf-bfd.h (elf_obj_tdata): Add dt_soname.
3125         (elf_dt_soname): New.
3127         * elf.c (bfd_elf_set_dt_needed_soname): New.
3129         * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
3130         entry if the shared object loaded by DT_NEEDED is used to
3131         resolve the reference in a regular object.
3133 2000-07-19  H.J. Lu  <hjl@gnu.org>
3135         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
3136         DT_DEPAUDIT and DT_AUDIT as strings.
3138 2000-07-19  Nick Clifton  <nickc@cygnus.com>
3140         * format.c: Fix formatting.
3142 2000-07-19  H.J. Lu  <hjl@gnu.org>
3144         * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
3146 2000-07-19  H.J. Lu  <hjl@gnu.org>
3148         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3149         DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3150         DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3151         DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3152         DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3153         DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3154         DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3156 2000-07-18  Andrew Cagney  <cagney@b1.cygnus.com>
3158         * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3159         renamed functions from here...
3160         (assign_section_numbers): Use renamed functions.
3161         (prep_headers): Use renamed functions.
3163         * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3164         * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3165         * bfd-in2.h: Regenerate.
3167 2000-07-18  Ulf Carlsson  <ulfc@engr.sgi.com>
3169         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3170         parenthesis in if statement.
3172 2000-07-17  Koundinya K  <kk@ddeorg.soft.net>
3174         Enable the support for Traditional MIPS.
3175         * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3176         return ict_none appropriately for traditional mips targets.
3177         (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3178         (STUB_MOVE): Conditionalize for traditonal mips.
3179         (STUB_LI16): Likewise.
3180         (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3181         room for RTPROC header.
3182         (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3183         the permission for the PT_DYNAMIC as read, write and execute.
3184         (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3185         for traditonal mips.
3186         (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3187         _DYNAMIC_LINKING for traditonal mips.
3188         (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3189         in case of traditonal mips.
3190         (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3191         entry is required. For a function if PLT is not required then set the
3192         corresponding hash table entry to 0.
3193         (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3194         traditonal mips.
3195         (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3196         shared object set the value to 0.
3197         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3198         _DYNAMIC_LINKING for traditonal mips.
3199         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3200         for traditonal mips.
3202 2000-07-15  H.J. Lu  <hjl@gnu.org>
3204         * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3206 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
3208         * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3209         out a structure that is BFD_IN_MEMORY.
3211 2000-07-11  Alan Modra  <alan@linuxcare.com.au>
3213         * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3214         bfd pointer.  Print section id instead of bfd pointer for local
3215         syms.  Prefix addend with `+' for global syms as well as local.
3216         Correct calculation of name component lengths.
3217         (elf64_hppa_check_relocs): Update call to get_dyn_name.
3219         From David Huggins-Daines  <dhd@linuxcare.com>
3220         * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3221         * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3222         (elf64_hppa_modify_segment_map): Likewise.
3224 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
3226         * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3227         addresses to be "naturally" sign extended.  Return -1 if unknown.
3228         * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3229         * bfd-in2.h: Regenerate.
3231 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
3233         * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3234         and ECOF_SIGNED_64 to list ways to extract an offset.
3235         (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3236         ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3237         Update.
3238         * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3239         * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3241 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
3243         * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3244         bfd_get_start_address.
3245         (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3246         (elf_swap_ehdr_out): Ditto.
3248 2000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>
3250         * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3251         compatibility with older binutils.
3253 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3255         * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3256         (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3258         From Ryan Bradetich  <rbradetich@uswest.net>
3259         * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3260         (parse_line_table): Ditto.
3261         (_bfd_dwarf1_find_nearest_line): Ditto.
3262         * syms.c (cmpindexentry): Remove extra `*' from params.
3264 2000-07-09  Koundinya K  <kk@ddeorg.soft.net>
3266         * elf32-mips.c (sort_dynamic_relocs): New Function.
3267         (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3268         via qsort to sort the dynamic relocations in increasing r_symndx
3269         value.
3271 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
3273         * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3274         ATTRIBUTE_UNUSED to unused args.
3275         (get_opd): Likewise.
3276         (get_plt): Likewise.
3277         (get_dlt): Likewise.
3278         (get_stub): Likewise.
3279         (elf64_hppa_adjust_dynamic_symbol): Likewise.
3280         (elf64_hppa_link_output_symbol_hook): Likewise.
3281         (elf64_hppa_check_relocs): Delete unused var.
3282         (elf64_hppa_size_dynamic_sections): Likewise.
3283         (elf64_hppa_finalize_opd): Likewise.
3284         (elf64_hppa_finalize_dynreloc): Likewise.
3285         (elf64_hppa_modify_segment_map): Likewise.
3286         (elf64_hppa_finish_dynamic_sections): Likewise.
3288         * elf-hppa.h (elf_hppa_final_write_processing): Add
3289         ATTRIBUTE_UNUSED to unused args.
3290         (elf_hppa_final_link_relocate): Likewise.
3291         (elf_hppa_record_segment_addrs): Add paretheses.
3292         (elf_hppa_relocate_section): Constify dyn_name.
3294         From  David Huggins-Daines  <dhd@linuxcare.com>
3295         * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3296         rearrange case statement so that it gets preferred to 32-bit ones.
3298         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3299         asection->id instead of address of asection structure.
3300         (elf32_hppa_size_stubs): Likewise.
3302         * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3303         for .init* and .fini*.
3305         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3306         and addends used in stub names to 32 bits.
3307         (elf32_hppa_size_stubs): Likewise.
3309         * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3310         twice for R_PARISC_GPREL64.  Use bfd_put_32 for R_PARISC_PCREL32,
3311         not bfd_put_64.  Fix minor comment typo and formatting.
3313         Changes to create multiple linker stubs, positioned immediately
3314         before the section where they are required.
3315         * elf32-hppa.c: Don't include hppa_stubs.h.
3316         (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3317         (elf32_hppa_stub_hash_table): Delete.
3318         (elf32_hppa_link_hash_entry): Delete.
3319         (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3320         stub_hash_table, and store the struct here rather than a pointer.
3321         Delete output_symbol_count.  Add offset array.  Change
3322         global_value to a bfd_vma.
3323         (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3324         (elf32_hppa_stub_hash_traverse): Delete.
3325         (elf32_hppa_name_of_stub): Delete.
3326         (elf32_hppa_link_hash_lookup): Delete.
3327         (elf32_hppa_link_hash_traverse): Delete.
3328         (elf32_hppa_stub_hash_table_init): Delete.
3329         (elf32_hppa_size_of_stub): Pass input section and offset rather
3330         than location and calculate location here.  Don't pass name as all
3331         stubs are now the same size.
3332         (elf32_hppa_stub_hash_newfunc): Init new fields.
3333         (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3334         too.
3335         (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3336         comparing against ints.  Rewrite stub handling code.
3337         (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3338         Case enums to int before comparing against ints.  Remove
3339         bfd_reloc_dangerous case.
3340         (elf32_hppa_build_one_stub): Rewrite.
3341         (elf32_hppa_size_one_stub): New function.
3342         (elf32_hppa_build_stubs): Rewrite.
3343         (elf32_hppa_size_stubs): Pass in linker call-back functions.
3344         Rewrite stub-handling specific code.
3346         * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3348         * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3350         * hppa_stubs.h: Delete.
3351         * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3352         (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3353         * Makefile.in: Regenerate.
3355         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3356         e_nlrsel.
3358         * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3360         * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3361         and section name for bfd_reloc_notsupported error message.
3362         (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3363         bfd_reloc_notsupported.
3364         (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3366         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3367         undefined weak symbols for all relocs.
3368         (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3369         offsets are relative to one past the delay slot.
3370         (elf32_hppa_size_stubs): Account for reloc addend when calculating
3371         branch destination.  Put addend into stub name too.
3372         (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3373         adjust by 8 when deciding whether a linker stub is needed.  Put
3374         addend into stub name as for above.
3376         * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3377         various args and vars.
3378         (elf32_hppa_bfd_final_link_relocate): Here too.
3379         (elf32_hppa_size_stubs): Rename index -> indx.  Use e_indx for
3380         inner block var to avoid shadowing.
3382         * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type):  Make `field' arg
3383         unsigned.
3384         * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3385         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3386         (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3388         * libhppa.h: Change practically all unsigned ints to plain ints.
3389         Remove tests on gcc version.  Instead use ATTRIBUTE_UNUSED for
3390         prototypes.
3392         From Ryan Bradetich  <rbradetich@uswest.net>
3393         * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3394         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3395         suit above.
3396         From  David Huggins-Daines  <dhd@linuxcare.com>
3397         * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3398         to the new OP_* ones.
3400         * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3401         error exit.  Bail out earlier on plabel relocs that we aren't
3402         interested in.  Don't tell elf32_hppa_stub_hash_lookup to copy
3403         string, and then don't free our copy.
3404         (elf32_hppa_build_one_stub): Make insn unsigned int.
3406         * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3407         available with BL, not BE and BLE.
3409         * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3410         code for elf arg relocs.
3411         (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3412         argument with elf_link_hash_entry h.  Handle undefined weak
3413         symbols.  Move $global$ lookup from here...
3414         (elf32_hppa_relocate_section): ...to here.  Return correct error
3415         message for non-handled relocs.
3416         (elf32_hppa_size_of_stub): Correctly test branch range.  Previous
3417         wrong test was -0x3ffff to +0x40000.
3419         * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3420         R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3421         Handle them as such.
3422         (elf_hppa_relocate_insn): Fix a typo.
3424         * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3425         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3426         assemble_17, assemble_21): Delete.
3427         Supply defines for all 64 possible opcodes.
3428         (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3429         formats.  Handle COMICLR.
3430         (hppa_rebuild_insn): Delete bfd argument.  Handle formats 10, -11,
3431         -10, -16, 16, 22.
3433         * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3434         (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3435         (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3436         to suit.
3437         (elf32_hppa_size_stubs): Don't free stub_name twice.  Read in all
3438         the local syms - did this code get deleted accidentally?  Ignore
3439         undefined and undefweak syms.
3441         * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3442         block.  Use it instead of elf64_hppa_hash_table (info).
3443         (elf_hppa_final_link_relocate): Use hppa_info instead of
3444         elf64_hppa_hash_table (info).
3446         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3447         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3448         (hppa_rebuild_insn): Mask immediate bits here instead.
3449         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3451 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
3453         * section.c (struct sec): Add id field.  Tidy comment formatting.
3454         (bfd_make_section_anyway): Set id.
3455         (STD_SECTION): Init id too.
3456         Change CONST to const throughout.
3457         * archures.c (bfd_arch_info): Tidy comment.
3458         (bfd_arch_list): Change a CONST to const.
3459         * libbfd-in.h: Tidy comments and replace CONST with const.
3460         * elf-bfd.h: Likewise.
3461         * libbfd.h: Regenerate.
3462         * bfd-in2.h: Regenerate.
3463         * libcoff.h: Regenerate.
3465 2000-07-07  DJ Delorie  <dj@redhat.com>
3467         * archive.c (_bfd_write_archive_contents): Add an informative
3468         comment.
3470 2000-07-06  Kazu Hirata  <kazu@hxi.com>
3472         * srec.c: Fix formatting.
3474 2000-06-05  DJ Delorie  <dj@redhat.com>
3476         * MAINTAINERS: new
3478 2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
3480         * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3481         value of PC-relative offsets.
3483 2000-07-03  Jim Wilson  <wilson@cygnus.com>
3485         * elf64-alpha.c (alpha_elf_size_info): New.
3486         (elf_backend_size_info): Define to alpha_elf_size_info.
3487         * elfcode.h (elf_size_info): Change hash bucket size to 4.
3489 2000-07-03  Ulf Carlsson  <ulfc@engr.sgi.com>
3491         * elf32-mips.c: Include elf32-target.h again for the traditional
3492         MIPS targets.
3494 2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
3496         * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3497         Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3498         (avr_info_to_howto_rela): Likewise.
3499         (elf32_avr_gc_mark_hook): Likewise.
3500         (elf32_avr_gc_sweep_hook): Likewise.
3501         (elf32_avr_relocate_section): Likewise.
3503 2000-07-03  Mark Elbrecht  <snowball3@bigfoot.com>
3505         * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3506         an external symbol for a non-shared, non-relocatable link.
3508 2000-07-03  Nick Clifton  <nickc@redhat.com>
3510         * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3511         is an external symbol.
3512         (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3513         external symbol.
3515 2000-07-03  Kazu Hirata  <kazu@hxi.com>
3517         * reloc16.c: Fix formatting.
3519 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
3521         * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3522         to add a new target for traditional mips i.e
3523         bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3524         * configure.in: Likewise.
3525         * configure: Rebuild.
3526         * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3527         bfd_target_vector.
3528         (bfd_elf32_tradlittlemips_vec): Likewise.
3529         * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3530         to see that elfNN_bed does not get redefined even if the target file
3531         is included twice for a chip. See elf32-mips.c.
3533 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
3535         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
3536         (CLEANFILES): Add DEPA.
3537         * Makefile.in: Regenerate.
3539 2000-06-30  DJ Delorie  <dj@cygnus.com>
3541         * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3542         can't assume the PE header is at 0x80.
3544 2000-06-29  Mark Elbrecht  <snowball3@bigfoot.com>
3546         * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3548 2000-06-28  Mark Elbrecht  <snowball3@bigfoot.com>
3550         * go32stub.h: Update stub.
3552 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
3554         * archures.c (bfd_mach_avr5): Define.
3555         * bfd-in2.h (bfd_mach_avr5): Define.
3556         * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3557         bfd_mach_avr5, add bfd_mach_avr4.  Update comments.
3558         (compatible): Update comment.  Add missing test.
3559         * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3560         for avr2 and avr4.  Simplify 8K wrap code.
3561         (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3562         (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3564 2000-06-26  Kazu Hirata  <kazu@hxi.com>
3566         * coff-h8300.c: Fix formatting.
3567         * cpu-h8300.c: Likewise.
3569 2000-06-24  Alexandre Oliva  <aoliva@redhat.com>
3571         * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3572         for local symbols whose names are unknown.
3574 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
3576         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3577         find one.
3578         * Makefile.in: Regenerate.
3579         * doc/Makefile.in: Regenerate.
3581 2000-06-20  H.J. Lu  <hjl@gnu.org>
3583         * Makefile.am: Rebuild dependency.
3584         * Makefile.in: Rebuild.
3586 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3588         * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3589         (elf_backend_copy_indirect_symbol): Map to the new function.
3591 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
3593         * archive.c (normalize): Correct pointer comparison when checking
3594         for backslashes.
3595         (bfd_bsd_truncate_arname): Likewise.
3596         (bfd_gnu_truncate_arname): Likewise.
3598 2000-06-20  Ulf Carlsson  <ulfc@engr.sgi.com>
3600         * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3601         sections elf_{text,data}_{section,symbol}.
3602         * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3603         (_bfd_mips_elf_hide_symbol): New function.
3604         (elf_backend_hide_symbol): Map to the new function.
3605         (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3606         definitions of mips_elf_{text,data}_{section,symbol}.
3607         (mips_elf_local_relocation_p): Try to find the direct symbol
3608         based on new check_forced argument.
3609         (mips_elf_calculate_relocation): Use new version of
3610         mips_elf_local_relocation_p.
3611         (mips_elf_relocate_section): Likewise.
3612         (_bfd_mips_elf_relocate_section): Likewise.
3613         (mips_elf_sort_hash_table): Only assert that have enough GOT
3614         space.
3615         (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3616         entry if the relocation based on the new external argument.
3617         (mips_elf_create_dynamic_relocation): Assert that we have a
3618         section contents allocated where we can swap out the dynamic
3619         relocations.
3620         (mips_elf_calculate_relocation): Find the real hash-table entry
3621         correctly by using h->root.root.type.  Only create a dynamic
3622         relocation entry if the symbol is defined in a shared library.
3623         Create an external GOT entry for the GOT16 relocation if the
3624         symbol was forced local.
3625         (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3626         dynamic index if the symbol was forced local.
3628 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3630         * elf32-mips.c: Fix typos in comments.
3632 2000-06-19  Mark Kettenis  <kettenis@gnu.org>
3634         * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3635         CORE_VERSION_1.
3637 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
3639         * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3640         * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3641         BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3642         * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3643         (bfd_elf32_m68hc11_vec): Likewise.
3644         * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3645         Supports 68hc11 & 68hc12  at the same time.
3646         * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3647         bfd_target_vector.
3648         (bfd_elf32_m68hc11_vec): Likewise.
3649         * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3650         * archures.c (bfd_m68hc12_arch): Define and register in global list
3651         (bfd_m68hc11_arch): Likewise.
3652         * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3653         BFD_RELOC_M68HC11_3B): Define.
3654         * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3655         * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3657 2000-06-18  Ulf Carlsson  <ulfc@engr.sgi.com>
3659         * elf_bfd.h (struct elf_backend_data): Add info argument to
3660         elf_backend_hide_symbol.
3661         (_bfd_elf_link_hash_hide_symbol): Likewise.
3662         * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3663         * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3664         * elflink.h (elf_link_add_object_symbols): Likewise.
3665         (elf_link_assign_sym_version): Likewise.
3667 2000-06-18  H.J. Lu  <hjl@gnu.org>
3669         * coff-i386.c (coff_i386_reloc): Don't return in case of
3670         output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3671         Compensate PE relocations when linking with non-PE object
3672         files to generate a non-PE executable.
3674 2000-06-17  Ulf Carlsson  <ulfc@engr.sgi.com>
3676         * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3677         GOT entries if we're doing a static link or -Bsymbolic link.
3679 2000-06-15  Ulf Carlsson  <ulfc@engr.sgi.com>
3681         * elflink.h (elf_link_adjust_relocs): Check for and call backend
3682         specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3683         available.
3684         (elf_link_output_relocs): Likewise.
3685         (elf_reloc_link_order): Likewise.
3687 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
3689         * archures.c (enum bfd_architecture): #define constants for
3690         PowerPc and RS6000 machine numbers.
3691         * bfd-in2.h: Regenerate.
3692         * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3693         to bfd_arch_powerpc instead of bfd_arch_rs6000.  Refer to PowerPc
3694         and RS6000 machine numbers using #defined constants from
3695         archures.c.
3696         * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3697         machine numbers using #defined constants from archures.c.  Add
3698         entries for EC603e, 630, A35, RS64II, RS64III, 7400.  Specify
3699         64-bit words in 620 entry.
3700         * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3701         RSC, and RS2.
3702         (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3704 2000-06-16  Nicholas Duffek  <nsd@cygnus.com>
3706         * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3707         * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3708         * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3710 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
3712         * bfd-in.h (bfd_family_coff): Define.
3713         * bfd-in2.h: Regenerate.
3714         * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3715         coff_find_nearest_line): Check COFFness using bfd_family_coff()
3716         instead of bfd_target_coff_flavour.
3717         * cofflink.c (_bfd_coff_final_link): Likewise.
3718         * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3719         exclude XCOFF files.
3720         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3721         Likewise.
3722         * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3723         * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3724         * xcofflink.c (XCOFF_XVECP): Delete.
3725         (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3726         bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3727         bfd_xcoff_record_link_assignment,
3728         bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3729         check for bfd_target_xcoff_flavour.
3731 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
3733         * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3734         files on AIX 4.3.
3735         (read_hdr): New function.
3736         (rs6000coff_core_p): Store mstsave or __context64 struct instead
3737         of trying to extract individual registers.  Set abfd->arch_info
3738         to match the architecture that created the core file.
3739         (rs6000coff_get_section_contents): Delete.
3740         * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3742 2000-06-14  H.J. Lu  <hjl@gnu.org>
3744         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3745         is NULL.
3747 2000-06-13  H.J. Lu  <hjl@gnu.org>
3749         * configure: Regenerate.
3751 2000-06-13  J"orn Rennecke <amylaar@cygnus.co.uk>
3753         * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3754         armpei_little_vec.
3756 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
3758         * configure.in (VERSION): Update to show this is the CVS mainline.
3760 2000-06-07  Alan Modra  <alan@linuxcare.com.au>
3762         * elf32-d10v.c: Include elf/d10v.h
3763         (enum reloc_type): Delete.
3764         * elf32-d30v.c: Include elf/d30v.h
3765         (enum reloc_type): Delete.
3767         * Makefile.am: Run "make dep-am" to regenerate dependencies.
3768         * Makefile.in: Regenerate.
3770         * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3771         (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3772         move HOWTOs into elf_howto_table.
3773         (R_386_standard, R_386_ext_offset): Define.
3774         (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3775         (elf_i386_reloc_type_lookup): Modify calculation of index into
3776         elf_howto_table since we've removed the padding.
3777         (elf_i386_info_to_howto_rel): Likewise.
3778         (elf_i386_relocate_section): Likewise.
3780 2000-06-06  Michael Snyder  <msnyder@seadog.cygnus.com>
3782         * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3784 2000-06-05  H.J. Lu  <hjl@gnu.org>
3786         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3787         an error when seeing an undefined symbol with hidden/internal
3788         attribute. It is handled in *_relocate_section ().
3790 2000-06-05  H.J. Lu  <hjl@gnu.org>
3792         * elflink.h (elf_fix_symbol_flags): Follow the link for the
3793         indirect symbol for the ELF_LINK_NON_ELF bit.
3794         (elf_link_output_extsym): Don't output the indirect symbol even
3795         if the ELF_LINK_NON_ELF bit is set.
3797 2000-06-01  J.T. Conklin  <jtc@redback.com>
3799         * config.bfd (i[3456]86-*-netbsdelf*): New target.
3800         (i[3456]86-*-netbsdaout*): New target.
3801         (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3802         (i[3456]86-*-openbsd*): Likewise.
3804 2000-05-30  Andrew Cagney  <cagney@b1.cygnus.com>
3806         * trad-core.c: From hpux-core.c, include <dirent.h> or
3807         <sys/ndir.h> when possible.
3809 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
3811         * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3812         definitions.  We must not assume they are sorted in the file
3813         according to their index numbers.
3815 2000-05-31  Alan Modra  <alan@linuxcare.com.au>
3817         * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3818         selector for R_PARISC_PCREL17R.  R_PARISC_DIR17R and
3819         R_PARISC_DIR17F are for absolute branches; Handle them as such.
3821 2000-05-30  Nick Clifton  <nickc@cygnus.com>
3823         * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3824         80960CA, 80960MC as valid machine names.
3826 2000-05-30  H.J. Lu  <hjl@gnu.org>
3828         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3829         visibility bits if the symbol is undefined. Correctly handle
3830         weak undefined symbols with hidden and internal attributes.
3832         * elflink.h (elf_link_add_object_symbols): Always turn the
3833         symbol into local if it has the hidden or internal attribute.
3835 2000-05-29  Philip Blundell  <philb@gnu.org>
3837         * ppcboot.c:  Add packed attribute if compiling with GCC.
3839 2000-05-29  Anatoly Vorobey  <mellon@pobox.com>
3841         * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3843 2000-05-26  Michael Snyder  <msnyder@seadog.cygnus.com>
3845         * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3846         elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3847         corefile on a 64-bit (Sparc Solaris) host.  Also clean up
3848         a few old comments.
3850 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
3852         * Makefile.am: Update dependencies with "make dep-am"
3853         * Makefile.in: Regenerate.
3855         * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3856         bindtextdomain): Replace defines with those from intl/libgettext.h
3857         to quieten gcc warnings.
3859 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
3861         * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3863         * archive.c (normalize, bfd_bsd_truncate_arname,
3864         bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3865         file names with backslashes.
3867         * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3868         before opening it.
3870         * sysdep.h: Include filenames.h.
3872 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
3874         * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3876 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
3878         * elf64-sparc.c (sparc64_elf_relax_section): New.
3879         (sparc64_elf_relocate_section): Optimize tail call into branch always
3880         if possible.
3881         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3882         (elf32_sparc_relax_section): New.
3884 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
3886         * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3887         Remove unusued variables.
3888         (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3889         (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3890         previous fix, so that shared libs really don't influence targets
3891         extension mask and memory model.
3893 2000-05-23  H.J. Lu  <hjl@gnu.org>
3895         * elf64-alpha.c (elf64_alpha_relocate_section): Check
3896         h->root.other not h->other.
3897         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3899         * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3901 2000-05-23  H.J. Lu  <hjl@gnu.org>
3903         * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3904         undefined symbol with the non-default visibility attributes.
3905         * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3906         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3907         * elf32-i370.c (i370_elf_relocate_section): Likewise.
3908         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3909         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3910         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3911         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3912         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3913         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3914         * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3915         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3917 2000-05-22  Richard Henderson  <rth@cygnus.com>
3919         * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3920         PCREL22, PCREL64I.  Zero size of special relocs.
3921         (elf64_ia64_reloc_type_lookup): Likewise.
3922         (USE_BRL, oor_brl, oor_ip): New.
3923         (elf64_ia64_relax_section): New.
3924         (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3925         (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3926         (elf64_ia64_relocate_section): Likewise.
3927         (bfd_elf64_bfd_relax_section): New.
3928         * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3929         (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3930         * bfd-in2.h, libbfd.h: Regenerate.
3932 2000-05-22  Nick Clifton  <nickc@cygnus.com>
3934         * configure.in : Add peigen.lo to MIPS PE targets.
3935         * configure: Regenerate.
3937 2000-05-22  Momchil Velikov  <velco@fadata.bg>
3939         * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3940         only if it is known for both input and output bfds. Separate
3941         error message strings as in some languages, it may be necessary
3942         to change more than one place in the string to change between
3943         'big' and 'little'.
3945         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3946         endianess checks, call _bfd_generic_verify_endian_match() instead.
3948         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3950         * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3952         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3953         endianess before checking bfd flavours.
3955 2000-05-22  H.J. Lu  <hjl@gnu.org>
3957         * elflink.h (elf_link_output_extsym): Clear the visibility
3958         field for symbols not defined locally.
3960 2000-05-18  Alan Modra  <alan@linuxcare.com.au>
3962         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3963         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3964         (hppa_rebuild_insn): Mask immediate bits here instead.
3965         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3967 2000-05-18  Momchil Velikov <velco@fadata.bg>
3969         * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3970         relocs for an executable, ensure that they are virtual addresses.
3972 2000-05-18  Jeffrey A Law  (law@cygnus.com)
3974         * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3976 2000-05-17  S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
3977             Rick Gorton             <gorton@scrugs.lkg.dec.com>
3979         * elflink.h: Add emitrelocations support: when enabled, relocation
3980         information and relocation sections are put into final output
3981         executables.  If the emitrelocations flag is set, do the following:
3982         (elf_bfd_final_link): Emit relocation sections.
3983         (elf_link_input_bfd): Compute relocation section contents.
3984         (elf_gc_sections): Don't clean relocation sections.
3986 2000-05-16  Catherine Moore  <clm@cygnus.com>
3988         * som.c (som_decode_symclass):  Recognize weak symbols.
3990 2000-05-16  Szabolcs Szakacsits <szaka@F-Secure.com>
3992         * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3993         read idata section only from dataoff.
3994         (pe_print_edata): Correctly check for valid eat_member.
3996 2000-05-16  J"orn Rennecke <amylaar@cygnus.co.uk>
3998         * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4000 2000-05-14  Philip Blundell  <philb@gnu.org>
4002         * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
4004 2000-05-12  Alan Modra  <alan@linuxcare.com.au>
4006         * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4008         * peigen.c (pe_print_idata): Look for .idata section and print
4009         info even if data directory has zero entries.  Read idata section
4010         starting from dataoff, and adjust all data offsets to suit.  Cast
4011         all bfd_vma vars to unsigned long before passing to fprintf.
4012         * peigen.c (pe_print_edata): Similarly, look for .edata section
4013         and print info even if data directory has zero entries.  Cast
4014         all bfd_vma vars to unsigned long before passing to fprintf.
4016         From Szabolcs Szakacsits <szaka@F-Secure.com>
4017         * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4018         directory size which may be bogus.
4019         * peigen.c (pe_print_edata): Similarly.
4021 2000-05-09  Alan Modra  <alan@linuxcare.com.au>
4023         * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4024         section is empty.
4025         (copy_private_bfd_data): Allow for space possibly taken up by elf
4026         headers when calculating segment physical address from lma.
4028 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
4030         * versados.c (versados_scan): Init stringlen and pass_2_done.
4032         * trad-core.c (trad_unix_core_file_p): Return
4033         bfd_error_wrong_format rather than bfd_error_file_truncated.
4035         * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
4036         add_data_entry.  DataDirectory virtual address is relative.
4037         (pe_print_idata): Account for relative DataDirectory virtual
4038         addresses.  Don't trash datasize inside POWERPC_LE_PE code.
4039         (pe_print_edata): Similarly.
4041         From Szabolcs Szakacsits <szaka@F-Secure.com>
4042         * peigen.c (dir_names): Add Delay Import Directory.
4043         (pe_print_idata):  Always search for bfd section containing
4044         idata address rather than looking up section name.  Print this
4045         section name rather than .idata.
4046         (pe_print_edata): Similarly.  Also print some fields as %08lx.
4047         (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
4048         Win32Version.
4050 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
4052         * xcoff.h: Rename to xcoff-target.h
4053         * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
4054         * coff-rs6000.c: Ditto.
4055         * coff64-rs6000.c: Ditto.
4056         * coff-pmac.c: Ditto.
4057         * Makefile.in: Regenerate.
4059 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
4061         * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
4062         Change U802TOC64MAGIC to U803XTOCMAGIC.
4064 2000-05-04  Michael Snyder  <msnyder@seadog.cygnus.com>
4066         * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
4067         * bfd-in.h: Prototype bfd_elf_get_arch_size.
4068         * bfd-in2.h: Prototype bfd_elf_get_arch_size.
4070 2000-05-04  Alan Modra  <alan@linuxcare.com.au>
4072         * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
4074 2000-05-03  Martin v. L�öwis  <loewis@informatik.hu-berlin.de>
4076         * elflink.h (elf_link_add_object_symbols): Reset dynindx for
4077         hidden and internal symbols.
4078         (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
4079         visibility.
4080         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
4081         assign a PLT or GOT entry to symbols with hidden and
4082         internal visibility.
4084 2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
4086         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
4087         the .bss section.
4088         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4090 2000-05-02  H.J. Lu  <hjl@gnu.org>
4092         * elf.c (prep_headers): Use ELFOSABI_NONE instead of
4093         ELFOSABI_SYSV.
4095 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
4097         * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
4098         * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo.  Regenerate
4099         dependencies.
4100         * Makefile.in: Regenerate.
4102 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4104         * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
4105         (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
4106         (BFD64_BACKENDS): Delete coff-ia64.lo.  Add efi-app-ia64.lo.
4107         (BFD64_BACKENDS_CFILES): Delete coff-ia64.c.  Add efi-app-ia64.c.
4108         * Makefile.in: Rebuild.
4110 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
4112         * config.bfd: Re-enable elf32-hppa.  It now compiles, even if it
4113         doesn't work very well.
4115         * elf-hppa.h (elf_hppa_internal_shdr): Define.
4116         (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
4117         Set hdr->s_type to 1 if ARCH_SIZE == 32.
4118         (_bfd_elf_hppa_gen_reloc_type): Add prototype.
4119         (elf_hppa_info_to_howto): Likewise.
4120         (elf_hppa_info_to_howto_rel): Likewise.
4121         (elf_hppa_reloc_type_lookup): Likewise.
4122         (elf_hppa_is_local_label_name): Likewise.
4123         (elf_hppa_fake_sections): Likewise.
4124         (elf_hppa_final_write_processing): Likewise.
4125         (elf_hppa_howto_table): Fully initialise all entries.
4126         (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
4127         (elf_hppa_info_to_howto): Likewise.
4128         (elf_hppa_info_to_howto_rel): Likewise.
4129         (elf_hppa_reloc_type_lookup): Likewise.
4130         (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
4131         elf_hppa_unmark_useless_dynamic_symbols,
4132         elf_hppa_remark_useless_dynamic_symbols,
4133         elf_hppa_record_segment_addrs, elf_hppa_final_link,
4134         elf_hppa_relocate_section, elf_hppa_final_link_relocate,
4135         elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
4136         elf32-hppa.c mess is cleaned up.
4137         (elf_hppa_final_link_relocate): Make insn and r_type unsigned
4138         int.  Delete r_field.  In case R_PARISC_PCREL21L, don't set
4139         r_field then call hppa_field_adjust inline func with variable
4140         r_field arg, instead call hppa_field_adjust with fixed arg.
4141         In case R_PARISC_PCREL22F, don't set r_field.
4142         (elf_hppa_relocate_insn): Change args and return type to unsigned
4143         int.  Call re_assemble_* funcs to do the work.
4145         * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
4146         sign extending.
4148         * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4149         extending.
4150         (sign_extend): Mask first before sign extending.
4151         (low_sign_extend): Rewrite without condition expression.
4152         (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4153         dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4154         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4155         assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4156         result as function return value rather than through pointer arg.
4157         Accept unsigned int args, and return unsigned int.
4158         (re_assemble_3): New.  Combines function of dis_assemble_3 with
4159         re-assembly of opcode and immediate.
4160         (re_assemble_12): Likewise.
4161         (re_assemble_16): Likewise.
4162         (re_assemble_17): Likewise.
4163         (re_assemble_21): Likewise.
4164         (re_assemble_22): Likewise.
4165         (hppa_field_adjust): Rewrite and document, paying attention to
4166         size of types and signed/unsigned issues.
4167         (get_opcode): Shift before masking.
4168         (FDLW): Rename to FLDW.
4169         (bfd_hppa_insn2fmt): Change arg to unsigned int.  Delete fmt.
4170         (hppa_rebuild_insn): Change args and return value to unsigned
4171         int.  Make use of re_assemble_*.  Correct case 11.
4173         * dep-in.sed: Handle ../opcodes/.
4174         * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4175         elf64-hppa.h, hppa_stubs.h, xcoff.h.
4176         (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4177         Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4178         elfarm-nabi.lo dependencies outside of auto-dependency area.
4179         Regenerate dependencies.
4180         * Makefile.in: Regenerate.
4182         * configure.in (TRAD_HEADER): Test non-null before
4183         AC_DEFINE_UNQUOTED.
4184         * configure: Regenerate.
4186         * reloc.c: Fix mis-spelling in comment.
4188 2000-05-01  Alan Modra  <alan@linuxcare.com.au>
4190         * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4191         * vms.c (vms_openr_next_archived_file): Return NULL.
4193 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
4195         * coffcode.h Copy changes mistakenly done to libcoff.h in
4196         4/24/2000 patch.
4198 2000-04-29  Andreas Jaeger  <aj@suse.de>
4200         * libbfd-in.h: Correctly check GCC version.
4201         * bfd-in.h: Likewise.
4202         * libhppa.h: Likewise.
4203         * libbfd.h: Regenerate.
4204         * bfd-in2.h: Regenerate.
4206 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
4208         * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4209         coffdu-rs6000.{lo,c}.
4210         (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4211         on xcoff.h
4212         * Makefile.in: Regenerate.
4213         * xcoff.h: New file.
4214         * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4215         * coff-rs6000.c: Move all declarations and defines that are
4216         common to the xcoff backends into xcoff.h
4217         * coff64-rs6000.c: Ditto,
4219 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
4221         * coff-mips.c (mips_ecoff_backend_data):  Add initialization of
4222         _bfd_coff_force_symnames in strings and
4223         _bfd_coff_debug_string_prefix_length to their default values.
4224         * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4226 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
4228         * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4229         _bfd_coff_force_symnames in strings and
4230         _bfd_coff_debug_string_prefix_length to their default values.
4232 2000-04-27  Alan Modra  <alan@linuxcare.com.au>
4234         * elf32-m68k.c (elf_m68k_gc_sweep_hook):  Return if dynobj NULL.
4235         Check local_got_refcounts before dereferencing.
4237         * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4238         before deciding we don't need R_PPC_PLT32 relocation.
4239         (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4240         dereferencing.
4242         * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4244         * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4245         .plt entries.
4246         (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4247         (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4248         (elf_i386_relocate_section): Allow for .plt to go missing.
4249         (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4250         can use a relative reloc for got as elf_i386_relocate_section.
4251         (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4253 2000-04-26  Clinton Popetz  <cpopetz@cygnus.com>
4255         * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4257 2000-04-24  Clinton Popetz  <cpopetz@cygnus.com>
4259         * Makefile.am (coff64-rs6000.lo): New rule.
4260         * Makefile.in: Regenerate.
4261         * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4262         xcoff_is_local_label_name, xcoff_rtype2howto,
4263         xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4264         xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4265         xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4266         (NO_COFF_SYMBOLS): Define.
4267         (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4268         xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4269         internally.
4270         (MINUS_ONE): New macro.
4271         (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4272         relocation.
4273         (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4274         coff_SWAP_aux_out): Map to the new functions.
4275         * coff64-rs6000.c: New file.
4276         * libcoff.h (bfd_coff_backend_data): Add new fields
4277         _bfd_coff_force_symnames_in_strings and
4278         _bfd_coff_debug_string_prefix_length.
4279         (bfd_coff_force_symnames_in_strings,
4280         bfd_coff_debug_string_prefix_length): New macros for above fields.
4281         * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4282         Set machine to 620 for XCOFF64.  Use bfd_coff_swap_sym_in instead
4283         of using coff_swap_sym_in directly.
4284         (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4285         (coff_set_flags) Set magic for XCOFF64.
4286         (coff_compute_section_file_positions): Add symbol name length to
4287         string section length if bfd_coff_debug_string_prefix_length is
4288         true.
4289         (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4290         (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4291         using coff_swap_lineno_in directly.
4292         (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4293         and _bfd_coff_debug_string_prefix_length fields.
4294         * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4295         symbol names into strings table when
4296         bfd_coff_force_symnames_in_strings is true.
4297         * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4298         SET_RELOC_VADDR): New macros.
4299         (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4300         (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4301         code.
4302         (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4303         changes within RS6000COFF_C specific code.
4304         (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4305         MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4306         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4307         Extend existing hack on target name.
4308         * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4309         target name.
4310         * coff-tic54x.c (ticof): Keep up to date with new fields
4311         in bfd_coff_backend_data.
4312         * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4313         targ_selvecs to include rs6000coff64_vec for rs6000.
4314         * configure.in: Add rs6000coff64_vec case.
4315         * cpu-powerpc.c: New bfd_arch_info_type.
4317 2000-04-24  Jeffrey A Law  (law@cygnus.com)
4319         * config.bfd: Only disable elf32-hppa vectors, not all of the
4320         BSD and OSF configuration support.  Provide (disabled) clauses
4321         for PA64 support.
4322         * configure.in: Add clause for PA64 support.
4323         * configure: Rebuilt.
4325         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4326         (bfd_elf64_hppa_vec): Declare.
4328         * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4329         (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4330         (elf64-hppa.lo): Add dependencies.
4331         * Makefile.in: Rebuilt.
4333         * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4335 2000-04-24  Jason Eckhardt  <jle@cygnus.com>
4337         * libhppa.h (dis_assemble_16): New function.
4338         (pa_arch): Added pa20w element.
4340 2000-04-24  Ulrich Drepper  <drepper@cygnus.com>
4342         * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4343         bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4344         bfd_elf64_slurp_reloc_table.
4346         * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4347         definitions to get external names.
4348         (elf_write_relocs): Renamed from write_relocs and make global.
4349         (elf_slurp_reloc_table): Make global.
4350         (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4352         * archive.c (hpux_uid_gid_encode): New function.
4353         (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4354         defined and the ID is greater than 99999.
4355         (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4356         special uid/gid fields into 32 bit values.
4358 2000-04-21  Matthew Green  <mrg@cygnus.com>
4360         * config.bfd: Add NetBSD/sparc64 support.
4362 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
4363                           David Mosberger  <davidm@hpl.hp.com>
4364                           Timothy Wall <twall@cygnus.com>
4365                           Jim Wilson  <wilson@cygnus.com>
4367         * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4368         (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4369         (BFD64_BACKENDS): Add elf64-ia64.lo.
4370         (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4371         (cpu-ia64.lo, elf64-ia64.lo): New rules.
4372         * Makefile.in: Rebuild.
4373         * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4374         (bfd_ia64_arch): Declare.
4375         (bfd_archures_list): Add bfd_ia64_arch.
4376         * bfd-in2.h: Rebuild.
4377         * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4378         * configure: Rebuild.
4379         * configure.host: (ia64-*-linux*): New host.
4380         * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4381         bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4382         * elf.c (prep_headers): Add bfd_arch_ia64.
4383         * libbfd.h: Rebuild.
4384         * reloc.c: Add IA-64 relocations.
4385         * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4386         Declare.
4387         (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4388         * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4390 2000-04-21  Richard Henderson  <rth@cygnus.com>
4392         * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4393         contents when performing a partial link.
4394         (bfd_elf_d30v_reloc_21): Likewise.
4396 2000-04-20  H.J. Lu  <hjl@gnu.org>
4398         * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4399         patch to symbols defined by a shared object.
4400         * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4402 2000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4404         K&R compiler fixes.
4405         * dwarf2.c (concat_filename): Avoid string literal concatenation.
4406         * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4408 Mon Apr 17 19:14:36 2000  David Mosberger  <davidm@hpl.hp.com>
4410         * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4411         (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4412         (coff-ia64.lo): Add dependency.
4413         * Makefile.in: Regenerate.
4414         * coff-ia64.c: New file.
4415         * efi-app-ia32.c: Ditto.
4416         * efi-app-ia64.c: Ditto.
4417         * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4418         (coff_set_flags): Ditto.
4419         (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4420         * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4421         * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4422         * configure: Regenerate.
4423         * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4424         (PUT_OPTHDR_IMAGE_BASE): Ditto.
4425         (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4426         (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4427         (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4428         (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4429         (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4430         (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4431         (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4432         (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4433         (GET_PDATA_ENTRY): Ditto.
4434         * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4435         data_start.  Use above macros to read fields that are 64 bit wide for
4436         COFF_WITH_PEP64.  Don't truncate entry and text_start to 32 bits.
4437         (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4438         FileAlignment and SectionAlignment to minimum alignment if they
4439         are zero.
4440         (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4441         Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4442         (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4443         Use above macros to write fields that are 64 bit wide for
4444         COFF_WITH_PEP64.
4445         (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4446         5*4 otherwise.  This should be right for IA-32 and IA-64, but may
4447         be wrong for platforms.  Use PDATA_ROW_SIZE instead of hardcoded
4448         value of 20 bytes.  Modify printing for COFF_WITH_PEP64 to print
4449         begin address, end address, and unwind info address only.  Use
4450         GET_PDATA_ENTRY() to read .pdata entries.  Use fprintf_vma() to
4451         print addresses.
4452         (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4453         HIGH3ADJ relocation names.
4454         (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4455         * targets.c: Declare bfd_efi_app_ia32_vec and
4456         bfd_efi_app_ia64_vec.
4457         (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4458         bfd_efi_app_ia64_vec.
4460 2000-04-17  Timothy Wall  <twall@cygnus.com>
4462         * bfd-in2.h: Add prototypes for tic54x load page access.
4463         * bfd-in.h: Regenerate.
4464         * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4465         in customized _set_arch_mach function.
4466         * coffcode.h (coff_set_alignment_hook): Set section load page if
4467         the appropriate macro is defined.
4468         (write_object_contents): Read section load page.
4470 2000-04-13  Alan Modra  <alan@linuxcare.com.au>
4472         * elf32-hppa.h: Update copyright date.
4474         * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4475         * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4477         * elf32-d30v.c (MAX32): Don't use LL suffix.
4478         (MIN32): Define in terms of MAX32.
4479         (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4481         * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4482         expression.
4484         * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4486 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4488         * dep-in.sed: Match space before file name, not after.
4489         * Makefile.am: Regenerate dependencies.
4490         * Makefile.in: Regenerate.
4492         * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4493         case, allow address wrap-around stupidly removed 2000-03-17.  Sign
4494         extend without an if statement.
4496 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4498         * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4499         signed quantites.
4500         * elf32-mips.c (gprel16_with_gp): Likewise.
4501         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4502         here using -0x40000, not (int)0xfffc0000.
4503         (elf32_hppa_size_of_stub): Likewise.
4505 2000-04-11  Timothy Wall  <twall@cygnus.com>
4507         * coff-tic54x.c: Now builds with all targets.
4508         * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4509         * Makefile.in: Regenerate.
4510         * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4511         unitialized variable.
4513 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
4515         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4516         --enable-build-warnings option.
4517         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4518         * Makefile.in, configure: Re-generate.
4520 2000-04-07  Nick Clifton  <nickc@cygnus.com>
4522         * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4523         BFD_RELOC_THUMB_PCREL_BLX.
4525         * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4526         R_ARM_XPC25 and R_ARM_THM_PC22.
4528         * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4529         R_ARM_XPC25 and R_ARM_THM_XPC22.
4530         (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4531         R_ARM_[XPC25|THM_XPC22].
4533         * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4534         elf/arm-oabi.h to elf/arm.h
4536         * Makefile.am: Fix dependency for elfarm-oabi.c
4537         * Makefile.in: Regenerate.
4539         * bfd-in2.h: Regenerate.
4540         * libbfd.h: Regenerate.
4542 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
4544         * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4545         and restore it on failure.  Release newly allocated tdata on
4546         failure.
4548 Fri Apr  7 11:33:47 2000  Jim Wilson  <wilson@cygnus.com>
4550         * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4551         (decode_line_info): Set it.  Report error if unit->line_offset is
4552         equal to or larger than it.
4554 2000-04-07  Timothy Wall  <twall@cygnus.com>
4556         * targets.c: Added vecs for tic54x.
4557         * reloc.c: Added relocs for tic54x.
4558         * libbfd.h: Regenerated.
4559         * configure: Add TI COFF vecs for tic54x.
4560         * configure.in: Ditto.
4561         * config.bfd (targ_cpu): Recognize new tic54x target.
4562         * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4563         * bfd-in2.h: Add tic54x target and relocations.
4564         * Makefile.am, Makefile.in: Add tic54x target.
4565         * archures.c (bfd_archures_list): Add tic54x target.
4566         * coff-tic54x.c: New.
4567         * cpu-tic54x.c: New.
4569 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
4571         * elfcore.h (elf_core_file_p): call backend_object_p which
4572         thereby gets an opportunity to update the arch/machine type.
4574 2000-04-06  Timothy Wall  <twall@cygnus.com>
4576         * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4577         class.  Handle SEC_CLINK and SEC_BLOCK flags.
4578         * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4579         * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4581 2000-04-06  Nick Clifton  <nickc@cygnus.com>
4583         * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4584         EF_INTERWORK if this is an unknown EABI.
4585         (elf32_arm_merge_private_bfd_data): Check EABI version
4586         numbers.  Only check EF_xxx flags if the EABI version number
4587         is unknown.
4588         (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4589         if the EABI version number is unknown.
4590         (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4591         if the EABI version number is unknown.
4593 Wed Apr  5 22:04:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4595         * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4596         BFD_RELOC_SH_LOOP_END.
4597         * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4598         sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4599         Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4600         (sh_elf_reloc_loop): New function.
4601         (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4602         any more.
4603         (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4604         (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4605         * bfd-in2.h, libbfd.h: Regenerate.
4607 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4609         * po/bfd.pot: Regenerate.
4611         * Makefile.am: Remove extraneous mkdep comment.
4612         (MKDEP): Use gcc -MM rather than mkdep.
4613         (DEP): Quote when passing vars to sub-make.  Add warning
4614         message to end.
4615         (DEP1): Rewrite for "gcc -MM".
4616         (CLEANFILES): Add DEP2.
4617         Update dependencies.
4618         * Makefile.in: Regenerate.
4620 2000-04-03  Kevin Buettner  <kevinb@redhat.com>
4622         * configure.in: Added corefile support for AIX 4.3.  In particular,
4623         AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4624         compiling rs6000-core.c.
4625         * configure: Regenerated.
4627 2000-04-03  H.J. Lu  <hjl@gnu.org>
4629         * cache.c (bfd_open_file): Unlink the output file only if
4630         it has non-zero size.
4632 2000-04-01  Ken Block USG  <block@zk3.dec.com>
4634         * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4635         relative relocations for non-loaded sections in shared objects.
4636         (elf64_alpha_check_relocs): Similarly.
4638 Mon Apr  3 13:37:15 2000  Hans-Peter Nilsson  <hp@axis.com>
4640         * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4641         BFD_RELOC_16 to switch for extended relocs.
4642         (MY_swap_ext_reloc_in): New.
4643         (MY_swap_ext_reloc_out): New.
4644         (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4645         than NAME(aout,swap_ext_reloc_in) for extended relocs.
4646         (NAME(aout,squirt_out_relocs)): Similarly use
4647         MY_swap_ext_reloc_out.
4648         (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4650 2000-04-03  Kazu Hirata  <kazu@hxi.com>
4652         * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4653         the R_PCRWORD_B case.
4655 2000-03-31  Thomas de Lellis  <tdel@wrs.com>
4657         * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4658         on some targets.
4659         * ihex.c : Ditto.
4661 Wed Mar 30 15:28:00 2000  Donald Lindsay  <dlindsay@cygnus.com>
4663         * elf32-m32r.c (m32r_elf_generic_reloc): new function.  All
4664         HOWTO references to bfd_elf_generic_reloc, that have
4665         partial_inplace == true, now use the new function.  The function
4666         is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4667         extends its fixes to the R_M32R_{16,24,32} relocs.
4668         The new logic in m32r_elf_lo16_reloc() has been removed, and
4669         it instead calls the new routine to obtain that functionality.
4671 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
4673         * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4674         elf32_avr_check_relocs, avr_final_link_relocate,
4675         elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4676         elf32_avr_object_p): Add prototypes.
4677         (elf32_avr_gc_mark_hook): Add default for h->root.type.
4678         (bfd_elf_avr_final_write_processing): Make static.
4680 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4682         * cpu-avr.c: New file.  BFD support routines for AVR architecture.
4683         * archures.c (bfd_architecture): Add AVR architecture.
4684         (bfd_archures_list): Add reference to AVR architecture info.
4685         * elf.c (prep_headers): Handle bfd_arch_avr.
4686         * reloc.c: Add various AVR relocation enums.
4687         * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4688         list.
4689         * Makefile.am: Add support for AVR elf.
4690         * configure.in: Likewise.
4691         * config.bfd: Likewise.
4692         * Makefile.in: Regenerate.
4693         * configure: This too.
4694         * bfd-in2.h: And this.
4695         * libbfd.h: And this.
4697 2000-03-24  H.J. Lu  <hjl@gnu.org>
4699         * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4700         (elf64_alpha_find_reloc_at_ofs): Likewise.
4702 2000-03-17  Alan Modra  <alan@linuxcare.com.au>
4704         * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4705         flag an overflow if the bitfield is outside -2**n to 2**n-1.  The
4706         allowable range used to be -2**(n-1) to 2**n-1.
4707         * reloc.c (_bfd_relocate_contents): Same here.  Also replace
4708         "boolean overflow" with "bfd_reloc_status_type flag".
4710 2000-03-14  Doug Evans  <dje@casey.transmeta.com>
4712         * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4714 2000-03-14  Kazu Hirata  <kazu@hxi.com>
4716         * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4717         of shrinks properly, including the last reloc.
4719 2000-03-13  Kazu Hirata  <kazu@hxi.com>
4721         * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4722         check for R_MOVL2.
4724 2000-03-11  Alan Modra  <alan@linuxcare.com.au>
4726         * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4727         a format mismatch rather than an "error" from bfd_read such as
4728         bfd_error_file_truncated.
4730 2000-03-10  Geoff Keating  <geoffk@cygnus.com>
4732         * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4733         sign-extension and big-endian compensation for
4734         R_MIPS_64 even in ld -r.
4736 2000-03-10  Geoffrey Keating  <geoffk@cygnus.com>
4738         * elf32-mips.c (mips_elf_next_relocation): Rename from
4739         mips_elf_next_lo16_relocation, and generalize to look
4740         for any relocation type.
4741         (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4742         (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4743         (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4744         (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4745         (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4746         (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4747         (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4748         (mips_rtype_to_howto): Likewise.
4749         (mips_elf_calculate_relocation): Handle new relocs.
4750         (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4751         are paired.  The addend for R_MIPS_GNU_REL16_S2
4752         is shifted right two bits.
4754 2000-03-10  Alan Modra  <alan@linuxcare.com.au>
4756         * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4757         comment, and ensure it doesn't happen again.
4758         (bfd_install_relocation): Same here.
4759         (_bfd_relocate_contents): Don't bother assigning unused signmask
4760         shift result.  Fix typos in comments.
4761         Remove trailing whitespace throughout file.
4763 2000-03-07  Doug Evans  <dje@casey.transmeta.com>
4765         * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4766         * bfd-in2.h: Rebuild.
4768 2000-03-06  Nick Clifton  <nickc@cygnus.com>
4770         * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4771         sym_ptr_ptr fields.
4772         (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4773         (SIZEOF_ILF_STRINGS): Redefine.
4774         (pe_ILF_make_a_symbol-reloc): New function.  Creates a symbol
4775         relative reloc, as opposed to a section relative reloc.
4776         (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4777         not C_LABEL.
4778         Add length of symbol's prefix to string pointer.
4779         Store a pointer to the symbol in the symbol pointer table.
4780         (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4781         Initialise the symbol pointer table.
4782         Store the hint in the Hint/Name table.
4783         Make the jump reloc be symbol realtive, not section relative.
4784         Create an import symbol for imported code.
4786 2000-03-06  Catherine Moore  <clm@cygnus.com>
4788         * elf.c (swap_out_syms):  Check for null type_ptr.
4790 2000-03-01  Hans-Peter Nilsson  <hp@axis.com>
4792         * aout-target.h (MY(write_object_contents)): Remove unused
4793         and unusable "#if CHOOSE_RELOC_SIZE".
4794         * pc532-mach.c (MY(write_object_contents)): Ditto.
4795         * netbsd.h (MY(write_object_contents)): Ditto.
4796         * hp300hpux.c (MY(write_object_contents)): Ditto.
4797         * freebsd.h (MY(write_object_contents)): Ditto.
4798         * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4800 2000-02-29  H.J. Lu  <hjl@gnu.org>
4802         * peicode.h (jtab): Make it static.
4804         * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4805         defined and COFF_IMAGE_WITH_PE is not defined.
4806         (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4807         COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4809 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4811         * coff-arm.c (bfd_arm_process_before_allocation): Make
4812         'symndx' signed to prevent compile time warning.
4814         * coff-mcore.c: Remove unused prototype for pe_object_p.
4816         * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4817         functions that are not used when COFF_IMAGE_WITH_PE is
4818         defined.
4819         (struct sh_opcode): Change type of 'flags' field to unsigned
4820         long so that it can hold the USESAS flag.
4822         * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4824         * elf-m10300.c (mn10300_elf_relax_section): Initialise
4825         'sym_sec'.
4827         * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4828         parameters.
4829         Remove unusued variables and code.
4830         (elf_backend_add_symbol_hook): Fix prototype.
4832         * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4833         'srelgot'.
4835         * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4836         'oldinst'.
4838         * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4839         parameters.
4840         Remove unusued variables and code.
4841         (elf_backend_add_symbol_hook): Fix prototype.
4843         * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4845         * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4846         to unused function parameter.
4848         * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4849         parameters.
4850         Use EMPTY_HOWTO to initialise empty howto slots.
4851         Remove unused variables.
4853         * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4855 2000-03-01  H.J. Lu  <hjl@gnu.org>
4857         * aoutx.h (aout_link_input_section_std): Pass "true" to
4858         the undefined_symbol callback.
4859         (aout_link_input_section_ext): Likewise.
4860         * bout.c (get_value): Likewise.
4861         * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4862         * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4863         Likewise.
4864         (alpha_relocate_section): Likewise.
4865         * coff-arm.c (coff_arm_relocate_section): Likewise.
4866         * coff-i960.c (coff_i960_relocate_section): Likewise.
4867         * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4868         * coff-mips.c (mips_relocate_section): Likewise.
4869         * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4870         * coff-sh.c (sh_relocate_section): Likewise.
4871         * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4872         * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4873         * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4874         * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4875         * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4876         * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4877         * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4878         * elf32-i370.c (i370_elf_relocate_section): Likewise.
4879         * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4880         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4881         * elf32-sh.c (sh_elf_relocate_section): Likewise.
4882         * elf32-v850.c (v850_elf_relocate_section): Likewise.
4883         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4884         * elflink.h (elf_link_output_extsym): Likewise.
4885         * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4886         * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4887         * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4889         * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4890         undefined_symbol callback when building shared library with
4891         -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4892         "true".
4893         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4894         * elf32-i386.c (elf_i386_relocate_section): Likewise.
4895         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4896         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4897         (elf32_mips_get_relocated_section_content): Likewise.
4898         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4899         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4900         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4901         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4903 2000-02-28  Nick Clifton  <nickc@cygnus.com>
4905         * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4906         * Makefile.in: Regenerate.
4908         * configure.in: Add support for mips and sh pe vectors.
4909         * configure: regenerate.
4911         * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4912         targets.
4914         * targets.c: Add mips and sh pe vectors.
4916         * libpei.h (coff_final_link_postscript): Only define if not
4917         already defined.
4919         * coffcode.h: Add support for WinCE magic numbers.
4921         * peigen.c (pe_print_reloc): Update comment and rearrange
4922         appending of newline character.
4924         * peicode.h: Add support for Image Library Format.
4925         (pe_ILF_vars): Structure containing data used by ILF code.
4926         (pe_ILF_make_a_section): New function.  Create a section based
4927         on ILF data.
4928         (pe_ILF_make_a_reloc): New function.  Create a reloc based on
4929         ILF data.
4930         (pe_ILF_make_a_symbol): New function.  Create a symbol based
4931         on ILF data.
4932         (pe_ILF_save_relocs): New function.  Store the relocs created
4933         by pe_ILF_make_a_reloc in a section.
4934         (pe_ILF_build_a_bfd): New function.  Create a BFD describing
4935         an ILF object.
4936         (pe_ILF_object_p): New function.  Return a bfd_target pointer
4937         for an ILF object.
4938         (pe_bfd_object_p): If an ILF object is detected call
4939         pe_ILF_object_p on it.
4941         * coff-arm.c: Add support for WinCE relocs which are different
4942         from normal ARM COFF relocs.
4943         * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4945         * coff-sh.c: Add support for sh-pe target.
4946         * pe-sh.c: New file.  Support code for sh-pe target.
4947         * pei-sh.c: New file.  Support code for sh-pe target.
4949         * pe-mips.c: New file.  Support code for mips-pe target.
4950         * pei-mips.c: New file.  Support code for mips-pe target.
4952 2000-02-27  Jakub Jelinek  <jakub@redhat.com>
4954         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4955         architecture if the object causing the bump is dynamic.
4956         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4957         and also don't it for memory ordering.
4958         (sparc64_elf_write_relocs): Take src_rela out of the loop.
4960 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
4962         * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4963         calling bfd_get_section_size_before_reloc.
4964         (decode_line_info): Likewise.
4965         (_bfd_dwarf2_find_nearest_line): Likewise.
4967 2000-02-27  Eli Zaretskii  <eliz@is.elta.co.il>
4969         * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4970         name of the libtool directory.
4971         * Makefile.in: Rebuild.
4973 Fri Feb 25 18:39:26 2000  Rodney Brown (RodneyBrown@pmsc.com)
4975         * som.c (SOM_HOWTO): Define.
4976         (som_hppa_howto_table): Use it.
4978 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4980         * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4982         * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4984 2000-02-24  Catherine Moore  <clm@cygnus.com>
4986         * som.c (som_misc_symbol_info):  Add field
4987         secondary_def.
4988         (som_bfd_derive_misc_symbol_info):  Initialize
4989         secondary_def.
4990         (som_build_and_write_symbol_table): Keep track
4991         of secondary_def field.
4992         (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4993         if secondary_def field is set.
4994         (som_bfd_ar_write_symbol_stuff): Initialize
4995         secondary_def.
4997 2000-02-23  Stephane Carrez  <stcarrez@worldnet.fr>
4999         * dwarf2.c (read_address): Read 16-bits addresses.
5000         (parse_comp_unit): Accept addr_size == 2.
5002 2000-02-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5004         * bfd-in.h: Update copyright date.
5006 2000-02-23  Linas Vepstas <linas@linas.org>
5008         * cpu-i370.c: New file.
5009         * elf32-i370.c:  New file.
5010         * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5011         (bfd_i370_arch): New.
5012         (bfd_archures_list): Add bfd_i370_arch.
5013         * elf.c (prep_headers): Add bfd_arch_i370.
5014         * Makefile.am: Add support for IBM 370 elf.
5015         * config.bfd: Likewise.
5016         * configure.in: Likewise.
5017         * libbfd.h (bfd_reloc_code_real_names): Likewise.
5018         * reloc.c (bfd_reloc_code_type): Likewise.
5019         * targets.c: Likewise.
5021         * Makefile.in: Regenerate.
5022         * configure: Regenerate.
5023         * bfd-in2.h: Regenerate.
5025 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
5027         * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5028         invalid relocation types, and change them to R_386_NONE.
5030 2000-02-22  H.J. Lu  <hjl@gnu.org>
5032         * elflink.h (elf_link_add_object_symbols): If a version symbol is
5033         not defined, don't add a second ELF_VER_CHR.
5035         * elflink.h (elf_bfd_final_link): Call output_extsym for global
5036         symbols converted to local symbols even when stripping all
5037         symbols.
5038         (elf_link_output_extsym): Process global symbols converted to
5039         local symbols even if they are being stripped.
5041 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
5043         * archures.c (bfd_octets_per_byte): Return unsigned int.
5044         (bfd_arch_mach_octets_per_byte): Ditto.
5045         * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
5046         comparison warning.
5047         * section.c (bfd_get_section_size_before_reloc): Quell signed
5048         vs. unsigned comparison warning.
5049         (bfd_get_section_size_after_reloc): Same here.  Fix parentheses too.
5050         * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
5051         change.  What was I thinking?
5052         * bfd-in2.h: Regenerate.
5054         * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
5055         (elf_gc_sections): Same here.
5056         (elf_gc_common_finalize_got_offsets): And here.
5058 2000-02-21  Ian Lance Taylor  <ian@zembu.com>
5060         ELF HPPA doesn't work at present; remove it until it does.
5061         * config.bfd: Comment out setting targ_defvec to
5062         bfd_elf32_hppa_vec.
5063         * Makefile.am: Rebuild dependencies.
5064         (BFD32_BACKENDS): Remove elf32-hppa.lo.
5065         (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
5066         (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
5067         * Makefile.in: Rebuild.
5068         * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
5070 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
5072         * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
5073         is no bfd_free().  Revert bfd_free part of previous change.
5075 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
5077         * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
5078         arrays.
5079         (coff_compute_section_file_positions): Use bfd_free to pair
5080         bfd_malloc.
5081         (coff_write_object_contents): Likewise.
5083         * coff-rs6000.c (xcoff_howto_table_16): New variable.
5084         (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
5086 2000-02-18  Ulrich Drepper  <drepper@cygnus.com>
5088         * coff-rs6000.c (XCOFFARMAGBIG): New macro.
5089         (xcoff_ar_file_hdr_big): New structure.
5090         (SIZEOF_AR_FILE_HDR_BIG): New macro.
5091         (xcoff_ar_hdr_big): New structure.
5092         (SIZEOF_AR_HDR_BIG): New macro.
5093         (xcoff_big_format_p): New macro.
5094         (xcoff_ardata_big): New macro.
5095         (arch_xhdr_big): New macro.
5096         (xcoff_slurp_armap): Handle large archives.
5097         (xcoff_archive_p): Detect large archives.
5098         (xcoff_read_ar_hdr): Handle large archives.
5099         (xcoff_openr_next_archived_file): Handle large archives.
5100         (xcoff_generic_stat_arch_elt): Handle large archives.
5101         (xcoff_write_armap_old): Rename from xcoff_write_armap.
5102         (xcoff_write_armap_big): New function.
5103         (xcoff_write_armap): New function, dispatch to _old or _big.
5104         (xcoff_write_archive_contents_old): Rename from
5105         xcoff_write_archive_contents.
5106         (xcoff_write_archive_contents_big): New function.
5107         (xcoff_write_archive_contents): New function, dispatch to _old or
5108         _big.
5110 2000-02-18  Richard Henderson  <rth@cygnus.com>
5112         * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
5113         and hide_symbol members.
5114         (elf_link_hash_copy_indirect): Remove.
5115         (elf_link_hash_hide_symbol): Remove.
5116         (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
5117         and elf_backend_hide_symbol.
5118         (_bfd_elf_link_hash_copy_indirect): Declare.
5119         (_bfd_elf_link_hash_hide_symbol): Declare.
5120         * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
5121         (_bfd_elf_link_hash_hide_symbol): Likewise.
5122         (_bfd_elf_link_hash_table_init): Don't init killed members.
5123         * elflink.h (elf_link_add_object_symbols): Use the bed function
5124         pointers not elf_link_hash_{copy_indirect,hide_symbol}.
5125         (elf_link_assign_sym_version): Likewise.
5126         * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
5127         (elf_backend_hide_symbol): Likewise.
5128         (elfNN_bed): Update for new members.
5130 2000-02-17  Kevin Buettner  <kevinb@redhat.com>
5132         * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
5133         STACK_END_ADDR): Define for new core file format.
5134         (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
5135         for handling the vagaries of the various core file structures used
5136         by AIX over the years.
5137         (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
5138         Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
5139         core_dumpx structure.
5141 Thu Feb 17 00:04:48 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5143         * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
5144         (bfd_mach_sh3_dsp): Likewise.
5145         (bfd_mach_sh4): Reinstate.
5146         (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
5147         * bfd-in2.h: Regenerate.
5148         * coff-sh.c (struct sh_opcode): flags is no longer short.
5149         (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5150         (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5151         (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5152         (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5153         (sh_opcodes): No longer const.
5154         (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5155         (sh_insn_uses_reg): Check for USESAS and USESR8.
5156         (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5157         (_bfd_sh_align_load_span): Return early for SH4.
5158         Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5159         Take into account that field b of a parallel processing insn
5160         could be mistaken for a separate insn.
5161         * cpu-sh.c (arch_info_struct): New array elements for
5162         sh2, sh-dsp and sh3-dsp.
5163         Reinstate element for sh4.
5164         (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5165         (SH4_NEXT): Reinstate.
5166         (SH3_NEXT, SH3E_NEXT): Adjust.
5167         * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5168         * elf32-sh.c (sh_elf_set_private_flags): New function.
5169         (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5170         (sh_elf_merge_private_data): New function.
5171         (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5172         (bfd_elf32_bfd_copy_private_bfd_data): Define.
5173         (bfd_elf32_bfd_merge_private_bfd_data): Change to
5174         sh_elf_merge_private_data.
5176 2000-02-13  Richard Henderson  <rth@cygnus.com>
5178         * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5179         hide_symbol members.
5180         (elf_link_hash_copy_indirect): New.
5181         (elf_link_hash_hide_symbol): New.
5182         * elflink.h (elf_link_add_object_symbols): Break out copy from
5183         indirect new new symbol to elf.c.
5184         (elf_link_assign_sym_version): Break out privatization of
5185         non-exported symbol to elf.c.
5186         * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5187         (_bfd_elf_link_hash_hide_symbol): New.
5188         (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5190 2000-02-13  Ian Lance Taylor  <ian@zembu.com>
5192         * section.c (_bfd_strip_section_from_output): Add info parameter.
5193         If it passed as non-NULL, use it to check whether any input BFD
5194         has an input section which uses this output section.  Change all
5195         callers.
5196         * bfd-in2.h: Rebuild.
5198         * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5199         bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5200         1999-11-29.
5201         * bfd-in2.h: Rebuild.
5203 2000-02-10  Timothy Wall  <twall@cygnus.com>
5205         * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5206         allow final modifications of swapped-in symbol.
5207         (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5208         * coffcode.h (coff_write_relocs): Use macro
5209         SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5210         symbol index should be set to -1.
5212 Thu Feb 10 20:07:50 GMT 2000  Toshiyasu Morita (toshi.morita@sega.com)
5214         * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5215         USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5216         * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5217         * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5218         sh_insns_uses_or_sets_freg): New functions.
5219         * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5220         * (sh_insns_conflict): Use new functions and new macros to
5221         detect conflicts when two instructions both set same integer registers,
5222         both set same fp register, and both set special register.
5224 2000-02-09  Timothy Wall  <twall@cygnus.com>
5226         * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5227         swapping in sections, so that the swapping routines have access to
5228         the arch/mach info.
5230 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5232         * coff-go32.c: Update comment. Update copyright.
5234 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
5236         * syms.c (bfd_decode_symclass)
5237         Two new class characters were added - 'V' and 'v'.  The
5238         meaning of 'W' is now restricted to just weak non-object
5239         symbols.  This allows differentiation between, for example,
5240         weak functions vs weak objects.  nm for example now dumps:
5241         'W' = weak global
5242         'w' = weak unresolved
5243         'V' = weak global object
5244         'v' = weak unresolved object
5246         (bfd_is_undefined_symclass): New function.  Return true if the
5247         given symbol class represents and undefined/unresolved symbol.
5249         (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5250         unresolved symbols.
5252         * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5254         * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5255         STT_ARM_16BIT flag set, but it is not attached to a data object
5256         return STT_ARM_16BIT so that it will be treated as code by the
5257         disassembler.
5259 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
5261         * coff-i386.c (i3coff_object_p): Remove prototype.
5262         Update copyright.
5264         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5265         to name.  Update copyright.
5267         * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5268         assignment to avoid warning.  Update copyright.
5270 2000-01-24  Robert Lipe  (robertl@sco.com)
5272         * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5273         instead of using GNU C extension.
5275 2000-01-21  Nick Clifton  <nickc@cygnus.com>
5277         * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5278         amount from a bfd_in_memory structure.
5279         (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5280         structure.
5282 2000-01-14  Nick Clifton  <nickc@cygnus.com>
5284         * linker.c (default_indirect_link_order): oops - fix incorrectly
5285         applied patch from Tim Wall.
5287 2000-01-13  Timothy Wall (twall@tiac.net>
5289         * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5290         = scnhsz, filhsz, relsz, aoutsz, etc)
5292         * coffswap.h: Ditto.
5294 2000-01-13  Nick Clifton  <nickc@cygnus.com>
5296         * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5297         interwork thumb to arm stub.
5299 2000-01-13  Timothy Wall (twall@tiac.net>
5301         * archures.c (bfd_octets_per_byte): New function: Return
5302         target byte size.
5303         (bfd_arch_mach_octets_per_byte): New function: Return target
5304         byte size.
5306         * section.c: Distinguish between octets and bytes for usage of
5307         _cooked_size,  _raw_size, and output_offset.  Clarify
5308         description of bfd_set_section_contents.
5310         * bfd-in2.h: Regenerate.
5312         * coffgen.c: Indicate that the offset parameter is in bytes, not
5313         octets.
5315         * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5316         where appropriate to get the octet offset when calling
5317         bfd_set_section_contents.
5318         (bfd_coff_reloc_link_order): Ditto.
5320         * linker.c (bfd_generic_reloc_link_order): Ditto.
5321         (_bfd_default_link_order): Ditto.
5323         * reloc.c (bfd_perform_relocation):  Distinguish between octets
5324         and bytes.  Use octets when indexing into octet data; use bytes
5325         when calculating target addresses.
5326         (bfd_install_relocation): Ditto.
5328         * srec.c (srec_write_section): Ditto.
5330 2000-01-13  Nick Clifton  <nickc@cygnus.com>
5332         * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5333         3 to 2.  This allows 4 byte sized sections, which is necessary for
5334         dlltool to build functioning DLLs.
5336 2000-01-10  Philip Blundell  <pb@futuretv.com>
5338         * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5339         (arm*-*-conix*): New target.
5341 2000-01-10  Egor Duda  <deo@logos-m.ru>
5343         * config.bfd: Include elf32_i386 vector to target list for cygwin
5344         and mingw.
5346         * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5347         * configure.in: Test for structure win32_pstatus_t in
5348         <sys/procfs.h>
5349         * configure: Regenerate.
5351         * elf.c (elfcore_grok_win32pstatus): New function: process
5352         win32_pstatus_t notes in elf core file.
5353         (elfcore_grok_note): Detect win32_pstatus notes.
5355 2000-01-03  Martin v. Loewis  <loewis@informatik.hu-berlin.de>
5357         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5358         visibility.
5359         * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5360         * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5362 For older changes see ChangeLog-9899
5364 Local Variables:
5365 mode: change-log
5366 left-margin: 8
5367 fill-column: 74
5368 version-control: never
5369 End: