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