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