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