From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
[external/binutils.git] / bfd / ChangeLog
1 1999-06-22  Ian Lance Taylor  <ian@zembu.com>
2
3         From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
4         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
5         field to 0, not -1.
6         (ppc_elf_finish_dynamic_sections): Check for positive section
7         dynindx field, rather than comparing against -1.
8         (ppc_elf_relocate_section): Only return false if undefined_symbol
9         or reloc_overflow fail, not always upon encountering an error.
10
11 1999-06-22  Mark Mitchell  <mark@codesourcery.com>
12
13         * elflink.h (link_read_relocs): Explicitly cast external_relocs to
14         bfd_byte * before performing pointer arithmetic.
15
16 Tue Jun 22 13:06:25 1999  Jeffrey A Law  (law@cygnus.com)
17
18         * elf-hppa.h: New file.  Common stuff for elf32 and elf64 PA
19         support.
20         * elf32-hppa.c: Include elf-hppa.h.
21         (ARCH_SIZE): Define.
22         (elf_hppa_reloc_type_lookup): Delete.  Found in the common code
23         now.
24         (elf32_hppa_info_to_howto): Similarly.
25         (elf_hppa_howto_table): Similarly.
26         (elf_hppa_reloc_type_lookup): Similarly.
27         (hppa_elf_gen_reloc_type): Similarly.
28         * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
29
30 1999-06-22  Nick Clifton  <nickc@cygnus.com>
31
32         * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
33         handling R_V850_22_PCREL relocation.
34
35 1999-06-21  Ian Lance Taylor  <ian@zembu.com>
36
37         * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
38         type.
39
40 Sun Jun 20 14:13:57 1999  Richard Henderson  <rth@cygnus.com>
41
42         * section.c (_bfd_strip_section_from_output): Ignore sections
43         DISCARDed by the link script.
44
45 1999-06-19  Ian Lance Taylor  <ian@zembu.com>
46
47         * elflink.h (elf_link_remove_section_and_adjust_dynindices):
48         Remove unused local variable spp.
49
50         * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
51         the entry symbol is not set.
52
53 Fri Jun 18 04:24:57 1999  Richard Henderson  <rth@cygnus.com>
54
55         * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
56         GPDISP or LITUSE in a relocatable link.
57
58 Thu Jun 17 21:24:43 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
59
60         * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
61         * (alloc_dwarf1_func): Likewise.
62
63 Wed Jun 16 03:09:57 1999  Jeffrey A Law  (law@cygnus.com)
64
65         * libhppa.h: Fix various formatting errors.
66         (assemble_3); Rewrite using CATENATE.
67         (assemble_17): Fix various bugs.
68
69 1999-06-16  Nick Clifton  <nickc@cygnus.com>
70
71         * elf32-mcore.c (R_MCORE_RAW): Fix definition.
72
73 1999-06-15  Richard Henderson  <rth@cygnus.com>
74
75         * section.c (SEC_SHORT): Define.
76         * bfd-in2.h: Rebuild.
77
78 1999-06-13  Mark Mitchell  <mark@codesourcery.com>
79
80         * elflink.h (elf_link_remove_section_and_adjust_dynindices):
81         Remove abfd parameter.  Use _bfd_strip_section_from_output.
82         (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
83         
84         * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
85         * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
86         * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
87         function.
88         (bfd_elf_size_dynamic_sections): Use it.
89
90 1999-06-13  Alan Modra  <alan@spri.levels.unisa.edu.au>
91
92         * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
93         complain_overflow_bitfield to complain_overflow_signed.
94
95 1999-06-13  Mark Mitchell  <mark@codesourcery.com>
96
97         * elflink.h (elf_link_read_relocs_from_section): New function,
98         split out from ...
99         (elf_link_read_relocs): Here.  Use it for both relocation
100         sections.
101
102 1999-06-12  Mark Mitchell  <mark@codesourcery.com>
103
104         * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
105         asect->reloc_count is valid.
106
107 1999-06-12  Ian Lance Taylor  <ian@zembu.com>
108
109         * elf32-mips.c (mips_elf32_section_processing): Permit a
110         SHT_MIPS_REGINFO section to have a size of 0.
111
112 1999-06-12  David O'Brien  <obrien@freebsd.org>
113
114         * config.bfd (alpha*-*-freebsd*): New target.
115         (i[3456]86-*-freebsd*): Now defaults to ELF.
116
117 1999-06-11  Ian Lance Taylor  <ian@zembu.com>
118
119         * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
120         wrap if the relocation covers the high bit of an address.
121
122         * dwarf2.c (decode_line_info): Remove unused variable first_time.
123
124 1999-06-10  Jakub Jelinek  <jj@ultra.linux.cz>
125
126         * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
127         instead of R_SPARC_max.
128         (sparc64_elf_info_to_howto): Likewise.
129         * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
130         (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
131
132 1999-06-07  Richard Henderson  <rth@cygnus.com>
133
134         * section.c (_bfd_strip_section_from_output): Remove output
135         sections with no initial link_order.
136
137 1999-06-07  Nick Clifton  <nickc@cygnus.com>
138
139         * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
140
141 Mon Jun  7 11:49:43 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
142
143         * Makefile.am (SOURCE_HFILES): Add missing headers.
144         * Makefile.in: Regenerated.
145
146 1999-06-06  Mark Mitchell  <mark@codesourcery.com>
147
148         * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
149         the N32 ABI.
150
151 1999-06-04  Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
152
153         * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
154         range undefweak symbols.
155         * hash.c: Add missing comma after @xref{}
156         * linker.c: Likewise.
157
158 1999-06-04  Nick Clifton  <nickc@cygnus.com>
159
160         * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
161         if not defined.
162         * elf32-gen.c (ELF_MAXPAGESIZE): Define.
163         * elf32-i860.c (ELF_MAXPAGESIZE): Define.
164         * elf32-i960.c (ELF_MAXPAGESIZE): Define.
165         * elf64-gen.c (ELF_MAXPAGESIZE): Define.
166
167 1999-06-04  Ian Lance Taylor  <ian@zembu.com>
168
169         * Makefile.am: Rebuild dependencies.
170         (BFD32_BACKENDS): Add dwarf1.lo.
171         (BFD32_BACKENDS_CFILES): Add dwarf1.c.
172         * Makefile.in: Rebuild.
173
174 1999-06-04  Nick Clifton  <nickc@cygnus.com>
175
176         * Makefile.am: Add epoc-arm-pe target.
177         * Makefile.in: Regenerate.
178         * pe-arm.c: Only redefine interworking function names if they have
179         not already been redefined.
180         * pei-arm.c: Only redefine interworking function names if they have
181         not already been redefined.
182         * epoc-pe-arm.c: Redefine interworking function names to avoid a
183         name space clash.
184         * epoc-pei-arm.c: Redefine interworking function names to avoid a
185         name space clash.
186
187 1999-06-03  Nick Clifton  <nickc@cygnus.com>
188
189         * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
190
191 Fri Jun  4 10:05:11 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
192
193         * elf.c (elf_fake_sections): Undo change of 1999-05-10.
194
195 Fri Jun  4 03:10:49 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
196
197         * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
198         start / stop for recalculating of r_addend of R_SH_SWITCH*.
199
200 Fri Jun  4 02:53:13 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
201
202         * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
203         in other text sections.
204
205 Fri Jun  4 02:29:34 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
206
207         * libbfd.c (_bfd_generic_verify_endian_match): New function.
208         * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
209         * libbfd.h: Regenerate.
210         * coff-sh.c (sh_merge_private_data): Delete.
211         (coff_bfd_merge_private_bfd_data): Change to
212         _bfd_generic_verify_endian_match.
213         (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
214
215 1999-06-03  Ulrich Drepper  <drepper@cygnus.com>
216
217         * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
218
219 1999-06-03  Ian Lance Taylor  <ian@zembu.com>
220
221         * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
222         prototype.
223         (bfd_elf32_arm_process_before_allocation): Likewise.
224         * bfd-in2.h: Rebuild.
225
226 1999-06-03  David Mosberger  <davidm@hpl.hp.com>
227
228         * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
229         track of end_sequence markers.
230         (add_line_info): Add END_SEQUENCE arg.
231         (decode_line_info): Don't try to infer lo_pc and hi_pc from the
232         debug-line info---it doesn't work right if a compilation unit
233         consists of multiple discontiguous code-sequences.  It would be
234         worthwhile to optimize for the common case where a compilation
235         unit results in a contiguous set of code sequences, but this is
236         quite tricky to get right for arbitrary DWARF2 files.
237         (lookup_address_in_line_info_table): Don't use the last line entry
238         for a compilation unit for anything with an address higher than
239         this line entry.  Also, check for end_sequence markers to
240         correctly handle discontinuities.
241         (_bfd_dwarf2_find_nearest_line): When checking previously loaded
242         compilation units, check all compilation units with each->high==0
243         just like when reading compilation units.
244
245         * dwarf2.c (decode_line_info): Initialize table->files and
246         table->last_line to NULL to avoid segfaults due to random
247         values in these members.
248         (concat_filename): Check for out-of-range file number before
249         indexing filename table.  Segfaults suck.
250
251         * dwarf2.c (decode_line_info): Don't truncate address to least
252         significant 32 bits (breaks 64 bit targets).
253         (lookup_address_in_function_table): Ditto.
254         (comp_unit_contains_address): Ditto.
255
256 1999-06-02  Mark Mitchell  <Mark Mitchell <mark@codesourcery.com>>
257
258         * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
259         * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
260         (mips_elf64_howto_table_rela): Likewise.
261
262         * elfcode.h (elf_slurp_reloc_table_from_section): New function,
263         split out from ...
264         (elf_slurp_reloc_table): Here.  Use it to handle the case where a
265         single section has two associated relocation sections.
266
267 1999-06-02  Mark Salter  <msalter@cygnus.com>
268
269         * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
270         COFF_WITH_PE defined.
271
272 1999-06-02  Nick Clifton  <nickc@cygnus.com>
273
274         * pe-arm.c: Rename global arm interworking functions to avoid name
275         collision when all targets BFD is built.
276         * pei-arm.c: Ditto.
277
278 1999-05-31  Mark Mitchell  <mark@codesourcery.com>
279
280         * elf-bfd.h (elf_backend_data): Remove use_rela_p.  Add
281         may_use_rel_p, may_use_rela_p, default_use_rela_p.
282         (bfd_elf_section_data): Add use_rela_p.
283         * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
284         (_bfd_elf_new_section_hook): Likewise.
285         (elf_fake_sections): Use may_use_rela_p, etc., instead of
286         use_rela_p.
287         (_bfd_elf_copy_private_section_data): Copy use_rela_p.
288         * elfcode.h (write_relocs): Determine whether or not use rela
289         relocs based on the relocation section header.
290         * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
291         instead of use_rela_p.
292         * elfxx-target.h (elf_backend_may_use_relp): New macro.
293         (elf_backend_may_use_rela_p): Likewise.
294         (elf_backend_default_use_rela_p): Likewise.
295         (elfNN_bed): Use them.
296
297 Wed Jun  2 12:38:49 1999  Miodrag Vallat <miodrag@multimania.com>
298
299         * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
300
301 Tue Jun  1 17:57:58 1999  Mark P. Mitchell  <mitchell@n02.acl.lanl.gov>
302
303         * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
304         (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
305         (BFD_RELOC_MIPS_GOT_OFST): Likewise.
306         (BFD_RELOC_MIPS_GOT_DISP): Likewise.
307         * bfd-in2.h: Regenerated.
308         * libbfd.h: Likewise.
309         * elf32-mips.c (mips_info_to_howto_rela): New function.
310         (USE_REL): Adjust for new conventions.
311         (MINUS_ONE): New macro.
312         (elf_mips_howto_table): Add R_MIPS_SUB.
313         (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
314         and MIPS_GOT_DISP.
315         (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
316         .MIPS.content section.
317         (_bfd_mips_elf_fake_sections): Treat all sections that begin
318         with .MIPS.content as .MIPS.content sections.  Set
319         SHF_MNIPS_NOSTRIP for such section.
320         (elf_info_to_howto): Define to mips_info_to_howto_rela.
321         * elf64-mips.c (mips_r):  Add entries for MIPS_SUB, MIPS_GOT_PAGE,
322         MIPS_GOT_OFST, and MIPS_GOT_DISP.
323
324 Wed Jun  2 11:51:12 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
325
326         * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
327         variable.
328
329         * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
330         `else'.
331
332 1999-05-30  Philip Blundell  <philb@gnu.org>
333
334         * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
335         1993-03-25 (!!).  Take into account the bitmasks for the reloc so
336         the addend does not overflow into the rest of the word.
337
338 1999-05-29  Nick Clifton  <nickc@cygnus.com>
339
340         * bfd-in.h: Amend prototype for
341         bfd_elf32_arm_process_before_allocation .
342         * bfd-in.h: Regenerate.
343
344         * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
345         elements in a fixed sized array.
346         (ARM_ELF_ABI_VERSION): Define.
347         (ARM_ELF_OS_ABI_VERSION): Define.
348         (R_ARM_THM_ABS5): Fix rightshift and size.
349         (R_ARM_THM_PC22): Fix size.
350         (R_ARM_PLT32): Define Howto.
351         (find_howto): New function: Locate a howto based on a reloc
352         number.
353         (elf32_arm_info_to_howto): Use find_howto if necessary.
354         (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
355         bfd_reloc_code_real_type.
356         (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
357         and BFD_RELOC_VTABLE_ENTRY.
358         (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
359
360         * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
361         elements in a fixed sized array.
362         (ARM_ELF_ABI_VERSION): Define.
363         (ARM_ELF_OS_ABI_VERSION): Define.
364         (R_ARM_THM_ABS5): Fix rightshift and size.
365         (R_ARM_THM_PC22): Fix size.
366         (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
367         (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
368         bfd_reloc_code_real_type.
369
370         * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
371         no_pipeline_knowledge.
372         (elf32_arm_link_hash_create): Initialise new field to zero.
373         (bfd_elf32_arm_process_before_allocation): Add new paraemter:
374         no_pipeline_knowledge.  Use this parameter to initialise the field
375         in the globals data structure.
376         (elf32_arm_final_link_relocate): Only add in pipeline offset if
377         no_pipeline_knowledge is false and the binary is from an old
378         toolchain.
379         (elf32_arm_merge_private_data): Generate an error if an attempt is
380         made to linl together big endian and little endian code.
381         (elf32_arm_post_process_headers): New function:  Initialise the
382         EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
383         header.
384         (elf_backend_post_process_headers): Define.
385
386 1999-05-28  Nick Clifton  <nickc@cygnus.com>
387
388         * elf-bfd.h (struct elf_backend_data): Add new field:
389         elf_backend_post_process_headers.
390
391         * elfxx-target.h (elf_backend_post_process_headers): Define to
392         NULL if not already defined.
393         (elfNN_bed): Initialise elf_backend_post_process_headers field.
394
395         * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
396         to zero.
397         (_bfd_elf_compute_section_file_positions): Call
398         elf_backend_post_process_headers if defined.
399
400 1999-05-28  Ian Lance Taylor  <ian@zembu.com>
401
402         * configure.in: Check whether getuid and getgid exist.
403         * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
404         HAVE_GETGID are not defined, respectively.
405         (bfd_write_armap): Don't special case on _WIN32 for getuid and
406         getgid.
407         * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
408         * configure, config.in: Rebuild.
409
410 1999-05-28  Martin Dorey  <mdorey@madge.com>
411
412         * elf32-i960.c: New file.
413         * elf.c (prep_headers): Handle bfd_arch_i960.
414         * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
415         * config.bfd (i960-*-elf*): New target.
416         * configure.in (bfd_elf32_i960_vec): New target vector.
417         * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
418         (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
419         * Makefile.in, aclocal.m4, configure: Rebuild.
420
421 1999-05-27  Nick Clifton  <nickc@cygnus.com>
422
423         * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
424         R_ARM_PLT32.
425         (find_howto): New function: Find entries in the
426         elf32_arm_howto_table.
427         (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
428         computed simply.
429         (elf32_arm_reloc_type_lookup): Add lookup for
430         BFD_RELOC_ARM_PLT32.
431
432 1999-05-25  Philip Blundell  <pb@nexus.co.uk>
433
434         * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
435         (elf32_arm_link_hash_table_create): Use above function as the
436         constructor for hash table entries.
437         (elf32_arm_relocate_section): Avoid crash when there is no output
438         section.
439         (elf32_arm_final_link_relocate): New parameter h.
440         (elf32_arm_relocate_section): Pass symbol hash entry to above
441         routine.
442         (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
443         comments.
444
445 1999-05-25  Catherine Moore  <clm@cygnus.com>
446
447         * coff-arm.c (coff_arm_relocate_section): Don't emit
448         base file entries for pc-relative values.
449
450 1999-05-25  DJ Delorie  <dj@cygnus.com>
451
452         * peicode.h (coff_swap_sym_in): When we create the actual section
453         to reflect the not-there section C_SECTION symbols refer to,
454         change the symbol class to C_STAT as the section is now really
455         there.
456
457 1999-05-24  Philip Blundell  <pb@nexus.co.uk>
458
459         * elf32-arm.h (elf32_arm_relocate_section): Undo change of
460         1999-03-25.
461
462 Mon May 17 13:35:35 1999  Stan Cox  <scox@cygnus.com>
463
464         * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
465         F_PIC_INT to F_PIC.
466         * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
467         F_ARM_3M labels.  Changed F_PIC_INT to F_PIC.
468
469 1999-05-16  Nick Clifton  <nickc@cygnus.com>
470
471         * coff-mcore.c (in_reloc_p): Reinstate.
472
473 1999-05-15  Nick Clifton  <nickc@cygnus.com>
474
475         * reloc.c (BFD_RELOC_MCORE_RVA): Define.
476         * bfd-in2.h: Regenerate.
477         * coff-mcore.c (in_reloc_p): Remove defintion.
478         (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
479         (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
480         IMAGE_REL_MCORE_RVA.
481         (coff_mcore_rtype_to_howto): Add special processing for
482         IMAGE_REL_MCORE_RVA.
483         (coff_mcore_relocate_section): Add support for
484         IMAGE_REL_MCORE_RVA.
485         * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
486         (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
487         R_MCORE_RELATIVE.
488         (mcore_elf_relocate_section): Delete redundant case labels.
489
490 Fri May 14 10:59:55 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
491
492         * elf32-arm.h (elf32_arm_relocate_section): Fix operator
493         precedence between bit-and and comparison.
494
495 Thu May 13 09:45:23 1999  Joel Sherrill (joel@OARcorp.com)
496
497         * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
498         list of target formats (targ_selvecs).
499         (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
500         (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
501
502 1999-05-10  DJ Delorie  <dj@cygnus.com>
503
504         * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
505         reasonable mode until "ar x" is smart enough to skip it (fixes
506         gcc/libgcc.a builds on mips-ecoff targets
507
508         * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
509         to work.  Hack to support MS import libraries, which use different
510         COMDAT types than GNU.
511         (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
512         to implied zero-length sections (see peicode below)
513         * coffgen.c (coff_get_normalized_symtab): Properly read long MS
514         filename symbols, which use one *or more* auxents.
515         * coffswap.h (coff_swap_aux_in): ditto
516         * peicode.h (coff_swap_sym_in): Build the implied zero-length
517         sections
518
519 Tue May 11 15:51:58 1999  Jeffrey A Law  (law@cygnus.com)
520
521         * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
522         for all relocations.
523
524 1999-05-10  Catherine Moore  <clm@cygnus.com>
525
526         * bfd-in.h (bfd_arm_allocate_interworking_sections):  Static
527         if COFF_IMAGE_WITH_PE.
528         (bfd_arm_process_before_allocation): Likewise.
529         (bfd_arm_get_bfd_for_interworking): Likewise.
530         * coff-arm.c: Likewise.
531         * bfd-in2.h: Regenerate.
532         * configure.in (armpe_little_vec): Remove coff-arm.lo.
533         (armpe_big_vec): Likewise.
534         * configure: Rebuild.
535
536 1999-05-10  Nick Clifton  <nickc@cygnus.com>
537
538         * elf.c (elf_fake_sections): Check for .rel. as start of rel
539         section, not just .rel.  Same for .rela.
540
541 1999-05-07  Nick Clifton  <nickc@cygnus.com>
542
543         * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
544         endianism with an error message.
545
546 Thu May  6 17:09:09 1999  Fred Fish  <fnf@be.com>
547
548         * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
549         assignment from "unsigned char *" to "char *".
550         (decode_line_info): Likewise for dwarf_line_buffer assignment.
551
552 1999-05-05  Catherine Moore  <clm@cygnus.com>
553
554         * coff-arm.c (coff_arm_relocate_section):  Add one to
555         address of ARM_RVA32 thumb functions.
556
557 1999-05-05  Catherine Moore  <clm@cygnus.com>
558
559         * elf32-m68k.c (elf32_m68k_set_private_flags): New.
560         (elf32_m68k_copy_private_bfd_data): New.
561         (elf32_m68k_merge_private_bfd_data): New.
562         (elf32_m68k_print_private_bfd_data): New.
563         (CPU32_FLAG): Define.
564         (PLT_CPU32_ENTRY_SIZE): Define.
565         (elf_cpu32_plt0_entry): Declare.
566         (elf_cpu32_plt_entry): Declare.
567         (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
568         (elf_m68k_finish_dynamic_symbol): Likewise.
569         (elf_m68k_finish_dynamic_sections): Likewise.
570         (elf_backend_plt_header_size): Remove definition.
571         (bfd_elf32_bfd_copy_private_bfd_data): Define.
572         (bfd_elf32_bfd_merge_private_bfd_data): Define.
573         (bfd_elf32_bfd_set_private_flags): Define.
574         (bfd_elf32_bfd_print_private_bfd_data): Define.
575
576 Mon May  3 09:24:49 1999  Jeffrey A Law  (law@cygnus.com)
577
578         * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
579         and R_LONG_PCREL_MODE.
580
581 1999-04-29  Nick Clifton  <nickc@cygnus.com>
582
583         * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
584
585 Fri Apr 28 16:36:19 1999  Stan Cox  <scox@cygnus.com>
586
587         * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
588         in relocation calculation.
589
590 1999-04-26  Tom Tromey  <tromey@cygnus.com>
591
592         * aclocal.m4, configure: Updated for new version of libtool.
593
594 1999-04-21  Nick Clifton  <nickc@cygnus.com>
595
596         * coff-mcore.c: Add support for mcore relocs.
597
598 1999-04-20  Gavin Romig-Koch  <gavin@cygnus.com>
599
600         * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
601         incorrect use EF_MIPS_xxBITPTRS.
602
603 1999-04-18  Ian Lance Taylor  <ian@zembu.com>
604
605         * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
606         variable insn.
607
608         * bfd-in2.h: Rebuild.
609         * libbfd.h: Rebuild.
610
611 Sat Apr 17 20:55:15 1999  Catherine Moore  <clm@cygnus.com>
612
613         * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
614         (coff_arm_relocate_section):  Add ARM26D transform.  Only
615         change to ARM26D for relocateable links.
616
617 1999-04-16  Gavin Romig-Koch  <gavin@cygnus.com>
618
619         * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
620         (bfd_elf32_bfd_print_private_bfd_data): New.
621
622 1999-04-15  Doug Evans  <devans@casey.cygnus.com>
623
624         * elf32-arm.h (elf32_arm_final_link_relocate):  For R_ARM_THM_ABS5,
625         refetch addend if USE_REL, add many comments regarding current state.
626         For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
627         * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
628         size and rightshift.  For R_ARM_THM_PC22, fix bitsize.
629         * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
630
631 Wed Apr 14 14:33:08 1999  Richard Henderson  <rth@cygnus.com>
632
633         * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
634         * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
635
636 1999-04-13  David Mosberger  <davidm@hpl.hp.com>
637
638         * dwarf2.c (decode_line_info): Don't truncate address to least
639         significant 32 bits (breaks 64 bit targets).
640         (lookup_address_in_function_table): Ditto.
641         (comp_unit_contains_address): Ditto.
642
643 Tue Apr 13 21:27:19 1999  Catherine Moore  <clm@cygnus.com>
644
645         * coff-arm.c (arm_emit_base_file_entry): New routine.
646         (A2T3_OFFSET): Define.
647         (T2A3_OFFSET): Define.
648         (coff_arm_relocate_section):  Emit base file entries for interworking
649         stubs.
650
651 1999-04-13  Philip Blundell  <philb@gnu.org>
652
653         * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
654         relocs 17 through 19.
655
656 Sun Apr 11 01:25:17 1999  Richard Henderson  <rth@cygnus.com>
657
658         * elfcode.h: Remove fnmatch.h.
659         * elflink.h (elf_link_assign_sym_version): Call back to ld
660         instead of calling fnmatch.
661
662         * config.bfd (i?86-*-beoself): Include pe vecs.
663
664 Sun Apr 11 01:14:06 1999  Richard Henderson  <rth@cygnus.com>
665
666         * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
667         to go missing.
668
669 1999-04-10  Richard Henderson  <rth@cygnus.com>
670
671         * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
672         when trying to resolve dynamic symbol references.
673         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
674         * elf32-mips.c (mips_elf_relocate_section): Likewise.
675         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
676         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
677         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
678         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
679         * elflink.h (elf_link_output_extsym): Likewise.
680
681 Sat Apr 10 15:12:09 1999  Richard Henderson  <rth@cygnus.com>
682
683         * section.c (_bfd_strip_section_from_output): New function moved from
684         * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
685         * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
686         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
687         * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
688         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
689         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
690         * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
691         * bfd-in2.h: Update.
692
693 1999-04-09  Ian Lance Taylor  <ian@zembu.com>
694
695         * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
696
697 1999-04-08  Nick Clifton  <nickc@cygnus.com>
698
699         * coff-mcore.c: New File: Support for mcore-pe targets.
700         * cpu-mcore.c: New File: Support for mcore targets.
701         * elf32-mcore.c: New File: Support for mcore-elf target.
702         * pe-mcore.c: New File: Definitions for mcore-pe target.
703         * pei-mcore.c: New File: Definitions for mcore-pei target.
704         * Makefile.am: Add support for MCore targets.
705         * Makefile.in: Regenerate.
706         * config.bfd: Add support for MCore targets.
707         * configure.in: Add support for MCore targets.
708         * configure: Regenerate.
709         * archures.c: Add support for MCore architecture.
710         * bfd-in2.h: Regenerate.
711         * coffcode.h: Add support for mcore-pe targets.
712         * elf.c: Add support for mcore-elf target.
713         * reloc.c: Add support for MCore relocs.
714         * targets.c: Add support for MCore targets.
715
716 1999-04-07  Nick Clifton  <nickc@cygnus.com>
717
718         * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
719         R_ARM_XPC25 and R_ARM_THM_XPC22.
720         (elf32_arm_reloc_map): Remove redundant entries.
721
722 1999-04-06  Ian Lance Taylor  <ian@zembu.com>
723
724         * sysdep.h (LC_MESSAGES): Never define.
725
726 1999-04-06  Chris Torek  <torek@bsdi.com>
727
728         * reloc.c (bfd_check_overflow): Add addrsize parameter.  Change
729         all callers.  Rewrite completely.
730         (_bfd_relocate_contents): Rewrite overflow checking.
731         * bfd-in2.h: Rebuild.
732
733 1999-04-05  Ian Lance Taylor  <ian@zembu.com>
734
735         From Gabriel Paubert <paubert@iram.es>:
736         * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
737         R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
738         Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
739         have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
740         * ppcboot.c (ppcboot_vec): Use little endian routines for
741         headers.
742
743         * elf.c (elfcore_strndup): Only define if it will be used.
744         * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
745         and irelend.
746         (ppc_elf_check_relocs): Remove unused local i.
747         (ppc_elf_gc_mark_hook): Add default case to switch.
748
749         From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
750         * srec.c (srec_scan): Accept \r in symbol definitions.
751         (srec_object_p): Set HAS_SYMS if we saw any symbols.
752         (symbolsrec_object_p): Likewise.
753
754 1999-04-04  Don Bowman <don@pixsci.com>
755
756         * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
757
758 1999-04-04  Ian Lance Taylor  <ian@zembu.com>
759
760         * dwarf1.c (parse_line_table): Remove unused locals last_pc and
761         last_line.
762         * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
763         * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
764         switch.
765         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
766         local i.
767         * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
768         local val.
769
770 1999-03-31  Nick Clifton  <nickc@cygnus.com>
771
772         * config.bfd: Add support for arm-epoc-pe target.
773         * configure.in: Add support for arm-epoc-pe target.
774         * configure: Regenerate.
775         * targets.c: Add support for arm-epoc-pe target.
776         * coff-arm.c: Allow header files to override definition of
777         TARGET_UNDERSCORE and USER_LABEL_PREFIX.
778         * pe-arm.h: Allow previous header files to override definition of
779         TARGET_LITTLE_SYM and TARGET_BIG_SYM.
780         * pei-arm.h: Allow previous header files to override definition of
781         TARGET_LITTLE_SYM and TARGET_BIG_SYM.
782         * epoc-pe-arm.c: New file.  Support arm-epoc-pe target.
783         * epoc-pei-arm.c: New file.  Support arm-epoc-pei target.
784
785 1999-03-30  Nick Clifton  <nickc@cygnus.com>
786
787         * elf.c (elf_map_symbols): Handle the case where section
788         symbols are generated for content-less sections which are
789         not mapped to the output file.
790
791         * linker.c: Replace direct references to fields in BFD structure
792         with accessor macros.
793
794         * elflink.h: Replace direct references to fields in BFD structure
795         with accessor macros.
796
797 1999-03-25  Philip Blundell  <pb@nexus.co.uk>
798
799         * config.bfd: Eliminate redundancy in checks for Linux/ARM.
800
801         * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
802         account when adjusting section symbols during a partial link.
803
804 1999-03-24  Nick Clifton  <nickc@cygnus.com>
805
806         * coff-sparc.c (struct coff_reloc_map): Change type of field
807           'bfd_reloc_val' to bfd_reloc_code_real_type.
808         * elf-m10200.c (struct mn10200_reloc_map): Ditto.
809         * elf-m10300.c (struct mn10300_reloc_map): Ditto.
810         * elf32-arc.c (struct arc_reloc_map): Ditto.
811         * elf32-d10v.c (struct d10v_reloc_map): Ditto.
812         * elf32-d30v.c (struct d30v_reloc_map): Ditto.
813         * elf32-fr30.c (struct fr30_reloc_map): Ditto.
814         * elf32-m32r.c (struct m32r_reloc_map): Ditto.
815         * elf32-sh.c (struct elf_reloc_map): Ditto.
816         * elf32-sparc.c (struct elf_reloc_map): Ditto.
817         * elf32-v850.c (struct v850_reloc_map): Ditto.
818         * elf64-sparc.c (struct elf_reloc_map): Ditto.
819         * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
820         * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
821
822 1999-03-17  Martin Hunt  <hunt@cygnus.com>
823
824         * syms.c (_bfd_stab_section_find_nearest_line): Changed this
825         function so source-level assembly works.  If multiple N_SOs
826         are seen without and N_FUNs, create an indextable entry with
827         a NULL function name.
828
829 1999-03-16  Gavin Romig-Koch  <gavin@cygnus.com>
830
831         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
832         of certian similar cpus.
833
834 1999-03-16  Gavin Romig-Koch  <gavin@cygnus.com>
835
836         * elf32-mips.c (_bfd_mips_elf_final_write_processing):
837         Add the 5000.  Change the architecture for the 5400 to mips4.
838         (elf_mips_mach): Add r5000.
839
840 1999-03-11  Doug Evans  <devans@casey.cygnus.com>
841
842         * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
843
844 1999-03-11  Nick Clifton  <nickc@cygnus.com>
845
846         * binary.c (binary_set_section_contents): Generate warning about
847         huge file offsets for any section that will occupy file space, not
848         just those that are loadable.
849
850 1999-02-24  Jim Blandy  <jimb@zwingli.cygnus.com>
851
852         * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
853
854 1999-02-22  Jim Lemke  <jlemke@cygnus.com>
855
856         * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
857
858 Mon Feb 22 18:26:51 1999  Ian Lance Taylor  <ian@cygnus.com>
859
860         * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
861         * elflink.h: Revert all changes since Feb 16.  Instead:
862         (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
863         appropriate.  Copy it to version symbols.
864         (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
865         symbols if appropriate.
866         (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
867         symbol if appropriate.
868         (elf_link_output_extsym): If symbol is marked as undefined, and
869         has no nonweak references, mark it as weak undefined.
870
871 Fri Feb 19 16:01:12 1999  Ian Lance Taylor  <ian@cygnus.com>
872
873         * elflink.h (elf_merge_symbol): When overriding a dynamic
874         definition with a weak undefined symbol, set NEEDS_PLT if it is a
875         function.
876         (elf_link_add_object_symbols): Don't copy the other field if we
877         are overridding.
878
879 Thu Feb 18 18:07:43 1999  Ian Lance Taylor  <ian@cygnus.com>
880
881         * elflink.h (elf_merge_symbol): Do not merge any symbol from a
882         shared object with a weak undefined symbol.
883
884 1999-02-18  Nick Clifton  <nickc@cygnus.com>
885
886         * elfarm-nabi.c: Set partial_inplace back to false.
887
888 1999-02-17  Nick Clifton  <nickc@cygnus.com>
889
890         * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
891         (USER_LABEL_PREFIX): Set to "_".
892
893         The following patches are from: Scott Bambrough
894         <scottb@corelcomputer.com>
895
896         * libaout.h (M_ARM6_NETBSD): Set to 143.
897
898         * reloc.c: Add ARM PIC relocs:   BFD_RELOC_ARM_GOT12,
899         BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
900         BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
901         BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
902         * bfd-in2.h: Regenerate.
903
904         * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
905         'true' as REL relocs are now being used.  Add new PIC relocs:
906         R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
907         R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
908
909         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
910         of targets.
911         (elf32_arm_final_link_relocate): Change parameters so that entire
912         reloc is passed.  Add support for PIC relocs.
913         (elf32_arm_relocate_section): Pass entire reloc to
914         elf32_arm_final_link_relocate.
915         (elf32_arm_check_relocs): Handle new PIC relocs.
916         (elf32_arm_adjust_dynamic_symbol): New function.
917         (elf32_arm_size_dynamic_sections): New function.
918         (elf32_arm_discard_copies): New function.
919         (elf32_arm_finish_dynamic_symbol): New function.
920         (elf32_arm_finish_dynamic_sections): New function.
921         (ELF_MAXPAGE_SIZE): Define.
922         (bfd_elf32_bfd_reloc_type_lookup): Define.
923         (elf_backend_relocate_section): Define.
924         (elf_backend_adjust_dynamic_symbol): Define.
925         (elf_backend_create_dynamic_sections): Define.
926         (elf_backend_finish_dynamic_symbol): Define.
927         (elf_backend_finish_dynamic_sections): Define.
928         (elf_backend_size_dynamic_sections): Define.
929         (elf_backend_plt_readonly): Define.
930         (elf_backend_want_got_plt): Define.
931         (elf_backend_want_plt_sym): Define.
932
933 Wed Feb 17 12:02:26 1999  Stan Cox  <scox@cygnus.com>
934
935         * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
936         sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
937         (_bfd_mips_elf_fake_sections): Likewise.
938
939 Wed Feb 17 12:07:23 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
940
941         * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
942         bfd_elf32_arm_get_bfd_for_interworking,
943         bfd_elf32_arm_process_before_allocation): Define to avoid clash
944         with elfarm-nabi.c.
945
946         * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
947         (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
948         elf32_arm_find_nearest_line): Make them static.
949
950 Tue Feb 16 22:44:37 1999  Ian Lance Taylor  <ian@cygnus.com>
951
952         * elflink.h (elf_merge_symbol): Add pflags parameter.  Change all
953         callers.  Do not merge a definition from a shared object with a
954         weak undefined symbol.
955         (elf_link_add_object_symbols): Do not change the symbol type or
956         size if the old symbol overrides the new one.
957
958 1999-02-08  Nick Clifton  <nickc@cygnus.com>
959
960         * config.bfd: Add support for strongarm target.
961
962 Mon Feb  8 11:18:14 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
963
964         * elf32-m68k.c (reloc_map): Use the correct types for the struct
965         fields instead of unsigned char.
966
967 Fri Feb  5 00:22:36 1999  Ian Lance Taylor  <ian@cygnus.com>
968
969         * Makefile.am: Rebuild dependencies.
970         * Makefile.in: Rebuild.
971
972 Thu Feb  4 22:30:13 1999  Ian Lance Taylor  <ian@cygnus.com>
973
974         * configure.in: Change AC_PREREQ to 2.13.  Remove AM_CYGWIN32.
975         Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
976         AC_PROG_INSTALL.  Add comments to uses of AC_DEFINE.
977         * acinclude.m4: Add comments to uses of AC_DEFINE.
978         * acconfig.h: Remove.
979         * configure: Rebuild with current autoconf/automake.
980         * aclocal.m4: Likewise.
981         * config.in: Likewise.
982         * Makefile.in: Likewise.
983
984 1999-02-04  DJ Delorie  <dj@cygnus.com>
985
986         * libbfd.c (real_read): don't call fread for zero bytes.  This
987         covers up a bug (or misuse of bfd) that's exposed by Solaris.
988
989 Thu Feb  4 12:38:10 1999  Stan Cox  <scox@cygnus.com>
990
991         * elf32-mips.c (mips_elf_relocate_section): Insure that the target
992         of a jump is in the current 256 MB region.
993
994 Thu Feb  4 12:15:38 1999  Ian Lance Taylor  <ian@cygnus.com>
995
996         * format.c (bfd_check_format_matches): Change last patch to only
997         take effect for the binary target.
998
999 Wed Feb  3 19:40:12 1999  Ian Lance Taylor  <ian@cygnus.com>
1000
1001         * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
1002
1003 Wed Feb  3 15:02:44 1999  Catherine Moore  <clm@cygnus.com>
1004
1005         * elf32-fr30.c (fr30_elf_check_relocs):  New routine.
1006
1007 Tue Feb  2 21:38:28 1999  Ian Lance Taylor  <ian@cygnus.com>
1008
1009         * format.c (bfd_check_format_matches): If the target was
1010         previously specified, don't check other targets when checking for
1011         an archive file.
1012
1013 Tue Feb  2 18:16:43 1999  Catherine Moore  <clm@cygnus.com>
1014
1015         * elf32-arm.h (elf32_arm_reloc_map):  Removed.
1016         (elf32_arm_reloc_type_lookup):  Removed
1017         * elfarm-nabi.c (elf32_arm_reloc_map):  New.
1018         (elf32_arm_reloc_type_lookup):  New.
1019         * elfarm-oabi.c (elf32_arm_reloc_map):  New.
1020         (elf32_arm_reloc_type_lookup):  New.
1021
1022 Mon Feb  1 19:49:21 1999  Catherine Moore  <clm@cygnus.com>
1023
1024         * elfarm-nabi.c:  Renamed from elf32-arm-newabi.c.
1025         * elfarm-oabi.c:  Renamed from elf32-arm-oldabi.c
1026         * Makefile.am:  Use new files.
1027         * Makefile.in:  Regenerate.
1028         * configure.in:  Use new files.
1029         * configure:  Regenerate.
1030
1031 1999-02-01  Nick Clifton  <nickc@cygnus.com>
1032
1033         * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
1034         (fr30_elf_gc_sweep_hook): New function.
1035         (elf_backend_can_gc_sections): Define.
1036
1037 Mon Feb  1 12:21:47 1999  Catherine Moore  <clm@cygnus.com>
1038
1039         * targets.c (bfd_target_vector):  Add bfd_elf32_littlearm_oabi_vec
1040         and bfd_elf32_bigarm_oabi_vec.
1041
1042 Mon Feb  1 11:46:31 1999  Catherine Moore  <clm@cygnus.com>
1043
1044         * Makefile.am (elf32-arm-oldabi.lo):  New.
1045         (elf32-arm-newabi.lo):  New.
1046         * Makefile.in:  Regenerate.
1047         * config.bfd (thumb-*-elf):  Remove definition of targ_underscore.
1048         (arm-*-elf):  Likewise.
1049         (arm-*-oabi):  New.
1050         (thumb-*-oabi):  New.
1051         * configure:  Regenerate.
1052         * configure.in (bfd_elf32_littlearm_oabi_vec):  New.
1053         (bfd_elf32_bigarm_oabi_vec):  New.
1054         * elf32-arm-newabi.c:  New.
1055         * elf32-arm-oldabi.c:  New.
1056         * elf32-arm.c:  Removed.
1057         * elf32-arm.h:  New.
1058
1059 Mon Feb  1 11:52:12 1999  Frank Ch. Eigler  <fche@cygnus.com>
1060
1061         * binary.c (binary_set_section_contents): Omit warnings for
1062         unloadable sections.
1063
1064 1999-01-31  Michael Meissner  <meissner@cygnus.com>
1065
1066         * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
1067         powerpc{,le}-*-eabi.
1068
1069 1999-01-29  Nick Clifton  <nickc@cygnus.com>
1070
1071         * dwarf2.c (read_unsigned_leb128): Remove unused variables.
1072         * dwarf2.c (read_signed_leb128): Remove unused variables.
1073
1074 Fri Jan 29 00:47:21 1999  H.J. Lu  <hjl@gnu.org>
1075
1076         * elf.c (assign_file_positions_for_segments): Only adjust
1077         p_align when needed.
1078
1079 Thu Jan 28 20:05:22 1999  Ian Lance Taylor  <ian@cygnus.com>
1080
1081         * binary.c (binary_set_section_contents): Don't return early for a
1082         non-loadable section, in case the first section is non-loadable.
1083         Don't set the low lma for a SEC_NEVER_LOAD section.  From Maciej
1084         W. Rozycki <macro@ds2.pg.gda.pl>.
1085
1086 1999-01-28  Nick Clifton  <nickc@cygnus.com>
1087
1088         * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
1089         R_FR30_GNU_VTENTRY relocs.
1090
1091 Thu Jan 28 11:08:16 1999  Catherine Moore  <clm@cygnus.com>
1092
1093        * elflink.h (elf_link_output_sym):  Zero syms which are
1094        part of sections which have been excluded.
1095
1096 Wed Jan 27 13:35:35 1999  Stan Cox  <scox@cygnus.com>
1097
1098         * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
1099         to F_PIC_INT.
1100         * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
1101         F_ARM_3M labels.  Changed F_PIC to F_PIC_INT.
1102
1103 1999-01-27  Nick Clifton  <nickc@cygnus.com>
1104
1105         * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
1106         relocation.
1107         (fr30_final_link_relocate): Use computed value as result of
1108         relocation.
1109
1110 1999-01-26  Frank Ch. Eigler  <fche@cygnus.com>
1111
1112         * binary.c (binary_set_section_contents): Emit warning for
1113         huge file offsets due to widely-dispersed section LMAs.
1114
1115 Mon Jan 18 03:35:35 1999  Ian Lance Taylor  <ian@cygnus.com>
1116
1117         * elf.c (assign_file_positions_for_segments): If not D_PAGED,
1118         align first section to largest section alignment, not first
1119         section alignment.
1120
1121 1999-01-04  Jason Molenda  (jsm@bugshack.cygnus.com)
1122
1123         * configure.in: Require autoconf 2.12.1 or higher.
1124
1125 Tue Dec 22 15:21:41 1998  Catherine Moore  <clm@cygnus.com>
1126
1127         * archures.c (bfd_mach_i386_i386_intel_syntax):  Define.
1128         * bfd-in2.h:  Likewise.
1129         * cpu-i386.c (bfd_i386_arch_intel_syntax):  New.
1130
1131 1998-12-16  Gavin Romig-Koch  <gavin@cygnus.com>
1132
1133         * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
1134         * cpu-mips.c: Add support for and independent 4111.
1135         * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
1136         (_bfd_mips_elf_final_write_processing):
1137         bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
1138
1139 1998-12-15  Gavin Romig-Koch  <gavin@cygnus.com>
1140
1141         * elf32-mips.c (elf_mips_abi_name): New.
1142         (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
1143
1144 1998-12-12  Gavin Romig-Koch  <gavin@cygnus.com>
1145
1146         * elf32-mips.c (_bfd_mips_elf_final_write_processing):
1147         Handle bfd_mach_mips4300.
1148
1149 1998-12-11  Ulrich Drepper  <drepper@cygnus.com>
1150
1151         * elf32-i386.c: Remove leaked development code from patch
1152         1998-12-10 by Richard Henderson.
1153
1154 1998-12-10  Richard Henderson  <rth@cygnus.com>
1155
1156         * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
1157         in debug sections for symbol defined externally.
1158
1159 Thu Dec 10 10:58:38 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1160
1161         * targets.c (bfd_target_vector): Remove duplicate entry for
1162         tekhex_vec.
1163
1164 1998-12-09  Nick Clifton  <nickc@cygnus.com>
1165
1166         * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
1167         since we are using RELAs.
1168
1169 Tue Dec  8 22:15:48 1998  Ian Lance Taylor  <ian@cygnus.com>
1170
1171         SCO Open Server Release 5 core file support, from Jouke Numan
1172         <jnuman@hiscom.nl>:
1173         * sco5-core.c: New file.
1174         * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
1175         (sco5-core.lo): Define SCO5_CORE in COREFLAG.
1176         * Makefile.am: Rebuild dependencies.
1177         (OPTIONAL_BACKENDS): Add sco5-core.lo.
1178         (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
1179         * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
1180         * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
1181         * bfd-in2.h, configure, Makefile.in: Rebuild.
1182
1183 Tue Dec  8 19:38:42 1998  Mark Klein  <mklein@dis.com>
1184
1185         * config.bfd (hppa*-*-mpeix*): New target.
1186         * configure.in: Add AC_HEADER_DIRENT.
1187         (hppa*-*-mpeix*): New target.
1188         * configure.host (hppa*-*-mpeix*): New host.
1189         * hpux-core.c: Check HOST_HPPAMPEIX.  Use HAVE_DIRENT_H and
1190         friends rather than just including <sys/dir.h>.
1191         * som.h (struct som_symbol): Add hppa_priv_level and apto
1192         tc_data.  Change all users.
1193         (struct somdata): Add comp_unit field.
1194         (obj_som_compilation_unit): Define.
1195         (bfd_som_attach_compilation_unix): Declare.
1196         * som.c: Check HOST_HPPAMPEIX.
1197         (struct som_misc_symbol_info): Add new field priv_level.
1198         (som_object_setup): Add current_offset parameter.  Change all
1199         callers.
1200         (setup_sections): Likewise.
1201         (som_object_p): For EXECLIBMAGIC, read the lst header.
1202         (som_write_symbol_strings): Add compilation_unit parameter.
1203         Change all callers.
1204         (som_finish_writing): Write out compilation_unit.
1205         (som_bfd_derive_misc_symbol_info): Set priv_level.
1206         (som_build_and_write_symbol_table): Set xleast field to 3.
1207         (som_slurp_symbol_table): Set symbol priv_level.
1208         (bfd_som_attach_compilation_unit): New function.
1209         (som_bfd_ar_write_symbol_stuff): Set xleast field to 3.  Set
1210         priv_level into symbol_value.
1211         * configure, config.in: Rebuild.
1212
1213 Tue Dec  8 16:21:35 1998  Ian Lance Taylor  <ian@cygnus.com>
1214
1215         * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
1216         warning function to call _bfd_error_handler instead.
1217
1218         * libbfd.c (COERCE32): Cast through unsigned long and long to
1219         avoid bug in old version of gcc.
1220
1221         * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
1222         (elf_backend_additional_program_headers): Don't define.
1223
1224 1998-12-08  Nick Clifton  <nickc@cygnus.com>
1225
1226         * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
1227         relocations to include offset of 2 included in the insns, and the
1228         offset of the relocs within the section.
1229
1230 Wed Dec  2 15:03:59 1998  David Taylor  <taylor@texas.cygnus.com>
1231
1232         The following changes were made by David Taylor
1233         <taylor@texas.cygnus.com>, Edith Epstein
1234         <eepstein@sophia.cygnus.com>, Jim Blandy
1235         <jimb@zwingli.cygnus.com>, and Elena Zannoni
1236         <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
1237         changes originally made by HP; HP did not create ChangeLog
1238         entries.
1239
1240         * aclocal.m4, configure, Makefile.in: Rebuilt using latest
1241         automake macro library.
1242
1243         * hpux-core.c (hpux_core_core_file_p): this function now
1244         understands HPUX 10.30 thread info. Yes, the thread stacks can be
1245         found in the corefile! Also, in hpux_core_core_file_p, if we
1246         encounter a section with an unknown type, don't punt.  Instead,
1247         just skip it.  Also, count the number of sections of known type
1248         that we encounter.  If we encounter at least one good one, then
1249         we'll declare that the file is a core file.  If we encounter any
1250         unknown ones but some known ones, then we'll issue a warning (but
1251         still declare it to be a core file). Also, correctly decide when a
1252         file is not a core.
1253         (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
1254         (CORE_ANON_SHMEM): define if not defined.
1255         (hpux_core_struct): add members lwpid and user_tid.
1256         (core_kernel_thread_id, core_user_thread_id): new macros.
1257         (make_bfd_asection): use bfd_alloc to allocate room for a copy of
1258         the name before storing it in the bfd.
1259         (hpux_core_core_file_p): handle threads.
1260
1261         * libhppa.h (GET_FIELD): protect against redefinition.
1262         (HPPA_WIDE): define.
1263         (GET_FIELD): define.
1264         (GET_BIT): define.
1265         (MASK): define.
1266         (CATENATE): define.
1267         (ELEVEN): define.
1268         (sign_extend): redefine.
1269         (assemble_6): define.
1270         (assemble_12): rewrite.
1271         (assemble_16): define.
1272         (assemble_16a): define.
1273         (assemble_17): rewrite.
1274         (assemble_22): define.
1275
1276 1998-12-07  Nick Clifton  <nickc@cygnus.com>
1277
1278         * elf32-fr30.c (fr30_final_link_relocate): Using signed
1279         relocations for signed values.
1280
1281 Sun Dec  6 16:30:33 1998  Ian Lance Taylor  <ian@cygnus.com>
1282
1283         * mipsbsd.c (MY(set_arch_mach)): Make static.
1284         * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
1285         bfd_mach_mips* macros rather than simple numbers.
1286
1287         COFF weak symbol support, based on patches from Mark Elbrecht
1288         <snowball3@usa.net>:
1289         * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
1290         * coffgen.c (coff_renumber_symbols): Handle weak symbols.
1291         (coff_write_alien_symbol): Likewise.
1292         * cofflink.c (coff_link_check_ar_symbols): Likewise.
1293         (coff_link_add_symbols): Likewise.
1294         (_bfd_coff_link_input_bfd): Likewise.
1295         (_bfd_coff_write_global_sym): Likewise.
1296
1297         * elf.c (copy_private_bfd_data): Always initialize the
1298         includes_phdrs field.
1299
1300         * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
1301         file defines a symbol first mentioned in an ELF file.
1302
1303         * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
1304         possible, rather than only if BFD64.
1305         * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
1306         not __GNUC__.
1307         * bfd-in2.h: Rebuild.
1308
1309         * srec.c (srec_set_section_contents): Correct test to avoid
1310         switching to 4 byte addresses after seeing a second section which
1311         requires 3 byte addresses.  From Joel Schantz
1312         <joel.schantz@argosys.boeing.com>.
1313
1314         * config.bfd (m68*-*-gnu*): New target.  From Aymeric Vincent
1315         <aymeric.vincent@emi.u-bordeaux.fr>.
1316
1317 1998-12-04  Jim Blandy  <jimb@zwingli.cygnus.com>
1318
1319         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
1320         decide whether the output file is -mrelocatable-lib,
1321         -mrelocatable, or neither.  (gdb.base/nodebug.exp)
1322
1323 1998-12-03  Nick Clifton  <nickc@cygnus.com>
1324
1325         * elf32-fr30.c: Add support for R_FR30_48 reloc.
1326         * reloc.c: Add BFD_RELOC_FR30_48 relocation.
1327         * bfd-in2.h: Regenerate.
1328         * libbfd.h: Regenerate
1329
1330 Wed Dec  2 00:58:37 1998  Ian Lance Taylor  <ian@cygnus.com>
1331
1332         * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
1333         link against a dynamic symbol with no type or size.
1334
1335 1998-12-01  Ulrich Drepper  <drepper@cygnus.com>
1336
1337         * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
1338         relocation for section which does not get loaded.
1339         (elf_i386_relocate_section) [R_386_32]: Likewise.
1340
1341 Tue Dec  1 11:33:33 1998  Jim Wilson  <wilson@cygnus.com>
1342
1343         * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
1344         reloc_count and i long instead of unsigned long.  Handle error
1345         return from bfd_canonicalize_reloc.
1346
1347 1998-12-01  Nick Clifton  <nickc@cygnus.com>
1348
1349         * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
1350         a hash table.
1351
1352 Mon Nov 30 15:28:09 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
1353
1354         * elf32-sh.c (elf/sh.h): Include.
1355         sh_reloc_type: Delete.  Changed all references to elf_sh_reloc_type.
1356         (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
1357         (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
1358         (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1359         * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
1360
1361 Fri Nov 27 17:51:38 1998  Geoff Keating  <geoffk@ozemail.com.au>
1362
1363         * elflink.h (compute_bucket_count): Don't allow minsize==0, it
1364         causes division by zero later on.
1365
1366 Thu Nov 26 11:19:35 1998  Dave Brolley  <brolley@cygnus.com>
1367
1368         * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
1369         needed.
1370
1371 1998-11-25  DJ Delorie  <dj@cygnus.com>
1372
1373         * coff-i386.c (i3coff_object_p): Remove hack.  Use new emulation
1374         hook now.
1375
1376 Tue Nov 24 10:25:27 1998  Nick Clifton  <nickc@cygnus.com>
1377
1378         * elf32-fr30.c (fr30_elf_relocate_section): Call
1379         fr30_final_link_relocate.
1380         (fr30_final_link_relocate): New function: Handle I20 and I32
1381         relocs.
1382         (fr30_elf_i32_reloc): New function: Handle I32 relocs.
1383         (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
1384         (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
1385
1386         * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
1387         chain to empty.
1388
1389         The following changes are based on a patch submitted by Gianluca
1390         Moro <glctr@abc.it>:
1391
1392         (v850_elf_perform_relocation): Only update a hi16s reloc if it has
1393         not already been updated.
1394         (find_remembered_hi16s_reloc): New parameter 'already_found'
1395         returns state of remembered hi16s reloc.
1396         (remember_hi16s_reloc): Set 'found' field to false.
1397         (hi16s_location): Add 'found' field.
1398
1399 1998-11-23  DJ Delorie  <dj@cygnus.com>
1400
1401         * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
1402         to see .DLL files as unrecognized.
1403         (i3coff_object_p): Sorry, had to hack it to not recognize these
1404         files (pei-i386) on request.
1405
1406 1998-11-23  DJ Delorie  <dj@cygnus.com>
1407
1408         * opncls.c (bfd_make_readable): need more cleanup for symbols and
1409         relents.  Call bfd_check_format to reinitialize.
1410
1411 Fri Nov 20 14:21:36 1998  Nick Clifton  <nickc@cygnus.com>
1412
1413         * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
1414         warnings.
1415
1416 Thu Nov 19 14:42:15 1998  Geoffrey Noer  <noer@cygnus.com>
1417
1418         * aclocal.m4: regenerate
1419         * configure: regenerate
1420
1421 Tue Nov 17 20:23:35 1998  Richard Henderson  <rth@cygnus.com>
1422
1423         * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
1424         * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
1425         * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
1426         respect it as an upper bound on what memory to reference.
1427         (elf_gc_smash_unused_vtentry_relocs): Likewise.
1428         (elf_gc_record_vtentry): Handle as-yet undefined vtables.  Set and
1429         update vtable_entries_size appropriately.
1430
1431 Tue Nov 17 15:28:31 1998  Nick Clifton  <nickc@cygnus.com>
1432
1433         * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
1434         reloc number.
1435
1436 Mon Nov 16 22:19:21 1998  DJ Delorie  <dj@cygnus.com>
1437
1438         * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
1439         bfds; they have no "file" so we fake it.
1440         * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
1441         * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
1442         resizing the memory buffer.
1443         * opncls.c (bfd_make_writable): New function; lets you write a
1444         bfd_create'd bfd to an in-memory buffer.
1445         (bfd_make_readable): New function; lets you read back that buffer
1446         as if it were from bfd_openr.  Used to build generated archive
1447         members (winsup's ld's dlltool)
1448
1449 Mon Nov 16 19:15:19 1998  Dave Brolley  <brolley@cygnus.com>
1450
1451         * po/bfd.pot: Regenerated.
1452
1453 Mon Nov 16 10:57:06 1998  Nick Clifton  <nickc@cygnus.com>
1454
1455         * elf32-v850.c (hi16s_location): Replaced fixed size array with
1456         linked list.
1457
1458 Sun Nov 15 20:28:25 1998  Richard Henderson  <rth@cygnus.com>
1459
1460         * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
1461         element of the gotentry list for local symbols too.
1462         (elf64_alpha_relocate_section): Unify local and global handling.
1463         Assert that gotent->use_count > 0.
1464
1465 Sat Nov 14 15:16:01 1998  Ian Lance Taylor  <ian@cygnus.com>
1466
1467         * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
1468         update for file name changes of July 2, 1998.
1469         (vms_vax_vec): New.
1470         * configure: Rebuild.
1471
1472 Thu Nov 12 19:19:54 1998  Dave Brolley  <brolley@cygnus.com>
1473
1474         * po/bfd.pot: Regenerated.
1475
1476 Tue Nov 10 16:17:06 1998  Geoffrey Noer  <noer@cygnus.com>
1477
1478         * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
1479         * aclocal.m4, configure: regenerate
1480
1481 Tue Nov 10 15:13:59 1998  Nick Clifton  <nickc@cygnus.com>
1482
1483         * elf.c (prep_headers): Add support for bfd_arch_fr30.
1484
1485 Tue Nov 10 13:37:36 1998  Felix Lee  <flee@cygnus.com>
1486
1487         * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
1488         BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
1489         was cached.
1490         * aclocal.m4, configure: regenerated.
1491
1492 Tue Nov 10 14:31:01 1998  Catherine Moore  <clm@cygnus.com>
1493
1494         * elf32-d10v.c (reloc_type):  Add R_D10V_GNU_VTINHERIT and
1495         R_D10V_GNU_VTENTRY relocs.
1496         (elf_d10v_howto_table):  Likewise.
1497         (d10v_reloc_map d10v_reloc_map):  Likewise.
1498         (elf32_d10v_gc_mark_hook):  New.
1499         (elf32_d10v_gc_sweep_hook):  New.
1500         (elf32_d10v_check_relocs):  New.
1501         (elf32_d10v_relocate_section):  New.
1502         (elf_backend_relocate_section):  Define.
1503         (elf_backend_can_gc_sections):  Define.
1504
1505 Sat Nov  7 18:07:51 1998  Peter Schauer  <peter.schauer@regent.e-technik.tu-muenchen.de>
1506
1507         * Makefile.am (BFD32_BACKENDS): Move vms files here...
1508         (BFD64_BACKENDS): ...from here.
1509         (BFD32_BACKENDS_CFILES): Move vms files here...
1510         (BFD64_BACKENDS_CFILES): ...from here.
1511         * Makefile.in: Rebuild.
1512
1513 Wed Nov  4 15:58:48 1998  Nick Clifton  <nickc@cygnus.com>
1514
1515         * Makefile.am: Add FR30 target.
1516         * Makefile.in: Add FR30 target.
1517         * archures.c: Add support for FR30.
1518         * config.bfd: Add support for FR30.
1519         * configure.in: Add support for FR30.
1520         * reloc.c: Add support for FR30 relocations.
1521         * targets.c: Add support for FR30 relocations.
1522         * bfd-in2.h: Regenerate.
1523         * configure: Regenerate.
1524         * libbfd.h:  Regenerate.
1525         * cpu-fr30.c: New file.
1526         * elf32-fr30.c: New file.
1527
1528 Mon Nov  2 14:59:33 1998  Geoffrey Noer  <noer@cygnus.com>
1529
1530         * configure.in: detect cygwin* instead of cygwin32*
1531         * configure: regenerate
1532
1533 Sun Nov  1 19:32:28 1998  Jeffrey A Law  (law@cygnus.com)
1534
1535         * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
1536         use bfd_malloc and free instead and check return value from bfd_malloc.
1537
1538 Sun Nov  1 16:20:35 1998  Ian Lance Taylor  <ian@cygnus.com>
1539
1540         * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
1541         * libbfd.h: Rebuild.
1542
1543         * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
1544         (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
1545         (MIPS_TEXT_DYNSYM_SECN): Likewise.
1546         (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
1547         section.
1548         (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
1549         field.
1550         (mips_elf_link_hash_table_create): Don't initialize
1551         dynsym_sec_strindex.
1552         (mips_elf_gc_mark_hook): Add default case to avoid warning.
1553         (mips_elf_size_dynamic_sections): Generate a section symbol for
1554         every output section.
1555         (mips_elf_finish_dynamic_sections): Count all sections for
1556         DT_MIPS_UNREFEXTNO.
1557         (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
1558         output sections.
1559
1560 Sun Nov  1 12:46:53 1998  Geoff Keating  <geoffk@ozemail.com.au>
1561
1562         * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
1563         for later PLT entries in large PLTs.
1564         (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
1565
1566 Sat Oct 31 20:10:09 1998  Jeffrey A Law  (law@cygnus.com)
1567
1568         * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
1569
1570 1998-10-26 15:58  Ulrich Drepper  <drepper@cygnus.com>
1571
1572         * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
1573         * elflink.h (elf_collect_hash_codes): New function.  This function is
1574         called for each exported symbol and we compute the ELF hash value for
1575         it.
1576         (compute_bucket_value): New function.  It is called from
1577         size_dynamic_sections to determine the hash table size.  When we are
1578         optimizing a better, but slower, algorithm is used.
1579         (size_dynamic_sections): Call compute_bucket_value.
1580
1581         * elf.c (bfd_elf_hash): Optimize the hash function a bit.
1582
1583 Mon Oct 19 20:03:21 1998  Catherine Moore  <clm@cygnus.com>
1584
1585         * elf32-sh.c:  Add HOWTO entries for R_SH_GNU_VTINHERIT and
1586         R_SH_GNU_VTENTRY.
1587         (sh_elf_gc_mark_hook):  New.
1588         (sh_elf_gc_sweep_hook):  New.
1589         (sh_elf_check_relocs):  New.
1590         (elf_backend_can_gc_sections):  Define.
1591
1592 Mon Oct 19 16:57:05 1998  Felix Lee  <flee@cygnus.com>
1593
1594         * acinclude.m4: undo previous gettext change
1595         * aclocal.m4: rebuild with right version of aclocal.
1596
1597 Mon Oct 19 01:47:21 1998  Felix Lee  <flee@cygnus.com>
1598
1599         * acinclude.m4, aclocal.m4: move gettext-related fragments from
1600         aclocal.m4 to acinclude.m4, so they don't get lost.
1601
1602         * elfcore.h: rewrite for better corefile support.
1603         * elf.c (elfcore_*): new functions.
1604         * elf-bfd.h (elf_obj_tdata): new structure members.
1605         * acconfig.h, acinclude.m4, configure.in: add feature-tests for
1606         flavor of procfs.
1607         * aclocal.m4, config.in, configure, Makefile.in: regenerated.
1608
1609 Fri Oct 16 14:07:45 1998  Catherine Moore  <clm@cygnus.com>
1610
1611         * elf32-m32r.c:  Add HOWTO entries for R_M32R_GNU_VTINHERIT
1612         and R_M32R_GNU_VTENTRY.
1613         (elf_backend_can_gc_sections):  Define.
1614         (m32r_elf_check_relocs):  New.
1615         (m32r_elf_gc_mark_hook):  New.
1616         (m32r_elf_gc_sweep_hook):  New.
1617         (m32r_elf_relocate_section):  Handle VT relocs.
1618
1619 Mon Oct 12 14:18:40 1998  Nick Clifton  <nickc@cygnus.com>
1620
1621         * coff-arm.c (arm_relocate_section): Remove redundant test.
1622
1623         * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
1624         cleat that the 'bitsize' field is the size of the bitfield AFTER
1625         relocation not before.
1626
1627         * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
1628
1629         * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
1630         relocs.
1631
1632 Tue Oct  6 09:20:44 1998  Catherine Moore  <clm@cygnus.com>
1633
1634         * elf32-sparc.c:  Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
1635         R_SPARC_GNU_VTENTRY.
1636         (elf32_sparc_check_relocs):  Handle them.
1637         (elf32_sparc_reloc_type_lookup):  Likewise.
1638         (elf32_sparc_relocate_section):  Likewise.
1639         (elf32_sparc_gc_mark_hook):  New.
1640         (elf32_sparc_gc_sweep_hook):  New.
1641
1642 Mon Oct  5 14:55:30 1998  Jeffrey A Law  (law@cygnus.com)
1643
1644         * som.c (som_finish_writing): Perform some sanity checks when
1645         writing an executable or shared library.
1646
1647 Mon Oct  5 12:02:31 1998  Gavin Romig-Koch  <gavin@cygnus.com>
1648
1649         * dwarf1.c : New file.  Adds _bfd_dwarf1_find_nearest_line.
1650         * configure.in (elf): Add dwarf1.lo.
1651         * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
1652         * elf.c (_bfd_elf_find_nearest_line): Add call to
1653         _bfd_dwarf1_find_nearest_line.
1654         * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
1655         Add call to _bfd_dwarf1_find_nearest_line.
1656         * configure: Rebuilt.
1657
1658 Mon Oct  5 10:06:22 1998  Catherine Moore  <clm@cygnus.com>
1659
1660         * elflink.h (elf_gc_sections):  Do not allow garbage
1661         collection if dynamic sections have been created.
1662
1663 Mon Oct  5 09:07:37 1998  Catherine Moore  <clm@cygnus.com>
1664
1665         * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
1666         R_V850_GNU_VTENTRY.
1667         (v850_elf_check_relocs):  Handle VTINHERIT and VTENTRY relocs.
1668         (v850_elf_perform_relocation):  Likewise.
1669         (v850_elf_final_link_relocate):  Likewise.
1670         (v850_elf_relocate_section):  Likewise.
1671         (v850_elf_gc_sweep_hook):  New routine.
1672         (v850_elf_gc_mark_hook):  New routine.
1673         (elf_backend_can_gc_sections):  Define.
1674
1675 Mon Oct  5 09:04:25 1998  Catherine Moore  <clm@cygnus.com>
1676
1677         * elf32-m68k.c (elf_m68k_gc_sweep_hook):  Don't assume
1678         that dynobj exists.
1679
1680 Sun Oct  4 23:29:34 1998  David Edelsohn  <edelsohn@mhpcc.edu>
1681
1682         * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
1683         Declare size as bfd_size_type.
1684         (rs6000coff_get_section_contents): Declare count as bfd_size_type.
1685
1686 Sun Oct  4 20:38:29 1998  Jeffrey A Law  (law@cygnus.com)
1687
1688         * cpu-hppa.c (bfd_hppa20_arch): Define.  Link it into the bfd_hppa_arch
1689         structure.
1690         * som.c (CPU_PA_RISC2_0): Define.
1691         (_PA_RISC2_0_ID): Likewise.
1692         (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
1693
1694 Sun Oct  4 21:19:09 1998  Ian Lance Taylor  <ian@cygnus.com>
1695
1696         * elflink.h (elf_link_add_object_symbols): When a versioned symbol
1697         has a base which is already defined, only add the referenced
1698         symbol to the dynamic symbol table if it is defined or referenced
1699         by a regular file.
1700
1701         * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
1702         correctly.
1703
1704 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1705
1706         * elflink.h (elf_link_add_object_symbols): Undo last change.
1707
1708 Wed Sep 23 16:09:31 1998  Richard Henderson  <rth@cygnus.com>
1709
1710         * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
1711         symbol for the indirect alias to a versioned symbol.
1712
1713 Mon Sep 21 12:15:22 1998  Catherine Moore  <clm@cygnus.com>
1714
1715         * elf32-i386.c (elf32_i386_vtinherit_howto): New.
1716         (elf32_i386_vtentry_howto): New.
1717         (elf_i386_reloc_type_lookup):  Return elf32_i386_vtentry_howto
1718         or elf32_i386_vtinherit_howto  on lookup.
1719
1720 Sun Sep 20 00:48:07 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1721
1722         * elf32-m68k.c: Include "elf/m68k.h".  Remove definition of enum
1723         reloc_type.  Rename R_68K__max to R_68K_max.
1724         (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
1725         reloc.
1726
1727 Sun Sep 20 00:09:25 1998  Chris Torek  <torek@bsdi.com>
1728
1729         * libbfd.c (bfd_getb32): Rewrite expression to get better code.
1730         (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
1731
1732         * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
1733         after.
1734
1735 Sat Sep 19 22:42:23 1998  Doug Rabson  <dfr@nlsystems.com>
1736
1737         * elflink.h (elf_link_add_object_symbols): Ensure that the warning
1738         message has a null byte terminator.
1739
1740 Fri Sep 18 14:35:29 1998  Nick Clifton  <nickc@cygnus.com>
1741
1742         * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
1743         word subject to R_V850_32 relocation.
1744
1745 Thu Sep 17 17:20:36 1998  Nick Clifton  <nickc@cygnus.com>
1746
1747         * dwarf2.c: Add comment describing problem computing line numbers
1748         for undefined symbols at link time.
1749
1750 Thu Sep 17 16:03:28 1998  Richard Henderson  <rth@cygnus.com>
1751
1752         * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
1753         transform a defweak into a plt entry.
1754         (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
1755         plt entry references to receive a RELATIVE reloc.
1756         (elf64_alpha_finish_dynamic_symbol): Fill them in.
1757         (elf64_alpha_relocate_section): Assert we don't overrun
1758         the allocated relocation space.
1759
1760 Wed Sep 16 18:03:13 1998  Nick Clifton  <nickc@cygnus.com>
1761
1762         * elf.c (swap_out_syms): Always treat section symbols as
1763         special, even if they are attached to a common section.
1764
1765 Wed Sep 16 10:34:13 1998  Nick Clifton  <nickc@cygnus.com>
1766
1767         * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
1768         sections with v850 common section attributes into named v850
1769         common sections.
1770         (v850_elf_add_symbol_hook): Move symbols in sections with v850
1771         common section attributes into named v850 common sections.
1772
1773 Wed Sep 16 11:26:49 CDT 1998  Catherine Moore  <clm@cygnus.com>
1774
1775         * elf32-arm.c (elf32_arm_gc_mark_hook):  Remove print
1776         statement.
1777
1778 1998-09-15  Geoff Keating  <geoffk@ozemail.com.au>
1779
1780         * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
1781         part of Vladimir's change of 1998-08-19.  Make a R_PPC_SDAREL16
1782         reloc to the wrong section a warning, not an error.  .dynsbss
1783         is not an output section, so there is no need to check for it.
1784
1785 Tue Sep 15 12:40:05 1998  Catherine Moore  <clm@cygnus.com>
1786
1787        * elf-bfd.h:  Add argument to elf_backend_get_symbol_type.
1788
1789 Tue Sep 15 08:34:40 1998  Catherine Moore  <clm@cygnus.com>
1790
1791        * elf.c (swap_out_syms):  Pass type to elf_backend_get_symbol_type.
1792        * elf32-arm.c:  Add HOWTO entries for R_ARM_GNU_VTINHERIT and
1793        R_ARM_GNU_VTENTRY.
1794        (elf32_arm_gc_mark_hook): New.
1795        (elf32_arm_gc_sweep_hook): New.
1796        (elf32_arm_check_relocs): New.
1797        (elf32_arm_final_link_relocate):  Handle VTINHERIT and VTENTRY
1798        relocations.
1799        (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
1800        relocations.
1801
1802 1998-09-10  Geoff Keating  <geoffk@ozemail.com.au>
1803
1804         * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
1805         assume there is no PLT or GOT.
1806
1807 Wed Sep  9 14:24:12 1998  Nick Clifton  <nickc@cygnus.com>
1808
1809         * elf32-arm.c (elf32_arm_find_nearest_line): New function:  just
1810         like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
1811         also accepted as a function symbol type.
1812
1813 Mon Sep  7 13:24:03 1998  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1814
1815         * rs6000-core.c (_LONG_LONG):  Define for AIX 4.x only.
1816
1817 Sat Sep  5 20:40:18 1998  Ian Lance Taylor  <ian@cygnus.com>
1818
1819         * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
1820         match definition of _bfd_gc_sections field.
1821         * libbfd.h: Rebuild.
1822
1823 Fri Sep  4 13:54:23 1998  David Miller  <davem@dm.cobaltmicro.com>
1824
1825         * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
1826         the addend of a dynamic relocation referencing a section.
1827         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1828         (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
1829
1830 Thu Sep  3 17:28:50 1998  Richard Henderson  <rth@cygnus.com>
1831
1832         * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
1833         bed has a size_dynamic_sections routine before trying to use it.
1834
1835 Mon Aug 31 14:49:22 1998  Richard Henderson  <rth@cygnus.com>
1836
1837         * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
1838         _bfd_elf_rel_vtable_reloc_fn.
1839
1840 Mon Aug 31 10:23:40 1998  Catherine Moore  <clm@cygnus.com>
1841
1842         * Makefile.am:  Add elf32-arm.c.
1843         * Makefile.in:  Rebuild.
1844         * elf-bfd.h:  Add elf_backend_get_symbol_type.
1845         * elf.c (swap_out_syms):  If defined, call
1846         elf_backend_get_symbol_type.
1847         * elf32-arm.c: Define elf_backend_get_symbol_type.
1848         (elf32_arm_get_symbol-type):  New routine.
1849         (record_thumb_to_arm_glue):  Change to use STT_ARM_TFUNC.
1850         (bfd_elf32_arm_process_before_allocation):  Change to
1851         check for STT_ARM_TFUNC.
1852         (elf32_arm_final_link_relocate):  Likewise.
1853         * elfxx-target.h:  Add elf_backend_get_symbol_type.
1854
1855 Fri Aug 28 19:44:07 1998  Richard Henderson  <rth@cygnus.com>
1856
1857         * archures.c (bfd_mach_alpha_ev[456]): New.
1858         * cpu-alpha.c: Rework to match these types.
1859         * bfd-in2.h: Rebuild.
1860
1861 Fri Aug 28 19:38:53 1998  Richard Henderson  <rth@cygnus.com>
1862
1863         * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
1864         * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
1865
1866         * elf32-i386.c (elf_howto_table): Add vtable relocs.
1867         (elf_i386_reloc_type_lookup): Recognize them.
1868         (elf_i386_check_relocs): Pass them off to generic code.
1869         (elf_i386_relocate_section): Ignore them.
1870         (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
1871         (elf_backend_can_gc_sections): True.
1872
1873 Thu Aug 20 15:03:45 1998  Nick Clifton  <nickc@cygnus.com>
1874
1875         * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
1876         before looking at owner field.
1877         (elf32_arm_to_thumb_stub): Ditto.
1878         (elf32_arm_relocate_section): Compute name before calling
1879         elf32_arm_final_link_relocate().
1880
1881 Thu Aug 20 11:30:17 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
1882
1883         * elf.c: comment and formatting cleanups.
1884         * elfcore.h: ditto.
1885
1886 Wed Aug 19 15:43:26 1998  Michael Snyder  <msnyder@cleaver.cygnus.com>
1887
1888         * elfcode.h (elf_object_p): Reject files of header type ET_CORE
1889         (core files are treated differently than object files).
1890         * elf-bfd.h (_bfd_elf_write_corefile_contents,
1891         bfd_elf_mkcorefile): declare.
1892         * elfxx-target.h (_bfd_elf_write_corefile_contents,
1893         bfd_elf_mkcorefile): add to bfd_target vector.
1894         * elfcore.h (elf_core_file_p): save the program header table,
1895         and set the bfd architecture from the elf file header.
1896         * elf.c (bfd_elf_mkcorefile): new function.
1897         (_bfd_elf_write_corefile_contents): new function.
1898         (assign_file_positions_for_segments): add cases for handling
1899         PT_NOTE segments.  (assign_file_positions_except_relocs):
1900         core files should be handled the same as exec files.
1901         (prep_headers): identify core files as type ET_CORE.
1902         (copy_private_bfd_data): identify the sections belonging to
1903         the PT_NOTE segment.
1904
1905         * elf32-sparc.c (elf32_sparc_final_write_processing):
1906         add break statement to default case.
1907
1908 1998-08-19  Vladimir N. Makarov  <vmakarov@cygnus.com>
1909
1910         * elf32-ppc.c (ppc_elf_relocate_section): Check that output
1911         section (not input) will be in sections ".sbss", ".sbss2",
1912         ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
1913         R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA.  In all these cases also ignore
1914         output_offset for correct evaluation of addend.
1915
1916 Tue Aug 18 11:48:12 1998  Catherine Moore  <clm@cygnus.com>
1917
1918         * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
1919         elf32_arm_allocate_interworking_sections and
1920         elf32_arm_process_before_allocation.
1921
1922 Tue Aug 18 11:46:00 1998  Nick Clifton  <nickc@cygnus.com>
1923
1924         * bfd-in.h: Ammend prototype for
1925         elf32_arm_process_before_allocation to remove surplus third
1926         argument.
1927
1928         * bfd-in2.h: Regenerate.
1929
1930 Sat Aug 15 20:55:08 1998  Richard Henderson  <rth@cygnus.com>
1931
1932         * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
1933
1934 Fri Aug 14 09:12:28 1998  Stan Cox  <scox@cygnus.com>
1935
1936         * aoutx.h (aout_link_input_section_ext): Use the relocation already
1937         calculated for RELOC_SPARC_REV32 case.
1938
1939 Thu Aug 13 14:02:02 1998  Catherine Moore  <clm@cygnus.com>
1940
1941        * bfd-in.h:  Add prototypes for elf32_arm_get_bfd_for_interworking,
1942        elf32_arm_allocate_interworking_sections and
1943        elf32_arm_process_before_allocation.
1944        * bfd-in2.h:  Regenerated.
1945        * elf32-arm.c Define elf32_arm_link_hash_table.
1946        (insert_thumb_branch): New routine.
1947        (find_thumb_glue): New routine.
1948        (find_arm_glue): New routine.
1949        (record_arm_to_thumb_glue): New routine.
1950        (record_thumb_to_arm_glue): New routine.
1951        (elf32_arm_link_hash_table_create): New routine.
1952        (elf32_arm_get_bfd_for_interworking): New routine.
1953        (elf32_arm_allocate_interworking_sections) New routine.
1954        (elf32_arm_process_before_allocation) New routine.
1955        (elf32_thumb_to_arm_stub): New routine.
1956        (elf32_arm_to_thumb_stub): New routine.
1957        (elf32_print_private_bfd_data): Fix typo.
1958        (elf32_arm_final_link_relocate):  Add argument sym_sec.
1959        Check for branches to thumb symbols in case R_ARM_PC24.
1960        Check for branches to arm symbols in case R_ARM_THM_PC22.
1961        (elf32_arm_relocate_section):  Pass symbol section to
1962        elf32_arm_final_link_relocate.
1963
1964 Wed Aug 12 19:00:39 1998  Geoff Keating  <geoffk@ozemail.com.au>
1965
1966         * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
1967         entries unless the symbol is defined in the executable; in
1968         particular, undefined weak symbols get a PLT entry.
1969
1970 Wed Aug 12 14:48:33 1998  Ian Lance Taylor  <ian@cygnus.com>
1971
1972         * libaout.h: Remove nested comment to avoid warning.
1973
1974 Wed Aug 12 08:10:11 1998 Catherine Moore  <clm@cygnus.com>
1975
1976        * elf32-arm.c (elf32_arm_final_link_relocate):  Rework
1977        R_ARM_PC24 relocation.
1978
1979 Tue Aug 11 14:42:26 1998  Catherine Moore  <clm@cygnus.com>
1980
1981        * elf32-arm.c (elf32_arm_final_link_relocate):  Remove unused
1982        argument is_local.  Add argument sym_flags.  Check sym_flags
1983        in R_ARM_ABS32 case.  Include addend for R_ARM_THM_PC22 case.
1984        (elf32_arm_relocate_section):  Don't pass local sym and pass
1985        sym_flags to elf32_arm_final_link_relocate.
1986
1987 Mon Aug 10 20:38:39 1998  Richard Henderson  <rth@cygnus.com>
1988
1989         * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
1990         to not count too few relocs for dynamicly linked executables.
1991
1992 Mon Aug 10 15:35:34 1998  Richard Henderson  <rth@cygnus.com>
1993
1994         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
1995         symbols without a dynamic index dynamic.  Consider all weak
1996         symbols dynamic.
1997         (elf64_alpha_strip_section_from_output): Don't assume 1-1
1998         correspondance between input and output sections.
1999
2000 Mon Aug 10 15:31:39 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2001
2002         * elflink.h (elf_gc_common_finalize_got_offsets): For backends
2003         that use a .got.plt section start the got offset at zero.
2004
2005 Mon Aug 10 17:31:21 1998  Ian Lance Taylor  <ian@cygnus.com>
2006
2007         * ieee.c (ieee_write_processor): Correct the processor ID written
2008         out for bfd_arch_m68k, accommodating change of March 25.
2009
2010 Sun Aug  9 20:55:44 1998  Catherine Moore  <clm@cygnus.com>
2011
2012         * elf32-arm.c (elf32_arm_final_link_relocate):  Rework
2013         R_ARM_THM_RPC22 relocations.
2014
2015 Sat Aug  8 15:15:30 1998  Richard Henderson  <rth@cygnus.com>
2016
2017         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
2018         are always dynamic.
2019         (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
2020         .got relocs in -Bsymbolic shared objects.
2021
2022 Wed Aug  5 15:48:08 1998  Nick Clifton  <nickc@cygnus.com>
2023
2024         * elf32-arm.c: Add private flags to ELF header.
2025         (elf32_arm_print_private_bfd_data): New Function.
2026         (elf32_arm_set_private_flags): New Function.
2027         (elf32_arm_copy_private_flags): New Function.
2028         (elf32_arm_merge_private_bfd_data): New Function.
2029
2030 Mon Aug  3 17:10:15 1998  Ian Lance Taylor  <ian@cygnus.com>
2031
2032         * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
2033         a local symbol.
2034         (elf32_sparc_relocate_section): Likewise.
2035
2036 Sun Aug  2 03:19:23 1998  Richard Henderson  <rth@cygnus.com>
2037
2038         * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL.  Create the
2039         .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
2040         (ppc_elf_relocate_section): Pull sgot and splt search to the start
2041         of the function.  Recognize no .plt as static linking.
2042
2043 1998-08-01  Ulrich Drepper  <drepper@cygnus.com>
2044
2045         * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
2046         ".liblist" string through gettext.
2047
2048 Fri Jul 31 16:38:14 1998  Catherine Moore  <clm@cygnus.com>
2049
2050         * Makefile.am: Add support for elf32-arm.lo.
2051         * Makefile.in: Rebuild.
2052         * config.bfd (arm-*-elf):  Define targ_defvec and targ_selvecs.
2053         (thumb-*-elf): Define targ_defvec and targ_selvecs.
2054         * configure.in:  Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
2055         * configure: Regenerate.
2056         * elf.c: (prep_headers):  Support arch_type of EM_ARM.
2057         * targets.c:  Support new targets bfd_elf32_bigarm_vec and
2058         bfd_target bfd_elf32_littlearm_vec.
2059         * elf32-arm.c:  New file.
2060
2061 Tue Jun 28 19:05:28 1998  Stan Cox  <scox@cygnus.com>
2062
2063         * libaout.h (M_SPARCLITE_LE): New machine.
2064         * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
2065         * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
2066         (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
2067         * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
2068         (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
2069         (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
2070         * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
2071         elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
2072         * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
2073         be BFD_RELOC_SPARC_REV32.
2074         * reloc.c: Ditto.
2075         * config.bfd (sparc86x-*-aout): New
2076
2077 Fri Jul 24 13:54:19 1998  Nick Clifton  <nickc@cygnus.com>
2078
2079         * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
2080         actually mapping the output sections.
2081
2082 Fri Jul 24 11:24:29 1998  Jeffrey A Law  (law@cygnus.com)
2083
2084
2085         * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
2086         (mn10300_elf_reloc_map): Similarly.
2087         (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
2088
2089 Fri Jul 24 12:36:04 1998  Ian Lance Taylor  <ian@cygnus.com>
2090
2091         * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
2092         Irix 6.
2093         (bfd_elf32_bfd_reloc_type_lookup): Add default case.
2094         * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
2095         elf_mips_reloc_type defined in elf/mips.h.
2096
2097 1998-07-24  Ulrich Drepper  <drepper@cygnus.com>
2098
2099         * elf64-mips.c: Remove reloc_type definition completely.  It's now
2100         in elf/mips.h.
2101
2102 Thu Jul 23 13:33:19 1998  Doug Evans  <devans@canuck.cygnus.com>
2103
2104         * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
2105         as they are defined in elf/mips.h now.
2106
2107 Thu Jul 23 11:29:43 1998  Jeffrey A Law  (law@cygnus.com)
2108
2109
2110         * Re-add lost change:
2111         * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
2112         "movm_stack_size".
2113         (mn10300_elf_relax_section): Include stack space for register saves
2114         in the imm8 field of a "call" instruction.
2115         (compute_function_info): Determine how much stack is allocated by
2116         the movm instruction.  Fix typo.
2117         (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
2118
2119 Thu Jul 23 11:38:05 1998  Ian Lance Taylor  <ian@cygnus.com>
2120
2121         * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
2122         * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
2123
2124 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
2125
2126         * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
2127
2128 Wed Jul 22 16:27:18 1998  Nick Clifton  <nickc@cygnus.com>
2129
2130         * elf32-hppa.h: Let ELF header define the enum containing the
2131         external reloc numbers.
2132         * elf32-i386.h: Likewise.
2133
2134 1998-07-22 14:57  Ulrich Drepper  <drepper@cygnus.com>
2135
2136         * elf-m10300.c: Let ELF header now define the macros to get the enum.
2137         * elf32-mips.c: Likewise.
2138         * elf32-ppc.c: Likewise.
2139
2140 Wed Jul 22 13:53:52 1998  Nick Clifton  <nickc@cygnus.com>
2141
2142         * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
2143         bfd_coff_set_symbol_class(), in order to avoid K&R compatability
2144         prblems.
2145         * bfd-in.h: Regenerate.
2146         * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
2147         parameter to 'unsigned int' to avoid K&R compatability problems.
2148
2149 Wed Jul 22 16:43:24 1998  Ian Lance Taylor  <ian@cygnus.com>
2150
2151         * ieee.c (ieee_find_nearest_line): Change filename_ptr and
2152         functionname_ptr to be const.  Change line_ptr to be unsigned.
2153
2154         * coffcode.h (coff_link_output_has_begun): Simplify handling when
2155         macro is not defined.  Change second parameter from bfd_link_info
2156         to coff_final_link_info.  Add prototype.
2157         (coff_final_link_postscript): Simplify handling when macro is not
2158         defined.  Add prototype.
2159
2160 1998-07-22 13:08  Ulrich Drepper  <drepper@cygnus.com>
2161
2162         * elf-mn10300.c: Before include system specific ELF header define
2163         START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
2164         * elf32-mips.c: Likewise.
2165         * elf32-ppc.c: Likewise.
2166
2167 Wed Jul 22 13:46:51 1998  Ian Lance Taylor  <ian@cygnus.com>
2168
2169         * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
2170         temporary patch over to elf64-mips.c as well.
2171
2172 1998-07-21  Ulrich Drepper  <drepper@cygnus.com>
2173
2174         * elf32-mips.c (reloc_type): Temporarily disable definition of
2175         standard relocation since they are now defined in elf/mips.h.
2176
2177 Tue Jul 21 09:47:00 1998  Catherine Moore  <clm@cygnus.com>
2178
2179         * elf-m10200.c (mn10200_elf_final_link_relocate):
2180         Modify range test for case R_MN10200_8.
2181
2182         * elf-m10300.c (mn10300_elf_final_link_relocate):
2183         Modify range test for case R_MN10300_8.
2184
2185 Mon Jul 20 18:50:54 1998  Richard Henderson  <rth@cygnus.com>
2186
2187         * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
2188         * elf32-i386.c (elf_backend_got_header_size): Define.
2189         (elf_backend_plt_header_size): Define.
2190         * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
2191         * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
2192         * elfxx-target.h: Provide a default of zero.
2193         * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
2194         * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
2195
2196         * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
2197         entry from an executable, even if the plt refcount goes to 0.
2198
2199 Mon Jul 20 12:47:26 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2200
2201         * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
2202         directory name at the line number.
2203
2204         * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
2205         with an unspecified type.
2206
2207 Wed Jul 15 11:20:01 1998  Ian Lance Taylor  <ian@cygnus.com>
2208
2209         * sunos.c: Add undef of valid to avoid problem on SunOS.
2210
2211 Tue Jul 14 15:30:59 1998  Richard Henderson  <rth@cygnus.com>
2212
2213         * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
2214
2215 Tue Jul 14 11:22:21 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2216
2217         * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
2218         R_68K_PCxx and R_68K_xx relocations.  Make sure that
2219         ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
2220         (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
2221         R_68K_xx relocations.
2222         (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
2223         that has no plt entry.
2224         (elf_m68k_relocate_section): Ignore the plt offset in a static
2225         link.
2226         * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
2227         an ignored symbol.
2228         (elf_gc_common_finalize_got_offsets): Set the got offsets also in
2229         a static link.
2230
2231         * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
2232         types.
2233         (howto_table, reloc_map): Add entries for them.
2234         (elf_m68k_check_relocs): Handle them.  Implement reference
2235         counting for got and plt entries.
2236         (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
2237         (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
2238         symbols.
2239         (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
2240         (elf_m68k_relocate_section): Handle the new reloc types.
2241         (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
2242         elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
2243         * elflink.h (elf_link_add_object_symbols): When creating an
2244         indirect reference for symbol versioning also copy the plt
2245         offset.
2246         (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
2247         flag also reset the plt offset.
2248         (elf_link_assign_sym_version): Likewise.
2249         (elf_gc_common_finalize_got_offsets): Increment the got offset by
2250         the size of the entry in bytes.
2251         (elf_gc_allocate_got_offsets): Likewise.
2252
2253 Tue Jul 14 11:18:14 1998  Ian Lance Taylor  <ian@cygnus.com>
2254
2255         * elflink.h (elf_gc_sections): Return true rather than falling off
2256         the bottom.
2257
2258         * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
2259         xmalloc.
2260
2261 Mon Jul 13 11:06:31 1998  Nick Clifton  <nickc@cygnus.com>
2262
2263         * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
2264         comment describing when it should be enabled.
2265         Changed definition of USER_LABEL_PREFIX to "", to fall into line
2266         with GCC sources.
2267
2268 Mon Jul 13 13:06:54 1998  Ian Lance Taylor  <ian@cygnus.com>
2269
2270         * ieee.c (ieee_slurp_external_symbols): Handle call optimization
2271         information ATN records.
2272
2273 Fri Jul 10 16:31:06 1998  Ian Lance Taylor  <ian@cygnus.com>
2274
2275         * ieee.c (ieee_slurp_external_symbols): Select an appropriate
2276         section for an absolute symbol in a fully linked file.  Based on
2277         patch from Christian Holland <CHolland@de.lucent.com>.
2278
2279 Wed Jul  8 11:29:56 1998  Manfred Hollstein  <manfred@s-direktnet.de>
2280
2281         * coff-m88k.c (m88k_special_reloc): Don't lose the information
2282         that a symbol is undefined.
2283
2284 Tue Jul  7 21:47:02 1998  Jeffrey A Law  (law@cygnus.com)
2285
2286         * som.c (som_bfd_gc_sections): Define.
2287
2288 Mon Jul  6 11:35:50 1998  Nick Clifton  <nickc@cygnus.com>
2289
2290         * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
2291         overflows in ARM_26D patches, since they have already been
2292         implmented.  Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
2293
2294 Sat Jul  4 12:25:36 1998  Ian Lance Taylor  <ian@cygnus.com>
2295
2296         * coffcode.h (coff_write_object_contents): If we have any long
2297         section names, call coff_write_symbols even if there are no
2298         symbols.
2299
2300 Fri Jul  3 13:11:35 1998  Ian Lance Taylor  <ian@cygnus.com>
2301
2302         * elf.c (copy_private_bfd_data): Only set phdr_included once for a
2303         PT_LOAD segment, rather than only setting it once for the entire
2304         file.
2305
2306         * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
2307         rather than ignoring every phdr with a p_paddr of 0, ignore all
2308         the phdrs if they all have a p_paddr of 0.
2309
2310         * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
2311         section was discarded from the link.
2312
2313 Fri Jul  3 14:39:05 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
2314
2315         * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
2316
2317 Fri Jul  3 14:35:48 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
2318
2319         * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
2320         floating point operations.
2321
2322 Thu Jul  2 18:37:25 1998  Ian Lance Taylor  <ian@cygnus.com>
2323
2324         * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
2325         function symbols.
2326
2327 Thu Jul  2 14:59:42 1998  Klaus Kaempf  <kkaempf@rmi.de>
2328
2329         Merge of vax/vms (read-only) support
2330         * configure.com: Support Vax target.
2331         * makefile.vms: Support Vax target.
2332         * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
2333         * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
2334         support.
2335         * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
2336         support.
2337         * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
2338         support.
2339         * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
2340         support.
2341         * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
2342         support.
2343         * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
2344         * targets.c (bfd_target_ovax_flavour): New flavour.
2345         (vms_alpha_vec): Renamed from evax_alpha_vec.
2346         (vms_vax_vec): New.
2347         (target_vector): Update accordingly.
2348         * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
2349         evax_alpha_vec.
2350         (vax*-*-*vms*): New target.
2351         * Makefile.am: Update for renamed files.  Rebuild dependencies.
2352         * bfd-in2.h: Rebuild.
2353         * configure.in, Makefile.in, aclocal.m4: Rebuild.
2354
2355 Thu Jul  2 13:31:55 1998  Ian Lance Taylor  <ian@cygnus.com>
2356
2357         Based on patch from Matt Semersky <matts@scd.hp.com>:
2358         * linker.c (_bfd_generic_final_link): Force a trailing NULL
2359         pointer on abfd->outsymbols.
2360         (generic_add_output_symbol): Handle NULL sym parameter.
2361
2362 Wed Jul  1 17:05:53 1998  Nick Clifton  <nickc@cygnus.com>
2363
2364         * elf.c (copy_private_bfd_data): Add support for changing VMA or
2365         LMA of sections.
2366
2367 Wed Jul  1 16:58:50 1998  Ian Lance Taylor  <ian@cygnus.com>
2368
2369         * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
2370         when handling 32 bit immediate relocs.
2371         * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
2372
2373 Tue Jun 30 09:55:03 1998  Jeffrey A Law  (law@cygnus.com)
2374
2375         * section.c (STD_SECTION): Account for recently added gc_mark
2376         field in struct asection.
2377
2378         * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
2379         (bfd_elf32_bfd_merge_private_bfd_data): Define.
2380
2381 Thu Jun 25 18:31:41 1998  Richard Henderson  <rth@cygnus.com>
2382
2383         ELF Section-level Garbage Collection:
2384         * bfd.c (bfd_gc_sections): New.
2385         * aout-adobe.c: Hook to default implementation.
2386         * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
2387         * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
2388         * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
2389         * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
2390         * tekhex.c, versados.c: Likewise.
2391         * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
2392         * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
2393
2394         * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
2395         (bfd_generic_gc_sections): New.
2396         * section.c (SEC_KEEP): New.
2397         (asection): Add gc_mark member.
2398
2399         * elfcode.h (elf_gc*): New name remappings.
2400         * elflink.h (elf_link_input_bfd): Don't set contents on stabs
2401         sections to be excluded.
2402         (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
2403         (elf_gc_propogate_vtable_entries_used): New.
2404         (elf_gc_smash_unused_vtentry_relocs): New.
2405         (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
2406         (elf_gc_common_finalize_got_offsets): New.
2407         (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
2408         * elfxx-target.h: Add and default gc hooks.
2409
2410         * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
2411         for unions.
2412         (struct elf_obj_tdata): Likewise for local_got_offsets.
2413         * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
2414         * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
2415         * elf64-sparc.c, elflink.h: Likewise.
2416
2417         * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
2418         (ELF_LINK_HASH_MARK): Define.
2419         (struct elf_backend_data): Add GC hooks.
2420         * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
2421
2422         * elf-m10300.c (mn10300_elf_check_relocs): New.
2423         (mn10300_elf_gc_mark_hook): New.
2424         (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
2425         (elf_mn10300_howto, mn10300_reloc_map): Handle them.
2426         (mn10300_elf_final_link_relocate): Likewise.
2427         (mn10300_elf_relocate_section): Likewise.
2428         (elf_backend_can_gc_sections): Define.
2429         * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
2430         (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
2431         (bfd_elf32_bfd_reloc_type_lookup): Handle them.
2432         (mips_info_to_howto_rel): Likewise.
2433         (mips_elf_relocate_section): Likewise.
2434         (mips_elf_check_relocs): Likewise.
2435         (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
2436         (elf_backend_can_gc_sections): Define.
2437         * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
2438         (ppc_elf_howto_raw): Handle them.
2439         (ppc_elf_reloc_type_lookup): Likewise.
2440         (ppc_elf_relocate_section): Likewise.
2441         (ppc_elf_check_relocs): Reference count .got and .plt entires.
2442         Handle new vtable relocs.
2443         (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
2444         (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
2445         (elf_backend_can_gc_sections): Define.
2446
2447 Fri Jun 26 10:48:23 1998  Jeffrey A Law  (law@cygnus.com)
2448
2449         * archures.c (bfd_mach_mn10300): Define.
2450         * elf-m10300.c: Include elf/mn10300.h
2451         (elf_mn10300_mach): New function.
2452         (_bfd_mn10300_elf_final_write_processing): Likewise.
2453         (_bfd_mn10300_elf_object_p): Likewise.
2454         (elf_backendfinal_write_processing): Define.
2455         (elf_backend_object_p): Likewise.
2456
2457 Thu Jun 25 18:31:08 1998  Nick Clifton  <nickc@cygnus.com>
2458
2459         * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
2460         relocation.
2461
2462 Wed Jun 24 17:17:57 1998  Ian Lance Taylor  <ian@cygnus.com>
2463
2464         * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
2465         link_next field, not the next field.
2466
2467 Sun Jun 21 19:38:39 1998  Ian Lance Taylor  <ian@cygnus.com>
2468
2469         * elf.c (map_sections_to_segments): Check the section address
2470         against the phdr size both with and without a modulo of
2471         maxpagesize.
2472
2473 Fri Jun 19 17:08:18 1998  Ian Lance Taylor  <ian@cygnus.com>
2474
2475         * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
2476         linker created empty input section if the output section has the
2477         same name.
2478
2479         * elflink.h (elf_link_output_extsym): Print an error message if
2480         _bfd_elf_section_from_bfd_section fails.
2481
2482         * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
2483         failure.
2484
2485 Tue Jun 16 11:55:55 1998  Ian Lance Taylor  <ian@cygnus.com>
2486
2487         * elf.c (copy_private_bfd_data): Improve handling of Solaris
2488         native linker output.  Avoid putting an empty section in more than
2489         one segment.
2490
2491 Fri Jun 12 13:30:17 1998  Tom Tromey  <tromey@cygnus.com>
2492
2493         * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
2494         ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2495
2496 Fri Jun 12 13:34:02 1998  Doug Evans  <devans@canuck.cygnus.com>
2497
2498         * elf.c (swap_out_syms): New arg relocatable_p.
2499         Don't add section VMA to symbols for relocatable output.
2500         (_bfd_elf_compute_section_file_positions): Update call to
2501         swap_out_syms.
2502
2503 Mon Jun  8 15:20:57 1998  Nick Clifton  <nickc@cygnus.com>
2504
2505         * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
2506         against 'addend' be signed rather than unsigned.
2507
2508 Sat Jun  6 00:31:21 1998  Nick Clifton  <nickc@cygnus.com>
2509
2510         * elf32-m32r.c: Add prototyps for static functions.
2511
2512         * coff-arm.c: Add prototypes for static functions.
2513
2514 Fri Jun  5 17:21:51 1998  Nick Clifton  <nickc@cygnus.com>
2515
2516         * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
2517         LMA is used to order sections in a segment.
2518
2519         * elf32-v850.c: Add prototypes for static functions.
2520         Change type of addend parameter to bfd_vma in various functions.
2521
2522 Fri Jun  5 18:09:58 1998  Ian Lance Taylor  <ian@cygnus.com>
2523
2524         * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
2525         complain_overflow_signed instead of complain_overflow_bitfield.
2526
2527 Fri Jun  5 15:11:11 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2528
2529         * elf.c (elf_map_symbols): Don't add section VMA to symbol value
2530         when comparing against 0.
2531
2532 Wed Jun  3 17:52:49 1998  Ian Lance Taylor  <ian@cygnus.com>
2533
2534         * Makefile.am (config.status): New target.
2535         * Makefile.in: Rebuild.
2536
2537 Wed Jun  3 12:18:24 1998  Stan Cox  <scox@equinox.cygnus.com>
2538
2539         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
2540         error if previous object endianness doesn't match current object.
2541
2542 Tue Jun  2 17:50:59 1998  Nick Clifton  <nickc@cygnus.com>
2543
2544         * elf32-v850.c (v850_elf_print_private_bfd_data): Call
2545         _bfd_elf_print_private)bfd_data ().
2546
2547 Tue Jun  2 15:29:35 1998  Ian Lance Taylor  <ian@cygnus.com>
2548
2549         * elflink.h (elf_merge_symbol): Don't always set type_change_ok
2550         and size_change_ok.
2551         (elf_link_add_object_symbols): Set type_change_ok and
2552         size_change_ok before calling elf_merge_symbol.
2553
2554         * elf32-mips.c (mips_elf_relocate_section): If we issue an
2555         undefined symbol error, don't also issue an overflow error.
2556
2557 Tue Jun  2 13:51:00 1998  Geoff Keating  <geoffk@ozemail.com.au>
2558
2559         * elf32-ppc.c (ppc_elf_relocate_section): The target of an
2560         R_PPC_LOCAL24PC relocation should be local; if not, print an error
2561         message instead of crashing.
2562
2563 Mon Jun  1 18:23:12 1998  Yuli Barcohen  <yuli.barcohen@telrad.co.il>
2564
2565         * archures.c (bfd_mach_cpu32): Define.
2566         (bfd_default_scan): Add case for 68060.  Fix 68332 case to use
2567         bfd_mach_cpu32.
2568         * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
2569         * ieee.c: Include <ctype.h>.
2570         (ieee_object_p): Parse out process ID string to make it more
2571         likely to be acceptable for bfd_scan_arch.
2572         * bfd-in2.h: Rebuild.
2573
2574 Mon Jun  1 11:12:02 1998  Nick Clifton  <nickc@cygnus.com>
2575
2576         * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
2577         _bfd_elf_print_private_bfd_data() so that the program header will
2578         be displayed.
2579
2580 Mon Jun  1 12:14:28 1998  Ian Lance Taylor  <ian@cygnus.com>
2581
2582         * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
2583         0x68.  Reindent.  Add some comments.
2584
2585 Fri May 29 09:58:08 1998  Nick Clifton  <nickc@cygnus.com>
2586
2587         * elf.c (copy_private_bfd_data): Adjust physical address of
2588         segment in output BFD to contain LMAs of its sections.
2589
2590 Tue May 26 19:37:47 1998  Stan Cox  <scox@equinox.cygnus.com>
2591
2592         * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
2593         elf32_sparc_relocate_section): Added R_SPARC_32LE for little
2594         endian data 32 bit relocations.
2595         (elf32_sparc_merge_private_bfd_data): Check if linking little
2596         endian objects with big endian objects.
2597         (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
2598         (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
2599         * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
2600         * reloc.c: Same.
2601         * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
2602         * archures.c (bfd_mach_sparc_sparclite_le): New.
2603         * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
2604
2605 Thu May 21 16:59:28 1998  Nick Clifton  <nickc@cygnus.com>
2606
2607         * peicode.h (add_data_entry): Fix precedence of operators in if ()
2608         statement.
2609
2610 Tue May 19 18:41:19 1998  Ian Lance Taylor  <ian@cygnus.com>
2611
2612         * bfd-in.h: Move over patch to bfd-in2.h.
2613
2614         * reloc.c (bfd_check_overflow): Add casts before shifts which may
2615         not fit in 32 bits.
2616         (_bfd_relocate_contents): Likewise.
2617
2618 Mon May 18 14:44:15 1998  Nick Clifton  <nickc@cygnus.com>
2619
2620         * peicode.h (add_data_entry): If the section has no private data
2621         then do not create a Data Dictionary entry for it.
2622
2623 Mon May 18 00:09:28 1998  Richard Henderson  <rth@cygnus.com>
2624
2625         * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
2626         (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
2627         elf64_alpha_size_got_sections): Rewrite, handling multiple got
2628         subsections during relaxation more correctly.
2629
2630 Thu May 14 14:22:58 1998  Nick Clifton  <nickc@cygnus.com>
2631
2632         * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
2633         Add extra argument to bfd_arm_process_before_allocation ().
2634         * bfd-in.h: Reflect changes made in bfd-in2.h.
2635         * coffgen.c (bfd_coff_set_symbol_class): New function.  Set the
2636         coff class of a BFD symbol.
2637         * coff-arm.c: Add support for interworking between Thumb code and
2638         non-interworking aware ARM code.
2639
2640 Sun May 10 22:33:59 1998  Jeffrey A Law  (law@cygnus.com)
2641
2642         * po/Make-in (install-info): New target.
2643
2644 Thu May  7 17:40:56 1998  Ian Lance Taylor  <ian@cygnus.com>
2645
2646         * filemode.c: Remove; not used.
2647
2648         If sysdep.h includes a header file, don't include it again:
2649         * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
2650         <errno.h>.
2651         * aoutx.h: Don't include <string.h>.  Use "sysdep.h" rather than
2652         <sysdep.h>.
2653         * archive.c: Don't include <string.h> or <errno.h>.
2654         * evax-alpha.c; Don't include <stdio.h>.
2655         * evax-egsd.c: Likewise.
2656         * evax-etir.c: Likewise.
2657         * evax-misc.c: Likewise.
2658         * evax-emh.c: Likewise.  Also, don't include <sys/types.h>.
2659         * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
2660         <errno.h>.
2661         * hpux-core.c: Likewise.
2662         * netbsd-core.c: Likewise.
2663         * som.c: Likewise.
2664         * libbfd.c: Don't include <sys/types.h>.
2665         * nlmcode.h: Don't include <string.h>.
2666         * osf-core.c: Don't include <string.h> or <stdio.h>.
2667         * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
2668         <errno.h>, or <unistd.h>.
2669         * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
2670
2671 Thu May  7 13:12:50 1998  Klaus Kaempf  <kkaempf@progis.de>
2672
2673         * configure.com: If the version number can not be found in
2674         configure.in, set it to "unknown" rather than "2.8.1".
2675
2676 Wed May  6 09:46:05 1998  Gavin Koch  <gavin@cygnus.com>
2677
2678         * elf32-mips.c (elf_mips_mach): New.
2679         (_bfd_mips_elf_object_p): Use elf_mips_mach.
2680         (_bfd_mips_elf_final_write_processing): Use the names
2681         of machines, rather than the numbers.  Set both the ARCH
2682         and MACH in e_flags.  Handle a few more specific machines.
2683         (_bfd_mips_elf_merge_private_bfd_data): Merge both
2684         EF_MIPS_ARCH and EF_MIPS_MACH.
2685
2686 Tue May  5 21:01:53 1998  Richard Henderson  <rth@cygnus.com>
2687
2688         * syms.c (bfd_is_local_label): Revert last change.
2689         * srec.c (srec_write_symbols): Discard debugging symbols.
2690
2691 Tue May  5 23:36:06 1998  Ian Lance Taylor  <ian@cygnus.com>
2692
2693         * som.c: Include <ctype.h>.
2694         * som.h: Don't include sysdep.h.
2695
2696 Tue May  5 18:29:24 1998  Tom Tromey  <tromey@cygnus.com>
2697
2698         * libbfd.h: Rebuilt.
2699         * libbfd-in.h: Removed gettext includes and defines.
2700         * sysdep.h: Moved gettext-related includes and defines here.
2701
2702 Tue May  5 16:47:54 1998  Richard Henderson  <rth@cygnus.com>
2703
2704         * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
2705         an ad-hoc test.  Kill bogus #if 0 code.
2706         * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
2707
2708 Mon May  4 16:10:33 1998  Ian Lance Taylor  <ian@cygnus.com>
2709
2710         * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
2711         when generating a normal executable for a symbol defined in a
2712         regular file.  When copying a reloc into the output file, adjust
2713         the addend for a PC relative reloc against a global symbol.
2714
2715 Mon May  4 10:08:18 1998  Tom Tromey  <tromey@cygnus.com>
2716
2717         * libbfd.h: Rebuilt.
2718         * libbfd-in.h (_): Define as dgettext.
2719
2720 Mon May  4 11:02:23 1998  Ian Lance Taylor  <ian@cygnus.com>
2721
2722         * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
2723         not signed.
2724         * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
2725         when declaring parameter types.
2726         (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
2727
2728 Wed Apr 29 15:35:03 1998  Ian Lance Taylor  <ian@cygnus.com>
2729
2730         * config.bfd: If we include any ELF targets in targ_defvec and/or
2731         targ_selvecs, then add the generic ELF targets to targ_selvecs.
2732         * elf32-gen.c (dummy): New static const variable.
2733         (elf_generic_info_to_howto): New static function.
2734         (elf_generic_info_to_howto_rel): New static function.
2735         (elf_info_to_howto): Define as elf_generic_info_to_howto.
2736         (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
2737         * elf64-gen.c: Same changes as elf32-gen.c.
2738         * elfcode.h (elf_object_p): For the generic target, ignore a
2739         failure of bfd_default_set_arch_mach.  Fix indentation a bit.
2740
2741 Tue Apr 28 20:05:52 1998  Ian Lance Taylor  <ian@cygnus.com>
2742
2743         * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
2744         * configure: Rebuild.
2745
2746 Tue Apr 28 12:16:57 1998  Jason Molenda  (crash@bugshack.cygnus.com)
2747
2748         * config.bfd:  Update OSR5/Unixware patterns.
2749
2750 Mon Apr 27 18:02:24 1998  Richard Henderson  <rth@cygnus.com>
2751
2752         * elf.c (assign_file_positions_for_segments): Allow for holes
2753         between sections added by a link script.
2754
2755 Mon Apr 27 11:49:55 1998  Ian Lance Taylor  <ian@cygnus.com>
2756
2757         * configure.in: Change version number to 2.9.4
2758         * configure: Rebuild.
2759
2760         Based on patch from H.J. Lu <hjl@gnu.org>:
2761         * elf.c (bfd_elf_get_bfd_needed_list): New function.
2762         * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
2763         * bfd-in2.h: Rebuild.
2764
2765 Sat Apr 25 20:07:53 1998  Richard Henderson  <rth@cygnus.com>
2766
2767         * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
2768         Change all users.
2769
2770 Sat Apr 25 18:29:07 1998  Richard Henderson  <rth@cygnus.com>
2771
2772         * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
2773         (elf64_alpha_relax_section): Fill them in.
2774         (elf64_alpha_relax_opt_call): Implement more than a stub.
2775         (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
2776         alignment on .scommon.
2777         (elf64_alpha_merge_gots): Merge use counts as well.
2778
2779 Sat Apr 25 14:07:29 1998  Richard Henderson  <rth@cygnus.com>
2780
2781         * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
2782         for calculating a local symbol's address.
2783         (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
2784         Set the .got's cooked size as well as the raw size.
2785
2786 Fri Apr 24 09:16:00 1998  Nick Clifton  <nickc@cygnus.com>
2787
2788         * elf32-v850.c (v850_elf_print_private_bfd_data): Add
2789         internationalisation of printed information.
2790
2791         * coff-arm.c (coff_arm_print_private_bfd_data): Add
2792         internationalisation of printed information.
2793
2794 Fri Apr 24 12:09:18 1998  Ian Lance Taylor  <ian@cygnus.com>
2795
2796         * syms.c (struct indexentry): Change directory_name, file_name,
2797         and function_name fields to char *.
2798         (struct stab_find_info): Change cached_file_name field to char *.
2799
2800 Thu Apr 23 08:13:04 1998  Nick Clifton  <nickc@cygnus.com>
2801
2802         * peicode.h (dir_names): Add missing N_() macros to dir_names array.
2803
2804 Wed Apr 22 13:06:15 1998  Tom Tromey  <tromey@cygnus.com>
2805
2806         * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
2807
2808 Wed Apr 22 17:48:48 1998  Ian Lance Taylor  <ian@cygnus.com>
2809
2810         * Makefile.am (install-data-local): Make $(includedir).
2811         * Makefile.in: Rebuild.
2812
2813 Wed Apr 22 13:06:15 1998  Tom Tromey  <tromey@cygnus.com>
2814
2815         * libbfd-in.h: Use `gettext' and not `dgettext' for now.
2816
2817 Wed Apr 22 12:53:40 1998  Ian Lance Taylor  <ian@cygnus.com>
2818
2819         * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
2820         * Makefile.in: Rebuild.
2821
2822         * bfd-in2.h: Rebuild for Nick's changes.
2823
2824 Tue Apr 21 23:11:51 1998  Richard Henderson  <rth@cygnus.com>
2825
2826         * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
2827         change wrt length == max_namelen.
2828
2829 Tue Apr 21 21:19:36 1998  Tom Tromey  <tromey@scribbles.cygnus.com>
2830
2831         * Many files: Added gettext invocations around user-visible
2832         strings.
2833         * libbfd-in.h: Added gettext includes and defines.
2834         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
2835         HAVE_LC_MESSAGES): Define.
2836         * configure.in: Call CY_GNU_GETTEXT.  Create po/Makefile.in and
2837         po/Makefile.
2838         * Makefile.am (SUBDIRS): Added po.
2839         (POTFILES): New macro.
2840         (po/POTFILES.in): New target.
2841         (SOURCE_HFILES): New macro.
2842         (HFILES): Use it.
2843         * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
2844
2845 Tue Apr 21 13:38:18 1998 Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
2846
2847         * elfcore.h (bfd_prstatus):  Copy core_prstatus from the first
2848         NT_PRSTATUS note section encountered, it contains the status of
2849         the currently executing thread when the core file was written.
2850
2851 Tue Apr 21 10:00:12 1998  Nick Clifton  <nickc@cygnus.com>
2852
2853         * libcoff.h: Add extra parameter to
2854         bfd_coff_link_output_has_begun overrideable function.
2855         * cofflink.c: Pass extra parameter to
2856         bfd_coff_link_output_has_begun function.
2857         * bfd-in.h: Add prototypes for exported ARM interworking
2858         functions.
2859         * peicode.h: ARM specific code reorganised to conform to BFD
2860         coding conventions.
2861         * coffcode.h: ARM specific code reorganised to conform to BFD
2862         coding conventions.
2863         * coff-arm.c: Code reorganised to conform to the BFD coding
2864         conventions.  Global variables have been moved into an ARM
2865         specific hash table structure and a new function:
2866         bfd_arm_get_bfd_for_interworking() has been created which is
2867         called from the linker scripts.
2868
2869 Tue Apr 21 00:11:51 1998  Richard Henderson  <rth@cygnus.com>
2870
2871         * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
2872
2873         * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
2874         elf64_alpha_relax_find_reloc_ofs.  Changed all callers.
2875         (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
2876         (elf64_alpha_size_got_sections): Don't merge .got sections twice.
2877
2878 Sat Apr 18 01:21:04 1998  Stan Cox  <scox@cygnus.com>
2879
2880         * config.bfd: Added sparc86x support.
2881
2882 Fri Apr 17 22:29:04 1998  Ian Lance Taylor  <ian@cygnus.com>
2883
2884         * elf32-mips.c (mips_elf_relocate_section): Do not complain about
2885         an out of range pc-relative jump/call to an undefined weak symbol.
2886
2887 Thu Apr 16 13:49:00 1998  Richard Henderson  <rth@cygnus.com>
2888
2889         * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
2890         comparisons signed.
2891
2892 Thu Apr 16 11:43:33 1998  Ian Lance Taylor  <ian@cygnus.com>
2893
2894         * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
2895         an error other than bfd_error_system_call, set the error to
2896         bfd_error_wrong_format.
2897
2898         * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
2899         bfd_elf32_powerpcle_vec.
2900
2901         * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
2902         program segments are zero, don't set p_paddr_valid.
2903
2904 Wed Apr 15 22:15:16 1998  Richard Henderson  <rth@cygnus.com>
2905
2906         * elf64-alpha.c: Initial implementation of relaxation --
2907         (struct alpha_elf_link_hash_entry): Add use_count member.
2908         (elf64_alpha_check_relocs): Initialize and increment it.
2909         (elf64_alpha_can_merge_gots): Check it when considering merging.
2910         (elf64_alpha_merge_gots): Drop entries with zero use.
2911         (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
2912         (elf64_alpha_always_size_sections): Split out got sizing ...
2913         (elf64_alpha_size_got_sections): ... here.  New function.
2914         (elf64_alpha_relax_find_reloc_ofs): New function.
2915         (elf64_alpha_relax_with_lituse): Likewise.
2916         (elf64_alpha_relax_without_lituse): Likewise.
2917         (elf64_alpha_relax_opt_call): Likewise.
2918         (elf64_alpha_relax_section): Likewise.
2919         (elf64_alpha_add_symbol_hook): Likewise.
2920         (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
2921         (elf64_alpha_relocate_section): Likewise.
2922         (bfd_elf64_bfd_relax_section): Define.
2923         (elf_backend_add_symbol_hook): Likewise.
2924
2925 Wed Apr 15 16:08:46 1998  Richard Henderson  <rth@cygnus.com>
2926
2927         * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
2928         * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
2929         (ELF_MACHINE_ALT1): New.  Set to EM_OLD_SPARC64.
2930
2931 Wed Apr 15 11:34:33 1998  Ian Lance Taylor  <ian@cygnus.com>
2932
2933         * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
2934         * configure: Rebuild.
2935
2936 Mon Apr 13 16:46:27 1998  Ian Lance Taylor  <ian@cygnus.com>
2937
2938         * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
2939         (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
2940         * configure.in: Define and substitute WIN32LDFLAGS and
2941         WIN32LIBADD.
2942         * aclocal.m4: Rebuild with new libtool.
2943         * configure, Makefile.in: Rebuild.
2944
2945 Fri Apr 10 13:44:27 1998  Ian Lance Taylor  <ian@cygnus.com>
2946
2947         * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
2948         before any other symbols in the same section.
2949
2950 Wed Apr  8 14:50:23 1998  Michael Meissner  <meissner@cygnus.com>
2951
2952         * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
2953         systems.
2954
2955 Tue Apr  7 16:25:31 1998  Gavin Romig-Koch  <gavin@cygnus.com>
2956
2957         * dwarf2.c (comp_unit): Move it earlier in the source. Add
2958         addr_size.
2959         (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
2960         Use addr_size for address size, rather than sizeof(bfd_vma).
2961         (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
2962         Fix call to read_address.
2963         (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
2964         Scrap other unneeded arguments.  Fix call to read_address.
2965         (scan_unit_for_functions): Fix call to read_attribute.
2966         (parse_comp_unit): We now handle more values for addr_size.
2967         Set addr_size in unit.  Fix call to read_attribute and
2968         decode_line_info.
2969
2970 Tue Apr  7 15:44:47 1998  Gavin Romig-Koch <gavin@cygnus.com>
2971
2972         * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
2973
2974 Tue Apr  7 12:35:18 1998  Ian Lance Taylor  <ian@cygnus.com>
2975
2976         * archures.c (bfd_default_scan): Add m68k cases back to default
2977         switch, reverting patch of March 25, since IEEE support depends
2978         upon them.
2979
2980 Mon Apr  6 14:06:40 1998  Ian Lance Taylor  <ian@cygnus.com>
2981
2982         * Makefile.am (diststuff): New target.
2983         * Makefile.in: Rebuild.
2984
2985 Sun Apr  5 16:21:44 1998  Jeffrey A Law  (law@cygnus.com)
2986
2987         * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
2988         som_offset when we have an extended name table.
2989
2990 Sun Apr  5 16:04:39 1998  H.J. Lu  <hjl@gnu.org>
2991
2992         * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
2993         trying to copy it.
2994         * Makefile.in: Rebuild.
2995
2996 Fri Apr  3 11:09:42 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2997
2998         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
2999         symbols when creating a shared library.
3000         (elf_m68k_adjust_dynindx): New function, used by above code.
3001         (elf_m68k_finish_dynamic_sections): Initialize the section
3002         symbols.
3003         (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
3004
3005 Wed Apr  1 16:04:02 1998  Nick Clifton  <nickc@cygnus.com>
3006
3007         * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
3008         value 11.
3009
3010 Wed Apr  1 13:36:58 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3011
3012         * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
3013         assertion.
3014
3015 Tue Mar 31 00:12:12 1998  Jeffrey A Law  (law@cygnus.com)
3016
3017         * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
3018         absolute symbols.
3019
3020 Mon Mar 30 12:46:15 1998  Ian Lance Taylor  <ian@cygnus.com>
3021
3022         * configure.in: Set version to 2.9.1.
3023         * configure: Rebuild.
3024
3025         * Branched binutils 2.9.
3026
3027 Mon Mar 30 12:20:50 1998  Brent Baccala  <baccala@freesoft.org>
3028
3029         * syms.c (ENABLE_CACHING): Define.
3030         (struct indexentry): Define.
3031         (struct stab_cache): Remove.
3032         (cmpindexentry): New static function.
3033         (struct stab_find_info): Add new fields: indextable,
3034         indextablesize, cached_indexentry, cached_offset, cached_stab, and
3035         cached_file_name.  Remove fields: file_cache, function_cache, and
3036         line_cache.
3037         (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
3038         index table and search it.
3039
3040 Mon Mar 30 10:39:34 1998  Ian Lance Taylor  <ian@cygnus.com>
3041
3042         * elf.c (_bfd_elf_copy_private_section_data): Call
3043         copy_private_bfd_data once we've seen the last SEC_ALLOC section.
3044
3045         * cpu-mips.c: Remove trailing comma at end of enumeration list.
3046
3047 Sat Mar 28 16:33:02 1998  Ian Lance Taylor  <ian@cygnus.com>
3048
3049         * coff-arm.c: Define all globally visible variables and functions
3050         only when COFF_WITH_PE is not defined.
3051         * configure.in (armpe_little_vec, armpe_big_vec): Add
3052         coff-arm.lo.
3053         * configure: Rebuild.
3054
3055 Fri Mar 27 16:06:02 1998  Ian Lance Taylor  <ian@cygnus.com>
3056
3057         Fix some gcc -Wall warnings:
3058         * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
3059         * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
3060         * archures.c (bfd_default_scan): Likewise.
3061         * bfd.c (bfd_scan_vma): Likewise.
3062         * binary.c (mangle_name): Likewise
3063         * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
3064         * coff-sh.c (sh_relocate_section): Likewise.
3065         * coff-stgo32.c (create_go32_stub): Likewise.
3066         * coffcode.h (coff_slurp_line_table): Likewise.
3067         * ecoff.c (_bfd_ecoff_write_armap): Likewise.
3068         * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
3069         (assign_file_positions_for_segments): Likewise.
3070         * elf32-mips.c (mips_elf_relocate_section): Likewise.
3071         * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
3072         * oasys.c (oasys_write_sections): Likewise.
3073         * ppcboot.c (ppcboot_object_p): Likewise.
3074         (mangle_name): Likewise.
3075         * riscix.c (riscix_fix_pcrel_26): Likewise.
3076         * srec.c (srec_scan): Likewise.
3077         * stabs.c (_bfd_write_section_stabs): Likewise.
3078         * sunos.c (sunos_add_dynamic_symbols): Likewise.
3079         * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
3080         switch.  Declare parameters for function pointers.
3081         * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
3082         warning.
3083         * elf.c (elf_sort_sections): Likewise.
3084         * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
3085         Add default cases to switches.
3086         (coff_arm_relocate_section): Remove unused local variables.
3087         Always set rstat.
3088         (coff_arm_bfd_set_private_flags): Change flag variable to type
3089         flagword.
3090         * coff-mips.c (mips_relocate_section): Initialize use_lo.
3091         * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
3092         (dump_toc): Change cat to const, and initialize it.
3093         * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
3094         * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
3095         (sh_elf_relocate_section): Initialize r_symndx.
3096         * coffcode.h (coff_compute_section_file_positions): Only declare
3097         old_sofar if ALIGN_SECTIONS_IN_FILE.
3098         (coff_write_object_contents): Initialize csym.
3099         * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
3100         * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
3101         switch.
3102         * dwarf2.c: Include libiberty.h.
3103         (read_2_signed_bytes, read_4_signed_bytes): Comment out.
3104         (decode_line_info): Remove unused local variables.
3105         * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
3106         (m32r_elf_relocate_section): Likewise.
3107         * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
3108         (v850_elf_reloc): Likewise.
3109         * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
3110         (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
3111         * elf.c (assign_file_positions_for_segments): Always set adjust.
3112         * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr.  Fully
3113         parenthesize expression.
3114         * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
3115         (m32r_elf_object_p): Return a value.
3116         (m32r_elf_print_private_bfd_data): Change fprintf format string.
3117         * elf32-mips.c (mips_elf_final_link): Initialize last.
3118         (mips_elf_finish_dynamic_sections): Initialize last and dindx.
3119         * elf32-v850.c (v850_elf_object_p): Return a value.
3120         (v850_elf_print_private_bfd_data): Change fprintf format string.
3121         * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
3122         unsigned long.
3123         * elflink.h (elf_link_add_object_symbols): Change vernum to
3124         unsigned int, and initialize it.  Change fprintf format string.
3125         (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
3126         when setting or comparing to soname_indx.
3127         (elf_create_pointer_linker_section): Change num_symbols to
3128         unsigned int.
3129         * libcoff-in.h (coff_data_type): Change flags to flagword.
3130         * peicode.h (pe_print_idata): Initialize idx.  Change j to
3131         bfd_size_type.  Initialize hint_member.  Remove useless test to
3132         time_stamp.
3133         (pe_print_edata): Change num_functions and num_names in struct
3134         EDT_type to unsigned long.  Remove cast.  Change fprintf format
3135         string.
3136         * ppcboot.c (ppcboot_object_p): Change i to size_t.
3137         * reloc.c (bfd_get_reloc_size): Change return type to unsigned
3138         int.
3139         * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
3140         int *.  Update uses.  Change j to long.
3141         * bfd-in2.h, libcoff.h: Rebuild.
3142
3143 Fri Mar 27 10:10:46 1998  Catherine Moore <clm@cygnus.com>
3144
3145         * elf32-v850.c Remove definition of USE_REL.
3146         (v850_elf_info_to_howto_rela): New function.
3147         (v850_elf_perform_relocation):  Renamed from
3148         v850_elf_store_addend_in_insn.  Removed replace argument.
3149         (v850_elf_reloc): store the relocation in the addend field instead
3150         of the insn.
3151         (v850_elf_final_link_relocate):  Now calls
3152         v850_elf_perform_relocation.
3153         (v850_elf_relocate_section):  Remove code to generate REL
3154         relocations.
3155
3156 Thu Mar 26 13:32:17 1998  Ian Lance Taylor  <ian@cygnus.com>
3157
3158         * coffcode.h (coff_new_section_hook): Set the type and storage
3159         class in the native symbol information allocated for a new section
3160         symbol.
3161
3162 Thu Mar 26 10:13:41 1998  Nick Clifton  <nickc@cygnus.com>
3163
3164         * peicode.h: Chain together calls to
3165         coff_bfd_copy_private_bfd_data and
3166         coff_bfd_print_private_bfd_data.
3167
3168         * coff-arm.c: Add prototypes for
3169         coff_arm_bfd_print_private_bfd_data and
3170         coff_arm_bfd_copy_private_bfd_data.
3171
3172 Wed Mar 25 15:45:55 1998  Nick Clifton  <nickc@cygnus.com>
3173
3174         * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
3175         build.
3176
3177         * peicode.h: Call arm-coff private data functions after handling
3178         pe private data.
3179
3180         * coff-arm.c: Turn statics into globals so that they can be shared
3181         both pe and pei backends.
3182
3183 Wed Mar 25 15:19:38 1998  Ian Lance Taylor  <ian@cygnus.com>
3184
3185         * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
3186         plain numbers.
3187         (sunos_write_object_contents): Likewise.
3188         * aoutx.h (NAME(aout,machine_type)): Likewise.
3189         * coffcode.h (coff_set_arch_mach_hook): Likewise.
3190
3191 Wed Mar 25 13:59:24 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3192
3193         * archures.c (bfd_mach_m68*): Add definitions for various m68k
3194         variants.
3195         (bfd_default_scan): Remove m68k special cases.
3196         * bfd-in2.h: Rebuild.
3197         * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
3198         than plain numbers.
3199         * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
3200         * cpu-m68k.c (arch_info_struct): Likewise.  Add entry for
3201         m68k:68000.
3202         (bfd_m68k_arch): Set mach field to zero to signal no explicit
3203         selection, change printable_name to just "m68k" and make that the
3204         default instead of m68k:68020.
3205
3206         * aout-tic30.c (NAME): Define this to avoid multiple definitions
3207         from aoutx.h.
3208         (MY_get_section_contents): Define as aout_32_get_section_contents
3209         rather than NAME(aout,get_section_contents).
3210
3211         * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
3212
3213         * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
3214         and call bfd_default_set_arch_mach to do the real work.
3215
3216 Wed Mar 25 10:41:35 1998  Richard Henderson  <rth@cygnus.com>
3217
3218         * bout.c (BALX): Include return register g14 as part of the insn.
3219         (BALX_MASK): New.
3220         (calljx_callback): Use it.
3221
3222 Wed Mar 25 11:19:28 1998  Ian Lance Taylor  <ian@cygnus.com>
3223
3224         * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
3225         * libbfd.h: Rebuild.
3226
3227         * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
3228         byte_count to unsigned int.
3229         (mn10300_elf_relax_section): Initialize internal_relocs.  Remove
3230         unused local variables.
3231
3232         * evax-alpha.c (evax_close_and_cleanup): Remove unused local
3233         variables er and er1.
3234
3235         * cpu-v850.c: Include <ctype.h>.
3236         (scan): Case isdigit argument to unsigned char.
3237
3238         From Yan Meroth <YAN.MEROTH@st.com>:
3239         * ihex.c (ihex_scan): Add extbase variable so that getting an
3240         extended linear address record does not ignore any previous
3241         extended address.
3242         (ihex_write_object_contents): When writing out an extended linear
3243         address record, zero out any previous extended address.
3244
3245 Tue Mar 24 16:09:43 1998  Manfred Hollstein  <manfred@s-direktnet.de>
3246
3247         * ieee.c (do_one): Check section before dereferencing it.
3248         (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
3249         (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
3250
3251 Mon Mar 23 18:51:47 1998  Joel Sherrill  <joel@OARcorp.com>
3252
3253         * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
3254
3255 Mon Mar 23 14:23:36 1998  Nick Clifton  <nickc@cygnus.com>
3256
3257         * coff-arm.c: Add interworking functions to pe backends.
3258
3259 Fri Mar 20 18:47:20 1998  Ian Lance Taylor  <ian@cygnus.com>
3260
3261         * configure.in: Use AM_DISABLE_SHARED.
3262         * aclocal.m4, configure: Rebuild with libtool 1.2.
3263
3264 Fri Mar 20 11:25:41 1998  Nick Clifton  <nickc@cygnus.com>
3265
3266         * coff-arm.c (coff_arm_relocate_section): Better error messages
3267         when interowrking conflucts occur.  Courtesy of Jonathan Walton
3268         and Tony Thompson.
3269         (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
3270         relocations.  Patch courtesy of Jonathan Walton and Tony
3271         Thompson.
3272
3273 Fri Mar 20 02:26:43 1998  Richard Henderson  <rth@cygnus.com>
3274
3275         * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
3276         part of Feb 22 change controling when to override the existing
3277         symbol with the .plt entry.
3278
3279 Wed Mar 18 09:26:25 1998  Nick Clifton  <nickc@cygnus.com>
3280
3281         * config.bfd (targ_cpu): Add thumb-pe target.
3282
3283         * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
3284         functions in PE build.
3285
3286 Sun Mar  8 23:37:26 1998  Stan Cox  <scox@equinox.cygnus.com>
3287
3288         * config.bfd (sparclite-*-elf*): Added.
3289
3290 Mon Feb 23 19:31:19 1998  Ian Lance Taylor  <ian@cygnus.com>
3291
3292         * configure.in: Add elf.lo to elf shell variable.
3293         * Makefile.am (BFD_LIBS): Remove elf.lo.
3294         (BFD_LIBS_CFILES): Remove elf.c.
3295         (BFD32_BACKENDS): Add elf.lo.
3296         (BFD32_BACKENDS_CFILES): Add elf.c.
3297         * configure, Makefile.in: Rebuild.
3298
3299 1998-02-23 15:53  Richard Henderson  <rth@cygnus.com>
3300
3301         * elf32-i386.c (elf_i386_relocate_section): A pc-relative
3302         relocation against a now-local symbol should not have a dynamic
3303         relocation.
3304
3305 Mon Feb 23 16:17:08 1998  Ian Lance Taylor  <ian@cygnus.com>
3306
3307         * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
3308         COFF filehdr flags.
3309         (pe_print_private_bfd_data): Print PE flags.  From Mikey
3310         <jeffdb@netzone.com>.
3311
3312 Sun Feb 22 20:39:00 1998  Richard Henderson  <rth@cygnus.com>
3313
3314         * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
3315         a plt entry when we can determine that we authoritatively define
3316         the symbol.
3317
3318 Sun Feb 22 20:33:05 1998  Richard Henderson  <rth@cygnus.com>
3319
3320         * configure.in (COREFILE selection): Remove sparc-*-linux*.  They
3321         don't actually use trad-core, but a SunOS-style core file handled
3322         by gdb directly.
3323         * hosts/sparclinux.h: Remove.
3324
3325 Wed Feb 18 15:31:06 1998  Ian Lance Taylor  <ian@cygnus.com>
3326
3327         * peicode.h (pe_print_idata): If there is no .idata section, look
3328         for the import tables in some other section.  Make the initial
3329         label line up better with the data.  Print the import address
3330         table even if there is no import name table.  If the import
3331         address table holds actual addresses, print them.
3332
3333 Tue Feb 17 12:58:34 1998  Ian Lance Taylor  <ian@cygnus.com>
3334
3335         * libbfd.c (bfd_seek): If fseek fails, save errno around call to
3336         bfd_tell.  If errno is EINVAL, set bfd_error_file_truncated, not
3337         bfd_error_system_call.
3338
3339 Fri Feb 13 13:11:33 1998  Ian Lance Taylor  <ian@cygnus.com>
3340
3341         * Makefile.am (AUTOMAKE_OPTIONS): Define.
3342         * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
3343
3344         From H.J. Lu <hjl@gnu.org>:
3345         * Makefile.am (libbfd_la_LDFLAGS): Define.
3346         * Makefile.in: Rebuild.
3347
3348 Thu Feb 12 17:31:11 1998  Ian Lance Taylor  <ian@cygnus.com>
3349
3350         NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3351         * netbsd.h (MACHTYPE_OK): Define.
3352         (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
3353         calling N_SET_MACHTYPE, rather than having a switch.
3354         * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
3355         and M_ALPHA_NETBSD.
3356         * i386netbsd.c (MACHTYPE_OK): Don't define.
3357         (DEFAULT_MID): Define.
3358         * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
3359         (MACHTYPE_OK): Don't define.
3360         (DEFAULT_MID): Define.
3361         * m68knetbsd.c: (MACHTYPE_OK): Don't define.
3362         (DEFAULT_MID): Define.
3363         * ns32knetbsd.c (MACHTYPE_OK): Don't define.
3364         (DEFAULT_MID): Define.
3365         * sparcnetbsd.c (MACHTYPE_OK): Don't define.
3366         (DEFAULT_MID): Define.
3367
3368         NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3369         * vaxnetbsd.c: New file.
3370         * netbsd-core.c: Clean up.  Remove unused macros.  Use netbsd
3371         rather than netbsd_core.
3372         * targets.c (vaxnetbsd_vec): Declare.
3373         (bfd_target_vector): Add vaxnetbsd_vec.  If NETBSD_CORE is
3374         defined, add netbsd_core_vec.
3375         * configure.in: Set COREFILE for alpha*-*-netbsd* and
3376         powerpc-*-netbsd* to netbsd-core.lo.  If COREFILE is
3377         netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
3378         * config.bfd (alpha*-*-netbsd*): New target.
3379         * Makefile.am: Rebuild dependencies.
3380         (BFD32_BACKENDS): Add vaxnetbsd.lo.
3381         (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
3382         * configure, Makefile.in: Rebuild.
3383
3384         * configure.host: Remove the old shared library build stuff.  We
3385         now use libtool instead.
3386
3387 Wed Feb 11 17:13:09 1998  Richard Henderson  <rth@cygnus.com>
3388
3389         * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
3390
3391 Tue Feb 10 19:23:28 1998  H.J. Lu  <hjl@gnu.org>
3392
3393         * configure.in: Take stab-syms.lo out of sparclinux_vec list.
3394         * configure: Rebuild.
3395
3396 Tue Feb 10 15:16:38 1998  Nick Clifton  <nickc@cygnus.com>
3397         * elf32-v850.c (remember_hi16s_reloc): New function.
3398         (find_remembered_hi16s_reloc): New function.
3399         (v850_elf_store_addend_in_insn): Use the above new functions to
3400         match up HI6S relocs with LO16 relocs.
3401
3402 Tue Feb 10 15:01:39 1998  Ian Lance Taylor  <ian@cygnus.com>
3403
3404         * configure.in: Change -linux* to -linux-gnu*.
3405         * config.bfd, configure.host: Likewise.
3406         * configure: Rebuild.
3407
3408 Mon Feb  9 19:40:59 1998  Nick Clifton  <nickc@cygnus.com>
3409
3410         * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
3411         LO16/HI16S bug and improve comments about what is going on.
3412
3413 Sat Feb  7 15:27:03 1998  Ian Lance Taylor  <ian@cygnus.com>
3414
3415         * configure, aclocal.m4: Rebuild with new libtool.
3416
3417 Fri Feb  6 14:48:20 1998  Nick Clifton  <nickc@cygnus.com>
3418
3419         * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
3420         when merging v850 code into v850e/v850ea code.  Do not initialise
3421         output flags if the input is the default architecture.
3422
3423 Fri Feb  6 11:50:22 1998  Jeffrey A Law  (law@cygnus.com)
3424
3425         * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
3426         get the size from bfd_arch_bits_per_address instead of directly
3427         from the isa.
3428
3429 Thu Feb  5 14:21:34 1998  Michael Meissner  <meissner@cygnus.com>
3430
3431         * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
3432         to wrap, just return all 1's bits instead.
3433         * libbfd.h: Regenerate.
3434
3435 Thu Feb  5 11:51:05 1998  Ian Lance Taylor  <ian@cygnus.com>
3436
3437         * coff-i386.c (coff_pe_i386_relocate_section): New static function
3438         if COFF_WITH_PE.
3439         (coff_relocate_section): If COFF_WITH_PE, define as
3440         coff_pe_i386_relocate_section.
3441         * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
3442         skip empty sections, to match coff_write_object_contents.
3443
3444         * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
3445         rather than swapping out r_offset twice.  From Luke Deller
3446         <luked@cse.unsw.edu.au>.
3447
3448 Wed Feb  4 19:11:28 1998  Ian Lance Taylor  <ian@cygnus.com>
3449
3450         * configure.in: Set libtool_enable_shared rather than
3451         libtool_shared.  Remove diversion hack.
3452         * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
3453         with new libtool.
3454
3455 Wed Feb  4 16:10:21 1998  Brent Baccala  <baccala@freesoft.org>
3456
3457         * syms.c (struct stab_cache): Define.
3458         (struct stab_find_info): Remove cached_offset, cached_stab,
3459         cached_str, and cached_stroff fields.  Add file_cache,
3460         function_cache, and line_cache fields.
3461         (_bfd_stab_section_find_nearest_line): Use extensive caching to
3462         speed up searches.
3463
3464 Wed Feb  4 13:34:22 1998  Ian Lance Taylor  <ian@cygnus.com>
3465
3466         * peicode.h (pe_print_idata): Check for import of ordinal rather
3467         than name.
3468         (pe_print_edata): If there is no .edata section, look for the
3469         export data in some other section.
3470
3471 Mon Feb  2 20:05:42 1998  Jason Molenda  (crash@bugshack.cygnus.com)
3472
3473         * configure.in: Change version to 2.8.4.
3474         * configure: Regenerated.
3475
3476 Mon Feb  2 17:39:39 1998  Steve Haworth  <steve@pm.cse.rmit.EDU.AU>
3477
3478         Add tms320c30 support:
3479         * cpu-tic30.c: New file.
3480         * aout-tic30.c: New file.
3481         * coff-tic30.c: New file.
3482         * archures.c (bfd_arch_tic30): Define.
3483         (bfd_tic30_arch): Declare.
3484         (bfd_archures_list): Add bfd_tic30_arch.
3485         * targets.c (bfd_target_vector): Add tic30_aout_vec and
3486         tic30_coff_vec.
3487         * reloc.c (BFD_RELOC_TIC30_LDP): Define.
3488         * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
3489         (coff_set_flags): Likewise.
3490         * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
3491         * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
3492         * Makefile.am: Rebuild dependencies.
3493         (ALL_MACHINES): Add cpu-tic30.lo.
3494         (ALL_MACHINES_CFILES): Add cpu-tic30.c.
3495         (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
3496         (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
3497         * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
3498
3499 Mon Feb  2 12:25:12 1998  Nick Clifton  <nickc@cygnus.com>
3500
3501         * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
3502         to lag behind LO16 reloc by a couple of instructions.
3503
3504 Mon Feb  2 14:09:46 1998  Ian Lance Taylor  <ian@cygnus.com>
3505
3506         * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
3507         make to reexamine the file timestamp.
3508         ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
3509
3510         * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
3511         0x100000.
3512
3513 Fri Jan 30 19:07:07 1998  Geoff Keating  <geoffk@ozemail.com.au>
3514
3515         * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
3516         to create .dynsbss and .rela.sbss sections.
3517         (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
3518         copied from dynamic objects into .sbss.
3519         (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
3520         use it.  Correct typo of .rela.sdata2.
3521         (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
3522         put the data, which may now be in .sbss.
3523         (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
3524         (elf_backend_create_dynamic_sections): Define as
3525         ppc_elf_create_dynamic_sections.
3526
3527         * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
3528         against _GLOBAL_OFFSET_TABLE_.
3529         (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
3530         shared libraries which refer to local symbols.  Make sure that the
3531         test for allocating space for a reloc in a shared object is the
3532         same as the test for emitting a reloc.
3533
3534 Thu Jan 29 15:55:35 1998  J.J. van der Heijden  <J.J.vanderHeijden@student.utwente.nl>
3535
3536         * config.bfd (i[3456]-*-mingw32*): New target.
3537         * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
3538         * aclocal.m4, configure: Rebuild.
3539
3540 Wed Jan 28 13:41:26 1998  Ian Lance Taylor  <ian@cygnus.com>
3541
3542         * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
3543         have a bfd_object.
3544
3545 Tue Jan 27 21:43:55 1998  Richard Henderson  <rth@cygnus.com>
3546
3547         Sparc v9 ABI compliant PLT:
3548         * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
3549         (plt_templates, sparc64_elf_build_plt_entry): Delete.
3550         (LARGE_PLT_THRESHOLD): New define.
3551         (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
3552         (sparc64_elf_build_plt): New function.
3553         (sparc64_elf_plt_entry_offset): Likewise.
3554         (sparc64_elf_plt_ptr_offset): Likewise.
3555         (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
3556         contain the index for convenience.  Skip the initial entries
3557         in .rela.plt.
3558         (sparc64_elf_size_dynamic_sections): Zero the allocated contents
3559         memory for the benefit of .rela.plt.
3560         (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
3561         (sparc64_elf_finish_dynamic_symbol): Kill template stuff.  Use
3562         sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
3563         (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
3564         Call sparc64_elf_build_plt.
3565         (elf_backend_want_got_plt): No.
3566         (elf_backend_plt_readonly): No.
3567         (elf_backend_plt_alignment): 8.
3568
3569         * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
3570         * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
3571         * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
3572         to be called.
3573
3574 Tue Jan 27 21:45:15 1998  Jeffrey A Law  (law@cygnus.com)
3575
3576         * archures.c (bfd_mach_mips*): Add definitions for various MIPS
3577         processors.
3578         * cpu-mips.c (arch_info_struct): Add mips variants.
3579         * bfd-in2.h: Rebuilt.
3580
3581 Tue Jan 27 15:06:04 1998  Nick Clifton  <nickc@cygnus.com>
3582
3583         * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
3584         t2a3_b_insn.
3585
3586 Tue Jan 27 12:47:27 1998  Robert Lipe  <robertl@dgii.com>
3587
3588         * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
3589         (i[3456]86sco3.2v5*coff): New target.
3590
3591 Mon Jan 26 15:41:30 1998  Ian Lance Taylor  <ian@cygnus.com>
3592
3593         * bfd-in2.h: Rebuild with changes to chew--tab expansion.
3594
3595 Thu Jan 22 21:26:48 1998  Richard Henderson  <rth@cygnus.com>
3596
3597         * bfd.c (bfd_get_error_handler): Add orthogonal function.
3598         * bfd-in2.h: Regenerate.
3599
3600 Thu Jan 22 21:13:39 1998  Richard Henderson  <rth@cygnus.com>
3601
3602         * tekhex.c (tekhex_write_object_contents): Check for no symbols.
3603
3604 Wed Jan 21 21:19:03 1998  Ian Lance Taylor  <ian@cygnus.com>
3605
3606         * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
3607         adjust addend for an output common symbol (from Jimmy Blair
3608         <jimmyb@wrs.com>).  If COFF_WITH_PE, adjust addend for PC relative
3609         defined symbol to counteract adjustment made in generic relocation
3610         code.
3611
3612         * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
3613
3614 Wed Jan 21 21:16:06 1998  Manfred Hollstein  <manfred@s-direktnet.de>
3615
3616         * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
3617         (GET_SCNDHR_NLNNO): Likewise.
3618
3619 Mon Jan 19 12:49:52 1998  Ian Lance Taylor  <ian@cygnus.com>
3620
3621         * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
3622
3623 Wed Jan 14 17:23:27 1998  Nick Clifton  <nickc@cygnus.com>
3624
3625         * elf32-m32r.c: Add macros to handle NOP insertion.
3626
3627 Wed Jan 14 16:15:22 1998  Richard Henderson  <rth@cygnus.com>
3628
3629         * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
3630         (xcoff_mark): Likewise.
3631         (xcoff_build_ldsyms): Mark absolute symbols.
3632
3633 Wed Jan 14 16:03:11 1998  Richard Henderson  <rth@cygnus.com>
3634
3635         * bout.c (b_out_write_object_contents): Sort symbols before output
3636         to keep {CALL,BAL}NAME symbols adjacent.
3637         (b_out_symbol_cmp): New function.
3638
3639 For older changes see ChangeLog-9697
3640 \f
3641 Local Variables:
3642 mode: change-log
3643 left-margin: 8
3644 fill-column: 74
3645 version-control: never
3646 End: