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