OSDN Git Service

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