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