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