1 2001-05-25 H.J. Lu <hjl@gnu.org>
3 * bfd-in2.h: Regenerated.
6 2001-05-25 Alan Modra <amodra@one.net.au>
8 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
9 undefined millicode syms in shared libs.
10 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
11 (elf32_hppa_check_relocs): Likewise.
12 (elf32_hppa_adjust_dynamic_symbol): Likewise.
13 (elf32_hppa_size_dynamic_sections): Likewise.
14 (elf32_hppa_relocate_section): Likewise.
15 (elf32_hppa_finish_dynamic_symbol): Likewise.
16 (elf32_hppa_finish_dynamic_sections): Likewise.
18 2001-05-24 Tom Rix <trix@redhat.com>
20 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
21 xcoff-target.h not used to define rs6000 or ppc bfd.
24 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
27 * coff-rs6000.c : Many changes for 64 bit support. Move common
28 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
31 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
32 linker now supported. Explictly define the rs6000coff64_vec.
34 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
36 (coff_write_object_contents) same
37 (coff_slurp_line_table) same
39 * coffgen.c : (coff_fix_symbol_name) formatting
40 (coff_mangle_symbols) xcoff 64 bit support
41 (coff_write_symbol) same
42 (coff_write_alien_symbol) same
43 (coff_write_native_symbol) same
44 (coff_write_symbols) same
45 (coff_get_symbol_info) same
46 (bfd_coff_get_syment) same
47 (coff_print_symbol) same
49 * config.bfd : add powerpc64-*-aix* target
51 * libcoff-in.h : formatting
53 * libcoff.h : move xcoff extern declarations to libxcoff.h
55 * libxcoff.h : New file
57 * xcofflink.c : Many changes for xcoff64 support. Move common
58 structures to include/coff/xcoff.h. Move specific structure to
59 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
60 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
62 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
65 (xcoff_build_ldsyms) : handle special __rtinit symbol.
67 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
69 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
72 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
74 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
75 * libbfd.h: Regenerate.
76 * bfd0in2.h: Regenerate.
78 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
79 * archures.c (bfd_mach_mips12000): Define.
80 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
81 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
83 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
84 * bfd-in2.h: Regenerate.
85 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
87 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
89 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
90 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
91 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
94 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
96 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
97 of entries in a structured section.
98 * elf.c: Use new macro.
99 * elf32-i386.c: Use new macro.
100 * elf32-mips.c: Use new macro.
101 * elf64-alpha.c: Use new macro.
102 * elf64-sparc.c: Use new macro.
103 * elfcode.h: Use new macro.
104 * elflink.h: Use new macro.
106 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
108 * bfdint.texi: Replace -oformat with --oformat.
110 2001-05-21 Andreas Jaeger <aj@suse.de>
112 * dwarf2.c (decode_line_info): Fix error message.
113 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
114 adjust error message.
116 2001-05-18 H.J. Lu <hjl@gnu.org>
118 * elflink.h (elf_link_add_object_symbols): Revert the last
121 2001-05-17 Alan Modra <amodra@one.net.au>
123 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
124 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
125 (hppa_build_one_stub): Add an assert to check plt.offset.
127 2001-05-17 H.J. Lu <hjl@gnu.org>
129 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
130 version definition to basename of the output filename.
132 2001-05-17 H.J. Lu <hjl@gnu.org>
134 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
135 basename of the bfd filename.
137 2001-05-16 Alan Modra <amodra@one.net.au>
139 * section.c (asection): Add linker_has_input field.
140 (STD_SECTION): Adjust initialization to suit.
141 * ecoff.c (bfd_debug_section): Likewise.
142 * bfd-in2.h: Regenerate.
144 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
146 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
147 negative 32-bit operands to 16 operands when the operand is
148 going to be zero-extended by the modified opcode.
150 2001-05-12 Peter Targett <peter.targett@arccores.com>
152 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
153 name for 'arc5' core versions.
154 (bfd_arc_arch): Make bfd_mach_arc_6 default.
156 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
158 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
160 2001-05-11 Jakub Jelinek <jakub@redhat.com>
162 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
164 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
165 to .gnu.linkonce.t.FOO text section.
167 2001-05-11 Jakub Jelinek <jakub@redhat.com>
169 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
170 fields, change sec into secinfo.
171 (struct sec_merge_info): Add chain, remove last fields.
172 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
173 (sec_merge_hash_lookup): If lookup could not use a string only
174 because it has bad alignment, mark the old string for deletion.
175 (sec_merge_add): Add secinfo argument. Don't compute entry's
176 position, instead record the section.
177 (sec_merge_emit): Update for the sec into secinfo change in
178 struct sec_merge_hash_entry.
179 (_bfd_merge_section): Only record the section for merging, defer
180 putting strings into the hash table.
181 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
182 _bfd_merge_sections): New functions.
183 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
185 * libbfd-in.h (_bfd_merge_sections): Add prototype.
186 (_bfd_nolink_bfd_merge_sections): Define.
187 * libbfd.h: Likewise.
188 (bfd_generic_merge_sections): Add prototype.
189 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
190 (struct bfd_target): Likewise.
191 * bfd.c (bfd_merge_sections): Define.
192 * bfd-in2.h: Rebuilt.
193 * elf.c (_bfd_elf_merge_sections): New function.
194 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
195 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
196 * reloc.c (bfd_generic_merge_sections): New function.
197 * vms.c (vms_bfd_merge_sections): New function.
198 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
199 * aout-target.h (MY_bfd_merge_sections): Define.
200 * aout-tic30.c (MY_bfd_merge_sections): Define.
201 * binary.c (binary_bfd_merge_sections): Define.
202 * bout.c (b_out_bfd_merge_sections): Define.
203 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
204 * coffcode.c (coff_bfd_merge_sections): Define.
205 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
206 * i386msdos.c (msdos_bfd_merge_sections): Define.
207 * i386os9k.c (os9k_bfd_merge_sections): Define.
208 * ieee.c (ieee_bfd_merge_sections): Define.
209 * ihex.c (ihex_bfd_merge_sections): Define.
210 * nlm-target.h (nlm_bfd_merge_sections): Define.
211 * oasys.c (oasys_bfd_merge_sections): Define.
212 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
213 * som.c (som_bfd_merge_sections): Define.
214 * srec.c (srec_bfd_merge_sections): Define.
215 * tekhex.c (tekhex_bfd_merge_sections): Define.
216 * versados.c (versados_bfd_merge_sections): Define.
217 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
219 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
221 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
222 to be unsigned long, in order to match its use.
224 2001-05-10 H.J. Lu <hjl@gnu.org>
226 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
229 2001-05-09 H.J. Lu <hjl@gnu.org>
231 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
232 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
233 Remove the unused veriable `dynver'.
235 2001-05-08 Ian Lance Taylor <ian@zembu.com>
237 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
239 (coff_i386_rtype_to_howto): Don't dump core if output section
242 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
244 * ecoff.c (bfd_debug_section): Fix initialization.
245 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
246 is always a positive integer. Cast away sign mismatch.
247 * elf32-mips.c: Fix misleading comment and typo.
248 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
250 * elflink.c: Fix typo.
251 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
252 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
254 2001-05-04 Richard Henderson <rth@redhat.com>
256 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
258 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
260 * elf32-arm.h (elf32_arm_final_link_relocate): Set
261 EF_ARM_HASENTRY if the start address is set.
263 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
265 * targets.c (_bfd_target_vector_entries): Compute value based on
266 the size of the _bfd_target_vector and not bfd_target_vector.
268 2001-05-03 H.J. Lu <hjl@gnu.org>
270 * elfcode.h: Include "libiberty.h".
272 * elflink.h (elf_link_add_object_symbols): Set
273 elf_dt_name (abfd) to basename of the bfd filename.
274 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
277 2001-05-03 Andreas Jaeger <aj@suse.de>
279 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
280 (elf_generic_info_to_howto_rel): Likewise.
281 * coff-alpha.c (reloc_nil): Likewise.
282 (alpha_ecoff_bad_format_hook): Likewise.
283 (alpha_adjust_reloc_out): Likewise.
284 (alpha_bfd_reloc_type_lookup): Likewise.
285 (alpha_convert_external_reloc): Likewise.
286 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
287 (elf64_alpha_reloc_bad): Likewise.
288 (elf64_alpha_reloc_gpdisp): Likewise.
289 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
290 (elf64_alpha_info_to_howto): Likewise.
291 (elf64_alpha_add_symbol_hook): Likewise.
292 (elf64_alpha_create_got_section): Likewise.
293 (elf64_alpha_is_local_label_name): Likewise.
294 (elf64_alpha_merge_ind_symbols): Likewise.
295 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
296 (mips_elf64_get_reloc_upper_bound): Likewise.
297 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
298 (nlm_alpha_get_public_offset): Likewise.
300 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
302 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
303 about overflow in R_OPENRISC_LO_16_IN_INSN and
304 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
306 2001-04-30 H.J. Lu <hjl@gnu.org>
308 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
309 only for ELF_LINK_FORCED_LOCAL.
310 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
311 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
312 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
314 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
315 if the symbol has hidden or internal visibility.
317 2001-04-30 Alan Modra <amodra@one.net.au>
319 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
320 calls to undefined weak symbols.
322 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
324 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
325 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
327 2001-04-27 Andreas Jaeger <aj@suse.de>
329 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
331 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
332 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
333 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
336 2001-04-27 Sean McNeil <sean@mcneil.com>
338 * config.bfd: Add arm-vxworks target.
339 * coff-arm (coff_arm_relocate_section): Add in symbol value to
340 addend (fro VXworks targets).
342 2001-04-26 H.J. Lu <hjl@gnu.org>
344 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
347 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
349 * bfd-in.h (bfd_cache_close): Declare newly exported function.
350 * bfd-in2.h: Regenerated.
352 2001-04-24 Jakub Jelinek <jakub@redhat.com>
354 * merge.c (struct sec_merge_hash_entry): Add alignment field.
355 (struct sec_merge_hash): Remove alignment_power.
356 (sec_merge_hash_newfunc): Clear alignment.
357 (sec_merge_hash_lookup): Pass alignment as argument.
358 Use hashp->root.next, not hashp->next to walk the hash chain.
359 If a string already in the hashtable does not have required
360 alignment, create a new hashtable entry.
361 (sec_merge_init): Remove alignment_power argument.
362 (sec_merge_add): Add alignment argument.
363 (sec_merge_emit): Alignment is now a per-entity thing, not per
365 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
366 for proper alignment.
367 Pass alignment information to sec_merge_add.
369 2001-04-24 Christian Groessler <cpg@aladdin.de>
371 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
372 and R_REL16 reloc types; accept odd values for R_REL16 type
374 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
376 * cpu-openrisc.c: New file.
377 * elf32-openrisc.c: Likewise.
379 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
380 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
381 (BFD32_BACKENDS): Add elf32-openrisc.lo.
382 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
383 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
384 * Makefile.in: Regenerated.
385 * config.bfd: (openrisc-*-elf): New target.
386 * configure.in (bfd_elf32_openrisc_vec): New vector.
387 * configure: Regenerated.
388 * libbfd.h: Regenerated.
389 * bfd-in2.h: Regenerated.
390 * reloc.c: Add OpenRISC relocations.
391 * targets.c (bfd_elf32_openrisc_vec): Declare.
392 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
393 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
394 (bfd_openrisc_arch): Declare.
395 (bfd_archures_list): Add bfd_openrisc_arch.
396 * elf.c (prep_headers): Add bfd_arch_openrisc.
398 2001-04-23 Bo Thorsen <bo@suse.de>
400 * elf64-x86-64.c: Add c++ vtable hack.
401 Small whitespace and comment changes.
403 2001-04-19 Andreas Jaeger <aj@suse.de>
405 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
406 (elf64_x86_64_plt_entry): Likewise.
407 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
408 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
410 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
412 * elf32-cris.c: Tweak comments related to dynamic linking.
413 (cris_elf_relocate_section): When not creating shared object, fill
414 in the .got table for any symbol not in the dynamic symbol table.
415 (elf_cris_finish_dynamic_symbol): When not creating shared object,
416 only emit a .got.rela reloc if the symbol is in the dynamic symbol
418 (cris_elf_check_relocs): Use variable r_type in all places rather
419 than the original expression. Add default case in switch for
421 (elf_cris_size_dynamic_sections): Iterate over
422 elf_cris_discard_excess_program_dynamics when not creating shared
424 (elf_cris_discard_excess_dso_dynamics): Renamed from
425 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
426 (elf_cris_discard_excess_program_dynamics): New.
428 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
430 * coffcode.h (coff_write_object_contents): Use
431 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
433 2001-04-14 H.J. Lu <hjl@gnu.org>
435 * bfd-in2.h: Regenerate.
437 2001-04-14 Jakub Jelinek <jakub@redhat.com>
439 * section.c (STD_SECTION): Add entsize.
441 2001-04-13 H.J. Lu <hjl@gnu.org>
443 * section.c (SEC_MERGE): Define new flag for merging.
444 (SEC_STRINGS): Likewise.
445 (entsize): New field.
447 2001-04-13 Roger Sayle <roger@metaphorics.com>
449 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
450 flag on pe-i386 targets.
452 2001-04-13 Jakub Jelinek <jakub@redhat.com>
454 * libbfd-in.h (_bfd_merge_section): New.
455 (_bfd_write_merged_section): New.
456 (_bfd_merged_section_offset): New.
458 * linker.c (_bfd_generic_link_output_symbols): Handle
460 * aoutx.h (aout_link_write_symbols): Likewise.
461 * pdp11.c (aout_link_write_symbols): Likewise.
462 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
463 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
465 (elf_link_sec_merge_syms): New.
466 (elf_link_input_bfd): Call _bfd_merged_section_offset
467 and _bfd_write_merged_section.
468 Handle discard_sec_merge.
469 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
471 (struct bfd_elf_section_data): Likewise.
472 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
473 SEC_STRINGS section flags and entsize from their ELF counterparts.
474 (_bfd_elf_link_hash_table_init): Initialize merge_info.
475 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
476 from their BFD counterparts.
478 * Makefile.am: Add strtab.lo.
479 * Makefile.in: Rebuilt.
481 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
483 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
484 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
486 2001-04-05 Steven J. Hill <sjhill@cotw.com>
488 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
489 endian MIPS ELF target.
490 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
493 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
494 64bit big endian MIPS ELF target.
495 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
496 endian MIPS ELF target.
497 * configure: Regenerated.
499 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
500 little endian targets.
501 (mips_elf_sym_is_global): Handle traditional targets.
503 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
504 64bit big endian MIPS ELF target.
505 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
506 endian MIPS ELF target.
508 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
509 and bfd_elf64_tradlittlemips_vec.
511 2001-04-05 David Mosberger <davidm@hpl.hp.com>
513 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
514 ordinary "progbits" section.
516 2001-04-04 Alan Modra <alan@linuxcare.com.au>
518 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
519 when -Bsymbolic causes a symbol to no longer need a .plt entry.
521 2001-04-03 David Mosberger <davidm@hpl.hp.com>
523 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
525 2001-03-30 H.J. Lu <hjl@gnu.org>
527 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
528 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
530 2001-03-26 H.J. Lu <hjl@gnu.org>
532 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
533 if there are any relocations for generic ELF.
534 (bfd_elf32_bfd_link_add_symbols): Defined to
535 elf32_generic_link_add_symbols.
536 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
537 if there are any relocations for generic ELF.
538 (bfd_elf64_bfd_link_add_symbols): Defined to
539 elf64_generic_link_add_symbols.
541 2001-03-23 Nick Clifton <nickc@redhat.com>
543 * Makefile.am (BUILD_CFILES): New variable: List of C source
544 files created in build directory.
545 (BUILD_HFILES): New variable: List of header files created in
548 (po/POTFILES.in): Replace rule with empty entry.
549 (po/SRC-POTFILES.in): New rule: Create a list of source files
550 in the source directory.
551 (po/BLD-POTFILES.in): New rule: Create a list of source files
552 in the build directory.
553 (MOSTLYCLEAN): Do not delete source files created in build
555 * Makefile.in: Regenerate.
556 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
558 * configure: Regenerate.
560 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
562 Add .. to the search path when building bfd.pot.
563 Delete POTFILES when performing distclean.
564 Add comment describing why distclean is broken in maintainer mode.
565 * po/POTFILES.in: Delete.
566 * po/SRC-POTFILES.in: New file.
567 * po/BLD-POTFILES.in: New file.
568 * po/bfd.pot: Regenerate.
570 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
572 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
573 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
574 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
575 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
576 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
577 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
579 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
580 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
581 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
582 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
583 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
584 New HOWTO members for new relocs.
585 (cris_reloc_map): Map new relocs.
586 (ELF_DYNAMIC_INTERPRETER): Define.
587 (PLT_ENTRY_SIZE): Define.
588 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
589 elf_cris_pic_plt_entry): New, PLT templates.
590 (struct elf_cris_pcrel_relocs_copied, struct
591 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
592 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
593 (cris_final_link_relocate): Check that 16-bit GOT relocs have
594 positive values. Adjust PCREL relocs to be relative to location
596 (cris_elf_relocate_section): Handle relocations to dynamic
597 objects. Handle new relocations. Call error handler when seeing
598 non-PIC relocation for read-only sections while generating shared
600 (cris_elf_check_relocs): Set reference counts for GOT and PLT
602 (bfd_elf32_bfd_link_hash_table_create,
603 elf_backend_adjust_dynamic_symbol,
604 elf_backend_size_dynamic_sections,
605 elf_backend_finish_dynamic_symbol,
606 elf_backend_finish_dynamic_sections,
607 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
608 elf_backend_hide_symbol, elf_backend_want_got_plt,
609 elf_backend_plt_readonly, elf_backend_want_plt_sym,
610 elf_backend_got_header_size, elf_backend_plt_header_size):
613 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
614 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
615 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
616 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
617 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
618 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
619 * bfd-in2.h, libbfd.h: Regenerate.
621 2001-03-21 Diego Novillo <dnovillo@redhat.com>
623 (_bfd_mips_elf_relocate_section): Give a better error message when
624 a relocation is not recognized.
626 2001-03-21 Alan Modra <alan@linuxcare.com.au>
628 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
629 non-NULL before attempting to dereference.
631 2001-03-20 H.J. Lu <hjl@gnu.org>
633 * configure.in: Remove the redundent AC_ARG_PROGRAM.
634 * configure: Rebuild.
636 2001-03-20 Andreas Schwab <schwab@suse.de>
638 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
639 relocation value when resolving a reference from a debugging
642 2001-03-16 Scott Thomason <SThomaso@hii.com>
644 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
645 (xcoff64_swap_sym_out): Fix syntax errors.
647 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
649 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
651 2001-03-15 Alan Modra <alan@linuxcare.com.au>
653 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
654 (hppa_link_hash_newfunc): Init it.
655 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
656 section appears to be non-PIC.
657 (final_link_relocate): Likewise.
658 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
659 possible candidate function, and set pic_call for those that will
660 only have a .plt entry for the PIC call stub.
661 (hppa_handle_PIC_calls): Set maybe_pic_call.
663 2001-03-12 DJ Delorie <dj@redhat.com>
665 * elf32-sh.c (sh_elf_relocate_section): Only relocation
666 R_SH_DIR8WP* relocs if they're against external symbols, else
667 they're just for relaxing. Validate the reloc values.
669 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
671 * binary.c (bfd_external_binary_architecture): Declare.
672 (binary_object_p): If bfd_external_binary_architecture is defined,
673 set the architecture to this string.
675 2001-03-11 Philip Blundell <philb@gnu.org>
677 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
678 entries that could serve as a definition for a weak symbol.
680 2001-03-08 Nick Clifton <nickc@redhat.com>
682 * Most files: Update copyright notices using Perl script created
683 by Kevin Buettner <kevinb@redhat.com>.
685 2001-03-07 Nick Clifton <nickc@redhat.com>
687 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
688 prior patch on ! defined OLD_ARM_ABI.
690 2001-03-07 Andreas Jaeger <aj@suse.de>
692 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
693 some relocation values.
695 2001-03-06 Nick Clifton <nickc@redhat.com>
697 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
698 of offset in BLX(1) instruction.
699 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
700 offset in BLX(1) instruction.
703 2001-03-06 Nick Clifton <nickc@redhat.com>
705 * coff-arm.c (coff_arm_reloc_type_lookup): Add
706 BFD_RELOC_THUMB_PCREL_BLX.
708 2001-03-06 Igor Shevlyakov <igor@windriver.com>
710 * archures.c (bfd_default_scan): Add Coldfire CPUs.
711 * bfd-in2.h: Regenerate.
712 * cpu-m68k.c: Add Coldfire CPUs for arch table.
713 * ieee.c (ieee_write_processor): Set proper id for
716 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
718 * configure.in: Add s390 target.
719 * configure: Regenerate.
721 2001-02-28 Andreas Jaeger <aj@suse.de>
723 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
726 2001-02-28 Philip Blundell <pb@futuretv.com>
728 * elf32-arm.h: Update mentions of renamed EF_xx constants.
729 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
731 2001-02-27 H.J. Lu <hjl@gnu.org>
733 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
734 abfd->tdata.aout_data == NULL.
736 2001-02-27 Alan Modra <alan@linuxcare.com.au>
738 * elf32-hppa.c: Correct field selector in stub comments.
739 (clobber_millicode_symbols): Formatting fix.
741 * configure.in: Bump version to 2.11.90.
742 * configure: Regenerate.
743 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
744 (CFILES): $SOURCE_CFILES + generated C files.
745 (POTFILES): Include $HFILES not $SOURCE_HFILES.
747 * Makefile.in: Regenerate.
748 * doc/Makefile.in: This too.
750 2001-02-26 Timothy Wall <twall@cygnus.com>
752 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
755 2001-02-26 Nick Clifton <nickc@redhat.com>
757 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
758 up, replacing multiple if statements with a switch.
759 (handle_COMDAT): New function.
761 2001-02-26 H.J. Lu <hjl@gnu.org>
763 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
764 a warning for section flags we do not handle instead of
767 2001-02-26 Andreas Jaeger <aj@suse.de>
769 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
771 2001-02-22 Timothy Wall <twall@cygnus.com>
773 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
774 * configure.in: Add objects for elf64_ia64_aix vectors.
775 * configure: Regenerated.
776 * configure.host: Recognize ia64-*-aix*.
777 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
778 for AIX. AIX5 requires most relocations to be dynamic (*all*
779 binaries are somewhat similar to shared libraries).
780 * targets.c: Add elf64_ia64_aix vectors.
782 2001-02-21 David Mosberger <davidm@hpl.hp.com>
784 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
785 C8 said "1" instead of "8". Clarify error string for IMM22:
786 "signed integer" instead of just "integer".
788 2001-02-20 Andreas Jaeger <aj@suse.de>
790 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
791 PLT entries that could serve as a definition for a weak symbol.
793 2001-02-19 Jakub Jelinek <jakub@redhat.com>
795 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
796 entries that could serve as a definition for a weak symbol.
797 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
799 2001-02-18 David O'Brien <obrien@FreeBSD>
801 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
802 FreeBSD/i386-CURRENT differently until I can figure out the needed
804 * configure: Regenerate.
805 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
806 FreeBSD/PowerPC, and FreeBSD/sparc64.
808 2001-02-18 lars brinkhoff <lars@nocrew.org>
810 * Makefile.am: Add PDP-11 a.out target.
811 * config.bfd: Likewise.
812 * configure.in: Likewise.
813 * targets.c: Likewise.
814 * archures.c: Likewise.
815 * bfd-in2.h: Likewise. Add PDP-11 relocations.
816 * libbfd.h: Add PDP-11 relocations.
818 * cpu-pdp11.c: New file.
821 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
822 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
823 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
824 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
825 (GET_MAGIC): New macro.
826 (PUT_MAGIC): Likewise.
827 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
829 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
831 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
834 2001-02-18 H.J. Lu <hjl@gnu.org>
836 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
839 2001-02-18 Kazu Hirata <kazu@hxi.com>
841 * vms-misc.c: Fix formatting.
843 2001-02-16 Kazu Hirata <kazu@hxi.com>
845 * vms.c: Fix formatting.
847 2001-02-14 H.J. Lu <hjl@gnu.org>
849 * elf.c (elf_find_function): New function.
850 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
851 the file name and function name.
853 2001-02-14 Nick Clifton <nickc@redhat.com>
855 * ecoff.c (bfd_debug_section): Update to initialise new fields in
858 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
859 (BFD64_BACKENDS): Add pepigen.c
860 Add rules to create peigen.c and pepigen.c from peXXigen.c.
862 * Makefile.in: Regenerate.
863 * configure: Regenerate.
864 * po/POTFILES.in: Regenerate.
865 * po/bfd.pot: Regenerate.
867 2001-02-14 H.J. Lu <hjl@gnu.org>
869 * libcoff-in.h (pe_tdata): Add members target_subsystem and
870 force_minimum_alignment.
872 2001-02-14 Bo Thorsen <bo@suse.de>
874 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
875 (elf64_86_64_size_info): Struct added to fix a problem
876 with the hashtable string entries.
877 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
878 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
879 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
880 remove the FIXME for this.
881 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
882 section. Also removed the FIXME for it.
883 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
884 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
885 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
887 2001-02-13 Richard Henderson <rth@redhat.com>
889 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
890 and not user provided.
892 2001-02-13 Kazu Hirata <kazu@hxi.com>
894 * vms.c (vms_print_symbol): Remove unreachable code.
896 * rs6000-core.c: Fix formatting.
898 2001-02-13 David Mosberger <davidm@hpl.hp.com>
900 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
901 as _bfd_XXi_only_swap_filehdr_out.
902 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
903 pe->force_minimum_alignment to TRUE.
904 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
905 PEI_TARGET_SUBSYSTEM.
906 (pe_print_private_bfd_data): Call
907 _bfd_XX_print_private_bfd_data_common() instead of
908 _bfd_pe_print_private_bfd_data_common().
909 (pe_bfd_copy_private_bfd_data): Call
910 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
911 _bfd_pe_bfd_copy_private_bfd_data_common().
912 (coff_bfd_copy_private_section_data): Define as
913 _bfd_XX_bfd_copy_private_section_data instead of
914 _bfd_pe_bfd_copy_private_section_data.
915 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
916 of a _bfd_pe_get_symbol_info.
920 * peXXigen.c: Renamed from peigen.c.
921 (COFF_WITH_XX): Define this macro (will get expanded into
922 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
923 compiled as peigen.c or pepigen.c.
924 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
925 define the canonical PEP structures and definitions.
926 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
927 effect, enforce minimum file and section alignments. If
928 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
929 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
930 so, by default, this is a no-op).
932 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
933 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
934 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
935 _bfd_pefoo if it's not defined. Use these macros to define
938 * libcoff.h (pe_tdata): Add members target_subsystem and
939 force_minimum_alignment.
941 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
943 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
945 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
948 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
949 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
952 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
953 (BFD64_BACKENDS_CFILES): Mention pepigen.c
954 (peigen.c): Add rule to generate from peXXigen.c.
956 (pepigen.lo): List dependencies for pepigen.lo.
958 2001-02-13 Alan Modra <alan@linuxcare.com.au>
960 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
961 $global$ referenced but not defined, set its value here.
963 2001-02-09 Bo Thorsen <bo@suse.de>
965 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
967 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
969 (elf64_x86_64_relocate_section): Fix formatting.
970 (elf64_x86_64_relocate_section): Fix addend for relocation of
971 R_X86_64_(8|16|32|PC8|PC16|PC32).
973 2001-02-12 Jan Hubicka <jh@suse.cz>
975 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
977 2001-02-11 H.J. Lu <hjl@gnu.org>
979 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
982 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
984 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
985 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
986 relocations against dynsym symbols.
988 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
989 the R_MIPS_26 relocation.
990 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
991 the R_MIPS_26 relocation.
992 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
994 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
995 the R_MIPS_26 relocation.
996 (mips_elf64_howto_table_rela): Likewise.
998 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
999 member to mark symbols that have non-CALL relocations against
1001 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1002 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1004 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1005 non-CALL relocation against it is encountered.
1006 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1007 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1008 no_fn_stub is not set.
1010 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1011 information from the real symbol for indirect ones.
1012 Check no_fn_stub to find out if a symbol has a function stub
1015 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1017 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1018 * Makefile.in: Regenerate.
1020 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1022 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1023 true if section name is an unwind table section name.
1024 (elfNN_ia64_additional_program_headers): Count each unwind section
1026 (elfNN_ia64_modify_segment_map): Install one unwind program header
1027 for each unwind separate section. Note: normally the linker
1028 script merges the unwind sections that go into a single segment,
1029 so this still generates at most one unwind program header per
1032 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1033 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1034 (elfNN_ia64_fake_sections): Mark sections with names that start
1035 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1038 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1039 Use it to make sh_info in unwind section point to the text section
1042 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1044 * Makefile.am: Add linux target for S/390.
1045 * archures.c: Likewise.
1046 * bfd-in2.h: Likewise.
1047 * config.bfd: Likewise.
1048 * configure.in: Likewise.
1050 * libbfd.h: Likewise.
1051 * targets.c: Likewise.
1052 * cpu-s390.c: New file.
1053 * elf32-s390.c: New file.
1054 * elf64-s390.c: New file.
1056 2001-02-09 Nick Clifton <nickc@redhat.com>
1058 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1059 ImageBase. This has already been done by coff_swap_hdr_in.
1061 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1063 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1065 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1067 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1068 (sparc64_elf_relocate_section): Likewise.
1070 2001-02-09 Mark Kettenis <kettenis@gnu.org>
1072 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1073 similar to R_SPARC_32.
1074 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1076 2001-02-08 H.J. Lu <hjl@gnu.org>
1078 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1079 relocation entries for weak definitions when building DSO with
1082 2001-02-08 Richard Henderson <rth@redhat.com>
1084 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1085 before visibility. Locally defined protected symbols are not
1088 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
1090 * config.bfd: Enable coff64 for rs6000-*. Patch from
1091 <hzoli@austin.ibm.com>.
1093 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1095 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1096 found, do not attempt to find dwarf2 info before returning.
1098 2001-02-07 Jakub Jelinek <jakub@redhat.com>
1100 * elflink.h (is_global_symbol_definition): Rename to
1101 is_global_data_symbol_definition and have it reject function
1103 (elf_link_is_defined_archive_symbol): Use renamed function.
1105 2001-02-07 Todd Vierling <tv@wasabisystems.com>
1107 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1108 * libbfd.h (bfd_target_vector): Likewise.
1109 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1110 make static; create pointer reference named bfd_target_vector.
1111 (_bfd_target_vector_entries): Calculate this based on the array
1112 typed _bfd_target_vector.
1114 2001-02-06 H.J. Lu <hjl@gnu.org>
1116 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1117 internal symbols are not dynamic.
1118 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1120 2001-02-06 Nick Clifton <nickc@redhat.com>
1122 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1123 that it will not be pulled into the list of files that make up
1125 * Makefile.in: Regenerate.
1126 * po/bfd.pot: Regenerate.
1128 2001-02-06 H.J. Lu <hjl@gnu.org>
1130 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1132 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1133 external_PEI_IMAGE_hdr.
1135 2001-02-06 Kazu Hirata <kazu@hxi.com>
1137 * elf-m10200.c: Fix formatting.
1139 2001-02-04 Nick Clifton <nickc@redhat.com>
1141 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1142 rel, it will be handled later on.
1144 2001-02-02 Fred Fish <fnf@ninemoons.com>
1146 * Makefile.in: Fix typo.
1148 2001-02-01 Kazu Hirata <kazu@hxi.com>
1150 * elf-m10300.c: Fix formatting.
1152 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1154 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1155 (elf_backend_get_symbol_type): Define.
1156 (elf64_hppa_object_p): Set architecture and machine from elf
1159 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1161 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1164 2001-01-26 Richard Henderson <rth@redhat.com>
1166 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1167 for non-default visibility.
1168 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1169 delete ugly macro and replace with pretty function.
1171 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1173 * coff-go32.c: Update copyright.
1174 * coff-stgo32.c: Likewise.
1175 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1176 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1177 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1178 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1180 2001-01-25 Kazu Hirata <kazu@hxi.com>
1182 * bfd-in2.h: Rebuild.
1183 * libbfd.h: Likewise.
1185 2001-01-23 H.J. Lu <hjl@gnu.org>
1187 * bfd-in2.h: Rebuild.
1189 2001-01-23 H.J. Lu <hjl@gnu.org>
1191 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1192 is NULL or PRIV(vms_rec) is outside of the buffer.
1194 2001-01-23 Kazu Hirata <kazu@hxi.com>
1196 * coff64-rs6000.c: Fix formatting.
1197 * coff-arm.c: Likewise.
1198 * coffgen.c: Likewise.
1199 * cofflink.c: Likewise.
1200 * coff-mcore.c: Likewise.
1201 * coff-mips.c: Likewise.
1202 * coff-pmac.c: Likewise.
1203 * coff-ppc.c: Likewise.
1204 * coff-rs6000.c: Likewise.
1205 * elf32.c: Likewise.
1206 * elf32-fr30.c: Likewise.
1207 * elf32-i370.c: Likewise.
1208 * elf32-i860.c: Likewise.
1209 * elf32-m32r.c: Likewise.
1210 * elf32-m68k.c: Likewise.
1211 * elf32-mcore.c: Likewise.
1212 * elf32-ppc.c: Likewise.
1213 * elf32-sh.c: Likewise.
1214 * elf32-v850.c: Likewise.
1215 * elf64-alpha.c: Likewise.
1216 * elf64-sparc.c: Likewise.
1217 * elflink.c: Likewise.
1218 * elflink.h: Likewise.
1219 * elf-m10200.c: Likewise.
1220 * elf-m10300.c: Likewise.
1221 * elfxx-ia64.c: Likewise.
1223 * aoutx.h: Fix formatting.
1225 * bfd-in2.h: Likewise.
1226 * bfd-in.h: Likewise.
1227 * cpu-i386.c: Likewise.
1228 * cpu-m68hc11.c: Likewise.
1229 * dwarf2.c: Likewise.
1230 * elf64-x86-64.c: Likewise.
1231 * format.c: Likewise.
1232 * freebsd.h: Likewise.
1234 * hp300hpux.c: Likewise.
1235 * hppabsd-core.c: Likewise.
1236 * hpux-core.c: Likewise.
1238 2001-01-22 Bo Thorsen <bo@suse.de>
1240 * elf64-x86-64.c: Added PIC support for X86-64.
1241 (elf64_x86_64_link_hash_newfunc): Function added.
1242 (elf64_x86_64_link_hash_table_create): Likewise.
1243 (elf64_x86_64_check_relocs): Likewise.
1244 (elf64_x86_64_gc_mark_hook): Likewise.
1245 (elf64_x86_64_gc_sweep_hook): Likewise.
1246 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1247 (elf64_x86_64_size_dynamic_sections): Likewise.
1248 (elf64_x86_64_discard_copies): Likewise.
1249 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1250 (elf64_x86_64_finish_dynamic_sections): Likewise.
1251 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1253 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1255 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1256 * Makefile.in: Regenerate.
1258 2001-01-21 Kazu Hirata <kazu@hxi.com>
1260 * coff-a29k.c: Fix formatting.
1262 2001-01-19 H.J. Lu <hjl@gnu.org>
1264 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1265 relocation section names.
1266 (elf_i386_relocate_section): Report files with bad relocation
1267 section names and return false.
1269 2001-01-17 Bo Thorsen <bo@suse.de>
1271 * targets.c: Alphabetize list of xvecs.
1273 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1275 * config.bfd: Add linux target variant for elfxx-hppa.
1276 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1277 bfd_elf64_hppa_linux_vec.
1278 * configure: Regenerate.
1279 * elf64-hppa.c: Include elf64-target.h again to support linux
1281 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1282 * elf32-hppa.c: Include elf32-target.h again to support linux
1284 (elf32_hppa_post_process_headers): New function.
1285 (elf_backend_post_process_headers): Define.
1286 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1287 bfd_elf32_hppa_linux_vec.
1289 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1290 and data_segment_base fields.
1291 (elf32_hppa_link_hash_table_create ): Init them.
1292 (elf32_hppa_check_relocs): Update comments.
1293 (hppa_record_segment_addr): New function.
1294 (elf32_hppa_relocate_section): Call it.
1295 (final_link_relocate): Handle R_PARISC_SEGREL32.
1296 (elf32_hppa_final_link): New function.
1297 (bfd_elf32_bfd_final_link): Define to call it.
1298 (hppa_unwind_entry_compare): New function.
1299 * cache.c (bfd_open_file): Create files in write+read mode.
1301 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1302 SEGREL32 and numerous other relocs. Change duplicate
1303 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1305 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1308 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1309 .plt entries for DT_INIT and DT_FINI.
1310 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1311 DT_INIT and DT_FINI.
1313 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1314 offsets for stub .plt access if wide mode. Check offset in range.
1316 2001-01-13 Nick Clifton <nickc@redhat.com>
1318 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1321 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1324 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1326 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1327 * configure: Regenerate.
1329 2001-01-11 Peter Targett <peter.targett@arccores.com>
1331 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1332 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1333 * cpu-arc.c (arch_info_struct): Add entries for variants.
1334 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1335 (arc_get_mach) Don't assume machine names prefixed arc- before
1337 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1339 (arc_elf_final_write_processing) Likewise.
1340 (ELF_MACHINE_CODE) Use EM_ARC.
1342 2001-01-10 Nick Clifton <nickc@redhat.com>
1344 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1346 2001-01-07 Philip Blundell <philb@gnu.org>
1348 * README: Replace `bug-gnu-utils@gnu.org' with
1349 `bug-binutils@gnu.org'.
1351 2001-01-04 Kazu Hirata <kazu@hxi.com>
1353 * som.c: Fix formatting.
1355 2001-01-03 Kazu Hirata <kazu@hxi.com>
1357 * ecoffswap.h: Fix formatting.
1358 * elf-bfd.h: Likewise.
1359 * elfarm-nabi.c: Likewise.
1360 * elfarm-oabi.c: Likewise.
1361 * elfcode.h: Likewise.
1362 * elfcore.h: Likewise.
1363 * elflink.c: Likewise.
1364 * elflink.h: Likewise.
1365 * elfxx-ia64.c: Likewise.
1366 * elfxx-target.h: Likewise.
1367 * libbfd.c: Likewise
1368 * linker.c: Likewise.
1369 * lynx-core.c: Likewise.
1371 2001-01-02 Kazu Hirata <kazu@hxi.com>
1373 * pc532-mach.c: Fix formatting.
1374 * pe-arm.c: Likewise.
1375 * pe-i386.c: Likewise.
1376 * pe-mips.c: Likewise.
1377 * pe-ppc.c: Likewise.
1378 * pe-sh.c: Likewise.
1379 * pei-mips.c: Likewise.
1380 * pei-sh.c: Likewise.
1381 * peicode.h: Likewise.
1382 * ppcboot.c: Likewise.
1383 * ptrace-core.c: Likewise.
1385 2001-01-01 Kazu Hirata <kazu@hxi.com>
1387 * reloc.c: Fix formatting.
1388 * riscix.c: Likewise.
1389 * rs6000-core.c: Likewise.
1390 * xcoff-target.h: Likewise.
1392 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1394 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1395 error, by calling bfd_default_set_arch_mach with incoming
1398 2000-12-26 Kazu Hirata <kazu@hxi.com>
1400 * vaxnetbsd.c: Fix formatting.
1401 * versados.c: Likewise.
1402 * vms-gsd.c: Likewise.
1403 * vms-hdr.c: Likewise.
1404 * vms-misc.c: Likewise.
1406 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1408 * archive.c (coff_write_armap): Don't write more than symbol_count
1409 `archive_member_file_ptr's.
1411 2000-12-25 Kazu Hirata <kazu@hxi.com>
1413 * vms-tir.c: Fix formatting.
1415 2000-12-23 Kazu Hirata <kazu@hxi.com>
1417 * vms.c: Fix formatting.
1420 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1422 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1424 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1426 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1429 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1431 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1433 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1435 * libbfd.c (bfd_get_bits): Added
1436 (bfd_put_bits): Likewise
1437 * bfd-in.h: Declared the above.
1438 * bfd-in2.h: Regenerated.
1440 2000-12-20 Kazu Hirata <kazu@hxi.com>
1442 * targets.c: Fix formatting.
1443 * tekhex.c: Likewise.
1444 * trad-core.c: Likewise.
1446 2000-12-19 Kazu Hirata <kazu@hxi.com>
1448 * sco5-core.c: Fix formatting.
1449 * section.c: Likewise.
1450 * sparclinux.c: Likewise.
1451 * sparclynx.c: Likewise.
1452 * sparcnetbsd.c: Likewise.
1454 * stabs.c: Likewise.
1455 * stab-syms.c: Likewise.
1456 * sunos.c: Likewise.
1458 * sysdep.h: Likewise.
1460 2000-12-18 Nick Clifton <nickc@redhat.com>
1462 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1464 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1465 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1467 2000-12-18 Nick Clifton <nickc@redhat.com>
1469 * vms-misc.c (_bfd_vms_get_record): Add default case to
1472 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1474 * elfcore.h (elf_core_file_p): Move to the start of the program
1475 headers before attempting to read them.
1477 2000-12-14 Kazu Hirata <kazu@hxi.com>
1479 * peigen.c: Fix formatting.
1483 2000-12-13 Kazu Hirata <kazu@hxi.com>
1485 * peigen.c: Fix formatting.
1487 2000-12-12 Jim Wilson <wilson@redhat.com>
1489 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1491 2000-12-08 Mark Salter <msalter@redhat.com>
1493 * binary.c (binary_set_section_contents): Ignore sections
1496 2000-12-12 Kazu Hirata <kazu@hxi.com>
1498 * m68klinux.c: Fix formatting.
1499 * m68knetbsd.c: Likewise.
1500 * mipsbsd.c: Likewise.
1501 * netbsd-core.c: Likewise.
1502 * netbsd.h: Likewise.
1503 * newsos3.c: Likewise.
1504 * nlm32-alpha.c: Likewise.
1505 * nlm32-i386.c: Likewise.
1506 * nlm32-ppc.c: Likewise.
1507 * nlm32-sparc.c: Likewise.
1508 * nlmcode.h: Likewise.
1509 * nlmswap.h: Likewise.
1510 * nlm-target.h: Likewise.
1511 * ns32knetbsd.c: Likewise.
1513 2000-12-10 Fred Fish <fnf@be.com>
1515 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1516 symbols in shared objects if allow_shlib_undefined is true.
1518 2000-12-12 Nick Clifton <nickc@redhat.com>
1520 * cpu-sh.c: Fix formattng.
1521 * elf.c: Fix formattng.
1522 * elf32-mips.c: Fix formattng.
1523 * elf32-sh.c: Fix formattng.
1524 * elf64-alpha.c: Fix formattng.
1526 2000-12-09 Nick Clifton <nickc@redhat.com>
1528 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1529 dwarf2_find_line_info as last parameter to invocation of
1530 _bfd_dwarf2_find_nearest_line.
1531 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1532 dwarf2_find_line_info as last parameter to invocation of
1533 _bfd_dwarf2_find_nearest_line.
1535 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1537 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1538 (BFD_LIBS): ...to here.
1539 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1540 (BFD_LIBS_CFILES): ...to here.
1541 * Makefile.in: Regenerate.
1542 * configure.in: Remove dwarf.lo from the elf shell variable.
1543 * configure: Regenerate.
1544 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1545 * libcoff.h: Regenerate.
1546 * coffgen.c (coff_find_nearest_line): Call
1547 _bfd_dwarf2_find_nearest_line.
1548 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1550 (read_abbrevs): Likewise
1551 (decode_line_info): Likewise.
1552 (parse_comp_unit): Likewise.
1553 (comp_unit_find_nearest_line): Likewise.
1554 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1555 * libbfd.h: Regenerate.
1556 * elf.c (_bfd_elf_find_nearest_line): Update call.
1557 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1558 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1559 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1560 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1561 (styp_to_sec_flags): Handle DWARF2 sections.
1562 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1563 to _bfd_find_nearest_line.
1564 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1565 call to _bfd_find_nearest_line.
1567 2000-12-08 Kazu Hirata <kazu@hxi.com>
1569 * coffgen.c: Fix formatting.
1570 * elf-m10300.c: Likewise.
1571 * elf32-i386.c: Likewise.
1572 * elf32-i960.c: Likewise.
1573 * elf32-m68k.c: Likewise.
1574 * elf32-mcore.c: Likewise.
1575 * elf32-ppc.c: Likewise.
1576 * elf32-sh.c: Likewise.
1577 * elf32-sparc.c: Likewise.
1578 * elf32-v850.c: Likewise.
1579 * elf64-alpha.c: Likewise.
1580 * elf64-hppa.c: Likewise.
1581 * elf64-mips.c: Likewise.
1582 * elf64-sparc.c: Likewise.
1584 2000-12-07 Kazu Hirata <kazu@hxi.com>
1586 * elf32-ppc.c: Fix formatting.
1587 * elf64-x86-64.c: Likewise.
1589 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1591 From Ralf Baechle <ralf@gnu.org>
1593 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1594 BFDs containing no sections or empty .text, .data or .bss sections
1595 to be merged, regardless of their flags.
1597 2000-12-06 Kazu Hirata <kazu@hxi.com>
1599 * elf32-m32r.c: Fix formatting.
1600 * elf32-m68hc11.c: Likewise.
1601 * elf32-m68hc12.c: Likewise.
1602 * elf32-m68k.c: Likewise.
1603 * elf32-mcore.c: Likewise.
1604 * elf32-pj.c: Likewise.
1605 * elf32-ppc.c: Likewise.
1607 2000-12-05 Kazu Hirata <kazu@hxi.com>
1609 * elf32-fr30.c: Fix formatting.
1610 * elf32-hppa.c: Likewise.
1611 * elf32-i370.c: Likewise.
1612 * elf32-i386.c: Likewise.
1613 * elf32-i860.c: Likewise.
1614 * elf32-i960.c: Likewise.
1616 2000-12-03 Kazu Hirata <kazu@hxi.com>
1618 * elf32-arm.h: Fix formatting.
1619 * elf32-avr.c: Likewise.
1620 * elf32-cris.c: Likewise.
1621 * elf32-d10v.c: Likewise.
1622 * elf32-d30v.c: Likewise.
1623 * elf-hppa.h: Likewise.
1624 * elf-m10200.c: Likewise.
1625 * elf-m10300.c: Likewise.
1627 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1629 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1630 bfd_mach_mips32_4k. Update FIXME comment.
1631 * archures.c (bfd_mach_mips32): New constant.
1632 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1633 the latter, renumber it.
1634 * bfd-in2.h (bfd_mach_mips32): New constant.
1635 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1636 the latter, renumber it.
1637 * cpu-mips.c (I_mips32): New constant.
1638 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1639 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1640 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1641 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1642 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1643 with E_MIPS_MACH_MIPS32_4K.
1644 (_bfd_mips_elf_final_write_processing): Replace
1645 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1646 bfd_mach_mips32 case.
1647 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1648 comparison with support for MIPS32.
1649 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1652 * aoutx.h (NAME(aout,machine_type)): Add cases for
1653 bfd_mach_mips5 and bfd_mach_mips64.
1654 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1655 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1656 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1657 (arch_info_struct): Add entries for bfd_mach_mips5 and
1659 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1660 _bfd_mips_elf_print_private_bfd_data): Add cases for
1661 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1662 (_bfd_mips_elf_final_write_processing): Add cases for
1663 bfd_mach_mips5 and bfd_mach_mips64.
1665 * aoutx.h (NAME(aout,machine_type)): Add a
1666 bfd_mach_mips_sb1 case.
1667 * archures.c (bfd_mach_mips_sb1): New constant.
1668 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1669 * cpu-mips.c (I_sb1): New constant.
1670 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1671 * elf32-mips.c (elf_mips_mach): Add case for
1673 (_bfd_mips_elf_final_write_processing): Add case for
1676 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1678 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1679 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1680 (sparc*-*-rtems*): Switched from a.out to ELF.
1682 2000-11-30 Jan Hubicka <jh@suse.cz>
1684 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1685 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1686 (elf64-x86-64.lo): Add dependencies.
1687 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1688 bfd_mach_x86_64_intel_syntax.
1689 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1690 * config.bfd (x86_64): Add.
1691 * configure.in: Add support for bfd_elf64_x86_64_vec.
1692 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1693 (bfd_i386_arch, i8086_ar): Link in.
1694 * elf64-x86-64.c: New file.
1695 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1696 * targets.c (bfd_elf64_x86_64_vec): Add.
1697 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1699 2000-11-30 Kazu Hirata <kazu@hxi.com>
1701 * xcofflink.c: Fix formatting.
1703 2000-11-28 Kazu Hirata <kazu@hxi.com>
1705 * aoutx.h: Fix formatting.
1706 * bfd-in.h: Likewise.
1707 * bfd-in2.h: Likewise.
1708 * cache.c: Likewise.
1709 * cisco-core.c: Likewise.
1710 * coff64-rs6000.c: Likewise.
1711 * coffcode.h: Likewise.
1712 * coffswap.h: Likewise.
1713 * corefile.c: Likewise.
1714 * elf32-mips.c: Likewise.
1716 2000-11-27 Kazu Hirata <kazu@hxi.com>
1718 * aout-adobe.c: Fix formatting.
1719 * coff64-rs6000.c: Likewise.
1720 * coffgen.c: Likewise.
1721 * cofflink.c: Likewise.
1723 2000-11-27 Philip Blundell <pb@futuretv.com>
1725 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1726 (obj_coff_strings_written): New accessor macro for above.
1727 * libcoff.h: Regenerate.
1728 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1730 * coffcode.h (coff_write_object_contents): No need to write out
1731 the string table if it's already been done.
1733 2000-11-22 Philip Blundell <pb@futuretv.com>
1735 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1736 weak undefined symbols.
1738 2000-11-24 Nick Clifton <nickc@redhat.com>
1740 * archures.c (bfd_mach_arm_5TE): Define.
1741 (bfd_mach_arm+XScale): Define.
1742 * bfd-in2.h: Regenerate.
1744 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1745 BFD_RELOC_ARM_PCREL_BLX.
1747 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1748 XScale machine numbers.
1750 * config.bfd (xscale-elf): Add target.
1751 (xscale-coff): Add target.
1753 * cpu-arm.c: Add xscale machine name.
1754 Add v5t, v5te and XScale machine numbers.
1756 2000-11-23 Kazu Hirata <kazu@hxi.com>
1758 * aix386-core.c: Fix formatting.
1760 2000-11-22 Jim Wilson <wilson@redhat.com>
1762 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1763 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1764 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1765 (ins_imms_scaled): Initialize sign_bit at function entry.
1766 (elf64_ia64_operands): Add missing initializers.
1767 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1768 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1769 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1770 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1771 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1773 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1774 and free_extsyms at function entry.
1775 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1776 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1777 (get_got): Delete unused local srel.
1778 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1779 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1781 2000-11-21 Kazu Hirata <kazu@hxi.com>
1783 * coff-a29k.c: Fix formatting.
1784 * coff-h8500.c: Likewise.
1785 * coff-i960.c: Likewise.
1786 * coff-ppc.c: Likewise.
1787 * coff-rs6000.c: Likewise.
1788 * coff-stgo32.c: Likewise.
1789 * coff-tic54x.c: Likewise.
1790 * coff-w65.c: Likewise.
1791 * cpu-h8500.c: Likewise.
1792 * cpu-hppa.c: Likewise.
1793 * cpu-ns32k.c: Likewise.
1794 * ecoff.c: Likewise.
1795 * ecofflink.c: Likewise.
1797 2000-11-21 Nick Clifton <nickc@redhat.com>
1799 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1800 remove possibility of infinite loop.
1802 2000-11-20 Kazu Hirata <kazu@hxi.com>
1804 * aix386-core.c: Fix formatting.
1805 * aout-adobe.c: Likewise.
1806 * aout-arm.c: Likewise.
1807 * aout-encap.c: Likewise.
1808 * aout-ns32k.c: Likewise.
1809 * aout-target.h: Likewise.
1810 * aout-tic30.c: Likewise.
1811 * aoutf1.h: Likewise.
1812 * aoutx.h: Likewise.
1813 * archive.c: Likewise.
1814 * bfd-in.h: Likewise.
1815 * bfd-in2.h: Likewise.
1819 2000-11-17 H.J. Lu <hjl@gnu.org>
1821 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1822 pltoff entries for DT_INIT and DT_FINI.
1823 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1824 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1827 2000-11-16 Richard Henderson <rth@redhat.com>
1829 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1830 (allocate_dynrel_entries): Likewise.
1831 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1832 (set_pltoff_entry): Likewise.
1833 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1834 (elfNN_ia64_reloc_type_lookup): Likewise.
1835 (elfNN_ia64_install_value): Likewise.
1836 (elfNN_ia64_relocate_section): Likewise.
1837 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1838 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1840 2000-11-16 Kazu Hirata <kazu@hxi.com>
1842 * cpu-a29k.c: Fix formatting.
1843 * cpu-alpha.c: Likewise.
1844 * cpu-arm.c: Likewise.
1845 * cpu-avr.c: Likewise.
1846 * cpu-d10v.c: Likewise.
1847 * cpu-h8500.c: Likewise.
1848 * cpu-hppa.c: Likewise.
1849 * cpu-i370.c: Likewise.
1850 * cpu-i386.c: Likewise.
1851 * cpu-i960.c: Likewise.
1852 * cpu-ia64-opc.c: Likewise.
1853 * cpu-ia64.c: Likewise.
1854 * cpu-m32r.c: Likewise.
1855 * cpu-m68hc11.c: Likewise.
1856 * cpu-m68hc12.c: Likewise.
1857 * cpu-m68k.c: Likewise.
1858 * cpu-m88k.c: Likewise.
1859 * cpu-mips.c: Likewise.
1860 * cpu-ns32k.c: Likewise.
1861 * cpu-pj.c: Likewise.
1862 * cpu-powerpc.c: Likewise.
1863 * cpu-sh.c: Likewise.
1864 * cpu-sparc.c: Likewise.
1865 * cpu-tic54x.c: Likewise.
1866 * cpu-v850.c: Likewise.
1867 * cpu-vax.c: Likewise.
1868 * cpu-w65.c: Likewise.
1869 * cpu-we32k.c: Likewise.
1870 * cpu-z8k.c: Likewise.
1871 * dwarf1.c: Likewise.
1872 * dwarf2.c: Likewise.
1874 2000-11-15 Kazu Hirata <kazu@hxi.com>
1876 * coff-arm.c: Fix formatting.
1877 * coff-ppc.c: Likewise.
1878 * coff-rs6000.c: Likewise.
1879 * coff-sh.c: Likewise.
1880 * coff-sparc.c: Likewise.
1881 * coff-tic30.c: Likewise.
1882 * coff-tic54x.c: Likewise.
1883 * coff-tic80.c: Likewise.
1884 * coff-w65.c: Likewise.
1885 * coff-we32k.c: Likewise.
1886 * coff-z8k.c: Likewise.
1888 2000-11-15 Richard Henderson <rth@redhat.com>
1890 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1891 section with the same ALLOC|LOAD flags as the source section.
1893 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1895 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1896 by STO_ALPHA constants.
1898 2000-11-14 Kazu Hirata <kazu@hxi.com>
1900 * coff-pmac.c: Fix formatting.
1901 * coff-ppc.c: Likewise.
1903 2000-11-13 H.J. Lu <hjl@gnu.org>
1905 * elflink.h (elf_link_add_object_symbols): Also add indirect
1906 symbols for common symbols with the default version.
1908 2000-11-09 Philip Blundell <pb@futuretv.com>
1910 * section.c (STD_SECTION): Set gc_mark flag.
1912 2000-11-11 Kazu Hirata <kazu@hxi.com>
1914 * coff-i960.c: Likewise.
1915 * coff-m68k.c: Likewise.
1916 * coff-m88k.c: Likewise.
1917 * coff-mcore.c: Likewise.
1918 * coff-mips.c: Likewise.
1920 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1922 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1924 2000-11-10 Kazu Hirata <kazu@hxi.com>
1926 * coff-h8300.c: Fix formatting.
1927 * coff-h8500.c: Likewise.
1928 * coff-i386.c: Likewise.
1929 * coff-i860.c: Likewise.
1930 * coff-i960.c: Likewise.
1931 * coff-ia64.c: Likewise.
1933 2000-11-09 Kazu Hirata <kazu@hxi.com>
1935 * archive.c: Fix formatting.
1936 * archures.c: Likewise.
1938 2000-11-07 Richard Henderson <rth@redhat.com>
1940 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1941 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1942 * section.c (bfd_set_section_contents): Call memcpy if
1943 section->contents set and location not equal to contents plus offset.
1945 2000-11-08 Kazu Hirata <kazu@hxi.com>
1947 * bfd-in.h: Fix formatting.
1948 * bfd-in2.h: Likewise.
1950 * binary.c: Likewise.
1952 * coff-a29k.c: Likewise.
1953 * coff-alpha.c: Likewise.
1954 * coff-apollo.c: Likewise.
1955 * coff-aux.c: Likewise.
1957 2000-11-07 Kazu Hirata <kazu@hxi.com>
1959 * aix386-core.c: Fix formatting.
1960 * aoutf1.h: Likewise.
1961 * aoutx.h: Likewise.
1962 * archures.c: Likewise.
1963 * armnetbsd.c: Likewise.
1965 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1967 * coff-h8300.c (special): Adjust reloc address.
1969 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1971 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1972 to differentiate elf32 and elf64 on ia64.
1973 * bfd-in2.h: Regenerate.
1974 * config.bfd: Add target for "ia64*-*-hpux*".
1975 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1976 * configure: Regenerate.
1977 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1978 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1980 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1981 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1982 * Makefile.in: Regnerate.
1983 * elf64-ia64.c: Deleted.
1984 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1986 2000-11-06 Kazu Hirata <kazu@hxi.com>
1988 * aout-adobe.c: Fix formatting.
1989 * aout-arm.c: Likewise.
1990 * aout-cris.c: Likewise.
1991 * aout-encap.c: Likewise.
1992 * aout-ns32k.c: Likewise.
1993 * aout-target.h: Likewise.
1994 * aout-tic30.c: Likewise.
1996 2000-11-05 Philip Blundell <philb@gnu.org>
1998 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1999 BFDs containing no sections to be merged, regardless of their flags.
2001 2000-11-04 Philip Blundell <philb@gnu.org>
2003 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2004 if a relocation for an undefined symbol also results in an
2007 2000-11-06 Christopher Faylor <cgf@cygnus.com>
2009 * config.bfd: Add support for Sun Chorus.
2011 2000-11-05 David O'Brien <obrien@FreeBSD.org>
2013 * configure.in: Recognize alpha-*-freebsd*.
2014 * configure: Regenerate.
2016 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2018 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2019 (Chunk): New global variable set by a parameter in objcopy.c.
2020 (S3Forced): New global variable set by a parameter in
2022 (srec_set_section_contents): If S3Forced is true, always generate
2024 (srec_write_section): Use 'Chunk' to limit maximum length of S
2027 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2029 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2030 * Makefile.in: Regenerate.
2031 * bfd-in2.h: Regenerate.
2032 * po/bfd.pot: Regenerate.
2034 2000-10-31 Philip Blundell <philb@gnu.org>
2036 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2037 EF_SOFT_FLOAT if it is defined.
2039 2000-10-27 Philip Blundell <philb@gnu.org>
2041 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2042 attempts to mix PIC code with non-PIC, just mark the output as
2043 being position dependent.
2044 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2045 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
2046 all mismatches, not just the first one.
2048 2000-10-25 Chris Demetriou <cgd@sibyte.com>
2050 * ieee.c (ieee_archive_p): Plug one of many possible
2051 memory leaks in error handling.
2053 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2055 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2056 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2058 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2059 sparc64_elf_object_p): Support v9b.
2060 * archures.c: Declare v8plusb and v9b machines.
2062 * cpu-sparc.c: Ditto.
2064 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2066 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2069 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2070 (SYMBOL_CALLS_LOCAL): New macro.
2071 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2072 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2073 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2074 (ppc_elf_relocate_section): Use flag variable to determine
2075 whether the relocation refers to a local symbol.
2076 Test whether a PLTREL24 reloc will produce a reloc by looking
2077 to see whether a PLT entry was made.
2079 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2081 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2082 entries that could serve as a definition for a weak symbol.
2084 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2086 From Ralf Baechle <ralf@gnu.org>
2088 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2089 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2090 against local symbols.
2091 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2093 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2095 * section.c (struct sec): Add kept_section.
2096 (struct bfd_comdat_info): Remove sec, we can use above.
2097 (STD_SECTION): Add initializer.
2098 (bfd_make_section_anyway): Init here too.
2100 * bfd-in2.h: Regenerate.
2102 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2104 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2105 fudge values for discarded link-once section symbols.
2107 * elf64-hppa.c: Include alloca-conf.h
2109 2000-10-11 Alan Modra <alan@linuxcare.com.au>
2111 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2113 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2115 2000-10-10 Alan Modra <alan@linuxcare.com.au>
2117 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2119 2000-10-10 Tom Rix <trix@redhat.com>
2121 * section.c (bfd_make_section_anyway): Release newsect ptr when
2122 newsect->symbol fails to alloc. Use bfd_release instead of free.
2124 2000-10-09 Richard Henderson <rth@cygnus.com
2126 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2127 (elf64_ia64_unwind_entry_compare): New.
2128 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2130 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2132 * elflink.h (size_dynamic_sections): Don't create various tags if
2133 .dynstr is excluded from the link. Don't set first dynsym entry
2134 if dynsymcount is zero.
2135 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2136 .dynsym excluded from the link. Don't try to write any dynamic
2137 sections excluded from the link.
2139 * elf.c (swap_out_syms): Handle global section symbols.
2141 2000-10-05 DJ Delorie <dj@redhat.com>
2143 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2144 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2145 (coff_write_relocs): write extended reloc count
2146 (coff_write_object_contents): account for extended relocs
2148 2000-10-05 Jim Wilson <wilson@cygnus.com>
2150 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2152 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2153 elf_backend_section_flags function.
2154 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2156 (elf64_ia64_section_flags): New function containing flag conversion
2158 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2159 * elfxx-target.h (elf_backend_section_flags): Define.
2160 (elfNN_bed): Initialize elf_backend_section_flags field.
2162 2000-10-02 Alan Modra <alan@linuxcare.com.au>
2164 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2165 _bfd_elf32_gc_record_vtable. Correct a comment.
2167 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2169 From Ralf Baechle <ralf@gnu.org>
2171 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2172 produces binaries with got[1] = 0x80000001 to differenciate them
2173 for the dynamic linker from the broken binaries produced by old
2176 2000-09-30 Petr Sorfa <petrs@sco.com>
2178 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2179 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2180 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2181 * configure: Regenerate.
2183 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
2185 Define two bfd_targets for absence and presence of leading
2186 underscore on symbols. Make sure to only link same kind.
2187 * elf32-cris.c (cris_elf_object_p,
2188 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2189 cris_elf_merge_private_bfd_data): New.
2190 (elf_backend_object_p, elf_backend_final_write_processing,
2191 bfd_elf32_bfd_print_private_bfd_data,
2192 bfd_elf32_bfd_merge_private_bfd_data): Define.
2193 <Target vector definition>: Include elf32-target.h twice with
2194 different macro settings:
2195 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2196 bfd_elf32_us_cris_vec.
2197 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2198 (elf_symbol_leading_char): First as 0, then '_'.
2199 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2200 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2201 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2202 * configure: Regenerate.
2203 * targets.c: Declare bfd_elf32_us_cris_vec.
2204 * po/bfd.pot: Regenerate.
2206 2000-09-29 Momchil Velikov <velco@fadata.bg>
2208 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2209 R_ARM_THM_PC22 relocations.
2211 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2213 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2215 2000-09-29 Momchil Velikov <velco@fadata.bg>
2217 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2218 is has the SEC_HAS_CONTENTS flag set.
2220 2000-09-28 Örjan Friberg <orjanf@axis.com>
2221 Hans-Peter Nilsson <hp@axis.com>
2223 * aout-cris.c (N_TXTADDR): Define.
2225 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2227 * som.c: Include alloca-conf.h.
2228 * Makefile.am: "make dep-am"
2229 * Makefile.in: Regenerate.
2231 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2233 * elf32-hppa.c (plt_stub): New.
2234 (PLT_STUB_ENTRY): Define.
2235 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2236 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2237 (elf32_hppa_link_hash_table_create): Init to suit.
2238 (elf32_hppa_check_relocs): Set has_12bit_branch and
2239 has_17bit_branch as appropriate.
2240 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2241 non-local functions.
2242 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2243 Add space for plt_stub as needed.
2244 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2245 functions at plt_stub.
2246 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2247 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2249 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2250 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2251 of fixed size, and if negative, disable handling of input sections
2252 before stub section. Set up default stub group size depending
2253 on detected branch relocs.
2254 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2255 ensure different offsets from sym_value aren't rounded to
2256 different 2k blocks. Use lrsel and rrsel for other stubs too for
2257 consistency rather than necessity.
2258 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2259 (final_link_relocate): Likewise.
2260 (elf32_hppa_relocate_section): Likewise.
2262 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2263 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2264 (elf_hppa_final_link_relocate): Handle them.
2265 (elf_hppa_relocate_insn): Likewise.
2266 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2268 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
2270 * elfcode.h (elf_object_p): Preserve and clear abfd section
2271 information. Restore at error.
2273 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2275 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2276 is empty, make sure that its rva also 0. NT loader dislikes
2279 2000-09-26 Steve Ellcey <sje@cup.hp.com>
2281 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2284 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2286 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2287 currently unused RELATIVE_DYNAMIC_RELOCS code.
2288 (hppa_discard_copies): Likewise.
2289 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
2290 comments. Don't check non-code output sections for stub grouping.
2292 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2294 * section.c (bfd_get_unique_section_name): Return NULL if
2297 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2299 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2300 instruction sequence to actually work.
2301 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2304 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2306 * elf32-sh.c (sh_elf_relocate_section): Use
2307 _bfd_final_link_relocate to apply the relocation against a section
2308 symbol, when doing relocatable links.
2310 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2312 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2314 (stub_hash_newfunc): Here too.
2315 (hppa_add_stub): And here.
2316 (elf32_hppa_link_hash_table): Remove stub_section_created,
2317 reloc_section_created, first_init_sec and first_fini_sec. Add
2319 (elf32_hppa_link_hash_table_create): Init to suit.
2320 (hppa_get_stub_entry): Add support for grouping stub sections.
2321 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2322 section code. Index stub vars by section->id.
2323 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2324 exit paths. Zap allocation of above removed vars. Refine
2327 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2328 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2329 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2330 rather than pointer to bfd_link_info.
2331 (hppa_add_stub): Likewise.
2332 (final_link_relocate): Likewise.
2334 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2336 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2339 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2341 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2342 ld/emulparams/shelf.sh.
2344 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2346 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2347 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2348 * bfd-in2.h: Regenerate.
2350 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2352 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2353 LITUSE relocations incorrectly if -relax is specified on the ld
2354 command line and the displacement field of the load or store
2355 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2357 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2359 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2360 first_fini_sec here.
2361 (elf32_hppa_size_stubs): Instead correctly find the first .init
2362 and .fini section here.
2364 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2366 * elf32-hppa.c (clobber_millicode_symbols): New function.
2367 (elf32_hppa_size_dynamic_sections): Call it.
2369 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2371 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2372 packed. Add plabel, plt_abs packed booleans.
2373 (hppa_link_hash_newfunc): Init new fields.
2374 (PLABEL_PLT_ENTRY_SIZE): Define.
2375 (hppa_stub_name): Use size_t len vars.
2376 (hppa_add_stub): Likewise.
2377 (elf32_hppa_build_stubs): Likewise.
2378 (hppa_build_one_stub): Kill some compiler warnings.
2379 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2380 if dynamic linking. Munge the local plt offsets into
2381 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2382 size_t len vars. Add assert for plabel addend.
2383 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2384 (elf32_hppa_hide_symbol): New function.
2385 (elf_backend_hide_symbol): Define.
2386 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2387 with h->plabel set. Don't make plt entries to have dynamic syms
2388 when they have been forced local. If plt entry is used by a
2389 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2390 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2391 Set up .plt offsets for local syms.
2392 (elf32_hppa_relocate_section): Initialise plt entries for local
2393 syms. Leave weak undefined plabels zero. Make global plabel
2394 relocs against function symbol, and leave the addend zero.
2395 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2396 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2397 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2398 relocs instead of SEGREL32 for dynamic got relocs.
2399 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2400 (elf_backend_got_header_size): Adjust.
2401 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2403 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2404 (hppa_type_of_stub): Use it instead of #if 0
2405 (hppa_discard_copies): Use it here too.
2406 (elf32_hppa_size_dynamic_sections): And here.
2408 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2409 (elf32_hppa_link_hash_table_create): And here.
2410 (hppa_build_one_stub): And here. Instead keep track of stub
2411 offset using _raw_size.
2412 (elf32_hppa_size_stubs): Likewise.
2413 (elf32_hppa_build_stubs): Likewise.
2414 (hppa_size_one_stub): Likewise. Resize reloc section too.
2416 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2417 first_fini_sec handling. Don't search for reloc section or set
2418 hplink->reloc_section_created here.
2419 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2420 set reloc_section_created here.
2421 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2422 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2424 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2426 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2427 with `hplink->root.'.
2428 (elf32_hppa_check_relocs): Likewise.
2429 (elf32_hppa_gc_sweep_hook): Likewise.
2430 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2431 (hppa_handle_PIC_calls): Likewise.
2432 (elf32_hppa_size_dynamic_sections): Likewise.
2433 (elf32_hppa_set_gp): Likewise.
2434 (elf32_hppa_relocate_section): Likewise.
2435 (elf32_hppa_finish_dynamic_symbol): Likewise.
2436 (elf32_hppa_finish_dynamic_sections): Likewise.
2438 From David Huggins-Daines <dhd@linuxcare.com>
2439 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2440 defined weak symbols in shared links.
2441 (final_link_relocate): Calls to defined weak symbols in shared
2442 objects must go via import stubs, as the target might not be known
2445 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2447 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2448 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2449 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2450 the original entries with EMPTY_HOWTOs, and added new ones to fill
2452 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2453 (sh_elf_relocate_section): Likewise.
2455 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2457 * cpu-mips.c (arch_info_struct): Add mips:4K
2458 * bfd-in2.h (bfd_mach_mips4K): New define.
2459 * archures.c: Add bfd_mach_mips4K to comment.
2460 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2461 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2463 2000-09-13 Marco Franzen <marcof@thyron.com>
2465 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2466 use size_t as a counter.
2467 (som_write_space_strings): Similarly.
2469 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2471 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2473 (elf32_i860_relocate_section): Invoke new function from here.
2475 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2477 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2480 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2482 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2483 target section name instead of dumping core when the target symbol is
2486 2000-09-09 Kazu Hirata <kazu@hxi.com>
2488 * riscix.c: Remove DEFUN.
2490 2000-09-08 Nick Clifton <nickc@redhat.com>
2492 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2493 initialise flags in output bfd if the input bfd is the default
2494 architecture with the default flags.
2496 2000-09-08 Kazu Hirata <kazu@hxi.com>
2498 * archive.c: Fix formatting.
2499 * coff-arm.c: Likewise.
2500 * doc/chew.c: Likewise.
2502 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2504 * section.c (bfd_get_unique_section_name): Put a dot before the
2507 2000-09-07 Kazu Hirata <kazu@hxi.com>
2509 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2510 * elf.c: Fix formatting.
2512 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2514 * config.bfd (sh-*-linux*): Added.
2515 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2516 * targets.c: Declare them.
2517 * elf32-sh-lin.c: New file.
2518 * Makefile.am: Compile it.
2519 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2520 * configure, Makefile.in: Rebuilt.
2522 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2524 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2525 pseduo-section when determining where the TOC ends.
2527 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2528 output x_tvndx as it is only two bytes wide.
2530 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2531 reloc is 26 or 32 bits wide.
2533 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2534 for relocs that don't change anything. Also look at the full
2537 2000-09-06 Philip Blundell <philb@gnu.org>
2539 * config.bfd (arm*-*-uclinux*): New target.
2541 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2543 * configure: Rebuilt with new libtool.m4.
2545 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2547 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2548 word for variable name.
2549 * bfd-in2.h: Regenerate.
2551 2000-09-05 Nick Clifton <nickc@redhat.com>
2553 * config.in: Regenerate.
2554 * libbfd.h: Regenerate.
2555 * po/bfd.pot: Regenerate.
2556 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2559 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2561 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2563 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2565 Shared library and PIC support.
2566 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2567 (GOT_ENTRY_SIZE): New.
2568 (ELF_DYNAMIC_INTERPRETER): New.
2569 (STUB_SUFFIX): Define.
2570 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2571 (RELATIVE_DYNAMIC_RELOCS): Define.
2572 (enum elf32_hppa_stub_type): New.
2573 (struct elf32_hppa_stub_hash_entry): Rename offset to
2574 stub_offset. Add a number of new fields.
2575 (struct elf32_hppa_link_hash_entry): New.
2576 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2578 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2579 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2580 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2582 (hppa_link_hash_newfunc): New function.
2583 (elf32_hppa_link_hash_table_create): Use above function. Init new
2585 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2586 instead of addend, and remove sym_name from args. Don't use
2587 symbol name for local syms, instead use sym index.
2588 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2589 stub type rather than size. Pass in hash and handle import stub
2590 case. Also pass in reloc instead of offset so we can calculate
2591 PCREL22F and PCREL12F branches properly.
2592 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2593 import and export stubs too.
2594 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2595 import and export stub sizing.
2596 (elf32_hppa_check_relocs): New function.
2597 (elf32_hppa_adjust_dynamic_symbol): New function.
2598 (hppa_discard_copies): New function.
2599 (elf32_hppa_size_dynamic_sections): New function.
2600 (elf_backend_size_dynamic_sections): Define.
2601 (elf32_hppa_finish_dynamic_symbol): New function.
2602 (elf_backend_finish_dynamic_symbol): Define.
2603 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2604 some local vars into the link hash table too. For shared links,
2605 trundle over function syms, generating export stubs. Handle
2606 PCREL22F branches. Break out stub creation code from here..
2607 (hppa_add_stub): .. to here. New function.
2608 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2609 call the bfd linker. Use elf_gp to record global pointer.
2610 Calculate a value from sections if $global$ is missing.
2611 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2612 (elf32_hppa_gc_mark_hook): New function.
2613 (elf_backend_gc_mark_hook): Define.
2614 (elf32_hppa_gc_sweep_hook): New function.
2615 (elf_backend_gc_sweep_hook): Define.
2616 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2617 Add rel to args, and remove howto, input_bfd, offset, addend,
2618 sym_name as we can recalculate these locally. Handle calls to
2619 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2620 handling of undefined weak syms. Check that stubs are in range.
2621 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2622 message on hitting a DPREL21L reloc that needs fixing. Subtract
2623 off PC for PCREL14F. Break out code that does a stub lookup from
2625 (hppa_get_stub_entry): ..to here. New function.
2626 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2627 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2629 (elf32_hppa_finish_dynamic_sections): New function.
2630 (elf_backend_finish_dynamic_sections): Define.
2631 (elf_backend_final_write_processing) Define.
2632 (hppa_handle_PIC_calls): New function.
2633 (elf32_hppa_build_stubs): Call it. Pass link_info to
2634 hppa_build_one_stub.
2635 (elf32_hppa_create_dynamic_sections): New function
2636 to create .plt and .got then set .plt flags correctly.
2637 (elf_backend_create_dynamic_sections): Define.
2638 (elf32_hppa_object_p): New function.
2639 (elf_backend_object_p): Define.
2640 (elf32_hppa_elf_get_symbol_type): New function.
2641 (elf_backend_get_symbol_type): Define.
2642 (elf_backend_can_gc_sections): Define.
2643 (elf_backend_want_got_plt): Define.
2644 (elf_backend_plt_alignment): Set to 2.
2645 (elf_backend_plt_readonly): Define.
2646 (elf_backend_want_plt_sym): Define.
2647 (elf_backend_got_header_size): Reserve one entry.
2649 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2650 (elf32_hppa_size_stubs): Pass in multi_subspace.
2651 (elf32_hppa_set_gp): Declare.
2653 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2654 (bfd_get_unique_section_name): New function.
2655 * bfd-in2.h: Regenerate.
2657 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2658 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2661 From David Huggins-Daines <dhd@linuxcare.com>
2662 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2663 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2664 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2665 been updated in finish_dynamic_symbol before modifying function
2668 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2669 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2670 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2671 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2672 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2673 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2674 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2675 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2677 From David Huggins-Daines <dhd@linuxcare.com>
2678 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2679 style of local labels as well.
2681 2000-09-03 Philip Blundell <philb@gnu.org>
2683 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2684 references to undefined symbols in debugging sections.
2686 2000-09-02 H.J. Lu <hjl@gnu.org>
2688 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2689 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2690 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2693 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2695 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2696 (elf32_i860_is_local_label_name): New function and prototype.
2698 2000-09-02 Nick Clifton <nickc@redhat.com>
2700 * configure.in: Increase version number to 2.10.91.
2701 * configure: Regenerate.
2702 * aclocal.m4: Regenerate.
2703 * config.in: Regenerate.
2704 * po/bfd.pot: Regenerate.
2706 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2708 * elf.c (_bfd_elf_make_section_from_shdr): Add
2709 .gnu.linkobce.wi. to the list of debug section names.
2711 2000-09-02 Nick Clifton <nickc@redhat.com>
2713 * dwarf2.c (find_debug_info): New function: Locate a section
2714 containing dwarf2 debug information.
2715 (bfd_dwarf2_find_nearest_line): Find all sections containing
2716 debug information and include them in the stash.
2718 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2720 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2721 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2722 (sh_reloc_map): Add new relocs.
2723 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2724 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2725 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2726 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2728 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2729 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2730 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2731 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2732 New array constants.
2733 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2735 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2736 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2737 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2738 elf_sh_plt_reloc_offset): Define.
2739 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2740 elf_sh_link_hash_table): New structs.
2741 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2742 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2744 (elf_backend_create_dynamic_sections,
2745 bfd_elf32_bfd_link_hash_table_create,
2746 elf_backend_adjust_dynamic_symbol,
2747 elf_backend_size_dynamic_sections,
2748 elf_backend_finish_dynamic_symbol,
2749 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2750 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2751 elf_backend_got_header_size, elf_backend_plt_header_size):
2753 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2754 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2756 * bfd-in2.h, libbfd.h: Rebuilt.
2758 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2760 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2763 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2765 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2766 not initialized, set them to indicate the SH1 instruction set.
2768 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2770 * acinclude.m4: Include libtool and gettext macros from the
2772 * aclocal.m4, configure: Rebuilt.
2774 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2776 * elf.c: Eliminate references to __sparcv9 macro; replace with
2777 autoconf variables HAVE_PSINFO32_T etc.
2778 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2779 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2781 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2782 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2783 * aclocal.m4: Ditto.
2784 * configure: Regenerate.
2786 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2788 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2789 for any shared link, not just shared -Bsymbolic.
2790 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2791 any shared link, and pass link info to it.
2792 (elf_i386_size_dynamic_sections): Update comment.
2793 (elf_i386_discard_copies): Modify to discard relocs for symbols
2794 that have been forced local.
2795 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2796 that have been forced local.
2798 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2800 * elflink.h (elf_link_add_object_symbols): Allow common
2801 symbols to have an alignment of 1 if explicitly requested, and
2802 not overridden by other definitions.
2804 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2806 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2807 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2809 2000-08-22 H.J. Lu <hjl@gnu.org>
2811 * elf-bfd.h (elf_link_hash_table): Add runpath.
2813 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2814 * bfd-in2.h: Rebuilt.
2816 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2817 "runpath" field to NULL.
2818 (bfd_elf_get_runpath_list): New function.
2820 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2823 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2825 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2826 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2827 explicitly. Improve validation of r_type.
2829 2000-08-21 H.J. Lu <hjl@gnu.org>
2831 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2832 dynamic allocated content space. Add a comment to remind us that
2833 one day this ought to be fixed.
2834 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2835 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2836 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2838 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2840 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2841 field with the newly relocated value instead of adding it to the
2842 existing immediate field.
2843 (elf32_i860_relocate_splitn): Likewise.
2844 (elf32_i860_relocate_highadj): Likewise.
2846 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2848 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2849 was previously just a stub).
2851 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2853 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2855 (_bfd_elf_create_dynamic_sections): Likewise.
2857 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2859 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2860 for undefined symbols to be the beginning of the section.
2862 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2863 four extra entries at the beginning of the .rela.plt section.
2864 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2865 section to account for the four reserved entries in the .plt section.
2867 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2869 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2870 to the list of NOPs we recognize after a branch-and-link.
2871 Use the ori NOP when one is needed.
2873 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2876 2000-08-14 Jim Wilson <wilson@cygnus.com>
2878 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2879 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2880 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2883 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2885 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2887 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2889 * elf32-i860.c (elf32_i860_relocate_section): New function.
2890 (i860_final_link_relocate): New function.
2891 (elf32_i860_relocate_splitn): New function.
2892 (elf32_i860_relocate_pc16): New function.
2893 (elf32_i860_relocate_highadj): New function.
2894 (elf32_i860_howto): Minor adjustments to some relocations.
2895 (elf_info_to_howto_rel): Define.
2896 (elf_backend_relocate_section): Define.
2898 2000-08-10 Nick Clifton <nickc@cygnus.com>
2900 * elf32-arm.h: Fix formatting.
2902 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2904 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2906 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2908 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2910 2000-08-07 Kazu Hirata <kazu@hxi.com>
2912 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2913 * elf64-ia64.c: Fix a typo.
2915 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2917 * elf32-i860.c (elf32_i860_howto_table): New structure.
2918 (lookup_howto): New function.
2919 (elf32_i860_reloc_type_lookup): New function.
2920 (elf32_i860_info_to_howto_rela): New function.
2921 (elf_code_to_howto_index): New structure.
2922 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2923 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2924 elf32_i860_reloc_type_lookup.
2926 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2928 * som.c (struct fixup_format): Constify `format'.
2929 (som_hppa_howto_table): Use SOM_HOWTO macro.
2930 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2931 (som_bfd_reloc_type_lookup): Likewise.
2932 (compare_subspaces): Remove unused `count1', `count2'.
2933 (som_begin_writing): Remove unused `total_reloc_size'.
2934 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2935 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2936 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2937 (som_find_nearest_line): Decorate unused parameter(s).
2938 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2939 (som_bfd_link_split_section): Likewise.
2941 2000-08-03 Nick Clifton <nickc@cygnus.com>
2943 * section.c: Restore backed out code.
2944 * elf.c: Restore backed out code.
2945 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2946 binaries from working.
2947 * bfd-in2.h: Regenerate.
2949 2000-08-03 H.J. Lu <hjl@gnu.org>
2951 * section.c: Back out the change made by Nick Clifton
2952 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2954 * bfd-in2.h: Likewise.
2957 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2959 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2961 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2963 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2964 * bfd-in2.h, libbfd.h: Regenerate.
2966 2000-07-31 Nick Clifton <nickc@cygnus.com>
2968 * section.c (struct sec): Add new boolean field 'segment_mark'.
2969 (STD_SECTION): Initialise new field to zero.
2971 * bfd-in2.h: Regenerate.
2973 * elf.c (copy_private_bfd_data): Reorganise section to segment
2974 mapping to cope with moved sections requiring new segments,
2975 and overlapping segments.
2976 (SEGMENT_END): New macro: Return the end address of a segment.
2977 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2978 contains a section by comparing their VMA addresses.
2979 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2980 contains a section by comparing their LMA addresses.
2981 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2982 section should be included in a segment.
2983 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2984 follows another in memory.
2985 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2988 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2990 * cpu-i860.c: Added comments.
2992 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2993 bfd_elf32_i860_little_vec.
2994 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2995 (ELF_MAXPAGESIZE): Changed to 4096.
2997 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2999 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3001 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3002 config for little endian elf32 i860.
3003 (targ_defvec): Define for the new config above
3004 as "bfd_elf32_i860_little_vec".
3005 (targ_selvecs): Define for the new config above
3006 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3008 * configure.in (bfd_elf32_i860_little_vec): Added recognition
3011 * configure: Regenerated.
3013 2000-07-27 H.J. Lu <hjl@gnu.org>
3015 * elflink.h (elf_merge_symbol): Take one more argument,
3016 dt_needed, to indicate if the symbol comes from a DT_NEEDED
3017 entry. Don't overide the existing weak definition if dt_needed
3019 (elf_link_add_object_symbols): Pass dt_needed to
3020 elf_merge_symbol ().
3022 2000-07-27 Nick Clifton <nickc@cygnus.com>
3024 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
3027 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
3029 * configure.host (*-*-aix*): AIX has 'long long' always.
3031 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
3032 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
3033 (xcoff_write_archive_contents_big): Don't update the offset
3034 of the symbol table, xcoff_write_armap will do it.
3036 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
3038 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
3039 of dynobj for SGI_COMPAT checks.
3041 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3043 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
3044 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
3045 * bfd-in2.h: Regenerate.
3047 2000-07-21 Nick Clifton <nickc@cygnus.com>
3049 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
3050 range symbol indices in relocs and issue an error message.
3052 2000-07-20 H.J. Lu <hjl@gnu.org>
3054 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
3055 info->new_dtags when setting DT_FLAGS_1. It will only be set
3056 by the new linker options. It shouldn't break anything.
3058 2000-07-20 H.J. Lu <hjl@gnu.org>
3060 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
3061 only if info->new_dtags is true.
3063 2000-07-20 H.J. Lu <hjl@gnu.org>
3065 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
3066 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
3068 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3070 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
3071 (ALL_MACHINES_CFILES): Add cpu-cris.c.
3072 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
3073 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
3074 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
3075 * Makefile.in: Rebuild.
3076 * aclocal.m4: Rebuild.
3077 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
3078 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
3079 (bfd_cris_arch): Declare.
3080 (bfd_archures_list): Add bfd_cris_arch.
3081 * bfd-in2.h: Rebuild.
3082 * config.bfd: (cris-*-*): New target.
3083 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
3084 * configure: Rebuild.
3085 * elf.c (prep_headers): Add bfd_arch_cris.
3086 * libbfd.h: Rebuild.
3087 * libaout.h (enum machine_type): Add M_CRIS.
3088 * reloc.c: Add CRIS relocations.
3089 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
3090 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
3091 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
3092 * po/POTFILES.in, po/bfd.pot: Regenerate.
3094 2000-07-19 H.J. Lu <hjl@gnu.org>
3096 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
3097 DF_TEXTREL if DT_TEXTREL is set.
3098 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3099 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3100 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3101 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
3102 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3103 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3104 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
3105 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3106 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
3107 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3109 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
3110 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
3112 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
3114 2000-07-19 H.J. Lu <hjl@gnu.org>
3116 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
3117 * bfd-in2.h: Rebuild.
3119 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
3120 (elf_dt_soname): New.
3122 * elf.c (bfd_elf_set_dt_needed_soname): New.
3124 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
3125 entry if the shared object loaded by DT_NEEDED is used to
3126 resolve the reference in a regular object.
3128 2000-07-19 H.J. Lu <hjl@gnu.org>
3130 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
3131 DT_DEPAUDIT and DT_AUDIT as strings.
3133 2000-07-19 Nick Clifton <nickc@cygnus.com>
3135 * format.c: Fix formatting.
3137 2000-07-19 H.J. Lu <hjl@gnu.org>
3139 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
3141 2000-07-19 H.J. Lu <hjl@gnu.org>
3143 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3144 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3145 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3146 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3147 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3148 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3149 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3151 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
3153 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3154 renamed functions from here...
3155 (assign_section_numbers): Use renamed functions.
3156 (prep_headers): Use renamed functions.
3158 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3159 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3160 * bfd-in2.h: Regenerate.
3162 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
3164 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3165 parenthesis in if statement.
3167 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
3169 Enable the support for Traditional MIPS.
3170 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3171 return ict_none appropriately for traditional mips targets.
3172 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3173 (STUB_MOVE): Conditionalize for traditonal mips.
3174 (STUB_LI16): Likewise.
3175 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3176 room for RTPROC header.
3177 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3178 the permission for the PT_DYNAMIC as read, write and execute.
3179 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3180 for traditonal mips.
3181 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3182 _DYNAMIC_LINKING for traditonal mips.
3183 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3184 in case of traditonal mips.
3185 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3186 entry is required. For a function if PLT is not required then set the
3187 corresponding hash table entry to 0.
3188 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3190 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3191 shared object set the value to 0.
3192 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3193 _DYNAMIC_LINKING for traditonal mips.
3194 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3195 for traditonal mips.
3197 2000-07-15 H.J. Lu <hjl@gnu.org>
3199 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3201 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3203 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3204 out a structure that is BFD_IN_MEMORY.
3206 2000-07-11 Alan Modra <alan@linuxcare.com.au>
3208 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3209 bfd pointer. Print section id instead of bfd pointer for local
3210 syms. Prefix addend with `+' for global syms as well as local.
3211 Correct calculation of name component lengths.
3212 (elf64_hppa_check_relocs): Update call to get_dyn_name.
3214 From David Huggins-Daines <dhd@linuxcare.com>
3215 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3216 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3217 (elf64_hppa_modify_segment_map): Likewise.
3219 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3221 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3222 addresses to be "naturally" sign extended. Return -1 if unknown.
3223 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3224 * bfd-in2.h: Regenerate.
3226 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3228 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3229 and ECOF_SIGNED_64 to list ways to extract an offset.
3230 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3231 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3233 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3234 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3236 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3238 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3239 bfd_get_start_address.
3240 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3241 (elf_swap_ehdr_out): Ditto.
3243 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3245 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3246 compatibility with older binutils.
3248 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3250 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3251 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3253 From Ryan Bradetich <rbradetich@uswest.net>
3254 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3255 (parse_line_table): Ditto.
3256 (_bfd_dwarf1_find_nearest_line): Ditto.
3257 * syms.c (cmpindexentry): Remove extra `*' from params.
3259 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3261 * elf32-mips.c (sort_dynamic_relocs): New Function.
3262 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3263 via qsort to sort the dynamic relocations in increasing r_symndx
3266 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3268 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3269 ATTRIBUTE_UNUSED to unused args.
3270 (get_opd): Likewise.
3271 (get_plt): Likewise.
3272 (get_dlt): Likewise.
3273 (get_stub): Likewise.
3274 (elf64_hppa_adjust_dynamic_symbol): Likewise.
3275 (elf64_hppa_link_output_symbol_hook): Likewise.
3276 (elf64_hppa_check_relocs): Delete unused var.
3277 (elf64_hppa_size_dynamic_sections): Likewise.
3278 (elf64_hppa_finalize_opd): Likewise.
3279 (elf64_hppa_finalize_dynreloc): Likewise.
3280 (elf64_hppa_modify_segment_map): Likewise.
3281 (elf64_hppa_finish_dynamic_sections): Likewise.
3283 * elf-hppa.h (elf_hppa_final_write_processing): Add
3284 ATTRIBUTE_UNUSED to unused args.
3285 (elf_hppa_final_link_relocate): Likewise.
3286 (elf_hppa_record_segment_addrs): Add paretheses.
3287 (elf_hppa_relocate_section): Constify dyn_name.
3289 From David Huggins-Daines <dhd@linuxcare.com>
3290 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3291 rearrange case statement so that it gets preferred to 32-bit ones.
3293 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3294 asection->id instead of address of asection structure.
3295 (elf32_hppa_size_stubs): Likewise.
3297 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3298 for .init* and .fini*.
3300 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3301 and addends used in stub names to 32 bits.
3302 (elf32_hppa_size_stubs): Likewise.
3304 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3305 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3306 not bfd_put_64. Fix minor comment typo and formatting.
3308 Changes to create multiple linker stubs, positioned immediately
3309 before the section where they are required.
3310 * elf32-hppa.c: Don't include hppa_stubs.h.
3311 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3312 (elf32_hppa_stub_hash_table): Delete.
3313 (elf32_hppa_link_hash_entry): Delete.
3314 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3315 stub_hash_table, and store the struct here rather than a pointer.
3316 Delete output_symbol_count. Add offset array. Change
3317 global_value to a bfd_vma.
3318 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3319 (elf32_hppa_stub_hash_traverse): Delete.
3320 (elf32_hppa_name_of_stub): Delete.
3321 (elf32_hppa_link_hash_lookup): Delete.
3322 (elf32_hppa_link_hash_traverse): Delete.
3323 (elf32_hppa_stub_hash_table_init): Delete.
3324 (elf32_hppa_size_of_stub): Pass input section and offset rather
3325 than location and calculate location here. Don't pass name as all
3326 stubs are now the same size.
3327 (elf32_hppa_stub_hash_newfunc): Init new fields.
3328 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3330 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3331 comparing against ints. Rewrite stub handling code.
3332 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3333 Case enums to int before comparing against ints. Remove
3334 bfd_reloc_dangerous case.
3335 (elf32_hppa_build_one_stub): Rewrite.
3336 (elf32_hppa_size_one_stub): New function.
3337 (elf32_hppa_build_stubs): Rewrite.
3338 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3339 Rewrite stub-handling specific code.
3341 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3343 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3345 * hppa_stubs.h: Delete.
3346 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3347 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3348 * Makefile.in: Regenerate.
3350 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3353 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3355 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3356 and section name for bfd_reloc_notsupported error message.
3357 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3358 bfd_reloc_notsupported.
3359 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3361 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3362 undefined weak symbols for all relocs.
3363 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3364 offsets are relative to one past the delay slot.
3365 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3366 branch destination. Put addend into stub name too.
3367 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3368 adjust by 8 when deciding whether a linker stub is needed. Put
3369 addend into stub name as for above.
3371 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3372 various args and vars.
3373 (elf32_hppa_bfd_final_link_relocate): Here too.
3374 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3375 inner block var to avoid shadowing.
3377 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3379 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3380 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3381 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3383 * libhppa.h: Change practically all unsigned ints to plain ints.
3384 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3387 From Ryan Bradetich <rbradetich@uswest.net>
3388 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3389 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3391 From David Huggins-Daines <dhd@linuxcare.com>
3392 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3393 to the new OP_* ones.
3395 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3396 error exit. Bail out earlier on plabel relocs that we aren't
3397 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3398 string, and then don't free our copy.
3399 (elf32_hppa_build_one_stub): Make insn unsigned int.
3401 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3402 available with BL, not BE and BLE.
3404 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3405 code for elf arg relocs.
3406 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3407 argument with elf_link_hash_entry h. Handle undefined weak
3408 symbols. Move $global$ lookup from here...
3409 (elf32_hppa_relocate_section): ...to here. Return correct error
3410 message for non-handled relocs.
3411 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3412 wrong test was -0x3ffff to +0x40000.
3414 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3415 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3416 Handle them as such.
3417 (elf_hppa_relocate_insn): Fix a typo.
3419 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3420 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3421 assemble_17, assemble_21): Delete.
3422 Supply defines for all 64 possible opcodes.
3423 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3424 formats. Handle COMICLR.
3425 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3428 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3429 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3430 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3432 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3433 the local syms - did this code get deleted accidentally? Ignore
3434 undefined and undefweak syms.
3436 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3437 block. Use it instead of elf64_hppa_hash_table (info).
3438 (elf_hppa_final_link_relocate): Use hppa_info instead of
3439 elf64_hppa_hash_table (info).
3441 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3442 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3443 (hppa_rebuild_insn): Mask immediate bits here instead.
3444 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3446 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3448 * section.c (struct sec): Add id field. Tidy comment formatting.
3449 (bfd_make_section_anyway): Set id.
3450 (STD_SECTION): Init id too.
3451 Change CONST to const throughout.
3452 * archures.c (bfd_arch_info): Tidy comment.
3453 (bfd_arch_list): Change a CONST to const.
3454 * libbfd-in.h: Tidy comments and replace CONST with const.
3455 * elf-bfd.h: Likewise.
3456 * libbfd.h: Regenerate.
3457 * bfd-in2.h: Regenerate.
3458 * libcoff.h: Regenerate.
3460 2000-07-07 DJ Delorie <dj@redhat.com>
3462 * archive.c (_bfd_write_archive_contents): Add an informative
3465 2000-07-06 Kazu Hirata <kazu@hxi.com>
3467 * srec.c: Fix formatting.
3469 2000-06-05 DJ Delorie <dj@redhat.com>
3473 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3475 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3476 value of PC-relative offsets.
3478 2000-07-03 Jim Wilson <wilson@cygnus.com>
3480 * elf64-alpha.c (alpha_elf_size_info): New.
3481 (elf_backend_size_info): Define to alpha_elf_size_info.
3482 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3484 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3486 * elf32-mips.c: Include elf32-target.h again for the traditional
3489 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3491 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3492 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3493 (avr_info_to_howto_rela): Likewise.
3494 (elf32_avr_gc_mark_hook): Likewise.
3495 (elf32_avr_gc_sweep_hook): Likewise.
3496 (elf32_avr_relocate_section): Likewise.
3498 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3500 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3501 an external symbol for a non-shared, non-relocatable link.
3503 2000-07-03 Nick Clifton <nickc@redhat.com>
3505 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3506 is an external symbol.
3507 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3510 2000-07-03 Kazu Hirata <kazu@hxi.com>
3512 * reloc16.c: Fix formatting.
3514 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3516 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3517 to add a new target for traditional mips i.e
3518 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3519 * configure.in: Likewise.
3520 * configure: Rebuild.
3521 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3523 (bfd_elf32_tradlittlemips_vec): Likewise.
3524 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3525 to see that elfNN_bed does not get redefined even if the target file
3526 is included twice for a chip. See elf32-mips.c.
3528 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3530 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3531 (CLEANFILES): Add DEPA.
3532 * Makefile.in: Regenerate.
3534 2000-06-30 DJ Delorie <dj@cygnus.com>
3536 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3537 can't assume the PE header is at 0x80.
3539 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3541 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3543 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3545 * go32stub.h: Update stub.
3547 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3549 * archures.c (bfd_mach_avr5): Define.
3550 * bfd-in2.h (bfd_mach_avr5): Define.
3551 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3552 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3553 (compatible): Update comment. Add missing test.
3554 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3555 for avr2 and avr4. Simplify 8K wrap code.
3556 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3557 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3559 2000-06-26 Kazu Hirata <kazu@hxi.com>
3561 * coff-h8300.c: Fix formatting.
3562 * cpu-h8300.c: Likewise.
3564 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3566 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3567 for local symbols whose names are unknown.
3569 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3571 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3573 * Makefile.in: Regenerate.
3574 * doc/Makefile.in: Regenerate.
3576 2000-06-20 H.J. Lu <hjl@gnu.org>
3578 * Makefile.am: Rebuild dependency.
3579 * Makefile.in: Rebuild.
3581 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3583 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3584 (elf_backend_copy_indirect_symbol): Map to the new function.
3586 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3588 * archive.c (normalize): Correct pointer comparison when checking
3590 (bfd_bsd_truncate_arname): Likewise.
3591 (bfd_gnu_truncate_arname): Likewise.
3593 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3595 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3596 sections elf_{text,data}_{section,symbol}.
3597 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3598 (_bfd_mips_elf_hide_symbol): New function.
3599 (elf_backend_hide_symbol): Map to the new function.
3600 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3601 definitions of mips_elf_{text,data}_{section,symbol}.
3602 (mips_elf_local_relocation_p): Try to find the direct symbol
3603 based on new check_forced argument.
3604 (mips_elf_calculate_relocation): Use new version of
3605 mips_elf_local_relocation_p.
3606 (mips_elf_relocate_section): Likewise.
3607 (_bfd_mips_elf_relocate_section): Likewise.
3608 (mips_elf_sort_hash_table): Only assert that have enough GOT
3610 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3611 entry if the relocation based on the new external argument.
3612 (mips_elf_create_dynamic_relocation): Assert that we have a
3613 section contents allocated where we can swap out the dynamic
3615 (mips_elf_calculate_relocation): Find the real hash-table entry
3616 correctly by using h->root.root.type. Only create a dynamic
3617 relocation entry if the symbol is defined in a shared library.
3618 Create an external GOT entry for the GOT16 relocation if the
3619 symbol was forced local.
3620 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3621 dynamic index if the symbol was forced local.
3623 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3625 * elf32-mips.c: Fix typos in comments.
3627 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3629 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3632 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3634 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3635 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3636 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3637 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3638 (bfd_elf32_m68hc11_vec): Likewise.
3639 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3640 Supports 68hc11 & 68hc12 at the same time.
3641 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3643 (bfd_elf32_m68hc11_vec): Likewise.
3644 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3645 * archures.c (bfd_m68hc12_arch): Define and register in global list
3646 (bfd_m68hc11_arch): Likewise.
3647 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3648 BFD_RELOC_M68HC11_3B): Define.
3649 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3650 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3652 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3654 * elf_bfd.h (struct elf_backend_data): Add info argument to
3655 elf_backend_hide_symbol.
3656 (_bfd_elf_link_hash_hide_symbol): Likewise.
3657 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3658 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3659 * elflink.h (elf_link_add_object_symbols): Likewise.
3660 (elf_link_assign_sym_version): Likewise.
3662 2000-06-18 H.J. Lu <hjl@gnu.org>
3664 * coff-i386.c (coff_i386_reloc): Don't return in case of
3665 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3666 Compensate PE relocations when linking with non-PE object
3667 files to generate a non-PE executable.
3669 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3671 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3672 GOT entries if we're doing a static link or -Bsymbolic link.
3674 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3676 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3677 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3679 (elf_link_output_relocs): Likewise.
3680 (elf_reloc_link_order): Likewise.
3682 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3684 * archures.c (enum bfd_architecture): #define constants for
3685 PowerPc and RS6000 machine numbers.
3686 * bfd-in2.h: Regenerate.
3687 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3688 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3689 and RS6000 machine numbers using #defined constants from
3691 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3692 machine numbers using #defined constants from archures.c. Add
3693 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3694 64-bit words in 620 entry.
3695 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3697 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3699 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3701 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3702 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3703 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3705 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3707 * bfd-in.h (bfd_family_coff): Define.
3708 * bfd-in2.h: Regenerate.
3709 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3710 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3711 instead of bfd_target_coff_flavour.
3712 * cofflink.c (_bfd_coff_final_link): Likewise.
3713 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3714 exclude XCOFF files.
3715 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3717 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3718 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3719 * xcofflink.c (XCOFF_XVECP): Delete.
3720 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3721 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3722 bfd_xcoff_record_link_assignment,
3723 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3724 check for bfd_target_xcoff_flavour.
3726 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3728 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3730 (read_hdr): New function.
3731 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3732 of trying to extract individual registers. Set abfd->arch_info
3733 to match the architecture that created the core file.
3734 (rs6000coff_get_section_contents): Delete.
3735 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3737 2000-06-14 H.J. Lu <hjl@gnu.org>
3739 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3742 2000-06-13 H.J. Lu <hjl@gnu.org>
3744 * configure: Regenerate.
3746 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3748 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3751 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3753 * configure.in (VERSION): Update to show this is the CVS mainline.
3755 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3757 * elf32-d10v.c: Include elf/d10v.h
3758 (enum reloc_type): Delete.
3759 * elf32-d30v.c: Include elf/d30v.h
3760 (enum reloc_type): Delete.
3762 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3763 * Makefile.in: Regenerate.
3765 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3766 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3767 move HOWTOs into elf_howto_table.
3768 (R_386_standard, R_386_ext_offset): Define.
3769 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3770 (elf_i386_reloc_type_lookup): Modify calculation of index into
3771 elf_howto_table since we've removed the padding.
3772 (elf_i386_info_to_howto_rel): Likewise.
3773 (elf_i386_relocate_section): Likewise.
3775 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3777 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3779 2000-06-05 H.J. Lu <hjl@gnu.org>
3781 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3782 an error when seeing an undefined symbol with hidden/internal
3783 attribute. It is handled in *_relocate_section ().
3785 2000-06-05 H.J. Lu <hjl@gnu.org>
3787 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3788 indirect symbol for the ELF_LINK_NON_ELF bit.
3789 (elf_link_output_extsym): Don't output the indirect symbol even
3790 if the ELF_LINK_NON_ELF bit is set.
3792 2000-06-01 J.T. Conklin <jtc@redback.com>
3794 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3795 (i[3456]86-*-netbsdaout*): New target.
3796 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3797 (i[3456]86-*-openbsd*): Likewise.
3799 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3801 * trad-core.c: From hpux-core.c, include <dirent.h> or
3802 <sys/ndir.h> when possible.
3804 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3806 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3807 definitions. We must not assume they are sorted in the file
3808 according to their index numbers.
3810 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3812 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3813 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3814 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3816 2000-05-30 Nick Clifton <nickc@cygnus.com>
3818 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3819 80960CA, 80960MC as valid machine names.
3821 2000-05-30 H.J. Lu <hjl@gnu.org>
3823 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3824 visibility bits if the symbol is undefined. Correctly handle
3825 weak undefined symbols with hidden and internal attributes.
3827 * elflink.h (elf_link_add_object_symbols): Always turn the
3828 symbol into local if it has the hidden or internal attribute.
3830 2000-05-29 Philip Blundell <philb@gnu.org>
3832 * ppcboot.c: Add packed attribute if compiling with GCC.
3834 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3836 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3838 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3840 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3841 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3842 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3845 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3847 * Makefile.am: Update dependencies with "make dep-am"
3848 * Makefile.in: Regenerate.
3850 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3851 bindtextdomain): Replace defines with those from intl/libgettext.h
3852 to quieten gcc warnings.
3854 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3856 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3858 * archive.c (normalize, bfd_bsd_truncate_arname,
3859 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3860 file names with backslashes.
3862 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3865 * sysdep.h: Include filenames.h.
3867 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3869 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3871 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3873 * elf64-sparc.c (sparc64_elf_relax_section): New.
3874 (sparc64_elf_relocate_section): Optimize tail call into branch always
3876 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3877 (elf32_sparc_relax_section): New.
3879 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3881 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3882 Remove unusued variables.
3883 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3884 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3885 previous fix, so that shared libs really don't influence targets
3886 extension mask and memory model.
3888 2000-05-23 H.J. Lu <hjl@gnu.org>
3890 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3891 h->root.other not h->other.
3892 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3894 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3896 2000-05-23 H.J. Lu <hjl@gnu.org>
3898 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3899 undefined symbol with the non-default visibility attributes.
3900 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3901 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3902 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3903 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3904 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3905 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3906 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3907 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3908 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3909 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3910 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3912 2000-05-22 Richard Henderson <rth@cygnus.com>
3914 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3915 PCREL22, PCREL64I. Zero size of special relocs.
3916 (elf64_ia64_reloc_type_lookup): Likewise.
3917 (USE_BRL, oor_brl, oor_ip): New.
3918 (elf64_ia64_relax_section): New.
3919 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3920 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3921 (elf64_ia64_relocate_section): Likewise.
3922 (bfd_elf64_bfd_relax_section): New.
3923 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3924 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3925 * bfd-in2.h, libbfd.h: Regenerate.
3927 2000-05-22 Nick Clifton <nickc@cygnus.com>
3929 * configure.in : Add peigen.lo to MIPS PE targets.
3930 * configure: Regenerate.
3932 2000-05-22 Momchil Velikov <velco@fadata.bg>
3934 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3935 only if it is known for both input and output bfds. Separate
3936 error message strings as in some languages, it may be necessary
3937 to change more than one place in the string to change between
3940 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3941 endianess checks, call _bfd_generic_verify_endian_match() instead.
3943 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3945 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3947 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3948 endianess before checking bfd flavours.
3950 2000-05-22 H.J. Lu <hjl@gnu.org>
3952 * elflink.h (elf_link_output_extsym): Clear the visibility
3953 field for symbols not defined locally.
3955 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3957 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3958 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3959 (hppa_rebuild_insn): Mask immediate bits here instead.
3960 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3962 2000-05-18 Momchil Velikov <velco@fadata.bg>
3964 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3965 relocs for an executable, ensure that they are virtual addresses.
3967 2000-05-18 Jeffrey A Law (law@cygnus.com)
3969 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3971 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3972 Rick Gorton <gorton@scrugs.lkg.dec.com>
3974 * elflink.h: Add emitrelocations support: when enabled, relocation
3975 information and relocation sections are put into final output
3976 executables. If the emitrelocations flag is set, do the following:
3977 (elf_bfd_final_link): Emit relocation sections.
3978 (elf_link_input_bfd): Compute relocation section contents.
3979 (elf_gc_sections): Don't clean relocation sections.
3981 2000-05-16 Catherine Moore <clm@cygnus.com>
3983 * som.c (som_decode_symclass): Recognize weak symbols.
3985 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3987 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3988 read idata section only from dataoff.
3989 (pe_print_edata): Correctly check for valid eat_member.
3991 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3993 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3995 2000-05-14 Philip Blundell <philb@gnu.org>
3997 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3999 2000-05-12 Alan Modra <alan@linuxcare.com.au>
4001 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4003 * peigen.c (pe_print_idata): Look for .idata section and print
4004 info even if data directory has zero entries. Read idata section
4005 starting from dataoff, and adjust all data offsets to suit. Cast
4006 all bfd_vma vars to unsigned long before passing to fprintf.
4007 * peigen.c (pe_print_edata): Similarly, look for .edata section
4008 and print info even if data directory has zero entries. Cast
4009 all bfd_vma vars to unsigned long before passing to fprintf.
4011 From Szabolcs Szakacsits <szaka@F-Secure.com>
4012 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4013 directory size which may be bogus.
4014 * peigen.c (pe_print_edata): Similarly.
4016 2000-05-09 Alan Modra <alan@linuxcare.com.au>
4018 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4020 (copy_private_bfd_data): Allow for space possibly taken up by elf
4021 headers when calculating segment physical address from lma.
4023 2000-05-08 Alan Modra <alan@linuxcare.com.au>
4025 * versados.c (versados_scan): Init stringlen and pass_2_done.
4027 * trad-core.c (trad_unix_core_file_p): Return
4028 bfd_error_wrong_format rather than bfd_error_file_truncated.
4030 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
4031 add_data_entry. DataDirectory virtual address is relative.
4032 (pe_print_idata): Account for relative DataDirectory virtual
4033 addresses. Don't trash datasize inside POWERPC_LE_PE code.
4034 (pe_print_edata): Similarly.
4036 From Szabolcs Szakacsits <szaka@F-Secure.com>
4037 * peigen.c (dir_names): Add Delay Import Directory.
4038 (pe_print_idata): Always search for bfd section containing
4039 idata address rather than looking up section name. Print this
4040 section name rather than .idata.
4041 (pe_print_edata): Similarly. Also print some fields as %08lx.
4042 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
4045 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4047 * xcoff.h: Rename to xcoff-target.h
4048 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
4049 * coff-rs6000.c: Ditto.
4050 * coff64-rs6000.c: Ditto.
4051 * coff-pmac.c: Ditto.
4052 * Makefile.in: Regenerate.
4054 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4056 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
4057 Change U802TOC64MAGIC to U803XTOCMAGIC.
4059 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
4061 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
4062 * bfd-in.h: Prototype bfd_elf_get_arch_size.
4063 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
4065 2000-05-04 Alan Modra <alan@linuxcare.com.au>
4067 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
4069 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4071 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
4072 hidden and internal symbols.
4073 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
4075 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
4076 assign a PLT or GOT entry to symbols with hidden and
4077 internal visibility.
4079 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
4081 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
4083 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4085 2000-05-02 H.J. Lu <hjl@gnu.org>
4087 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
4090 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4092 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
4093 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
4095 * Makefile.in: Regenerate.
4097 2000-05-01 Jim Wilson <wilson@cygnus.com>
4099 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
4100 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
4101 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
4102 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
4103 * Makefile.in: Rebuild.
4105 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4107 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
4108 doesn't work very well.
4110 * elf-hppa.h (elf_hppa_internal_shdr): Define.
4111 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
4112 Set hdr->s_type to 1 if ARCH_SIZE == 32.
4113 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
4114 (elf_hppa_info_to_howto): Likewise.
4115 (elf_hppa_info_to_howto_rel): Likewise.
4116 (elf_hppa_reloc_type_lookup): Likewise.
4117 (elf_hppa_is_local_label_name): Likewise.
4118 (elf_hppa_fake_sections): Likewise.
4119 (elf_hppa_final_write_processing): Likewise.
4120 (elf_hppa_howto_table): Fully initialise all entries.
4121 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
4122 (elf_hppa_info_to_howto): Likewise.
4123 (elf_hppa_info_to_howto_rel): Likewise.
4124 (elf_hppa_reloc_type_lookup): Likewise.
4125 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
4126 elf_hppa_unmark_useless_dynamic_symbols,
4127 elf_hppa_remark_useless_dynamic_symbols,
4128 elf_hppa_record_segment_addrs, elf_hppa_final_link,
4129 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
4130 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
4131 elf32-hppa.c mess is cleaned up.
4132 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
4133 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
4134 r_field then call hppa_field_adjust inline func with variable
4135 r_field arg, instead call hppa_field_adjust with fixed arg.
4136 In case R_PARISC_PCREL22F, don't set r_field.
4137 (elf_hppa_relocate_insn): Change args and return type to unsigned
4138 int. Call re_assemble_* funcs to do the work.
4140 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
4143 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4145 (sign_extend): Mask first before sign extending.
4146 (low_sign_extend): Rewrite without condition expression.
4147 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4148 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4149 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4150 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4151 result as function return value rather than through pointer arg.
4152 Accept unsigned int args, and return unsigned int.
4153 (re_assemble_3): New. Combines function of dis_assemble_3 with
4154 re-assembly of opcode and immediate.
4155 (re_assemble_12): Likewise.
4156 (re_assemble_16): Likewise.
4157 (re_assemble_17): Likewise.
4158 (re_assemble_21): Likewise.
4159 (re_assemble_22): Likewise.
4160 (hppa_field_adjust): Rewrite and document, paying attention to
4161 size of types and signed/unsigned issues.
4162 (get_opcode): Shift before masking.
4163 (FDLW): Rename to FLDW.
4164 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
4165 (hppa_rebuild_insn): Change args and return value to unsigned
4166 int. Make use of re_assemble_*. Correct case 11.
4168 * dep-in.sed: Handle ../opcodes/.
4169 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4170 elf64-hppa.h, hppa_stubs.h, xcoff.h.
4171 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4172 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4173 elfarm-nabi.lo dependencies outside of auto-dependency area.
4174 Regenerate dependencies.
4175 * Makefile.in: Regenerate.
4177 * configure.in (TRAD_HEADER): Test non-null before
4179 * configure: Regenerate.
4181 * reloc.c: Fix mis-spelling in comment.
4183 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4185 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4186 * vms.c (vms_openr_next_archived_file): Return NULL.
4188 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4190 * coffcode.h Copy changes mistakenly done to libcoff.h in
4193 2000-04-29 Andreas Jaeger <aj@suse.de>
4195 * libbfd-in.h: Correctly check GCC version.
4196 * bfd-in.h: Likewise.
4197 * libhppa.h: Likewise.
4198 * libbfd.h: Regenerate.
4199 * bfd-in2.h: Regenerate.
4201 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4203 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4204 coffdu-rs6000.{lo,c}.
4205 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4207 * Makefile.in: Regenerate.
4208 * xcoff.h: New file.
4209 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4210 * coff-rs6000.c: Move all declarations and defines that are
4211 common to the xcoff backends into xcoff.h
4212 * coff64-rs6000.c: Ditto,
4214 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4216 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
4217 _bfd_coff_force_symnames in strings and
4218 _bfd_coff_debug_string_prefix_length to their default values.
4219 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4221 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4223 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4224 _bfd_coff_force_symnames in strings and
4225 _bfd_coff_debug_string_prefix_length to their default values.
4227 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4229 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4230 Check local_got_refcounts before dereferencing.
4232 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4233 before deciding we don't need R_PPC_PLT32 relocation.
4234 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4237 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4239 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4241 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4242 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4243 (elf_i386_relocate_section): Allow for .plt to go missing.
4244 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4245 can use a relative reloc for got as elf_i386_relocate_section.
4246 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4248 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4250 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4252 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4254 * Makefile.am (coff64-rs6000.lo): New rule.
4255 * Makefile.in: Regenerate.
4256 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4257 xcoff_is_local_label_name, xcoff_rtype2howto,
4258 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4259 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4260 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4261 (NO_COFF_SYMBOLS): Define.
4262 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4263 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4265 (MINUS_ONE): New macro.
4266 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4268 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4269 coff_SWAP_aux_out): Map to the new functions.
4270 * coff64-rs6000.c: New file.
4271 * libcoff.h (bfd_coff_backend_data): Add new fields
4272 _bfd_coff_force_symnames_in_strings and
4273 _bfd_coff_debug_string_prefix_length.
4274 (bfd_coff_force_symnames_in_strings,
4275 bfd_coff_debug_string_prefix_length): New macros for above fields.
4276 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4277 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
4278 of using coff_swap_sym_in directly.
4279 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4280 (coff_set_flags) Set magic for XCOFF64.
4281 (coff_compute_section_file_positions): Add symbol name length to
4282 string section length if bfd_coff_debug_string_prefix_length is
4284 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4285 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4286 using coff_swap_lineno_in directly.
4287 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4288 and _bfd_coff_debug_string_prefix_length fields.
4289 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4290 symbol names into strings table when
4291 bfd_coff_force_symnames_in_strings is true.
4292 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4293 SET_RELOC_VADDR): New macros.
4294 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4295 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4297 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4298 changes within RS6000COFF_C specific code.
4299 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4300 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4301 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4302 Extend existing hack on target name.
4303 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4305 * coff-tic54x.c (ticof): Keep up to date with new fields
4306 in bfd_coff_backend_data.
4307 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4308 targ_selvecs to include rs6000coff64_vec for rs6000.
4309 * configure.in: Add rs6000coff64_vec case.
4310 * cpu-powerpc.c: New bfd_arch_info_type.
4312 2000-04-24 Jeffrey A Law (law@cygnus.com)
4314 * config.bfd: Only disable elf32-hppa vectors, not all of the
4315 BSD and OSF configuration support. Provide (disabled) clauses
4317 * configure.in: Add clause for PA64 support.
4318 * configure: Rebuilt.
4320 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4321 (bfd_elf64_hppa_vec): Declare.
4323 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4324 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4325 (elf64-hppa.lo): Add dependencies.
4326 * Makefile.in: Rebuilt.
4328 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4330 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4332 * libhppa.h (dis_assemble_16): New function.
4333 (pa_arch): Added pa20w element.
4335 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4337 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4338 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4339 bfd_elf64_slurp_reloc_table.
4341 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4342 definitions to get external names.
4343 (elf_write_relocs): Renamed from write_relocs and make global.
4344 (elf_slurp_reloc_table): Make global.
4345 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4347 * archive.c (hpux_uid_gid_encode): New function.
4348 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4349 defined and the ID is greater than 99999.
4350 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4351 special uid/gid fields into 32 bit values.
4353 2000-04-21 Matthew Green <mrg@cygnus.com>
4355 * config.bfd: Add NetBSD/sparc64 support.
4357 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4358 David Mosberger <davidm@hpl.hp.com>
4359 Timothy Wall <twall@cygnus.com>
4360 Jim Wilson <wilson@cygnus.com>
4362 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4363 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4364 (BFD64_BACKENDS): Add elf64-ia64.lo.
4365 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4366 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4367 * Makefile.in: Rebuild.
4368 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4369 (bfd_ia64_arch): Declare.
4370 (bfd_archures_list): Add bfd_ia64_arch.
4371 * bfd-in2.h: Rebuild.
4372 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4373 * configure: Rebuild.
4374 * configure.host: (ia64-*-linux*): New host.
4375 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4376 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4377 * elf.c (prep_headers): Add bfd_arch_ia64.
4378 * libbfd.h: Rebuild.
4379 * reloc.c: Add IA-64 relocations.
4380 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4382 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4383 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4385 2000-04-21 Richard Henderson <rth@cygnus.com>
4387 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4388 contents when performing a partial link.
4389 (bfd_elf_d30v_reloc_21): Likewise.
4391 2000-04-20 H.J. Lu <hjl@gnu.org>
4393 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4394 patch to symbols defined by a shared object.
4395 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4397 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4400 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4401 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4403 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4405 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4406 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4407 (coff-ia64.lo): Add dependency.
4408 * Makefile.in: Regenerate.
4409 * coff-ia64.c: New file.
4410 * efi-app-ia32.c: Ditto.
4411 * efi-app-ia64.c: Ditto.
4412 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4413 (coff_set_flags): Ditto.
4414 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4415 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4416 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4417 * configure: Regenerate.
4418 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4419 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4420 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4421 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4422 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4423 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4424 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4425 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4426 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4427 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4428 (GET_PDATA_ENTRY): Ditto.
4429 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4430 data_start. Use above macros to read fields that are 64 bit wide for
4431 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4432 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4433 FileAlignment and SectionAlignment to minimum alignment if they
4435 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4436 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4437 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4438 Use above macros to write fields that are 64 bit wide for
4440 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4441 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4442 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4443 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4444 begin address, end address, and unwind info address only. Use
4445 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4447 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4448 HIGH3ADJ relocation names.
4449 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4450 * targets.c: Declare bfd_efi_app_ia32_vec and
4451 bfd_efi_app_ia64_vec.
4452 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4453 bfd_efi_app_ia64_vec.
4455 2000-04-17 Timothy Wall <twall@cygnus.com>
4457 * bfd-in2.h: Add prototypes for tic54x load page access.
4458 * bfd-in.h: Regenerate.
4459 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4460 in customized _set_arch_mach function.
4461 * coffcode.h (coff_set_alignment_hook): Set section load page if
4462 the appropriate macro is defined.
4463 (write_object_contents): Read section load page.
4465 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4467 * elf32-hppa.h: Update copyright date.
4469 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4470 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4472 * elf32-d30v.c (MAX32): Don't use LL suffix.
4473 (MIN32): Define in terms of MAX32.
4474 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4476 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4479 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4481 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4483 * dep-in.sed: Match space before file name, not after.
4484 * Makefile.am: Regenerate dependencies.
4485 * Makefile.in: Regenerate.
4487 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4488 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4489 extend without an if statement.
4491 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4493 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4495 * elf32-mips.c (gprel16_with_gp): Likewise.
4496 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4497 here using -0x40000, not (int)0xfffc0000.
4498 (elf32_hppa_size_of_stub): Likewise.
4500 2000-04-11 Timothy Wall <twall@cygnus.com>
4502 * coff-tic54x.c: Now builds with all targets.
4503 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4504 * Makefile.in: Regenerate.
4505 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4506 unitialized variable.
4508 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4510 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4511 --enable-build-warnings option.
4512 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4513 * Makefile.in, configure: Re-generate.
4515 2000-04-07 Nick Clifton <nickc@cygnus.com>
4517 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4518 BFD_RELOC_THUMB_PCREL_BLX.
4520 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4521 R_ARM_XPC25 and R_ARM_THM_PC22.
4523 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4524 R_ARM_XPC25 and R_ARM_THM_XPC22.
4525 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4526 R_ARM_[XPC25|THM_XPC22].
4528 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4529 elf/arm-oabi.h to elf/arm.h
4531 * Makefile.am: Fix dependency for elfarm-oabi.c
4532 * Makefile.in: Regenerate.
4534 * bfd-in2.h: Regenerate.
4535 * libbfd.h: Regenerate.
4537 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4539 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4540 and restore it on failure. Release newly allocated tdata on
4543 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4545 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4546 (decode_line_info): Set it. Report error if unit->line_offset is
4547 equal to or larger than it.
4549 2000-04-07 Timothy Wall <twall@cygnus.com>
4551 * targets.c: Added vecs for tic54x.
4552 * reloc.c: Added relocs for tic54x.
4553 * libbfd.h: Regenerated.
4554 * configure: Add TI COFF vecs for tic54x.
4555 * configure.in: Ditto.
4556 * config.bfd (targ_cpu): Recognize new tic54x target.
4557 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4558 * bfd-in2.h: Add tic54x target and relocations.
4559 * Makefile.am, Makefile.in: Add tic54x target.
4560 * archures.c (bfd_archures_list): Add tic54x target.
4561 * coff-tic54x.c: New.
4562 * cpu-tic54x.c: New.
4564 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4566 * elfcore.h (elf_core_file_p): call backend_object_p which
4567 thereby gets an opportunity to update the arch/machine type.
4569 2000-04-06 Timothy Wall <twall@cygnus.com>
4571 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4572 class. Handle SEC_CLINK and SEC_BLOCK flags.
4573 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4574 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4576 2000-04-06 Nick Clifton <nickc@cygnus.com>
4578 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4579 EF_INTERWORK if this is an unknown EABI.
4580 (elf32_arm_merge_private_bfd_data): Check EABI version
4581 numbers. Only check EF_xxx flags if the EABI version number
4583 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4584 if the EABI version number is unknown.
4585 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4586 if the EABI version number is unknown.
4588 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4590 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4591 BFD_RELOC_SH_LOOP_END.
4592 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4593 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4594 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4595 (sh_elf_reloc_loop): New function.
4596 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4598 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4599 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4600 * bfd-in2.h, libbfd.h: Regenerate.
4602 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4604 * po/bfd.pot: Regenerate.
4606 * Makefile.am: Remove extraneous mkdep comment.
4607 (MKDEP): Use gcc -MM rather than mkdep.
4608 (DEP): Quote when passing vars to sub-make. Add warning
4610 (DEP1): Rewrite for "gcc -MM".
4611 (CLEANFILES): Add DEP2.
4612 Update dependencies.
4613 * Makefile.in: Regenerate.
4615 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4617 * configure.in: Added corefile support for AIX 4.3. In particular,
4618 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4619 compiling rs6000-core.c.
4620 * configure: Regenerated.
4622 2000-04-03 H.J. Lu <hjl@gnu.org>
4624 * cache.c (bfd_open_file): Unlink the output file only if
4625 it has non-zero size.
4627 2000-04-01 Ken Block USG <block@zk3.dec.com>
4629 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4630 relative relocations for non-loaded sections in shared objects.
4631 (elf64_alpha_check_relocs): Similarly.
4633 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4635 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4636 BFD_RELOC_16 to switch for extended relocs.
4637 (MY_swap_ext_reloc_in): New.
4638 (MY_swap_ext_reloc_out): New.
4639 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4640 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4641 (NAME(aout,squirt_out_relocs)): Similarly use
4642 MY_swap_ext_reloc_out.
4643 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4645 2000-04-03 Kazu Hirata <kazu@hxi.com>
4647 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4648 the R_PCRWORD_B case.
4650 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4652 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4656 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4658 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4659 HOWTO references to bfd_elf_generic_reloc, that have
4660 partial_inplace == true, now use the new function. The function
4661 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4662 extends its fixes to the R_M32R_{16,24,32} relocs.
4663 The new logic in m32r_elf_lo16_reloc() has been removed, and
4664 it instead calls the new routine to obtain that functionality.
4666 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4668 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4669 elf32_avr_check_relocs, avr_final_link_relocate,
4670 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4671 elf32_avr_object_p): Add prototypes.
4672 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4673 (bfd_elf_avr_final_write_processing): Make static.
4675 2000-03-27 Denis Chertykov <denisc@overta.ru>
4677 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4678 * archures.c (bfd_architecture): Add AVR architecture.
4679 (bfd_archures_list): Add reference to AVR architecture info.
4680 * elf.c (prep_headers): Handle bfd_arch_avr.
4681 * reloc.c: Add various AVR relocation enums.
4682 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4684 * Makefile.am: Add support for AVR elf.
4685 * configure.in: Likewise.
4686 * config.bfd: Likewise.
4687 * Makefile.in: Regenerate.
4688 * configure: This too.
4689 * bfd-in2.h: And this.
4690 * libbfd.h: And this.
4692 2000-03-24 H.J. Lu <hjl@gnu.org>
4694 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4695 (elf64_alpha_find_reloc_at_ofs): Likewise.
4697 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4699 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4700 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4701 allowable range used to be -2**(n-1) to 2**n-1.
4702 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4703 "boolean overflow" with "bfd_reloc_status_type flag".
4705 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4707 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4709 2000-03-14 Kazu Hirata <kazu@hxi.com>
4711 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4712 of shrinks properly, including the last reloc.
4714 2000-03-13 Kazu Hirata <kazu@hxi.com>
4716 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4719 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4721 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4722 a format mismatch rather than an "error" from bfd_read such as
4723 bfd_error_file_truncated.
4725 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4727 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4728 sign-extension and big-endian compensation for
4729 R_MIPS_64 even in ld -r.
4731 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4733 * elf32-mips.c (mips_elf_next_relocation): Rename from
4734 mips_elf_next_lo16_relocation, and generalize to look
4735 for any relocation type.
4736 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4737 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4738 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4739 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4740 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4741 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4742 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4743 (mips_rtype_to_howto): Likewise.
4744 (mips_elf_calculate_relocation): Handle new relocs.
4745 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4746 are paired. The addend for R_MIPS_GNU_REL16_S2
4747 is shifted right two bits.
4749 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4751 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4752 comment, and ensure it doesn't happen again.
4753 (bfd_install_relocation): Same here.
4754 (_bfd_relocate_contents): Don't bother assigning unused signmask
4755 shift result. Fix typos in comments.
4756 Remove trailing whitespace throughout file.
4758 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4760 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4761 * bfd-in2.h: Rebuild.
4763 2000-03-06 Nick Clifton <nickc@cygnus.com>
4765 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4767 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4768 (SIZEOF_ILF_STRINGS): Redefine.
4769 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4770 relative reloc, as opposed to a section relative reloc.
4771 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4773 Add length of symbol's prefix to string pointer.
4774 Store a pointer to the symbol in the symbol pointer table.
4775 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4776 Initialise the symbol pointer table.
4777 Store the hint in the Hint/Name table.
4778 Make the jump reloc be symbol realtive, not section relative.
4779 Create an import symbol for imported code.
4781 2000-03-06 Catherine Moore <clm@cygnus.com>
4783 * elf.c (swap_out_syms): Check for null type_ptr.
4785 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4787 * aout-target.h (MY(write_object_contents)): Remove unused
4788 and unusable "#if CHOOSE_RELOC_SIZE".
4789 * pc532-mach.c (MY(write_object_contents)): Ditto.
4790 * netbsd.h (MY(write_object_contents)): Ditto.
4791 * hp300hpux.c (MY(write_object_contents)): Ditto.
4792 * freebsd.h (MY(write_object_contents)): Ditto.
4793 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4795 2000-02-29 H.J. Lu <hjl@gnu.org>
4797 * peicode.h (jtab): Make it static.
4799 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4800 defined and COFF_IMAGE_WITH_PE is not defined.
4801 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4802 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4804 2000-03-01 Nick Clifton <nickc@cygnus.com>
4806 * coff-arm.c (bfd_arm_process_before_allocation): Make
4807 'symndx' signed to prevent compile time warning.
4809 * coff-mcore.c: Remove unused prototype for pe_object_p.
4811 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4812 functions that are not used when COFF_IMAGE_WITH_PE is
4814 (struct sh_opcode): Change type of 'flags' field to unsigned
4815 long so that it can hold the USESAS flag.
4817 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4819 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4822 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4824 Remove unusued variables and code.
4825 (elf_backend_add_symbol_hook): Fix prototype.
4827 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4830 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4833 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4835 Remove unusued variables and code.
4836 (elf_backend_add_symbol_hook): Fix prototype.
4838 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4840 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4841 to unused function parameter.
4843 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4845 Use EMPTY_HOWTO to initialise empty howto slots.
4846 Remove unused variables.
4848 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4850 2000-03-01 H.J. Lu <hjl@gnu.org>
4852 * aoutx.h (aout_link_input_section_std): Pass "true" to
4853 the undefined_symbol callback.
4854 (aout_link_input_section_ext): Likewise.
4855 * bout.c (get_value): Likewise.
4856 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4857 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4859 (alpha_relocate_section): Likewise.
4860 * coff-arm.c (coff_arm_relocate_section): Likewise.
4861 * coff-i960.c (coff_i960_relocate_section): Likewise.
4862 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4863 * coff-mips.c (mips_relocate_section): Likewise.
4864 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4865 * coff-sh.c (sh_relocate_section): Likewise.
4866 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4867 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4868 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4869 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4870 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4871 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4872 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4873 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4874 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4875 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4876 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4877 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4878 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4879 * elflink.h (elf_link_output_extsym): Likewise.
4880 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4881 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4882 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4884 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4885 undefined_symbol callback when building shared library with
4886 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4888 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4889 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4890 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4891 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4892 (elf32_mips_get_relocated_section_content): Likewise.
4893 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4894 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4895 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4896 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4898 2000-02-28 Nick Clifton <nickc@cygnus.com>
4900 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4901 * Makefile.in: Regenerate.
4903 * configure.in: Add support for mips and sh pe vectors.
4904 * configure: regenerate.
4906 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4909 * targets.c: Add mips and sh pe vectors.
4911 * libpei.h (coff_final_link_postscript): Only define if not
4914 * coffcode.h: Add support for WinCE magic numbers.
4916 * peigen.c (pe_print_reloc): Update comment and rearrange
4917 appending of newline character.
4919 * peicode.h: Add support for Image Library Format.
4920 (pe_ILF_vars): Structure containing data used by ILF code.
4921 (pe_ILF_make_a_section): New function. Create a section based
4923 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4925 (pe_ILF_make_a_symbol): New function. Create a symbol based
4927 (pe_ILF_save_relocs): New function. Store the relocs created
4928 by pe_ILF_make_a_reloc in a section.
4929 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4931 (pe_ILF_object_p): New function. Return a bfd_target pointer
4933 (pe_bfd_object_p): If an ILF object is detected call
4934 pe_ILF_object_p on it.
4936 * coff-arm.c: Add support for WinCE relocs which are different
4937 from normal ARM COFF relocs.
4938 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4940 * coff-sh.c: Add support for sh-pe target.
4941 * pe-sh.c: New file. Support code for sh-pe target.
4942 * pei-sh.c: New file. Support code for sh-pe target.
4944 * pe-mips.c: New file. Support code for mips-pe target.
4945 * pei-mips.c: New file. Support code for mips-pe target.
4947 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4949 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4950 architecture if the object causing the bump is dynamic.
4951 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4952 and also don't it for memory ordering.
4953 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4955 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4957 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4958 calling bfd_get_section_size_before_reloc.
4959 (decode_line_info): Likewise.
4960 (_bfd_dwarf2_find_nearest_line): Likewise.
4962 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4964 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4965 name of the libtool directory.
4966 * Makefile.in: Rebuild.
4968 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4970 * som.c (SOM_HOWTO): Define.
4971 (som_hppa_howto_table): Use it.
4973 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4975 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4977 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4979 2000-02-24 Catherine Moore <clm@cygnus.com>
4981 * som.c (som_misc_symbol_info): Add field
4983 (som_bfd_derive_misc_symbol_info): Initialize
4985 (som_build_and_write_symbol_table): Keep track
4986 of secondary_def field.
4987 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4988 if secondary_def field is set.
4989 (som_bfd_ar_write_symbol_stuff): Initialize
4992 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4994 * dwarf2.c (read_address): Read 16-bits addresses.
4995 (parse_comp_unit): Accept addr_size == 2.
4997 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4999 * bfd-in.h: Update copyright date.
5001 2000-02-23 Linas Vepstas <linas@linas.org>
5003 * cpu-i370.c: New file.
5004 * elf32-i370.c: New file.
5005 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5006 (bfd_i370_arch): New.
5007 (bfd_archures_list): Add bfd_i370_arch.
5008 * elf.c (prep_headers): Add bfd_arch_i370.
5009 * Makefile.am: Add support for IBM 370 elf.
5010 * config.bfd: Likewise.
5011 * configure.in: Likewise.
5012 * libbfd.h (bfd_reloc_code_real_names): Likewise.
5013 * reloc.c (bfd_reloc_code_type): Likewise.
5014 * targets.c: Likewise.
5016 * Makefile.in: Regenerate.
5017 * configure: Regenerate.
5018 * bfd-in2.h: Regenerate.
5020 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5022 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5023 invalid relocation types, and change them to R_386_NONE.
5025 2000-02-22 H.J. Lu <hjl@gnu.org>
5027 * elflink.h (elf_link_add_object_symbols): If a version symbol is
5028 not defined, don't add a second ELF_VER_CHR.
5030 * elflink.h (elf_bfd_final_link): Call output_extsym for global
5031 symbols converted to local symbols even when stripping all
5033 (elf_link_output_extsym): Process global symbols converted to
5034 local symbols even if they are being stripped.
5036 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5038 * archures.c (bfd_octets_per_byte): Return unsigned int.
5039 (bfd_arch_mach_octets_per_byte): Ditto.
5040 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
5042 * section.c (bfd_get_section_size_before_reloc): Quell signed
5043 vs. unsigned comparison warning.
5044 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
5045 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
5046 change. What was I thinking?
5047 * bfd-in2.h: Regenerate.
5049 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
5050 (elf_gc_sections): Same here.
5051 (elf_gc_common_finalize_got_offsets): And here.
5053 2000-02-21 Ian Lance Taylor <ian@zembu.com>
5055 ELF HPPA doesn't work at present; remove it until it does.
5056 * config.bfd: Comment out setting targ_defvec to
5058 * Makefile.am: Rebuild dependencies.
5059 (BFD32_BACKENDS): Remove elf32-hppa.lo.
5060 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
5061 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
5062 * Makefile.in: Rebuild.
5063 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
5065 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5067 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
5068 is no bfd_free(). Revert bfd_free part of previous change.
5070 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5072 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
5074 (coff_compute_section_file_positions): Use bfd_free to pair
5076 (coff_write_object_contents): Likewise.
5078 * coff-rs6000.c (xcoff_howto_table_16): New variable.
5079 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
5081 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
5083 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
5084 (xcoff_ar_file_hdr_big): New structure.
5085 (SIZEOF_AR_FILE_HDR_BIG): New macro.
5086 (xcoff_ar_hdr_big): New structure.
5087 (SIZEOF_AR_HDR_BIG): New macro.
5088 (xcoff_big_format_p): New macro.
5089 (xcoff_ardata_big): New macro.
5090 (arch_xhdr_big): New macro.
5091 (xcoff_slurp_armap): Handle large archives.
5092 (xcoff_archive_p): Detect large archives.
5093 (xcoff_read_ar_hdr): Handle large archives.
5094 (xcoff_openr_next_archived_file): Handle large archives.
5095 (xcoff_generic_stat_arch_elt): Handle large archives.
5096 (xcoff_write_armap_old): Rename from xcoff_write_armap.
5097 (xcoff_write_armap_big): New function.
5098 (xcoff_write_armap): New function, dispatch to _old or _big.
5099 (xcoff_write_archive_contents_old): Rename from
5100 xcoff_write_archive_contents.
5101 (xcoff_write_archive_contents_big): New function.
5102 (xcoff_write_archive_contents): New function, dispatch to _old or
5105 2000-02-18 Richard Henderson <rth@cygnus.com>
5107 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
5108 and hide_symbol members.
5109 (elf_link_hash_copy_indirect): Remove.
5110 (elf_link_hash_hide_symbol): Remove.
5111 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
5112 and elf_backend_hide_symbol.
5113 (_bfd_elf_link_hash_copy_indirect): Declare.
5114 (_bfd_elf_link_hash_hide_symbol): Declare.
5115 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
5116 (_bfd_elf_link_hash_hide_symbol): Likewise.
5117 (_bfd_elf_link_hash_table_init): Don't init killed members.
5118 * elflink.h (elf_link_add_object_symbols): Use the bed function
5119 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
5120 (elf_link_assign_sym_version): Likewise.
5121 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
5122 (elf_backend_hide_symbol): Likewise.
5123 (elfNN_bed): Update for new members.
5125 2000-02-17 Kevin Buettner <kevinb@redhat.com>
5127 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
5128 STACK_END_ADDR): Define for new core file format.
5129 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
5130 for handling the vagaries of the various core file structures used
5131 by AIX over the years.
5132 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
5133 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
5134 core_dumpx structure.
5136 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5138 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
5139 (bfd_mach_sh3_dsp): Likewise.
5140 (bfd_mach_sh4): Reinstate.
5141 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
5142 * bfd-in2.h: Regenerate.
5143 * coff-sh.c (struct sh_opcode): flags is no longer short.
5144 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5145 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5146 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5147 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5148 (sh_opcodes): No longer const.
5149 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5150 (sh_insn_uses_reg): Check for USESAS and USESR8.
5151 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5152 (_bfd_sh_align_load_span): Return early for SH4.
5153 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5154 Take into account that field b of a parallel processing insn
5155 could be mistaken for a separate insn.
5156 * cpu-sh.c (arch_info_struct): New array elements for
5157 sh2, sh-dsp and sh3-dsp.
5158 Reinstate element for sh4.
5159 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5160 (SH4_NEXT): Reinstate.
5161 (SH3_NEXT, SH3E_NEXT): Adjust.
5162 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5163 * elf32-sh.c (sh_elf_set_private_flags): New function.
5164 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5165 (sh_elf_merge_private_data): New function.
5166 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5167 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5168 (bfd_elf32_bfd_merge_private_bfd_data): Change to
5169 sh_elf_merge_private_data.
5171 2000-02-13 Richard Henderson <rth@cygnus.com>
5173 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5174 hide_symbol members.
5175 (elf_link_hash_copy_indirect): New.
5176 (elf_link_hash_hide_symbol): New.
5177 * elflink.h (elf_link_add_object_symbols): Break out copy from
5178 indirect new new symbol to elf.c.
5179 (elf_link_assign_sym_version): Break out privatization of
5180 non-exported symbol to elf.c.
5181 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5182 (_bfd_elf_link_hash_hide_symbol): New.
5183 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5185 2000-02-13 Ian Lance Taylor <ian@zembu.com>
5187 * section.c (_bfd_strip_section_from_output): Add info parameter.
5188 If it passed as non-NULL, use it to check whether any input BFD
5189 has an input section which uses this output section. Change all
5191 * bfd-in2.h: Rebuild.
5193 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5194 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5196 * bfd-in2.h: Rebuild.
5198 2000-02-10 Timothy Wall <twall@cygnus.com>
5200 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5201 allow final modifications of swapped-in symbol.
5202 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5203 * coffcode.h (coff_write_relocs): Use macro
5204 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5205 symbol index should be set to -1.
5207 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
5209 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5210 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5211 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5212 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5213 sh_insns_uses_or_sets_freg): New functions.
5214 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5215 * (sh_insns_conflict): Use new functions and new macros to
5216 detect conflicts when two instructions both set same integer registers,
5217 both set same fp register, and both set special register.
5219 2000-02-09 Timothy Wall <twall@cygnus.com>
5221 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5222 swapping in sections, so that the swapping routines have access to
5225 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5227 * coff-go32.c: Update comment. Update copyright.
5229 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5231 * syms.c (bfd_decode_symclass)
5232 Two new class characters were added - 'V' and 'v'. The
5233 meaning of 'W' is now restricted to just weak non-object
5234 symbols. This allows differentiation between, for example,
5235 weak functions vs weak objects. nm for example now dumps:
5237 'w' = weak unresolved
5238 'V' = weak global object
5239 'v' = weak unresolved object
5241 (bfd_is_undefined_symclass): New function. Return true if the
5242 given symbol class represents and undefined/unresolved symbol.
5244 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5247 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5249 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5250 STT_ARM_16BIT flag set, but it is not attached to a data object
5251 return STT_ARM_16BIT so that it will be treated as code by the
5254 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5256 * coff-i386.c (i3coff_object_p): Remove prototype.
5259 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5260 to name. Update copyright.
5262 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5263 assignment to avoid warning. Update copyright.
5265 2000-01-24 Robert Lipe (robertl@sco.com)
5267 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5268 instead of using GNU C extension.
5270 2000-01-21 Nick Clifton <nickc@cygnus.com>
5272 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5273 amount from a bfd_in_memory structure.
5274 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5277 2000-01-14 Nick Clifton <nickc@cygnus.com>
5279 * linker.c (default_indirect_link_order): oops - fix incorrectly
5280 applied patch from Tim Wall.
5282 2000-01-13 Timothy Wall (twall@tiac.net>
5284 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5285 = scnhsz, filhsz, relsz, aoutsz, etc)
5287 * coffswap.h: Ditto.
5289 2000-01-13 Nick Clifton <nickc@cygnus.com>
5291 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5292 interwork thumb to arm stub.
5294 2000-01-13 Timothy Wall (twall@tiac.net>
5296 * archures.c (bfd_octets_per_byte): New function: Return
5298 (bfd_arch_mach_octets_per_byte): New function: Return target
5301 * section.c: Distinguish between octets and bytes for usage of
5302 _cooked_size, _raw_size, and output_offset. Clarify
5303 description of bfd_set_section_contents.
5305 * bfd-in2.h: Regenerate.
5307 * coffgen.c: Indicate that the offset parameter is in bytes, not
5310 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5311 where appropriate to get the octet offset when calling
5312 bfd_set_section_contents.
5313 (bfd_coff_reloc_link_order): Ditto.
5315 * linker.c (bfd_generic_reloc_link_order): Ditto.
5316 (_bfd_default_link_order): Ditto.
5318 * reloc.c (bfd_perform_relocation): Distinguish between octets
5319 and bytes. Use octets when indexing into octet data; use bytes
5320 when calculating target addresses.
5321 (bfd_install_relocation): Ditto.
5323 * srec.c (srec_write_section): Ditto.
5325 2000-01-13 Nick Clifton <nickc@cygnus.com>
5327 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5328 3 to 2. This allows 4 byte sized sections, which is necessary for
5329 dlltool to build functioning DLLs.
5331 2000-01-10 Philip Blundell <pb@futuretv.com>
5333 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5334 (arm*-*-conix*): New target.
5336 2000-01-10 Egor Duda <deo@logos-m.ru>
5338 * config.bfd: Include elf32_i386 vector to target list for cygwin
5341 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5342 * configure.in: Test for structure win32_pstatus_t in
5344 * configure: Regenerate.
5346 * elf.c (elfcore_grok_win32pstatus): New function: process
5347 win32_pstatus_t notes in elf core file.
5348 (elfcore_grok_note): Detect win32_pstatus notes.
5350 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5352 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5354 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5355 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5357 For older changes see ChangeLog-9899
5363 version-control: never