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