1 2000-12-12 Jim Wilson <wilson@redhat.com>
3 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
5 2000-12-08 Mark Salter <msalter@redhat.com>
7 * binary.c (binary_set_section_contents): Ignore sections
10 2000-12-12 Kazu Hirata <kazu@hxi.com>
12 * m68klinux.c: Fix formatting.
13 * m68knetbsd.c: Likewise.
14 * mipsbsd.c: Likewise.
15 * netbsd-core.c: Likewise.
17 * newsos3.c: Likewise.
18 * nlm32-alpha.c: Likewise.
19 * nlm32-i386.c: Likewise.
20 * nlm32-ppc.c: Likewise.
21 * nlm32-sparc.c: Likewise.
22 * nlmcode.h: Likewise.
23 * nlmswap.h: Likewise.
24 * nlm-target.h: Likewise.
25 * ns32knetbsd.c: Likewise.
27 2000-12-10 Fred Fish <fnf@be.com>
29 * elflink.h (elf_link_output_extsym): Don't complain about undefined
30 symbols in shared objects if allow_shlib_undefined is true.
32 2000-12-12 Nick Clifton <nickc@redhat.com>
34 * cpu-sh.c: Fix formattng.
35 * elf.c: Fix formattng.
36 * elf32-mips.c: Fix formattng.
37 * elf32-sh.c: Fix formattng.
38 * elf64-alpha.c: Fix formattng.
40 2000-12-09 Nick Clifton <nickc@redhat.com>
42 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
43 dwarf2_find_line_info as last parameter to invocation of
44 _bfd_dwarf2_find_nearest_line.
45 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
46 dwarf2_find_line_info as last parameter to invocation of
47 _bfd_dwarf2_find_nearest_line.
49 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
51 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
52 (BFD_LIBS): ...to here.
53 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
54 (BFD_LIBS_CFILES): ...to here.
55 * Makefile.in: Regenerate.
56 * configure.in: Remove dwarf.lo from the elf shell variable.
57 * configure: Regenerate.
58 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
59 * libcoff.h: Regenerate.
60 * coffgen.c (coff_find_nearest_line): Call
61 _bfd_dwarf2_find_nearest_line.
62 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
64 (read_abbrevs): Likewise
65 (decode_line_info): Likewise.
66 (parse_comp_unit): Likewise.
67 (comp_unit_find_nearest_line): Likewise.
68 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
69 * libbfd.h: Regenerate.
70 * elf.c (_bfd_elf_find_nearest_line): Update call.
71 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
72 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
73 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
74 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
75 (styp_to_sec_flags): Handle DWARF2 sections.
76 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
77 to _bfd_find_nearest_line.
78 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
79 call to _bfd_find_nearest_line.
81 2000-12-08 Kazu Hirata <kazu@hxi.com>
83 * coffgen.c: Fix formatting.
84 * elf-m10300.c: Likewise.
85 * elf32-i386.c: Likewise.
86 * elf32-i960.c: Likewise.
87 * elf32-m68k.c: Likewise.
88 * elf32-mcore.c: Likewise.
89 * elf32-ppc.c: Likewise.
90 * elf32-sh.c: Likewise.
91 * elf32-sparc.c: Likewise.
92 * elf32-v850.c: Likewise.
93 * elf64-alpha.c: Likewise.
94 * elf64-hppa.c: Likewise.
95 * elf64-mips.c: Likewise.
96 * elf64-sparc.c: Likewise.
98 2000-12-07 Kazu Hirata <kazu@hxi.com>
100 * elf32-ppc.c: Fix formatting.
101 * elf64-x86-64.c: Likewise.
103 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
105 From Ralf Baechle <ralf@gnu.org>
107 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
108 BFDs containing no sections or empty .text, .data or .bss sections
109 to be merged, regardless of their flags.
111 2000-12-06 Kazu Hirata <kazu@hxi.com>
113 * elf32-m32r.c: Fix formatting.
114 * elf32-m68hc11.c: Likewise.
115 * elf32-m68hc12.c: Likewise.
116 * elf32-m68k.c: Likewise.
117 * elf32-mcore.c: Likewise.
118 * elf32-pj.c: Likewise.
119 * elf32-ppc.c: Likewise.
121 2000-12-05 Kazu Hirata <kazu@hxi.com>
123 * elf32-fr30.c: Fix formatting.
124 * elf32-hppa.c: Likewise.
125 * elf32-i370.c: Likewise.
126 * elf32-i386.c: Likewise.
127 * elf32-i860.c: Likewise.
128 * elf32-i960.c: Likewise.
130 2000-12-03 Kazu Hirata <kazu@hxi.com>
132 * elf32-arm.h: Fix formatting.
133 * elf32-avr.c: Likewise.
134 * elf32-cris.c: Likewise.
135 * elf32-d10v.c: Likewise.
136 * elf32-d30v.c: Likewise.
137 * elf-hppa.h: Likewise.
138 * elf-m10200.c: Likewise.
139 * elf-m10300.c: Likewise.
141 2000-12-01 Chris Demetriou <cgd@sibyte.com>
143 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
144 bfd_mach_mips32_4k. Update FIXME comment.
145 * archures.c (bfd_mach_mips32): New constant.
146 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
147 the latter, renumber it.
148 * bfd-in2.h (bfd_mach_mips32): New constant.
149 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
150 the latter, renumber it.
151 * cpu-mips.c (I_mips32): New constant.
152 (I_mips4K, I_mips32_4k): Rename the former to the latter.
153 (arch_info_struct): Add bfd_mach_mips32 entry, replace
154 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
155 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
156 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
157 with E_MIPS_MACH_MIPS32_4K.
158 (_bfd_mips_elf_final_write_processing): Replace
159 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
160 bfd_mach_mips32 case.
161 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
162 comparison with support for MIPS32.
163 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
166 * aoutx.h (NAME(aout,machine_type)): Add cases for
167 bfd_mach_mips5 and bfd_mach_mips64.
168 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
169 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
170 * cpu_mips.c (I_mips5, I_mips64): New definitions.
171 (arch_info_struct): Add entries for bfd_mach_mips5 and
173 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
174 _bfd_mips_elf_print_private_bfd_data): Add cases for
175 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
176 (_bfd_mips_elf_final_write_processing): Add cases for
177 bfd_mach_mips5 and bfd_mach_mips64.
179 * bfd/aoutx.h (NAME(aout,machine_type)): Add a
180 bfd_mach_mips_sb1 case.
181 * bfd/archures.c (bfd_mach_mips_sb1): New constant.
182 * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
183 * bfd/cpu-mips.c (I_sb1): New constant.
184 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
185 * bfd/elf32-mips.c (elf_mips_mach): Add case for
187 (_bfd_mips_elf_final_write_processing): Add case for
190 2000-12-01 Joel Sherrill <joel@OARcorp.com>
192 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
193 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
194 (sparc*-*-rtems*): Switched from a.out to ELF.
196 2000-11-30 Jan Hubicka <jh@suse.cz>
198 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
199 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
200 (elf64-x86-64.lo): Add dependencies.
201 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
202 bfd_mach_x86_64_intel_syntax.
203 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
204 * config.bfd (x86_64): Add.
205 * configure.in: Add support for bfd_elf64_x86_64_vec.
206 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
207 (bfd_i386_arch, i8086_ar): Link in.
208 * elf64-x86-64.c: New file.
209 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
210 * targets.c (bfd_elf64_x86_64_vec): Add.
211 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
213 2000-11-30 Kazu Hirata <kazu@hxi.com>
215 * xcofflink.c: Fix formatting.
217 2000-11-28 Kazu Hirata <kazu@hxi.com>
219 * aoutx.h: Fix formatting.
220 * bfd-in.h: Likewise.
221 * bfd-in2.h: Likewise.
223 * cisco-core.c: Likewise.
224 * coff64-rs6000.c: Likewise.
225 * coffcode.h: Likewise.
226 * coffswap.h: Likewise.
227 * corefile.c: Likewise.
228 * elf32-mips.c: Likewise.
230 2000-11-27 Kazu Hirata <kazu@hxi.com>
232 * aout-adobe.c: Fix formatting.
233 * coff64-rs6000.c: Likewise.
234 * coffgen.c: Likewise.
235 * cofflink.c: Likewise.
237 2000-11-27 Philip Blundell <pb@futuretv.com>
239 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
240 (obj_coff_strings_written): New accessor macro for above.
241 * libcoff.h: Regenerate.
242 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
244 * coffcode.h (coff_write_object_contents): No need to write out
245 the string table if it's already been done.
247 2000-11-22 Philip Blundell <pb@futuretv.com>
249 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
250 weak undefined symbols.
252 2000-11-24 Nick Clifton <nickc@redhat.com>
254 * archures.c (bfd_mach_arm_5TE): Define.
255 (bfd_mach_arm+XScale): Define.
256 * bfd-in2.h: Regenerate.
258 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
259 BFD_RELOC_ARM_PCREL_BLX.
261 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
262 XScale machine numbers.
264 * config.bfd (xscale-elf): Add target.
265 (xscale-coff): Add target.
267 * cpu-arm.c: Add xscale machine name.
268 Add v5t, v5te and XScale machine numbers.
270 2000-11-23 Kazu Hirata <kazu@hxi.com>
272 * aix386-core.c: Fix formatting.
274 2000-11-22 Jim Wilson <wilson@redhat.com>
276 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
277 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
278 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
279 (ins_imms_scaled): Initialize sign_bit at function entry.
280 (elf64_ia64_operands): Add missing initializers.
281 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
282 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
283 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
284 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
285 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
287 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
288 and free_extsyms at function entry.
289 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
290 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
291 (get_got): Delete unused local srel.
292 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
293 (elfNN_ia64_relocate_section): Delete unused local dynindx.
295 2000-11-21 Kazu Hirata <kazu@hxi.com>
297 * coff-a29k.c: Fix formatting.
298 * coff-h8500.c: Likewise.
299 * coff-i960.c: Likewise.
300 * coff-ppc.c: Likewise.
301 * coff-rs6000.c: Likewise.
302 * coff-stgo32.c: Likewise.
303 * coff-tic54x.c: Likewise.
304 * coff-w65.c: Likewise.
305 * cpu-h8500.c: Likewise.
306 * cpu-hppa.c: Likewise.
307 * cpu-ns32k.c: Likewise.
309 * ecofflink.c: Likewise.
311 2000-11-21 Nick Clifton <nickc@redhat.com>
313 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
314 remove possibility of infinite loop.
316 2000-11-20 Kazu Hirata <kazu@hxi.com>
318 * aix386-core.c: Fix formatting.
319 * aout-adobe.c: Likewise.
320 * aout-arm.c: Likewise.
321 * aout-encap.c: Likewise.
322 * aout-ns32k.c: Likewise.
323 * aout-target.h: Likewise.
324 * aout-tic30.c: Likewise.
325 * aoutf1.h: Likewise.
327 * archive.c: Likewise.
328 * bfd-in.h: Likewise.
329 * bfd-in2.h: Likewise.
333 2000-11-17 H.J. Lu <hjl@gnu.org>
335 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
336 pltoff entries for DT_INIT and DT_FINI.
337 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
338 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
341 2000-11-16 Richard Henderson <rth@redhat.com>
343 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
344 (allocate_dynrel_entries): Likewise.
345 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
346 (set_pltoff_entry): Likewise.
347 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
348 (elfNN_ia64_reloc_type_lookup): Likewise.
349 (elfNN_ia64_install_value): Likewise.
350 (elfNN_ia64_relocate_section): Likewise.
351 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
352 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
354 2000-11-16 Kazu Hirata <kazu@hxi.com>
356 * cpu-a29k.c: Fix formatting.
357 * cpu-alpha.c: Likewise.
358 * cpu-arm.c: Likewise.
359 * cpu-avr.c: Likewise.
360 * cpu-d10v.c: Likewise.
361 * cpu-h8500.c: Likewise.
362 * cpu-hppa.c: Likewise.
363 * cpu-i370.c: Likewise.
364 * cpu-i386.c: Likewise.
365 * cpu-i960.c: Likewise.
366 * cpu-ia64-opc.c: Likewise.
367 * cpu-ia64.c: Likewise.
368 * cpu-m32r.c: Likewise.
369 * cpu-m68hc11.c: Likewise.
370 * cpu-m68hc12.c: Likewise.
371 * cpu-m68k.c: Likewise.
372 * cpu-m88k.c: Likewise.
373 * cpu-mips.c: Likewise.
374 * cpu-ns32k.c: Likewise.
375 * cpu-pj.c: Likewise.
376 * cpu-powerpc.c: Likewise.
377 * cpu-sh.c: Likewise.
378 * cpu-sparc.c: Likewise.
379 * cpu-tic54x.c: Likewise.
380 * cpu-v850.c: Likewise.
381 * cpu-vax.c: Likewise.
382 * cpu-w65.c: Likewise.
383 * cpu-we32k.c: Likewise.
384 * cpu-z8k.c: Likewise.
385 * dwarf1.c: Likewise.
386 * dwarf2.c: Likewise.
388 2000-11-15 Kazu Hirata <kazu@hxi.com>
390 * coff-arm.c: Fix formatting.
391 * coff-ppc.c: Likewise.
392 * coff-rs6000.c: Likewise.
393 * coff-sh.c: Likewise.
394 * coff-sparc.c: Likewise.
395 * coff-tic30.c: Likewise.
396 * coff-tic54x.c: Likewise.
397 * coff-tic80.c: Likewise.
398 * coff-w65.c: Likewise.
399 * coff-we32k.c: Likewise.
400 * coff-z8k.c: Likewise.
402 2000-11-15 Richard Henderson <rth@redhat.com>
404 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
405 section with the same ALLOC|LOAD flags as the source section.
407 2000-11-14 Jakub Jelinek <jakub@redhat.com>
409 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
410 by STO_ALPHA constants.
412 2000-11-14 Kazu Hirata <kazu@hxi.com>
414 * coff-pmac.c: Fix formatting.
415 * coff-ppc.c: Likewise.
417 2000-11-13 H.J. Lu <hjl@gnu.org>
419 * elflink.h (elf_link_add_object_symbols): Also add indirect
420 symbols for common symbols with the default version.
422 2000-11-09 Philip Blundell <pb@futuretv.com>
424 * section.c (STD_SECTION): Set gc_mark flag.
426 2000-11-11 Kazu Hirata <kazu@hxi.com>
428 * coff-i960.c: Likewise.
429 * coff-m68k.c: Likewise.
430 * coff-m88k.c: Likewise.
431 * coff-mcore.c: Likewise.
432 * coff-mips.c: Likewise.
434 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
436 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
438 2000-11-10 Kazu Hirata <kazu@hxi.com>
440 * coff-h8300.c: Fix formatting.
441 * coff-h8500.c: Likewise.
442 * coff-i386.c: Likewise.
443 * coff-i860.c: Likewise.
444 * coff-i960.c: Likewise.
445 * coff-ia64.c: Likewise.
447 2000-11-09 Kazu Hirata <kazu@hxi.com>
449 * archive.c: Fix formatting.
450 * archures.c: Likewise.
452 2000-11-07 Richard Henderson <rth@redhat.com>
454 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
455 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
456 * section.c (bfd_set_section_contents): Call memcpy if
457 section->contents set and location not equal to contents plus offset.
459 2000-11-08 Kazu Hirata <kazu@hxi.com>
461 * bfd-in.h: Fix formatting.
462 * bfd-in2.h: Likewise.
464 * binary.c: Likewise.
466 * coff-a29k.c: Likewise.
467 * coff-alpha.c: Likewise.
468 * coff-apollo.c: Likewise.
469 * coff-aux.c: Likewise.
471 2000-11-07 Kazu Hirata <kazu@hxi.com>
473 * aix386-core.c: Fix formatting.
474 * aoutf1.h: Likewise.
476 * archures.c: Likewise.
477 * armnetbsd.c: Likewise.
479 2000-11-07 Alan Modra <alan@linuxcare.com.au>
481 * coff-h8300.c (special): Adjust reloc address.
483 2000-11-06 Steve Ellcey <sje@cup.hp.com>
485 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
486 to differentiate elf32 and elf64 on ia64.
487 * bfd-in2.h: Regenerate.
488 * config.bfd: Add target for "ia64*-*-hpux*".
489 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
490 * configure: Regenerate.
491 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
492 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
494 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
495 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
496 * Makefile.in: Regnerate.
497 * elf64-ia64.c: Deleted.
498 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
500 2000-11-06 Kazu Hirata <kazu@hxi.com>
502 * aout-adobe.c: Fix formatting.
503 * aout-arm.c: Likewise.
504 * aout-cris.c: Likewise.
505 * aout-encap.c: Likewise.
506 * aout-ns32k.c: Likewise.
507 * aout-target.h: Likewise.
508 * aout-tic30.c: Likewise.
510 2000-11-05 Philip Blundell <philb@gnu.org>
512 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
513 BFDs containing no sections to be merged, regardless of their flags.
515 2000-11-04 Philip Blundell <philb@gnu.org>
517 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
518 if a relocation for an undefined symbol also results in an
521 2000-11-06 Christopher Faylor <cgf@cygnus.com>
523 * config.bfd: Add support for Sun Chorus.
525 2000-11-05 David O'Brien <obrien@FreeBSD.org>
527 * configure.in: Recognize alpha-*-freebsd*.
528 * configure: Regenerate.
530 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
532 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
533 (Chunk): New global variable set by a parameter in objcopy.c.
534 (S3Forced): New global variable set by a parameter in
536 (srec_set_section_contents): If S3Forced is true, always generate
538 (srec_write_section): Use 'Chunk' to limit maximum length of S
541 2000-11-02 Per Lundberg <plundis@chaosdev.org>
543 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
544 * Makefile.in: Regenerate.
545 * bfd-in2.h: Regenerate.
546 * po/bfd.pot: Regenerate.
548 2000-10-31 Philip Blundell <philb@gnu.org>
550 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
551 EF_SOFT_FLOAT if it is defined.
553 2000-10-27 Philip Blundell <philb@gnu.org>
555 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
556 attempts to mix PIC code with non-PIC, just mark the output as
557 being position dependent.
558 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
559 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
560 all mismatches, not just the first one.
562 2000-10-25 Chris Demetriou <cgd@sibyte.com>
564 * ieee.c (ieee_archive_p): Plug one of many possible
565 memory leaks in error handling.
567 2000-10-20 Jakub Jelinek <jakub@redhat.com>
569 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
570 elf32_sparc_object_p, elf32_sparc_final_write_processing):
572 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
573 sparc64_elf_object_p): Support v9b.
574 * archures.c: Declare v8plusb and v9b machines.
576 * cpu-sparc.c: Ditto.
578 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
580 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
583 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
584 (SYMBOL_CALLS_LOCAL): New macro.
585 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
586 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
587 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
588 (ppc_elf_relocate_section): Use flag variable to determine
589 whether the relocation refers to a local symbol.
590 Test whether a PLTREL24 reloc will produce a reloc by looking
591 to see whether a PLT entry was made.
593 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
595 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
596 entries that could serve as a definition for a weak symbol.
598 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
600 From Ralf Baechle <ralf@gnu.org>
602 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
603 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
604 against local symbols.
605 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
607 2000-10-12 Alan Modra <alan@linuxcare.com.au>
609 * section.c (struct sec): Add kept_section.
610 (struct bfd_comdat_info): Remove sec, we can use above.
611 (STD_SECTION): Add initializer.
612 (bfd_make_section_anyway): Init here too.
614 * bfd-in2.h: Regenerate.
616 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
618 (elf_link_input_bfd): Set all asection->symbol->value's here, and
619 fudge values for discarded link-once section symbols.
621 * elf64-hppa.c: Include alloca-conf.h
623 2000-10-11 Alan Modra <alan@linuxcare.com.au>
625 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
627 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
629 2000-10-10 Alan Modra <alan@linuxcare.com.au>
631 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
633 2000-10-10 Tom Rix <trix@redhat.com>
635 * section.c (bfd_make_section_anyway): Release newsect ptr when
636 newsect->symbol fails to alloc. Use bfd_release instead of free.
638 2000-10-09 Richard Henderson <rth@cygnus.com
640 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
641 (elf64_ia64_unwind_entry_compare): New.
642 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
644 2000-10-07 Alan Modra <alan@linuxcare.com.au>
646 * elflink.h (size_dynamic_sections): Don't create various tags if
647 .dynstr is excluded from the link. Don't set first dynsym entry
648 if dynsymcount is zero.
649 (elf_bfd_final_link): Don't try to swap out dynamic syms if
650 .dynsym excluded from the link. Don't try to write any dynamic
651 sections excluded from the link.
653 * elf.c (swap_out_syms): Handle global section symbols.
655 2000-10-05 DJ Delorie <dj@redhat.com>
657 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
658 * coffcode.h (coff_set_alignment_hook): read extended reloc count
659 (coff_write_relocs): write extended reloc count
660 (coff_write_object_contents): account for extended relocs
662 2000-10-05 Jim Wilson <wilson@cygnus.com>
664 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
666 * elf.c (_bfd_elf_make_section_from_shdr): Call the
667 elf_backend_section_flags function.
668 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
670 (elf64_ia64_section_flags): New function containing flag conversion
672 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
673 * elfxx-target.h (elf_backend_section_flags): Define.
674 (elfNN_bed): Initialize elf_backend_section_flags field.
676 2000-10-02 Alan Modra <alan@linuxcare.com.au>
678 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
679 _bfd_elf32_gc_record_vtable. Correct a comment.
681 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
683 From Ralf Baechle <ralf@gnu.org>
685 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
686 produces binaries with got[1] = 0x80000001 to differenciate them
687 for the dynamic linker from the broken binaries produced by old
690 2000-09-30 Petr Sorfa <petrs@sco.com>
692 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
693 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
694 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
695 * configure: Regenerate.
697 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
699 Define two bfd_targets for absence and presence of leading
700 underscore on symbols. Make sure to only link same kind.
701 * elf32-cris.c (cris_elf_object_p,
702 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
703 cris_elf_merge_private_bfd_data): New.
704 (elf_backend_object_p, elf_backend_final_write_processing,
705 bfd_elf32_bfd_print_private_bfd_data,
706 bfd_elf32_bfd_merge_private_bfd_data): Define.
707 <Target vector definition>: Include elf32-target.h twice with
708 different macro settings:
709 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
710 bfd_elf32_us_cris_vec.
711 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
712 (elf_symbol_leading_char): First as 0, then '_'.
713 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
714 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
715 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
716 * configure: Regenerate.
717 * targets.c: Declare bfd_elf32_us_cris_vec.
718 * po/bfd.pot: Regenerate.
720 2000-09-29 Momchil Velikov <velco@fadata.bg>
722 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
723 R_ARM_THM_PC22 relocations.
725 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
727 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
729 2000-09-29 Momchil Velikov <velco@fadata.bg>
731 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
732 is has the SEC_HAS_CONTENTS flag set.
734 2000-09-28 Örjan Friberg <orjanf@axis.com>
735 Hans-Peter Nilsson <hp@axis.com>
737 * aout-cris.c (N_TXTADDR): Define.
739 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
741 * som.c: Include alloca-conf.h.
742 * Makefile.am: "make dep-am"
743 * Makefile.in: Regenerate.
745 2000-09-27 Alan Modra <alan@linuxcare.com.au>
747 * elf32-hppa.c (plt_stub): New.
748 (PLT_STUB_ENTRY): Define.
749 (elf32_hppa_link_hash_table): Change multi_subspace to packed
750 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
751 (elf32_hppa_link_hash_table_create): Init to suit.
752 (elf32_hppa_check_relocs): Set has_12bit_branch and
753 has_17bit_branch as appropriate.
754 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
756 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
757 Add space for plt_stub as needed.
758 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
759 functions at plt_stub.
760 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
761 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
763 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
764 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
765 of fixed size, and if negative, disable handling of input sections
766 before stub section. Set up default stub group size depending
767 on detected branch relocs.
768 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
769 ensure different offsets from sym_value aren't rounded to
770 different 2k blocks. Use lrsel and rrsel for other stubs too for
771 consistency rather than necessity.
772 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
773 (final_link_relocate): Likewise.
774 (elf32_hppa_relocate_section): Likewise.
776 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
777 (_bfd_elf_hppa_gen_reloc_type): Generate them.
778 (elf_hppa_final_link_relocate): Handle them.
779 (elf_hppa_relocate_insn): Likewise.
780 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
782 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
784 * elfcode.h (elf_object_p): Preserve and clear abfd section
785 information. Restore at error.
787 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
789 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
790 is empty, make sure that its rva also 0. NT loader dislikes
793 2000-09-26 Steve Ellcey <sje@cup.hp.com>
795 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
798 2000-09-21 Alan Modra <alan@linuxcare.com.au>
800 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
801 currently unused RELATIVE_DYNAMIC_RELOCS code.
802 (hppa_discard_copies): Likewise.
803 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
804 comments. Don't check non-code output sections for stub grouping.
806 2000-09-20 Alan Modra <alan@linuxcare.com.au>
808 * section.c (bfd_get_unique_section_name): Return NULL if
811 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
813 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
814 instruction sequence to actually work.
815 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
818 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
820 * elf32-sh.c (sh_elf_relocate_section): Use
821 _bfd_final_link_relocate to apply the relocation against a section
822 symbol, when doing relocatable links.
824 2000-09-18 Alan Modra <alan@linuxcare.com.au>
826 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
828 (stub_hash_newfunc): Here too.
829 (hppa_add_stub): And here.
830 (elf32_hppa_link_hash_table): Remove stub_section_created,
831 reloc_section_created, first_init_sec and first_fini_sec. Add
833 (elf32_hppa_link_hash_table_create): Init to suit.
834 (hppa_get_stub_entry): Add support for grouping stub sections.
835 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
836 section code. Index stub vars by section->id.
837 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
838 exit paths. Zap allocation of above removed vars. Refine
841 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
842 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
843 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
844 rather than pointer to bfd_link_info.
845 (hppa_add_stub): Likewise.
846 (final_link_relocate): Likewise.
848 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
850 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
853 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
855 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
856 ld/emulparams/shelf.sh.
858 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
860 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
861 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
862 * bfd-in2.h: Regenerate.
864 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
866 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
867 LITUSE relocations incorrectly if -relax is specified on the ld
868 command line and the displacement field of the load or store
869 instruction is non-zero. (Patch by paul.winalski@compaq.com)
871 2000-09-15 Alan Modra <alan@linuxcare.com.au>
873 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
875 (elf32_hppa_size_stubs): Instead correctly find the first .init
876 and .fini section here.
878 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
880 * elf32-hppa.c (clobber_millicode_symbols): New function.
881 (elf32_hppa_size_dynamic_sections): Call it.
883 2000-09-14 Alan Modra <alan@linuxcare.com.au>
885 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
886 packed. Add plabel, plt_abs packed booleans.
887 (hppa_link_hash_newfunc): Init new fields.
888 (PLABEL_PLT_ENTRY_SIZE): Define.
889 (hppa_stub_name): Use size_t len vars.
890 (hppa_add_stub): Likewise.
891 (elf32_hppa_build_stubs): Likewise.
892 (hppa_build_one_stub): Kill some compiler warnings.
893 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
894 if dynamic linking. Munge the local plt offsets into
895 local_got_refcounts. Set h->plabel for all global PLABELs. Use
896 size_t len vars. Add assert for plabel addend.
897 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
898 (elf32_hppa_hide_symbol): New function.
899 (elf_backend_hide_symbol): Define.
900 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
901 with h->plabel set. Don't make plt entries to have dynamic syms
902 when they have been forced local. If plt entry is used by a
903 plabel, make it PLABEL_PLT_ENTRY_SIZE.
904 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
905 Set up .plt offsets for local syms.
906 (elf32_hppa_relocate_section): Initialise plt entries for local
907 syms. Leave weak undefined plabels zero. Make global plabel
908 relocs against function symbol, and leave the addend zero.
909 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
910 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
911 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
912 relocs instead of SEGREL32 for dynamic got relocs.
913 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
914 (elf_backend_got_header_size): Adjust.
915 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
917 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
918 (hppa_type_of_stub): Use it instead of #if 0
919 (hppa_discard_copies): Use it here too.
920 (elf32_hppa_size_dynamic_sections): And here.
922 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
923 (elf32_hppa_link_hash_table_create): And here.
924 (hppa_build_one_stub): And here. Instead keep track of stub
925 offset using _raw_size.
926 (elf32_hppa_size_stubs): Likewise.
927 (elf32_hppa_build_stubs): Likewise.
928 (hppa_size_one_stub): Likewise. Resize reloc section too.
930 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
931 first_fini_sec handling. Don't search for reloc section or set
932 hplink->reloc_section_created here.
933 (elf32_hppa_size_stubs): Instead search for reloc sections, and
934 set reloc_section_created here.
935 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
936 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
938 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
940 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
941 with `hplink->root.'.
942 (elf32_hppa_check_relocs): Likewise.
943 (elf32_hppa_gc_sweep_hook): Likewise.
944 (elf32_hppa_adjust_dynamic_symbol): Likewise.
945 (hppa_handle_PIC_calls): Likewise.
946 (elf32_hppa_size_dynamic_sections): Likewise.
947 (elf32_hppa_set_gp): Likewise.
948 (elf32_hppa_relocate_section): Likewise.
949 (elf32_hppa_finish_dynamic_symbol): Likewise.
950 (elf32_hppa_finish_dynamic_sections): Likewise.
952 From David Huggins-Daines <dhd@linuxcare.com>
953 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
954 defined weak symbols in shared links.
955 (final_link_relocate): Calls to defined weak symbols in shared
956 objects must go via import stubs, as the target might not be known
959 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
961 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
962 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
963 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
964 the original entries with EMPTY_HOWTOs, and added new ones to fill
966 (sh_elf_info_to_howto): Make sure the new gap isn't used.
967 (sh_elf_relocate_section): Likewise.
969 2000-09-13 Anders Norlander <anorland@acc.umu.se>
971 * cpu-mips.c (arch_info_struct): Add mips:4K
972 * bfd-in2.h (bfd_mach_mips4K): New define.
973 * archures.c: Add bfd_mach_mips4K to comment.
974 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
975 E_MIPS_ARCH_2 for bfd_mach_mips4K.
977 2000-09-13 Marco Franzen <marcof@thyron.com>
979 * som.c (som_write_symbol_strings): Do not used fixed buffers,
980 use size_t as a counter.
981 (som_write_space_strings): Similarly.
983 2000-09-12 Jason Eckhardt <jle@cygnus.com>
985 * elf32-i860.c (elf32_i860_relocate_pc26): New function
987 (elf32_i860_relocate_section): Invoke new function from here.
989 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
991 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
994 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
996 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
997 target section name instead of dumping core when the target symbol is
1000 2000-09-09 Kazu Hirata <kazu@hxi.com>
1002 * riscix.c: Remove DEFUN.
1004 2000-09-08 Nick Clifton <nickc@redhat.com>
1006 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1007 initialise flags in output bfd if the input bfd is the default
1008 architecture with the default flags.
1010 2000-09-08 Kazu Hirata <kazu@hxi.com>
1012 * archive.c: Fix formatting.
1013 * coff-arm.c: Likewise.
1014 * doc/chew.c: Likewise.
1016 2000-09-08 Alan Modra <alan@linuxcare.com.au>
1018 * section.c (bfd_get_unique_section_name): Put a dot before the
1021 2000-09-07 Kazu Hirata <kazu@hxi.com>
1023 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1024 * elf.c: Fix formatting.
1026 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
1028 * config.bfd (sh-*-linux*): Added.
1029 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1030 * targets.c: Declare them.
1031 * elf32-sh-lin.c: New file.
1032 * Makefile.am: Compile it.
1033 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1034 * configure, Makefile.in: Rebuilt.
1036 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
1038 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1039 pseduo-section when determining where the TOC ends.
1041 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1042 output x_tvndx as it is only two bytes wide.
1044 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1045 reloc is 26 or 32 bits wide.
1047 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1048 for relocs that don't change anything. Also look at the full
1051 2000-09-06 Philip Blundell <philb@gnu.org>
1053 * config.bfd (arm*-*-uclinux*): New target.
1055 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1057 * configure: Rebuilt with new libtool.m4.
1059 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1061 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1062 word for variable name.
1063 * bfd-in2.h: Regenerate.
1065 2000-09-05 Nick Clifton <nickc@redhat.com>
1067 * config.in: Regenerate.
1068 * libbfd.h: Regenerate.
1069 * po/bfd.pot: Regenerate.
1070 * doc/bfdint.texi: Remove CVS date string - it foils compares with
1073 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
1075 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
1077 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1079 Shared library and PIC support.
1080 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1081 (GOT_ENTRY_SIZE): New.
1082 (ELF_DYNAMIC_INTERPRETER): New.
1083 (STUB_SUFFIX): Define.
1084 (LONG_BRANCH_PIC_IN_SHLIB): Define.
1085 (RELATIVE_DYNAMIC_RELOCS): Define.
1086 (enum elf32_hppa_stub_type): New.
1087 (struct elf32_hppa_stub_hash_entry): Rename offset to
1088 stub_offset. Add a number of new fields.
1089 (struct elf32_hppa_link_hash_entry): New.
1090 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
1092 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1093 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1094 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
1096 (hppa_link_hash_newfunc): New function.
1097 (elf32_hppa_link_hash_table_create): Use above function. Init new
1099 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
1100 instead of addend, and remove sym_name from args. Don't use
1101 symbol name for local syms, instead use sym index.
1102 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1103 stub type rather than size. Pass in hash and handle import stub
1104 case. Also pass in reloc instead of offset so we can calculate
1105 PCREL22F and PCREL12F branches properly.
1106 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
1107 import and export stubs too.
1108 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
1109 import and export stub sizing.
1110 (elf32_hppa_check_relocs): New function.
1111 (elf32_hppa_adjust_dynamic_symbol): New function.
1112 (hppa_discard_copies): New function.
1113 (elf32_hppa_size_dynamic_sections): New function.
1114 (elf_backend_size_dynamic_sections): Define.
1115 (elf32_hppa_finish_dynamic_symbol): New function.
1116 (elf_backend_finish_dynamic_symbol): Define.
1117 (elf32_hppa_size_stubs): Stash params in link hash table, and move
1118 some local vars into the link hash table too. For shared links,
1119 trundle over function syms, generating export stubs. Handle
1120 PCREL22F branches. Break out stub creation code from here..
1121 (hppa_add_stub): .. to here. New function.
1122 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1123 call the bfd linker. Use elf_gp to record global pointer.
1124 Calculate a value from sections if $global$ is missing.
1125 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1126 (elf32_hppa_gc_mark_hook): New function.
1127 (elf_backend_gc_mark_hook): Define.
1128 (elf32_hppa_gc_sweep_hook): New function.
1129 (elf_backend_gc_sweep_hook): Define.
1130 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1131 Add rel to args, and remove howto, input_bfd, offset, addend,
1132 sym_name as we can recalculate these locally. Handle calls to
1133 dynamic objects, extra PIC relocs, PCREL22F branches. Change
1134 handling of undefined weak syms. Check that stubs are in range.
1135 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
1136 message on hitting a DPREL21L reloc that needs fixing. Subtract
1137 off PC for PCREL14F. Break out code that does a stub lookup from
1139 (hppa_get_stub_entry): ..to here. New function.
1140 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1141 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1143 (elf32_hppa_finish_dynamic_sections): New function.
1144 (elf_backend_finish_dynamic_sections): Define.
1145 (elf_backend_final_write_processing) Define.
1146 (hppa_handle_PIC_calls): New function.
1147 (elf32_hppa_build_stubs): Call it. Pass link_info to
1148 hppa_build_one_stub.
1149 (elf32_hppa_create_dynamic_sections): New function
1150 to create .plt and .got then set .plt flags correctly.
1151 (elf_backend_create_dynamic_sections): Define.
1152 (elf32_hppa_object_p): New function.
1153 (elf_backend_object_p): Define.
1154 (elf32_hppa_elf_get_symbol_type): New function.
1155 (elf_backend_get_symbol_type): Define.
1156 (elf_backend_can_gc_sections): Define.
1157 (elf_backend_want_got_plt): Define.
1158 (elf_backend_plt_alignment): Set to 2.
1159 (elf_backend_plt_readonly): Define.
1160 (elf_backend_want_plt_sym): Define.
1161 (elf_backend_got_header_size): Reserve one entry.
1163 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1164 (elf32_hppa_size_stubs): Pass in multi_subspace.
1165 (elf32_hppa_set_gp): Declare.
1167 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1168 (bfd_get_unique_section_name): New function.
1169 * bfd_in2.h: Regenerate.
1171 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1172 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1175 From David Huggins-Daines <dhd@linuxcare.com>
1176 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1177 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1178 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1179 been updated in finish_dynamic_symbol before modifying function
1182 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1183 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
1184 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1185 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
1186 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
1187 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1188 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
1189 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1191 From David Huggins-Daines <dhd@linuxcare.com>
1192 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1193 style of local labels as well.
1195 2000-09-03 Philip Blundell <philb@gnu.org>
1197 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1198 references to undefined symbols in debugging sections.
1200 2000-09-02 H.J. Lu <hjl@gnu.org>
1202 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1203 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1204 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1207 2000-09-02 Jason Eckhardt <jle@cygnus.com>
1209 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1210 (elf32_i860_is_local_label_name): New function and prototype.
1212 2000-09-02 Nick Clifton <nickc@redhat.com>
1214 * configure.in: Increase version number to 2.10.91.
1215 * configure: Regenerate.
1216 * aclocal.m4: Regenerate.
1217 * config.in: Regenerate.
1218 * po/bfd.pot: Regenerate.
1220 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1222 * elf.c (_bfd_elf_make_section_from_shdr): Add
1223 .gnu.linkobce.wi. to the list of debug section names.
1225 2000-09-02 Nick Clifton <nickc@redhat.com>
1227 * dwarf2.c (find_debug_info): New function: Locate a section
1228 containing dwarf2 debug information.
1229 (bfd_dwarf2_find_nearest_line): Find all sections containing
1230 debug information and include them in the stash.
1232 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1234 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1235 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1236 (sh_reloc_map): Add new relocs.
1237 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1238 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1239 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1240 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1242 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1243 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1244 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1245 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1246 New array constants.
1247 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1249 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1250 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1251 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1252 elf_sh_plt_reloc_offset): Define.
1253 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1254 elf_sh_link_hash_table): New structs.
1255 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1256 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1258 (elf_backend_create_dynamic_sections,
1259 bfd_elf32_bfd_link_hash_table_create,
1260 elf_backend_adjust_dynamic_symbol,
1261 elf_backend_size_dynamic_sections,
1262 elf_backend_finish_dynamic_symbol,
1263 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1264 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1265 elf_backend_got_header_size, elf_backend_plt_header_size):
1267 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1268 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1270 * bfd-in2.h, libbfd.h: Rebuilt.
1272 2000-09-01 Alan Modra <alan@linuxcare.com.au>
1274 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1277 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
1279 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1280 not initialized, set them to indicate the SH1 instruction set.
1282 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1284 * acinclude.m4: Include libtool and gettext macros from the
1286 * aclocal.m4, configure: Rebuilt.
1288 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
1290 * elf.c: Eliminate references to __sparcv9 macro; replace with
1291 autoconf variables HAVE_PSINFO32_T etc.
1292 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1293 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1295 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1296 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1297 * aclocal.m4: Ditto.
1298 * configure: Regenerate.
1300 2000-08-27 Alan Modra <alan@linuxcare.com.au>
1302 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1303 for any shared link, not just shared -Bsymbolic.
1304 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1305 any shared link, and pass link info to it.
1306 (elf_i386_size_dynamic_sections): Update comment.
1307 (elf_i386_discard_copies): Modify to discard relocs for symbols
1308 that have been forced local.
1309 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1310 that have been forced local.
1312 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
1314 * elflink.h (elf_link_add_object_symbols): Allow common
1315 symbols to have an alignment of 1 if explicitly requested, and
1316 not overridden by other definitions.
1318 2000-08-22 Doug Kwan <dkwan@transmeta.com>
1320 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1321 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1323 2000-08-22 H.J. Lu <hjl@gnu.org>
1325 * elf-bfd.h (elf_link_hash_table): Add runpath.
1327 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1328 * bfd-in2.h: Rebuilt.
1330 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1331 "runpath" field to NULL.
1332 (bfd_elf_get_runpath_list): New function.
1334 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1337 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
1339 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1340 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1341 explicitly. Improve validation of r_type.
1343 2000-08-21 H.J. Lu <hjl@gnu.org>
1345 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1346 dynamic allocated content space. Add a comment to remind us that
1347 one day this ought to be fixed.
1348 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1349 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1350 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1352 2000-08-21 Jason Eckhardt <jle@cygnus.com>
1354 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
1355 field with the newly relocated value instead of adding it to the
1356 existing immediate field.
1357 (elf32_i860_relocate_splitn): Likewise.
1358 (elf32_i860_relocate_highadj): Likewise.
1360 2000-08-16 Jason Eckhardt <jle@cygnus.com>
1362 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
1363 was previously just a stub).
1365 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
1367 * elflink.c (_bfd_elf_create_got_section): Don't abort().
1369 (_bfd_elf_create_dynamic_sections): Likewise.
1371 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
1373 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
1374 for undefined symbols to be the beginning of the section.
1376 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
1377 four extra entries at the beginning of the .rela.plt section.
1378 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
1379 section to account for the four reserved entries in the .plt section.
1381 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
1383 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
1384 to the list of NOPs we recognize after a branch-and-link.
1385 Use the ori NOP when one is needed.
1387 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
1390 2000-08-14 Jim Wilson <wilson@cygnus.com>
1392 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
1393 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
1394 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
1397 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
1399 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
1401 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1403 * elf32-i860.c (elf32_i860_relocate_section): New function.
1404 (i860_final_link_relocate): New function.
1405 (elf32_i860_relocate_splitn): New function.
1406 (elf32_i860_relocate_pc16): New function.
1407 (elf32_i860_relocate_highadj): New function.
1408 (elf32_i860_howto): Minor adjustments to some relocations.
1409 (elf_info_to_howto_rel): Define.
1410 (elf_backend_relocate_section): Define.
1412 2000-08-10 Nick Clifton <nickc@cygnus.com>
1414 * elf32-arm.h: Fix formatting.
1416 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
1418 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
1420 2000-08-08 Jason Eckhardt <jle@cygnus.com>
1422 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
1424 2000-08-07 Kazu Hirata <kazu@hxi.com>
1426 * ieee.c (ieee_write_debug_part): Rewrite a comment.
1427 * elf64-ia64.c: Fix a typo.
1429 2000-08-05 Jason Eckhardt <jle@cygnus.com>
1431 * elf32-i860 (elf32_i860_howto_table): New structure.
1432 (lookup_howto): New function.
1433 (elf32_i860_reloc_type_lookup): New function.
1434 (elf32_i860_info_to_howto_rela): New function.
1435 (elf_code_to_howto_index): New structure.
1436 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
1437 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
1438 elf32_i860_reloc_type_lookup.
1440 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
1442 * som.c (struct fixup_format): Constify `format'.
1443 (som_hppa_howto_table): Use SOM_HOWTO macro.
1444 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
1445 (som_bfd_reloc_type_lookup): Likewise.
1446 (compare_subspaces): Remove unused `count1', `count2'.
1447 (som_begin_writing): Remove unused `total_reloc_size'.
1448 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
1449 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
1450 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
1451 (som_find_nearest_line): Decorate unused parameter(s).
1452 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
1453 (som_bfd_link_split_section): Likewise.
1455 2000-08-03 Nick Clifton <nickc@cygnus.com>
1457 * section.c: Restore backed out code.
1458 * elf.c: Restore backed out code.
1459 (copy_private_bfd_data): Fix bug preventing stipped dynamic
1460 binaries from working.
1461 * bfd-in2.h: Regenerate.
1463 2000-08-03 H.J. Lu <hjl@gnu.org>
1465 * section.c: Back out the change made by Nick Clifton
1466 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
1468 * bfd-in2.h: Likewise.
1471 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
1473 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
1475 2000-07-31 Jason Eckhardt <jle@cygnus.com>
1477 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
1478 * bfd-in2.h, libbfd.h: Regenerate.
1480 2000-07-31 Nick Clifton <nickc@cygnus.com>
1482 * section.c (struct sec): Add new boolean field 'segment_mark'.
1483 (STD_SECTION): Initialise new field to zero.
1485 * bfd-in2.h: Regenerate.
1487 * elf.c (copy_private_bfd_data): Reorganise section to segment
1488 mapping to cope with moved sections requiring new segments,
1489 and overlapping segments.
1490 (SEGMENT_END): New macro: Return the end address of a segment.
1491 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
1492 contains a section by comparing their VMA addresses.
1493 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
1494 contains a section by comparing their LMA addresses.
1495 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
1496 section should be included in a segment.
1497 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
1498 follows another in memory.
1499 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
1502 2000-07-22 Jason Eckhardt <jle@cygnus.com>
1504 * cpu-i860.c: Added comments.
1506 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
1507 bfd_elf32_i860_little_vec.
1508 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
1509 (ELF_MAXPAGESIZE): Changed to 4096.
1511 * targets.c (bfd_elf32_i860_little_vec): Declaration of
1513 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
1515 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
1516 config for little endian elf32 i860.
1517 (targ_defvec): Define for the new config above
1518 as "bfd_elf32_i860_little_vec".
1519 (targ_selvecs): Define for the new config above
1520 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
1522 * configure.in (bfd_elf32_i860_little_vec): Added recognition
1525 * configure: Regenerated.
1527 2000-07-27 H.J. Lu <hjl@gnu.org>
1529 * elflink.h (elf_merge_symbol): Take one more argument,
1530 dt_needed, to indicate if the symbol comes from a DT_NEEDED
1531 entry. Don't overide the existing weak definition if dt_needed
1533 (elf_link_add_object_symbols): Pass dt_needed to
1534 elf_merge_symbol ().
1536 2000-07-27 Nick Clifton <nickc@cygnus.com>
1538 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
1541 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
1543 * configure.host (*-*-aix*): AIX has 'long long' always.
1545 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
1546 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
1547 (xcoff_write_archive_contents_big): Don't update the offset
1548 of the symbol table, xcoff_write_armap will do it.
1550 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
1552 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
1553 of dynobj for SGI_COMPAT checks.
1555 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1557 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
1558 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
1559 * bfd-in2.h: Regenerate.
1561 2000-07-21 Nick Clifton <nickc@cygnus.com>
1563 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
1564 range symbol indices in relocs and issue an error message.
1566 2000-07-20 H.J. Lu <hjl@gnu.org>
1568 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
1569 info->new_dtags when setting DT_FLAGS_1. It will only be set
1570 by the new linker options. It shouldn't break anything.
1572 2000-07-20 H.J. Lu <hjl@gnu.org>
1574 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
1575 only if info->new_dtags is true.
1577 2000-07-20 H.J. Lu <hjl@gnu.org>
1579 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
1580 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
1582 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1584 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
1585 (ALL_MACHINES_CFILES): Add cpu-cris.c.
1586 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
1587 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
1588 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
1589 * Makefile.in: Rebuild.
1590 * aclocal.m4: Rebuild.
1591 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
1592 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
1593 (bfd_cris_arch): Declare.
1594 (bfd_archures_list): Add bfd_cris_arch.
1595 * bfd-in2.h: Rebuild.
1596 * config.bfd: (cris-*-*): New target.
1597 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
1598 * configure: Rebuild.
1599 * elf.c (prep_headers): Add bfd_arch_cris.
1600 * libbfd.h: Rebuild.
1601 * libaout.h (enum machine_type): Add M_CRIS.
1602 * reloc.c: Add CRIS relocations.
1603 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
1604 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
1605 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
1606 * po/POTFILES.in, po/bfd.pot: Regenerate.
1608 2000-07-19 H.J. Lu <hjl@gnu.org>
1610 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
1611 DF_TEXTREL if DT_TEXTREL is set.
1612 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1613 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1614 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1615 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
1616 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1617 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1618 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1619 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1620 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
1621 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
1623 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
1624 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
1626 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
1628 2000-07-19 H.J. Lu <hjl@gnu.org>
1630 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
1631 * bfd-in2.h: Rebuild.
1633 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
1634 (elf_dt_soname): New.
1636 * elf.c (bfd_elf_set_dt_needed_soname): New.
1638 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
1639 entry if the shared object loaded by DT_NEEDED is used to
1640 resolve the reference in a regular object.
1642 2000-07-19 H.J. Lu <hjl@gnu.org>
1644 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
1645 DT_DEPAUDIT and DT_AUDIT as strings.
1647 2000-07-19 Nick Clifton <nickc@cygnus.com>
1649 * format.c: Fix formatting.
1651 2000-07-19 H.J. Lu <hjl@gnu.org>
1653 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
1655 2000-07-19 H.J. Lu <hjl@gnu.org>
1657 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
1658 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
1659 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
1660 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
1661 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
1662 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
1663 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
1665 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
1667 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
1668 renamed functions from here...
1669 (assign_section_numbers): Use renamed functions.
1670 (prep_headers): Use renamed functions.
1672 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
1673 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
1674 * bfd-in2.h: Regenerate.
1676 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
1678 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
1679 parenthesis in if statement.
1681 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
1683 Enable the support for Traditional MIPS.
1684 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
1685 return ict_none appropriately for traditional mips targets.
1686 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
1687 (STUB_MOVE): Conditionalize for traditonal mips.
1688 (STUB_LI16): Likewise.
1689 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
1690 room for RTPROC header.
1691 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
1692 the permission for the PT_DYNAMIC as read, write and execute.
1693 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
1694 for traditonal mips.
1695 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
1696 _DYNAMIC_LINKING for traditonal mips.
1697 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
1698 in case of traditonal mips.
1699 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
1700 entry is required. For a function if PLT is not required then set the
1701 corresponding hash table entry to 0.
1702 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
1704 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
1705 shared object set the value to 0.
1706 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
1707 _DYNAMIC_LINKING for traditonal mips.
1708 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
1709 for traditonal mips.
1711 2000-07-15 H.J. Lu <hjl@gnu.org>
1713 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
1715 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1717 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
1718 out a structure that is BFD_IN_MEMORY.
1720 2000-07-11 Alan Modra <alan@linuxcare.com.au>
1722 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
1723 bfd pointer. Print section id instead of bfd pointer for local
1724 syms. Prefix addend with `+' for global syms as well as local.
1725 Correct calculation of name component lengths.
1726 (elf64_hppa_check_relocs): Update call to get_dyn_name.
1728 From David Huggins-Daines <dhd@linuxcare.com>
1729 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
1730 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
1731 (elf64_hppa_modify_segment_map): Likewise.
1733 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
1735 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
1736 addresses to be "naturally" sign extended. Return -1 if unknown.
1737 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
1738 * bfd-in2.h: Regenerate.
1740 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
1742 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
1743 and ECOF_SIGNED_64 to list ways to extract an offset.
1744 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
1745 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
1747 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
1748 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
1750 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
1752 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
1753 bfd_get_start_address.
1754 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
1755 (elf_swap_ehdr_out): Ditto.
1757 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
1759 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
1760 compatibility with older binutils.
1762 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1764 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
1765 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
1767 From Ryan Bradetich <rbradetich@uswest.net>
1768 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
1769 (parse_line_table): Ditto.
1770 (_bfd_dwarf1_find_nearest_line): Ditto.
1771 * syms.c (cmpindexentry): Remove extra `*' from params.
1773 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
1775 * elf32-mips.c (sort_dynamic_relocs): New Function.
1776 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
1777 via qsort to sort the dynamic relocations in increasing r_symndx
1780 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1782 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
1783 ATTRIBUTE_UNUSED to unused args.
1784 (get_opd): Likewise.
1785 (get_plt): Likewise.
1786 (get_dlt): Likewise.
1787 (get_stub): Likewise.
1788 (elf64_hppa_adjust_dynamic_symbol): Likewise.
1789 (elf64_hppa_link_output_symbol_hook): Likewise.
1790 (elf64_hppa_check_relocs): Delete unused var.
1791 (elf64_hppa_size_dynamic_sections): Likewise.
1792 (elf64_hppa_finalize_opd): Likewise.
1793 (elf64_hppa_finalize_dynreloc): Likewise.
1794 (elf64_hppa_modify_segment_map): Likewise.
1795 (elf64_hppa_finish_dynamic_sections): Likewise.
1797 * elf-hppa.h (elf_hppa_final_write_processing): Add
1798 ATTRIBUTE_UNUSED to unused args.
1799 (elf_hppa_final_link_relocate): Likewise.
1800 (elf_hppa_record_segment_addrs): Add paretheses.
1801 (elf_hppa_relocate_section): Constify dyn_name.
1803 From David Huggins-Daines <dhd@linuxcare.com>
1804 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
1805 rearrange case statement so that it gets preferred to 32-bit ones.
1807 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
1808 asection->id instead of address of asection structure.
1809 (elf32_hppa_size_stubs): Likewise.
1811 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
1812 for .init* and .fini*.
1814 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
1815 and addends used in stub names to 32 bits.
1816 (elf32_hppa_size_stubs): Likewise.
1818 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
1819 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
1820 not bfd_put_64. Fix minor comment typo and formatting.
1822 Changes to create multiple linker stubs, positioned immediately
1823 before the section where they are required.
1824 * elf32-hppa.c: Don't include hppa_stubs.h.
1825 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
1826 (elf32_hppa_stub_hash_table): Delete.
1827 (elf32_hppa_link_hash_entry): Delete.
1828 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
1829 stub_hash_table, and store the struct here rather than a pointer.
1830 Delete output_symbol_count. Add offset array. Change
1831 global_value to a bfd_vma.
1832 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
1833 (elf32_hppa_stub_hash_traverse): Delete.
1834 (elf32_hppa_name_of_stub): Delete.
1835 (elf32_hppa_link_hash_lookup): Delete.
1836 (elf32_hppa_link_hash_traverse): Delete.
1837 (elf32_hppa_stub_hash_table_init): Delete.
1838 (elf32_hppa_size_of_stub): Pass input section and offset rather
1839 than location and calculate location here. Don't pass name as all
1840 stubs are now the same size.
1841 (elf32_hppa_stub_hash_newfunc): Init new fields.
1842 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
1844 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
1845 comparing against ints. Rewrite stub handling code.
1846 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
1847 Case enums to int before comparing against ints. Remove
1848 bfd_reloc_dangerous case.
1849 (elf32_hppa_build_one_stub): Rewrite.
1850 (elf32_hppa_size_one_stub): New function.
1851 (elf32_hppa_build_stubs): Rewrite.
1852 (elf32_hppa_size_stubs): Pass in linker call-back functions.
1853 Rewrite stub-handling specific code.
1855 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
1857 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
1859 * hppa_stubs.h: Delete.
1860 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
1861 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
1862 * Makefile.in: Regenerate.
1864 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
1867 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
1869 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
1870 and section name for bfd_reloc_notsupported error message.
1871 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
1872 bfd_reloc_notsupported.
1873 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
1875 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
1876 undefined weak symbols for all relocs.
1877 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
1878 offsets are relative to one past the delay slot.
1879 (elf32_hppa_size_stubs): Account for reloc addend when calculating
1880 branch destination. Put addend into stub name too.
1881 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
1882 adjust by 8 when deciding whether a linker stub is needed. Put
1883 addend into stub name as for above.
1885 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
1886 various args and vars.
1887 (elf32_hppa_bfd_final_link_relocate): Here too.
1888 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
1889 inner block var to avoid shadowing.
1891 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
1893 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
1894 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
1895 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
1897 * libhppa.h: Change practically all unsigned ints to plain ints.
1898 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
1901 From Ryan Bradetich <rbradetich@uswest.net>
1902 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
1903 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
1905 From David Huggins-Daines <dhd@linuxcare.com>
1906 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
1907 to the new OP_* ones.
1909 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
1910 error exit. Bail out earlier on plabel relocs that we aren't
1911 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
1912 string, and then don't free our copy.
1913 (elf32_hppa_build_one_stub): Make insn unsigned int.
1915 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
1916 available with BL, not BE and BLE.
1918 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
1919 code for elf arg relocs.
1920 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
1921 argument with elf_link_hash_entry h. Handle undefined weak
1922 symbols. Move $global$ lookup from here...
1923 (elf32_hppa_relocate_section): ...to here. Return correct error
1924 message for non-handled relocs.
1925 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
1926 wrong test was -0x3ffff to +0x40000.
1928 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
1929 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
1930 Handle them as such.
1931 (elf_hppa_relocate_insn): Fix a typo.
1933 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
1934 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
1935 assemble_17, assemble_21): Delete.
1936 Supply defines for all 64 possible opcodes.
1937 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
1938 formats. Handle COMICLR.
1939 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
1942 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
1943 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
1944 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
1946 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
1947 the local syms - did this code get deleted accidentally? Ignore
1948 undefined and undefweak syms.
1950 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
1951 block. Use it instead of elf64_hppa_hash_table (info).
1952 (elf_hppa_final_link_relocate): Use hppa_info instead of
1953 elf64_hppa_hash_table (info).
1955 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1956 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1957 (hppa_rebuild_insn): Mask immediate bits here instead.
1958 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1960 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1962 * section.c (struct sec): Add id field. Tidy comment formatting.
1963 (bfd_make_section_anyway): Set id.
1964 (STD_SECTION): Init id too.
1965 Change CONST to const throughout.
1966 * archures.c (bfd_arch_info): Tidy comment.
1967 (bfd_arch_list): Change a CONST to const.
1968 * libbfd-in.h: Tidy comments and replace CONST with const.
1969 * elf-bfd.h: Likewise.
1970 * libbfd.h: Regenerate.
1971 * bfd-in2.h: Regenerate.
1972 * libcoff.h: Regenerate.
1974 2000-07-07 DJ Delorie <dj@redhat.com>
1976 * archive.c (_bfd_write_archive_contents): Add an informative
1979 2000-07-06 Kazu Hirata <kazu@hxi.com>
1981 * srec.c: Fix formatting.
1983 2000-06-05 DJ Delorie <dj@redhat.com>
1987 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
1989 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
1990 value of PC-relative offsets.
1992 2000-07-03 Jim Wilson <wilson@cygnus.com>
1994 * elf64-alpha.c (alpha_elf_size_info): New.
1995 (elf_backend_size_info): Define to alpha_elf_size_info.
1996 * elfcode.h (elf_size_info): Change hash bucket size to 4.
1998 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
2000 * elf32-mips.c: Include elf32-target.h again for the traditional
2003 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
2005 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2006 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2007 (avr_info_to_howto_rela): Likewise.
2008 (elf32_avr_gc_mark_hook): Likewise.
2009 (elf32_avr_gc_sweep_hook): Likewise.
2010 (elf32_avr_relocate_section): Likewise.
2012 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
2014 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2015 an external symbol for a non-shared, non-relocatable link.
2017 2000-07-03 Nick Clifton <nickc@redhat.com>
2019 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2020 is an external symbol.
2021 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2024 2000-07-03 Kazu Hirata <kazu@hxi.com>
2026 * reloc16.c: Fix formatting.
2028 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2030 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2031 to add a new target for traditional mips i.e
2032 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2033 * configure.in: Likewise.
2034 * configure: Rebuild.
2035 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2037 (bfd_elf32_tradlittlemips_vec): Likewise.
2038 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2039 to see that elfNN_bed does not get redefined even if the target file
2040 is included twice for a chip. See elf32-mips.c.
2042 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2044 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2045 (CLEANFILES): Add DEPA.
2046 * Makefile.in: Regenerate.
2048 2000-06-30 DJ Delorie <dj@cygnus.com>
2050 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2051 can't assume the PE header is at 0x80.
2053 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
2055 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2057 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
2059 * go32stub.h: Update stub.
2061 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2063 * archures.c (bfd_mach_avr5): Define.
2064 * bfd-in2.h (bfd_mach_avr5): Define.
2065 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2066 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
2067 (compatible): Update comment. Add missing test.
2068 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2069 for avr2 and avr4. Simplify 8K wrap code.
2070 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2071 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2073 2000-06-26 Kazu Hirata <kazu@hxi.com>
2075 * coff-h8300.c: Fix formatting.
2076 * cpu-h8300.c: Likewise.
2078 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
2080 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2081 for local symbols whose names are unknown.
2083 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2085 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2087 * Makefile.in: Regenerate.
2088 * doc/Makefile.in: Regenerate.
2090 2000-06-20 H.J. Lu <hjl@gnu.org>
2092 * Makefile.am: Rebuild dependency.
2093 * Makefile.in: Rebuild.
2095 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2097 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2098 (elf_backend_copy_indirect_symbol): Map to the new function.
2100 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2102 * archive.c (normalize): Correct pointer comparison when checking
2104 (bfd_bsd_truncate_arname): Likewise.
2105 (bfd_gnu_truncate_arname): Likewise.
2107 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
2109 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2110 sections elf_{text,data}_{section,symbol}.
2111 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2112 (_bfd_mips_elf_hide_symbol): New function.
2113 (elf_backend_hide_symbol): Map to the new function.
2114 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2115 definitions of mips_elf_{text,data}_{section,symbol}.
2116 (mips_elf_local_relocation_p): Try to find the direct symbol
2117 based on new check_forced argument.
2118 (mips_elf_calculate_relocation): Use new version of
2119 mips_elf_local_relocation_p.
2120 (mips_elf_relocate_section): Likewise.
2121 (_bfd_mips_elf_relocate_section): Likewise.
2122 (mips_elf_sort_hash_table): Only assert that have enough GOT
2124 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2125 entry if the relocation based on the new external argument.
2126 (mips_elf_create_dynamic_relocation): Assert that we have a
2127 section contents allocated where we can swap out the dynamic
2129 (mips_elf_calculate_relocation): Find the real hash-table entry
2130 correctly by using h->root.root.type. Only create a dynamic
2131 relocation entry if the symbol is defined in a shared library.
2132 Create an external GOT entry for the GOT16 relocation if the
2133 symbol was forced local.
2134 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2135 dynamic index if the symbol was forced local.
2137 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2139 * elf32-mips.c: Fix typos in comments.
2141 2000-06-19 Mark Kettenis <kettenis@gnu.org>
2143 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2146 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2148 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2149 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2150 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2151 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2152 (bfd_elf32_m68hc11_vec): Likewise.
2153 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2154 Supports 68hc11 & 68hc12 at the same time.
2155 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2157 (bfd_elf32_m68hc11_vec): Likewise.
2158 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2159 * archures.c (bfd_m68hc12_arch): Define and register in global list
2160 (bfd_m68hc11_arch): Likewise.
2161 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2162 BFD_RELOC_M68HC11_3B): Define.
2163 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2164 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2166 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
2168 * elf_bfd.h (struct elf_backend_data): Add info argument to
2169 elf_backend_hide_symbol.
2170 (_bfd_elf_link_hash_hide_symbol): Likewise.
2171 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2172 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2173 * elflink.h (elf_link_add_object_symbols): Likewise.
2174 (elf_link_assign_sym_version): Likewise.
2176 2000-06-18 H.J. Lu <hjl@gnu.org>
2178 * coff-i386.c (coff_i386_reloc): Don't return in case of
2179 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2180 Compensate PE relocations when linking with non-PE object
2181 files to generate a non-PE executable.
2183 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
2185 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2186 GOT entries if we're doing a static link or -Bsymbolic link.
2188 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
2190 * elflink.h (elf_link_adjust_relocs): Check for and call backend
2191 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2193 (elf_link_output_relocs): Likewise.
2194 (elf_reloc_link_order): Likewise.
2196 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2198 * archures.c (enum bfd_architecture): #define constants for
2199 PowerPc and RS6000 machine numbers.
2200 * bfd-in2.h: Regenerate.
2201 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2202 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
2203 and RS6000 machine numbers using #defined constants from
2205 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2206 machine numbers using #defined constants from archures.c. Add
2207 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
2208 64-bit words in 620 entry.
2209 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2211 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2213 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
2215 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2216 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2217 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2219 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2221 * bfd-in.h (bfd_family_coff): Define.
2222 * bfd-in2.h: Regenerate.
2223 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2224 coff_find_nearest_line): Check COFFness using bfd_family_coff()
2225 instead of bfd_target_coff_flavour.
2226 * cofflink.c (_bfd_coff_final_link): Likewise.
2227 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2228 exclude XCOFF files.
2229 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2231 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2232 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2233 * xcofflink.c (XCOFF_XVECP): Delete.
2234 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2235 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2236 bfd_xcoff_record_link_assignment,
2237 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2238 check for bfd_target_xcoff_flavour.
2240 2000-06-16 Nicholas Duffek <nsd@redhat.com>
2242 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2244 (read_hdr): New function.
2245 (rs6000coff_core_p): Store mstsave or __context64 struct instead
2246 of trying to extract individual registers. Set abfd->arch_info
2247 to match the architecture that created the core file.
2248 (rs6000coff_get_section_contents): Delete.
2249 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2251 2000-06-14 H.J. Lu <hjl@gnu.org>
2253 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2256 2000-06-13 H.J. Lu <hjl@gnu.org>
2258 * configure: Regenerate.
2260 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
2262 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2265 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2267 * configure.in (VERSION): Update to show this is the CVS mainline.
2269 2000-06-07 Alan Modra <alan@linuxcare.com.au>
2271 * elf32-d10v.c: Include elf/d10v.h
2272 (enum reloc_type): Delete.
2273 * elf32-d30v.c: Include elf/d30v.h
2274 (enum reloc_type): Delete.
2276 * Makefile.am: Run "make dep-am" to regenerate dependencies.
2277 * Makefile.in: Regenerate.
2279 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2280 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2281 move HOWTOs into elf_howto_table.
2282 (R_386_standard, R_386_ext_offset): Define.
2283 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2284 (elf_i386_reloc_type_lookup): Modify calculation of index into
2285 elf_howto_table since we've removed the padding.
2286 (elf_i386_info_to_howto_rel): Likewise.
2287 (elf_i386_relocate_section): Likewise.
2289 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
2291 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2293 2000-06-05 H.J. Lu <hjl@gnu.org>
2295 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2296 an error when seeing an undefined symbol with hidden/internal
2297 attribute. It is handled in *_relocate_section ().
2299 2000-06-05 H.J. Lu <hjl@gnu.org>
2301 * elflink.h (elf_fix_symbol_flags): Follow the link for the
2302 indirect symbol for the ELF_LINK_NON_ELF bit.
2303 (elf_link_output_extsym): Don't output the indirect symbol even
2304 if the ELF_LINK_NON_ELF bit is set.
2306 2000-06-01 J.T. Conklin <jtc@redback.com>
2308 * config.bfd (i[3456]86-*-netbsdelf*): New target.
2309 (i[3456]86-*-netbsdaout*): New target.
2310 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2311 (i[3456]86-*-openbsd*): Likewise.
2313 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
2315 * trad-core.c: From hpux-core.c, include <dirent.h> or
2316 <sys/ndir.h> when possible.
2318 2000-05-31 Nick Clifton <nickc@cygnus.com>
2320 * opintl.h (_(String)): Explain why dgettext is used instead
2323 2000-05-31 Ulrich Drepper <drepper@redhat.com>
2325 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2326 definitions. We must not assume they are sorted in the file
2327 according to their index numbers.
2329 2000-05-31 Alan Modra <alan@linuxcare.com.au>
2331 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2332 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
2333 R_PARISC_DIR17F are for absolute branches; Handle them as such.
2335 2000-05-30 Nick Clifton <nickc@cygnus.com>
2337 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2338 80960CA, 80960MC as valid machine names.
2340 2000-05-30 H.J. Lu <hjl@gnu.org>
2342 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2343 visibility bits if the symbol is undefined. Correctly handle
2344 weak undefined symbols with hidden and internal attributes.
2346 * elflink.h (elf_link_add_object_symbols): Always turn the
2347 symbol into local if it has the hidden or internal attribute.
2349 2000-05-29 Philip Blundell <philb@gnu.org>
2351 * ppcboot.c: Add packed attribute if compiling with GCC.
2353 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
2355 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2357 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
2359 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
2360 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
2361 corefile on a 64-bit (Sparc Solaris) host. Also clean up
2364 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2366 * Makefile.am: Update dependencies with "make dep-am"
2367 * Makefile.in: Regenerate.
2369 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
2370 bindtextdomain): Replace defines with those from intl/libgettext.h
2371 to quieten gcc warnings.
2373 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2375 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
2377 * archive.c (normalize, bfd_bsd_truncate_arname,
2378 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
2379 file names with backslashes.
2381 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
2384 * sysdep.h: Include filenames.h.
2386 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2388 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2390 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2392 * elf64-sparc.c (sparc64_elf_relax_section): New.
2393 (sparc64_elf_relocate_section): Optimize tail call into branch always
2395 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2396 (elf32_sparc_relax_section): New.
2398 2000-05-26 Jakub Jelinek <jakub@redhat.com>
2400 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
2401 Remove unusued variables.
2402 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
2403 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
2404 previous fix, so that shared libs really don't influence targets
2405 extension mask and memory model.
2407 2000-05-23 H.J. Lu <hjl@gnu.org>
2409 * elf64-alpha.c (elf64_alpha_relocate_section): Check
2410 h->root.other not h->other.
2411 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2413 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2415 2000-05-23 H.J. Lu <hjl@gnu.org>
2417 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
2418 undefined symbol with the non-default visibility attributes.
2419 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
2420 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
2421 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2422 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2423 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2424 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
2425 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2426 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2427 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2428 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
2429 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2431 2000-05-22 Richard Henderson <rth@cygnus.com>
2433 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
2434 PCREL22, PCREL64I. Zero size of special relocs.
2435 (elf64_ia64_reloc_type_lookup): Likewise.
2436 (USE_BRL, oor_brl, oor_ip): New.
2437 (elf64_ia64_relax_section): New.
2438 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
2439 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
2440 (elf64_ia64_relocate_section): Likewise.
2441 (bfd_elf64_bfd_relax_section): New.
2442 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
2443 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
2444 * bfd-in2.h, libbfd.h: Regenerate.
2446 2000-05-22 Nick Clifton <nickc@cygnus.com>
2448 * configure.in : Add peigen.lo to MIPS PE targets.
2449 * configure: Regenerate.
2451 2000-05-22 Momchil Velikov <velco@fadata.bg>
2453 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
2454 only if it is known for both input and output bfds. Separate
2455 error message strings as in some languages, it may be necessary
2456 to change more than one place in the string to change between
2459 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
2460 endianess checks, call _bfd_generic_verify_endian_match() instead.
2462 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2464 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
2466 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
2467 endianess before checking bfd flavours.
2469 2000-05-22 H.J. Lu <hjl@gnu.org>
2471 * elflink.h (elf_link_output_extsym): Clear the visibility
2472 field for symbols not defined locally.
2474 2000-05-18 Alan Modra <alan@linuxcare.com.au>
2476 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2477 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2478 (hppa_rebuild_insn): Mask immediate bits here instead.
2479 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2481 2000-05-18 Momchil Velikov <velco@fadata.bg>
2483 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
2484 relocs for an executable, ensure that they are virtual addresses.
2486 2000-05-18 Jeffrey A Law (law@cygnus.com)
2488 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
2490 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2491 Rick Gorton <gorton@scrugs.lkg.dec.com>
2493 * elflink.h: Add emitrelocations support: when enabled, relocation
2494 information and relocation sections are put into final output
2495 executables. If the emitrelocations flag is set, do the following:
2496 (elf_bfd_final_link): Emit relocation sections.
2497 (elf_link_input_bfd): Compute relocation section contents.
2498 (elf_gc_sections): Don't clean relocation sections.
2500 2000-05-16 Catherine Moore <clm@cygnus.com>
2502 * som.c (som_decode_symclass): Recognize weak symbols.
2504 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
2506 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
2507 read idata section only from dataoff.
2508 (pe_print_edata): Correctly check for valid eat_member.
2510 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
2512 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2514 2000-05-14 Philip Blundell <philb@gnu.org>
2516 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2518 2000-05-12 Alan Modra <alan@linuxcare.com.au>
2520 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
2522 * peigen.c (pe_print_idata): Look for .idata section and print
2523 info even if data directory has zero entries. Read idata section
2524 starting from dataoff, and adjust all data offsets to suit. Cast
2525 all bfd_vma vars to unsigned long before passing to fprintf.
2526 * peigen.c (pe_print_edata): Similarly, look for .edata section
2527 and print info even if data directory has zero entries. Cast
2528 all bfd_vma vars to unsigned long before passing to fprintf.
2530 From Szabolcs Szakacsits <szaka@F-Secure.com>
2531 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
2532 directory size which may be bogus.
2533 * peigen.c (pe_print_edata): Similarly.
2535 2000-05-09 Alan Modra <alan@linuxcare.com.au>
2537 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
2539 (copy_private_bfd_data): Allow for space possibly taken up by elf
2540 headers when calculating segment physical address from lma.
2542 2000-05-08 Alan Modra <alan@linuxcare.com.au>
2544 * versados.c (versados_scan): Init stringlen and pass_2_done.
2546 * trad-core.c (trad_unix_core_file_p): Return
2547 bfd_error_wrong_format rather than bfd_error_file_truncated.
2549 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
2550 add_data_entry. DataDirectory virtual address is relative.
2551 (pe_print_idata): Account for relative DataDirectory virtual
2552 addresses. Don't trash datasize inside POWERPC_LE_PE code.
2553 (pe_print_edata): Similarly.
2555 From Szabolcs Szakacsits <szaka@F-Secure.com>
2556 * peigen.c (dir_names): Add Delay Import Directory.
2557 (pe_print_idata): Always search for bfd section containing
2558 idata address rather than looking up section name. Print this
2559 section name rather than .idata.
2560 (pe_print_edata): Similarly. Also print some fields as %08lx.
2561 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
2564 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2566 * xcoff.h: Rename to xcoff-target.h
2567 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
2568 * coff-rs6000.c: Ditto.
2569 * coff64-rs6000.c: Ditto.
2570 * coff-pmac.c: Ditto.
2571 * Makefile.in: Regenerate.
2573 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
2575 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
2576 Change U802TOC64MAGIC to U803XTOCMAGIC.
2578 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
2580 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
2581 * bfd-in.h: Prototype bfd_elf_get_arch_size.
2582 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
2584 2000-05-04 Alan Modra <alan@linuxcare.com.au>
2586 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
2588 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2590 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
2591 hidden and internal symbols.
2592 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
2594 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
2595 assign a PLT or GOT entry to symbols with hidden and
2596 internal visibility.
2598 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
2600 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
2602 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2604 2000-05-02 H.J. Lu <hjl@gnu.org>
2606 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
2609 2000-05-02 Alan Modra <alan@linuxcare.com.au>
2611 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
2612 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
2614 * Makefile.in: Regenerate.
2616 2000-05-01 Jim Wilson <wilson@cygnus.com>
2618 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
2619 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
2620 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
2621 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
2622 * Makefile.in: Rebuild.
2624 2000-05-02 Alan Modra <alan@linuxcare.com.au>
2626 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
2627 doesn't work very well.
2629 * elf-hppa.h (elf_hppa_internal_shdr): Define.
2630 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
2631 Set hdr->s_type to 1 if ARCH_SIZE == 32.
2632 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
2633 (elf_hppa_info_to_howto): Likewise.
2634 (elf_hppa_info_to_howto_rel): Likewise.
2635 (elf_hppa_reloc_type_lookup): Likewise.
2636 (elf_hppa_is_local_label_name): Likewise.
2637 (elf_hppa_fake_sections): Likewise.
2638 (elf_hppa_final_write_processing): Likewise.
2639 (elf_hppa_howto_table): Fully initialise all entries.
2640 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
2641 (elf_hppa_info_to_howto): Likewise.
2642 (elf_hppa_info_to_howto_rel): Likewise.
2643 (elf_hppa_reloc_type_lookup): Likewise.
2644 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
2645 elf_hppa_unmark_useless_dynamic_symbols,
2646 elf_hppa_remark_useless_dynamic_symbols,
2647 elf_hppa_record_segment_addrs, elf_hppa_final_link,
2648 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
2649 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
2650 elf32-hppa.c mess is cleaned up.
2651 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
2652 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
2653 r_field then call hppa_field_adjust inline func with variable
2654 r_field arg, instead call hppa_field_adjust with fixed arg.
2655 In case R_PARISC_PCREL22F, don't set r_field.
2656 (elf_hppa_relocate_insn): Change args and return type to unsigned
2657 int. Call re_assemble_* funcs to do the work.
2659 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
2662 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
2664 (sign_extend): Mask first before sign extending.
2665 (low_sign_extend): Rewrite without condition expression.
2666 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
2667 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
2668 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2669 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
2670 result as function return value rather than through pointer arg.
2671 Accept unsigned int args, and return unsigned int.
2672 (re_assemble_3): New. Combines function of dis_assemble_3 with
2673 re-assembly of opcode and immediate.
2674 (re_assemble_12): Likewise.
2675 (re_assemble_16): Likewise.
2676 (re_assemble_17): Likewise.
2677 (re_assemble_21): Likewise.
2678 (re_assemble_22): Likewise.
2679 (hppa_field_adjust): Rewrite and document, paying attention to
2680 size of types and signed/unsigned issues.
2681 (get_opcode): Shift before masking.
2682 (FDLW): Rename to FLDW.
2683 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
2684 (hppa_rebuild_insn): Change args and return value to unsigned
2685 int. Make use of re_assemble_*. Correct case 11.
2687 * dep-in.sed: Handle ../opcodes/.
2688 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
2689 elf64-hppa.h, hppa_stubs.h, xcoff.h.
2690 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
2691 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
2692 elfarm-nabi.lo dependencies outside of auto-dependency area.
2693 Regenerate dependencies.
2694 * Makefile.in: Regenerate.
2696 * configure.in (TRAD_HEADER): Test non-null before
2698 * configure: Regenerate.
2700 * reloc.c: Fix mis-spelling in comment.
2702 2000-05-01 Alan Modra <alan@linuxcare.com.au>
2704 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
2705 * vms.c (vms_openr_next_archived_file): Return NULL.
2707 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
2709 * coffcode.h Copy changes mistakenly done to libcoff.h in
2712 2000-04-29 Andreas Jaeger <aj@suse.de>
2714 * libbfd-in.h: Correctly check GCC version.
2715 * bfd-in.h: Likewise.
2716 * libhppa.h: Likewise.
2717 * libbfd.h: Regenerate.
2718 * bfd-in2.h: Regenerate.
2720 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
2722 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
2723 coffdu-rs6000.{lo,c}.
2724 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
2726 * Makefile.in: Regenerate.
2727 * xcoff.h: New file.
2728 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
2729 * coff-rs6000.c: Move all declarations and defines that are
2730 common to the xcoff backends into xcoff.h
2731 * coff64-rs6000.c: Ditto,
2733 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
2735 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
2736 _bfd_coff_force_symnames in strings and
2737 _bfd_coff_debug_string_prefix_length to their default values.
2738 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
2740 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
2742 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
2743 _bfd_coff_force_symnames in strings and
2744 _bfd_coff_debug_string_prefix_length to their default values.
2746 2000-04-27 Alan Modra <alan@linuxcare.com.au>
2748 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
2749 Check local_got_refcounts before dereferencing.
2751 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
2752 before deciding we don't need R_PPC_PLT32 relocation.
2753 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
2756 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
2758 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
2760 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
2761 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
2762 (elf_i386_relocate_section): Allow for .plt to go missing.
2763 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
2764 can use a relative reloc for got as elf_i386_relocate_section.
2765 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
2767 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
2769 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
2771 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
2773 * Makefile.am (coff64-rs6000.lo): New rule.
2774 * Makefile.in: Regenerate.
2775 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
2776 xcoff_is_local_label_name, xcoff_rtype2howto,
2777 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
2778 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
2779 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
2780 (NO_COFF_SYMBOLS): Define.
2781 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
2782 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
2784 (MINUS_ONE): New macro.
2785 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
2787 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
2788 coff_SWAP_aux_out): Map to the new functions.
2789 * coff64-rs6000.c: New file.
2790 * libcoff.h (bfd_coff_backend_data): Add new fields
2791 _bfd_coff_force_symnames_in_strings and
2792 _bfd_coff_debug_string_prefix_length.
2793 (bfd_coff_force_symnames_in_strings,
2794 bfd_coff_debug_string_prefix_length): New macros for above fields.
2795 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
2796 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
2797 of using coff_swap_sym_in directly.
2798 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
2799 (coff_set_flags) Set magic for XCOFF64.
2800 (coff_compute_section_file_positions): Add symbol name length to
2801 string section length if bfd_coff_debug_string_prefix_length is
2803 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
2804 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
2805 using coff_swap_lineno_in directly.
2806 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
2807 and _bfd_coff_debug_string_prefix_length fields.
2808 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
2809 symbol names into strings table when
2810 bfd_coff_force_symnames_in_strings is true.
2811 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
2812 SET_RELOC_VADDR): New macros.
2813 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
2814 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
2816 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
2817 changes within RS6000COFF_C specific code.
2818 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
2819 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
2820 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2821 Extend existing hack on target name.
2822 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
2824 * coff-tic54x.c (ticof): Keep up to date with new fields
2825 in bfd_coff_backend_data.
2826 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
2827 targ_selvecs to include rs6000coff64_vec for rs6000.
2828 * configure.in: Add rs6000coff64_vec case.
2829 * cpu-powerpc.c: New bfd_arch_info_type.
2831 2000-04-24 Jeffrey A Law (law@cygnus.com)
2833 * config.bfd: Only disable elf32-hppa vectors, not all of the
2834 BSD and OSF configuration support. Provide (disabled) clauses
2836 * configure.in: Add clause for PA64 support.
2837 * configure: Rebuilt.
2839 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
2840 (bfd_elf64_hppa_vec): Declare.
2842 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
2843 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
2844 (elf64-hppa.lo): Add dependencies.
2845 * Makefile.in: Rebuilt.
2847 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
2849 2000-04-24 Jason Eckhardt <jle@cygnus.com>
2851 * libhppa.h (dis_assemble_16): New function.
2852 (pa_arch): Added pa20w element.
2854 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
2856 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
2857 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
2858 bfd_elf64_slurp_reloc_table.
2860 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
2861 definitions to get external names.
2862 (elf_write_relocs): Renamed from write_relocs and make global.
2863 (elf_slurp_reloc_table): Make global.
2864 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
2866 * archive.c (hpux_uid_gid_encode): New function.
2867 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
2868 defined and the ID is greater than 99999.
2869 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
2870 special uid/gid fields into 32 bit values.
2872 2000-04-21 Matthew Green <mrg@cygnus.com>
2874 * config.bfd: Add NetBSD/sparc64 support.
2876 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2877 David Mosberger <davidm@hpl.hp.com>
2878 Timothy Wall <twall@cygnus.com>
2879 Jim Wilson <wilson@cygnus.com>
2881 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
2882 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
2883 (BFD64_BACKENDS): Add elf64-ia64.lo.
2884 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
2885 (cpu-ia64.lo, elf64-ia64.lo): New rules.
2886 * Makefile.in: Rebuild.
2887 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
2888 (bfd_ia64_arch): Declare.
2889 (bfd_archures_list): Add bfd_ia64_arch.
2890 * bfd-in2.h: Rebuild.
2891 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
2892 * configure: Rebuild.
2893 * configure.host: (ia64-*-linux*): New host.
2894 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
2895 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
2896 * elf.c (prep_headers): Add bfd_arch_ia64.
2897 * libbfd.h: Rebuild.
2898 * reloc.c: Add IA-64 relocations.
2899 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
2901 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
2902 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
2904 2000-04-21 Richard Henderson <rth@cygnus.com>
2906 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
2907 contents when performing a partial link.
2908 (bfd_elf_d30v_reloc_21): Likewise.
2910 2000-04-20 H.J. Lu <hjl@gnu.org>
2912 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
2913 patch to symbols defined by a shared object.
2914 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
2916 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2919 * dwarf2.c (concat_filename): Avoid string literal concatenation.
2920 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
2922 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
2924 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
2925 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
2926 (coff-ia64.lo): Add dependency.
2927 * Makefile.in: Regenerate.
2928 * coff-ia64.c: New file.
2929 * efi-app-ia32.c: Ditto.
2930 * efi-app-ia64.c: Ditto.
2931 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
2932 (coff_set_flags): Ditto.
2933 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
2934 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
2935 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
2936 * configure: Regenerate.
2937 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
2938 (PUT_OPTHDR_IMAGE_BASE): Ditto.
2939 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
2940 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
2941 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
2942 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
2943 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
2944 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
2945 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
2946 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
2947 (GET_PDATA_ENTRY): Ditto.
2948 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
2949 data_start. Use above macros to read fields that are 64 bit wide for
2950 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
2951 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
2952 FileAlignment and SectionAlignment to minimum alignment if they
2954 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
2955 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
2956 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
2957 Use above macros to write fields that are 64 bit wide for
2959 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
2960 5*4 otherwise. This should be right for IA-32 and IA-64, but may
2961 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
2962 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
2963 begin address, end address, and unwind info address only. Use
2964 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
2966 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
2967 HIGH3ADJ relocation names.
2968 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
2969 * targets.c: Declare bfd_efi_app_ia32_vec and
2970 bfd_efi_app_ia64_vec.
2971 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
2972 bfd_efi_app_ia64_vec.
2974 2000-04-17 Timothy Wall <twall@cygnus.com>
2976 * bfd-in2.h: Add prototypes for tic54x load page access.
2977 * bfd-in.h: Regenerate.
2978 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
2979 in customized _set_arch_mach function.
2980 * coffcode.h (coff_set_alignment_hook): Set section load page if
2981 the appropriate macro is defined.
2982 (write_object_contents): Read section load page.
2984 2000-04-13 Alan Modra <alan@linuxcare.com.au>
2986 * elf32-hppa.h: Update copyright date.
2988 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
2989 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
2991 * elf32-d30v.c (MAX32): Don't use LL suffix.
2992 (MIN32): Define in terms of MAX32.
2993 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
2995 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
2998 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3000 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3002 * dep-in.sed: Match space before file name, not after.
3003 * Makefile.am: Regenerate dependencies.
3004 * Makefile.in: Regenerate.
3006 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3007 case, allow address wrap-around stupidly removed 2000-03-17. Sign
3008 extend without an if statement.
3010 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3012 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3014 * elf32-mips.c (gprel16_with_gp): Likewise.
3015 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3016 here using -0x40000, not (int)0xfffc0000.
3017 (elf32_hppa_size_of_stub): Likewise.
3019 2000-04-11 Timothy Wall <twall@cygnus.com>
3021 * coff-tic54x.c: Now builds with all targets.
3022 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3023 * Makefile.in: Regenerate.
3024 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3025 unitialized variable.
3027 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3029 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3030 --enable-build-warnings option.
3031 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3032 * Makefile.in, configure: Re-generate.
3034 2000-04-07 Nick Clifton <nickc@cygnus.com>
3036 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3037 BFD_RELOC_THUMB_PCREL_BLX.
3039 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3040 R_ARM_XPC25 and R_ARM_THM_PC22.
3042 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3043 R_ARM_XPC25 and R_ARM_THM_XPC22.
3044 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3045 R_ARM_[XPC25|THM_XPC22].
3047 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3048 elf/arm-oabi.h to elf/arm.h
3050 * Makefile.am: Fix dependency for elfarm-oabi.c
3051 * Makefile.in: Regenerate.
3053 * bfd-in2.h: Regenerate.
3054 * libbfd.h: Regenerate.
3056 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3058 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3059 and restore it on failure. Release newly allocated tdata on
3062 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
3064 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3065 (decode_line_info): Set it. Report error if unit->line_offset is
3066 equal to or larger than it.
3068 2000-04-07 Timothy Wall <twall@cygnus.com>
3070 * targets.c: Added vecs for tic54x.
3071 * reloc.c: Added relocs for tic54x.
3072 * libbfd.h: Regenerated.
3073 * configure: Add TI COFF vecs for tic54x.
3074 * configure.in: Ditto.
3075 * config.bfd (targ_cpu): Recognize new tic54x target.
3076 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3077 * bfd-in2.h: Add tic54x target and relocations.
3078 * Makefile.am, Makefile.in: Add tic54x target.
3079 * archures.c (bfd_archures_list): Add tic54x target.
3080 * coff-tic54x.c: New.
3081 * cpu-tic54x.c: New.
3083 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
3085 * elfcore.h (elf_core_file_p): call backend_object_p which
3086 thereby gets an opportunity to update the arch/machine type.
3088 2000-04-06 Timothy Wall <twall@cygnus.com>
3090 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3091 class. Handle SEC_CLINK and SEC_BLOCK flags.
3092 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3093 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3095 2000-04-06 Nick Clifton <nickc@cygnus.com>
3097 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3098 EF_INTERWORK if this is an unknown EABI.
3099 (elf32_arm_merge_private_bfd_data): Check EABI version
3100 numbers. Only check EF_xxx flags if the EABI version number
3102 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3103 if the EABI version number is unknown.
3104 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3105 if the EABI version number is unknown.
3107 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3109 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3110 BFD_RELOC_SH_LOOP_END.
3111 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3112 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3113 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3114 (sh_elf_reloc_loop): New function.
3115 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3117 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3118 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3119 * bfd-in2.h, libbfd.h: Regenerate.
3121 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3123 * po/bfd.pot: Regenerate.
3125 * Makefile.am: Remove extraneous mkdep comment.
3126 (MKDEP): Use gcc -MM rather than mkdep.
3127 (DEP): Quote when passing vars to sub-make. Add warning
3129 (DEP1): Rewrite for "gcc -MM".
3130 (CLEANFILES): Add DEP2.
3131 Update dependencies.
3132 * Makefile.in: Regenerate.
3134 2000-04-03 Kevin Buettner <kevinb@redhat.com>
3136 * configure.in: Added corefile support for AIX 4.3. In particular,
3137 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3138 compiling rs6000-core.c.
3139 * configure: Regenerated.
3141 2000-04-03 H.J. Lu <hjl@gnu.org>
3143 * cache.c (bfd_open_file): Unlink the output file only if
3144 it has non-zero size.
3146 2000-04-01 Ken Block USG <block@zk3.dec.com>
3148 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3149 relative relocations for non-loaded sections in shared objects.
3150 (elf64_alpha_check_relocs): Similarly.
3152 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
3154 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3155 BFD_RELOC_16 to switch for extended relocs.
3156 (MY_swap_ext_reloc_in): New.
3157 (MY_swap_ext_reloc_out): New.
3158 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3159 than NAME(aout,swap_ext_reloc_in) for extended relocs.
3160 (NAME(aout,squirt_out_relocs)): Similarly use
3161 MY_swap_ext_reloc_out.
3162 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3164 2000-04-03 Kazu Hirata <kazu@hxi.com>
3166 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3167 the R_PCRWORD_B case.
3169 2000-03-31 Thomas de Lellis <tdel@wrs.com>
3171 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3175 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
3177 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
3178 HOWTO references to bfd_elf_generic_reloc, that have
3179 partial_inplace == true, now use the new function. The function
3180 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3181 extends its fixes to the R_M32R_{16,24,32} relocs.
3182 The new logic in m32r_elf_lo16_reloc() has been removed, and
3183 it instead calls the new routine to obtain that functionality.
3185 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3187 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3188 elf32_avr_check_relocs, avr_final_link_relocate,
3189 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3190 elf32_avr_object_p): Add prototypes.
3191 (elf32_avr_gc_mark_hook): Add default for h->root.type.
3192 (bfd_elf_avr_final_write_processing): Make static.
3194 2000-03-27 Denis Chertykov <denisc@overta.ru>
3196 * cpu-avr.c: New file. BFD support routines for AVR architecture.
3197 * archures.c (bfd_architecture): Add AVR architecture.
3198 (bfd_archures_list): Add reference to AVR architecture info.
3199 * elf.c (prep_headers): Handle bfd_arch_avr.
3200 * reloc.c: Add various AVR relocation enums.
3201 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3203 * Makefile.am: Add support for AVR elf.
3204 * configure.in: Likewise.
3205 * config.bfd: Likewise.
3206 * Makefile.in: Regenerate.
3207 * configure: This too.
3208 * bfd-in2.h: And this.
3209 * libbfd.h: And this.
3211 2000-03-24 H.J. Lu <hjl@gnu.org>
3213 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3214 (elf64_alpha_find_reloc_at_ofs): Likewise.
3216 2000-03-17 Alan Modra <alan@linuxcare.com.au>
3218 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3219 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
3220 allowable range used to be -2**(n-1) to 2**n-1.
3221 * reloc.c (_bfd_relocate_contents): Same here. Also replace
3222 "boolean overflow" with "bfd_reloc_status_type flag".
3224 2000-03-14 Doug Evans <dje@casey.transmeta.com>
3226 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3228 2000-03-14 Kazu Hirata <kazu@hxi.com>
3230 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3231 of shrinks properly, including the last reloc.
3233 2000-03-13 Kazu Hirata <kazu@hxi.com>
3235 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3238 2000-03-11 Alan Modra <alan@linuxcare.com.au>
3240 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3241 a format mismatch rather than an "error" from bfd_read such as
3242 bfd_error_file_truncated.
3244 2000-03-10 Geoff Keating <geoffk@cygnus.com>
3246 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3247 sign-extension and big-endian compensation for
3248 R_MIPS_64 even in ld -r.
3250 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
3252 * elf32-mips.c (mips_elf_next_relocation): Rename from
3253 mips_elf_next_lo16_relocation, and generalize to look
3254 for any relocation type.
3255 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3256 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3257 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3258 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3259 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3260 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3261 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3262 (mips_rtype_to_howto): Likewise.
3263 (mips_elf_calculate_relocation): Handle new relocs.
3264 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3265 are paired. The addend for R_MIPS_GNU_REL16_S2
3266 is shifted right two bits.
3268 2000-03-10 Alan Modra <alan@linuxcare.com.au>
3270 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3271 comment, and ensure it doesn't happen again.
3272 (bfd_install_relocation): Same here.
3273 (_bfd_relocate_contents): Don't bother assigning unused signmask
3274 shift result. Fix typos in comments.
3275 Remove trailing whitespace throughout file.
3277 2000-03-07 Doug Evans <dje@casey.transmeta.com>
3279 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3280 * bfd-in2.h: Rebuild.
3282 2000-03-06 Nick Clifton <nickc@cygnus.com>
3284 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3286 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3287 (SIZEOF_ILF_STRINGS): Redefine.
3288 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
3289 relative reloc, as opposed to a section relative reloc.
3290 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3292 Add length of symbol's prefix to string pointer.
3293 Store a pointer to the symbol in the symbol pointer table.
3294 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3295 Initialise the symbol pointer table.
3296 Store the hint in the Hint/Name table.
3297 Make the jump reloc be symbol realtive, not section relative.
3298 Create an import symbol for imported code.
3300 2000-03-06 Catherine Moore <clm@cygnus.com>
3302 * elf.c (swap_out_syms): Check for null type_ptr.
3304 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
3306 * aout-target.h (MY(write_object_contents)): Remove unused
3307 and unusable "#if CHOOSE_RELOC_SIZE".
3308 * pc532-mach.c (MY(write_object_contents)): Ditto.
3309 * netbsd.h (MY(write_object_contents)): Ditto.
3310 * hp300hpux.c (MY(write_object_contents)): Ditto.
3311 * freebsd.h (MY(write_object_contents)): Ditto.
3312 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3314 2000-02-29 H.J. Lu <hjl@gnu.org>
3316 * peicode.h (jtab): Make it static.
3318 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3319 defined and COFF_IMAGE_WITH_PE is not defined.
3320 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3321 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3323 2000-03-01 Nick Clifton <nickc@cygnus.com>
3325 * coff-arm.c (bfd_arm_process_before_allocation): Make
3326 'symndx' signed to prevent compile time warning.
3328 * coff-mcore.c: Remove unused prototype for pe_object_p.
3330 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3331 functions that are not used when COFF_IMAGE_WITH_PE is
3333 (struct sh_opcode): Change type of 'flags' field to unsigned
3334 long so that it can hold the USESAS flag.
3336 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3338 * elf-m10300.c (mn10300_elf_relax_section): Initialise
3341 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3343 Remove unusued variables and code.
3344 (elf_backend_add_symbol_hook): Fix prototype.
3346 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3349 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3352 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
3354 Remove unusued variables and code.
3355 (elf_backend_add_symbol_hook): Fix prototype.
3357 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
3359 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
3360 to unused function parameter.
3362 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
3364 Use EMPTY_HOWTO to initialise empty howto slots.
3365 Remove unused variables.
3367 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
3369 2000-03-01 H.J. Lu <hjl@gnu.org>
3371 * aoutx.h (aout_link_input_section_std): Pass "true" to
3372 the undefined_symbol callback.
3373 (aout_link_input_section_ext): Likewise.
3374 * bout.c (get_value): Likewise.
3375 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
3376 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
3378 (alpha_relocate_section): Likewise.
3379 * coff-arm.c (coff_arm_relocate_section): Likewise.
3380 * coff-i960.c (coff_i960_relocate_section): Likewise.
3381 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
3382 * coff-mips.c (mips_relocate_section): Likewise.
3383 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
3384 * coff-sh.c (sh_relocate_section): Likewise.
3385 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
3386 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
3387 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
3388 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3389 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
3390 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3391 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3392 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3393 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3394 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3395 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3396 * elf32-v850.c (v850_elf_relocate_section): Likewise.
3397 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
3398 * elflink.h (elf_link_output_extsym): Likewise.
3399 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
3400 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
3401 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
3403 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
3404 undefined_symbol callback when building shared library with
3405 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
3407 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3408 * elf32-i386.c (elf_i386_relocate_section): Likewise.
3409 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3410 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3411 (elf32_mips_get_relocated_section_content): Likewise.
3412 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3413 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3414 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3415 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3417 2000-02-28 Nick Clifton <nickc@cygnus.com>
3419 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
3420 * Makefile.in: Regenerate.
3422 * configure.in: Add support for mips and sh pe vectors.
3423 * configure: regenerate.
3425 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
3428 * targets.c: Add mips and sh pe vectors.
3430 * libpei.h (coff_final_link_postscript): Only define if not
3433 * coffcode.h: Add support for WinCE magic numbers.
3435 * peigen.c (pe_print_reloc): Update comment and rearrange
3436 appending of newline character.
3438 * peicode.h: Add support for Image Library Format.
3439 (pe_ILF_vars): Structure containing data used by ILF code.
3440 (pe_ILF_make_a_section): New function. Create a section based
3442 (pe_ILF_make_a_reloc): New function. Create a reloc based on
3444 (pe_ILF_make_a_symbol): New function. Create a symbol based
3446 (pe_ILF_save_relocs): New function. Store the relocs created
3447 by pe_ILF_make_a_reloc in a section.
3448 (pe_ILF_build_a_bfd): New function. Create a BFD describing
3450 (pe_ILF_object_p): New function. Return a bfd_target pointer
3452 (pe_bfd_object_p): If an ILF object is detected call
3453 pe_ILF_object_p on it.
3455 * coff-arm.c: Add support for WinCE relocs which are different
3456 from normal ARM COFF relocs.
3457 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
3459 * coff-sh.c: Add support for sh-pe target.
3460 * pe-sh.c: New file. Support code for sh-pe target.
3461 * pei-sh.c: New file. Support code for sh-pe target.
3463 * pe-mips.c: New file. Support code for mips-pe target.
3464 * pei-mips.c: New file. Support code for mips-pe target.
3466 2000-02-27 Jakub Jelinek <jakub@redhat.com>
3468 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
3469 architecture if the object causing the bump is dynamic.
3470 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
3471 and also don't it for memory ordering.
3472 (sparc64_elf_write_relocs): Take src_rela out of the loop.
3474 2000-02-27 Ian Lance Taylor <ian@zembu.com>
3476 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
3477 calling bfd_get_section_size_before_reloc.
3478 (decode_line_info): Likewise.
3479 (_bfd_dwarf2_find_nearest_line): Likewise.
3481 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
3483 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
3484 name of the libtool directory.
3485 * Makefile.in: Rebuild.
3487 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
3489 * som.c (SOM_HOWTO): Define.
3490 (som_hppa_howto_table): Use it.
3492 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3494 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
3496 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
3498 2000-02-24 Catherine Moore <clm@cygnus.com>
3500 * som.c (som_misc_symbol_info): Add field
3502 (som_bfd_derive_misc_symbol_info): Initialize
3504 (som_build_and_write_symbol_table): Keep track
3505 of secondary_def field.
3506 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
3507 if secondary_def field is set.
3508 (som_bfd_ar_write_symbol_stuff): Initialize
3511 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
3513 * dwarf2.c (read_address): Read 16-bits addresses.
3514 (parse_comp_unit): Accept addr_size == 2.
3516 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3518 * bfd-in.h: Update copyright date.
3520 2000-02-23 Linas Vepstas <linas@linas.org>
3522 * cpu-i370.c: New file.
3523 * elf32-i370.c: New file.
3524 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
3525 (bfd_i370_arch): New.
3526 (bfd_archures_list): Add bfd_i370_arch.
3527 * elf.c (prep_headers): Add bfd_arch_i370.
3528 * Makefile.am: Add support for IBM 370 elf.
3529 * config.bfd: Likewise.
3530 * configure.in: Likewise.
3531 * libbfd.h (bfd_reloc_code_real_names): Likewise.
3532 * reloc.c (bfd_reloc_code_type): Likewise.
3533 * targets.c: Likewise.
3535 * Makefile.in: Regenerate.
3536 * configure: Regenerate.
3537 * bfd-in2.h: Regenerate.
3539 2000-02-22 Ian Lance Taylor <ian@zembu.com>
3541 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
3542 invalid relocation types, and change them to R_386_NONE.
3544 2000-02-22 H.J. Lu <hjl@gnu.org>
3546 * elflink.h (elf_link_add_object_symbols): If a version symbol is
3547 not defined, don't add a second ELF_VER_CHR.
3549 * elflink.h (elf_bfd_final_link): Call output_extsym for global
3550 symbols converted to local symbols even when stripping all
3552 (elf_link_output_extsym): Process global symbols converted to
3553 local symbols even if they are being stripped.
3555 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3557 * archures.c (bfd_octets_per_byte): Return unsigned int.
3558 (bfd_arch_mach_octets_per_byte): Ditto.
3559 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
3561 * section.c (bfd_get_section_size_before_reloc): Quell signed
3562 vs. unsigned comparison warning.
3563 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
3564 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
3565 change. What was I thinking?
3566 * bfd-in2.h: Regenerate.
3568 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
3569 (elf_gc_sections): Same here.
3570 (elf_gc_common_finalize_got_offsets): And here.
3572 2000-02-21 Ian Lance Taylor <ian@zembu.com>
3574 ELF HPPA doesn't work at present; remove it until it does.
3575 * config.bfd: Comment out setting targ_defvec to
3577 * Makefile.am: Rebuild dependencies.
3578 (BFD32_BACKENDS): Remove elf32-hppa.lo.
3579 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
3580 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
3581 * Makefile.in: Rebuild.
3582 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
3584 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3586 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
3587 is no bfd_free(). Revert bfd_free part of previous change.
3589 2000-02-18 Geoff Keating <geoffk@cygnus.com>
3591 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
3593 (coff_compute_section_file_positions): Use bfd_free to pair
3595 (coff_write_object_contents): Likewise.
3597 * coff-rs6000.c (xcoff_howto_table_16): New variable.
3598 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
3600 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
3602 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
3603 (xcoff_ar_file_hdr_big): New structure.
3604 (SIZEOF_AR_FILE_HDR_BIG): New macro.
3605 (xcoff_ar_hdr_big): New structure.
3606 (SIZEOF_AR_HDR_BIG): New macro.
3607 (xcoff_big_format_p): New macro.
3608 (xcoff_ardata_big): New macro.
3609 (arch_xhdr_big): New macro.
3610 (xcoff_slurp_armap): Handle large archives.
3611 (xcoff_archive_p): Detect large archives.
3612 (xcoff_read_ar_hdr): Handle large archives.
3613 (xcoff_openr_next_archived_file): Handle large archives.
3614 (xcoff_generic_stat_arch_elt): Handle large archives.
3615 (xcoff_write_armap_old): Rename from xcoff_write_armap.
3616 (xcoff_write_armap_big): New function.
3617 (xcoff_write_armap): New function, dispatch to _old or _big.
3618 (xcoff_write_archive_contents_old): Rename from
3619 xcoff_write_archive_contents.
3620 (xcoff_write_archive_contents_big): New function.
3621 (xcoff_write_archive_contents): New function, dispatch to _old or
3624 2000-02-18 Richard Henderson <rth@cygnus.com>
3626 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
3627 and hide_symbol members.
3628 (elf_link_hash_copy_indirect): Remove.
3629 (elf_link_hash_hide_symbol): Remove.
3630 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
3631 and elf_backend_hide_symbol.
3632 (_bfd_elf_link_hash_copy_indirect): Declare.
3633 (_bfd_elf_link_hash_hide_symbol): Declare.
3634 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
3635 (_bfd_elf_link_hash_hide_symbol): Likewise.
3636 (_bfd_elf_link_hash_table_init): Don't init killed members.
3637 * elflink.h (elf_link_add_object_symbols): Use the bed function
3638 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
3639 (elf_link_assign_sym_version): Likewise.
3640 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
3641 (elf_backend_hide_symbol): Likewise.
3642 (elfNN_bed): Update for new members.
3644 2000-02-17 Kevin Buettner <kevinb@redhat.com>
3646 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
3647 STACK_END_ADDR): Define for new core file format.
3648 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
3649 for handling the vagaries of the various core file structures used
3650 by AIX over the years.
3651 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
3652 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
3653 core_dumpx structure.
3655 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3657 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
3658 (bfd_mach_sh3_dsp): Likewise.
3659 (bfd_mach_sh4): Reinstate.
3660 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
3661 * bfd-in2.h: Regenerate.
3662 * coff-sh.c (struct sh_opcode): flags is no longer short.
3663 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
3664 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
3665 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
3666 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
3667 (sh_opcodes): No longer const.
3668 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
3669 (sh_insn_uses_reg): Check for USESAS and USESR8.
3670 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
3671 (_bfd_sh_align_load_span): Return early for SH4.
3672 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
3673 Take into account that field b of a parallel processing insn
3674 could be mistaken for a separate insn.
3675 * cpu-sh.c (arch_info_struct): New array elements for
3676 sh2, sh-dsp and sh3-dsp.
3677 Reinstate element for sh4.
3678 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
3679 (SH4_NEXT): Reinstate.
3680 (SH3_NEXT, SH3E_NEXT): Adjust.
3681 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
3682 * elf32-sh.c (sh_elf_set_private_flags): New function.
3683 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
3684 (sh_elf_merge_private_data): New function.
3685 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
3686 (bfd_elf32_bfd_copy_private_bfd_data): Define.
3687 (bfd_elf32_bfd_merge_private_bfd_data): Change to
3688 sh_elf_merge_private_data.
3690 2000-02-13 Richard Henderson <rth@cygnus.com>
3692 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
3693 hide_symbol members.
3694 (elf_link_hash_copy_indirect): New.
3695 (elf_link_hash_hide_symbol): New.
3696 * elflink.h (elf_link_add_object_symbols): Break out copy from
3697 indirect new new symbol to elf.c.
3698 (elf_link_assign_sym_version): Break out privatization of
3699 non-exported symbol to elf.c.
3700 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
3701 (_bfd_elf_link_hash_hide_symbol): New.
3702 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
3704 2000-02-13 Ian Lance Taylor <ian@zembu.com>
3706 * section.c (_bfd_strip_section_from_output): Add info parameter.
3707 If it passed as non-NULL, use it to check whether any input BFD
3708 has an input section which uses this output section. Change all
3710 * bfd-in2.h: Rebuild.
3712 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
3713 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
3715 * bfd-in2.h: Rebuild.
3717 2000-02-10 Timothy Wall <twall@cygnus.com>
3719 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
3720 allow final modifications of swapped-in symbol.
3721 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
3722 * coffcode.h (coff_write_relocs): Use macro
3723 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
3724 symbol index should be set to -1.
3726 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
3728 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
3729 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
3730 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
3731 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
3732 sh_insns_uses_or_sets_freg): New functions.
3733 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
3734 * (sh_insns_conflict): Use new functions and new macros to
3735 detect conflicts when two instructions both set same integer registers,
3736 both set same fp register, and both set special register.
3738 2000-02-09 Timothy Wall <twall@cygnus.com>
3740 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
3741 swapping in sections, so that the swapping routines have access to
3744 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
3746 * coff-go32.c: Update comment. Update copyright.
3748 2000-01-27 Thomas de Lellis <tdel@windriver.com>
3750 * syms.c (bfd_decode_symclass)
3751 Two new class characters were added - 'V' and 'v'. The
3752 meaning of 'W' is now restricted to just weak non-object
3753 symbols. This allows differentiation between, for example,
3754 weak functions vs weak objects. nm for example now dumps:
3756 'w' = weak unresolved
3757 'V' = weak global object
3758 'v' = weak unresolved object
3760 (bfd_is_undefined_symclass): New function. Return true if the
3761 given symbol class represents and undefined/unresolved symbol.
3763 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
3766 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
3768 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
3769 STT_ARM_16BIT flag set, but it is not attached to a data object
3770 return STT_ARM_16BIT so that it will be treated as code by the
3773 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3775 * coff-i386.c (i3coff_object_p): Remove prototype.
3778 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
3779 to name. Update copyright.
3781 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
3782 assignment to avoid warning. Update copyright.
3784 2000-01-24 Robert Lipe (robertl@sco.com)
3786 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
3787 instead of using GNU C extension.
3789 2000-01-21 Nick Clifton <nickc@cygnus.com>
3791 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
3792 amount from a bfd_in_memory structure.
3793 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
3796 2000-01-14 Nick Clifton <nickc@cygnus.com>
3798 * linker.c (default_indirect_link_order): oops - fix incorrectly
3799 applied patch from Tim Wall.
3801 2000-01-13 Timothy Wall (twall@tiac.net>
3803 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
3804 = scnhsz, filhsz, relsz, aoutsz, etc)
3806 * coffswap.h: Ditto.
3808 2000-01-13 Nick Clifton <nickc@cygnus.com>
3810 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
3811 interwork thumb to arm stub.
3813 2000-01-13 Timothy Wall (twall@tiac.net>
3815 * archures.c (bfd_octets_per_byte): New function: Return
3817 (bfd_arch_mach_octets_per_byte): New function: Return target
3820 * section.c: Distinguish between octets and bytes for usage of
3821 _cooked_size, _raw_size, and output_offset. Clarify
3822 description of bfd_set_section_contents.
3824 * bfd-in2.h: Regenerate.
3826 * coffgen.c: Indicate that the offset parameter is in bytes, not
3829 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
3830 where appropriate to get the octet offset when calling
3831 bfd_set_section_contents.
3832 (bfd_coff_reloc_link_order): Ditto.
3834 * linker.c (bfd_generic_reloc_link_order): Ditto.
3835 (_bfd_default_link_order): Ditto.
3837 * reloc.c (bfd_perform_relocation): Distinguish between octets
3838 and bytes. Use octets when indexing into octet data; use bytes
3839 when calculating target addresses.
3840 (bfd_install_relocation): Ditto.
3842 * srec.c (srec_write_section): Ditto.
3844 2000-01-13 Nick Clifton <nickc@cygnus.com>
3846 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
3847 3 to 2. This allows 4 byte sized sections, which is necessary for
3848 dlltool to build functioning DLLs.
3850 2000-01-10 Philip Blundell <pb@futuretv.com>
3852 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
3853 (arm*-*-conix*): New target.
3855 2000-01-10 Egor Duda <deo@logos-m.ru>
3857 * config.bfd: Include elf32_i386 vector to target list for cygwin
3860 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
3861 * configure.in: Test for structure win32_pstatus_t in
3863 * configure: Regenerate.
3865 * elf.c (elfcore_grok_win32pstatus): New function: process
3866 win32_pstatus_t notes in elf core file.
3867 (elfcore_grok_note): Detect win32_pstatus notes.
3869 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
3871 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
3873 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
3874 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
3876 1999-12-29 Richard Henderson <rth@cygnus.com>
3878 * elflink.h (bfd_elf,size_dynamic_sections): Don't export all
3879 if no dynamic sections created.
3881 1999-12-27 Nick Clifton <nickc@cygnus.com>
3883 * peicode.h (pe_bfd_object_p): Only define for PE format
3886 1999-12-17 Nick Clifton <nickc@cygnus.com>
3888 * coff-i386.c (i3coff_object_p): Delete.
3889 (i386coff_vec): Replace reference to i3coff_object_p with a
3890 reference to coff_object_p.
3892 * coff-mcore.c (pe_object_p): Delete.
3894 * peicode.h (pe_bfd_object_p): New function: Detect the
3895 presence of a PE format COFF object file. Also detect and
3896 warn about the presence of LINK6 format Image Library Format
3899 1999-12-16 Nick Clifton <nickc@cygnus.com>
3901 * coff-arm.c (NUM_ELEM): New macro.
3902 (NUM_RELOCS): New macro: The number of known ARM relocs.
3903 (RTYPE2HOWTO): Return NULL if the reloc type is out of range.
3904 (coff_arm_rtype_to_howto): Return NULL if the reloc type is out
3906 (bfd_arm_process_before_allocation): Produce a warning message if
3907 an out of range symbol index is encountered.
3909 1999-12-14 Nick Clifton <nickc@cygnus.com>
3911 * elflink.h (is_global_symbol_definition): New Function: Return
3912 true iff the symbol is being given a global definition in this
3914 (elf_link_is_defined_archive_symbol): Do not bother processing
3915 symbols for an archive element that has already been included
3917 Use is_global_symbol_definition().
3919 1999-12-09 Andrew Cagney <cagney@cygnus.com>
3921 * config.bfd: Add support for sparc-*-netbsdelf* and
3922 sparc-*-netbsdaout*.
3924 1999-12-13 Nick Clifton <nickc@cygnus.com>
3926 * elflink.h (elf_link_is_defined_archive_symbol): Check to see
3927 if the symbol is in the common section.
3929 1999-12-10 Nick Clifton <nickc@cygnus.com>
3931 * elflink.h (elf_link_is_defined_archive_symbol): New
3932 function: Decide if a symbol, in an archive map is there
3933 because it is defined in the archive element, or because it is
3934 just another common declaration of it.
3935 (elf_link_add_archive_symbols): Use
3936 elf_link_is_defined_archive_symbol to decide if an archive
3937 element contain a reference to a common symbol should be
3940 1999-12-10 Nick Clifton <nickc@cygnus.com>
3942 * elflink.h: Revert previous patch.
3943 * targets.c: Revert previous patch.
3944 * libbfd-in2.h: Revert previous patch.
3945 * libbfd.h: Revert previous patch.
3946 * elfxx-target.h: Revert previous patch.
3947 * archive.c: Revert previous patch.
3948 * aout-target.h: Revert previous patch.
3949 * aout-tic30.h: Revert previous patch.
3950 * bfd.c: Revert previous patch.
3951 * coff-alpha.c: Revert previous patch.
3952 * coff-rs6000.c: Revert previous patch.
3953 * elf64-mips.c: Revert previous patch.
3954 * ieee.c: Revert previous patch.
3955 * libecoff.h: Revert previous patch.
3956 * oasys.c: Revert previous patch.
3957 * som.c: Revert previous patch.
3958 * vms.c: Revert previous patch.
3960 1999-12-09 Nick Clifton <nickc@cygnus.com>
3962 * elflink.h (elf_link_add_archive_symbols): Add an archive
3963 element even if contains a symbol which is currently only
3964 considered to be a common.
3966 * targets.c (struct bfd_target): Add new field
3967 _bfd_allow_commons_in_armap.
3968 * bfd-in2.h:Regenerate.
3970 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
3972 (_bfd_archive_bsd_allow_commons_in_armap): Define.
3973 * libbfd.h: Regenerate.
3975 * elfxx-target.h: If using COFF archive map, override
3976 definition of allow_commons_in_armap and replace with
3979 * archive.c (bfd_compute_and_write_armap): Do not place common
3980 symbols into the archive map unless _bfd_allow_commons_in_armap
3983 * aout-target.h (MY_allow_commons_in_armap): Define.
3984 * aout-tic30.h (MY_allow_commons_in_armap): Define.
3985 * bfd.c (bfd_allow_commons_in_armap): Define.
3986 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
3987 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
3988 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
3989 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
3990 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
3991 * oasys.c (oasys_allow_commons_in_armap): Define.
3992 * som.c (som_allow_commons_in_armap): Define.
3993 * vms.c (vms_allow_commons_in_armap): Define.
3995 1999-12-07 Jim Blandy <jimb@cygnus.com>
3997 Add support for SSE registers in ELF core files.
3998 * elf.c (elfcore_make_note_pseudosection): New function.
3999 (elfcore_grok_prfpreg): Use it.
4000 (elfcore_grok_prxfpreg): New function.
4001 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
4003 1999-12-03 Ian Lance Taylor <ian@zembu.com>
4005 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
4006 value by 4 before storing it back in the field. From
4007 Koundinya. K <kk@ddeorg.soft.net>.
4009 Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com)
4011 * archures.c (bfd_mach_am33): Define.
4012 * bfd-in2.h: Rebuilt.
4013 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
4014 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
4015 (compute_function_info): Handle additional registers saved by
4017 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
4018 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
4020 1999-11-29 Jim Blandy <jimb@cygnus.com>
4022 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
4024 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
4027 1999-11-27 Michael Meissner <meissner@cygnus.com>
4029 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
4030 internal use within gas for alpha explicit relocations.
4031 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
4032 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
4033 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
4034 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
4035 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
4036 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
4038 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
4039 BFD_RELOC_ALPHA_USER_*.
4041 * bfd-in2.h: Regenerate.
4042 * libbfd.h: Regenerate.
4044 1999-11-26 Fred Fish <fnf@cygnus.com>
4046 * elf.c (elfcore_read_notes): Add prototype for static function.
4047 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
4048 (bfd_section_from_phdr): Replacement function that calls
4049 _bfd_elf_make_section_from_phdr for generic segment types and
4050 backend fucntion pointed to by elf_backend_section_from_phdr for
4051 backend specific segment types.
4052 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
4053 now called by _bfd_elf_make_section_from_phdr. Note that this func
4054 is now just a stub between the caller and bfd_section_from_phdr.
4056 * elf-bfd.h (struct elf_backend_data): Add new function pointer
4057 elf_backend_section_from_phdr.
4058 (elf_backend_section_from_phdr): Add prototype.
4060 * elfxx-target.h (elf_backend_section_from_phdr): Define default.
4061 (elfNN_bed): Add elf_backend_section_from_phdr.
4063 1999-11-25 Nick Clifton <nickc@cygnus.com>
4065 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
4066 SEC_CODE and SEC_READONLY flags to glue sections.
4068 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
4069 SEC_CODE and SEC_READONLY flags to glue sections.
4071 1999-11-20 Nick Clifton <nickc@cygnus.com>
4073 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
4076 1999-11-19 Catherine Moore <clm@cygnus.com>
4078 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
4079 (elf_cpu32_plt_entry): Likewise.
4081 1999-11-18 Nick Clifton <nickc@cygnus.com>
4083 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
4085 (coff_mcore_relocate_section): Initialise addend to 0.
4086 Special case processing of RVA reloc.
4088 1999-11-17 Richard Henderson <rth@cygnus.com>
4090 * elf-bfd.h (struct elf_backend_data): Reorder collect and
4091 type_change_ok; add sign_extend_vma.
4092 * elf32-mips.c (elf_backend_sign_extend_vma): Define.
4093 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
4094 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
4095 * elfxx-target.h (elf_backend_sign_extend_vma): Default.
4096 (elfNN_bed): Follow struture changes.
4098 1999-11-09 Ian Lance Taylor <ian@zembu.com>
4100 * libbfd.c (bfd_read): Check result of read against desired result
4102 (_bfd_generic_get_section_contents): Set bfd_error if the seek is
4103 invalid compared to the section size.
4105 * ieee.c (ieee_slurp_debug): Get the length of the debug
4106 information right if there is no data part.
4108 Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com)
4110 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
4111 R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
4113 1999-10-28 Ian Lance Taylor <ian@zembu.com>
4115 * elflink.h (elf_bfd_final_link): Make last_local signed.
4117 1999-10-27 Ian Lance Taylor <ian@zembu.com>
4119 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
4122 Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
4124 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
4126 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
4127 * bfd-in2.h: Regenerate.
4129 1999-10-15 Andrew Haley <aph@cygnus.com>
4131 * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
4133 Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
4135 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
4137 1999-10-08 Ian Lance Taylor <ian@zembu.com>
4139 * elflink.h (elf_merge_symbol): When overriding a weak symbol with
4140 a defined symbol in a shared library, clear the DEF_DYNAMIC flag
4143 Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com>
4145 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
4146 relocs also need the GP value.
4147 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
4148 properly. Handle sign-extension for R_MIPS_64 correctly. Correct
4149 the GP value for R_MIPS_LITERAL relocs too. Handle
4150 R_MIPS_64 relocs properly on big-endian MIPS.
4151 (mips_elf_sign_extend): Behave properly with 'long long'.
4152 (mips_elf_highest): Correct typo.
4154 Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com>
4156 * cpu-m32r.c (arch_info_struct): New static global.
4157 (bfd_m32r_arch): Refer to it.
4158 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
4159 (m32r_elf_print_private_bfd_data): Ditto.
4160 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
4161 * archures.c (bfd_mach_m32rx): Define it.
4162 * bfd-in2.h: Rebuild.
4164 1999-09-28 Fred Fish <fnf@cygnus.com>
4166 * targets.c (cisco_core_vec): Replaced with two new vecs ...
4167 (cisco_core_big_vec): Add new bigendian vec.
4168 (cisco_core_little_vec): Add new little endian vec.
4170 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
4171 (crash_info_locs): Add array of possible offsets.
4172 (MASK_ADDR): Mask to apply to crash info offset.
4173 (crashinfo_external): Add textbase, database, bssbase and
4174 turn into a typedef.
4175 (cisco_core_file_validate): Renamed from cisco_core_file_p.
4176 Many small changes to account for additional hardware versions.
4177 Pick a reasonable size for ".reg" section. Add a ".crash"
4178 section to allow access to crashinfo_external struct.
4179 (cisco_core_file_p): New version of this function that
4180 iterates over crash_info_locs, calling cisco_core_file_validate.
4181 (cisco_core_vec): Old big endian only vec replaced with ...
4182 (cisco_core_big_vec): Add big endian version.
4183 (cisco_core_little_vec): Add little endian version.
4185 * configure.in (cisco_core_vec): Split to two new vectors ...
4186 (cisco_core_big_vec): New target vector.
4187 (cisco_core_little_vec): New target vector.
4188 * configure: Regenerate.
4189 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
4190 to cisco_core_big_vec in targ_selvecs.
4192 1999-09-28 Geoffrey Keating <geoffk@cygnus.com>
4194 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
4195 (mips_elf_relocate_got_local): Unused, delete.
4196 (mips_elf_relocate_global_got): Unused, delete.
4198 1999-09-24 Fred Fish <fnf@cygnus.com>
4200 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
4201 to initialize it to something meaningful. Then use it to generate
4202 more useful segment names.
4204 Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com)
4206 * som.c (NO_PCREL_MODES): Define if the system does not define
4208 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
4209 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
4210 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
4211 * libhppa.h (dis_assemble_22): New function.
4212 (bfd_hppa_insn2fmt): Handle long branch.
4214 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
4217 1999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
4219 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
4220 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
4221 (reloc_howto_type howto_table): Tidy comments and whitespace.
4223 1999-09-17 Nick Clifton <nickc@cygnus.com>
4225 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
4226 previous delta. Set sec->gc_mark instead.
4228 Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com>
4230 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
4231 (elf_cpu32_plt_entry): Likewise.
4233 Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com)
4235 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
4237 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
4238 symbol table, then just compute a suitable value (but do not
4239 create a __gp symbol).
4241 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined
4242 symbols when building shared libraries.
4243 (elf_hppa_final_link_relocate): Correct handling of PCREL
4244 relocations against undefined symbols.
4246 1999-09-16 Nick Clifton <nickc@cygnus.com>
4248 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
4249 interworking sections as linker created so that they will not
4250 be removed by garbage collection.
4252 Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
4254 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
4255 (elf_hppa_final_link_relocate): Consistently create an absolute
4256 address, then subtract out the value of __gp.
4258 1999-09-14 Michael Meissner <meissner@cygnus.com>
4260 * configure.in (Canonicalization of target names): Remove adding
4261 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
4262 generates $ac_config_sub with a ${CONFIG_SHELL} already.
4263 * configure: Regenerate.
4265 1999-09-14 Nick Clifton <nickc@cygnus.com>
4267 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
4270 Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com)
4272 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.
4273 (elf_hppa_final_link): Initialize text_segment_base and
4275 (elf_hppa_final_link_relocate): Handle SEGREL relocations.
4277 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.
4278 (elf_hppa_final_link_relocate): Likewise.
4279 (elf_hppa_relocate_insn): Likewise.
4280 (elf_hppa_relocate_section): Initialize HOWTO.
4282 1999-09-13 Donn Terry <donn@interix.com>
4284 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
4285 handling to support both GNU and MS objects.
4287 * coffcode.h (coff_write_object_contents): Don't check reloc_count
4288 when determining whether to set F_RELFLG.
4290 1999-09-13 Philip Blundell <pb@nexus.co.uk>
4292 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
4293 PC24 relocs if the target is an undefined weak symbol.
4294 (arm_add_to_rel): Fix compiler warning.
4295 (elf32_arm_plt0_entry): Correct comments.
4297 1999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
4299 * elfcode.h (write_relocs): Check for the_bfd NULL when handling
4300 an absolute symbol in REL relocs.
4302 Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
4304 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
4305 Stub SEGREL32. Return an error for any relocation not handled.
4307 1999-09-12 Ian Lance Taylor <ian@zembu.com>
4309 * cofflink.c (coff_link_add_symbols): Look for special MSVC string
4310 constant symbols, and avoid multiple definition errors on them.
4312 1999-09-12 Donn Terry <donn@interix.com>
4314 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
4315 significant bit is set.
4317 1999-09-11 Ian Lance Taylor <ian@zembu.com>
4319 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
4321 * elfcode.h (write_relocs): Handle an absolute symbol in REL
4322 relocs as we do for RELA relocs.
4324 1999-09-11 Donn Terry <donn@interix.com>
4326 * libpei.h (_bfd_pei_final_link_postscript): Declare.
4327 (coff_final_link_postscript): Define.
4328 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
4329 directory entries here.
4330 (_bfd_pei_final_link_postscript): New function.
4332 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
4333 section flags based on the section name.
4335 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
4336 get the overflow of the s_nlnno field from the s_nreloc field.
4337 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
4338 the s_nlnno overflow of the .text section into the s_nreloc
4341 * peigen.c (add_data_entry): Declare.
4342 (pei_swap_aouthdr_out): Get image size right. Set linker version
4344 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
4345 (pe_print_idata): Code cleanup, print more info, get rid of (now)
4346 extraneous ImageBase.
4347 (pe_print_edata): Likewise.
4348 (pe_print_pdata): Likewise. Print exception entries.
4349 (pe_print_reloc): Likewise. Print MIPS_JMPADDR.
4350 (tbl): Make const, add "UNKNOWN".
4351 (_bfd_pe_print_private_bfd_data_common): Print timestamp.
4352 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
4353 section data directory.
4354 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
4356 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
4357 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
4358 * peicode.h (coff_get_symbol_info): Define.
4360 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to
4362 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
4364 (coff_classify_symbol): Re-revert 1999-08-08 patch if
4367 * libpei.h: New file, broken out of peicode.h.
4368 * peigen.c: New file, broken out of peicode.h.
4369 * peicode.h: A bunch of code moved out to libpei.h and peigen.c.
4370 * configure.in: Add peigen.lo to list of files required for each
4372 * Makefile.am: Rebuild dependencies.
4373 (BFD32_BACKENDS): Add peigen.lo.
4374 (BFD32_BACKENDS_CFILES): Add peigen.c.
4375 (SOURCE_HFILES): Add libpei.h.
4376 * configure, Makefile.in: Rebuild.
4378 * peicode.h (coff_swap_scnhdr_in): Don't check for a special
4379 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
4380 instead. Don't clear the s_paddr field for an uninitialized data
4383 * coffcode.h (coff_mkobject_hook): Set timestamp field in
4384 coff_data_type to f_timdat.
4385 * peicode.h (pe_mkobject_hook): Likewise.
4387 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic
4388 number if COFF_IMAGE_WITH_PE.
4390 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
4391 to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
4392 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
4393 there is no SEC_DEBUGGING section.
4394 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
4395 IMAGE_FILE_DEBUG_STRIPPED.
4397 * pe-i386.c (COFF_LONG_FILENAMES): Define.
4398 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
4399 * pei-i386.c (COFF_LONG_FILENAMES): Define.
4400 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
4402 * coffswap.h (IMAGE_BASE): Don't define.
4403 * pei-arm.c (IMAGE_BASE): Don't define.
4404 * pei-i386.c (IMAGE_BASE): Don't define.
4405 * pei-mcore.c (IMAGE_BASE): Don't define.
4406 * pei-ppc.c (IMAGE_BASE): Don't define.
4408 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a
4409 symbol, switch on the class when determining whether to modify the
4410 value. For PE, don't modify the value of a C_FCN symbol not named
4413 * libbfd-in.h (_bfd_abort): Declare.
4415 * bfd.c (_bfd_abort): New function.
4416 * libbfd.h: Rebuild.
4418 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
4421 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
4422 don't write out the associated line numbers.
4424 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
4427 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type
4428 changes when the base type is unknown.
4430 * coffgen.c (coff_print_symbol): Fix printing of aux record for
4433 * syms.c (BSF_DEBUGGING_RELOC): Define.
4434 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
4435 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
4437 * coffgen.c (fixup_symbol_value): Relocate a symbol which has
4438 BSF_DEBUGGING_RELOC set.
4439 * bfd-in2.h: Rebuild.
4441 1999-09-10 Ian Lance Taylor <ian@zembu.com>
4443 * ecoff.c (bfd_debug_section): Update initialization for new
4445 (_bfd_ecoff_styp_to_sec_flags): Add section parameter.
4446 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
4448 1999-09-10 H.J. Lu <hjl@gnu.org>
4450 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
4451 _bfd_filnmlen field.
4452 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4454 Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com)
4456 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
4457 for FPTR relocs involving local symbols.
4459 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right
4460 value for the stub address in a call through a stub.
4461 Install the value for a local symbol directly into the DLT
4462 instead of generating a reloc. Correctly handle FPTR64 relocs.
4464 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
4465 (elf_hppa_remark_useless_dynamic_symbols): Similarly.
4466 (elf_hppa_final_link): Call them.
4468 1999-09-10 Ian Lance Taylor <ian@zembu.com>
4470 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
4471 (elf_adjust_dynamic_symbol): ...from here.
4473 Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)
4475 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
4476 relocation, remove them. SECREL64->LTOFF16WF.
4477 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
4479 (elf_hppa_relocate_insn): Similarly.
4481 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
4482 (elf_hppa_relocate_insn): Similarly.
4484 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
4486 (elf_hppa_relocate_insn): Similarly.
4488 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
4489 Handle LTOFF_TP* relocs.
4490 (elf_hppa_relocate_insn): Similarly.
4492 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
4493 Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
4494 (elf_hppa_relocate_insn): Handle PCREL* relocs.
4496 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
4497 DIR32, DIR64 and FPTR64 relocations.
4498 (elf_hppa_relocate_insn): Similarly.
4500 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
4501 address of the .PARISC.global section.
4502 (elf_hppa_relocate_section): Lookup and pass the PA64 hash
4503 table entry elf_hppa_final_link_relocate. Do not give a warning
4504 for a reloc against an external symbol if it has a PA64 hash
4506 (elf_hppa_final_link_relocate): Significantly rework. Handle
4507 DLTIND relocations. Compute the final value of the relocation
4508 before passing the value of elf_hppa_relocate_insn.
4509 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
4510 relocation support. Handle DLTIND relocation requests just like
4511 DLTREL relocation requests. Simplify branch handling.
4513 1999-09-08 Ulrich Drepper <drepper@cygnus.com>
4515 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with
4516 non-allocated section as done in i386 version.
4517 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
4518 statement since this is no know relocation.
4520 Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com)
4522 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
4524 (elf_hppa_relocate_insn): Similarly.
4526 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
4528 (elf_hppa_relocate_insn): Similarly.
4530 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
4531 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
4532 Pass the relocate type rather than the insn format to
4533 elf_hppa_relocate_insn.
4534 (elf_hppa_relocate_insn): Make switch dependent on relocation type
4535 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
4537 1999-09-07 Ian Lance Taylor <ian@zembu.com>
4539 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
4540 (bfd_coff_filnmlen): Define.
4541 (bfd_coff_std_swap_table): Initialize new field.
4542 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
4544 (coff_write_symbols): Likewise.
4545 (coff_get_normalized_symtab): Likewise.
4546 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
4547 * libcoff.h: Rebuild.
4549 1999-09-06 Donn Terry <donn@interix.com>
4551 * coffcode.h (sort_by_secaddr): New static function if
4553 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
4554 sections by VMA when assigning target_index values. Always set
4557 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
4558 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
4560 * libcoff.h: Rebuild.
4562 * coffcode.h (coff_set_custom_section_alignment): Add const to
4563 declaration to match definition.
4564 (coff_write_object_contents): Don't set F_AR32W(R)? if
4567 * coff-i386.c (in_reloc_p): Add declaration.
4568 (i386coff_vec): Simplify initialization of
4569 application_section_flags.
4571 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
4572 version. Move COFF_WITH_PE specific code to new version.
4573 (stype_to_sec_flags): Likewise. Add section parameter.
4574 * coffgen.c (make_a_section_from_file): Set target_index before
4575 calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
4576 * libcoff.h: Rebuild.
4578 * syms.c (stt): Add some PE/PEI section names.
4579 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
4581 (bfd_symbol_info): Check for 'w'.
4583 * section.c (struct bfd_comdat_info): Define.
4584 (asection): Add comdat field.
4585 (STD_SECTION): Initialize comdat field.
4586 (bfd_make_section_anyway): Likewise.
4587 * bfd-in2.h: Rebuild.
4589 1999-09-06 Andreas Schwab <schwab@suse.de>
4591 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
4594 1999-09-06 Nick Clifton <nickc@cygnus.com>
4596 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
4597 bfd_realloc instead of calloc and realloc.
4599 1999-09-04 Steve Chamberlain <sac@pobox.com>
4601 * cpu-pj.c: New file.
4602 * elf32-pj.c: New file.
4603 * config.bfd (pj*): New cpu.
4604 (pj-*-*, pjl-*-*): New targets.
4605 * configure.in (bfd_elf32_pj_vec): New target vector.
4606 (bfd_elf32_pjl_vec): New target vector.
4607 * archures.c (bfd_arch_pj): Define.
4608 * elf.c (prep_headers): Handle bfd_arch_pj.
4609 * reloc.c: Define BFD_RELOC_PJ_* relocations.
4610 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
4611 to target vector list.
4612 * Makefile.am: Rebuild dependencies.
4613 (ALL_MACHINES): Add cpu-pj.lo.
4614 (ALL_MACHINES_CFILES): Add cpu-pj.c.
4615 (BFD32_BACKENDS): Add elf32-pj.lo.
4616 (BFD32_BACKENDS_CFILES): Add elf32-pj.c.
4617 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
4619 1999-09-04 Ian Lance Taylor <ian@zembu.com>
4621 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
4622 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
4623 and NON_GOT_REF from weak defined symbol to real symbol.
4624 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
4625 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
4626 create a COPY reloc.
4627 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
4628 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
4629 don't create a COPY reloc.
4631 1999-09-03 Ian Lance Taylor <ian@zembu.com>
4633 * elflink.h (elf_bfd_final_link): When counting relocations, don't
4634 count those in sections we are not including in the link.
4636 Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com)
4638 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
4639 field in hpux11 shared libraries.
4641 1999-09-02 Nick Clifton <nickc@cygnus.com>
4643 * elflink.h (elf_gc_record_vtentry): Fix memory leak.
4645 Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
4647 * elf-hppa.h (elf_hppa_add_symbol_hook): New function.
4648 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
4649 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
4651 1999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
4653 * elflink.h (record_link_assignment): When possible, keep the
4654 original type of the symbol.
4656 Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com)
4658 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
4659 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
4660 tools were configured.
4661 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
4663 1999-08-26 Mark Mitchell <mark@codesourcery.com>
4665 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
4666 GOT entries for GOT16 relocations; they're not required.
4668 1999-08-24 Nick Clifton <nickc@cygnus.com>
4670 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
4672 * config.bfd (arm-*-netbsd*): New target.
4673 * configure.in (armnetbsd_vec): New target vector.
4674 * configure: Regenerate
4675 * targets.c (bfd_target_vector): Add &armnetbsd_vec.
4677 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
4678 (ALL_MACHINES_CFILES): Add armnetbsd.c.
4679 (armnetbsd.lo): New rule with deps.
4680 * Makefile.in: Regenerate.
4682 * armnetbsd.c: New file: Definitions specific to arm-netbsd
4685 Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com)
4687 * som.c (som_slurp_symbol_table): Fix typo in comment.
4689 Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com)
4691 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices
4692 here instead of using elf_section_data...
4694 1999-08-19 Nick Clifton <nickc@cygnus.com>
4696 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
4697 relocations into the base file.
4698 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
4699 we are building a base file.
4701 1999-08-19 Nick Clifton <nickc@cygnus.com>
4703 * elf32-arm.h (arm_add_to_rel): New function. Add a value to
4705 (elf32_arm_relocate_section): Use arm_add_to_rel to increment
4706 REL relocs when performing a partial relocation.
4708 1999-08-18 Donn Terry <donn@interix.com>
4710 * cofflink.c: Move definitions of N_TMASK, et. al., out of
4711 _bfd_coff_link_input_bfd into top level.
4713 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
4714 (RTYPE2HOWTO): Return NULL if reloc type is out of range.
4715 (coff_i386_rtype_to_howto): Likewise.
4716 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
4717 Completely ignore symbols which are all zero.
4718 (dummy_reloc16_estimate): Add return 0.
4719 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
4720 variable copy to name_copy to avoid shadowing outer scope
4722 * libcoff-in.h (coff_data_type): Change raw_syment_count field
4723 from unsigned int to unsigned long. Add timestamp field.
4724 * libcoff.h: Rebuild.
4726 1999-08-17 H.J. Lu <hjl@gnu.org>
4728 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
4731 1999-08-17 Ian Lance Taylor <ian@zembu.com>
4733 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
4734 for special section symbols.
4735 * elflink.h (elf_merge_symbol): If we have no old BFD, check
4736 BSF_DYNAMIC on the section symbol to see whether the old BFD is
4739 1999-08-15 Mark Mitchell <mark@codesourcery.com>
4741 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
4742 coincidence of variable names between old and new code.
4744 1999-08-12 Nick Clifton <nickc@cygnus.com>
4746 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
4747 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
4748 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
4749 and 'addend' parameter a 'bfd_signed_vma'.
4750 (elf32_arm_final_link_relocate): Do not involve stubs in
4751 R_ARM_THM_PC22 relocs relative to section symbols, they are long
4752 jumps, not function calls.
4754 1999-08-11 Robin Farine <advanc@dial.eunet.ch>
4756 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
4757 in R_ARM_PC24 relocs.
4759 Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
4761 * elf-hppa.h (elf_hppa_fake_sections): New function.
4762 * elf32-hppa.c (elf_backend_fake_sections): Define.
4764 * elf-hppa.h (elf_hppa_final_write_processing): Update for
4765 recent changes to the arch_info structure.
4767 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
4768 R_HPPA_SEGBASE and R_HPPA_SEGREL32.
4769 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
4772 Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
4773 Ralf Baechle <ralf@uni-koblenz.de>
4775 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
4776 output DT_MIPS_GOTSYM.
4777 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as
4778 DT_MIPS_SYMTABNO if there are no global GOT symbols.
4780 Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com>
4782 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change
4783 prototype. Handle local symbols. Add commentary.
4784 (mips_elf_calculate_relocation): Adjust accordingly.
4785 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
4788 * elflink.h (elf_bfd_final_link): Tweak last change.
4790 1999-08-09 Mark Mitchell <mark@codesourcery.com>
4792 * elflink.h (elf_link_size_reloc_section): Use the counts in the
4793 elf-section data to allocate just the right amount of relocation
4794 space. Don't allocate the hash space twice.
4795 (elf_bfd_final_link): Calculate the amount of space to allocate in
4796 each relocation section.
4798 Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com)
4800 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
4801 64bit mode, generate a section relative relocation for a 32bit
4803 (elf_hppa_is_local_label_name): New function.
4804 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
4805 shared between 32bit and 64bit port.
4807 1999-08-09 Mark Mitchell <mark@codesourcery.com>
4809 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for
4810 R_MIPS_GOT16 and R_MIPS_CALL16.
4811 (mips_elf_got16_entry): Use mips_elf_high to calculate the value
4812 to use when looking for a preexisting GOT entry.
4814 1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
4816 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
4817 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
4819 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4821 1999-08-09 Geoff Keating <geoffk@cygnus.com>
4823 * elflink.h (elf_link_output_extsym): Don't output a weak
4824 reference to an undefined symbol just because it was defined weak
4827 1999-08-09 Eli Zaretskii <eliz@is.elta.co.il>
4829 * coffgen.c (coff_find_nearest_line): When looking for file, use
4830 last best match rather than first. If address is beyond last line
4831 number record, don't return the last line as the correct value.
4833 1999-08-08 Ian Lance Taylor <ian@zembu.com>
4835 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
4836 * bfd-in2.h: Rebuild.
4838 1999-08-08 Mark Elbrecht <snowball3@bigfoot.com>
4840 * libcoff-in.h (struct coff_section_alignment_entry): Define.
4841 * coffcode.h (coff_set_custom_section_alignment): New static
4843 (coff_section_alignment_table): New static array.
4844 (coff_new_section_hook): Use coff_set_customer_section_alignment.
4845 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
4846 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
4847 * libcoff.h: Rebuild.
4849 1999-08-08 Ian Lance Taylor <ian@zembu.com>
4851 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
4853 * Makefile.in: Rebuild.
4855 1999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
4857 * section.c (SEC_SHARED): Define.
4858 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
4859 (styp_to_sec_flags): Likewise.
4860 * peicode.h (coff_swap_scnhdr_out): Likewise.
4861 * bfd-in2.h: Rebuild.
4863 1999-08-08 Ian Lance Taylor <ian@zembu.com>
4865 * coffcode.h (coff_classify_symbol): Comment out part of
4866 1999-08-05 change which breaks cygwin DLLs.
4868 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
4869 * aclocal.m4, configure: Rebuild.
4871 1999-08-06 Ian Lance Taylor <ian@zembu.com>
4873 * section.c (global_syms): Only initialize union field if
4876 1999-08-04 Mark Mitchell <mark@codesourcery.com>
4878 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by
4879 the size of a GOT entry here.
4880 (mips_elf_calculate_relocation): Don't create a local GOT entry
4881 for the symbol in a GOT16 relocation; just for it's high-order bit
4882 (_bfd_mips_elf_relocate_section): Fix thinko.
4884 1999-08-05 Ian Lance Taylor <ian@zembu.com>
4886 Based on patches from Donn Terry <donn@interix.com>:
4887 * coffcode.h (enum coff_symbol_classification): Define.
4888 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to
4889 _bfd_coff_classify_symbol. Change return type.
4890 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global.
4891 (coff_slurp_symbol_table): Use coff_classify_symbol.
4892 (coff_classify_symbol): New static function.
4893 (coff_sym_is_global): Never define.
4894 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol.
4895 * cofflink.c (coff_link_check_ar_symbols): Use
4896 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global.
4897 (coff_link_add_symbols): Likewise.
4898 (_bfd_coff_link_input_bfd): Likewise.
4899 * coff-sh.c (bfd_coff_small_swap_table): Initialize with
4900 coff_classify_symbol.
4901 * libcoff.h: Rebuild.
4903 Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com)
4905 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors
4906 (e_ltpsel, e_rtpsel): Similarly.
4908 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel
4909 and 14bit ertpsel. Handle 64bit psel.
4911 1999-08-04 Mark Mitchell <mark@codesourcery.com>
4913 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16
4914 handling for REL relocations. And only left-shift R_MIPS26
4915 relocation addends where necessary.
4917 1999-08-03 Mark Mitchell <mark@codesourcery.com>
4919 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ...
4920 (mips_elf_next_lo16_relocation): Don't compute the addend here.
4921 Just return the relocation found.
4922 (mips_elf_relocate_section): Pull the LO16 addend out of the
4923 section itself when using REL relocations.
4925 * elf32-mips.c (mips_elf_calculate_relocation): Restore
4926 _DYNAMIC_LINK handling and handling of undefined symbols in shared
4929 1999-08-03 Ian Lance Taylor <ian@zembu.com>
4931 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation
4932 value of a symbol in a SEC_DEBUGGING section. Warn when doing a
4933 relocation against a symbol in an input section with no output
4934 section. From Daniel Jacobowitz <drow@false.org>.
4936 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used.
4938 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to
4939 look for generated file correctly.
4940 * aclocal.m4, configure: Rebuild.
4942 1999-08-02 Mark Mitchell <mark@codesourcery.com>
4944 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26
4945 and R_MIPS16_26 relocations correctly when relocating.
4946 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16
4947 and R_MIPS_CALL_LO16 are for global symbols.
4949 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
4951 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just
4953 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used
4954 variables and initialize them.
4956 1999-08-01 Mark Mitchell <mark@codesourcery.com>
4958 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where
4959 there are no global symbols requiring GOT entries.
4960 (_bfd_mips_elf_size_dynamic_sections): Likewise.
4961 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
4962 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
4964 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak
4965 symbols are considered to have the value zero.
4966 (_bfd_mips_elf_relocate_section): Don't try to perform a
4967 relocation for an undefined symbol.
4968 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local
4971 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
4973 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI
4974 wants ba,a,pt %xcc instead of %icc.
4975 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots
4976 of large PLT entries.
4977 (sparc64_elf_plt_ptr_offset): Fix calculation.
4978 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT
4979 addend should be relative to load address, not .plt section start.
4980 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries.
4982 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
4984 * elf-bfd.h (struct elf_backend_data): Add
4985 print_symbol_all and output_arch_syms backend methods.
4986 * elfxx-target.h: Likewise.
4987 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
4988 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
4989 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
4991 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
4992 symbols in .dynsym, add their names into .dynstr. Put those symbols
4994 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
4995 pointers to STT_REGISTER symbols in dynsym section.
4996 (sparc64_elf_print_symbol_all): New function.
4997 * elf.c (bfd_elf_print_symbol): Allow special backend symbol
4998 printing using the print_symbol_all hook.
5000 1999-07-30 Catherine Moore <clm@cygnus.com>
5002 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for
5005 1999-07-29 Richard Henderson <rth@cygnus.com>
5007 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if
5008 dynamic_sections_created.
5010 1999-07-29 Richard Henderson <rth@cygnus.com>
5012 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ...
5013 (mips_rtype_to_howto): ... new function.
5014 (_bfd_mips_elf_relocate_section): Use it.
5016 1999-07-28 Mark Mitchell <mark@codesourcery.com>
5018 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.
5020 1999-07-27 Nick Clifton <nickc@cygnus.com>
5022 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk>
5024 * coff-arm.c (coff_arm_is_local_label_name): Change to strip
5025 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'.
5027 1999-07-23 Donn Terry <donn@interix.com>
5029 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags
5030 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL.
5031 * cofflink.c (coff_link_add_symbols): If PE, handle section
5033 * libcoff.h: Rebuild.
5035 * config.bfd (i[3456]86-*-interix*): New target.
5037 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
5039 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and
5040 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with
5041 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD.
5042 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define.
5043 (COFF_SUPPORT_GNU_LINKONCE): Define.
5044 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define.
5045 (COFF_SUPPORT_GNU_LINKONCE): Define.
5047 1999-07-21 Ian Lance Taylor <ian@zembu.com>
5050 * makefile.dos: Remove; obsolete.
5051 * configure.bat: Remove; obsolete.
5053 1999-07-21 H.J. Lu <hjl@gnu.org>
5055 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes.
5057 1999-07-21 Philippe De Muyter <phdm@macqel.be>
5059 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error
5060 message and fail if a symbol index is out of range.
5062 1999-07-21 Ian Lance Taylor <ian@zembu.com>
5064 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value
5065 when looking at a R_MIPS_GOT16 relocation.
5067 1999-07-20 Nick Clifton <nickc@cygnus.com>
5069 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC.
5071 Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com>
5073 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP
5074 removed in previous change.
5075 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations
5076 in relocateable output.
5078 1999-07-19 Ian Lance Taylor <ian@zembu.com>
5080 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target
5083 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD
5084 if they appear to be specially created by the linker.
5086 1999-07-19 Nick Clifton <nickc@cygnus.com>
5088 * targets.c (alternative_target): New field in bfd_target
5090 (bfd_search_for_target): New function: Find a target that
5091 satisifies a search function.
5092 * bfd-in2.h: Regenerate.
5094 * elfxx-target.h: Initialise the alternative_target field of
5095 the bfd_target structures to point to the other target (if
5097 * nlm-target.h: Initialise the alternative_target field of
5098 the bfd_target structures to point to the other target (if
5101 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro.
5102 (CREATE_LITTLE_COFF_TARGET_VEC): New macro.
5104 * aix386-core.c: Initialise new field of bfd_target structure.
5105 * aout-adobe.c: Initialise new field of bfd_target structure.
5106 * aout-arm.c: Initialise new field of bfd_target structure.
5107 * aout-target.h: Initialise new field of bfd_target structure.
5108 * aout-tic30.c: Initialise new field of bfd_target structure.
5109 * binary.c: Initialise new field of bfd_target structure.
5110 * bout.c: Initialise new field of bfd_target structure.
5111 * cisco-core.c: Initialise new field of bfd_target structure.
5112 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC.
5113 * coff-alpha.c: Initialise new field of bfd_target structure.
5114 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC.
5115 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
5116 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC.
5117 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC.
5118 * coff-i386.c: Initialise new field of bfd_target structure.
5119 * coff-i860.c: Initialise new field of bfd_target structure.
5120 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
5121 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC.
5122 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
5123 * coff-mips.c: Initialise new field of bfd_target structure.
5124 * coff-ppc.c: Initialise new field of bfd_target structure.
5125 * coff-rs6000.c: Initialise new field of bfd_target structure.
5126 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
5127 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC.
5128 * coff-tic30.c: Initialise new field of bfd_target structure.
5129 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
5130 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
5131 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC.
5132 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC.
5133 * hppabsd-core.c: Initialise new field of bfd_target structure.
5134 * hpux-core.c: Initialise new field of bfd_target structure.
5135 * i386msdos.c: Initialise new field of bfd_target structure.
5136 * i386os9k.c: Initialise new field of bfd_target structure.
5137 * ieee.c: Initialise new field of bfd_target structure.
5138 * ihex.c: Initialise new field of bfd_target structure.
5139 * irix-core.c: Initialise new field of bfd_target structure.
5140 * mipsbsd.c: Initialise new field of bfd_target structure.
5141 * netbsd-core.c: Initialise new field of bfd_target structure.
5142 * oasys.c: Initialise new field of bfd_target structure.
5143 * osf-core.c: Initialise new field of bfd_target structure.
5144 * ppcboot.c: Initialise new field of bfd_target structure.
5145 * ptrace-core.c: Initialise new field of bfd_target structure.
5146 * sco5-core.c: Initialise new field of bfd_target structure.
5147 * som.c: Initialise new field of bfd_target structure.
5148 * srec.c: Initialise new field of bfd_target structure.
5149 * tekhex.c: Initialise new field of bfd_target structure.
5150 * trad-core.c: Initialise new field of bfd_target structure.
5151 * versados.c: Initialise new field of bfd_target structure.
5152 * vms.c: Initialise new field of bfd_target structure.
5154 1999-07-19 Andreas Schwab <schwab@suse.de>
5156 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash
5159 Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com>
5161 * elflink.h (elf_link_adjust_relocs): New function.
5162 (elf_bfd_final_link): Use it.
5163 (elf_link_input_bfd): Deal with the fact that there can be
5164 two relocation sections for a single section.
5165 (elf_reloc_link_order): Likewise.
5167 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for
5168 a relocateable object.
5169 (_bfd_mips_elf_relocate_section): Handle relocateable links.
5171 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
5173 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID.
5174 (sparc64_elf_get_reloc_upper_bound,
5175 sparc64_elf_get_dynamic_reloc_upper_bound,
5176 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
5177 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs):
5179 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use
5180 ELF64_R_TYPE_ID/DATA where appropriate.
5182 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
5184 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove
5187 1999-07-16 Ian Lance Taylor <ian@zembu.com>
5189 * elf32-mips.c (mips_elf_local_relocation_p): New static
5191 (mips_elf_next_lo16_addend): Call bfd_set_error on failure.
5192 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p.
5193 Always set *require_jalxp.
5194 (mips_elf_stub_section_p): Mark abfd parameter as unused.
5195 (_bfd_mips_elf_relocate_section): Only look for LO16 following
5196 GOT16 if the GOT16 is against a local symbol. Don't return false
5197 for an undefined symbol. If there is an overflow, assert that we
5200 1999-07-16 Andreas Schwab <schwab@suse.de>
5202 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
5203 variables `link' and `elfsec'.
5204 (elf_bfd_final_link): Remove unused variable `os'.
5206 Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com>
5208 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
5209 a PT_PHDR program headers.
5210 (_bfd_mips_elf_final_link): Don't assume there are going to be
5211 section symbols when we're not building a shared object.
5212 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when
5215 1999-07-15 J.T. Conklin <jtc@redback.com>
5217 * config.bfd (i[3456]86-*-vxworks*): New target.
5219 1999-07-15 Mark Mitchell <mark@codesourcery.com>
5221 * elf32-mips.c (mips_elf_stub_section_p): New function.
5222 (mips_elf_calculate_relocation): Handle MIPS16 stub functions.
5223 (mips_elf_relocate_section): Adjust calling sequence for
5224 mips_elf_calculate_relocation and mips_elf_perform_relocation.
5225 (mips_elf_perform_relocation): Turn `jal' into `jalx' where
5228 1999-07-15 Ian Lance Taylor <ian@zembu.com>
5230 * configure.in: Bump version number to 2.9.5.
5231 * configure: Rebuild.
5233 Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com)
5235 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle
5237 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type
5238 to derive final type instead of hardwiring a selection.
5240 1999-07-14 Mark Mitchell <mark@codesourcery.com>
5242 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of
5243 things relocated by R_MIPS16_GPREL.
5244 (mips_elf_perform_relocation): Likewise.
5246 Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com>
5248 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss.
5250 1999-07-14 Richard Henderson <rth@cygnus.com>
5252 * elf32-mips.c (struct mips_got_info): Add global_gotno.
5253 (_bfd_mips_elf_size_dynamic_sections): Set it.
5254 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow.
5255 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off
5256 new argument max_local.
5258 1999-07-14 Mark Mitchell <mark@codesourcery.com>
5260 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit
5261 subwords when handling an R_MIPS16_26 relocation.
5262 (mips_elf_perform_relocation): Don't be paranoid abour right-shift
5265 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and
5266 dst_mask to match reality.
5267 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL.
5268 (mips_elf_obtain_contents): Use bfd_get.
5269 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL.
5270 (mips_elf_relocate_section): Likewise.
5272 1999-07-13 Mark Mitchell <mark@codesourcery.com>
5274 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26.
5275 (mips_elf_relocate_section): Adjust calling sequence for
5276 mips_elf_perform_relocation.
5277 (mips_elf_perform_relocation): Take additional argument. Handle
5278 R_MIPS16_26. Use bfd_put for convenience.
5280 1999-07-13 Richard Henderson <rth@cygnus.com>
5282 * elf.c (assign_file_positions_for_segments): Thinko last change.
5283 Always overwrite p_flags.
5285 1999-07-13 Richard Henderson <rth@cygnus.com>
5287 * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
5288 * elflink.c (_bfd_elf_create_dynamic_sections): Only create
5289 .dynbss and .rel[a].bss if want_dynbss.
5290 * elfxx-target.h (elf_backend_want_dynbss): Provide default.
5292 1999-07-13 Richard Henderson <rth@cygnus.com>
5294 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
5296 1999-07-13 Richard Henderson <rth@cygnus.com>
5298 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.
5299 (struct elf_link_hash_table): Add dynlocal.
5300 (_bfd_elf_link_lookup_local_dynindx): Prototype.
5301 (_bfd_elf_link_adjust_dynindx): Delete.
5302 (_bfd_elf_link_renumber_dynsyms): Prototype.
5303 (_bfd_elf,link_record_local_dynamic_symbol): Prototype.
5304 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias.
5305 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete.
5306 (_bfd_elf_link_lookup_local_dynindx): New function.
5307 (elf_link_renumber_hash_table_dynsyms): New function.
5308 (_bfd_elf_link_renumber_dynsyms): New function.
5309 * elflink.h (elf_link_record_local_dynamic_symbol): New function.
5310 (struct elf_assign_sym_version_info): Delete removed_dynamic.
5311 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output
5312 instead of elf_link_remove_section_and_adjust_dynindices.
5313 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms.
5314 (elf_link_assign_sym_version): Remove removed_dynamic code.
5315 (elf_link_renumber_dynsyms): Delete.
5316 (elf_bfd_final_link): Install section and local symbols into .dynsym.
5318 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete.
5319 (elf_m68k_size_dynamic_sections): Don't set section dynindicies.
5320 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms.
5321 * elf32-mips.c: Similarly.
5322 * elf32-ppc.c: Similarly.
5323 * elf32-sparc.c: Similarly.
5324 * elf64-alpha.c: Similarly.
5325 * elf64-sparc.c: Similarly.
5327 1999-07-13 Mark Mitchell <mark@codesourcery.com>
5329 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain
5330 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow
5331 when the relocation is against _gp_disp.
5333 1999-07-12 Mark Mitchell <mark@codesourcery.com>
5335 * dwarf2.c (read_attribute): Support DW_FORM_ref8.
5336 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs
5337 to possibly_dynamic_relocs. Adjust usage throughout code.
5338 (elf_mips_howto_table): Handle R_MIPS_64 correctly.
5339 (elf_mips_ctor64_howto): Likewise.
5340 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32.
5342 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode.
5343 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32.
5344 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries.
5345 * elf64-mips.c (elf_backend_may_use_rel_p): Define.
5347 1999-07-12 Ian Lance Taylor <ian@zembu.com>
5349 * Makefile.am: Rebuild dependencies.
5350 * Makefile.in: Rebuild.
5352 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE.
5353 * bfd-in2.h: Rebuild.
5355 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
5356 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
5357 structure initializations. Add casts.
5358 * reloc.c (EMPTY_HOWTO): Define.
5359 * bfd-in2.h: Rebuild.
5360 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
5361 comparisons against 0.
5362 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
5363 previous_ibfd_e_flags to unsigned long.
5364 * vms.h (struct vms_private_data_struct): Change section_count to
5366 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
5367 (_bfd_vms_write_gsd): Change symnum to unsigned.
5368 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
5369 * vms-tir.c (etir_sta): Change psect to unsigned.
5370 (alloc_section): Change idx to unsigned.
5371 (tir_sta, tir_ctl): Change psect to unsigned.
5372 (_bfd_vms_write_tir): Change len and before to bfd_size_type.
5373 * vms.c (priv_section_count): Change to unsigned.
5375 1999-07-12 Andreas Schwab <schwab@suse.de>
5377 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED.
5378 * m68klinux.c: Likewise.
5380 1999-07-12 Ian Lance Taylor <ian@zembu.com>
5382 * Many files: Changes to avoid gcc warnings: Remove unused local
5383 variables. Add default case to enum switches.
5384 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only
5385 compile if not COFF_IMAGE_WITH_PE.
5386 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
5387 (bfd_arm_get_bfd_for_interworking): Likewise.
5388 (bfd_arm_process_before_allocation): Likewise.
5389 * epoc-pei-arm.c: Don't rename bfd_arm functions.
5390 * pei-arm.c: Likewise.
5391 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
5392 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
5393 (mips_elf_got16_entry): Put parens around & in body of ==.
5394 (mips_elf_calculate_relocation): Correct test for empty string.
5395 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to
5397 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
5400 1999-07-11 Ian Lance Taylor <ian@zembu.com>
5402 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
5403 as appropriate. Fill in structure initializations. Add variable
5404 initializations. Add casts.
5405 * dwarf1.c (parse_line_table): Change eachLine to unsigned long.
5406 (dwarf1_unit_find_nearest_line): Change i to unsigned long.
5408 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to
5410 * elf-bfd.h (bfd_elf_hash): Update declaration.
5411 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts
5412 when calling bfd_elf_hash.
5414 1999-07-11 Mark Mitchell <mark@codesourcery.com>
5416 * libbfd.c (bfd_put_8): Make it of type `void'.
5417 * bfd-in2.h: Regenerated.
5418 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize
5420 (_bfd_mips_elf_final_link): Likewise.
5422 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.
5424 Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
5426 * config.bfd (hppa*-*-linux-gnu*): New target
5428 1999-07-07 Mark Mitchell <mark@codesourcery.com>
5430 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify.
5431 (_bfd_mips_elf_create_dynamic_sections): New function.
5432 (_bfd_mips_elf_add_symbol_hook): Likewise.
5433 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
5434 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
5435 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
5436 (_bfd_mips_elf_gc_mark_hook): Likewise.
5437 (_bfd_mips_elf_gc_sweep_hook): Likewise.
5438 (_bfd_mips_elf_always_size_sections): Likewise.
5439 (_bfd_mips_elf_size_dynamic_sections): Likewise.
5440 (_bfd_mips_elf_check_relocs): Likewise.
5441 (_bfd_mips_elf_link_hash_table_create): Likewise.
5442 (_bfd_mips_elf_print_private_data): Likewise.
5443 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
5444 (_bfd_mips_elf_final_link): Likewise.
5445 (_bfd_mips_elf_additional_program_headers): Likewise.
5446 (_bfd_mips_elf_modify_segment_map): Likewise.
5447 (_bfd_mips_elf_relocate_section): Likewise.
5448 * elf32-mips.c (mips_elf32_object_p): Move contents into
5449 _bfd_mips_elf_object_p.
5450 (mips_elf_additional_program_headers): Rename to
5451 _bfd_mips_elf_additional_program_headers.
5452 (mips_elf_modify_segment_map): Rename to
5453 _bfd_mips_elf_modify_segment_map.
5454 (elf_mips_abi_name): Change prototype.
5455 (mips_elf32_section_from_shdr): Merge into
5456 _bfd_mips_elf_section_from_shdr.
5457 (mips_elf32_section_processing): Merge into
5458 _bfd_mips_elf_section_processing.
5459 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke
5460 the right back-end ELF linker.
5461 (mips_elf_relocate_section): Rename to
5462 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code.
5463 (mips_elf_link_output_symbol_hook): Rename to
5464 _bfd_mips_elf_link_output_symbol_hook.
5465 (mips_elf_create_dynamic_section): Rename to
5466 _bfd_mips_elf_create_dynamic_section.
5467 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs.
5468 Adjust for 64-bit code. Use mips_elf_got_section.
5469 (mips_elf_adjust_dynamic_symbol): Rename to
5470 _bfd_mips_elf_adjust_dynamic_symbol. Use
5471 mips_elf_allocate_dynamic_relocations.
5472 (mips_elf_finish_dynamic_symbol): Rename to
5473 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section.
5474 Adjust for 64-bit code.
5475 (mips_elf_finish_dynamic_sections): Rename to
5476 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code.
5477 (mips_elf_always_size_sections): Rename to
5478 _bfd_mips_elf_always_size_sections.
5479 (mips_elf_add_symbol_hook): Rename to
5480 _bfd_mips_elf_add_symbol_hook.
5481 (mips_elf_next_lo16_addend): Constify.
5482 (mips_elf_calculate_relocation): Likewise.
5483 (mips_elf_obtain_contents): Likewise.
5484 (mips_elf_perform_relocation): Likewise.
5485 (mips_elf_create_dynamic_relocation): Likewise.
5486 (mips_elf_allocate_dynamic_relocations): New function.
5487 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro.
5488 (MIPS_ELF_REL_SIZE): Likewise.
5489 (MIPS_ELF_DYN_SIZE): Likewise.
5490 (MIPS_ELF_GOT_SIZE): Likewise.
5491 (MIPS_ELF_SYM_SIZE): Likewise.
5492 (MIPS_ELF_LOG_FILE_ALIGN): Likewise.
5493 (MIPS_ELF_GET_WORD): Likewise.
5494 (MIPS_ELF_PUT_WORD): Likewise.
5495 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
5496 (STUB_LW): Conditionalize for 64-bit value.
5497 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST
5499 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS].
5500 Check it for inconsistency.
5501 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit
5503 (_bfd_mips_elf_fake_sections): Remove duplicate handling of
5505 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE.
5506 (mips_elf_got_offset_from_index): Use misp_elf_got_section.
5507 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE.
5508 (mips_elf_local_got_index): Likewise.
5509 (mips_elf_got_page): Likewise.
5510 (mips_elf_got_info): Likewise.
5511 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split.
5512 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code.
5513 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN,
5514 instead of constant `2'.
5515 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE.
5516 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN.
5517 (mips_elf_size_dynamic_sections): Use
5518 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE,
5519 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code.
5520 Adjust all releveant entries in elf backend table.
5521 * elf64-mips.c (mips_elf64_section_from_shdr): Remove.
5522 (mips_elf64_section_processing): Likewise.
5523 Adjust elf backend entries to use _bfd_mips_elf variants now
5526 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard
5528 (size_dynamic_sections): Likewise.
5529 (elf_link_output_extsym): Likewise.
5530 * elf.c: (elf_fake_sections): Likewise.
5531 * libbfd.c (bfd_get): New macro.
5532 (bfd_put): Likewise.
5533 * bfd-in2.h: Regenerated.
5535 1999-07-07 Mark Mitchell <mark@codesourcery.com>
5537 * elf-bfd.h (elf_size_info): Add hash_entry_size,
5538 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out,
5539 wap_reloca_in, and swap_reloca_out.
5540 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle
5541 multiple internal relocations per external relocation.
5542 (link_read_relocs): Likewise.
5543 (elf_bfd_final_link): Likewise.
5544 (elf_link_input_bfd): Likewise.
5545 (elf_gc_mark): Likewise.
5546 (elf_gc_smash_unused_vtentry_relocs): Likewise.
5547 * elfcode.h (elf_swap_dyn_out): Adjust type to match
5549 (size_info): Add entries for new fields.
5550 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable.
5551 (mips_elf64_be_swap_reloc_in): New function.
5552 (mips_elf64_be_swap_reloc_out): Likewise.
5553 (mips_elf64_be_swap_reloca_in): Likewise.
5554 (mips_elf64_be_swap_reloca_out): Likewise.
5555 (mips_elf64_size_info): Add entries for new fields.
5557 1999-07-07 Ian Lance Taylor <ian@zembu.com>
5559 * elflink.h (elf_bfd_final_link): Assert that section reloc_count
5560 field equals the new rel_count field.
5561 (elf_link_input_bfd): When doing a relocateable link, use the new
5562 rel_count field rather than the reloc_count field.
5563 (elf_reloc_link_order): Likewise.
5564 (elf_finish_pointer_linker_section): Likewise.
5566 Based on patch from H.J. Lu <hjl@gnu.org>:
5567 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a
5568 shared library to override a weak definition in a regular object.
5570 Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com)
5572 * libhppa.h: Revert July 2, 1999 patch.
5574 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors
5575 need to generate DLTIND relocations, not DLTREL relocations.
5577 1999-07-05 Nick Clifton <nickc@cygnus.com>
5579 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5
5581 (coff_set_flags): Recognise arm 5 architectures.
5583 * cpu-arm.c: Add support for strongarm and arm9 cpus.
5584 Add support for armv5 architecture.
5586 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T.
5588 * reloc.c: Add new, assembler only, ARM reloc:
5589 BFD_RELOC_ARM_ADRL_IMMEDIATE.
5591 * bfd-in2.h: Regenerate.
5593 1999-07-02 Mark Mitchell <mark@codesourcery.com>
5595 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.
5596 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter.
5597 * elf.c (_bfd_elf_find_nearest_line): Pass it.
5598 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise.
5599 * elf32-mips.c (ABI_64_P): New macro.
5600 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P.
5601 (_bfd_mips_elf_find_nearest_line): Adjust call to
5602 _bfd_dwarf2_find_nearest_line.
5603 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
5604 * libbfd.h: Regenerated.
5606 1999-07-02 Ian Lance Taylor <ian@zembu.com>
5608 * config.bfd: Add * at the end of i[3456]86-*-unixware.
5610 Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
5612 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
5613 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
5615 1999-07-01 Mark Mitchell <mark@codesourcery.com>
5617 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
5619 (_bfd_elf_init_reloc_shdr): New function.
5620 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
5621 bfd_alloc followed by memset.
5622 (_bfd_elf_init_reloc_shdr): New function, split out from ...
5623 (elf_fake_sections): Here.
5624 (assign_section_numbers): Assign section numbers for the second
5625 relocation section, if required.
5626 * elflink.h (elf_link_output_relocs): New function.
5627 (elf_link_size_reloc_section): Likewise.
5628 (elf_bfd_final_link): Use elf_link_size_reloc_section.
5629 (elf_link_input_bfd): Use elf_link_output_relocs.
5631 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
5632 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
5634 Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
5636 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
5639 1999-06-28 Mark Mitchell <mark@codesourcery.com>
5641 * elf32-mips.c (mips_elf_got_info): Move declaration before
5642 prototypes. Change global_gotsym to be a pointer to a hash entry,
5643 rather than a number index.
5644 (mips_elf_link_hash_entry): Move declaration before prototypes.
5645 (mips_elf_irix6_finish_dynamic_symbol): New function.
5646 (mips_elf_sign_extend): Likewise.
5647 (mips_elf_high): Likewise.
5648 (mips_elf_higher): Likewise.
5649 (mips_elf_highest): Likewise.
5650 (mips_elf_global_got_index): Likewise.
5651 (mips_elf_local_got_index): Likewise.
5652 (mips_elf_got_offset_from_index): Likeiwse.
5653 (mips_elf_record_global_got_symbol): Likewise.
5654 (mips_elf_got_page): Likewise.
5655 (mips_elf_next_lo16_addend): Likewise.
5656 (mips_elf_calculate_relocation): Likewise.
5657 (mips_elf_obtain_contents): Likewise.
5658 (mips_elf_perform_relocation): Likewise.
5659 (mips_elf_assign_gp): Likewise.
5660 (mips_elf_sort_hash_table_f): Likewise.
5661 (mips_elf_sort_hash_table): Likewise.
5662 (mips_elf_got_section): Likewise.
5663 (mips_elf_got_info): Likewise.
5664 (mips_elf_create_local_got_entry): Likewise.
5665 (mips_elf_got16_entry): Likewise.
5666 (mips_elf_create_dynamic_relocation): Likewise.
5667 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
5668 (mips_elf_final_gp): Use mips_elf_assign_gp.
5669 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
5670 into SHN_SCOMMON automatically on IRIX6.
5671 (mips_elf_add_symbol_hook): Likewise.
5672 (mips_elf_relocate_section): Rewrite, using
5673 mips_elf_calculate_relocation and mips_elf_perform_relocation.
5674 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
5675 Don't deal with .rld_map on IRIX6.
5676 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
5677 section flags appropriately for .got.
5678 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
5679 the got. Call mips_elf_record_global_got_symbol and allocate
5680 local got space appropriately.
5681 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
5682 char *. Rework calculation of GOT size. Sort dynamic symbol
5683 table entries so entries that do not require GOT entries appear at
5684 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
5685 code dealing with DT_INIT and DT_FINI. Remove fiddling with
5687 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
5689 (mips_elf_finish_dynamic_symbol): Use
5690 mips_elf_irix6_finish_dynamic_symbol.
5691 (mips_elf_finish_dynamic_sections): Correct off-by-one error
5692 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
5693 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
5695 1999-06-30 Ian Lance Taylor <ian@zembu.com>
5697 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
5698 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
5700 1999-06-04 Philip Blundell <philb@gnu.org>
5702 * elf32-arm.h (elf_backend_got_header_size): Define.
5703 (elf_backend_plt_header_size): Likewise.
5705 1999-06-28 Jim Pick <jim@jimpick.com>
5707 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
5709 Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
5711 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
5712 relocation function.
5713 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
5715 1999-06-27 Mark Mitchell <mark@codesourcery.com>
5717 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
5718 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
5719 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
5720 (_bfd_mips_elf_section_from_shdr): Use them.
5721 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
5722 of GP-relative sections.
5723 (_bfd_mips_elf_set_section_contents): Use them.
5724 (_bfd_mips_elf_section_processing): Share code between .sdata and
5725 .lit4/.lit8 sections. Set appropriate flags for .srdata.
5726 (mips_elf_additional_program_headers): Add handling for
5727 PT_MIPS_OPTIONS segment on IRIX6.
5728 (mips_elf_modify_segment_map): Likeiwse.
5729 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
5730 Include the options sections on IRIX6. Don't look for GP-relative
5731 sections by name; use SHF_MIPS_GPREL instead.
5732 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
5734 (mips_elf_create_dynamic_sections): Don't muck about with section
5735 alignments and such on IRIX6.
5736 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
5737 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
5738 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
5739 bfd_zalloc rather than bfd_alloc and memset.
5740 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
5741 Don't assert the existence of .rld_map on IRIX6.
5742 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
5744 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
5745 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
5748 1999-06-26 Mark Mitchell <mark@codesourcery.com>
5750 * elf32-mips.c (mips_elf_swap_msym_in): New function.
5751 (mips_elf_swap_msym_out): New function.
5752 (mips_elf_create_msym_section): Likewise.
5753 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
5754 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
5755 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
5756 section not named .msym.
5757 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
5758 .msym directly. Set appropriate attributes for the .msym
5760 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
5761 (mips_elf_link_hash_newfunc): Clear it.
5762 (mips_elf_create_dynamic_sections): Create the .msym section
5764 (mips_elf_size_dynamic_sections): Allocate space for the
5765 .msym section. Add a DT_MIPS_MSYM entry.
5766 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
5768 (mips_elf_finish_dynamic_sections): Assign a value for
5769 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
5771 * elf32-mips.c (irix_compat_t): New enumeration.
5772 (ABI_N32_P): New macro.
5773 (IRIX_COMPAT): Likewise.
5774 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
5775 (mips_elf_relocate_section): Fix typo.
5777 1999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
5779 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
5780 as writable PE sections.
5782 1999-06-26 David Mosberger <davidm@hpl.hp.com>
5784 * dwarf2.c (struct arange): New type.
5785 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
5786 (arange_add): New function.
5787 (decode_line_info): Keep track of address ranges that a compilation
5789 (comp_unit_contains_address): Return true if address is contained
5790 in _any_ of the address ranges associated with a compilation unit.
5791 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
5792 on the first comp_unit that contains the address.
5794 1999-06-26 David Mosberger <davidm@hpl.hp.com>
5796 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
5797 (decode_line_info): Add variable STASH and initialize it to point
5798 to the per-bfd dwarf2_debug info. Remove static variable
5799 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
5801 1999-06-26 Ian Lance Taylor <ian@zembu.com>
5803 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
5804 shared library to have an undefined symbol.
5806 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
5807 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
5809 Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
5811 * elf-hppa.c (elf_hppa_final_write_processing): New function.
5812 * elf32-hppa.c: Remove everything related to symbol extension
5813 sections & records. Use the common elf_hppa_final_write_processing.
5815 1999-06-22 Mark Mitchell <mark@codesourcery.com>
5817 * elflink.h (size_dynamic_sections): Use user-specified init/fini
5818 functions instead of _init/_fini if requested.
5820 1999-06-23 Ian Lance Taylor <ian@zembu.com>
5822 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
5825 1999-06-22 Ian Lance Taylor <ian@zembu.com>
5827 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
5828 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
5830 (ppc_elf_finish_dynamic_sections): Check for positive section
5831 dynindx field, rather than comparing against -1.
5832 (ppc_elf_relocate_section): Only return false if undefined_symbol
5833 or reloc_overflow fail, not always upon encountering an error.
5835 1999-06-22 Mark Mitchell <mark@codesourcery.com>
5837 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
5838 bfd_byte * before performing pointer arithmetic.
5840 Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
5842 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
5844 * elf32-hppa.c: Include elf-hppa.h.
5845 (ARCH_SIZE): Define.
5846 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
5848 (elf32_hppa_info_to_howto): Similarly.
5849 (elf_hppa_howto_table): Similarly.
5850 (elf_hppa_reloc_type_lookup): Similarly.
5851 (hppa_elf_gen_reloc_type): Similarly.
5852 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
5854 1999-06-22 Nick Clifton <nickc@cygnus.com>
5856 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
5857 handling R_V850_22_PCREL relocation.
5859 1999-06-21 Ian Lance Taylor <ian@zembu.com>
5861 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
5864 Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
5866 * section.c (_bfd_strip_section_from_output): Ignore sections
5867 DISCARDed by the link script.
5869 1999-06-19 Ian Lance Taylor <ian@zembu.com>
5871 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
5872 Remove unused local variable spp.
5874 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
5875 the entry symbol is not set.
5877 Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
5879 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
5880 GPDISP or LITUSE in a relocatable link.
5882 Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
5884 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
5885 * (alloc_dwarf1_func): Likewise.
5887 Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
5889 * libhppa.h: Fix various formatting errors.
5890 (assemble_3); Rewrite using CATENATE.
5891 (assemble_17): Fix various bugs.
5893 1999-06-16 Nick Clifton <nickc@cygnus.com>
5895 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
5897 1999-06-15 Richard Henderson <rth@cygnus.com>
5899 * section.c (SEC_SHORT): Define.
5900 * bfd-in2.h: Rebuild.
5902 1999-06-13 Mark Mitchell <mark@codesourcery.com>
5904 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
5905 Remove abfd parameter. Use _bfd_strip_section_from_output.
5906 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
5908 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
5909 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
5910 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
5912 (bfd_elf_size_dynamic_sections): Use it.
5914 1999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
5916 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
5917 complain_overflow_bitfield to complain_overflow_signed.
5919 1999-06-13 Mark Mitchell <mark@codesourcery.com>
5921 * elflink.h (elf_link_read_relocs_from_section): New function,
5923 (elf_link_read_relocs): Here. Use it for both relocation
5926 1999-06-12 Mark Mitchell <mark@codesourcery.com>
5928 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
5929 asect->reloc_count is valid.
5931 1999-06-12 Ian Lance Taylor <ian@zembu.com>
5933 * elf32-mips.c (mips_elf32_section_processing): Permit a
5934 SHT_MIPS_REGINFO section to have a size of 0.
5936 1999-06-12 David O'Brien <obrien@freebsd.org>
5938 * config.bfd (alpha*-*-freebsd*): New target.
5939 (i[3456]86-*-freebsd*): Now defaults to ELF.
5941 1999-06-11 Ian Lance Taylor <ian@zembu.com>
5943 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
5944 wrap if the relocation covers the high bit of an address.
5946 * dwarf2.c (decode_line_info): Remove unused variable first_time.
5948 1999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
5950 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
5951 instead of R_SPARC_max.
5952 (sparc64_elf_info_to_howto): Likewise.
5953 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
5954 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
5956 1999-06-07 Richard Henderson <rth@cygnus.com>
5958 * section.c (_bfd_strip_section_from_output): Remove output
5959 sections with no initial link_order.
5961 1999-06-07 Nick Clifton <nickc@cygnus.com>
5963 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
5965 Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5967 * Makefile.am (SOURCE_HFILES): Add missing headers.
5968 * Makefile.in: Regenerated.
5970 1999-06-06 Mark Mitchell <mark@codesourcery.com>
5972 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
5975 1999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5977 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
5978 range undefweak symbols.
5979 * hash.c: Add missing comma after @xref{}
5980 * linker.c: Likewise.
5982 1999-06-04 Nick Clifton <nickc@cygnus.com>
5984 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
5986 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
5987 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
5988 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
5989 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
5991 1999-06-04 Ian Lance Taylor <ian@zembu.com>
5993 * Makefile.am: Rebuild dependencies.
5994 (BFD32_BACKENDS): Add dwarf1.lo.
5995 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
5996 * Makefile.in: Rebuild.
5998 1999-06-04 Nick Clifton <nickc@cygnus.com>
6000 * Makefile.am: Add epoc-arm-pe target.
6001 * Makefile.in: Regenerate.
6002 * pe-arm.c: Only redefine interworking function names if they have
6003 not already been redefined.
6004 * pei-arm.c: Only redefine interworking function names if they have
6005 not already been redefined.
6006 * epoc-pe-arm.c: Redefine interworking function names to avoid a
6008 * epoc-pei-arm.c: Redefine interworking function names to avoid a
6011 1999-06-03 Nick Clifton <nickc@cygnus.com>
6013 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
6015 Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6017 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
6019 Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
6021 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
6022 start / stop for recalculating of r_addend of R_SH_SWITCH*.
6024 Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
6026 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
6027 in other text sections.
6029 Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
6031 * libbfd.c (_bfd_generic_verify_endian_match): New function.
6032 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
6033 * libbfd.h: Regenerate.
6034 * coff-sh.c (sh_merge_private_data): Delete.
6035 (coff_bfd_merge_private_bfd_data): Change to
6036 _bfd_generic_verify_endian_match.
6037 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
6039 1999-06-03 Ulrich Drepper <drepper@cygnus.com>
6041 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
6043 1999-06-03 Ian Lance Taylor <ian@zembu.com>
6045 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
6047 (bfd_elf32_arm_process_before_allocation): Likewise.
6048 * bfd-in2.h: Rebuild.
6050 1999-06-03 David Mosberger <davidm@hpl.hp.com>
6052 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
6053 track of end_sequence markers.
6054 (add_line_info): Add END_SEQUENCE arg.
6055 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
6056 debug-line info---it doesn't work right if a compilation unit
6057 consists of multiple discontiguous code-sequences. It would be
6058 worthwhile to optimize for the common case where a compilation
6059 unit results in a contiguous set of code sequences, but this is
6060 quite tricky to get right for arbitrary DWARF2 files.
6061 (lookup_address_in_line_info_table): Don't use the last line entry
6062 for a compilation unit for anything with an address higher than
6063 this line entry. Also, check for end_sequence markers to
6064 correctly handle discontinuities.
6065 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
6066 compilation units, check all compilation units with each->high==0
6067 just like when reading compilation units.
6069 * dwarf2.c (decode_line_info): Initialize table->files and
6070 table->last_line to NULL to avoid segfaults due to random
6071 values in these members.
6072 (concat_filename): Check for out-of-range file number before
6073 indexing filename table. Segfaults suck.
6075 * dwarf2.c (decode_line_info): Don't truncate address to least
6076 significant 32 bits (breaks 64 bit targets).
6077 (lookup_address_in_function_table): Ditto.
6078 (comp_unit_contains_address): Ditto.
6080 1999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
6082 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
6083 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
6084 (mips_elf64_howto_table_rela): Likewise.
6086 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
6088 (elf_slurp_reloc_table): Here. Use it to handle the case where a
6089 single section has two associated relocation sections.
6091 1999-06-02 Mark Salter <msalter@cygnus.com>
6093 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
6094 COFF_WITH_PE defined.
6096 1999-06-02 Nick Clifton <nickc@cygnus.com>
6098 * pe-arm.c: Rename global arm interworking functions to avoid name
6099 collision when all targets BFD is built.
6102 1999-05-31 Mark Mitchell <mark@codesourcery.com>
6104 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
6105 may_use_rel_p, may_use_rela_p, default_use_rela_p.
6106 (bfd_elf_section_data): Add use_rela_p.
6107 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
6108 (_bfd_elf_new_section_hook): Likewise.
6109 (elf_fake_sections): Use may_use_rela_p, etc., instead of
6111 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
6112 * elfcode.h (write_relocs): Determine whether or not use rela
6113 relocs based on the relocation section header.
6114 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
6115 instead of use_rela_p.
6116 * elfxx-target.h (elf_backend_may_use_relp): New macro.
6117 (elf_backend_may_use_rela_p): Likewise.
6118 (elf_backend_default_use_rela_p): Likewise.
6119 (elfNN_bed): Use them.
6121 Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
6123 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
6125 Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
6127 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
6128 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
6129 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
6130 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
6131 * bfd-in2.h: Regenerated.
6132 * libbfd.h: Likewise.
6133 * elf32-mips.c (mips_info_to_howto_rela): New function.
6134 (USE_REL): Adjust for new conventions.
6135 (MINUS_ONE): New macro.
6136 (elf_mips_howto_table): Add R_MIPS_SUB.
6137 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
6139 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
6140 .MIPS.content section.
6141 (_bfd_mips_elf_fake_sections): Treat all sections that begin
6142 with .MIPS.content as .MIPS.content sections. Set
6143 SHF_MNIPS_NOSTRIP for such section.
6144 (elf_info_to_howto): Define to mips_info_to_howto_rela.
6145 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
6146 MIPS_GOT_OFST, and MIPS_GOT_DISP.
6148 Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6150 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
6153 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
6156 1999-05-30 Philip Blundell <philb@gnu.org>
6158 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
6159 1993-03-25 (!!). Take into account the bitmasks for the reloc so
6160 the addend does not overflow into the rest of the word.
6162 1999-05-29 Nick Clifton <nickc@cygnus.com>
6164 * bfd-in.h: Amend prototype for
6165 bfd_elf32_arm_process_before_allocation .
6166 * bfd-in.h: Regenerate.
6168 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
6169 elements in a fixed sized array.
6170 (ARM_ELF_ABI_VERSION): Define.
6171 (ARM_ELF_OS_ABI_VERSION): Define.
6172 (R_ARM_THM_ABS5): Fix rightshift and size.
6173 (R_ARM_THM_PC22): Fix size.
6174 (R_ARM_PLT32): Define Howto.
6175 (find_howto): New function: Locate a howto based on a reloc
6177 (elf32_arm_info_to_howto): Use find_howto if necessary.
6178 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
6179 bfd_reloc_code_real_type.
6180 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
6181 and BFD_RELOC_VTABLE_ENTRY.
6182 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
6184 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
6185 elements in a fixed sized array.
6186 (ARM_ELF_ABI_VERSION): Define.
6187 (ARM_ELF_OS_ABI_VERSION): Define.
6188 (R_ARM_THM_ABS5): Fix rightshift and size.
6189 (R_ARM_THM_PC22): Fix size.
6190 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
6191 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
6192 bfd_reloc_code_real_type.
6194 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
6195 no_pipeline_knowledge.
6196 (elf32_arm_link_hash_create): Initialise new field to zero.
6197 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
6198 no_pipeline_knowledge. Use this parameter to initialise the field
6199 in the globals data structure.
6200 (elf32_arm_final_link_relocate): Only add in pipeline offset if
6201 no_pipeline_knowledge is false and the binary is from an old
6203 (elf32_arm_merge_private_data): Generate an error if an attempt is
6204 made to link together big endian and little endian code.
6205 (elf32_arm_post_process_headers): New function: Initialise the
6206 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
6208 (elf_backend_post_process_headers): Define.
6210 1999-05-28 Nick Clifton <nickc@cygnus.com>
6212 * elf-bfd.h (struct elf_backend_data): Add new field:
6213 elf_backend_post_process_headers.
6215 * elfxx-target.h (elf_backend_post_process_headers): Define to
6216 NULL if not already defined.
6217 (elfNN_bed): Initialise elf_backend_post_process_headers field.
6219 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
6221 (_bfd_elf_compute_section_file_positions): Call
6222 elf_backend_post_process_headers if defined.
6224 1999-05-28 Ian Lance Taylor <ian@zembu.com>
6226 * configure.in: Check whether getuid and getgid exist.
6227 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
6228 HAVE_GETGID are not defined, respectively.
6229 (bfd_write_armap): Don't special case on _WIN32 for getuid and
6231 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
6232 * configure, config.in: Rebuild.
6234 1999-05-28 Martin Dorey <mdorey@madge.com>
6236 * elf32-i960.c: New file.
6237 * elf.c (prep_headers): Handle bfd_arch_i960.
6238 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
6239 * config.bfd (i960-*-elf*): New target.
6240 * configure.in (bfd_elf32_i960_vec): New target vector.
6241 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
6242 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
6243 * Makefile.in, aclocal.m4, configure: Rebuild.
6245 1999-05-27 Nick Clifton <nickc@cygnus.com>
6247 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
6249 (find_howto): New function: Find entries in the
6250 elf32_arm_howto_table.
6251 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
6253 (elf32_arm_reloc_type_lookup): Add lookup for
6254 BFD_RELOC_ARM_PLT32.
6256 1999-05-25 Philip Blundell <pb@nexus.co.uk>
6258 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
6259 (elf32_arm_link_hash_table_create): Use above function as the
6260 constructor for hash table entries.
6261 (elf32_arm_relocate_section): Avoid crash when there is no output
6263 (elf32_arm_final_link_relocate): New parameter h.
6264 (elf32_arm_relocate_section): Pass symbol hash entry to above
6266 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
6269 1999-05-25 Catherine Moore <clm@cygnus.com>
6271 * coff-arm.c (coff_arm_relocate_section): Don't emit
6272 base file entries for pc-relative values.
6274 1999-05-25 DJ Delorie <dj@cygnus.com>
6276 * peicode.h (coff_swap_sym_in): When we create the actual section
6277 to reflect the not-there section C_SECTION symbols refer to,
6278 change the symbol class to C_STAT as the section is now really
6281 1999-05-24 Philip Blundell <pb@nexus.co.uk>
6283 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
6286 Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
6288 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
6290 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
6291 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
6293 1999-05-16 Nick Clifton <nickc@cygnus.com>
6295 * coff-mcore.c (in_reloc_p): Reinstate.
6297 1999-05-15 Nick Clifton <nickc@cygnus.com>
6299 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
6300 * bfd-in2.h: Regenerate.
6301 * coff-mcore.c (in_reloc_p): Remove defintion.
6302 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
6303 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
6304 IMAGE_REL_MCORE_RVA.
6305 (coff_mcore_rtype_to_howto): Add special processing for
6306 IMAGE_REL_MCORE_RVA.
6307 (coff_mcore_relocate_section): Add support for
6308 IMAGE_REL_MCORE_RVA.
6309 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
6310 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
6312 (mcore_elf_relocate_section): Delete redundant case labels.
6314 Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6316 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
6317 precedence between bit-and and comparison.
6319 Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
6321 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
6322 list of target formats (targ_selvecs).
6323 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
6324 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
6326 1999-05-10 DJ Delorie <dj@cygnus.com>
6328 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
6329 reasonable mode until "ar x" is smart enough to skip it (fixes
6330 gcc/libgcc.a builds on mips-ecoff targets
6332 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
6333 to work. Hack to support MS import libraries, which use different
6334 COMDAT types than GNU.
6335 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
6336 to implied zero-length sections (see peicode below)
6337 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
6338 filename symbols, which use one *or more* auxents.
6339 * coffswap.h (coff_swap_aux_in): ditto
6340 * peicode.h (coff_swap_sym_in): Build the implied zero-length
6343 Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
6345 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
6346 for all relocations.
6348 1999-05-10 Catherine Moore <clm@cygnus.com>
6350 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
6351 if COFF_IMAGE_WITH_PE.
6352 (bfd_arm_process_before_allocation): Likewise.
6353 (bfd_arm_get_bfd_for_interworking): Likewise.
6354 * coff-arm.c: Likewise.
6355 * bfd-in2.h: Regenerate.
6356 * configure.in (armpe_little_vec): Remove coff-arm.lo.
6357 (armpe_big_vec): Likewise.
6358 * configure: Rebuild.
6360 1999-05-10 Nick Clifton <nickc@cygnus.com>
6362 * elf.c (elf_fake_sections): Check for .rel. as start of rel
6363 section, not just .rel. Same for .rela.
6365 1999-05-07 Nick Clifton <nickc@cygnus.com>
6367 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
6368 endianism with an error message.
6370 Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
6372 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
6373 assignment from "unsigned char *" to "char *".
6374 (decode_line_info): Likewise for dwarf_line_buffer assignment.
6376 1999-05-05 Catherine Moore <clm@cygnus.com>
6378 * coff-arm.c (coff_arm_relocate_section): Add one to
6379 address of ARM_RVA32 thumb functions.
6381 1999-05-05 Catherine Moore <clm@cygnus.com>
6383 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
6384 (elf32_m68k_copy_private_bfd_data): New.
6385 (elf32_m68k_merge_private_bfd_data): New.
6386 (elf32_m68k_print_private_bfd_data): New.
6387 (CPU32_FLAG): Define.
6388 (PLT_CPU32_ENTRY_SIZE): Define.
6389 (elf_cpu32_plt0_entry): Declare.
6390 (elf_cpu32_plt_entry): Declare.
6391 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
6392 (elf_m68k_finish_dynamic_symbol): Likewise.
6393 (elf_m68k_finish_dynamic_sections): Likewise.
6394 (elf_backend_plt_header_size): Remove definition.
6395 (bfd_elf32_bfd_copy_private_bfd_data): Define.
6396 (bfd_elf32_bfd_merge_private_bfd_data): Define.
6397 (bfd_elf32_bfd_set_private_flags): Define.
6398 (bfd_elf32_bfd_print_private_bfd_data): Define.
6400 Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
6402 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
6403 and R_LONG_PCREL_MODE.
6405 1999-04-29 Nick Clifton <nickc@cygnus.com>
6407 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
6409 Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
6411 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
6412 in relocation calculation.
6414 1999-04-26 Tom Tromey <tromey@cygnus.com>
6416 * aclocal.m4, configure: Updated for new version of libtool.
6418 1999-04-21 Nick Clifton <nickc@cygnus.com>
6420 * coff-mcore.c: Add support for mcore relocs.
6422 1999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
6424 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
6425 incorrect use EF_MIPS_xxBITPTRS.
6427 1999-04-18 Ian Lance Taylor <ian@zembu.com>
6429 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
6432 * bfd-in2.h: Rebuild.
6433 * libbfd.h: Rebuild.
6435 Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
6437 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
6438 (coff_arm_relocate_section): Add ARM26D transform. Only
6439 change to ARM26D for relocateable links.
6441 1999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
6443 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
6444 (bfd_elf32_bfd_print_private_bfd_data): New.
6446 1999-04-15 Doug Evans <devans@casey.cygnus.com>
6448 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
6449 refetch addend if USE_REL, add many comments regarding current state.
6450 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
6451 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
6452 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
6453 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
6455 Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
6457 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
6458 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
6460 1999-04-13 David Mosberger <davidm@hpl.hp.com>
6462 * dwarf2.c (decode_line_info): Don't truncate address to least
6463 significant 32 bits (breaks 64 bit targets).
6464 (lookup_address_in_function_table): Ditto.
6465 (comp_unit_contains_address): Ditto.
6467 Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
6469 * coff-arm.c (arm_emit_base_file_entry): New routine.
6470 (A2T3_OFFSET): Define.
6471 (T2A3_OFFSET): Define.
6472 (coff_arm_relocate_section): Emit base file entries for interworking
6475 1999-04-13 Philip Blundell <philb@gnu.org>
6477 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
6478 relocs 17 through 19.
6480 Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
6482 * elfcode.h: Remove fnmatch.h.
6483 * elflink.h (elf_link_assign_sym_version): Call back to ld
6484 instead of calling fnmatch.
6486 * config.bfd (i?86-*-beoself): Include pe vecs.
6488 Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
6490 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
6493 1999-04-10 Richard Henderson <rth@cygnus.com>
6495 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
6496 when trying to resolve dynamic symbol references.
6497 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6498 * elf32-mips.c (mips_elf_relocate_section): Likewise.
6499 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6500 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6501 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6502 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6503 * elflink.h (elf_link_output_extsym): Likewise.
6505 Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
6507 * section.c (_bfd_strip_section_from_output): New function moved from
6508 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
6509 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
6510 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6511 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
6512 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6513 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6514 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6515 * bfd-in2.h: Update.
6517 1999-04-09 Ian Lance Taylor <ian@zembu.com>
6519 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
6521 1999-04-08 Nick Clifton <nickc@cygnus.com>
6523 * coff-mcore.c: New File: Support for mcore-pe targets.
6524 * cpu-mcore.c: New File: Support for mcore targets.
6525 * elf32-mcore.c: New File: Support for mcore-elf target.
6526 * pe-mcore.c: New File: Definitions for mcore-pe target.
6527 * pei-mcore.c: New File: Definitions for mcore-pei target.
6528 * Makefile.am: Add support for MCore targets.
6529 * Makefile.in: Regenerate.
6530 * config.bfd: Add support for MCore targets.
6531 * configure.in: Add support for MCore targets.
6532 * configure: Regenerate.
6533 * archures.c: Add support for MCore architecture.
6534 * bfd-in2.h: Regenerate.
6535 * coffcode.h: Add support for mcore-pe targets.
6536 * elf.c: Add support for mcore-elf target.
6537 * reloc.c: Add support for MCore relocs.
6538 * targets.c: Add support for MCore targets.
6540 1999-04-07 Nick Clifton <nickc@cygnus.com>
6542 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
6543 R_ARM_XPC25 and R_ARM_THM_XPC22.
6544 (elf32_arm_reloc_map): Remove redundant entries.
6546 1999-04-06 Ian Lance Taylor <ian@zembu.com>
6548 * sysdep.h (LC_MESSAGES): Never define.
6550 1999-04-06 Chris Torek <torek@bsdi.com>
6552 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
6553 all callers. Rewrite completely.
6554 (_bfd_relocate_contents): Rewrite overflow checking.
6555 * bfd-in2.h: Rebuild.
6557 1999-04-05 Ian Lance Taylor <ian@zembu.com>
6559 From Gabriel Paubert <paubert@iram.es>:
6560 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
6561 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
6562 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
6563 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
6564 * ppcboot.c (ppcboot_vec): Use little endian routines for
6567 * elf.c (elfcore_strndup): Only define if it will be used.
6568 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
6570 (ppc_elf_check_relocs): Remove unused local i.
6571 (ppc_elf_gc_mark_hook): Add default case to switch.
6573 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
6574 * srec.c (srec_scan): Accept \r in symbol definitions.
6575 (srec_object_p): Set HAS_SYMS if we saw any symbols.
6576 (symbolsrec_object_p): Likewise.
6578 1999-04-04 Don Bowman <don@pixsci.com>
6580 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
6582 1999-04-04 Ian Lance Taylor <ian@zembu.com>
6584 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
6586 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
6587 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
6589 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
6591 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
6594 1999-03-31 Nick Clifton <nickc@cygnus.com>
6596 * config.bfd: Add support for arm-epoc-pe target.
6597 * configure.in: Add support for arm-epoc-pe target.
6598 * configure: Regenerate.
6599 * targets.c: Add support for arm-epoc-pe target.
6600 * coff-arm.c: Allow header files to override definition of
6601 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
6602 * pe-arm.h: Allow previous header files to override definition of
6603 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
6604 * pei-arm.h: Allow previous header files to override definition of
6605 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
6606 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
6607 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
6609 1999-03-30 Nick Clifton <nickc@cygnus.com>
6611 * elf.c (elf_map_symbols): Handle the case where section
6612 symbols are generated for content-less sections which are
6613 not mapped to the output file.
6615 * linker.c: Replace direct references to fields in BFD structure
6616 with accessor macros.
6618 * elflink.h: Replace direct references to fields in BFD structure
6619 with accessor macros.
6621 1999-03-25 Philip Blundell <pb@nexus.co.uk>
6623 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
6625 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
6626 account when adjusting section symbols during a partial link.
6628 1999-03-24 Nick Clifton <nickc@cygnus.com>
6630 * coff-sparc.c (struct coff_reloc_map): Change type of field
6631 'bfd_reloc_val' to bfd_reloc_code_real_type.
6632 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
6633 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
6634 * elf32-arc.c (struct arc_reloc_map): Ditto.
6635 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
6636 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
6637 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
6638 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
6639 * elf32-sh.c (struct elf_reloc_map): Ditto.
6640 * elf32-sparc.c (struct elf_reloc_map): Ditto.
6641 * elf32-v850.c (struct v850_reloc_map): Ditto.
6642 * elf64-sparc.c (struct elf_reloc_map): Ditto.
6643 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
6644 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
6646 1999-03-17 Martin Hunt <hunt@cygnus.com>
6648 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
6649 function so source-level assembly works. If multiple N_SOs
6650 are seen without and N_FUNs, create an indextable entry with
6651 a NULL function name.
6653 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
6655 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
6656 of certian similar cpus.
6658 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
6660 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
6661 Add the 5000. Change the architecture for the 5400 to mips4.
6662 (elf_mips_mach): Add r5000.
6664 1999-03-11 Doug Evans <devans@casey.cygnus.com>
6666 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
6668 1999-03-11 Nick Clifton <nickc@cygnus.com>
6670 * binary.c (binary_set_section_contents): Generate warning about
6671 huge file offsets for any section that will occupy file space, not
6672 just those that are loadable.
6674 1999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
6676 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
6678 1999-02-22 Jim Lemke <jlemke@cygnus.com>
6680 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
6682 Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
6684 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
6685 * elflink.h: Revert all changes since Feb 16. Instead:
6686 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
6687 appropriate. Copy it to version symbols.
6688 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
6689 symbols if appropriate.
6690 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
6691 symbol if appropriate.
6692 (elf_link_output_extsym): If symbol is marked as undefined, and
6693 has no nonweak references, mark it as weak undefined.
6695 Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
6697 * elflink.h (elf_merge_symbol): When overriding a dynamic
6698 definition with a weak undefined symbol, set NEEDS_PLT if it is a
6700 (elf_link_add_object_symbols): Don't copy the other field if we
6703 Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
6705 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
6706 shared object with a weak undefined symbol.
6708 1999-02-18 Nick Clifton <nickc@cygnus.com>
6710 * elfarm-nabi.c: Set partial_inplace back to false.
6712 1999-02-17 Nick Clifton <nickc@cygnus.com>
6714 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
6715 (USER_LABEL_PREFIX): Set to "_".
6717 The following patches are from: Scott Bambrough
6718 <scottb@corelcomputer.com>
6720 * libaout.h (M_ARM6_NETBSD): Set to 143.
6722 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
6723 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
6724 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
6725 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
6726 * bfd-in2.h: Regenerate.
6728 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
6729 'true' as REL relocs are now being used. Add new PIC relocs:
6730 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
6731 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
6733 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
6735 (elf32_arm_final_link_relocate): Change parameters so that entire
6736 reloc is passed. Add support for PIC relocs.
6737 (elf32_arm_relocate_section): Pass entire reloc to
6738 elf32_arm_final_link_relocate.
6739 (elf32_arm_check_relocs): Handle new PIC relocs.
6740 (elf32_arm_adjust_dynamic_symbol): New function.
6741 (elf32_arm_size_dynamic_sections): New function.
6742 (elf32_arm_discard_copies): New function.
6743 (elf32_arm_finish_dynamic_symbol): New function.
6744 (elf32_arm_finish_dynamic_sections): New function.
6745 (ELF_MAXPAGE_SIZE): Define.
6746 (bfd_elf32_bfd_reloc_type_lookup): Define.
6747 (elf_backend_relocate_section): Define.
6748 (elf_backend_adjust_dynamic_symbol): Define.
6749 (elf_backend_create_dynamic_sections): Define.
6750 (elf_backend_finish_dynamic_symbol): Define.
6751 (elf_backend_finish_dynamic_sections): Define.
6752 (elf_backend_size_dynamic_sections): Define.
6753 (elf_backend_plt_readonly): Define.
6754 (elf_backend_want_got_plt): Define.
6755 (elf_backend_want_plt_sym): Define.
6757 Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
6759 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
6760 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
6761 (_bfd_mips_elf_fake_sections): Likewise.
6763 Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6765 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
6766 bfd_elf32_arm_get_bfd_for_interworking,
6767 bfd_elf32_arm_process_before_allocation): Define to avoid clash
6770 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
6771 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
6772 elf32_arm_find_nearest_line): Make them static.
6774 Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
6776 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
6777 callers. Do not merge a definition from a shared object with a
6778 weak undefined symbol.
6779 (elf_link_add_object_symbols): Do not change the symbol type or
6780 size if the old symbol overrides the new one.
6782 1999-02-08 Nick Clifton <nickc@cygnus.com>
6784 * config.bfd: Add support for strongarm target.
6786 Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6788 * elf32-m68k.c (reloc_map): Use the correct types for the struct
6789 fields instead of unsigned char.
6791 Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
6793 * Makefile.am: Rebuild dependencies.
6794 * Makefile.in: Rebuild.
6796 Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
6798 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
6799 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
6800 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
6801 * acinclude.m4: Add comments to uses of AC_DEFINE.
6802 * acconfig.h: Remove.
6803 * configure: Rebuild with current autoconf/automake.
6804 * aclocal.m4: Likewise.
6805 * config.in: Likewise.
6806 * Makefile.in: Likewise.
6808 1999-02-04 DJ Delorie <dj@cygnus.com>
6810 * libbfd.c (real_read): don't call fread for zero bytes. This
6811 covers up a bug (or misuse of bfd) that's exposed by Solaris.
6813 Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
6815 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
6816 of a jump is in the current 256 MB region.
6818 Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
6820 * format.c (bfd_check_format_matches): Change last patch to only
6821 take effect for the binary target.
6823 Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
6825 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
6827 Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
6829 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
6831 Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
6833 * format.c (bfd_check_format_matches): If the target was
6834 previously specified, don't check other targets when checking for
6837 Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
6839 * elf32-arm.h (elf32_arm_reloc_map): Removed.
6840 (elf32_arm_reloc_type_lookup): Removed
6841 * elfarm-nabi.c (elf32_arm_reloc_map): New.
6842 (elf32_arm_reloc_type_lookup): New.
6843 * elfarm-oabi.c (elf32_arm_reloc_map): New.
6844 (elf32_arm_reloc_type_lookup): New.
6846 Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
6848 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
6849 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
6850 * Makefile.am: Use new files.
6851 * Makefile.in: Regenerate.
6852 * configure.in: Use new files.
6853 * configure: Regenerate.
6855 1999-02-01 Nick Clifton <nickc@cygnus.com>
6857 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
6858 (fr30_elf_gc_sweep_hook): New function.
6859 (elf_backend_can_gc_sections): Define.
6861 Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
6863 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
6864 and bfd_elf32_bigarm_oabi_vec.
6866 Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
6868 * Makefile.am (elf32-arm-oldabi.lo): New.
6869 (elf32-arm-newabi.lo): New.
6870 * Makefile.in: Regenerate.
6871 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
6872 (arm-*-elf): Likewise.
6874 (thumb-*-oabi): New.
6875 * configure: Regenerate.
6876 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
6877 (bfd_elf32_bigarm_oabi_vec): New.
6878 * elf32-arm-newabi.c: New.
6879 * elf32-arm-oldabi.c: New.
6880 * elf32-arm.c: Removed.
6883 Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
6885 * binary.c (binary_set_section_contents): Omit warnings for
6886 unloadable sections.
6888 1999-01-31 Michael Meissner <meissner@cygnus.com>
6890 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
6891 powerpc{,le}-*-eabi.
6893 1999-01-29 Nick Clifton <nickc@cygnus.com>
6895 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
6896 * dwarf2.c (read_signed_leb128): Remove unused variables.
6898 Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
6900 * elf.c (assign_file_positions_for_segments): Only adjust
6901 p_align when needed.
6903 Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
6905 * binary.c (binary_set_section_contents): Don't return early for a
6906 non-loadable section, in case the first section is non-loadable.
6907 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
6908 W. Rozycki <macro@ds2.pg.gda.pl>.
6910 1999-01-28 Nick Clifton <nickc@cygnus.com>
6912 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
6913 R_FR30_GNU_VTENTRY relocs.
6915 Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
6917 * elflink.h (elf_link_output_sym): Zero syms which are
6918 part of sections which have been excluded.
6920 Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
6922 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
6924 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
6925 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
6927 1999-01-27 Nick Clifton <nickc@cygnus.com>
6929 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
6931 (fr30_final_link_relocate): Use computed value as result of
6934 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
6936 * binary.c (binary_set_section_contents): Emit warning for
6937 huge file offsets due to widely-dispersed section LMAs.
6939 Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
6941 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
6942 align first section to largest section alignment, not first
6945 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
6947 * configure.in: Require autoconf 2.12.1 or higher.
6949 Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
6951 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
6952 * bfd-in2.h: Likewise.
6953 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
6955 1998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
6957 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
6958 * cpu-mips.c: Add support for and independent 4111.
6959 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
6960 (_bfd_mips_elf_final_write_processing):
6961 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
6963 1998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
6965 * elf32-mips.c (elf_mips_abi_name): New.
6966 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
6968 1998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
6970 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
6971 Handle bfd_mach_mips4300.
6973 1998-12-11 Ulrich Drepper <drepper@cygnus.com>
6975 * elf32-i386.c: Remove leaked development code from patch
6976 1998-12-10 by Richard Henderson.
6978 1998-12-10 Richard Henderson <rth@cygnus.com>
6980 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
6981 in debug sections for symbol defined externally.
6983 Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6985 * targets.c (bfd_target_vector): Remove duplicate entry for
6988 1998-12-09 Nick Clifton <nickc@cygnus.com>
6990 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
6991 since we are using RELAs.
6993 Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
6995 SCO Open Server Release 5 core file support, from Jouke Numan
6997 * sco5-core.c: New file.
6998 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
6999 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
7000 * Makefile.am: Rebuild dependencies.
7001 (OPTIONAL_BACKENDS): Add sco5-core.lo.
7002 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
7003 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
7004 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
7005 * bfd-in2.h, configure, Makefile.in: Rebuild.
7007 Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
7009 * config.bfd (hppa*-*-mpeix*): New target.
7010 * configure.in: Add AC_HEADER_DIRENT.
7011 (hppa*-*-mpeix*): New target.
7012 * configure.host (hppa*-*-mpeix*): New host.
7013 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
7014 friends rather than just including <sys/dir.h>.
7015 * som.h (struct som_symbol): Add hppa_priv_level and apto
7016 tc_data. Change all users.
7017 (struct somdata): Add comp_unit field.
7018 (obj_som_compilation_unit): Define.
7019 (bfd_som_attach_compilation_unix): Declare.
7020 * som.c: Check HOST_HPPAMPEIX.
7021 (struct som_misc_symbol_info): Add new field priv_level.
7022 (som_object_setup): Add current_offset parameter. Change all
7024 (setup_sections): Likewise.
7025 (som_object_p): For EXECLIBMAGIC, read the lst header.
7026 (som_write_symbol_strings): Add compilation_unit parameter.
7028 (som_finish_writing): Write out compilation_unit.
7029 (som_bfd_derive_misc_symbol_info): Set priv_level.
7030 (som_build_and_write_symbol_table): Set xleast field to 3.
7031 (som_slurp_symbol_table): Set symbol priv_level.
7032 (bfd_som_attach_compilation_unit): New function.
7033 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
7034 priv_level into symbol_value.
7035 * configure, config.in: Rebuild.
7037 Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
7039 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
7040 warning function to call _bfd_error_handler instead.
7042 * libbfd.c (COERCE32): Cast through unsigned long and long to
7043 avoid bug in old version of gcc.
7045 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
7046 (elf_backend_additional_program_headers): Don't define.
7048 1998-12-08 Nick Clifton <nickc@cygnus.com>
7050 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
7051 relocations to include offset of 2 included in the insns, and the
7052 offset of the relocs within the section.
7054 Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
7056 The following changes were made by David Taylor
7057 <taylor@texas.cygnus.com>, Edith Epstein
7058 <eepstein@sophia.cygnus.com>, Jim Blandy
7059 <jimb@zwingli.cygnus.com>, and Elena Zannoni
7060 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
7061 changes originally made by HP; HP did not create ChangeLog
7064 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
7065 automake macro library.
7067 * hpux-core.c (hpux_core_core_file_p): this function now
7068 understands HPUX 10.30 thread info. Yes, the thread stacks can be
7069 found in the corefile! Also, in hpux_core_core_file_p, if we
7070 encounter a section with an unknown type, don't punt. Instead,
7071 just skip it. Also, count the number of sections of known type
7072 that we encounter. If we encounter at least one good one, then
7073 we'll declare that the file is a core file. If we encounter any
7074 unknown ones but some known ones, then we'll issue a warning (but
7075 still declare it to be a core file). Also, correctly decide when a
7077 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
7078 (CORE_ANON_SHMEM): define if not defined.
7079 (hpux_core_struct): add members lwpid and user_tid.
7080 (core_kernel_thread_id, core_user_thread_id): new macros.
7081 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
7082 the name before storing it in the bfd.
7083 (hpux_core_core_file_p): handle threads.
7085 * libhppa.h (GET_FIELD): protect against redefinition.
7086 (HPPA_WIDE): define.
7087 (GET_FIELD): define.
7092 (sign_extend): redefine.
7093 (assemble_6): define.
7094 (assemble_12): rewrite.
7095 (assemble_16): define.
7096 (assemble_16a): define.
7097 (assemble_17): rewrite.
7098 (assemble_22): define.
7100 1998-12-07 Nick Clifton <nickc@cygnus.com>
7102 * elf32-fr30.c (fr30_final_link_relocate): Using signed
7103 relocations for signed values.
7105 Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
7107 * mipsbsd.c (MY(set_arch_mach)): Make static.
7108 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
7109 bfd_mach_mips* macros rather than simple numbers.
7111 COFF weak symbol support, based on patches from Mark Elbrecht
7112 <snowball3@usa.net>:
7113 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
7114 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
7115 (coff_write_alien_symbol): Likewise.
7116 * cofflink.c (coff_link_check_ar_symbols): Likewise.
7117 (coff_link_add_symbols): Likewise.
7118 (_bfd_coff_link_input_bfd): Likewise.
7119 (_bfd_coff_write_global_sym): Likewise.
7121 * elf.c (copy_private_bfd_data): Always initialize the
7122 includes_phdrs field.
7124 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
7125 file defines a symbol first mentioned in an ELF file.
7127 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
7128 possible, rather than only if BFD64.
7129 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
7131 * bfd-in2.h: Rebuild.
7133 * srec.c (srec_set_section_contents): Correct test to avoid
7134 switching to 4 byte addresses after seeing a second section which
7135 requires 3 byte addresses. From Joel Schantz
7136 <joel.schantz@argosys.boeing.com>.
7138 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
7139 <aymeric.vincent@emi.u-bordeaux.fr>.
7141 1998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
7143 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
7144 decide whether the output file is -mrelocatable-lib,
7145 -mrelocatable, or neither. (gdb.base/nodebug.exp)
7147 1998-12-03 Nick Clifton <nickc@cygnus.com>
7149 * elf32-fr30.c: Add support for R_FR30_48 reloc.
7150 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
7151 * bfd-in2.h: Regenerate.
7152 * libbfd.h: Regenerate
7154 Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
7156 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
7157 link against a dynamic symbol with no type or size.
7159 1998-12-01 Ulrich Drepper <drepper@cygnus.com>
7161 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
7162 relocation for section which does not get loaded.
7163 (elf_i386_relocate_section) [R_386_32]: Likewise.
7165 Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
7167 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
7168 reloc_count and i long instead of unsigned long. Handle error
7169 return from bfd_canonicalize_reloc.
7171 1998-12-01 Nick Clifton <nickc@cygnus.com>
7173 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
7176 Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
7178 * elf32-sh.c (elf/sh.h): Include.
7179 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
7180 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
7181 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
7182 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7183 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
7185 Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
7187 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
7188 causes division by zero later on.
7190 Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
7192 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
7195 1998-11-25 DJ Delorie <dj@cygnus.com>
7197 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
7200 Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
7202 * elf32-fr30.c (fr30_elf_relocate_section): Call
7203 fr30_final_link_relocate.
7204 (fr30_final_link_relocate): New function: Handle I20 and I32
7206 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
7207 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
7208 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
7210 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
7213 The following changes are based on a patch submitted by Gianluca
7214 Moro <glctr@abc.it>:
7216 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
7217 not already been updated.
7218 (find_remembered_hi16s_reloc): New parameter 'already_found'
7219 returns state of remembered hi16s reloc.
7220 (remember_hi16s_reloc): Set 'found' field to false.
7221 (hi16s_location): Add 'found' field.
7223 1998-11-23 DJ Delorie <dj@cygnus.com>
7225 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
7226 to see .DLL files as unrecognized.
7227 (i3coff_object_p): Sorry, had to hack it to not recognize these
7228 files (pei-i386) on request.
7230 1998-11-23 DJ Delorie <dj@cygnus.com>
7232 * opncls.c (bfd_make_readable): need more cleanup for symbols and
7233 relents. Call bfd_check_format to reinitialize.
7235 Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
7237 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
7240 Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
7242 * aclocal.m4: regenerate
7243 * configure: regenerate
7245 Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
7247 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
7248 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
7249 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
7250 respect it as an upper bound on what memory to reference.
7251 (elf_gc_smash_unused_vtentry_relocs): Likewise.
7252 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
7253 update vtable_entries_size appropriately.
7255 Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
7257 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
7260 Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
7262 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
7263 bfds; they have no "file" so we fake it.
7264 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
7265 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
7266 resizing the memory buffer.
7267 * opncls.c (bfd_make_writable): New function; lets you write a
7268 bfd_create'd bfd to an in-memory buffer.
7269 (bfd_make_readable): New function; lets you read back that buffer
7270 as if it were from bfd_openr. Used to build generated archive
7271 members (winsup's ld's dlltool)
7273 Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
7275 * po/bfd.pot: Regenerated.
7277 Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
7279 * elf32-v850.c (hi16s_location): Replaced fixed size array with
7282 Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
7284 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
7285 element of the gotentry list for local symbols too.
7286 (elf64_alpha_relocate_section): Unify local and global handling.
7287 Assert that gotent->use_count > 0.
7289 Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
7291 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
7292 update for file name changes of July 2, 1998.
7294 * configure: Rebuild.
7296 Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
7298 * po/bfd.pot: Regenerated.
7300 Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
7302 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
7303 * aclocal.m4, configure: regenerate
7305 Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
7307 * elf.c (prep_headers): Add support for bfd_arch_fr30.
7309 Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
7311 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
7312 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
7314 * aclocal.m4, configure: regenerated.
7316 Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
7318 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
7319 R_D10V_GNU_VTENTRY relocs.
7320 (elf_d10v_howto_table): Likewise.
7321 (d10v_reloc_map d10v_reloc_map): Likewise.
7322 (elf32_d10v_gc_mark_hook): New.
7323 (elf32_d10v_gc_sweep_hook): New.
7324 (elf32_d10v_check_relocs): New.
7325 (elf32_d10v_relocate_section): New.
7326 (elf_backend_relocate_section): Define.
7327 (elf_backend_can_gc_sections): Define.
7329 Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
7331 * Makefile.am (BFD32_BACKENDS): Move vms files here...
7332 (BFD64_BACKENDS): ...from here.
7333 (BFD32_BACKENDS_CFILES): Move vms files here...
7334 (BFD64_BACKENDS_CFILES): ...from here.
7335 * Makefile.in: Rebuild.
7337 Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
7339 * Makefile.am: Add FR30 target.
7340 * Makefile.in: Add FR30 target.
7341 * archures.c: Add support for FR30.
7342 * config.bfd: Add support for FR30.
7343 * configure.in: Add support for FR30.
7344 * reloc.c: Add support for FR30 relocations.
7345 * targets.c: Add support for FR30 relocations.
7346 * bfd-in2.h: Regenerate.
7347 * configure: Regenerate.
7348 * libbfd.h: Regenerate.
7349 * cpu-fr30.c: New file.
7350 * elf32-fr30.c: New file.
7352 Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
7354 * configure.in: detect cygwin* instead of cygwin32*
7355 * configure: regenerate
7357 Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
7359 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
7360 use bfd_malloc and free instead and check return value from bfd_malloc.
7362 Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
7364 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
7365 * libbfd.h: Rebuild.
7367 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
7368 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
7369 (MIPS_TEXT_DYNSYM_SECN): Likewise.
7370 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
7372 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
7374 (mips_elf_link_hash_table_create): Don't initialize
7375 dynsym_sec_strindex.
7376 (mips_elf_gc_mark_hook): Add default case to avoid warning.
7377 (mips_elf_size_dynamic_sections): Generate a section symbol for
7378 every output section.
7379 (mips_elf_finish_dynamic_sections): Count all sections for
7381 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
7384 Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
7386 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
7387 for later PLT entries in large PLTs.
7388 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
7390 Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
7392 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
7394 1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
7396 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
7397 * elflink.h (elf_collect_hash_codes): New function. This function is
7398 called for each exported symbol and we compute the ELF hash value for
7400 (compute_bucket_value): New function. It is called from
7401 size_dynamic_sections to determine the hash table size. When we are
7402 optimizing a better, but slower, algorithm is used.
7403 (size_dynamic_sections): Call compute_bucket_value.
7405 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
7407 Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
7409 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
7411 (sh_elf_gc_mark_hook): New.
7412 (sh_elf_gc_sweep_hook): New.
7413 (sh_elf_check_relocs): New.
7414 (elf_backend_can_gc_sections): Define.
7416 Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
7418 * acinclude.m4: undo previous gettext change
7419 * aclocal.m4: rebuild with right version of aclocal.
7421 Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
7423 * acinclude.m4, aclocal.m4: move gettext-related fragments from
7424 aclocal.m4 to acinclude.m4, so they don't get lost.
7426 * elfcore.h: rewrite for better corefile support.
7427 * elf.c (elfcore_*): new functions.
7428 * elf-bfd.h (elf_obj_tdata): new structure members.
7429 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
7431 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
7433 Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
7435 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
7436 and R_M32R_GNU_VTENTRY.
7437 (elf_backend_can_gc_sections): Define.
7438 (m32r_elf_check_relocs): New.
7439 (m32r_elf_gc_mark_hook): New.
7440 (m32r_elf_gc_sweep_hook): New.
7441 (m32r_elf_relocate_section): Handle VT relocs.
7443 Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
7445 * coff-arm.c (arm_relocate_section): Remove redundant test.
7447 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
7448 cleat that the 'bitsize' field is the size of the bitfield AFTER
7449 relocation not before.
7451 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
7453 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
7456 Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
7458 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
7459 R_SPARC_GNU_VTENTRY.
7460 (elf32_sparc_check_relocs): Handle them.
7461 (elf32_sparc_reloc_type_lookup): Likewise.
7462 (elf32_sparc_relocate_section): Likewise.
7463 (elf32_sparc_gc_mark_hook): New.
7464 (elf32_sparc_gc_sweep_hook): New.
7466 Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
7468 * som.c (som_finish_writing): Perform some sanity checks when
7469 writing an executable or shared library.
7471 Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
7473 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
7474 * configure.in (elf): Add dwarf1.lo.
7475 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
7476 * elf.c (_bfd_elf_find_nearest_line): Add call to
7477 _bfd_dwarf1_find_nearest_line.
7478 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
7479 Add call to _bfd_dwarf1_find_nearest_line.
7480 * configure: Rebuilt.
7482 Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
7484 * elflink.h (elf_gc_sections): Do not allow garbage
7485 collection if dynamic sections have been created.
7487 Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
7489 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
7491 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
7492 (v850_elf_perform_relocation): Likewise.
7493 (v850_elf_final_link_relocate): Likewise.
7494 (v850_elf_relocate_section): Likewise.
7495 (v850_elf_gc_sweep_hook): New routine.
7496 (v850_elf_gc_mark_hook): New routine.
7497 (elf_backend_can_gc_sections): Define.
7499 Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
7501 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
7504 Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
7506 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
7507 Declare size as bfd_size_type.
7508 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
7510 Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
7512 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
7514 * som.c (CPU_PA_RISC2_0): Define.
7515 (_PA_RISC2_0_ID): Likewise.
7516 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
7518 Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
7520 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
7521 has a base which is already defined, only add the referenced
7522 symbol to the dynamic symbol table if it is defined or referenced
7525 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
7528 1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7530 * elflink.h (elf_link_add_object_symbols): Undo last change.
7532 Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
7534 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
7535 symbol for the indirect alias to a versioned symbol.
7537 Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
7539 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
7540 (elf32_i386_vtentry_howto): New.
7541 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
7542 or elf32_i386_vtinherit_howto on lookup.
7544 Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7546 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
7547 reloc_type. Rename R_68K__max to R_68K_max.
7548 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
7551 Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
7553 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
7554 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
7556 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
7559 Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
7561 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
7562 message has a null byte terminator.
7564 Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
7566 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
7567 word subject to R_V850_32 relocation.
7569 Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
7571 * dwarf2.c: Add comment describing problem computing line numbers
7572 for undefined symbols at link time.
7574 Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
7576 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
7577 transform a defweak into a plt entry.
7578 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
7579 plt entry references to receive a RELATIVE reloc.
7580 (elf64_alpha_finish_dynamic_symbol): Fill them in.
7581 (elf64_alpha_relocate_section): Assert we don't overrun
7582 the allocated relocation space.
7584 Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
7586 * elf.c (swap_out_syms): Always treat section symbols as
7587 special, even if they are attached to a common section.
7589 Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
7591 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
7592 sections with v850 common section attributes into named v850
7594 (v850_elf_add_symbol_hook): Move symbols in sections with v850
7595 common section attributes into named v850 common sections.
7597 Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
7599 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
7602 1998-09-15 Geoff Keating <geoffk@ozemail.com.au>
7604 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
7605 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
7606 reloc to the wrong section a warning, not an error. .dynsbss
7607 is not an output section, so there is no need to check for it.
7609 Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
7611 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
7613 Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
7615 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
7616 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
7618 (elf32_arm_gc_mark_hook): New.
7619 (elf32_arm_gc_sweep_hook): New.
7620 (elf32_arm_check_relocs): New.
7621 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
7623 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
7626 1998-09-10 Geoff Keating <geoffk@ozemail.com.au>
7628 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
7629 assume there is no PLT or GOT.
7631 Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
7633 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
7634 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
7635 also accepted as a function symbol type.
7637 Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7639 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
7641 Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
7643 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
7644 match definition of _bfd_gc_sections field.
7645 * libbfd.h: Rebuild.
7647 Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
7649 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
7650 the addend of a dynamic relocation referencing a section.
7651 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7652 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
7654 Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
7656 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
7657 bed has a size_dynamic_sections routine before trying to use it.
7659 Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
7661 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
7662 _bfd_elf_rel_vtable_reloc_fn.
7664 Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
7666 * Makefile.am: Add elf32-arm.c.
7667 * Makefile.in: Rebuild.
7668 * elf-bfd.h: Add elf_backend_get_symbol_type.
7669 * elf.c (swap_out_syms): If defined, call
7670 elf_backend_get_symbol_type.
7671 * elf32-arm.c: Define elf_backend_get_symbol_type.
7672 (elf32_arm_get_symbol-type): New routine.
7673 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
7674 (bfd_elf32_arm_process_before_allocation): Change to
7675 check for STT_ARM_TFUNC.
7676 (elf32_arm_final_link_relocate): Likewise.
7677 * elfxx-target.h: Add elf_backend_get_symbol_type.
7679 Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
7681 * archures.c (bfd_mach_alpha_ev[456]): New.
7682 * cpu-alpha.c: Rework to match these types.
7683 * bfd-in2.h: Rebuild.
7685 Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
7687 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
7688 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
7690 * elf32-i386.c (elf_howto_table): Add vtable relocs.
7691 (elf_i386_reloc_type_lookup): Recognize them.
7692 (elf_i386_check_relocs): Pass them off to generic code.
7693 (elf_i386_relocate_section): Ignore them.
7694 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
7695 (elf_backend_can_gc_sections): True.
7697 Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
7699 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
7700 before looking at owner field.
7701 (elf32_arm_to_thumb_stub): Ditto.
7702 (elf32_arm_relocate_section): Compute name before calling
7703 elf32_arm_final_link_relocate().
7705 Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
7707 * elf.c: comment and formatting cleanups.
7710 Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
7712 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
7713 (core files are treated differently than object files).
7714 * elf-bfd.h (_bfd_elf_write_corefile_contents,
7715 bfd_elf_mkcorefile): declare.
7716 * elfxx-target.h (_bfd_elf_write_corefile_contents,
7717 bfd_elf_mkcorefile): add to bfd_target vector.
7718 * elfcore.h (elf_core_file_p): save the program header table,
7719 and set the bfd architecture from the elf file header.
7720 * elf.c (bfd_elf_mkcorefile): new function.
7721 (_bfd_elf_write_corefile_contents): new function.
7722 (assign_file_positions_for_segments): add cases for handling
7723 PT_NOTE segments. (assign_file_positions_except_relocs):
7724 core files should be handled the same as exec files.
7725 (prep_headers): identify core files as type ET_CORE.
7726 (copy_private_bfd_data): identify the sections belonging to
7727 the PT_NOTE segment.
7729 * elf32-sparc.c (elf32_sparc_final_write_processing):
7730 add break statement to default case.
7732 1998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
7734 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
7735 section (not input) will be in sections ".sbss", ".sbss2",
7736 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
7737 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
7738 output_offset for correct evaluation of addend.
7740 Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
7742 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
7743 elf32_arm_allocate_interworking_sections and
7744 elf32_arm_process_before_allocation.
7746 Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
7748 * bfd-in.h: Ammend prototype for
7749 elf32_arm_process_before_allocation to remove surplus third
7752 * bfd-in2.h: Regenerate.
7754 Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
7756 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
7758 Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
7760 * aoutx.h (aout_link_input_section_ext): Use the relocation already
7761 calculated for RELOC_SPARC_REV32 case.
7763 Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
7765 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
7766 elf32_arm_allocate_interworking_sections and
7767 elf32_arm_process_before_allocation.
7768 * bfd-in2.h: Regenerated.
7769 * elf32-arm.c Define elf32_arm_link_hash_table.
7770 (insert_thumb_branch): New routine.
7771 (find_thumb_glue): New routine.
7772 (find_arm_glue): New routine.
7773 (record_arm_to_thumb_glue): New routine.
7774 (record_thumb_to_arm_glue): New routine.
7775 (elf32_arm_link_hash_table_create): New routine.
7776 (elf32_arm_get_bfd_for_interworking): New routine.
7777 (elf32_arm_allocate_interworking_sections) New routine.
7778 (elf32_arm_process_before_allocation) New routine.
7779 (elf32_thumb_to_arm_stub): New routine.
7780 (elf32_arm_to_thumb_stub): New routine.
7781 (elf32_print_private_bfd_data): Fix typo.
7782 (elf32_arm_final_link_relocate): Add argument sym_sec.
7783 Check for branches to thumb symbols in case R_ARM_PC24.
7784 Check for branches to arm symbols in case R_ARM_THM_PC22.
7785 (elf32_arm_relocate_section): Pass symbol section to
7786 elf32_arm_final_link_relocate.
7788 Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
7790 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
7791 entries unless the symbol is defined in the executable; in
7792 particular, undefined weak symbols get a PLT entry.
7794 Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
7796 * libaout.h: Remove nested comment to avoid warning.
7798 Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
7800 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
7801 R_ARM_PC24 relocation.
7803 Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
7805 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
7806 argument is_local. Add argument sym_flags. Check sym_flags
7807 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
7808 (elf32_arm_relocate_section): Don't pass local sym and pass
7809 sym_flags to elf32_arm_final_link_relocate.
7811 Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
7813 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
7814 to not count too few relocs for dynamicly linked executables.
7816 Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
7818 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
7819 symbols without a dynamic index dynamic. Consider all weak
7821 (elf64_alpha_strip_section_from_output): Don't assume 1-1
7822 correspondance between input and output sections.
7824 Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7826 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
7827 that use a .got.plt section start the got offset at zero.
7829 Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
7831 * ieee.c (ieee_write_processor): Correct the processor ID written
7832 out for bfd_arch_m68k, accommodating change of March 25.
7834 Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
7836 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
7837 R_ARM_THM_RPC22 relocations.
7839 Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
7841 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
7843 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
7844 .got relocs in -Bsymbolic shared objects.
7846 Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
7848 * elf32-arm.c: Add private flags to ELF header.
7849 (elf32_arm_print_private_bfd_data): New Function.
7850 (elf32_arm_set_private_flags): New Function.
7851 (elf32_arm_copy_private_flags): New Function.
7852 (elf32_arm_merge_private_bfd_data): New Function.
7854 Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
7856 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
7858 (elf32_sparc_relocate_section): Likewise.
7860 Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
7862 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
7863 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
7864 (ppc_elf_relocate_section): Pull sgot and splt search to the start
7865 of the function. Recognize no .plt as static linking.
7867 1998-08-01 Ulrich Drepper <drepper@cygnus.com>
7869 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
7870 ".liblist" string through gettext.
7872 Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
7874 * Makefile.am: Add support for elf32-arm.lo.
7875 * Makefile.in: Rebuild.
7876 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
7877 (thumb-*-elf): Define targ_defvec and targ_selvecs.
7878 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
7879 * configure: Regenerate.
7880 * elf.c: (prep_headers): Support arch_type of EM_ARM.
7881 * targets.c: Support new targets bfd_elf32_bigarm_vec and
7882 bfd_target bfd_elf32_littlearm_vec.
7883 * elf32-arm.c: New file.
7885 Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
7887 * libaout.h (M_SPARCLITE_LE): New machine.
7888 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
7889 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
7890 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
7891 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
7892 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
7893 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
7894 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
7895 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
7896 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
7897 be BFD_RELOC_SPARC_REV32.
7899 * config.bfd (sparc86x-*-aout): New
7901 Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
7903 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
7904 actually mapping the output sections.
7906 Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
7909 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
7910 (mn10300_elf_reloc_map): Similarly.
7911 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
7913 Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
7915 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
7917 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
7918 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
7919 elf_mips_reloc_type defined in elf/mips.h.
7921 1998-07-24 Ulrich Drepper <drepper@cygnus.com>
7923 * elf64-mips.c: Remove reloc_type definition completely. It's now
7926 Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
7928 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
7929 as they are defined in elf/mips.h now.
7931 Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
7934 * Re-add lost change:
7935 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
7937 (mn10300_elf_relax_section): Include stack space for register saves
7938 in the imm8 field of a "call" instruction.
7939 (compute_function_info): Determine how much stack is allocated by
7940 the movm instruction. Fix typo.
7941 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
7943 Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
7945 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
7946 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
7948 1998-07-22 Ulrich Drepper <drepper@cygnus.com>
7950 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
7952 Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
7954 * elf32-hppa.h: Let ELF header define the enum containing the
7955 external reloc numbers.
7956 * elf32-i386.h: Likewise.
7958 1998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
7960 * elf-m10300.c: Let ELF header now define the macros to get the enum.
7961 * elf32-mips.c: Likewise.
7962 * elf32-ppc.c: Likewise.
7964 Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
7966 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
7967 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
7969 * bfd-in.h: Regenerate.
7970 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
7971 parameter to 'unsigned int' to avoid K&R compatability problems.
7973 Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
7975 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
7976 functionname_ptr to be const. Change line_ptr to be unsigned.
7978 * coffcode.h (coff_link_output_has_begun): Simplify handling when
7979 macro is not defined. Change second parameter from bfd_link_info
7980 to coff_final_link_info. Add prototype.
7981 (coff_final_link_postscript): Simplify handling when macro is not
7982 defined. Add prototype.
7984 1998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
7986 * elf-mn10300.c: Before include system specific ELF header define
7987 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
7988 * elf32-mips.c: Likewise.
7989 * elf32-ppc.c: Likewise.
7991 Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
7993 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
7994 temporary patch over to elf64-mips.c as well.
7996 1998-07-21 Ulrich Drepper <drepper@cygnus.com>
7998 * elf32-mips.c (reloc_type): Temporarily disable definition of
7999 standard relocation since they are now defined in elf/mips.h.
8001 Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
8003 * elf-m10200.c (mn10200_elf_final_link_relocate):
8004 Modify range test for case R_MN10200_8.
8006 * elf-m10300.c (mn10300_elf_final_link_relocate):
8007 Modify range test for case R_MN10300_8.
8009 Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
8011 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
8012 * elf32-i386.c (elf_backend_got_header_size): Define.
8013 (elf_backend_plt_header_size): Define.
8014 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
8015 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
8016 * elfxx-target.h: Provide a default of zero.
8017 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
8018 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
8020 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
8021 entry from an executable, even if the plt refcount goes to 0.
8023 Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8025 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
8026 directory name at the line number.
8028 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
8029 with an unspecified type.
8031 Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
8033 * sunos.c: Add undef of valid to avoid problem on SunOS.
8035 Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
8037 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
8039 Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8041 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
8042 R_68K_PCxx and R_68K_xx relocations. Make sure that
8043 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
8044 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
8045 R_68K_xx relocations.
8046 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
8047 that has no plt entry.
8048 (elf_m68k_relocate_section): Ignore the plt offset in a static
8050 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
8052 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
8055 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
8057 (howto_table, reloc_map): Add entries for them.
8058 (elf_m68k_check_relocs): Handle them. Implement reference
8059 counting for got and plt entries.
8060 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
8061 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
8063 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
8064 (elf_m68k_relocate_section): Handle the new reloc types.
8065 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
8066 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
8067 * elflink.h (elf_link_add_object_symbols): When creating an
8068 indirect reference for symbol versioning also copy the plt
8070 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
8071 flag also reset the plt offset.
8072 (elf_link_assign_sym_version): Likewise.
8073 (elf_gc_common_finalize_got_offsets): Increment the got offset by
8074 the size of the entry in bytes.
8075 (elf_gc_allocate_got_offsets): Likewise.
8077 Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
8079 * elflink.h (elf_gc_sections): Return true rather than falling off
8082 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
8085 Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
8087 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
8088 comment describing when it should be enabled.
8089 Changed definition of USER_LABEL_PREFIX to "", to fall into line
8092 Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
8094 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
8095 information ATN records.
8097 Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
8099 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
8100 section for an absolute symbol in a fully linked file. Based on
8101 patch from Christian Holland <CHolland@de.lucent.com>.
8103 Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
8105 * coff-m88k.c (m88k_special_reloc): Don't lose the information
8106 that a symbol is undefined.
8108 Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
8110 * som.c (som_bfd_gc_sections): Define.
8112 Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
8114 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
8115 overflows in ARM_26D patches, since they have already been
8116 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
8118 Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
8120 * coffcode.h (coff_write_object_contents): If we have any long
8121 section names, call coff_write_symbols even if there are no
8124 Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
8126 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
8127 PT_LOAD segment, rather than only setting it once for the entire
8130 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
8131 rather than ignoring every phdr with a p_paddr of 0, ignore all
8132 the phdrs if they all have a p_paddr of 0.
8134 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
8135 section was discarded from the link.
8137 Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
8139 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
8141 Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
8143 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
8144 floating point operations.
8146 Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
8148 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
8151 Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
8153 Merge of vax/vms (read-only) support
8154 * configure.com: Support Vax target.
8155 * makefile.vms: Support Vax target.
8156 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
8157 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
8159 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
8161 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
8163 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
8165 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
8167 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
8168 * targets.c (bfd_target_ovax_flavour): New flavour.
8169 (vms_alpha_vec): Renamed from evax_alpha_vec.
8171 (target_vector): Update accordingly.
8172 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
8174 (vax*-*-*vms*): New target.
8175 * Makefile.am: Update for renamed files. Rebuild dependencies.
8176 * bfd-in2.h: Rebuild.
8177 * configure.in, Makefile.in, aclocal.m4: Rebuild.
8179 Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
8181 Based on patch from Matt Semersky <matts@scd.hp.com>:
8182 * linker.c (_bfd_generic_final_link): Force a trailing NULL
8183 pointer on abfd->outsymbols.
8184 (generic_add_output_symbol): Handle NULL sym parameter.
8186 Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
8188 * elf.c (copy_private_bfd_data): Add support for changing VMA or
8191 Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
8193 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
8194 when handling 32 bit immediate relocs.
8195 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
8197 Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
8199 * section.c (STD_SECTION): Account for recently added gc_mark
8200 field in struct asection.
8202 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
8203 (bfd_elf32_bfd_merge_private_bfd_data): Define.
8205 Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
8207 ELF Section-level Garbage Collection:
8208 * bfd.c (bfd_gc_sections): New.
8209 * aout-adobe.c: Hook to default implementation.
8210 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
8211 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
8212 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
8213 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
8214 * tekhex.c, versados.c: Likewise.
8215 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
8216 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
8218 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
8219 (bfd_generic_gc_sections): New.
8220 * section.c (SEC_KEEP): New.
8221 (asection): Add gc_mark member.
8223 * elfcode.h (elf_gc*): New name remappings.
8224 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
8225 sections to be excluded.
8226 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
8227 (elf_gc_propogate_vtable_entries_used): New.
8228 (elf_gc_smash_unused_vtentry_relocs): New.
8229 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
8230 (elf_gc_common_finalize_got_offsets): New.
8231 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
8232 * elfxx-target.h: Add and default gc hooks.
8234 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
8236 (struct elf_obj_tdata): Likewise for local_got_offsets.
8237 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
8238 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
8239 * elf64-sparc.c, elflink.h: Likewise.
8241 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
8242 (ELF_LINK_HASH_MARK): Define.
8243 (struct elf_backend_data): Add GC hooks.
8244 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
8246 * elf-m10300.c (mn10300_elf_check_relocs): New.
8247 (mn10300_elf_gc_mark_hook): New.
8248 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
8249 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
8250 (mn10300_elf_final_link_relocate): Likewise.
8251 (mn10300_elf_relocate_section): Likewise.
8252 (elf_backend_can_gc_sections): Define.
8253 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
8254 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
8255 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
8256 (mips_info_to_howto_rel): Likewise.
8257 (mips_elf_relocate_section): Likewise.
8258 (mips_elf_check_relocs): Likewise.
8259 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
8260 (elf_backend_can_gc_sections): Define.
8261 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
8262 (ppc_elf_howto_raw): Handle them.
8263 (ppc_elf_reloc_type_lookup): Likewise.
8264 (ppc_elf_relocate_section): Likewise.
8265 (ppc_elf_check_relocs): Reference count .got and .plt entries.
8266 Handle new vtable relocs.
8267 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
8268 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
8269 (elf_backend_can_gc_sections): Define.
8271 Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
8273 * archures.c (bfd_mach_mn10300): Define.
8274 * elf-m10300.c: Include elf/mn10300.h
8275 (elf_mn10300_mach): New function.
8276 (_bfd_mn10300_elf_final_write_processing): Likewise.
8277 (_bfd_mn10300_elf_object_p): Likewise.
8278 (elf_backendfinal_write_processing): Define.
8279 (elf_backend_object_p): Likewise.
8281 Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
8283 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
8286 Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
8288 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
8289 link_next field, not the next field.
8291 Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
8293 * elf.c (map_sections_to_segments): Check the section address
8294 against the phdr size both with and without a modulo of
8297 Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
8299 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
8300 linker created empty input section if the output section has the
8303 * elflink.h (elf_link_output_extsym): Print an error message if
8304 _bfd_elf_section_from_bfd_section fails.
8306 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
8309 Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
8311 * elf.c (copy_private_bfd_data): Improve handling of Solaris
8312 native linker output. Avoid putting an empty section in more than
8315 Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
8317 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
8318 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
8320 Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
8322 * elf.c (swap_out_syms): New arg relocatable_p.
8323 Don't add section VMA to symbols for relocatable output.
8324 (_bfd_elf_compute_section_file_positions): Update call to
8327 Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
8329 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
8330 against 'addend' be signed rather than unsigned.
8332 Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
8334 * elf32-m32r.c: Add prototyps for static functions.
8336 * coff-arm.c: Add prototypes for static functions.
8338 Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
8340 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
8341 LMA is used to order sections in a segment.
8343 * elf32-v850.c: Add prototypes for static functions.
8344 Change type of addend parameter to bfd_vma in various functions.
8346 Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
8348 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
8349 complain_overflow_signed instead of complain_overflow_bitfield.
8351 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8353 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
8354 when comparing against 0.
8356 Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
8358 * Makefile.am (config.status): New target.
8359 * Makefile.in: Rebuild.
8361 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
8363 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
8364 error if previous object endianness doesn't match current object.
8366 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
8368 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
8369 _bfd_elf_print_private)bfd_data ().
8371 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
8373 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
8375 (elf_link_add_object_symbols): Set type_change_ok and
8376 size_change_ok before calling elf_merge_symbol.
8378 * elf32-mips.c (mips_elf_relocate_section): If we issue an
8379 undefined symbol error, don't also issue an overflow error.
8381 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
8383 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
8384 R_PPC_LOCAL24PC relocation should be local; if not, print an error
8385 message instead of crashing.
8387 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
8389 * archures.c (bfd_mach_cpu32): Define.
8390 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
8392 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
8393 * ieee.c: Include <ctype.h>.
8394 (ieee_object_p): Parse out process ID string to make it more
8395 likely to be acceptable for bfd_scan_arch.
8396 * bfd-in2.h: Rebuild.
8398 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
8400 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
8401 _bfd_elf_print_private_bfd_data() so that the program header will
8404 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
8406 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
8407 0x68. Reindent. Add some comments.
8409 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
8411 * elf.c (copy_private_bfd_data): Adjust physical address of
8412 segment in output BFD to contain LMAs of its sections.
8414 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
8416 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
8417 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
8418 endian data 32 bit relocations.
8419 (elf32_sparc_merge_private_bfd_data): Check if linking little
8420 endian objects with big endian objects.
8421 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
8422 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
8423 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
8425 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
8426 * archures.c (bfd_mach_sparc_sparclite_le): New.
8427 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
8429 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
8431 * peicode.h (add_data_entry): Fix precedence of operators in if ()
8434 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
8436 * bfd-in.h: Move over patch to bfd-in2.h.
8438 * reloc.c (bfd_check_overflow): Add casts before shifts which may
8440 (_bfd_relocate_contents): Likewise.
8442 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
8444 * peicode.h (add_data_entry): If the section has no private data
8445 then do not create a Data Dictionary entry for it.
8447 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
8449 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
8450 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
8451 elf64_alpha_size_got_sections): Rewrite, handling multiple got
8452 subsections during relaxation more correctly.
8454 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
8456 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
8457 Add extra argument to bfd_arm_process_before_allocation ().
8458 * bfd-in.h: Reflect changes made in bfd-in2.h.
8459 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
8460 coff class of a BFD symbol.
8461 * coff-arm.c: Add support for interworking between Thumb code and
8462 non-interworking aware ARM code.
8464 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
8466 * po/Make-in (install-info): New target.
8468 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
8470 * filemode.c: Remove; not used.
8472 If sysdep.h includes a header file, don't include it again:
8473 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
8475 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
8477 * archive.c: Don't include <string.h> or <errno.h>.
8478 * evax-alpha.c; Don't include <stdio.h>.
8479 * evax-egsd.c: Likewise.
8480 * evax-etir.c: Likewise.
8481 * evax-misc.c: Likewise.
8482 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
8483 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
8485 * hpux-core.c: Likewise.
8486 * netbsd-core.c: Likewise.
8488 * libbfd.c: Don't include <sys/types.h>.
8489 * nlmcode.h: Don't include <string.h>.
8490 * osf-core.c: Don't include <string.h> or <stdio.h>.
8491 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
8492 <errno.h>, or <unistd.h>.
8493 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
8495 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
8497 * configure.com: If the version number can not be found in
8498 configure.in, set it to "unknown" rather than "2.8.1".
8500 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
8502 * elf32-mips.c (elf_mips_mach): New.
8503 (_bfd_mips_elf_object_p): Use elf_mips_mach.
8504 (_bfd_mips_elf_final_write_processing): Use the names
8505 of machines, rather than the numbers. Set both the ARCH
8506 and MACH in e_flags. Handle a few more specific machines.
8507 (_bfd_mips_elf_merge_private_bfd_data): Merge both
8508 EF_MIPS_ARCH and EF_MIPS_MACH.
8510 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
8512 * syms.c (bfd_is_local_label): Revert last change.
8513 * srec.c (srec_write_symbols): Discard debugging symbols.
8515 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
8517 * som.c: Include <ctype.h>.
8518 * som.h: Don't include sysdep.h.
8520 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
8522 * libbfd.h: Rebuilt.
8523 * libbfd-in.h: Removed gettext includes and defines.
8524 * sysdep.h: Moved gettext-related includes and defines here.
8526 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
8528 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
8529 an ad-hoc test. Kill bogus #if 0 code.
8530 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
8532 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
8534 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
8535 when generating a normal executable for a symbol defined in a
8536 regular file. When copying a reloc into the output file, adjust
8537 the addend for a PC relative reloc against a global symbol.
8539 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
8541 * libbfd.h: Rebuilt.
8542 * libbfd-in.h (_): Define as dgettext.
8544 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
8546 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
8548 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
8549 when declaring parameter types.
8550 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
8552 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
8554 * config.bfd: If we include any ELF targets in targ_defvec and/or
8555 targ_selvecs, then add the generic ELF targets to targ_selvecs.
8556 * elf32-gen.c (dummy): New static const variable.
8557 (elf_generic_info_to_howto): New static function.
8558 (elf_generic_info_to_howto_rel): New static function.
8559 (elf_info_to_howto): Define as elf_generic_info_to_howto.
8560 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
8561 * elf64-gen.c: Same changes as elf32-gen.c.
8562 * elfcode.h (elf_object_p): For the generic target, ignore a
8563 failure of bfd_default_set_arch_mach. Fix indentation a bit.
8565 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
8567 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
8568 * configure: Rebuild.
8570 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
8572 * config.bfd: Update OSR5/Unixware patterns.
8574 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
8576 * elf.c (assign_file_positions_for_segments): Allow for holes
8577 between sections added by a link script.
8579 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
8581 * configure.in: Change version number to 2.9.4
8582 * configure: Rebuild.
8584 Based on patch from H.J. Lu <hjl@gnu.org>:
8585 * elf.c (bfd_elf_get_bfd_needed_list): New function.
8586 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
8587 * bfd-in2.h: Rebuild.
8589 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
8591 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
8594 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
8596 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
8597 (elf64_alpha_relax_section): Fill them in.
8598 (elf64_alpha_relax_opt_call): Implement more than a stub.
8599 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
8600 alignment on .scommon.
8601 (elf64_alpha_merge_gots): Merge use counts as well.
8603 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
8605 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
8606 for calculating a local symbol's address.
8607 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
8608 Set the .got's cooked size as well as the raw size.
8610 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
8612 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
8613 internationalisation of printed information.
8615 * coff-arm.c (coff_arm_print_private_bfd_data): Add
8616 internationalisation of printed information.
8618 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
8620 * syms.c (struct indexentry): Change directory_name, file_name,
8621 and function_name fields to char *.
8622 (struct stab_find_info): Change cached_file_name field to char *.
8624 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
8626 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
8628 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
8630 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
8632 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
8634 * Makefile.am (install-data-local): Make $(includedir).
8635 * Makefile.in: Rebuild.
8637 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
8639 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
8641 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
8643 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
8644 * Makefile.in: Rebuild.
8646 * bfd-in2.h: Rebuild for Nick's changes.
8648 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
8650 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
8651 change wrt length == max_namelen.
8653 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
8655 * Many files: Added gettext invocations around user-visible
8657 * libbfd-in.h: Added gettext includes and defines.
8658 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
8659 HAVE_LC_MESSAGES): Define.
8660 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
8662 * Makefile.am (SUBDIRS): Added po.
8663 (POTFILES): New macro.
8664 (po/POTFILES.in): New target.
8665 (SOURCE_HFILES): New macro.
8667 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
8669 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8671 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
8672 NT_PRSTATUS note section encountered, it contains the status of
8673 the currently executing thread when the core file was written.
8675 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
8677 * libcoff.h: Add extra parameter to
8678 bfd_coff_link_output_has_begun overrideable function.
8679 * cofflink.c: Pass extra parameter to
8680 bfd_coff_link_output_has_begun function.
8681 * bfd-in.h: Add prototypes for exported ARM interworking
8683 * peicode.h: ARM specific code reorganised to conform to BFD
8685 * coffcode.h: ARM specific code reorganised to conform to BFD
8687 * coff-arm.c: Code reorganised to conform to the BFD coding
8688 conventions. Global variables have been moved into an ARM
8689 specific hash table structure and a new function:
8690 bfd_arm_get_bfd_for_interworking() has been created which is
8691 called from the linker scripts.
8693 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
8695 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
8697 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
8698 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
8699 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
8700 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
8702 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
8704 * config.bfd: Added sparc86x support.
8706 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
8708 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
8709 an out of range pc-relative jump/call to an undefined weak symbol.
8711 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
8713 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
8716 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
8718 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
8719 an error other than bfd_error_system_call, set the error to
8720 bfd_error_wrong_format.
8722 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
8723 bfd_elf32_powerpcle_vec.
8725 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
8726 program segments are zero, don't set p_paddr_valid.
8728 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
8730 * elf64-alpha.c: Initial implementation of relaxation --
8731 (struct alpha_elf_link_hash_entry): Add use_count member.
8732 (elf64_alpha_check_relocs): Initialize and increment it.
8733 (elf64_alpha_can_merge_gots): Check it when considering merging.
8734 (elf64_alpha_merge_gots): Drop entries with zero use.
8735 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
8736 (elf64_alpha_always_size_sections): Split out got sizing ...
8737 (elf64_alpha_size_got_sections): ... here. New function.
8738 (elf64_alpha_relax_find_reloc_ofs): New function.
8739 (elf64_alpha_relax_with_lituse): Likewise.
8740 (elf64_alpha_relax_without_lituse): Likewise.
8741 (elf64_alpha_relax_opt_call): Likewise.
8742 (elf64_alpha_relax_section): Likewise.
8743 (elf64_alpha_add_symbol_hook): Likewise.
8744 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
8745 (elf64_alpha_relocate_section): Likewise.
8746 (bfd_elf64_bfd_relax_section): Define.
8747 (elf_backend_add_symbol_hook): Likewise.
8749 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
8751 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
8752 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
8753 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
8755 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
8757 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
8758 * configure: Rebuild.
8760 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
8762 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
8763 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
8764 * configure.in: Define and substitute WIN32LDFLAGS and
8766 * aclocal.m4: Rebuild with new libtool.
8767 * configure, Makefile.in: Rebuild.
8769 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
8771 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
8772 before any other symbols in the same section.
8774 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
8776 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
8779 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
8781 * dwarf2.c (comp_unit): Move it earlier in the source. Add
8783 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
8784 Use addr_size for address size, rather than sizeof(bfd_vma).
8785 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
8786 Fix call to read_address.
8787 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
8788 Scrap other unneeded arguments. Fix call to read_address.
8789 (scan_unit_for_functions): Fix call to read_attribute.
8790 (parse_comp_unit): We now handle more values for addr_size.
8791 Set addr_size in unit. Fix call to read_attribute and
8794 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
8796 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
8798 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
8800 * archures.c (bfd_default_scan): Add m68k cases back to default
8801 switch, reverting patch of March 25, since IEEE support depends
8804 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
8806 * Makefile.am (diststuff): New target.
8807 * Makefile.in: Rebuild.
8809 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
8811 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
8812 som_offset when we have an extended name table.
8814 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
8816 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
8818 * Makefile.in: Rebuild.
8820 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8822 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
8823 symbols when creating a shared library.
8824 (elf_m68k_adjust_dynindx): New function, used by above code.
8825 (elf_m68k_finish_dynamic_sections): Initialize the section
8827 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
8829 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
8831 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
8834 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8836 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
8839 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
8841 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
8844 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
8846 * configure.in: Set version to 2.9.1.
8847 * configure: Rebuild.
8849 * Branched binutils 2.9.
8851 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
8853 * syms.c (ENABLE_CACHING): Define.
8854 (struct indexentry): Define.
8855 (struct stab_cache): Remove.
8856 (cmpindexentry): New static function.
8857 (struct stab_find_info): Add new fields: indextable,
8858 indextablesize, cached_indexentry, cached_offset, cached_stab, and
8859 cached_file_name. Remove fields: file_cache, function_cache, and
8861 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
8862 index table and search it.
8864 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
8866 * elf.c (_bfd_elf_copy_private_section_data): Call
8867 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
8869 * cpu-mips.c: Remove trailing comma at end of enumeration list.
8871 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
8873 * coff-arm.c: Define all globally visible variables and functions
8874 only when COFF_WITH_PE is not defined.
8875 * configure.in (armpe_little_vec, armpe_big_vec): Add
8877 * configure: Rebuild.
8879 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
8881 Fix some gcc -Wall warnings:
8882 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
8883 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
8884 * archures.c (bfd_default_scan): Likewise.
8885 * bfd.c (bfd_scan_vma): Likewise.
8886 * binary.c (mangle_name): Likewise
8887 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
8888 * coff-sh.c (sh_relocate_section): Likewise.
8889 * coff-stgo32.c (create_go32_stub): Likewise.
8890 * coffcode.h (coff_slurp_line_table): Likewise.
8891 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
8892 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
8893 (assign_file_positions_for_segments): Likewise.
8894 * elf32-mips.c (mips_elf_relocate_section): Likewise.
8895 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
8896 * oasys.c (oasys_write_sections): Likewise.
8897 * ppcboot.c (ppcboot_object_p): Likewise.
8898 (mangle_name): Likewise.
8899 * riscix.c (riscix_fix_pcrel_26): Likewise.
8900 * srec.c (srec_scan): Likewise.
8901 * stabs.c (_bfd_write_section_stabs): Likewise.
8902 * sunos.c (sunos_add_dynamic_symbols): Likewise.
8903 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
8904 switch. Declare parameters for function pointers.
8905 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
8907 * elf.c (elf_sort_sections): Likewise.
8908 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
8909 Add default cases to switches.
8910 (coff_arm_relocate_section): Remove unused local variables.
8912 (coff_arm_bfd_set_private_flags): Change flag variable to type
8914 * coff-mips.c (mips_relocate_section): Initialize use_lo.
8915 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
8916 (dump_toc): Change cat to const, and initialize it.
8917 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
8918 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
8919 (sh_elf_relocate_section): Initialize r_symndx.
8920 * coffcode.h (coff_compute_section_file_positions): Only declare
8921 old_sofar if ALIGN_SECTIONS_IN_FILE.
8922 (coff_write_object_contents): Initialize csym.
8923 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
8924 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
8926 * dwarf2.c: Include libiberty.h.
8927 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
8928 (decode_line_info): Remove unused local variables.
8929 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
8930 (m32r_elf_relocate_section): Likewise.
8931 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
8932 (v850_elf_reloc): Likewise.
8933 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
8934 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
8935 * elf.c (assign_file_positions_for_segments): Always set adjust.
8936 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
8937 parenthesize expression.
8938 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
8939 (m32r_elf_object_p): Return a value.
8940 (m32r_elf_print_private_bfd_data): Change fprintf format string.
8941 * elf32-mips.c (mips_elf_final_link): Initialize last.
8942 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
8943 * elf32-v850.c (v850_elf_object_p): Return a value.
8944 (v850_elf_print_private_bfd_data): Change fprintf format string.
8945 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
8947 * elflink.h (elf_link_add_object_symbols): Change vernum to
8948 unsigned int, and initialize it. Change fprintf format string.
8949 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
8950 when setting or comparing to soname_indx.
8951 (elf_create_pointer_linker_section): Change num_symbols to
8953 * libcoff-in.h (coff_data_type): Change flags to flagword.
8954 * peicode.h (pe_print_idata): Initialize idx. Change j to
8955 bfd_size_type. Initialize hint_member. Remove useless test to
8957 (pe_print_edata): Change num_functions and num_names in struct
8958 EDT_type to unsigned long. Remove cast. Change fprintf format
8960 * ppcboot.c (ppcboot_object_p): Change i to size_t.
8961 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
8963 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
8964 int *. Update uses. Change j to long.
8965 * bfd-in2.h, libcoff.h: Rebuild.
8967 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
8969 * elf32-v850.c Remove definition of USE_REL.
8970 (v850_elf_info_to_howto_rela): New function.
8971 (v850_elf_perform_relocation): Renamed from
8972 v850_elf_store_addend_in_insn. Removed replace argument.
8973 (v850_elf_reloc): store the relocation in the addend field instead
8975 (v850_elf_final_link_relocate): Now calls
8976 v850_elf_perform_relocation.
8977 (v850_elf_relocate_section): Remove code to generate REL
8980 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
8982 * coffcode.h (coff_new_section_hook): Set the type and storage
8983 class in the native symbol information allocated for a new section
8986 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
8988 * peicode.h: Chain together calls to
8989 coff_bfd_copy_private_bfd_data and
8990 coff_bfd_print_private_bfd_data.
8992 * coff-arm.c: Add prototypes for
8993 coff_arm_bfd_print_private_bfd_data and
8994 coff_arm_bfd_copy_private_bfd_data.
8996 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
8998 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
9001 * peicode.h: Call arm-coff private data functions after handling
9004 * coff-arm.c: Turn statics into globals so that they can be shared
9005 both pe and pei backends.
9007 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
9009 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
9011 (sunos_write_object_contents): Likewise.
9012 * aoutx.h (NAME(aout,machine_type)): Likewise.
9013 * coffcode.h (coff_set_arch_mach_hook): Likewise.
9015 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
9017 * archures.c (bfd_mach_m68*): Add definitions for various m68k
9019 (bfd_default_scan): Remove m68k special cases.
9020 * bfd-in2.h: Rebuild.
9021 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
9023 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
9024 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
9026 (bfd_m68k_arch): Set mach field to zero to signal no explicit
9027 selection, change printable_name to just "m68k" and make that the
9028 default instead of m68k:68020.
9030 * aout-tic30.c (NAME): Define this to avoid multiple definitions
9032 (MY_get_section_contents): Define as aout_32_get_section_contents
9033 rather than NAME(aout,get_section_contents).
9035 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
9037 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
9038 and call bfd_default_set_arch_mach to do the real work.
9040 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
9042 * bout.c (BALX): Include return register g14 as part of the insn.
9044 (calljx_callback): Use it.
9046 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
9048 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
9049 * libbfd.h: Rebuild.
9051 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
9052 byte_count to unsigned int.
9053 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
9054 unused local variables.
9056 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
9057 variables er and er1.
9059 * cpu-v850.c: Include <ctype.h>.
9060 (scan): Case isdigit argument to unsigned char.
9062 From Yan Meroth <YAN.MEROTH@st.com>:
9063 * ihex.c (ihex_scan): Add extbase variable so that getting an
9064 extended linear address record does not ignore any previous
9066 (ihex_write_object_contents): When writing out an extended linear
9067 address record, zero out any previous extended address.
9069 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
9071 * ieee.c (do_one): Check section before dereferencing it.
9072 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
9073 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
9075 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
9077 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
9079 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
9081 * coff-arm.c: Add interworking functions to pe backends.
9083 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
9085 * configure.in: Use AM_DISABLE_SHARED.
9086 * aclocal.m4, configure: Rebuild with libtool 1.2.
9088 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
9090 * coff-arm.c (coff_arm_relocate_section): Better error messages
9091 when interowrking conflucts occur. Courtesy of Jonathan Walton
9093 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
9094 relocations. Patch courtesy of Jonathan Walton and Tony
9097 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
9099 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
9100 part of Feb 22 change controling when to override the existing
9101 symbol with the .plt entry.
9103 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
9105 * config.bfd (targ_cpu): Add thumb-pe target.
9107 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
9108 functions in PE build.
9110 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
9112 * config.bfd (sparclite-*-elf*): Added.
9114 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
9116 * configure.in: Add elf.lo to elf shell variable.
9117 * Makefile.am (BFD_LIBS): Remove elf.lo.
9118 (BFD_LIBS_CFILES): Remove elf.c.
9119 (BFD32_BACKENDS): Add elf.lo.
9120 (BFD32_BACKENDS_CFILES): Add elf.c.
9121 * configure, Makefile.in: Rebuild.
9123 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
9125 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
9126 relocation against a non-local symbol should not have a dynamic
9129 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
9131 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
9133 (pe_print_private_bfd_data): Print PE flags. From Mikey
9134 <jeffdb@netzone.com>.
9136 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
9138 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
9139 a plt entry when we can determine that we authoritatively define
9142 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
9144 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
9145 don't actually use trad-core, but a SunOS-style core file handled
9147 * hosts/sparclinux.h: Remove.
9149 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
9151 * peicode.h (pe_print_idata): If there is no .idata section, look
9152 for the import tables in some other section. Make the initial
9153 label line up better with the data. Print the import address
9154 table even if there is no import name table. If the import
9155 address table holds actual addresses, print them.
9157 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
9159 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
9160 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
9161 bfd_error_system_call.
9163 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
9165 * Makefile.am (AUTOMAKE_OPTIONS): Define.
9166 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
9168 From H.J. Lu <hjl@gnu.org>:
9169 * Makefile.am (libbfd_la_LDFLAGS): Define.
9170 * Makefile.in: Rebuild.
9172 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
9174 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
9175 * netbsd.h (MACHTYPE_OK): Define.
9176 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
9177 calling N_SET_MACHTYPE, rather than having a switch.
9178 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
9180 * i386netbsd.c (MACHTYPE_OK): Don't define.
9181 (DEFAULT_MID): Define.
9182 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
9183 (MACHTYPE_OK): Don't define.
9184 (DEFAULT_MID): Define.
9185 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
9186 (DEFAULT_MID): Define.
9187 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
9188 (DEFAULT_MID): Define.
9189 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
9190 (DEFAULT_MID): Define.
9192 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
9193 * vaxnetbsd.c: New file.
9194 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
9195 rather than netbsd_core.
9196 * targets.c (vaxnetbsd_vec): Declare.
9197 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
9198 defined, add netbsd_core_vec.
9199 * configure.in: Set COREFILE for alpha*-*-netbsd* and
9200 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
9201 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
9202 * config.bfd (alpha*-*-netbsd*): New target.
9203 * Makefile.am: Rebuild dependencies.
9204 (BFD32_BACKENDS): Add vaxnetbsd.lo.
9205 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
9206 * configure, Makefile.in: Rebuild.
9208 * configure.host: Remove the old shared library build stuff. We
9209 now use libtool instead.
9211 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
9213 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
9215 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
9217 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
9218 * configure: Rebuild.
9220 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
9221 * elf32-v850.c (remember_hi16s_reloc): New function.
9222 (find_remembered_hi16s_reloc): New function.
9223 (v850_elf_store_addend_in_insn): Use the above new functions to
9224 match up HI6S relocs with LO16 relocs.
9226 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
9228 * configure.in: Change -linux* to -linux-gnu*.
9229 * config.bfd, configure.host: Likewise.
9230 * configure: Rebuild.
9232 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
9234 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
9235 LO16/HI16S bug and improve comments about what is going on.
9237 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
9239 * configure, aclocal.m4: Rebuild with new libtool.
9241 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
9243 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
9244 when merging v850 code into v850e/v850ea code. Do not initialise
9245 output flags if the input is the default architecture.
9247 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
9249 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
9250 get the size from bfd_arch_bits_per_address instead of directly
9253 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
9255 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
9256 to wrap, just return all 1's bits instead.
9257 * libbfd.h: Regenerate.
9259 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
9261 * coff-i386.c (coff_pe_i386_relocate_section): New static function
9263 (coff_relocate_section): If COFF_WITH_PE, define as
9264 coff_pe_i386_relocate_section.
9265 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
9266 skip empty sections, to match coff_write_object_contents.
9268 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
9269 rather than swapping out r_offset twice. From Luke Deller
9270 <luked@cse.unsw.edu.au>.
9272 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
9274 * configure.in: Set libtool_enable_shared rather than
9275 libtool_shared. Remove diversion hack.
9276 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
9279 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
9281 * syms.c (struct stab_cache): Define.
9282 (struct stab_find_info): Remove cached_offset, cached_stab,
9283 cached_str, and cached_stroff fields. Add file_cache,
9284 function_cache, and line_cache fields.
9285 (_bfd_stab_section_find_nearest_line): Use extensive caching to
9288 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
9290 * peicode.h (pe_print_idata): Check for import of ordinal rather
9292 (pe_print_edata): If there is no .edata section, look for the
9293 export data in some other section.
9295 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
9297 * configure.in: Change version to 2.8.4.
9298 * configure: Regenerated.
9300 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
9302 Add tms320c30 support:
9303 * cpu-tic30.c: New file.
9304 * aout-tic30.c: New file.
9305 * coff-tic30.c: New file.
9306 * archures.c (bfd_arch_tic30): Define.
9307 (bfd_tic30_arch): Declare.
9308 (bfd_archures_list): Add bfd_tic30_arch.
9309 * targets.c (bfd_target_vector): Add tic30_aout_vec and
9311 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
9312 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
9313 (coff_set_flags): Likewise.
9314 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
9315 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
9316 * Makefile.am: Rebuild dependencies.
9317 (ALL_MACHINES): Add cpu-tic30.lo.
9318 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
9319 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
9320 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
9321 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
9323 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
9325 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
9326 to lag behind LO16 reloc by a couple of instructions.
9328 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
9330 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
9331 make to reexamine the file timestamp.
9332 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
9334 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
9337 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
9339 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
9340 to create .dynsbss and .rela.sbss sections.
9341 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
9342 copied from dynamic objects into .sbss.
9343 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
9344 use it. Correct typo of .rela.sdata2.
9345 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
9346 put the data, which may now be in .sbss.
9347 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
9348 (elf_backend_create_dynamic_sections): Define as
9349 ppc_elf_create_dynamic_sections.
9351 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
9352 against _GLOBAL_OFFSET_TABLE_.
9353 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
9354 shared libraries which refer to local symbols. Make sure that the
9355 test for allocating space for a reloc in a shared object is the
9356 same as the test for emitting a reloc.
9358 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
9360 * config.bfd (i[3456]-*-mingw32*): New target.
9361 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
9362 * aclocal.m4, configure: Rebuild.
9364 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
9366 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
9369 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
9371 Sparc v9 ABI compliant PLT:
9372 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
9373 (plt_templates, sparc64_elf_build_plt_entry): Delete.
9374 (LARGE_PLT_THRESHOLD): New define.
9375 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
9376 (sparc64_elf_build_plt): New function.
9377 (sparc64_elf_plt_entry_offset): Likewise.
9378 (sparc64_elf_plt_ptr_offset): Likewise.
9379 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
9380 contain the index for convenience. Skip the initial entries
9382 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
9383 memory for the benefit of .rela.plt.
9384 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
9385 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
9386 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
9387 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
9388 Call sparc64_elf_build_plt.
9389 (elf_backend_want_got_plt): No.
9390 (elf_backend_plt_readonly): No.
9391 (elf_backend_plt_alignment): 8.
9393 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
9394 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
9395 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
9398 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
9400 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
9402 * cpu-mips.c (arch_info_struct): Add mips variants.
9403 * bfd-in2.h: Rebuilt.
9405 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
9407 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
9410 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
9412 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
9413 (i[3456]86sco3.2v5*coff): New target.
9415 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
9417 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
9419 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
9421 * bfd.c (bfd_get_error_handler): Add orthogonal function.
9422 * bfd-in2.h: Regenerate.
9424 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
9426 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
9428 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
9430 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
9431 adjust addend for an output common symbol (from Jimmy Blair
9432 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
9433 defined symbol to counteract adjustment made in generic relocation
9436 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
9438 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
9440 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
9441 (GET_SCNDHR_NLNNO): Likewise.
9443 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
9445 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
9447 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
9449 * elf32-m32r.c: Add macros to handle NOP insertion.
9451 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
9453 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
9454 (xcoff_mark): Likewise.
9455 (xcoff_build_ldsyms): Mark absolute symbols.
9457 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
9459 * bout.c (b_out_write_object_contents): Sort symbols before output
9460 to keep {CALL,BAL}NAME symbols adjacent.
9461 (b_out_symbol_cmp): New function.
9463 For older changes see ChangeLog-9697
9469 version-control: never