2001-08-20 H.J. Lu <hjl@gnu.org>
[external/binutils.git] / bfd / ChangeLog
1 2001-08-20  H.J. Lu  <hjl@gnu.org>
2
3         * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
4         (elf_num_section_syms): New for num_section_syms.
5
6         * elf.c (elf_map_symbols): Set num_section_syms.
7         (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
8         the section symbol index.
9
10 2001-08-20  Nick Clifton  <nickc@cambridge.redhat.com>
11
12         * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
13         select the generic has table creator.  All elf backends need elf
14         specific fields in the hash table.
15
16 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
17
18         * archive.c (offsetof): Remove define.
19         * elf.c: Likewise.
20         * oasys.c: Likewise
21         * sysdep.h (offsetof): Define.
22
23 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
24
25         * bfd.c (bfd_get_gp_size): Return an unsigned int.
26         (bfd_set_gp_size): Make param unsigned.
27         * bfd-in2.h: Regenerate.
28         * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
29         than calling bfd_get_gp_size.
30         * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
31         * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
32
33 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
34
35         * linker.c (default_fill_link_order): Handle four byte fill value.
36
37 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
38
39         * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
40         prototype.
41         * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
42
43         * elf64-mips.c (UNUSED_RELOC): Define.
44         (mips_elf64_howto_table_rel): Use it.
45         (mips_elf64_howto_table_rela): Here too.
46         (mips_elf64_write_relocs): Fix signed/unsigned warning.
47
48         * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
49         silence warning.
50         * coffgen.c (coff_print_symbol): Fix warnings.
51         (coff_find_nearest_line): Likewise.
52         * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
53         * coff-alpha.c (alpha_convert_external_reloc): Likewise.
54         * format.c (bfd_check_format_matches): Likewise.
55         (bfd_set_format): Likewise.
56         * coff-ia64.c: Add missing prototypes.
57         * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
58         signed to silence warnings.
59         (elf64_alpha_relocate_section): Likewise.
60         (elf64_alpha_find_reloc_at_ofs): Fix warnings.
61         (elf64_alpha_add_symbol_hook): Likewise.
62         (elf64_alpha_final_link): Likewise.
63         (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
64         (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
65         (elf64_alpha_size_got_sections): Likewise.
66         * elfxx-ia64.c: Add missing prototypes.
67         (elfNN_ia64_relocate_section): Fix warning.
68         (elfNN_ia64_unwind_entry_compare): Make params const.
69
70 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
71
72         * config.bfd (targ64_selvecs): New.
73         <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
74
75         * bfd-in.h (BFD_VERSION): Remove wrong comment.
76         (BFD_DEFAULT_TARGET_SIZE): New.
77         (BFD_ARCH_SIZE): Comment.
78         * configure.in (target_size): New.  Set instead of target64 in
79         selvecs case statement.  Set target64 from it.
80         (bfd_default_target_size): New.  Set from taget_size. AC_SUBST.
81         * bfd-in2.h: Regenerate.
82         * configure: Regenerate.
83
84 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
85
86         * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
87         (bfd_errmsgs): Add corresponding message.
88         * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
89         finding an archive that contains different format object files.
90         Return bfd_error_wrong_object_format for this case.
91         * format.c: Formatting fixes.  s/CONST/const/.
92         (bfd_check_format_matches): Accept archives that give
93         bfd_error_wrong_object_format if no full match is found.  Tidy
94         code handling matching_vector.  Don't return a pointer to freed
95         memory in `matching'.  Handle ambiguous matches as for partial
96         archive matches.
97         * bfd-in2.h: Regenerate.
98
99 2001-08-15  Alan Modra  <amodra@bigpond.net.au>
100
101         * libieee.h (common_header_type): Add last_byte field.
102
103         * ieee.c: Add missing prototypes.  Some format fixes.
104         (struct output_buffer_struct): Move for availability to prototypes.
105         (ieee_part_after): New function.
106         (ieee_slurp_debug): Use it here.
107         (ieee_seek): Pass in ieee_data_struct rather than bfd.  Use
108         ieee_part_after to set last_byte to one past end of current part.
109         Update callers.
110         (ieee_pos): Pass in ieee_data_struct rather than bfd.
111         Update callers.
112         (parse_expression): Don't go beyond the end of the current part.
113         (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
114         (ieee_get_symtab_upper_bound, ieee_get_symtab,
115         ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
116         ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
117         ieee_set_section_contents, ieee_write_object_contents,
118         ieee_make_empty_symbol): Make static.
119         (ieee_archive_p): Correct comments regarding bfd_read.
120         (ieee_object_p): Similarly.
121         (ieee_mkobject): Move it.  Clear output_ptr_start, output_ptr,
122         output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
123         input_bfd, output_bfd, output_buffer.
124         (do_as_repeat): Write out ieee_set_current_pc_enum value as for
125         do_with_relocs, ie. as a symbol for relocatable files.
126         (ieee_vec): Add comments showing functions referenced by macros.
127         
128 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
129
130         * aout-tic30.c: Add missing prototypes.  Fix formatting.
131         * aout-ns32k.c: Add missing prototypes.  Fix formatting.
132         * peXXigen.c: Add missining prototypes.  Fix formatting.
133         * aout-adobe.c: Add missining prototypes.  Fix formatting.
134
135 2001-08-13  Nick Clifton  <nickc@cambridge.redhat.com>
136
137         * elf32-v850.c: Add missing function prototypes.
138         Fix some formatting.
139
140         * cpu-v850.c: Add missing function prototype.
141         Fix some formatting.
142
143 2001-08-11  Nick Clifton  <nickc@cambridge.redhat.com>
144
145         * elf-bfd.h (struct elf_backend_data): Add new fields
146         'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
147         (bfd_elf_sprintf_vma): Rename function prototype to
148         '_bfd_elf_sprintf_vma'.
149         (bfd_elf_fprintf_vma): Rename function prototype to
150         '_bfd_elf_fprintf_vma'.
151         * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
152         directly, instead indirect via the elf_backend_data structure.
153         (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
154         instead indirect via the elf_backend_data structure.
155         * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
156         (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
157         * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
158         already defined.
159         (elf_backend_fprintf_vma): Initialise if not already defined.
160         (struct elf_backend_data): Initialise the
161         elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
162
163 2001-08-10  Andreas Jaeger  <aj@suse.de>
164
165         * elf64-sparc.c: Add missing prototypes.
166         * elf32-cris.c: Likewise.
167         * elf32-i370.c: Likewise.
168         * elf64-hppa.c: Likewise.
169         * elf64-s390.c: Likewise.
170
171 2001-08-10  Andreas Jaeger  <aj@suse.de>
172
173         * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
174         Add prototypes where needed.
175
176 2001-08-10  H.J. Lu  <hjl@gnu.org>
177
178         * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
179         (bfd_fprintf_vma): Likewise.
180
181 2001-08-10  H.J. Lu  <hjl@gnu.org>
182
183         * bfd.c (bfd_sprintf_vma): Don't return void.
184         (bfd_fprintf_vma): Likewise.
185
186 2001-08-10  Andreas Jaeger  <aj@suse.de>
187
188         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
189         to build warnings.
190         * configure: Regenerate.
191
192 2001-08-10  Alan Modra  <amodra@bigpond.net.au>
193
194         * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
195         warning if not BFD64.  Add braces so emacs auto format works.
196         (bfd_elf_fprintf_vma): Likewise.
197
198         * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
199         of _xcoff_swap_ld*.
200         * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
201         param to agree with libxcoff.h.
202         (xcoff_swap_ldhdr_out): Likewise.
203         (xcoff_swap_ldsym_in): Likewise.
204         (xcoff_swap_ldsym_out): Likewise.
205         (xcoff_swap_ldrel_in): Likewise.
206         (xcoff_swap_ldrel_out): Likewise.
207         (xcoff_create_csect_from_smclas): Likewise.
208         * coff64-rs6000.c: Add missing prototypes.
209         (xcoff64_swap_ldhdr_in): Modify type of external param to agree
210         with libxcoff.h.
211         (xcoff64_swap_ldhdr_out): Likewise.
212         (xcoff64_swap_ldsym_in): Likewise.
213         (xcoff64_swap_ldsym_out): Likewise.
214         (xcoff64_swap_ldrel_in): Likewise.
215         (xcoff64_swap_ldrel_out): Likewise.
216         (xcoff64_ppc_relocate_section): Make static.
217         (xcoff64_slurp_armap): Likewise.
218         (xcoff64_archive_p): Likewise.
219         (xcoff64_openr_next_archived_file): Likewise.
220         (xcoff64_sizeof_headers): Likewise.
221         (xcoff64_is_lineno_count_overflow): Likewise.
222         (xcoff64_is_reloc_count_overflow): Likewise.
223         (xcoff64_loader_symbol_offset): Likewise.
224         (xcoff64_loader_reloc_offset): Likewise.
225         * elf64-gen.c: Add missing prototypes.
226
227 2001-08-09  H.J. Lu  <hjl@gnu.org>
228
229         * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
230         (bfd_elf_fprintf_vma): Likewise.
231
232 2001-08-09  H.J. Lu  <hjl@gnu.org>
233
234         * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
235         to ...
236         * elf-bfd.h: Here.
237         * bfd-in2.h: Regenerated.
238
239 2001-08-09  H.J. Lu  <hjl@gnu.org>
240
241         * bfd-in.h (bfd_sprintf_vma): New prototype.
242         (bfd_fprintf_vma): Likewise.
243         (bfd_elf_sprintf_vma): Likewise.
244         (bfd_elf_fprintf_vma): Likewise.
245         (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
246         * bfd-in2.h: Regenerated.
247
248         * bfd.c (bfd_sprintf_vma): New. Defined.
249         (bfd_fprintf_vma): Likewise.
250
251         * elf.c (bfd_elf_sprintf_vma): New. Defined.
252         (bfd_elf_fprintf_vma): Likewise.
253
254 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
255
256         * coff-rs6000.c: Add missing prototypes.
257         (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
258         xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
259         xcoff_loader_reloc_offset): Make static.
260         * dwarf1.c: Add missing prototypes.
261         * dwarf2.c: Add missing prototypes.
262         (struct abbrev_info): Move definition.
263         (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
264         * elf.c: Add missing prototypes.
265         * elf32-gen.c: Likewise.
266         * elf32-i386.c: Likewise.
267         * elf32-ppc.c: Likewise.
268         (ppc_elf_sort_rela): Use PTR instead of "void *".
269         * elflink.h: Add missing prototypes.  Formatting fixes.
270         * merge.c: Add missing prototypes.
271         (last4_eq): Use PTR instead of "void *".
272         (last_eq): Likewise.
273         * syms.c: Add missing prototypes.
274
275 2001-08-09  Nick Clifton  <nickc@cambridge.redhat.com>
276
277         * bfd.c: Fix formatting.
278         * bfd-in2.h: Regenerate.
279
280 2001-08-09  Nick Clifton  <nickc@cambridge.redhat.com>
281
282         * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
283         true (this target uses REL relocations) and 'pcrel_offset' to
284         false (the PC is implied, not stored in the offset).
285
286 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
287
288         1999-10-19  Linus Nordberg  <linus@swox.se>
289         * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
290         * elfxx-target.h (elf_backend_want_got_sym): Define.
291         (elfNN_bed): Add elf_backend_want_got_sym.
292         * elflink.c (_bfd_elf_create_got_section): Define
293         _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
294
295 2001-08-08  Alexandre Oliva  <aoliva@redhat.com>
296
297         * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
298         (find_rela_addend): New function.
299         (parse_comp_unit): Call it to find the abbrev offset addend.
300         (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
301         members of dwarf2_debug as debugging information is read.
302
303 2001-08-07  Nick Clifton  <nickc@cambridge.redhat.com>
304
305         * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
306         targets as well as sh-pe.
307
308 2001-08-03  Ben Harris <bjh21@netbsd.org>
309
310         * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
311         reloc from start of section when computing value for R_ARM_REL32
312         reloc.
313
314 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
315
316         From  H.J. Lu  <hjl@gnu.org>
317         * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
318         keep relocs for undefined syms if there are no dynamic sections in
319         executable.
320         * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
321
322 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
323
324         * cofflink.c (coff_link_check_ar_symbols): also search for
325         __imp__symbol as well as _symbol.
326         * linker.c (_bfd_generic_link_add_archive_symbols): also
327         search for __imp__symbol as well as _symbol.
328
329 2001-08-01  Adam Nemet  <anemet@lnxw.com>
330
331         * elf.c (elf_sort_sections): Return zero only as the last step.
332
333 2001-08-01  Nick Clifton  <nickc@cambridge.redhat.com>
334
335         * config.bfd (arm-vxworks): Change name of define from VXWORKS to
336         ARM_COFF_BUGFIX.
337         (arm-epoc-pe): Define ARM_COFF_BUGFIX.
338         coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
339         ARM_COFF_BUGFIX.
340
341 2001-07-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
342
343         * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
344         to match corresponding bfd_coff_backend data member.
345
346 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
347
348         * Makefile.am: Update dependencies with "make dep-am".
349         * Makefile.in: Regenerate
350
351 2001-07-15  H.J. Lu  <hjl@gnu.org>
352
353         * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
354         (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
355         * Makefile.in: Regenerate.
356
357 2001-07-11  H.J. Lu  <hjl@gnu.org>
358
359         * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
360         flags when creating the reloc section if the ALLOC flag in the
361         source section is set.
362
363 2001-07-11  Steve Ellcey  <sje@cup.hp.com>
364
365         * reloc.c (bfd_reloc_code_type): Add IA64 relocs
366         BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
367         * bfd-in2.h: Regenerate.
368         * libbfd.h: Regenerate.
369         * elfxx-ia64.c (ia64_howto_table): Define how to handle
370         new relocations.
371         (elfNN_ia64_reloc_type_lookup): Handle new relocations.
372         (elfNN_ia64_check_relocs): Likewise.
373         (elfNN_ia64_install_value): Likewise.
374         (elfNN_ia64_relocate_section): Likewise.
375
376 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
377
378         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
379         R_SPARC_UA64.
380         (elf32_sparc_check_relocs): Likewise.
381         Only create .rela section for alloced sections in shared libraries.
382         (elf32_sparc_relocate_section): Likewise.
383         Remove redundant check.
384         Optimize unaligned reloc usage.
385         * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
386         check.
387
388 2001-07-11  H.J. Lu  <hjl@gnu.org>
389
390         * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
391         ALLOC|LOAD flags as the source section for debugging sections
392         when creating the reloc section.
393
394 2001-07-05  Jim Wilson  <wilson@redhat.com>
395
396         * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
397         the section of the bigger symbol.
398
399         * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
400
401 2001-07-05  Nick Clifton  <nickc@cambridge.redhat.com>
402
403         * peicode.h (coff_swap_scnhdr_in): For sections containing
404         uninitialised data, only set their size to s_paddr if this does
405         not reset their size to zero.  MS's latest compilers will set
406         s_paddr to zero.
407
408 2001-07-04  H.J. Lu  <hjl@gnu.org>
409
410         * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
411         Handle bfd_mach_mips4400, bfd_mach_mips4600 and
412         bfd_mach_mips5000.
413
414 2001-07-03  Mark Elbrecht  <snowball3@softhome.net>
415
416         * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
417
418         * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
419         sections being discarded.
420
421 2001-06-30  Alan Modra  <amodra@bigpond.net.au>
422
423         * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
424         instead of _bfd_elfcore_section_from_phdr.
425         * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
426         * elf.c (_bfd_elfcore_section_from_phdr): Remove.
427         (_bfd_elfcore_make_pseudosection): Expedite tail-call.
428         (elfcore_grok_prstatus): Likewise.
429         (elfcore_grok_lwpstatus): Likewise.
430         (bfd_get_elf_phdr_upper_bound): Likewise.
431         (elfcore_make_note_pseudosection): Formatting.
432         (_bfd_elfcore_strndup): Formatting.
433         * elf32-mips.c (mips_elf_sym_is_global): Formatting.
434         (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
435
436 2001-06-29  Daniel Jacobowitz  <drow@mvista.com>
437
438         * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
439         and _bfd_elfcore_strndup.
440         (struct elf_backend_data): Add elf_backend_grok_prstatus
441         and elf_backend_grok_psinfo.
442         * elf.c (_bfd_elfcore_make_pseudosection): New function.
443         (elfcore_grok_prstatus): Use it.
444         (elfcore_make_note_pseudosection): Likewise.
445         (elfcore_strndup):  Rename to...
446         (_bfd_elfcore_strndup): Here, and make global.
447         (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
448         (elfcore_grok_note): Call elf_backend_grok_prstatus
449         and elf_backend_grok_psinfo if available.
450         * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
451         (_bfd_elf32_mips_grok_psinfo): New function.
452         (elf_backend_grok_prstatus): Define.
453         (elf_backend_grok_psinfo): Define.
454         * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
455         (elf_backend_grok_psinfo): Likewise.
456         (elfNN_bed): Include elf_backend_grok_prstatus and
457         elf_backend_grok_psinfo.
458
459 2001-06-29  H.J. Lu  <hjl@gnu.org>
460
461         * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
462         hplink->sgot is NULL before filling GOT.  Check if hplink->splt
463         is NULL before filling PLT.
464
465 2001-06-29  Alan Modra  <amodra@bigpond.net.au>
466
467         * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
468
469 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
470
471         * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
472         here..
473         (elf32_hppa_adjust_dynamic_symbol): ..nor here..
474         (allocate_plt_and_got_and_discard_relocs): .. instead do so here
475         after gc has run.
476
477         * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
478         (IS_ABSOLUTE_RELOC): Define.
479         (elf32_hppa_link_hash_entry): Always include reloc_entries field.
480         (hppa_link_hash_newfunc): Always init it.
481         (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
482         create COPY relocs only when the reloc is in a read-only section.
483         Instead, allocate space for a dynamic reloc to reference the
484         library symbol directly.  Keep track of space we allocate using
485         relocs_entries.
486         (hppa_discard_copies): Delete, and move code to..
487         (allocate_plt_and_got): ..here.  Rename to
488         allocate_plt_and_got_and_discard_relocs.  Remove unneeded dynamic
489         relocs for non-shared link.
490         (elf32_hppa_size_dynamic_sections): Update calls to above.
491         (elf32_hppa_relocate_section): Write out the dynamic relocs used
492         in lieu of COPY relocs.
493
494         * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
495         here..
496         (elf_i386_adjust_dynamic_symbol): ..nor here..
497         (allocate_plt_and_got_and_discard_relocs): .. instead do so here
498         after gc has run.
499         (elf_i386_size_dynamic_sections): Fix a comment.
500         (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
501         involved in writing reloc out.
502
503 2001-06-25  Alan Modra  <amodra@bigpond.net.au>
504
505         * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
506         Ensure syms are dynamic if we might be emitting a reloc.
507         (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
508         for undefweak or undefined syms..
509         (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
510
511         * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
512         relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
513         (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
514         redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
515
516 2001-06-24  H.J. Lu  <hjl@gnu.org>
517
518         * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
519         strncasecmp/strcasecmp instead of strncmp/strcmp.
520
521 2001-06-23  H.J. Lu  <hjl@gnu.org>
522
523         * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
524         Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
525         in the regular object file and treat the weak definition as
526         the normal one.
527
528 2001-06-23  Alan Modra  <amodra@bigpond.net.au>
529
530         * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
531         unresolved_reloc test to exclude cases where we use "relocation"
532         before setting it to point into the .got.  Reinstate fudge for
533         unresolved relocs in debugging sections.
534
535         * elf32-i386.c (elf_i386_relocate_section): Replace ugly
536         complicated tests for unresolvable relocs with a simple direct
537         scheme using "unresolved_reloc" var.
538
539         * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
540         elf_i386_dyn_relocs.  Update comment.
541         (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
542         dyn_relocs.
543         (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
544         others to aborts.
545         (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
546         abort.
547         (elf_i386_size_dynamic_sections): Likewise.
548         (elf_i386_finish_dynamic_symbol): Likewise.
549         (elf_i386_finish_dynamic_sections): Likewise.
550         (elf_i386_relocate_section): Likewise.  Tidy R_386_GOT32 and error
551         handling code.
552
553         Avoid creating COPY relocs if possible.
554         * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
555         which .got created.  Mark symbols used by R_386_32 and R_386_PC32
556         relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
557         reloc is in a read-only section.  Instead, allocate space for a
558         dynamic reloc to reference the library symbol directly.  Keep
559         track of space we allocate using pcrel_relocs_copied.
560         (discard_copies): Delete, and move code to ..
561         (allocate_plt_and_got): ..here.  Rename to
562         allocate_plt_and_got_and_discard_relocs.  Remove unneeded dynamic
563         relocs for non-shared link.
564         (elf_i386_size_dynamic_sections): Update calls to above functions.
565         (elf_i386_relocate_section): Write out the dynamic relocs.  Add
566         more ugly logic to avoid "unresolvable relocation" error.  Use
567         htab shortcut in place of elf_hash_table macro.
568         (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
569         not always be created now.
570
571 2001-06-20  Bo Thorsen  <bo@suse.co.uk>
572
573         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
574         shared libraries.
575
576 2001-06-18  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
577
578         * configure.host (mips64-*-linux): Reformat.
579
580 2001-06-21  Alan Modra  <amodra@bigpond.net.au>
581
582         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
583         allocate local .got space.  Use shortcuts from hash table for .got
584         and .plt rather than comparing section names.
585         (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
586         adjusting index into local_got_refcounts to document what we are
587         really doing.
588         (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
589         Tidy .got and .plt error checking.
590
591 2001-06-20  Catherine Moore  <clm@redhat.com>
592
593         * elf-bfd.h (struct elf_backend_data):
594         elf_backend_emit_relocs: New field: Function for emitting
595         relocs.
596         elf_backend_count_relocs: New field: Function for determining
597         the number of relocs to be emitted.
598         * elfxx-target.h: Provide default (NULL) values for
599         elf_backend_emit_relocs and elf_backend_count_relocs.
600         * elflink.h (elf_link_size_reloc_section): Make the hash table
601         big enough to hold the relocs counted by either reloc_count or
602         o->reloc_count.
603         (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
604         should be emitted, either because of a command line option
605         stored in the info structure or because the target provides a
606         special reloc emitting function.
607         If the target provides a reloc counting function use it,
608         unless performing a relocatable link or emitting all relocs.
609         Also set the SEC_RELOC flag on any output section which will
610         contain relocs.
611         (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
612         should be emitted, either because of a command line option
613         stored in the info structure or because the target provides a
614         special reloc emitting function.
615         If the target provides a reloc emitting function, use it,
616         unless performing a relocatable link or emitting all relocs.
617
618 2001-06-20  H.J. Lu  <hjl@gnu.org>
619
620         * elf32-i386.c (elf_i386_size_dynamic_sections): Always
621         allocate local .got space.
622
623 2001-06-19  Andreas Jaeger  <aj@suse.de>
624
625         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
626         dynamic symbols.
627
628 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
629
630         * elflink.h (struct elf_assign_sym_version_info): Remove member
631         export_dynamic.  All users changed to use info member.
632         NAME(bfd_elf,size_dynamic_sections)): Remove parameter
633         export_dynamic, instead use member in parameter info.
634         * bfd-in.h (bfd_elf32_size_dynamic_sections,
635         bfd_elf64_size_dynamic_sections): Update prototype.
636         * bfd-in2.h: Regenerate.
637
638 2001-06-18  H.J. Lu  <hjl@gnu.org>
639
640         * elflink.h (elf_info_failed): Add a new field, verdefs.
641         (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
642         elf_export_symbol.
643         (elf_export_symbol): Check eif->verdefs to decide if a symbol
644         should be exported.
645
646 2001-06-17  H.J. Lu  <hjl@gnu.org>
647
648         * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
649         readonly_reloc, to record if a relocation in the .rel.dyn
650         section is against a read-only section.
651         (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
652         field to false.
653         (_bfd_mips_elf_check_relocs): Record if there is a relocation
654         in the .rel.dyn section against a read-only section by setting
655         DF_TEXTREL or readonly_reloc.
656         (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
657         it is true.
658         (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
659         there is a relocation in the .rel.dyn section against a
660         read-only section.
661         (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
662         DF_TEXTREL is set.
663
664 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
665
666         * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
667         function.  Move flagword result into parameter list.  Remove
668         comment about setting bfd_error_handler to intercept failure
669         results.
670         * coffgen.c (make_a_section_from_file): Examine result of
671         calling bfd_coff_styp_to_sec_flags and pass a failure back to
672         caller.
673         * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
674         function.  Move flagword result into parameter list.
675         * libcoff.h: Regenerate.
676         * libecoff.h: Regenerate.
677
678 2001-06-13  Nick Clifton  <nickc@cambridge.redhat.com>
679
680         * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
681         section is going to follow it.
682
683 2001-06-12  Catherine Moore  <clm@redhat.com>
684
685         * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
686         with the file_align entry from elf_backend_data.
687         (elf_gc_smash_unused_vtentry_relocs): Likewise.
688         (elf_gc_record_vtentry): Likewise.
689
690 2001-06-10  Alan Modra  <amodra@bigpond.net.au>
691
692         * elflink.h: Whitespace changes.
693         (elf_link_read_relocs_from_section): Use "unsigned int" iterator
694         rather than "unsigned char".
695         (elf_link_output_relocs): Likewise.
696         (elf_link_input_bfd): Likewise.
697         (elf_reloc_link_order): LIkewise.
698         * elf.c: s/CONST/const/.  Whitespace changes.
699         * elf32-mips.c: Formatting fix.
700
701         * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
702         * Makefile.in: Regenerate.
703         * po/Make-in: Remove trailing tab.
704
705 2001-06-09  Philip Blundell  <philb@gnu.org>
706
707         * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
708         change.
709         (elf32_arm_plt_entry): Likewise.
710
711 2001-06-08  H.J. Lu  <hjl@gnu.org>
712
713         * elf.c (swap_out_syms): Keep names for global section symbols.
714
715 2001-06-07  H.J. Lu  <hjl@gnu.org>
716
717         * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
718         MIPS-based machines need it.
719
720 2001-06-07  H.J. Lu  <hjl@gnu.org>
721
722         * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
723         for SGI only.
724
725         * config.bfd: Remove ecoff from Linux/mips.
726
727 2001-06-07  Andreas Jaeger  <aj@suse.de>
728
729         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
730         assertion.
731         (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
732         alignment of 8 for .rela sections; handle further relocations.
733
734 2001-06-06  Christian Groessler <cpg@aladdin.de>
735
736         * coff-z8k.c: Fix formatting.
737         Fix howtos: howto->size was always 1.
738
739 2001-06-05  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
740
741         * configure.host (mips64*-*-linux*): Define.
742
743 2001-06-05  Alan Modra  <amodra@bigpond.net.au>
744
745         * elf32-i386.c (elf_i386_discard_copies): Rename to
746         discard_copies, and use elf_link_hash_entry arg rather than
747         elf_i386_link_hash_entry.
748         (elf_i386_link_hash_traverse): Delete.
749         (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
750         Tidy sizing of dynamic sections.
751         (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
752         possible .plt entries.
753         (elf_i386_gc_sweep_hook): Likewise.
754         (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
755         everything with plt.refcount <= 0.
756
757         * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
758         .relgot space here.
759         (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
760         (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
761         .rel.plt here..
762         (allocate_plt_and_got): ..instead do it all here.  New function.
763         (elf_i386_size_dynamic_sections): Allocate local .got space and
764         call allocate_plt_and_got.  No need to zap .relgot if not dynamic.
765         (bfd_elf32_bfd_final_link): Delete.  (ie. use regular final link
766         rather than gc variety).
767         (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
768         (elf_i386_relocate_section): Use it here and correct handling of
769         R_386_GOT32.  Provide section and offset for "unresolvable
770         relocation" error message.
771         (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
772
773         * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
774         sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
775         (elf_i386_link_hash_table_create): Init them.
776         (create_got_section): New function.
777         (elf_i386_create_dynamic_sections): New function.
778         (elf_backend_create_dynamic_sections): Set to above.
779         (elf_i386_check_relocs): Use shortcuts from hash table rather than
780         calling bfd_get_section_by_name.
781         (elf_i386_gc_sweep_hook): Likewise.
782         (elf_i386_adjust_dynamic_symbol): Likewise.
783         (elf_i386_size_dynamic_sections): Likewise.
784         (elf_i386_relocate_section): Likewise.
785         (elf_i386_finish_dynamic_sections): Likewise.
786
787         * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
788
789 2001-06-02  H.J. Lu  <hjl@gnu.org>
790
791         * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
792         and ELFOSABI_HPUX.
793         * elf64-hppa.c (elf64_hppa_object_p): Likewise.
794
795 2001-06-02  H.J. Lu  <hjl@gnu.org>
796
797         * aout-cris.c (MACHTYPE_OK): New. Defined.
798
799 2001-06-02  Hans-Peter Nilsson  <hp@axis.com>
800
801         * section.c (_bfd_strip_section_from_output): Handle NULL
802         output_section.
803
804 2001-06-02  H.J. Lu  <hjl@gnu.org>
805
806         * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
807         rs6000coff64_vec only if BFD64 is defined.
808         (powerpc64-*-aix*): Enable only if BFD64 is defined.
809
810 2001-06-02  H.J. Lu  <hjl@gnu.org>
811
812         * coff-ia64.c (ia64coff_object_p): Rewrite with
813         external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
814
815 2001-06-01  Andreas Jaeger  <aj@suse.de>
816
817         * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
818         relocation, small reformatting.
819
820 2001-05-29  Andreas Jaeger  <aj@suse.de>
821
822         * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
823         (elf64_x86_64_relocate_section): Likewise.
824
825 2001-05-30  Alan Modra  <amodra@one.net.au>
826
827         * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
828         millicode.  Don't allocate .got and .rela.got space here..
829         (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
830         (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
831         .rela.plt here..
832         (hppa_handle_PIC_calls): ..nor here..
833         (allocate_plt_and_got): ..instead do it all here.  New function.
834         (elf32_hppa_size_dynamic_sections): Allocate local .got space and
835         call allocate_plt_and_got.  No need to zap .got if not dynamic.
836         (elf32_hppa_final_link): Call regular bfd_final_link instead of
837         gc_common_final_link.
838         (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
839         (elf32_hppa_relocate_section): Use it here.
840         (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
841         dynamic_sections_created.
842         (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
843
844 2001-05-28  Andreas Jaeger  <aj@suse.de>
845
846         * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
847         generic version since we want a hashsize of 4.
848         (elf_backend_size_info): Likewise.
849
850 2001-05-28  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
851
852         * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
853         a zeroing loop.
854         (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
855         (elf_link_input_bfd): Likewise.
856         (elf_reloc_link_order): Likewise.
857         (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
858         relocations correctly.
859
860 2001-05-28  Nicolas Pitre <nico@cam.org>
861
862         * elf32-arm.h: fix PLT generation for big endian ARM
863
864 2001-05-28  Alan Modra  <amodra@one.net.au>
865
866         * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
867         for symbols forced local that need plabels.
868         (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
869         .plt.rela for local syms if non-shared.
870         (hppa_build_one_stub): Mask lsb of plt.offset.
871         (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
872         (clobber_millicode_symbols): Correct comment.
873         (elf32_hppa_relocate_section): Likewise.
874         (elf32_hppa_finish_dynamic_symbol): Likewise.
875
876 2001-05-28  Jeff Sturm  <jsturm@one-point.com>
877
878         * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
879         * bfd-in2.h: Regenerate.
880         * libbfd.h: Regenerate.
881         * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
882         and BFD_RELOC_SPARC_UA64 mapping
883         * elf64-sparc.c: Likewise.
884
885 2001-05-25  H.J. Lu  <hjl@gnu.org>
886
887         * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
888         (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
889         (coff-rs6000.lo): Remove the old dependency.
890         * Makefile.in: Rebuild.
891
892         * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
893         coff-rs6000.lo.
894
895 2001-05-25  H.J. Lu  <hjl@gnu.org>
896
897         * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
898         rs6000coff_core_file_matches_executable_p,
899         rs6000coff_core_file_failing_command and
900         rs6000coff_core_file_failing_signal only if AIX_CORE is
901         defined.
902         (pmac_xcoff_vec): Likewise.
903         * coff64-rs6000.c (rs6000coff64_vec): Likewise.
904
905 2001-05-25  Timothy Wall  <twall@redhat.com>
906
907         * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
908         for __GLOB_DATA_PTR on AIX5.  Clean up some relocation bugs.
909
910 2001-05-25  H.J. Lu  <hjl@gnu.org>
911
912         * bfd-in2.h: Regenerated.
913         * libcoff.h: Likewise.
914
915 2001-05-25  Alan Modra  <amodra@one.net.au>
916
917         * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
918         undefined millicode syms in shared libs.
919         (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
920         (elf32_hppa_check_relocs): Likewise.
921         (elf32_hppa_adjust_dynamic_symbol): Likewise.
922         (elf32_hppa_size_dynamic_sections): Likewise.
923         (elf32_hppa_relocate_section): Likewise.
924         (elf32_hppa_finish_dynamic_symbol): Likewise.
925         (elf32_hppa_finish_dynamic_sections): Likewise.
926
927 2001-05-24  Tom Rix <trix@redhat.com>
928
929         * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
930         xcoff-target.h not used to define rs6000 or ppc bfd.
931         * Makefile.in same
932
933         * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
934         to 64 bit.
935
936         * coff-rs6000.c : Many changes for 64 bit support.  Move common
937         32/64 code to xcofflink.c.  Explictly define the rs6000coff_vec
938         and pmac_xcoff_vec
939
940         * coff64-rs6000.c : Many changes for 64 bit support.  64 bit
941         linker now supported.  Explictly define the rs6000coff64_vec.
942
943         * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
944         (coff_print_aux) same
945         (coff_write_object_contents) same
946         (coff_slurp_line_table) same
947
948         * coffgen.c : (coff_fix_symbol_name) formatting
949         (coff_mangle_symbols) xcoff 64 bit support
950         (coff_write_symbol) same
951         (coff_write_alien_symbol) same
952         (coff_write_native_symbol) same
953         (coff_write_symbols) same
954         (coff_get_symbol_info) same
955         (bfd_coff_get_syment) same
956         (coff_print_symbol) same
957
958         * config.bfd : add powerpc64-*-aix* target
959
960         * libcoff-in.h : formatting
961
962         * libcoff.h : move xcoff extern declarations to libxcoff.h
963
964         * libxcoff.h : New file
965
966         * xcofflink.c : Many changes for xcoff64 support.  Move common
967         structures to include/coff/xcoff.h.  Move specific structure to
968         backends coff-rs6000.c and coff64-rs6000.c.   Use new backend
969         functions, defined in libxcoff.h, to isolate 32/64 dependencies.
970
971         (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
972         aix4.2+ -binitfini.
973
974         (xcoff_build_ldsyms) : handle special __rtinit symbol.
975
976 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
977
978         * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
979         s/ENTIRES/ENTRIES/.
980
981 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
982
983         * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
984         * libbfd.h: Regenerate.
985         * bfd-in2.h: Regenerate.
986
987         * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
988         * archures.c (bfd_mach_mips12000): Define.
989         * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
990         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
991         support.
992         (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
993         * bfd-in2.h: Regenerate.
994         * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
995
996 2001-05-23  kaz Kojima  <kkojima@rr.iij4u.or.jp>
997
998         * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
999         elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1000         elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1001         that is used by GCC.
1002
1003 2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
1004
1005         * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1006         of entries in a structured section.
1007         * elf.c: Use new macro.
1008         * elf32-i386.c: Use new macro.
1009         * elf32-mips.c: Use new macro.
1010         * elf64-alpha.c: Use new macro.
1011         * elf64-sparc.c: Use new macro.
1012         * elfcode.h: Use new macro.
1013         * elflink.h: Use new macro.
1014
1015 2001-05-23  Nick Clifton  <nickc@cambridge.redhat.com>
1016
1017         * bfdint.texi: Replace -oformat with --oformat.
1018
1019 2001-05-21  Andreas Jaeger  <aj@suse.de>
1020
1021         * dwarf2.c (decode_line_info): Fix error message.
1022         (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1023         adjust error message.
1024
1025 2001-05-18  H.J. Lu  <hjl@gnu.org>
1026
1027         * elflink.h (elf_link_add_object_symbols): Revert the last
1028         change.
1029
1030 2001-05-17  Alan Modra  <amodra@one.net.au>
1031
1032         * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1033         ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1034         (hppa_build_one_stub): Add an assert to check plt.offset.
1035
1036 2001-05-17  H.J. Lu  <hjl@gnu.org>
1037
1038         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1039         version definition to basename of the output filename.
1040
1041 2001-05-17  H.J. Lu  <hjl@gnu.org>
1042
1043         * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1044         basename of the bfd filename.
1045
1046 2001-05-16  Alan Modra  <amodra@one.net.au>
1047
1048         * section.c (asection): Add linker_has_input field.
1049         (STD_SECTION): Adjust initialization to suit.
1050         * ecoff.c (bfd_debug_section): Likewise.
1051         * bfd-in2.h: Regenerate.
1052
1053 2001-05-15  Alexandre Oliva  <aoliva@redhat.com>
1054
1055         * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1056         negative 32-bit operands to 16 operands when the operand is
1057         going to be zero-extended by the modified opcode.
1058
1059 2001-05-12  Peter Targett  <peter.targett@arccores.com>
1060
1061         * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1062         name for 'arc5' core versions.
1063         (bfd_arc_arch): Make bfd_mach_arc_6 default.
1064
1065         * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1066         architecture.
1067         (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1068
1069 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
1070
1071         * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1072         sections as well.
1073         (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1074         to .gnu.linkonce.t.FOO text section.
1075
1076 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
1077
1078         * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1079         fields, change sec into secinfo.
1080         (struct sec_merge_info): Add chain, remove last fields.
1081         (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1082         (sec_merge_hash_lookup): If lookup could not use a string only
1083         because it has bad alignment, mark the old string for deletion.
1084         (sec_merge_add): Add secinfo argument. Don't compute entry's
1085         position, instead record the section.
1086         (sec_merge_emit): Update for the sec into secinfo change in
1087         struct sec_merge_hash_entry.
1088         (_bfd_merge_section): Only record the section for merging, defer
1089         putting strings into the hash table.
1090         (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1091         _bfd_merge_sections): New functions.
1092         (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1093         changes.
1094         * libbfd-in.h (_bfd_merge_sections): Add prototype.
1095         (_bfd_nolink_bfd_merge_sections): Define.
1096         * libbfd.h: Likewise.
1097         (bfd_generic_merge_sections): Add prototype.
1098         * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1099         (struct bfd_target): Likewise.
1100         * bfd.c (bfd_merge_sections): Define.
1101         * bfd-in2.h: Rebuilt.
1102         * elf.c (_bfd_elf_merge_sections): New function.
1103         * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1104         * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1105         * reloc.c (bfd_generic_merge_sections): New function.
1106         * vms.c (vms_bfd_merge_sections): New function.
1107         * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1108         * aout-target.h (MY_bfd_merge_sections): Define.
1109         * aout-tic30.c (MY_bfd_merge_sections): Define.
1110         * binary.c (binary_bfd_merge_sections): Define.
1111         * bout.c (b_out_bfd_merge_sections): Define.
1112         * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1113         * coffcode.c (coff_bfd_merge_sections): Define.
1114         * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1115         * i386msdos.c (msdos_bfd_merge_sections): Define.
1116         * i386os9k.c (os9k_bfd_merge_sections): Define.
1117         * ieee.c (ieee_bfd_merge_sections): Define.
1118         * ihex.c (ihex_bfd_merge_sections): Define.
1119         * nlm-target.h (nlm_bfd_merge_sections): Define.
1120         * oasys.c (oasys_bfd_merge_sections): Define.
1121         * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1122         * som.c (som_bfd_merge_sections): Define.
1123         * srec.c (srec_bfd_merge_sections): Define.
1124         * tekhex.c (tekhex_bfd_merge_sections): Define.
1125         * versados.c (versados_bfd_merge_sections): Define.
1126         * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1127
1128 2001-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
1129
1130         * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1131         to be unsigned long, in order to match its use.
1132
1133 2001-05-10  H.J. Lu  <hjl@gnu.org>
1134
1135         * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1136         indirect symbols.
1137
1138 2001-05-09  H.J. Lu  <hjl@gnu.org>
1139
1140         * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1141         versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1142         Remove the unused veriable `dynver'.
1143
1144 2001-05-08  Ian Lance Taylor  <ian@zembu.com>
1145
1146         * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1147         NULL or is not COFF.
1148         (coff_i386_rtype_to_howto): Don't dump core if output section
1149         owner is not COFF.
1150
1151 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1152
1153         * ecoff.c (bfd_debug_section): Fix initialization.
1154         * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1155         is always a positive integer. Cast away sign mismatch.
1156         * elf32-mips.c: Fix misleading comment and typo.
1157         (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1158         correct data type.
1159         * elflink.c: Fix typo.
1160         (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1161         * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1162
1163 2001-05-04  Richard Henderson  <rth@redhat.com>
1164
1165         * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1166
1167 2001-05-04  Nick Clifton  <nickc@cambridge.redhat.com>
1168
1169         * elf32-arm.h (elf32_arm_final_link_relocate): Set
1170         EF_ARM_HASENTRY if the start address is set.
1171
1172 2001-05-03  Nick Clifton  <nickc@cambridge.redhat.com>
1173
1174         * targets.c (_bfd_target_vector_entries): Compute value based on
1175         the size of the _bfd_target_vector and not bfd_target_vector.
1176
1177 2001-05-03  H.J. Lu  <hjl@gnu.org>
1178
1179         * elfcode.h: Include "libiberty.h".
1180
1181         * elflink.h (elf_link_add_object_symbols): Set
1182         elf_dt_name (abfd) to basename of the bfd filename.
1183         (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1184         of the bfd filename.
1185
1186 2001-05-03  Andreas Jaeger  <aj@suse.de>
1187
1188         * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1189         (elf_generic_info_to_howto_rel): Likewise.
1190         * coff-alpha.c (reloc_nil): Likewise.
1191         (alpha_ecoff_bad_format_hook): Likewise.
1192         (alpha_adjust_reloc_out): Likewise.
1193         (alpha_bfd_reloc_type_lookup): Likewise.
1194         (alpha_convert_external_reloc): Likewise.
1195         * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1196         (elf64_alpha_reloc_bad): Likewise.
1197         (elf64_alpha_reloc_gpdisp): Likewise.
1198         (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1199         (elf64_alpha_info_to_howto): Likewise.
1200         (elf64_alpha_add_symbol_hook): Likewise.
1201         (elf64_alpha_create_got_section): Likewise.
1202         (elf64_alpha_is_local_label_name): Likewise.
1203         (elf64_alpha_merge_ind_symbols): Likewise.
1204         * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1205         (mips_elf64_get_reloc_upper_bound): Likewise.
1206         * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1207         (nlm_alpha_get_public_offset): Likewise.
1208
1209 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
1210
1211         * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1212         about overflow in R_OPENRISC_LO_16_IN_INSN and
1213         R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1214
1215 2001-04-30  H.J. Lu  <hjl@gnu.org>
1216
1217         * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1218         only for ELF_LINK_FORCED_LOCAL.
1219         * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1220         * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1221         * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1222
1223         * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1224         if the symbol has hidden or internal visibility.
1225
1226 2001-04-30  Alan Modra  <amodra@one.net.au>
1227
1228         * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1229         calls to undefined weak symbols.
1230
1231 2001-04-30  Andreas Jaeger  <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1232
1233         * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1234         R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1235
1236 2001-04-27  Andreas Jaeger  <aj@suse.de>
1237
1238         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1239         out handled entries.
1240         (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1241         (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1242         (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1243         GOT32.
1244
1245 2001-04-27  Sean McNeil <sean@mcneil.com>
1246
1247         * config.bfd: Add arm-vxworks target.
1248         * coff-arm (coff_arm_relocate_section): Add in symbol value to
1249         addend (fro VXworks targets).
1250
1251 2001-04-26  H.J. Lu  <hjl@gnu.org>
1252
1253         * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1254         valid.
1255
1256 2001-04-25  Frank Ch. Eigler  <fche@redhat.com>
1257
1258         * bfd-in.h (bfd_cache_close): Declare newly exported function.
1259         * bfd-in2.h: Regenerated.
1260
1261 2001-04-24  Jakub Jelinek  <jakub@redhat.com>
1262
1263         * merge.c (struct sec_merge_hash_entry): Add alignment field.
1264         (struct sec_merge_hash): Remove alignment_power.
1265         (sec_merge_hash_newfunc): Clear alignment.
1266         (sec_merge_hash_lookup): Pass alignment as argument.
1267         Use hashp->root.next, not hashp->next to walk the hash chain.
1268         If a string already in the hashtable does not have required
1269         alignment, create a new hashtable entry.
1270         (sec_merge_init): Remove alignment_power argument.
1271         (sec_merge_add): Add alignment argument.
1272         (sec_merge_emit): Alignment is now a per-entity thing, not per
1273         section.
1274         (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1275         for proper alignment.
1276         Pass alignment information to sec_merge_add.
1277
1278 2001-04-24  Christian Groessler  <cpg@aladdin.de>
1279
1280         * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1281         and R_REL16 reloc types; accept odd values for R_REL16 type
1282
1283 2001-04-24  Johan Rydberg  <jrydberg@opencores.org>
1284
1285         * cpu-openrisc.c: New file.
1286         * elf32-openrisc.c: Likewise.
1287
1288         * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1289         (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1290         (BFD32_BACKENDS): Add elf32-openrisc.lo.
1291         (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1292         (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1293         * Makefile.in: Regenerated.
1294         * config.bfd: (openrisc-*-elf): New target.
1295         * configure.in (bfd_elf32_openrisc_vec): New vector.
1296         * configure: Regenerated.
1297         * libbfd.h: Regenerated.
1298         * bfd-in2.h: Regenerated.
1299         * reloc.c: Add OpenRISC relocations.
1300         * targets.c (bfd_elf32_openrisc_vec): Declare.
1301         (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1302         * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1303         (bfd_openrisc_arch): Declare.
1304         (bfd_archures_list): Add bfd_openrisc_arch.
1305         * elf.c (prep_headers): Add bfd_arch_openrisc.
1306
1307 2001-04-23  Bo Thorsen  <bo@suse.de>
1308
1309         * elf64-x86-64.c: Add c++ vtable hack.
1310         Small whitespace and comment changes.
1311
1312 2001-04-19  Andreas Jaeger  <aj@suse.de>
1313
1314         * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1315         (elf64_x86_64_plt_entry): Likewise.
1316         (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1317         (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1318
1319 2001-04-17  Hans-Peter Nilsson  <hp@axis.com>
1320
1321         * elf32-cris.c: Tweak comments related to dynamic linking.
1322         (cris_elf_relocate_section): When not creating shared object, fill
1323         in the .got table for any symbol not in the dynamic symbol table.
1324         (elf_cris_finish_dynamic_symbol): When not creating shared object,
1325         only emit a .got.rela reloc if the symbol is in the dynamic symbol
1326         table.
1327         (cris_elf_check_relocs): Use variable r_type in all places rather
1328         than the original expression.  Add default case in switch for
1329         reloc types.
1330         (elf_cris_size_dynamic_sections): Iterate over
1331         elf_cris_discard_excess_program_dynamics when not creating shared
1332         library.
1333         (elf_cris_discard_excess_dso_dynamics): Renamed from
1334         elf_cris_discard_copies.  Correct typo, s/Rel/Rela/.
1335         (elf_cris_discard_excess_program_dynamics): New.
1336
1337 2001-04-14  Mark Elbrecht  <snowball3@bigfoot.com>
1338
1339         * coffcode.h (coff_write_object_contents): Use
1340         bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1341
1342 2001-04-14  H.J. Lu  <hjl@gnu.org>
1343
1344         * bfd-in2.h: Regenerate.
1345
1346 2001-04-14  Jakub Jelinek <jakub@redhat.com>
1347
1348         * section.c (STD_SECTION): Add entsize.
1349
1350 2001-04-13  H.J. Lu  <hjl@gnu.org>
1351
1352         * section.c (SEC_MERGE): Define new flag for merging.
1353         (SEC_STRINGS): Likewise.
1354         (entsize): New field.
1355
1356 2001-04-13  Roger Sayle  <roger@metaphorics.com>
1357
1358         * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1359         flag on pe-i386 targets.
1360
1361 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
1362
1363         * libbfd-in.h (_bfd_merge_section): New.
1364         (_bfd_write_merged_section): New.
1365         (_bfd_merged_section_offset): New.
1366         * libbfd.h: Rebuilt.
1367         * linker.c (_bfd_generic_link_output_symbols): Handle
1368         discard_sec_merge.
1369         * aoutx.h (aout_link_write_symbols): Likewise.
1370         * pdp11.c (aout_link_write_symbols): Likewise.
1371         * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1372         (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1373         sections.
1374         (elf_link_sec_merge_syms): New.
1375         (elf_link_input_bfd): Call _bfd_merged_section_offset
1376         and _bfd_write_merged_section.
1377         Handle discard_sec_merge.
1378         * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1379         field.
1380         (struct bfd_elf_section_data): Likewise.
1381         * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1382         SEC_STRINGS section flags and entsize from their ELF counterparts.
1383         (_bfd_elf_link_hash_table_init): Initialize merge_info.
1384         (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1385         from their BFD counterparts.
1386         * merge.c: New file.
1387         * Makefile.am: Add strtab.lo.
1388         * Makefile.in: Rebuilt.
1389
1390 2001-04-09  Hans-Peter Nilsson  <hp@axis.com>
1391
1392         * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1393         only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1394
1395 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
1396
1397         * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1398         endian MIPS ELF target.
1399         * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1400         MIPS ELF target.
1401
1402         * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1403         64bit big endian MIPS ELF target.
1404         (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1405         endian MIPS ELF target.
1406         * configure: Regenerated.
1407
1408         * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1409         little endian targets.
1410         (mips_elf_sym_is_global): Handle traditional targets.
1411
1412         * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1413         64bit big endian MIPS ELF target.
1414         (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1415         endian MIPS ELF target.
1416
1417         * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1418         and bfd_elf64_tradlittlemips_vec.
1419
1420 2001-04-05  David Mosberger  <davidm@hpl.hp.com>
1421
1422         * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1423         ordinary "progbits" section.
1424
1425 2001-04-04  Alan Modra  <alan@linuxcare.com.au>
1426
1427         * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1428         when -Bsymbolic causes a symbol to no longer need a .plt entry.
1429
1430 2001-04-03  David Mosberger  <davidm@hpl.hp.com>
1431
1432         * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1433
1434 2001-03-30  H.J. Lu  <hjl@gnu.org>
1435
1436         * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1437         (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1438
1439 2001-03-26  H.J. Lu  <hjl@gnu.org>
1440
1441         * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1442         if there are any relocations for generic ELF.
1443         (bfd_elf32_bfd_link_add_symbols): Defined to
1444         elf32_generic_link_add_symbols.
1445         * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1446         if there are any relocations for generic ELF.
1447         (bfd_elf64_bfd_link_add_symbols): Defined to
1448         elf64_generic_link_add_symbols.
1449
1450 2001-03-23  Nick Clifton  <nickc@redhat.com>
1451
1452         * Makefile.am (BUILD_CFILES): New variable: List of C source
1453         files created in build directory.
1454         (BUILD_HFILES): New variable: List of header files created in
1455         build directory.
1456         (POTFILES): Delete.
1457         (po/POTFILES.in): Replace rule with empty entry.
1458         (po/SRC-POTFILES.in): New rule: Create a list of source files
1459         in the source directory.
1460         (po/BLD-POTFILES.in): New rule: Create a list of source files
1461         in the build directory.
1462         (MOSTLYCLEAN): Do not delete source files created in build
1463         directory.
1464         * Makefile.in: Regenerate.
1465         * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1466         into po/Makefile.
1467         * configure: Regenerate.
1468
1469         * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1470         and BLD_POTFILES.
1471         Add .. to the search path when building bfd.pot.
1472         Delete POTFILES when performing distclean.
1473         Add comment describing why distclean is broken in maintainer mode.
1474         * po/POTFILES.in: Delete.
1475         * po/SRC-POTFILES.in: New file.
1476         * po/BLD-POTFILES.in: New file.
1477         * po/bfd.pot: Regenerate.
1478
1479 2001-03-22  Hans-Peter Nilsson  <hp@axis.com>
1480
1481         * elf32-cris.c: Shlib and PIC support.  PCREL tweaks.
1482         (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1483         elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1484         elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1485         elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1486         elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1487         functions.
1488         (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1489         R_CRIS_32_PCREL>: Correct comments.  Set pcrel_offset to false.
1490         <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1491         R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1492         R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1493         New HOWTO members for new relocs.
1494         (cris_reloc_map): Map new relocs.
1495         (ELF_DYNAMIC_INTERPRETER): Define.
1496         (PLT_ENTRY_SIZE): Define.
1497         (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1498         elf_cris_pic_plt_entry): New, PLT templates.
1499         (struct elf_cris_pcrel_relocs_copied, struct
1500         elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1501         (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1502         (cris_final_link_relocate): Check that 16-bit GOT relocs have
1503         positive values.  Adjust PCREL relocs to be relative to location
1504         after relocation.
1505         (cris_elf_relocate_section): Handle relocations to dynamic
1506         objects.  Handle new relocations.  Call error handler when seeing
1507         non-PIC relocation for read-only sections while generating shared
1508         object.
1509         (cris_elf_check_relocs): Set reference counts for GOT and PLT
1510         entries.
1511         (bfd_elf32_bfd_link_hash_table_create,
1512         elf_backend_adjust_dynamic_symbol,
1513         elf_backend_size_dynamic_sections,
1514         elf_backend_finish_dynamic_symbol,
1515         elf_backend_finish_dynamic_sections,
1516         elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1517         elf_backend_hide_symbol, elf_backend_want_got_plt,
1518         elf_backend_plt_readonly, elf_backend_want_plt_sym,
1519         elf_backend_got_header_size, elf_backend_plt_header_size):
1520         Define.
1521
1522         * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1523         BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1524         BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1525         BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1526         BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1527         BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1528         * bfd-in2.h, libbfd.h: Regenerate.
1529
1530 2001-03-21  Diego Novillo  <dnovillo@redhat.com>
1531
1532         (_bfd_mips_elf_relocate_section): Give a better error message when
1533         a relocation is not recognized.
1534
1535 2001-03-21  Alan Modra  <alan@linuxcare.com.au>
1536
1537         * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1538         non-NULL before attempting to dereference.
1539
1540 2001-03-20  H.J. Lu  <hjl@gnu.org>
1541
1542         * configure.in: Remove the redundent AC_ARG_PROGRAM.
1543         * configure: Rebuild.
1544
1545 2001-03-20  Andreas Schwab  <schwab@suse.de>
1546
1547         * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1548         relocation value when resolving a reference from a debugging
1549         section.
1550
1551 2001-03-16  Scott Thomason  <SThomaso@hii.com>
1552
1553         * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1554         (xcoff64_swap_sym_out): Fix syntax errors.
1555
1556 2001-03-16  Richard Sandiford  <rsandifo@redhat.com>
1557
1558         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1559
1560 2001-03-15  Alan Modra  <alan@linuxcare.com.au>
1561
1562         * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1563         (hppa_link_hash_newfunc): Init it.
1564         (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1565         section appears to be non-PIC.
1566         (final_link_relocate): Likewise.
1567         (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1568         possible candidate function, and set pic_call for those that will
1569         only have a .plt entry for the PIC call stub.
1570         (hppa_handle_PIC_calls): Set maybe_pic_call.
1571
1572 2001-03-12  DJ Delorie  <dj@redhat.com>
1573
1574         * elf32-sh.c (sh_elf_relocate_section): Only relocation
1575         R_SH_DIR8WP* relocs if they're against external symbols, else
1576         they're just for relaxing.  Validate the reloc values.
1577
1578 2001-03-12  Stefan Geuken <mail@stefan-geuken.de>
1579
1580         * binary.c (bfd_external_binary_architecture): Declare.
1581         (binary_object_p): If bfd_external_binary_architecture is defined,
1582         set the architecture to this string.
1583
1584 2001-03-11  Philip Blundell  <philb@gnu.org>
1585
1586         * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1587         entries that could serve as a definition for a weak symbol.
1588
1589 2001-03-08  Nick Clifton  <nickc@redhat.com>
1590
1591         * Most files: Update copyright notices using Perl script created
1592         by Kevin Buettner <kevinb@redhat.com>.
1593
1594 2001-03-07  Nick Clifton  <nickc@redhat.com>
1595
1596         * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1597         prior patch on ! defined OLD_ARM_ABI.
1598
1599 2001-03-07  Andreas Jaeger  <aj@suse.de>
1600
1601         * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1602         some relocation values.
1603
1604 2001-03-06  Nick Clifton  <nickc@redhat.com>
1605
1606         * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1607         of offset in BLX(1) instruction.
1608         * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1609         offset in BLX(1) instruction.
1610         Fix formatting.
1611
1612 2001-03-06  Nick Clifton  <nickc@redhat.com>
1613
1614         * coff-arm.c (coff_arm_reloc_type_lookup): Add
1615         BFD_RELOC_THUMB_PCREL_BLX.
1616
1617 2001-03-06  Igor Shevlyakov  <igor@windriver.com>
1618
1619         * archures.c (bfd_default_scan): Add Coldfire CPUs.
1620         * bfd-in2.h: Regenerate.
1621         * cpu-m68k.c: Add Coldfire CPUs for arch table.
1622         * ieee.c (ieee_write_processor): Set proper id for
1623         Coldfire CPUs.
1624
1625 2001-03-01  D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1626
1627         * configure.in: Add s390 target.
1628         * configure: Regenerate.
1629
1630 2001-02-28  Andreas Jaeger  <aj@suse.de>
1631
1632         * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1633         to addend.
1634
1635 2001-02-28  Philip Blundell  <pb@futuretv.com>
1636
1637         * elf32-arm.h: Update mentions of renamed EF_xx constants.
1638         (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1639
1640 2001-02-27  H.J. Lu  <hjl@gnu.org>
1641
1642         * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1643         abfd->tdata.aout_data == NULL.
1644
1645 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
1646
1647         * elf32-hppa.c: Correct field selector in stub comments.
1648         (clobber_millicode_symbols): Formatting fix.
1649
1650         * configure.in: Bump version to 2.11.90.
1651         * configure: Regenerate.
1652         * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1653         (CFILES): $SOURCE_CFILES + generated C files.
1654         (POTFILES): Include $HFILES not $SOURCE_HFILES.
1655         Run "make dep-am"
1656         * Makefile.in: Regenerate.
1657         * doc/Makefile.in: This too.
1658
1659 2001-02-26  Timothy Wall  <twall@cygnus.com>
1660
1661         * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1662         comments.
1663
1664 2001-02-26  Nick Clifton <nickc@redhat.com>
1665
1666         * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1667         up, replacing multiple if statements with a switch.
1668         (handle_COMDAT): New function.
1669
1670 2001-02-26  H.J. Lu  <hjl@gnu.org>
1671
1672         * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1673         a warning for section flags we do not handle instead of
1674         aborting.
1675
1676 2001-02-26  Andreas Jaeger  <aj@suse.de>
1677
1678         * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1679
1680 2001-02-22  Timothy Wall  <twall@cygnus.com>
1681
1682         * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1683         * configure.in: Add objects for elf64_ia64_aix vectors.
1684         * configure: Regenerated.
1685         * configure.host: Recognize ia64-*-aix*.
1686         * elfxx-ia64.c: Add hooks for ELF64 on AIX5.  Define new vectors
1687         for AIX.  AIX5 requires most relocations to be dynamic (*all*
1688         binaries are somewhat similar to shared libraries).
1689         * targets.c: Add elf64_ia64_aix vectors.
1690
1691 2001-02-21  David Mosberger  <davidm@hpl.hp.com>
1692
1693         * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1694         C8 said "1" instead of "8".  Clarify error string for IMM22:
1695         "signed integer" instead of just "integer".
1696
1697 2001-02-20  Andreas Jaeger  <aj@suse.de>
1698
1699         * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1700         PLT entries that could serve as a definition for a weak symbol.
1701
1702 2001-02-19  Jakub Jelinek  <jakub@redhat.com>
1703
1704         * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1705         entries that could serve as a definition for a weak symbol.
1706         * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1707
1708 2001-02-18  David O'Brien  <obrien@FreeBSD>
1709
1710         * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1711         FreeBSD/i386-CURRENT differently until I can figure out the needed
1712         corefile changes.
1713         * configure: Regenerate.
1714         * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1715         FreeBSD/PowerPC, and FreeBSD/sparc64.
1716
1717 2001-02-18  lars brinkhoff  <lars@nocrew.org>
1718
1719         * Makefile.am: Add PDP-11 a.out target.
1720         * config.bfd: Likewise.
1721         * configure.in: Likewise.
1722         * targets.c: Likewise.
1723         * archures.c: Likewise.
1724         * bfd-in2.h: Likewise.  Add PDP-11 relocations.
1725         * libbfd.h: Add PDP-11 relocations.
1726         * reloc.c: Likewise.
1727         * cpu-pdp11.c: New file.
1728         * pdp11.c: New file.
1729
1730         * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1731         (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1732         (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1733         (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1734         (GET_MAGIC): New macro.
1735         (PUT_MAGIC): Likewise.
1736         * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1737
1738 2001-02-18  Jim Kingdon  <jkingdon@engr.sgi.com>
1739
1740         * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1741         multiarch needs it).
1742
1743 2001-02-18  H.J. Lu  <hjl@gnu.org>
1744
1745         * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1746         index.
1747
1748 2001-02-18  Kazu Hirata  <kazu@hxi.com>
1749
1750         * vms-misc.c: Fix formatting.
1751
1752 2001-02-16  Kazu Hirata  <kazu@hxi.com>
1753
1754         * vms.c: Fix formatting.
1755
1756 2001-02-14  H.J. Lu  <hjl@gnu.org>
1757
1758         * elf.c (elf_find_function): New function.
1759         (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1760         the file name and function name.
1761
1762 2001-02-14  Nick Clifton  <nickc@redhat.com>
1763
1764         * ecoff.c (bfd_debug_section): Update to initialise new fields in
1765         asection structure.
1766
1767         * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1768         (BFD64_BACKENDS): Add pepigen.c
1769         Add rules to create peigen.c and pepigen.c from peXXigen.c.
1770
1771         * Makefile.in: Regenerate.
1772         * configure:  Regenerate.
1773         * po/POTFILES.in: Regenerate.
1774         * po/bfd.pot: Regenerate.
1775
1776 2001-02-14  H.J. Lu  <hjl@gnu.org>
1777
1778         * libcoff-in.h (pe_tdata): Add members target_subsystem and
1779         force_minimum_alignment.
1780
1781 2001-02-14  Bo Thorsen  <bo@suse.de>
1782
1783         * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1784         (elf64_86_64_size_info): Struct added to fix a problem
1785         with the hashtable string entries.
1786         (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1787         (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1788         (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1789         remove the FIXME for this.
1790         (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1791         section. Also removed the FIXME for it.
1792         (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1793         (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1794         (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1795
1796 2001-02-13  Richard Henderson  <rth@redhat.com>
1797
1798         * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1799         and not user provided.
1800
1801 2001-02-13  Kazu Hirata  <kazu@hxi.com>
1802
1803         * vms.c (vms_print_symbol): Remove unreachable code.
1804
1805         * rs6000-core.c: Fix formatting.
1806
1807 2001-02-13  David Mosberger  <davidm@hpl.hp.com>
1808
1809         * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1810         as _bfd_XXi_only_swap_filehdr_out.
1811         (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1812         pe->force_minimum_alignment to TRUE.
1813         (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1814         PEI_TARGET_SUBSYSTEM.
1815         (pe_print_private_bfd_data): Call
1816         _bfd_XX_print_private_bfd_data_common() instead of
1817         _bfd_pe_print_private_bfd_data_common().
1818         (pe_bfd_copy_private_bfd_data): Call
1819         _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1820         _bfd_pe_bfd_copy_private_bfd_data_common().
1821         (coff_bfd_copy_private_section_data): Define as
1822         _bfd_XX_bfd_copy_private_section_data instead of
1823         _bfd_pe_bfd_copy_private_section_data.
1824         (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1825         of a _bfd_pe_get_symbol_info.
1826
1827         * peigen.c: Delete.
1828
1829         * peXXigen.c: Renamed from peigen.c.
1830         (COFF_WITH_XX): Define this macro (will get expanded into
1831         COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1832         compiled as peigen.c or pepigen.c.
1833         [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1834         define the canonical PEP structures and definitions.
1835         (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1836         effect, enforce minimum file and section alignments.  If
1837         extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1838         pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1839         so, by default, this is a no-op).
1840
1841         * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1842         (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1843         _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1844         _bfd_pefoo if it's not defined.  Use these macros to define
1845         coff swap macros.
1846
1847         * libcoff.h (pe_tdata): Add members target_subsystem and
1848         force_minimum_alignment.
1849
1850         * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1851         COFF_WITH_pep.
1852         (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1853
1854         * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1855         peigen.lo.
1856
1857         * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1858         (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1859         PEPAOUTHDR.
1860
1861         * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1862         (BFD64_BACKENDS_CFILES): Mention pepigen.c
1863         (peigen.c): Add rule to generate from peXXigen.c.
1864         (pepigen.c): Ditto.
1865         (pepigen.lo): List dependencies for pepigen.lo.
1866
1867 2001-02-13  Alan Modra  <alan@linuxcare.com.au>
1868
1869         * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$.  If
1870         $global$ referenced but not defined, set its value here.
1871
1872 2001-02-09  Bo Thorsen  <bo@suse.de>
1873
1874         * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1875         alignment to 3.
1876         (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1877         and relocation.
1878         (elf64_x86_64_relocate_section): Fix formatting.
1879         (elf64_x86_64_relocate_section): Fix addend for relocation of
1880         R_X86_64_(8|16|32|PC8|PC16|PC32).
1881
1882 2001-02-12  Jan Hubicka  <jh@suse.cz>
1883
1884         * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1885
1886 2001-02-11  H.J. Lu  <hjl@gnu.org>
1887
1888         * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1889         alignment.
1890
1891 2001-02-11  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1892
1893         * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1894         from 2000-10-13.  Do not add the symbol's value for R_MIPS_REL32
1895         relocations against dynsym symbols.
1896
1897         * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1898         the R_MIPS_26 relocation.
1899         (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1900         the R_MIPS_26 relocation.
1901         (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1902         relocation.
1903         * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1904         the R_MIPS_26 relocation.
1905         (mips_elf64_howto_table_rela): Likewise.
1906
1907         * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1908         member to mark symbols that have non-CALL relocations against
1909         them.
1910         (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1911         (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1912         R_MIPS_GOT16.
1913         (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1914         non-CALL relocation against it is encountered.
1915         (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1916         (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1917         no_fn_stub is not set.
1918
1919         * elf32-mips.c (mips_elf_output_extsym): Get the output section
1920         information from the real symbol for indirect ones.
1921         Check no_fn_stub to find out if a symbol has a function stub
1922         indeed.
1923
1924 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1925
1926         * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1927         * Makefile.in: Regenerate.
1928
1929 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
1930
1931         * elfxx-ia64.c (is_unwind_section_name): New function.  Returns
1932         true if section name is an unwind table section name.
1933         (elfNN_ia64_additional_program_headers): Count each unwind section
1934         separately.
1935         (elfNN_ia64_modify_segment_map): Install one unwind program header
1936         for each unwind separate section.  Note: normally the linker
1937         script merges the unwind sections that go into a single segment,
1938         so this still generates at most one unwind program header per
1939         segment.
1940
1941         * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1942         name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1943         (elfNN_ia64_fake_sections): Mark sections with names that start
1944         with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1945         unwind section.
1946
1947         * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1948         Use it to make sh_info in unwind section point to the text section
1949         it applies to.
1950
1951 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1952
1953         * Makefile.am: Add linux target for S/390.
1954         * archures.c: Likewise.
1955         * bfd-in2.h: Likewise.
1956         * config.bfd: Likewise.
1957         * configure.in: Likewise.
1958         * elf.c: Likewise.
1959         * libbfd.h: Likewise.
1960         * targets.c: Likewise.
1961         * cpu-s390.c: New file.
1962         * elf32-s390.c: New file.
1963         * elf64-s390.c: New file.
1964
1965 2001-02-09  Nick Clifton  <nickc@redhat.com>
1966
1967         * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1968         ImageBase.  This has already been done by coff_swap_hdr_in.
1969
1970 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
1971
1972         * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1973
1974 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
1975
1976         * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1977         (sparc64_elf_relocate_section): Likewise.
1978
1979 2001-02-09  Mark Kettenis  <kettenis@gnu.org>
1980
1981         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1982         similar to R_SPARC_32.
1983         * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1984
1985 2001-02-08  H.J. Lu  <hjl@gnu.org>
1986
1987         * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1988         relocation entries for weak definitions when building DSO with
1989         -Bsymbolic.
1990
1991 2001-02-08  Richard Henderson  <rth@redhat.com>
1992
1993         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1994         before visibility.  Locally defined protected symbols are not
1995         dynamic.
1996
1997 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>
1998
1999         * config.bfd: Enable coff64 for rs6000-*.  Patch from
2000         <hzoli@austin.ibm.com>.
2001
2002 2001-02-07  Mark Elbrecht  <snowball3@bigfoot.com>
2003
2004         * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2005         found, do not attempt to find dwarf2 info before returning.
2006
2007 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
2008
2009         * elflink.h (is_global_symbol_definition): Rename to
2010         is_global_data_symbol_definition and have it reject function
2011         symbols.
2012         (elf_link_is_defined_archive_symbol): Use renamed function.
2013
2014 2001-02-07  Todd Vierling  <tv@wasabisystems.com>
2015
2016         * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2017         * libbfd.h (bfd_target_vector): Likewise.
2018         * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
2019         make static; create pointer reference named bfd_target_vector.
2020         (_bfd_target_vector_entries): Calculate this based on the array
2021         typed _bfd_target_vector.
2022
2023 2001-02-06  H.J. Lu  <hjl@gnu.org>
2024
2025         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2026         internal symbols are not dynamic.
2027         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2028
2029 2001-02-06  Nick Clifton  <nickc@redhat.com>
2030
2031         * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2032         that it will not be pulled into the list of files that make up
2033         po/POTFILES.in.
2034         * Makefile.in: Regenerate.
2035         * po/bfd.pot:  Regenerate.
2036
2037 2001-02-06  H.J. Lu  <hjl@gnu.org>
2038
2039         * peicode.h (coff_swap_filehdr_in): Remove the e_magic
2040         checking.
2041         (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2042         external_PEI_IMAGE_hdr.
2043
2044 2001-02-06  Kazu Hirata  <kazu@hxi.com>
2045
2046         * elf-m10200.c: Fix formatting.
2047
2048 2001-02-04  Nick Clifton  <nickc@redhat.com>
2049
2050         * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2051         rel, it will be handled later on.
2052
2053 2001-02-02  Fred Fish  <fnf@ninemoons.com>
2054
2055         * Makefile.in: Fix typo.
2056
2057 2001-02-01  Kazu Hirata  <kazu@hxi.com>
2058
2059         * elf-m10300.c: Fix formatting.
2060
2061 2001-01-30  Alan Modra  <alan@linuxcare.com.au>
2062
2063         * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2064         (elf_backend_get_symbol_type): Define.
2065         (elf64_hppa_object_p): Set architecture and machine from elf
2066         header flags.
2067
2068 2001-01-30  Curtis L. Janssen  <cljanss@ca.sandia.gov>
2069
2070         * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2071         before mdebug.
2072
2073 2001-01-26  Richard Henderson  <rth@redhat.com>
2074
2075         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2076         for non-default visibility.
2077         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2078         delete ugly macro and replace with pretty function.
2079
2080 2001-01-25  Mark Elbrecht  <snowball3@bigfoot.com>
2081
2082         * coff-go32.c: Update copyright.
2083         * coff-stgo32.c: Likewise.
2084         * coff-go32.c (COFF_LONG_FILENAMES): Define.
2085         * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2086         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2087         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2088
2089 2001-01-25  Kazu Hirata  <kazu@hxi.com>
2090
2091         * bfd-in2.h: Rebuild.
2092         * libbfd.h: Likewise.
2093
2094 2001-01-23  H.J. Lu  <hjl@gnu.org>
2095
2096         * bfd-in2.h: Rebuild.
2097
2098 2001-01-23  H.J. Lu  <hjl@gnu.org>
2099
2100         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2101         is NULL or PRIV(vms_rec) is outside of the buffer.
2102
2103 2001-01-23  Kazu Hirata  <kazu@hxi.com>
2104
2105         * coff64-rs6000.c: Fix formatting.
2106         * coff-arm.c: Likewise.
2107         * coffgen.c: Likewise.
2108         * cofflink.c: Likewise.
2109         * coff-mcore.c: Likewise.
2110         * coff-mips.c: Likewise.
2111         * coff-pmac.c: Likewise.
2112         * coff-ppc.c: Likewise.
2113         * coff-rs6000.c: Likewise.
2114         * elf32.c: Likewise.
2115         * elf32-fr30.c: Likewise.
2116         * elf32-i370.c: Likewise.
2117         * elf32-i860.c: Likewise.
2118         * elf32-m32r.c: Likewise.
2119         * elf32-m68k.c: Likewise.
2120         * elf32-mcore.c: Likewise.
2121         * elf32-ppc.c: Likewise.
2122         * elf32-sh.c: Likewise.
2123         * elf32-v850.c: Likewise.
2124         * elf64-alpha.c: Likewise.
2125         * elf64-sparc.c: Likewise.
2126         * elflink.c: Likewise.
2127         * elflink.h: Likewise.
2128         * elf-m10200.c: Likewise.
2129         * elf-m10300.c: Likewise.
2130         * elfxx-ia64.c: Likewise.
2131
2132         * aoutx.h: Fix formatting.
2133         * bfd.c: Likewise.
2134         * bfd-in2.h: Likewise.
2135         * bfd-in.h: Likewise.
2136         * cpu-i386.c: Likewise.
2137         * cpu-m68hc11.c: Likewise.
2138         * dwarf2.c: Likewise.
2139         * elf64-x86-64.c: Likewise.
2140         * format.c: Likewise.
2141         * freebsd.h: Likewise.
2142         * hash.c: Likewise.
2143         * hp300hpux.c: Likewise.
2144         * hppabsd-core.c: Likewise.
2145         * hpux-core.c: Likewise.
2146
2147 2001-01-22  Bo Thorsen  <bo@suse.de>
2148
2149         * elf64-x86-64.c: Added PIC support for X86-64.
2150         (elf64_x86_64_link_hash_newfunc): Function added.
2151         (elf64_x86_64_link_hash_table_create): Likewise.
2152         (elf64_x86_64_check_relocs): Likewise.
2153         (elf64_x86_64_gc_mark_hook): Likewise.
2154         (elf64_x86_64_gc_sweep_hook): Likewise.
2155         (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2156         (elf64_x86_64_size_dynamic_sections): Likewise.
2157         (elf64_x86_64_discard_copies): Likewise.
2158         (elf64_x86_64_finish_dynamic_symbol): Likewise.
2159         (elf64_x86_64_finish_dynamic_sections): Likewise.
2160         (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2161
2162 2001-01-21  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2163
2164         * Makefile.am (install-data-local): Make use of $(DESTDIR).
2165         * Makefile.in: Regenerate.
2166
2167 2001-01-21  Kazu Hirata  <kazu@hxi.com>
2168
2169         * coff-a29k.c: Fix formatting.
2170
2171 2001-01-19  H.J. Lu  <hjl@gnu.org>
2172
2173         * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2174         relocation section names.
2175         (elf_i386_relocate_section): Report files with bad relocation
2176         section names and return false.
2177
2178 2001-01-17  Bo Thorsen  <bo@suse.de>
2179
2180         * targets.c: Alphabetize list of xvecs.
2181
2182 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
2183
2184         * config.bfd: Add linux target variant for elfxx-hppa.
2185         * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2186         bfd_elf64_hppa_linux_vec.
2187         * configure: Regenerate.
2188         * elf64-hppa.c: Include elf64-target.h again to support linux
2189         target variant.
2190         (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2191         * elf32-hppa.c: Include elf32-target.h again to support linux
2192         target variant.
2193         (elf32_hppa_post_process_headers): New function.
2194         (elf_backend_post_process_headers): Define.
2195         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2196         bfd_elf32_hppa_linux_vec.
2197
2198         * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2199         and data_segment_base fields.
2200         (elf32_hppa_link_hash_table_create ): Init them.
2201         (elf32_hppa_check_relocs): Update comments.
2202         (hppa_record_segment_addr): New function.
2203         (elf32_hppa_relocate_section): Call it.
2204         (final_link_relocate): Handle R_PARISC_SEGREL32.
2205         (elf32_hppa_final_link): New function.
2206         (bfd_elf32_bfd_final_link): Define to call it.
2207         (hppa_unwind_entry_compare): New function.
2208         * cache.c (bfd_open_file): Create files in write+read mode.
2209
2210         * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2211         SEGREL32 and numerous other relocs.  Change duplicate
2212         R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2213
2214         * opncls.c (bfd_fdopenr): Add parens like the comment says around
2215         O_ACCMODE.
2216
2217         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2218         .plt entries for DT_INIT and DT_FINI.
2219         (elf32_hppa_finish_dynamic_sections): Remove special handling of
2220         DT_INIT and DT_FINI.
2221
2222         * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2223         offsets for stub .plt access if wide mode.  Check offset in range.
2224
2225 2001-01-13  Nick Clifton  <nickc@redhat.com>
2226
2227         * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2228         line.
2229
2230         * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2231         line.
2232
2233 2001-01-12  Alan Modra  <alan@linuxcare.com.au>
2234
2235         * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2236         * configure: Regenerate.
2237
2238 2001-01-11  Peter Targett  <peter.targett@arccores.com>
2239
2240         * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2241         bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2242         * cpu-arc.c (arch_info_struct): Add entries for variants.
2243         (bfd_arc_arch) Set default to bfd_mach_arc_5.
2244         (arc_get_mach) Don't assume machine names prefixed arc- before
2245         testing.
2246         * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2247         selections.
2248         (arc_elf_final_write_processing) Likewise.
2249         (ELF_MACHINE_CODE) Use EM_ARC.
2250
2251 2001-01-10  Nick Clifton  <nickc@redhat.com>
2252
2253         * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2254
2255 2001-01-07  Philip Blundell  <philb@gnu.org>
2256
2257         * README: Replace `bug-gnu-utils@gnu.org' with
2258         `bug-binutils@gnu.org'.
2259
2260 2001-01-04  Kazu Hirata  <kazu@hxi.com>
2261
2262         * som.c: Fix formatting.
2263
2264 2001-01-03  Kazu Hirata  <kazu@hxi.com>
2265
2266         * ecoffswap.h: Fix formatting.
2267         * elf-bfd.h: Likewise.
2268         * elfarm-nabi.c: Likewise.
2269         * elfarm-oabi.c: Likewise.
2270         * elfcode.h: Likewise.
2271         * elfcore.h: Likewise.
2272         * elflink.c: Likewise.
2273         * elflink.h: Likewise.
2274         * elfxx-ia64.c: Likewise.
2275         * elfxx-target.h: Likewise.
2276         * libbfd.c: Likewise
2277         * linker.c: Likewise.
2278         * lynx-core.c: Likewise.
2279
2280 2001-01-02  Kazu Hirata  <kazu@hxi.com>
2281
2282         * pc532-mach.c: Fix formatting.
2283         * pe-arm.c: Likewise.
2284         * pe-i386.c: Likewise.
2285         * pe-mips.c: Likewise.
2286         * pe-ppc.c: Likewise.
2287         * pe-sh.c: Likewise.
2288         * pei-mips.c: Likewise.
2289         * pei-sh.c: Likewise.
2290         * peicode.h: Likewise.
2291         * ppcboot.c: Likewise.
2292         * ptrace-core.c: Likewise.
2293
2294 2001-01-01  Kazu Hirata  <kazu@hxi.com>
2295
2296         * reloc.c: Fix formatting.
2297         * riscix.c: Likewise.
2298         * rs6000-core.c: Likewise.
2299         * xcoff-target.h: Likewise.
2300
2301 2000-12-29  Hans-Peter Nilsson  <hp@bitrange.com>
2302
2303         * elfcode.h (elf_object_p): Also restore the bfd mach field on
2304         error, by calling bfd_default_set_arch_mach with incoming
2305         values.
2306
2307 2000-12-26  Kazu Hirata  <kazu@hxi.com>
2308
2309         * vaxnetbsd.c: Fix formatting.
2310         * versados.c: Likewise.
2311         * vms-gsd.c: Likewise.
2312         * vms-hdr.c: Likewise.
2313         * vms-misc.c: Likewise.
2314
2315 2000-12-25  Alexandre Oliva  <aoliva@redhat.com>
2316
2317         * archive.c (coff_write_armap): Don't write more than symbol_count
2318         `archive_member_file_ptr's.
2319
2320 2000-12-25  Kazu Hirata  <kazu@hxi.com>
2321
2322         * vms-tir.c: Fix formatting.
2323
2324 2000-12-23  Kazu Hirata  <kazu@hxi.com>
2325
2326         * vms.c: Fix formatting.
2327         * vms.h: Likewise.
2328
2329 2000-12-21  Santeri Paavolainen <santtu@ssh.com>
2330
2331         * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2332
2333         * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2334
2335         * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2336         arithmetic.
2337
2338         * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2339
2340         * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2341
2342 2000-12-21  Richard Sandiford  <rsandifo@redhat.com>
2343
2344         * libbfd.c (bfd_get_bits): Added
2345         (bfd_put_bits): Likewise
2346         * bfd-in.h: Declared the above.
2347         * bfd-in2.h: Regenerated.
2348
2349 2000-12-20  Kazu Hirata  <kazu@hxi.com>
2350
2351         * targets.c: Fix formatting.
2352         * tekhex.c: Likewise.
2353         * trad-core.c: Likewise.
2354
2355 2000-12-19  Kazu Hirata  <kazu@hxi.com>
2356
2357         * sco5-core.c: Fix formatting.
2358         * section.c: Likewise.
2359         * sparclinux.c: Likewise.
2360         * sparclynx.c: Likewise.
2361         * sparcnetbsd.c: Likewise.
2362         * srec.c: Likewise.
2363         * stabs.c: Likewise.
2364         * stab-syms.c: Likewise.
2365         * sunos.c: Likewise.
2366         * syms.c: Likewise.
2367         * sysdep.h: Likewise.
2368
2369 2000-12-18  Nick Clifton  <nickc@redhat.com>
2370
2371         * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2372         defined.
2373         * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2374         * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2375
2376 2000-12-18  Nick Clifton  <nickc@redhat.com>
2377
2378         * vms-misc.c (_bfd_vms_get_record): Add default case to
2379         file_format switch.
2380
2381 2000-12-15  Miloslav Trmac <mitr@volny.cz>
2382
2383         * elfcore.h (elf_core_file_p): Move to the start of the program
2384         headers before attempting to read them.
2385
2386 2000-12-14  Kazu Hirata  <kazu@hxi.com>
2387
2388         * peigen.c: Fix formatting.
2389         * som.c: Likewise.
2390         * som.h: Likewise.
2391
2392 2000-12-13  Kazu Hirata  <kazu@hxi.com>
2393
2394         * peigen.c: Fix formatting.
2395
2396 2000-12-12  Jim Wilson  <wilson@redhat.com>
2397
2398         *  elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2399
2400 2000-12-08  Mark Salter  <msalter@redhat.com>
2401
2402         * binary.c (binary_set_section_contents): Ignore sections
2403         with zero size.
2404
2405 2000-12-12  Kazu Hirata  <kazu@hxi.com>
2406
2407         * m68klinux.c: Fix formatting.
2408         * m68knetbsd.c: Likewise.
2409         * mipsbsd.c: Likewise.
2410         * netbsd-core.c: Likewise.
2411         * netbsd.h: Likewise.
2412         * newsos3.c: Likewise.
2413         * nlm32-alpha.c: Likewise.
2414         * nlm32-i386.c: Likewise.
2415         * nlm32-ppc.c: Likewise.
2416         * nlm32-sparc.c: Likewise.
2417         * nlmcode.h: Likewise.
2418         * nlmswap.h: Likewise.
2419         * nlm-target.h: Likewise.
2420         * ns32knetbsd.c: Likewise.
2421
2422 2000-12-10  Fred Fish  <fnf@be.com>
2423
2424         * elflink.h (elf_link_output_extsym): Don't complain about undefined
2425         symbols in shared objects if allow_shlib_undefined is true.
2426
2427 2000-12-12  Nick Clifton  <nickc@redhat.com>
2428
2429         * cpu-sh.c: Fix formattng.
2430         * elf.c: Fix formattng.
2431         * elf32-mips.c: Fix formattng.
2432         * elf32-sh.c: Fix formattng.
2433         * elf64-alpha.c: Fix formattng.
2434
2435 2000-12-09  Nick Clifton  <nickc@redhat.com>
2436
2437         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2438         dwarf2_find_line_info as last parameter to invocation of
2439         _bfd_dwarf2_find_nearest_line.
2440         * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2441         dwarf2_find_line_info as last parameter to invocation of
2442         _bfd_dwarf2_find_nearest_line.
2443
2444 2000-12-08  Mark Elbrecht  <snowball3@bigfoot.com>
2445
2446         * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2447         (BFD_LIBS): ...to here.
2448         (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2449         (BFD_LIBS_CFILES): ...to here.
2450         * Makefile.in: Regenerate.
2451         * configure.in: Remove dwarf.lo from the elf shell variable.
2452         * configure: Regenerate.
2453         * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2454         * libcoff.h: Regenerate.
2455         * coffgen.c (coff_find_nearest_line): Call
2456         _bfd_dwarf2_find_nearest_line.
2457         * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2458         accordingly.
2459         (read_abbrevs): Likewise
2460         (decode_line_info): Likewise.
2461         (parse_comp_unit): Likewise.
2462         (comp_unit_find_nearest_line): Likewise.
2463         * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2464         * libbfd.h: Regenerate.
2465         * elf.c (_bfd_elf_find_nearest_line): Update call.
2466         * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2467         * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2468         * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2469         (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2470         (styp_to_sec_flags): Handle DWARF2 sections.
2471         * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2472         to _bfd_find_nearest_line.
2473         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2474         call to _bfd_find_nearest_line.
2475
2476 2000-12-08  Kazu Hirata  <kazu@hxi.com>
2477
2478         * coffgen.c: Fix formatting.
2479         * elf-m10300.c: Likewise.
2480         * elf32-i386.c: Likewise.
2481         * elf32-i960.c: Likewise.
2482         * elf32-m68k.c: Likewise.
2483         * elf32-mcore.c: Likewise.
2484         * elf32-ppc.c: Likewise.
2485         * elf32-sh.c: Likewise.
2486         * elf32-sparc.c: Likewise.
2487         * elf32-v850.c: Likewise.
2488         * elf64-alpha.c: Likewise.
2489         * elf64-hppa.c: Likewise.
2490         * elf64-mips.c: Likewise.
2491         * elf64-sparc.c: Likewise.
2492
2493 2000-12-07  Kazu Hirata  <kazu@hxi.com>
2494
2495         * elf32-ppc.c: Fix formatting.
2496         * elf64-x86-64.c: Likewise.
2497
2498 2000-12-06  Ulf Carlsson  <ulfc@engr.sgi.com>
2499
2500         From  Ralf Baechle  <ralf@gnu.org>
2501
2502         * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2503         BFDs containing no sections or empty .text, .data or .bss sections
2504         to be merged, regardless of their flags.
2505
2506 2000-12-06  Kazu Hirata  <kazu@hxi.com>
2507
2508         * elf32-m32r.c: Fix formatting.
2509         * elf32-m68hc11.c: Likewise.
2510         * elf32-m68hc12.c: Likewise.
2511         * elf32-m68k.c: Likewise.
2512         * elf32-mcore.c: Likewise.
2513         * elf32-pj.c: Likewise.
2514         * elf32-ppc.c: Likewise.
2515
2516 2000-12-05  Kazu Hirata  <kazu@hxi.com>
2517
2518         * elf32-fr30.c: Fix formatting.
2519         * elf32-hppa.c: Likewise.
2520         * elf32-i370.c: Likewise.
2521         * elf32-i386.c: Likewise.
2522         * elf32-i860.c: Likewise.
2523         * elf32-i960.c: Likewise.
2524
2525 2000-12-03  Kazu Hirata  <kazu@hxi.com>
2526
2527         * elf32-arm.h: Fix formatting.
2528         * elf32-avr.c: Likewise.
2529         * elf32-cris.c: Likewise.
2530         * elf32-d10v.c: Likewise.
2531         * elf32-d30v.c: Likewise.
2532         * elf-hppa.h: Likewise.
2533         * elf-m10200.c: Likewise.
2534         * elf-m10300.c: Likewise.
2535
2536 2000-12-01  Chris Demetriou  <cgd@sibyte.com>
2537
2538         * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2539         bfd_mach_mips32_4k.  Update FIXME comment.
2540         * archures.c (bfd_mach_mips32): New constant.
2541         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2542         the latter, renumber it.
2543         * bfd-in2.h (bfd_mach_mips32): New constant.
2544         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2545         the latter, renumber it.
2546         * cpu-mips.c (I_mips32): New constant.
2547         (I_mips4K, I_mips32_4k): Rename the former to the latter.
2548         (arch_info_struct): Add bfd_mach_mips32 entry, replace
2549         bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2550         * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2551         (elf_mips_mach): Likewise.  Also, replace E_MIPS_MACH_MIPS32
2552         with E_MIPS_MACH_MIPS32_4K.
2553         (_bfd_mips_elf_final_write_processing): Replace
2554         bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2555         bfd_mach_mips32 case.
2556         (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2557         comparison with support for MIPS32.
2558         (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2559         MIPS32.
2560
2561         * aoutx.h (NAME(aout,machine_type)): Add cases for
2562         bfd_mach_mips5 and bfd_mach_mips64.
2563         * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2564         * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2565         * cpu_mips.c (I_mips5, I_mips64): New definitions.
2566         (arch_info_struct): Add entries for bfd_mach_mips5 and
2567         bfd_mach_mips64.
2568         * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2569         _bfd_mips_elf_print_private_bfd_data): Add cases for
2570         E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2571         (_bfd_mips_elf_final_write_processing): Add cases for
2572         bfd_mach_mips5 and bfd_mach_mips64.
2573
2574         * aoutx.h (NAME(aout,machine_type)): Add a
2575         bfd_mach_mips_sb1 case.
2576         * archures.c (bfd_mach_mips_sb1): New constant.
2577         * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2578         * cpu-mips.c (I_sb1): New constant.
2579         (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2580         * elf32-mips.c (elf_mips_mach): Add case for
2581         E_MIPS_MACH_SB1.
2582         (_bfd_mips_elf_final_write_processing): Add case for
2583         bfd_mach_mips_sb1.
2584
2585 2000-12-01  Joel Sherrill <joel@OARcorp.com>
2586
2587         * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2588         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2589         (sparc*-*-rtems*): Switched from a.out to ELF.
2590
2591 2000-11-30  Jan Hubicka  <jh@suse.cz>
2592
2593         * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2594         BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2595         (elf64-x86-64.lo): Add dependencies.
2596         * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2597         bfd_mach_x86_64_intel_syntax.
2598         * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2599         * config.bfd (x86_64): Add.
2600         * configure.in: Add support for bfd_elf64_x86_64_vec.
2601         * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2602         (bfd_i386_arch, i8086_ar): Link in.
2603         * elf64-x86-64.c: New file.
2604         * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2605         * targets.c (bfd_elf64_x86_64_vec): Add.
2606         (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2607
2608 2000-11-30  Kazu Hirata  <kazu@hxi.com>
2609
2610         * xcofflink.c: Fix formatting.
2611
2612 2000-11-28  Kazu Hirata  <kazu@hxi.com>
2613
2614         * aoutx.h: Fix formatting.
2615         * bfd-in.h: Likewise.
2616         * bfd-in2.h: Likewise.
2617         * cache.c: Likewise.
2618         * cisco-core.c: Likewise.
2619         * coff64-rs6000.c: Likewise.
2620         * coffcode.h: Likewise.
2621         * coffswap.h: Likewise.
2622         * corefile.c: Likewise.
2623         * elf32-mips.c: Likewise.
2624
2625 2000-11-27  Kazu Hirata  <kazu@hxi.com>
2626
2627         * aout-adobe.c: Fix formatting.
2628         * coff64-rs6000.c: Likewise.
2629         * coffgen.c: Likewise.
2630         * cofflink.c: Likewise.
2631
2632 2000-11-27  Philip Blundell  <pb@futuretv.com>
2633
2634         * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2635         (obj_coff_strings_written): New accessor macro for above.
2636         * libcoff.h: Regenerate.
2637         * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2638         strings.
2639         * coffcode.h (coff_write_object_contents): No need to write out
2640         the string table if it's already been done.
2641
2642 2000-11-22  Philip Blundell  <pb@futuretv.com>
2643
2644         * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2645         weak undefined symbols.
2646
2647 2000-11-24  Nick Clifton  <nickc@redhat.com>
2648
2649         * archures.c (bfd_mach_arm_5TE): Define.
2650         (bfd_mach_arm+XScale): Define.
2651         * bfd-in2.h: Regenerate.
2652
2653         * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2654         BFD_RELOC_ARM_PCREL_BLX.
2655
2656         * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2657         XScale machine numbers.
2658
2659         * config.bfd (xscale-elf): Add target.
2660         (xscale-coff): Add target.
2661
2662         * cpu-arm.c: Add xscale machine name.
2663         Add v5t, v5te and XScale machine numbers.
2664
2665 2000-11-23  Kazu Hirata  <kazu@hxi.com>
2666
2667         * aix386-core.c: Fix formatting.
2668
2669 2000-11-22  Jim Wilson  <wilson@redhat.com>
2670
2671         * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2672         (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2673         * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2674         (ins_imms_scaled): Initialize sign_bit at function entry.
2675         (elf64_ia64_operands): Add missing initializers.
2676         * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2677         elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2678         elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2679         elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2680         elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2681         parameters.
2682         (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2683         and free_extsyms at function entry.
2684         (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2685         (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2686         (get_got): Delete unused local srel.
2687         (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2688         (elfNN_ia64_relocate_section): Delete unused local dynindx.
2689
2690 2000-11-21  Kazu Hirata  <kazu@hxi.com>
2691
2692         * coff-a29k.c: Fix formatting.
2693         * coff-h8500.c: Likewise.
2694         * coff-i960.c: Likewise.
2695         * coff-ppc.c: Likewise.
2696         * coff-rs6000.c: Likewise.
2697         * coff-stgo32.c: Likewise.
2698         * coff-tic54x.c: Likewise.
2699         * coff-w65.c: Likewise.
2700         * cpu-h8500.c: Likewise.
2701         * cpu-hppa.c: Likewise.
2702         * cpu-ns32k.c: Likewise.
2703         * ecoff.c: Likewise.
2704         * ecofflink.c: Likewise.
2705
2706 2000-11-21  Nick Clifton  <nickc@redhat.com>
2707
2708         * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2709         remove possibility of infinite loop.
2710
2711 2000-11-20  Kazu Hirata  <kazu@hxi.com>
2712
2713         * aix386-core.c: Fix formatting.
2714         * aout-adobe.c: Likewise.
2715         * aout-arm.c: Likewise.
2716         * aout-encap.c: Likewise.
2717         * aout-ns32k.c: Likewise.
2718         * aout-target.h: Likewise.
2719         * aout-tic30.c: Likewise.
2720         * aoutf1.h: Likewise.
2721         * aoutx.h: Likewise.
2722         * archive.c: Likewise.
2723         * bfd-in.h: Likewise.
2724         * bfd-in2.h: Likewise.
2725         * bfd.c: Likewise.
2726         * bout.c: Likewise.
2727
2728 2000-11-17  H.J. Lu  <hjl@gnu.org>
2729
2730         * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2731         pltoff entries for DT_INIT and DT_FINI.
2732         (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2733         (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2734         entries.
2735
2736 2000-11-16  Richard Henderson  <rth@redhat.com>
2737
2738         * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2739         (allocate_dynrel_entries): Likewise.
2740         (elfNN_ia64_relocate_section): Likewise.  Set REL addends correctly.
2741         (set_pltoff_entry): Likewise.
2742         (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2743         (elfNN_ia64_reloc_type_lookup): Likewise.
2744         (elfNN_ia64_install_value): Likewise.
2745         (elfNN_ia64_relocate_section): Likewise.
2746         * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2747         (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2748
2749 2000-11-16  Kazu Hirata  <kazu@hxi.com>
2750
2751         * cpu-a29k.c: Fix formatting.
2752         * cpu-alpha.c: Likewise.
2753         * cpu-arm.c: Likewise.
2754         * cpu-avr.c: Likewise.
2755         * cpu-d10v.c: Likewise.
2756         * cpu-h8500.c: Likewise.
2757         * cpu-hppa.c: Likewise.
2758         * cpu-i370.c: Likewise.
2759         * cpu-i386.c: Likewise.
2760         * cpu-i960.c: Likewise.
2761         * cpu-ia64-opc.c: Likewise.
2762         * cpu-ia64.c: Likewise.
2763         * cpu-m32r.c: Likewise.
2764         * cpu-m68hc11.c: Likewise.
2765         * cpu-m68hc12.c: Likewise.
2766         * cpu-m68k.c: Likewise.
2767         * cpu-m88k.c: Likewise.
2768         * cpu-mips.c: Likewise.
2769         * cpu-ns32k.c: Likewise.
2770         * cpu-pj.c: Likewise.
2771         * cpu-powerpc.c: Likewise.
2772         * cpu-sh.c: Likewise.
2773         * cpu-sparc.c: Likewise.
2774         * cpu-tic54x.c: Likewise.
2775         * cpu-v850.c: Likewise.
2776         * cpu-vax.c: Likewise.
2777         * cpu-w65.c: Likewise.
2778         * cpu-we32k.c: Likewise.
2779         * cpu-z8k.c: Likewise.
2780         * dwarf1.c: Likewise.
2781         * dwarf2.c: Likewise.
2782
2783 2000-11-15  Kazu Hirata  <kazu@hxi.com>
2784
2785         * coff-arm.c: Fix formatting.
2786         * coff-ppc.c: Likewise.
2787         * coff-rs6000.c: Likewise.
2788         * coff-sh.c: Likewise.
2789         * coff-sparc.c: Likewise.
2790         * coff-tic30.c: Likewise.
2791         * coff-tic54x.c: Likewise.
2792         * coff-tic80.c: Likewise.
2793         * coff-w65.c: Likewise.
2794         * coff-we32k.c: Likewise.
2795         * coff-z8k.c: Likewise.
2796
2797 2000-11-15  Richard Henderson  <rth@redhat.com>
2798
2799         * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2800         section with the same ALLOC|LOAD flags as the source section.
2801
2802 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
2803
2804         * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2805         by STO_ALPHA constants.
2806
2807 2000-11-14  Kazu Hirata  <kazu@hxi.com>
2808
2809         * coff-pmac.c: Fix formatting.
2810         * coff-ppc.c: Likewise.
2811
2812 2000-11-13  H.J. Lu  <hjl@gnu.org>
2813
2814         * elflink.h (elf_link_add_object_symbols): Also add indirect
2815         symbols for common symbols with the default version.
2816
2817 2000-11-09  Philip Blundell  <pb@futuretv.com>
2818
2819         * section.c (STD_SECTION): Set gc_mark flag.
2820
2821 2000-11-11  Kazu Hirata  <kazu@hxi.com>
2822
2823         * coff-i960.c: Likewise.
2824         * coff-m68k.c: Likewise.
2825         * coff-m88k.c: Likewise.
2826         * coff-mcore.c: Likewise.
2827         * coff-mips.c: Likewise.
2828
2829 2000-11-11  Bernd Schmidt  <bernds@cygnus.co.uk>
2830
2831         * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2832
2833 2000-11-10  Kazu Hirata  <kazu@hxi.com>
2834
2835         * coff-h8300.c: Fix formatting.
2836         * coff-h8500.c: Likewise.
2837         * coff-i386.c: Likewise.
2838         * coff-i860.c: Likewise.
2839         * coff-i960.c: Likewise.
2840         * coff-ia64.c: Likewise.
2841
2842 2000-11-09  Kazu Hirata  <kazu@hxi.com>
2843
2844         * archive.c: Fix formatting.
2845         * archures.c: Likewise.
2846
2847 2000-11-07  Richard Henderson  <rth@redhat.com>
2848
2849         * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2850         Set it before bfd_elf64_bfd_final_link call.  Use it after the call.
2851         * section.c (bfd_set_section_contents): Call memcpy if
2852         section->contents set and location not equal to contents plus offset.
2853
2854 2000-11-08  Kazu Hirata  <kazu@hxi.com>
2855
2856         * bfd-in.h: Fix formatting.
2857         * bfd-in2.h: Likewise.
2858         * bfd.c: Likewise.
2859         * binary.c: Likewise.
2860         * bout.c: Likewise.
2861         * coff-a29k.c: Likewise.
2862         * coff-alpha.c: Likewise.
2863         * coff-apollo.c: Likewise.
2864         * coff-aux.c: Likewise.
2865
2866 2000-11-07  Kazu Hirata  <kazu@hxi.com>
2867
2868         * aix386-core.c: Fix formatting.
2869         * aoutf1.h: Likewise.
2870         * aoutx.h: Likewise.
2871         * archures.c: Likewise.
2872         * armnetbsd.c: Likewise.
2873
2874 2000-11-07  Alan Modra  <alan@linuxcare.com.au>
2875
2876         * coff-h8300.c (special): Adjust reloc address.
2877
2878 2000-11-06  Steve Ellcey <sje@cup.hp.com>
2879
2880         * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2881         to differentiate elf32 and elf64 on ia64.
2882         * bfd-in2.h: Regenerate.
2883         * config.bfd: Add target for "ia64*-*-hpux*".
2884         * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2885         * configure: Regenerate.
2886         * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2887         * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2888
2889         * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2890         from elfxx-ia64.c.  Add depenency rules for making elf32-ia64.lo.
2891         * Makefile.in: Regnerate.
2892         * elf64-ia64.c: Deleted.
2893         * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2894
2895 2000-11-06  Kazu Hirata  <kazu@hxi.com>
2896
2897         * aout-adobe.c: Fix formatting.
2898         * aout-arm.c: Likewise.
2899         * aout-cris.c: Likewise.
2900         * aout-encap.c: Likewise.
2901         * aout-ns32k.c: Likewise.
2902         * aout-target.h: Likewise.
2903         * aout-tic30.c: Likewise.
2904
2905 2000-11-05  Philip Blundell  <philb@gnu.org>
2906
2907         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2908         BFDs containing no sections to be merged, regardless of their flags.
2909
2910 2000-11-04  Philip Blundell  <philb@gnu.org>
2911
2912         * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2913         if a relocation for an undefined symbol also results in an
2914         overflow.
2915
2916 2000-11-06  Christopher Faylor <cgf@cygnus.com>
2917
2918         * config.bfd: Add support for Sun Chorus.
2919
2920 2000-11-05  David O'Brien  <obrien@FreeBSD.org>
2921
2922         * configure.in: Recognize alpha-*-freebsd*.
2923         * configure: Regenerate.
2924
2925 2000-11-02  Luciano Gemme <ishitawa@yahoo.com>
2926
2927         * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2928         (Chunk): New global variable set by a parameter in objcopy.c.
2929         (S3Forced): New global variable set by a parameter in
2930         objcopy.c.
2931         (srec_set_section_contents): If S3Forced is true, always generate
2932         S3 records.
2933         (srec_write_section): Use 'Chunk' to limit maximum length of S
2934         records.
2935
2936 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
2937
2938         * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2939         * Makefile.in: Regenerate.
2940         * bfd-in2.h: Regenerate.
2941         * po/bfd.pot: Regenerate.
2942
2943 2000-10-31  Philip Blundell  <philb@gnu.org>
2944
2945         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2946         EF_SOFT_FLOAT if it is defined.
2947
2948 2000-10-27  Philip Blundell  <philb@gnu.org>
2949
2950         * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2951         attempts to mix PIC code with non-PIC, just mark the output as
2952         being position dependent.
2953         (elf32_arm_merge_private_bfd_data): Likewise.  Print an error
2954         message for EF_SOFT_FLOAT mismatches.  Display diagnostics for
2955         all mismatches, not just the first one.
2956
2957 2000-10-25  Chris Demetriou  <cgd@sibyte.com>
2958
2959         * ieee.c (ieee_archive_p): Plug one of many possible
2960         memory leaks in error handling.
2961
2962 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
2963
2964         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2965         elf32_sparc_object_p, elf32_sparc_final_write_processing):
2966         Support v8plusb.
2967         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2968         sparc64_elf_object_p): Support v9b.
2969         * archures.c: Declare v8plusb and v9b machines.
2970         * bfd-in2.h: Ditto.
2971         * cpu-sparc.c: Ditto.
2972
2973 2000-10-16  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
2974
2975         * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2976         of a GOT reloc.
2977
2978         * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2979         (SYMBOL_CALLS_LOCAL): New macro.
2980         (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2981         (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2982         (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2983         (ppc_elf_relocate_section): Use flag variable to determine
2984         whether the relocation refers to a local symbol.
2985         Test whether a PLTREL24 reloc will produce a reloc by looking
2986         to see whether a PLT entry was made.
2987
2988 2000-10-14  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
2989
2990         * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2991         entries that could serve as a definition for a weak symbol.
2992
2993 2000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>
2994
2995         From  Ralf Baechle  <ralf@gnu.org>
2996
2997         * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2998         local_p.  Add symbol value only for non-R_MIPS_REL32 relocations
2999         against local symbols.
3000         (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
3001
3002 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3003
3004         * section.c (struct sec): Add kept_section.
3005         (struct bfd_comdat_info): Remove sec, we can use above.
3006         (STD_SECTION): Add initializer.
3007         (bfd_make_section_anyway): Init here too.
3008
3009         * bfd-in2.h: Regenerate.
3010
3011         * elflink.h (elf_link_add_object_symbols): Remove unnecessary
3012         zeroing of `flags'.
3013         (elf_link_input_bfd): Set all asection->symbol->value's here, and
3014         fudge values for discarded link-once section symbols.
3015
3016         * elf64-hppa.c: Include alloca-conf.h
3017
3018 2000-10-11  Alan Modra  <alan@linuxcare.com.au>
3019
3020         * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3021
3022         * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3023
3024 2000-10-10  Alan Modra  <alan@linuxcare.com.au>
3025
3026         * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3027
3028 2000-10-10  Tom Rix <trix@redhat.com>
3029
3030         * section.c (bfd_make_section_anyway): Release newsect ptr when
3031         newsect->symbol fails to alloc.  Use bfd_release instead of free.
3032
3033 2000-10-09  Richard Henderson  <rth@cygnus.com
3034
3035         * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3036         (elf64_ia64_unwind_entry_compare): New.
3037         (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3038
3039 2000-10-07  Alan Modra  <alan@linuxcare.com.au>
3040
3041         * elflink.h (size_dynamic_sections): Don't create various tags if
3042         .dynstr is excluded from the link.  Don't set first dynsym entry
3043         if dynsymcount is zero.
3044         (elf_bfd_final_link): Don't try to swap out dynamic syms if
3045         .dynsym excluded from the link.  Don't try to write any dynamic
3046         sections excluded from the link.
3047
3048         * elf.c (swap_out_syms): Handle global section symbols.
3049
3050 2000-10-05  DJ Delorie  <dj@redhat.com>
3051
3052         * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3053         * coffcode.h (coff_set_alignment_hook): read extended reloc count
3054         (coff_write_relocs): write extended reloc count
3055         (coff_write_object_contents): account for extended relocs
3056
3057 2000-10-05  Jim Wilson  <wilson@cygnus.com>
3058
3059         * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3060         field.
3061         * elf.c (_bfd_elf_make_section_from_shdr): Call the
3062         elf_backend_section_flags function.
3063         * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3064         code.
3065         (elf64_ia64_section_flags): New function containing flag conversion
3066         code.
3067         (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3068         * elfxx-target.h (elf_backend_section_flags): Define.
3069         (elfNN_bed): Initialize elf_backend_section_flags field.
3070
3071 2000-10-02  Alan Modra  <alan@linuxcare.com.au>
3072
3073         * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3074         _bfd_elf32_gc_record_vtable.  Correct a comment.
3075
3076 2000-10-01  Ulf Carlsson  <ulfc@engr.sgi.com>
3077
3078         From  Ralf Baechle  <ralf@gnu.org>
3079
3080         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3081         produces binaries with got[1] = 0x80000001 to differenciate them
3082         for the dynamic linker from the broken binaries produced by old
3083         versions.
3084
3085 2000-09-30  Petr Sorfa <petrs@sco.com>
3086
3087         * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3088         (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3089         * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3090         * configure: Regenerate.
3091
3092 2000-09-27  Hans-Peter Nilsson  <hp@axis.com>
3093
3094         Define two bfd_targets for absence and presence of leading
3095         underscore on symbols.  Make sure to only link same kind.
3096         * elf32-cris.c (cris_elf_object_p,
3097         cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3098         cris_elf_merge_private_bfd_data): New.
3099         (elf_backend_object_p, elf_backend_final_write_processing,
3100         bfd_elf32_bfd_print_private_bfd_data,
3101         bfd_elf32_bfd_merge_private_bfd_data): Define.
3102         <Target vector definition>: Include elf32-target.h twice with
3103         different macro settings:
3104         (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3105         bfd_elf32_us_cris_vec.
3106         (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3107         (elf_symbol_leading_char): First as 0, then '_'.
3108         (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3109         * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3110         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3111         * configure: Regenerate.
3112         * targets.c: Declare bfd_elf32_us_cris_vec.
3113         * po/bfd.pot: Regenerate.
3114
3115 2000-09-29  Momchil Velikov  <velco@fadata.bg>
3116
3117         * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3118         R_ARM_THM_PC22 relocations.
3119
3120 2000-09-29  NIIBE Yutaka <gniibe@chroot.org>
3121
3122         * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3123
3124 2000-09-29  Momchil Velikov <velco@fadata.bg>
3125
3126         * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3127         is has the SEC_HAS_CONTENTS flag set.
3128
3129 2000-09-28  \81Örjan Friberg  <orjanf@axis.com>
3130             Hans-Peter Nilsson  <hp@axis.com>
3131
3132         * aout-cris.c (N_TXTADDR): Define.
3133
3134 2000-09-28  John David Anglin <dave@hiauly1.hia.nrc.ca>
3135
3136         * som.c: Include alloca-conf.h.
3137         * Makefile.am: "make dep-am"
3138         * Makefile.in: Regenerate.
3139
3140 2000-09-27  Alan Modra  <alan@linuxcare.com.au>
3141
3142         * elf32-hppa.c (plt_stub): New.
3143         (PLT_STUB_ENTRY): Define.
3144         (elf32_hppa_link_hash_table): Change multi_subspace to packed
3145         boolean.  Add need_plt_stub, has_12bit_branch and has_17bit_branch.
3146         (elf32_hppa_link_hash_table_create): Init to suit.
3147         (elf32_hppa_check_relocs): Set has_12bit_branch and
3148         has_17bit_branch as appropriate.
3149         (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
3150         non-local functions.
3151         (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
3152         Add space for plt_stub as needed.
3153         (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
3154         functions at plt_stub.
3155         (elf32_hppa_finish_dynamic_sections): Write plt_stub.
3156         (elf32_hppa_create_dynamic_sections): Leave .plt executable.
3157
3158         * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
3159         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.  Use it instead
3160         of fixed size, and if negative, disable handling of input sections
3161         before stub section.  Set up default stub group size depending
3162         on detected branch relocs.
3163         (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
3164         ensure different offsets from sym_value aren't rounded to
3165         different 2k blocks.  Use lrsel and rrsel for other stubs too for
3166         consistency rather than necessity.
3167         (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
3168         (final_link_relocate): Likewise.
3169         (elf32_hppa_relocate_section): Likewise.
3170
3171         * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
3172         (_bfd_elf_hppa_gen_reloc_type): Generate them.
3173         (elf_hppa_final_link_relocate): Handle them.
3174         (elf_hppa_relocate_insn): Likewise.
3175         (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3176
3177 2000-09-26  Hans-Peter Nilsson  <hp@axis.com>
3178
3179         * elfcode.h (elf_object_p): Preserve and clear abfd section
3180         information.  Restore at error.
3181
3182 2000-09-26  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3183
3184         * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3185         is empty, make sure that its rva also 0. NT loader dislikes
3186         having otherwise.
3187
3188 2000-09-26  Steve Ellcey <sje@cup.hp.com>
3189
3190         * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3191         global by default.
3192
3193 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3194
3195         * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3196         currently unused RELATIVE_DYNAMIC_RELOCS code.
3197         (hppa_discard_copies): Likewise.
3198         (elf32_hppa_size_stubs): Size `input_list' array correctly.  Correct
3199         comments.  Don't check non-code output sections for stub grouping.
3200
3201 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3202
3203         * section.c (bfd_get_unique_section_name): Return NULL if
3204         bfd_malloc fails.
3205
3206 2000-09-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3207
3208         * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3209         instruction sequence to actually work.
3210         (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3211         accordingly.
3212
3213 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
3214
3215         * elf32-sh.c (sh_elf_relocate_section): Use
3216         _bfd_final_link_relocate to apply the relocation against a section
3217         symbol, when doing relocatable links.
3218
3219 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3220
3221         * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3222         to id_sec.
3223         (stub_hash_newfunc): Here too.
3224         (hppa_add_stub): And here.
3225         (elf32_hppa_link_hash_table): Remove stub_section_created,
3226         reloc_section_created, first_init_sec and first_fini_sec.  Add
3227         stub_group.
3228         (elf32_hppa_link_hash_table_create): Init to suit.
3229         (hppa_get_stub_entry): Add support for grouping stub sections.
3230         (hppa_add_stub): Likewise.  Remove sec_count param and init/fini
3231         section code.  Index stub vars by section->id.
3232         (elf32_hppa_size_stubs): Likewise.  Remove duplicated function
3233         exit paths.  Zap allocation of above removed vars.  Refine
3234         link-once test.
3235
3236         * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3237         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3238         (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3239         rather than pointer to bfd_link_info.
3240         (hppa_add_stub): Likewise.
3241         (final_link_relocate): Likewise.
3242
3243 2000-09-17  David Huggins-Daines  <dhd@linuxcare.com>
3244
3245         (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3246         link-once sections.
3247
3248 2000-09-16  Alexandre Oliva  <aoliva@redhat.com>
3249
3250         * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3251         ld/emulparams/shelf.sh.
3252
3253 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3254
3255         * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3256         * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3257         * bfd-in2.h: Regenerate.
3258
3259 2000-09-15  Kenneth Block  <Kenneth.Block@compaq.com>
3260
3261         * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3262         LITUSE relocations incorrectly if -relax is specified on the ld
3263         command line and the displacement field of the load or store
3264         instruction is non-zero. (Patch by paul.winalski@compaq.com)
3265
3266 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3267
3268         * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3269         first_fini_sec here.
3270         (elf32_hppa_size_stubs): Instead correctly find the first .init
3271         and .fini section here.
3272
3273 2000-09-15  David Huggins-Daines  <dhd@linuxcare.com>
3274
3275         * elf32-hppa.c (clobber_millicode_symbols): New function.
3276         (elf32_hppa_size_dynamic_sections): Call it.
3277
3278 2000-09-14  Alan Modra  <alan@linuxcare.com.au>
3279
3280         * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3281         packed.  Add plabel, plt_abs packed booleans.
3282         (hppa_link_hash_newfunc): Init new fields.
3283         (PLABEL_PLT_ENTRY_SIZE): Define.
3284         (hppa_stub_name): Use size_t len vars.
3285         (hppa_add_stub): Likewise.
3286         (elf32_hppa_build_stubs): Likewise.
3287         (hppa_build_one_stub): Kill some compiler warnings.
3288         (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3289         if dynamic linking.  Munge the local plt offsets into
3290         local_got_refcounts.  Set h->plabel for all global PLABELs.  Use
3291         size_t len vars.  Add assert for plabel addend.
3292         (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3293         (elf32_hppa_hide_symbol): New function.
3294         (elf_backend_hide_symbol): Define.
3295         (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3296         with h->plabel set.  Don't make plt entries to have dynamic syms
3297         when they have been forced local.  If plt entry is used by a
3298         plabel, make it PLABEL_PLT_ENTRY_SIZE.
3299         (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3300         Set up .plt offsets for local syms.
3301         (elf32_hppa_relocate_section): Initialise plt entries for local
3302         syms.  Leave weak undefined plabels zero.  Make global plabel
3303         relocs against function symbol, and leave the addend zero.
3304         Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3305         (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3306         non-dynamic syms.  Init extra plt for plabels.  Use *ABS* DIR32
3307         relocs instead of SEGREL32 for dynamic got relocs.
3308         (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3309         (elf_backend_got_header_size): Adjust.
3310         (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3311
3312         * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3313         (hppa_type_of_stub): Use it instead of #if 0
3314         (hppa_discard_copies): Use it here too.
3315         (elf32_hppa_size_dynamic_sections): And here.
3316
3317         * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3318         (elf32_hppa_link_hash_table_create): And here.
3319         (hppa_build_one_stub): And here.  Instead keep track of stub
3320         offset using _raw_size.
3321         (elf32_hppa_size_stubs): Likewise.
3322         (elf32_hppa_build_stubs): Likewise.
3323         (hppa_size_one_stub): Likewise.  Resize reloc section too.
3324
3325         * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3326         first_fini_sec handling.  Don't search for reloc section or set
3327         hplink->reloc_section_created here.
3328         (elf32_hppa_size_stubs): Instead search for reloc sections, and
3329         set reloc_section_created here.
3330         (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3331         (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3332         and DT_FINI.
3333         (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3334
3335         * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3336         with `hplink->root.'.
3337         (elf32_hppa_check_relocs): Likewise.
3338         (elf32_hppa_gc_sweep_hook): Likewise.
3339         (elf32_hppa_adjust_dynamic_symbol): Likewise.
3340         (hppa_handle_PIC_calls): Likewise.
3341         (elf32_hppa_size_dynamic_sections): Likewise.
3342         (elf32_hppa_set_gp): Likewise.
3343         (elf32_hppa_relocate_section): Likewise.
3344         (elf32_hppa_finish_dynamic_symbol): Likewise.
3345         (elf32_hppa_finish_dynamic_sections): Likewise.
3346
3347         From  David Huggins-Daines  <dhd@linuxcare.com>
3348         * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3349         defined weak symbols in shared links.
3350         (final_link_relocate): Calls to defined weak symbols in shared
3351         objects must go via import stubs, as the target might not be known
3352         at link time.
3353
3354 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
3355
3356         * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3357         R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3358         R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167.  Replaced
3359         the original entries with EMPTY_HOWTOs, and added new ones to fill
3360         in the gap.
3361         (sh_elf_info_to_howto): Make sure the new gap isn't used.
3362         (sh_elf_relocate_section): Likewise.
3363
3364 2000-09-13  Anders Norlander  <anorland@acc.umu.se>
3365
3366         * cpu-mips.c (arch_info_struct): Add mips:4K
3367         * bfd-in2.h (bfd_mach_mips4K): New define.
3368         * archures.c: Add bfd_mach_mips4K to comment.
3369         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3370         E_MIPS_ARCH_2 for bfd_mach_mips4K.
3371
3372 2000-09-13  Marco Franzen <marcof@thyron.com>
3373
3374         * som.c (som_write_symbol_strings): Do not used fixed buffers,
3375         use size_t as a counter.
3376         (som_write_space_strings): Similarly.
3377
3378 2000-09-12  Jason Eckhardt  <jle@cygnus.com>
3379
3380         * elf32-i860.c (elf32_i860_relocate_pc26): New function
3381         and prototype.
3382         (elf32_i860_relocate_section): Invoke new function from here.
3383
3384 2000-09-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3385
3386         * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3387         static.
3388
3389 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3390
3391         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3392         target section name instead of dumping core when the target symbol is
3393         undefined.
3394
3395 2000-09-09  Kazu Hirata  <kazu@hxi.com>
3396
3397         * riscix.c: Remove DEFUN.
3398
3399 2000-09-08  Nick Clifton  <nickc@redhat.com>
3400
3401         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3402         initialise flags in output bfd if the input bfd is the default
3403         architecture with the default flags.
3404
3405 2000-09-08  Kazu Hirata  <kazu@hxi.com>
3406
3407         * archive.c: Fix formatting.
3408         * coff-arm.c: Likewise.
3409         * doc/chew.c: Likewise.
3410
3411 2000-09-08  Alan Modra  <alan@linuxcare.com.au>
3412
3413         * section.c (bfd_get_unique_section_name): Put a dot before the
3414         numeric suffix.
3415
3416 2000-09-07  Kazu Hirata  <kazu@hxi.com>
3417
3418         * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
3419         * elf.c: Fix formatting.
3420
3421 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
3422
3423         * config.bfd (sh-*-linux*): Added.
3424         * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
3425         * targets.c: Declare them.
3426         * elf32-sh-lin.c: New file.
3427         * Makefile.am: Compile it.
3428         * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
3429         * configure, Makefile.in: Rebuilt.
3430
3431 2000-09-06  Geoffrey Keating  <geoffk@cygnus.com>
3432
3433         * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
3434         pseduo-section when determining where the TOC ends.
3435
3436         * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
3437         output x_tvndx as it is only two bytes wide.
3438
3439         * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
3440         reloc is 26 or 32 bits wide.
3441
3442         * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
3443         for relocs that don't change anything.  Also look at the full
3444         6 bits of bitsize.
3445
3446 2000-09-06  Philip Blundell  <philb@gnu.org>
3447
3448         * config.bfd (arm*-*-uclinux*): New target.
3449
3450 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3451
3452         * configure: Rebuilt with new libtool.m4.
3453
3454 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3455
3456         * section.c (bfd_get_unique_section_name): Avoid c++ reserved
3457         word for variable name.
3458         * bfd-in2.h: Regenerate.
3459
3460 2000-09-05  Nick Clifton  <nickc@redhat.com>
3461
3462         * config.in: Regenerate.
3463         * libbfd.h: Regenerate.
3464         * po/bfd.pot: Regenerate.
3465         * doc/bfdint.texi: Remove CVS date string - it foils compares with
3466         local versions.
3467
3468 2000-09-05  Steven Johnson  <sbjohnson@ozemail.com.au>
3469
3470         * cpu-powerpc.c  (arch_info_struct): Added MPC860 Family entry.
3471
3472 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3473
3474         Shared library and PIC support.
3475         * elf32-hppa.c (PLT_ENTRY_SIZE): New.
3476         (GOT_ENTRY_SIZE): New.
3477         (ELF_DYNAMIC_INTERPRETER): New.
3478         (STUB_SUFFIX): Define.
3479         (LONG_BRANCH_PIC_IN_SHLIB): Define.
3480         (RELATIVE_DYNAMIC_RELOCS): Define.
3481         (enum elf32_hppa_stub_type): New.
3482         (struct elf32_hppa_stub_hash_entry): Rename offset to
3483         stub_offset.  Add a number of new fields.
3484         (struct elf32_hppa_link_hash_entry): New.
3485         (struct elf32_hppa_link_hash_table): Add numerous fields.  Remove
3486         global_value.
3487         (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
3488         (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
3489         (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc.  Init
3490         new fields.
3491         (hppa_link_hash_newfunc): New function.
3492         (elf32_hppa_link_hash_table_create): Use above function. Init new
3493         fields.
3494         (elf32_hppa_stub_name): Rename to hppa_stub_name.  Pass in reloc
3495         instead of addend, and remove sym_name from args.  Don't use
3496         symbol name for local syms, instead use sym index.
3497         (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
3498         stub type rather than size.  Pass in hash and handle import stub
3499         case.  Also pass in reloc instead of offset so we can calculate
3500         PCREL22F and PCREL12F branches properly.
3501         (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub.  Build
3502         import and export stubs too.
3503         (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub.  Handle
3504         import and export stub sizing.
3505         (elf32_hppa_check_relocs): New function.
3506         (elf32_hppa_adjust_dynamic_symbol): New function.
3507         (hppa_discard_copies): New function.
3508         (elf32_hppa_size_dynamic_sections): New function.
3509         (elf_backend_size_dynamic_sections): Define.
3510         (elf32_hppa_finish_dynamic_symbol): New function.
3511         (elf_backend_finish_dynamic_symbol): Define.
3512         (elf32_hppa_size_stubs): Stash params in link hash table, and move
3513         some local vars into the link hash table too.  For shared links,
3514         trundle over function syms, generating export stubs.  Handle
3515         PCREL22F branches.  Break out stub creation code from here..
3516         (hppa_add_stub): .. to here.  New function.
3517         (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
3518         call the bfd linker.  Use elf_gp to record global pointer.
3519         Calculate a value from sections if $global$ is missing.
3520         (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
3521         (elf32_hppa_gc_mark_hook): New function.
3522         (elf_backend_gc_mark_hook): Define.
3523         (elf32_hppa_gc_sweep_hook): New function.
3524         (elf_backend_gc_sweep_hook): Define.
3525         (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
3526         Add rel to args, and remove howto, input_bfd, offset, addend,
3527         sym_name as we can recalculate these locally.  Handle calls to
3528         dynamic objects, extra PIC relocs, PCREL22F branches.  Change
3529         handling of undefined weak syms.  Check that stubs are in range.
3530         Only look for import stubs on PCREL17F and PCREL22F relocs.  Add
3531         message on hitting a DPREL21L reloc that needs fixing.  Subtract
3532         off PC for PCREL14F.  Break out code that does a stub lookup from
3533         here..
3534         (hppa_get_stub_entry): ..to here.  New function.
3535         (elf32_hppa_relocate_insn): Merge into final_link_relocate.
3536         (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
3537         relocs, etc. etc.
3538         (elf32_hppa_finish_dynamic_sections): New function.
3539         (elf_backend_finish_dynamic_sections): Define.
3540         (elf_backend_final_write_processing) Define.
3541         (hppa_handle_PIC_calls): New function.
3542         (elf32_hppa_build_stubs): Call it.  Pass link_info to
3543         hppa_build_one_stub.
3544         (elf32_hppa_create_dynamic_sections): New function
3545         to create .plt and .got then set .plt flags correctly.
3546         (elf_backend_create_dynamic_sections): Define.
3547         (elf32_hppa_object_p): New function.
3548         (elf_backend_object_p): Define.
3549         (elf32_hppa_elf_get_symbol_type): New function.
3550         (elf_backend_get_symbol_type): Define.
3551         (elf_backend_can_gc_sections): Define.
3552         (elf_backend_want_got_plt): Define.
3553         (elf_backend_plt_alignment): Set to 2.
3554         (elf_backend_plt_readonly): Define.
3555         (elf_backend_want_plt_sym): Define.
3556         (elf_backend_got_header_size): Reserve one entry.
3557
3558         * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
3559         (elf32_hppa_size_stubs): Pass in multi_subspace.
3560         (elf32_hppa_set_gp): Declare.
3561
3562         * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
3563         (bfd_get_unique_section_name): New function.
3564         * bfd-in2.h: Regenerate.
3565
3566         * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
3567         (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
3568         comment.
3569
3570         From  David Huggins-Daines  <dhd@linuxcare.com>
3571         * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
3572         (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
3573         (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
3574         been updated in finish_dynamic_symbol before modifying function
3575         symbol.
3576
3577         * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
3578         eight entries.  Replace NULL with bfd_elf_generic_reloc.  Add
3579         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
3580         (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*.  Add some
3581         comments.  Handle format == 12 for R_HPPA_PCREL_CALL.
3582         (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
3583         (elf_hppa_relocate_insn): Likewise.  Reformat some comments.
3584         (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
3585
3586         From David Huggins-Daines  <dhd@linuxcare.com>
3587         * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
3588         style of local labels as well.
3589
3590 2000-09-03  Philip Blundell  <philb@gnu.org>
3591
3592         * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
3593         references to undefined symbols in debugging sections.
3594
3595 2000-09-02  H.J. Lu  <hjl@gnu.org>
3596
3597         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3598         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
3599         BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
3600         section.
3601
3602 2000-09-02  Jason Eckhardt  <jle@cygnus.com>
3603
3604         * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
3605         (elf32_i860_is_local_label_name): New function and prototype.
3606
3607 2000-09-02  Nick Clifton  <nickc@redhat.com>
3608
3609         * configure.in: Increase version number to 2.10.91.
3610         * configure: Regenerate.
3611         * aclocal.m4: Regenerate.
3612         * config.in: Regenerate.
3613         * po/bfd.pot: Regenerate.
3614
3615 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3616
3617         * elf.c (_bfd_elf_make_section_from_shdr): Add
3618         .gnu.linkobce.wi. to the list of debug section names.
3619
3620 2000-09-02  Nick Clifton  <nickc@redhat.com>
3621
3622         * dwarf2.c (find_debug_info): New function: Locate a section
3623         containing dwarf2 debug information.
3624         (bfd_dwarf2_find_nearest_line): Find all sections containing
3625         debug information and include them in the stash.
3626
3627 2000-09-01  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3628
3629         * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3630         R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3631         (sh_reloc_map): Add new relocs.
3632         (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3633         sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3634         sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3635         sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3636         functions.
3637         (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3638         (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3639         elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3640         elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3641         New array constants.
3642         (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3643         New variables.
3644         (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3645         elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3646         elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3647         elf_sh_plt_reloc_offset): Define.
3648         (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3649         elf_sh_link_hash_table): New structs.
3650         (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3651         (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3652         relocation types.
3653         (elf_backend_create_dynamic_sections,
3654         bfd_elf32_bfd_link_hash_table_create,
3655         elf_backend_adjust_dynamic_symbol,
3656         elf_backend_size_dynamic_sections,
3657         elf_backend_finish_dynamic_symbol,
3658         elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3659         elf_backend_plt_readonly, elf_backend_want_plt_sym,
3660         elf_backend_got_header_size, elf_backend_plt_header_size):
3661         Define.
3662         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3663         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3664         New relocs.
3665         * bfd-in2.h, libbfd.h: Rebuilt.
3666
3667 2000-09-01  Alan Modra  <alan@linuxcare.com.au>
3668
3669         * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3670         change.
3671
3672 2000-08-31  J"orn Rennecke <amylaar@cygnus.co.uk>
3673
3674         * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3675         not initialized, set them to indicate the SH1 instruction set.
3676
3677 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3678
3679         * acinclude.m4: Include libtool and gettext macros from the
3680         top level.
3681         * aclocal.m4, configure: Rebuilt.
3682
3683 2000-08-29  Michael Snyder  <msnyder@seadog.cygnus.com>
3684
3685         * elf.c: Eliminate references to __sparcv9 macro; replace with
3686         autoconf variables HAVE_PSINFO32_T etc.
3687         * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
3688         HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
3689         * config.in: Ditto.
3690         * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
3691         detect the above typedefs.  (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
3692         * aclocal.m4: Ditto.
3693         * configure: Regenerate.
3694
3695 2000-08-27  Alan Modra  <alan@linuxcare.com.au>
3696
3697         * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
3698         for any shared link, not just shared -Bsymbolic.
3699         (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
3700         any shared link, and pass link info to it.
3701         (elf_i386_size_dynamic_sections): Update comment.
3702         (elf_i386_discard_copies): Modify to discard relocs for symbols
3703         that have been forced local.
3704         (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
3705         that have been forced local.
3706
3707 2000-08-24  Denis Chertykov  <denisc@overta.ru> & Nick Clifton  <nickc@redhat.com>
3708
3709         * elflink.h (elf_link_add_object_symbols): Allow common
3710         symbols to have an alignment of 1 if explicitly requested, and
3711         not overridden by other definitions.
3712
3713 2000-08-22  Doug Kwan <dkwan@transmeta.com>
3714
3715         * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
3716         * coffcode.h (coff_set_flags): Add detection of w65 architecture.
3717
3718 2000-08-22  H.J. Lu  <hjl@gnu.org>
3719
3720         * elf-bfd.h (elf_link_hash_table): Add runpath.
3721
3722         * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
3723         * bfd-in2.h: Rebuilt.
3724
3725         * elf.c (_bfd_elf_link_hash_table_init): Initialize the
3726         "runpath" field to NULL.
3727         (bfd_elf_get_runpath_list): New function.
3728
3729         * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
3730         DT_RUNPATH entries.
3731
3732 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
3733
3734         * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
3735         R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
3736         explicitly.  Improve validation of r_type.
3737
3738 2000-08-21  H.J. Lu  <hjl@gnu.org>
3739
3740         * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
3741         dynamic allocated content space.  Add a comment to remind us that
3742         one day this ought to be fixed.
3743         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3744         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3745         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3746
3747 2000-08-21  Jason Eckhardt  <jle@cygnus.com>
3748
3749         * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
3750         field with the newly relocated value instead of adding it to the
3751         existing immediate field.
3752         (elf32_i860_relocate_splitn): Likewise.
3753         (elf32_i860_relocate_highadj): Likewise.
3754
3755 2000-08-16  Jason Eckhardt  <jle@cygnus.com>
3756
3757         * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
3758         was previously just a stub).
3759
3760 2000-08-16  Alexandre Oliva  <aoliva@redhat.com>
3761
3762         * elflink.c (_bfd_elf_create_got_section): Don't abort().
3763         Formatting fixes.
3764         (_bfd_elf_create_dynamic_sections): Likewise.
3765
3766 2000-08-16  Andrew Macleod  <amacleod@cygnus.com>
3767
3768         * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
3769         for undefined symbols to be the beginning of the section.
3770
3771         * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
3772         four extra entries at the beginning of the .rela.plt section.
3773         (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
3774         section to account for the four reserved entries in the .plt section.
3775
3776 2000-08-15  Geoffrey Keating  <geoffk@cygnus.com>
3777
3778         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
3779         to the list of NOPs we recognize after a branch-and-link.
3780         Use the ori NOP when one is needed.
3781
3782         * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
3783         for large archives.
3784
3785 2000-08-14  Jim Wilson  <wilson@cygnus.com>
3786
3787         * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
3788         EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
3789         (elf64_ia64_print_private_bfd_data): Likewise.  Also handle
3790         EF_IA_64_ABSOLUTE.
3791
3792 2000-08-11  Alexandre Oliva  <aoliva@redhat.com>
3793
3794         * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
3795
3796 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3797
3798         * elf32-i860.c (elf32_i860_relocate_section): New function.
3799         (i860_final_link_relocate): New function.
3800         (elf32_i860_relocate_splitn): New function.
3801         (elf32_i860_relocate_pc16): New function.
3802         (elf32_i860_relocate_highadj): New function.
3803         (elf32_i860_howto): Minor adjustments to some relocations.
3804         (elf_info_to_howto_rel): Define.
3805         (elf_backend_relocate_section): Define.
3806
3807 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3808
3809         * elf32-arm.h: Fix formatting.
3810
3811 2000-08-10  Bernd Schmidt  <bernds@cygnus.co.uk>
3812
3813         * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
3814
3815 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
3816
3817         * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
3818
3819 2000-08-07  Kazu Hirata  <kazu@hxi.com>
3820
3821         * ieee.c (ieee_write_debug_part): Rewrite a comment.
3822         * elf64-ia64.c: Fix a typo.
3823
3824 2000-08-05  Jason Eckhardt  <jle@cygnus.com>
3825
3826         * elf32-i860.c (elf32_i860_howto_table): New structure.
3827         (lookup_howto): New function.
3828         (elf32_i860_reloc_type_lookup): New function.
3829         (elf32_i860_info_to_howto_rela): New function.
3830         (elf_code_to_howto_index): New structure.
3831         (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
3832         (bfd_elf32_bfd_reloc_type_lookup): Re-define as
3833         elf32_i860_reloc_type_lookup.
3834
3835 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
3836
3837         * som.c (struct fixup_format): Constify `format'.
3838         (som_hppa_howto_table): Use SOM_HOWTO macro.
3839         (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
3840         (som_bfd_reloc_type_lookup): Likewise.
3841         (compare_subspaces): Remove unused `count1', `count2'.
3842         (som_begin_writing): Remove unused `total_reloc_size'.
3843         (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
3844         (som_print_symbol, som_bfd_is_local_label_name): Likewise.
3845         (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
3846         (som_find_nearest_line): Decorate unused parameter(s).
3847         (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
3848         (som_bfd_link_split_section): Likewise.
3849
3850 2000-08-03  Nick Clifton  <nickc@cygnus.com>
3851
3852         * section.c: Restore backed out code.
3853         * elf.c: Restore backed out code.
3854         (copy_private_bfd_data): Fix bug preventing stipped dynamic
3855         binaries from working.
3856         * bfd-in2.h: Regenerate.
3857
3858 2000-08-03  H.J. Lu  <hjl@gnu.org>
3859
3860         * section.c: Back out the change made by Nick Clifton
3861         <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
3862         binaries.
3863         * bfd-in2.h: Likewise.
3864         * elf.c: Likewise.
3865
3866 2000-08-03  Alexandre Oliva  <aoliva@redhat.com>
3867
3868         * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
3869
3870 2000-07-31  Jason Eckhardt  <jle@cygnus.com>
3871
3872         * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
3873         * bfd-in2.h, libbfd.h: Regenerate.
3874
3875 2000-07-31  Nick Clifton  <nickc@cygnus.com>
3876
3877         * section.c (struct sec): Add new boolean field 'segment_mark'.
3878         (STD_SECTION): Initialise new field to zero.
3879
3880         * bfd-in2.h: Regenerate.
3881
3882         * elf.c (copy_private_bfd_data): Reorganise section to segment
3883         mapping to cope with moved sections requiring new segments,
3884         and overlapping segments.
3885         (SEGMENT_END): New macro: Return the end address of a segment.
3886         (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
3887         contains a section by comparing their VMA addresses.
3888         (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
3889         contains a section by comparing their LMA addresses.
3890         (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
3891         section should be included in a segment.
3892         (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
3893         follows another in memory.
3894         (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
3895         segments overlap.
3896
3897 2000-07-22  Jason Eckhardt  <jle@cygnus.com>
3898
3899         * cpu-i860.c: Added comments.
3900
3901         * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
3902         bfd_elf32_i860_little_vec.
3903         (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
3904         (ELF_MAXPAGESIZE): Changed to 4096.
3905
3906         * targets.c (bfd_elf32_i860_little_vec): Declaration of
3907         new target.
3908         (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3909
3910         * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3911         config for little endian elf32 i860.
3912         (targ_defvec): Define for the new config above
3913         as "bfd_elf32_i860_little_vec".
3914         (targ_selvecs): Define for the new config above
3915         as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3916
3917         * configure.in (bfd_elf32_i860_little_vec): Added recognition
3918         of new target vec.
3919
3920         * configure: Regenerated.
3921
3922 2000-07-27  H.J. Lu  <hjl@gnu.org>
3923
3924         * elflink.h (elf_merge_symbol): Take one more argument,
3925         dt_needed, to indicate if the symbol comes from a DT_NEEDED
3926         entry. Don't overide the existing weak definition if dt_needed
3927         is true.
3928         (elf_link_add_object_symbols): Pass dt_needed to
3929         elf_merge_symbol ().
3930
3931 2000-07-27  Nick Clifton  <nickc@cygnus.com>
3932
3933         * elflink.h (elf_link_size_reloc_section): Zeroes the section's
3934         allocated contents.
3935
3936 2000-07-25  Geoffrey Keating  <geoffk@cygnus.com>
3937
3938         * configure.host (*-*-aix*): AIX has 'long long' always.
3939
3940         * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
3941         (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
3942         (xcoff_write_archive_contents_big): Don't update the offset
3943         of the symbol table, xcoff_write_armap will do it.
3944
3945 2000-07-23  Ulf Carlsson  <ulfc@engr.sgi.com>
3946
3947         * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
3948         of dynobj for SGI_COMPAT checks.
3949
3950 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3951
3952         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
3953         * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
3954         * bfd-in2.h: Regenerate.
3955
3956 2000-07-21  Nick Clifton  <nickc@cygnus.com>
3957
3958         * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
3959         range symbol indices in relocs and issue an error message.
3960
3961 2000-07-20  H.J. Lu  <hjl@gnu.org>
3962
3963         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
3964         info->new_dtags when setting DT_FLAGS_1. It will only be set
3965         by the new linker options. It shouldn't break anything.
3966
3967 2000-07-20  H.J. Lu  <hjl@gnu.org>
3968
3969         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
3970         only if info->new_dtags is true.
3971
3972 2000-07-20  H.J. Lu  <hjl@gnu.org>
3973
3974         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
3975         DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
3976
3977 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
3978
3979         * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
3980         (ALL_MACHINES_CFILES): Add cpu-cris.c.
3981         (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
3982         (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
3983         (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
3984         * Makefile.in: Rebuild.
3985         * aclocal.m4: Rebuild.
3986         * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
3987         * archures.c (enum bfd_architecture): Add bfd_arch_cris.
3988         (bfd_cris_arch): Declare.
3989         (bfd_archures_list): Add bfd_cris_arch.
3990         * bfd-in2.h: Rebuild.
3991         * config.bfd: (cris-*-*): New target.
3992         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
3993         * configure: Rebuild.
3994         * elf.c (prep_headers): Add bfd_arch_cris.
3995         * libbfd.h: Rebuild.
3996         * libaout.h (enum machine_type): Add M_CRIS.
3997         * reloc.c: Add CRIS relocations.
3998         * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
3999         (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
4000         * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
4001         * po/POTFILES.in, po/bfd.pot: Regenerate.
4002
4003 2000-07-19  H.J. Lu  <hjl@gnu.org>
4004
4005         * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
4006         DF_TEXTREL if DT_TEXTREL is set.
4007         * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4008         * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4009         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4010         * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
4011         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4012         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4013         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
4014         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
4015         * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
4016         * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4017
4018         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
4019         set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
4020         DT_RPATH is set.
4021         Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
4022
4023 2000-07-19  H.J. Lu  <hjl@gnu.org>
4024
4025         * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
4026         * bfd-in2.h: Rebuild.
4027
4028         * elf-bfd.h (elf_obj_tdata): Add dt_soname.
4029         (elf_dt_soname): New.
4030
4031         * elf.c (bfd_elf_set_dt_needed_soname): New.
4032
4033         * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
4034         entry if the shared object loaded by DT_NEEDED is used to
4035         resolve the reference in a regular object.
4036
4037 2000-07-19  H.J. Lu  <hjl@gnu.org>
4038
4039         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
4040         DT_DEPAUDIT and DT_AUDIT as strings.
4041
4042 2000-07-19  Nick Clifton  <nickc@cygnus.com>
4043
4044         * format.c: Fix formatting.
4045
4046 2000-07-19  H.J. Lu  <hjl@gnu.org>
4047
4048         * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
4049
4050 2000-07-19  H.J. Lu  <hjl@gnu.org>
4051
4052         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
4053         DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
4054         DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
4055         DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
4056         DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
4057         DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
4058         DT_FLAGS_1, DT_USED and DT_CHECKSUM.
4059
4060 2000-07-18  Andrew Cagney  <cagney@b1.cygnus.com>
4061
4062         * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
4063         renamed functions from here...
4064         (assign_section_numbers): Use renamed functions.
4065         (prep_headers): Use renamed functions.
4066
4067         * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
4068         * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
4069         * bfd-in2.h: Regenerate.
4070
4071 2000-07-18  Ulf Carlsson  <ulfc@engr.sgi.com>
4072
4073         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
4074         parenthesis in if statement.
4075
4076 2000-07-17  Koundinya K  <kk@ddeorg.soft.net>
4077
4078         Enable the support for Traditional MIPS.
4079         * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
4080         return ict_none appropriately for traditional mips targets.
4081         (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
4082         (STUB_MOVE): Conditionalize for traditonal mips.
4083         (STUB_LI16): Likewise.
4084         (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
4085         room for RTPROC header.
4086         (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
4087         the permission for the PT_DYNAMIC as read, write and execute.
4088         (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
4089         for traditonal mips.
4090         (_bfd_mips_elf_create_dynamic_sections): Add the symbol
4091         _DYNAMIC_LINKING for traditonal mips.
4092         (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
4093         in case of traditonal mips.
4094         (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
4095         entry is required. For a function if PLT is not required then set the
4096         corresponding hash table entry to 0.
4097         (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
4098         traditonal mips.
4099         (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
4100         shared object set the value to 0.
4101         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
4102         _DYNAMIC_LINKING for traditonal mips.
4103         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
4104         for traditonal mips.
4105
4106 2000-07-15  H.J. Lu  <hjl@gnu.org>
4107
4108         * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
4109
4110 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
4111
4112         * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
4113         out a structure that is BFD_IN_MEMORY.
4114
4115 2000-07-11  Alan Modra  <alan@linuxcare.com.au>
4116
4117         * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
4118         bfd pointer.  Print section id instead of bfd pointer for local
4119         syms.  Prefix addend with `+' for global syms as well as local.
4120         Correct calculation of name component lengths.
4121         (elf64_hppa_check_relocs): Update call to get_dyn_name.
4122
4123         From David Huggins-Daines  <dhd@linuxcare.com>
4124         * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
4125         * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
4126         (elf64_hppa_modify_segment_map): Likewise.
4127
4128 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
4129
4130         * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
4131         addresses to be "naturally" sign extended.  Return -1 if unknown.
4132         * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
4133         * bfd-in2.h: Regenerate.
4134
4135 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
4136
4137         * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
4138         and ECOF_SIGNED_64 to list ways to extract an offset.
4139         (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
4140         ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
4141         Update.
4142         * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
4143         * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
4144
4145 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
4146
4147         * elfcode.h (elf_object_p): Use bfd_set_start_address and not
4148         bfd_get_start_address.
4149         (elf_swap_ehdr_in): Sign extend e_entry when applicable.
4150         (elf_swap_ehdr_out): Ditto.
4151
4152 2000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>
4153
4154         * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
4155         compatibility with older binutils.
4156
4157 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
4158
4159         * section.c (bfd_make_section_anyway): Start section_id at 0x10.
4160         (STD_SECTION): Avoid negative ids, instead use 0 to 3.
4161
4162         From Ryan Bradetich  <rbradetich@uswest.net>
4163         * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
4164         (parse_line_table): Ditto.
4165         (_bfd_dwarf1_find_nearest_line): Ditto.
4166         * syms.c (cmpindexentry): Remove extra `*' from params.
4167
4168 2000-07-09  Koundinya K  <kk@ddeorg.soft.net>
4169
4170         * elf32-mips.c (sort_dynamic_relocs): New Function.
4171         (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
4172         via qsort to sort the dynamic relocations in increasing r_symndx
4173         value.
4174
4175 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
4176
4177         * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4178         ATTRIBUTE_UNUSED to unused args.
4179         (get_opd): Likewise.
4180         (get_plt): Likewise.
4181         (get_dlt): Likewise.
4182         (get_stub): Likewise.
4183         (elf64_hppa_adjust_dynamic_symbol): Likewise.
4184         (elf64_hppa_link_output_symbol_hook): Likewise.
4185         (elf64_hppa_check_relocs): Delete unused var.
4186         (elf64_hppa_size_dynamic_sections): Likewise.
4187         (elf64_hppa_finalize_opd): Likewise.
4188         (elf64_hppa_finalize_dynreloc): Likewise.
4189         (elf64_hppa_modify_segment_map): Likewise.
4190         (elf64_hppa_finish_dynamic_sections): Likewise.
4191
4192         * elf-hppa.h (elf_hppa_final_write_processing): Add
4193         ATTRIBUTE_UNUSED to unused args.
4194         (elf_hppa_final_link_relocate): Likewise.
4195         (elf_hppa_record_segment_addrs): Add paretheses.
4196         (elf_hppa_relocate_section): Constify dyn_name.
4197
4198         From  David Huggins-Daines  <dhd@linuxcare.com>
4199         * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4200         rearrange case statement so that it gets preferred to 32-bit ones.
4201
4202         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4203         asection->id instead of address of asection structure.
4204         (elf32_hppa_size_stubs): Likewise.
4205
4206         * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4207         for .init* and .fini*.
4208
4209         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4210         and addends used in stub names to 32 bits.
4211         (elf32_hppa_size_stubs): Likewise.
4212
4213         * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4214         twice for R_PARISC_GPREL64.  Use bfd_put_32 for R_PARISC_PCREL32,
4215         not bfd_put_64.  Fix minor comment typo and formatting.
4216
4217         Changes to create multiple linker stubs, positioned immediately
4218         before the section where they are required.
4219         * elf32-hppa.c: Don't include hppa_stubs.h.
4220         (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4221         (elf32_hppa_stub_hash_table): Delete.
4222         (elf32_hppa_link_hash_entry): Delete.
4223         (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4224         stub_hash_table, and store the struct here rather than a pointer.
4225         Delete output_symbol_count.  Add offset array.  Change
4226         global_value to a bfd_vma.
4227         (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4228         (elf32_hppa_stub_hash_traverse): Delete.
4229         (elf32_hppa_name_of_stub): Delete.
4230         (elf32_hppa_link_hash_lookup): Delete.
4231         (elf32_hppa_link_hash_traverse): Delete.
4232         (elf32_hppa_stub_hash_table_init): Delete.
4233         (elf32_hppa_size_of_stub): Pass input section and offset rather
4234         than location and calculate location here.  Don't pass name as all
4235         stubs are now the same size.
4236         (elf32_hppa_stub_hash_newfunc): Init new fields.
4237         (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4238         too.
4239         (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4240         comparing against ints.  Rewrite stub handling code.
4241         (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4242         Case enums to int before comparing against ints.  Remove
4243         bfd_reloc_dangerous case.
4244         (elf32_hppa_build_one_stub): Rewrite.
4245         (elf32_hppa_size_one_stub): New function.
4246         (elf32_hppa_build_stubs): Rewrite.
4247         (elf32_hppa_size_stubs): Pass in linker call-back functions.
4248         Rewrite stub-handling specific code.
4249
4250         * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4251
4252         * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4253
4254         * hppa_stubs.h: Delete.
4255         * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4256         (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4257         * Makefile.in: Regenerate.
4258
4259         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4260         e_nlrsel.
4261
4262         * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4263
4264         * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4265         and section name for bfd_reloc_notsupported error message.
4266         (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4267         bfd_reloc_notsupported.
4268         (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4269
4270         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4271         undefined weak symbols for all relocs.
4272         (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4273         offsets are relative to one past the delay slot.
4274         (elf32_hppa_size_stubs): Account for reloc addend when calculating
4275         branch destination.  Put addend into stub name too.
4276         (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4277         adjust by 8 when deciding whether a linker stub is needed.  Put
4278         addend into stub name as for above.
4279
4280         * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4281         various args and vars.
4282         (elf32_hppa_bfd_final_link_relocate): Here too.
4283         (elf32_hppa_size_stubs): Rename index -> indx.  Use e_indx for
4284         inner block var to avoid shadowing.
4285
4286         * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type):  Make `field' arg
4287         unsigned.
4288         * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4289         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4290         (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4291
4292         * libhppa.h: Change practically all unsigned ints to plain ints.
4293         Remove tests on gcc version.  Instead use ATTRIBUTE_UNUSED for
4294         prototypes.
4295
4296         From Ryan Bradetich  <rbradetich@uswest.net>
4297         * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4298         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4299         suit above.
4300         From  David Huggins-Daines  <dhd@linuxcare.com>
4301         * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4302         to the new OP_* ones.
4303
4304         * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4305         error exit.  Bail out earlier on plabel relocs that we aren't
4306         interested in.  Don't tell elf32_hppa_stub_hash_lookup to copy
4307         string, and then don't free our copy.
4308         (elf32_hppa_build_one_stub): Make insn unsigned int.
4309
4310         * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4311         available with BL, not BE and BLE.
4312
4313         * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4314         code for elf arg relocs.
4315         (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4316         argument with elf_link_hash_entry h.  Handle undefined weak
4317         symbols.  Move $global$ lookup from here...
4318         (elf32_hppa_relocate_section): ...to here.  Return correct error
4319         message for non-handled relocs.
4320         (elf32_hppa_size_of_stub): Correctly test branch range.  Previous
4321         wrong test was -0x3ffff to +0x40000.
4322
4323         * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4324         R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4325         Handle them as such.
4326         (elf_hppa_relocate_insn): Fix a typo.
4327
4328         * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4329         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4330         assemble_17, assemble_21): Delete.
4331         Supply defines for all 64 possible opcodes.
4332         (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4333         formats.  Handle COMICLR.
4334         (hppa_rebuild_insn): Delete bfd argument.  Handle formats 10, -11,
4335         -10, -16, 16, 22.
4336
4337         * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4338         (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4339         (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4340         to suit.
4341         (elf32_hppa_size_stubs): Don't free stub_name twice.  Read in all
4342         the local syms - did this code get deleted accidentally?  Ignore
4343         undefined and undefweak syms.
4344
4345         * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4346         block.  Use it instead of elf64_hppa_hash_table (info).
4347         (elf_hppa_final_link_relocate): Use hppa_info instead of
4348         elf64_hppa_hash_table (info).
4349
4350         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4351         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4352         (hppa_rebuild_insn): Mask immediate bits here instead.
4353         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4354
4355 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
4356
4357         * section.c (struct sec): Add id field.  Tidy comment formatting.
4358         (bfd_make_section_anyway): Set id.
4359         (STD_SECTION): Init id too.
4360         Change CONST to const throughout.
4361         * archures.c (bfd_arch_info): Tidy comment.
4362         (bfd_arch_list): Change a CONST to const.
4363         * libbfd-in.h: Tidy comments and replace CONST with const.
4364         * elf-bfd.h: Likewise.
4365         * libbfd.h: Regenerate.
4366         * bfd-in2.h: Regenerate.
4367         * libcoff.h: Regenerate.
4368
4369 2000-07-07  DJ Delorie  <dj@redhat.com>
4370
4371         * archive.c (_bfd_write_archive_contents): Add an informative
4372         comment.
4373
4374 2000-07-06  Kazu Hirata  <kazu@hxi.com>
4375
4376         * srec.c: Fix formatting.
4377
4378 2000-06-05  DJ Delorie  <dj@redhat.com>
4379
4380         * MAINTAINERS: new
4381
4382 2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
4383
4384         * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4385         value of PC-relative offsets.
4386
4387 2000-07-03  Jim Wilson  <wilson@cygnus.com>
4388
4389         * elf64-alpha.c (alpha_elf_size_info): New.
4390         (elf_backend_size_info): Define to alpha_elf_size_info.
4391         * elfcode.h (elf_size_info): Change hash bucket size to 4.
4392
4393 2000-07-03  Ulf Carlsson  <ulfc@engr.sgi.com>
4394
4395         * elf32-mips.c: Include elf32-target.h again for the traditional
4396         MIPS targets.
4397
4398 2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
4399
4400         * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4401         Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4402         (avr_info_to_howto_rela): Likewise.
4403         (elf32_avr_gc_mark_hook): Likewise.
4404         (elf32_avr_gc_sweep_hook): Likewise.
4405         (elf32_avr_relocate_section): Likewise.
4406
4407 2000-07-03  Mark Elbrecht  <snowball3@bigfoot.com>
4408
4409         * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
4410         an external symbol for a non-shared, non-relocatable link.
4411
4412 2000-07-03  Nick Clifton  <nickc@redhat.com>
4413
4414         * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
4415         is an external symbol.
4416         (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
4417         external symbol.
4418
4419 2000-07-03  Kazu Hirata  <kazu@hxi.com>
4420
4421         * reloc16.c: Fix formatting.
4422
4423 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
4424
4425         * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
4426         to add a new target for traditional mips i.e
4427         bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
4428         * configure.in: Likewise.
4429         * configure: Rebuild.
4430         * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
4431         bfd_target_vector.
4432         (bfd_elf32_tradlittlemips_vec): Likewise.
4433         * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
4434         to see that elfNN_bed does not get redefined even if the target file
4435         is included twice for a chip. See elf32-mips.c.
4436
4437 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
4438
4439         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
4440         (CLEANFILES): Add DEPA.
4441         * Makefile.in: Regenerate.
4442
4443 2000-06-30  DJ Delorie  <dj@cygnus.com>
4444
4445         * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
4446         can't assume the PE header is at 0x80.
4447
4448 2000-06-29  Mark Elbrecht  <snowball3@bigfoot.com>
4449
4450         * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4451
4452 2000-06-28  Mark Elbrecht  <snowball3@bigfoot.com>
4453
4454         * go32stub.h: Update stub.
4455
4456 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
4457
4458         * archures.c (bfd_mach_avr5): Define.
4459         * bfd-in2.h (bfd_mach_avr5): Define.
4460         * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
4461         bfd_mach_avr5, add bfd_mach_avr4.  Update comments.
4462         (compatible): Update comment.  Add missing test.
4463         * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
4464         for avr2 and avr4.  Simplify 8K wrap code.
4465         (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
4466         (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
4467
4468 2000-06-26  Kazu Hirata  <kazu@hxi.com>
4469
4470         * coff-h8300.c: Fix formatting.
4471         * cpu-h8300.c: Likewise.
4472
4473 2000-06-24  Alexandre Oliva  <aoliva@redhat.com>
4474
4475         * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
4476         for local symbols whose names are unknown.
4477
4478 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
4479
4480         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4481         find one.
4482         * Makefile.in: Regenerate.
4483         * doc/Makefile.in: Regenerate.
4484
4485 2000-06-20  H.J. Lu  <hjl@gnu.org>
4486
4487         * Makefile.am: Rebuild dependency.
4488         * Makefile.in: Rebuild.
4489
4490 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4491
4492         * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
4493         (elf_backend_copy_indirect_symbol): Map to the new function.
4494
4495 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4496
4497         * archive.c (normalize): Correct pointer comparison when checking
4498         for backslashes.
4499         (bfd_bsd_truncate_arname): Likewise.
4500         (bfd_gnu_truncate_arname): Likewise.
4501
4502 2000-06-20  Ulf Carlsson  <ulfc@engr.sgi.com>
4503
4504         * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
4505         sections elf_{text,data}_{section,symbol}.
4506         * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
4507         (_bfd_mips_elf_hide_symbol): New function.
4508         (elf_backend_hide_symbol): Map to the new function.
4509         (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
4510         definitions of mips_elf_{text,data}_{section,symbol}.
4511         (mips_elf_local_relocation_p): Try to find the direct symbol
4512         based on new check_forced argument.
4513         (mips_elf_calculate_relocation): Use new version of
4514         mips_elf_local_relocation_p.
4515         (mips_elf_relocate_section): Likewise.
4516         (_bfd_mips_elf_relocate_section): Likewise.
4517         (mips_elf_sort_hash_table): Only assert that have enough GOT
4518         space.
4519         (mips_elf_got16_entry): Match all 32 bits to the existing GOT
4520         entry if the relocation based on the new external argument.
4521         (mips_elf_create_dynamic_relocation): Assert that we have a
4522         section contents allocated where we can swap out the dynamic
4523         relocations.
4524         (mips_elf_calculate_relocation): Find the real hash-table entry
4525         correctly by using h->root.root.type.  Only create a dynamic
4526         relocation entry if the symbol is defined in a shared library.
4527         Create an external GOT entry for the GOT16 relocation if the
4528         symbol was forced local.
4529         (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
4530         dynamic index if the symbol was forced local.
4531
4532 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4533
4534         * elf32-mips.c: Fix typos in comments.
4535
4536 2000-06-19  Mark Kettenis  <kettenis@gnu.org>
4537
4538         * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
4539         CORE_VERSION_1.
4540
4541 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4542
4543         * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
4544         * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
4545         BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
4546         * configure.in (bfd_elf32_m68hc12_vec): Recognize.
4547         (bfd_elf32_m68hc11_vec): Likewise.
4548         * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
4549         Supports 68hc11 & 68hc12  at the same time.
4550         * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
4551         bfd_target_vector.
4552         (bfd_elf32_m68hc11_vec): Likewise.
4553         * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
4554         * archures.c (bfd_m68hc12_arch): Define and register in global list
4555         (bfd_m68hc11_arch): Likewise.
4556         * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
4557         BFD_RELOC_M68HC11_3B): Define.
4558         * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
4559         * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
4560
4561 2000-06-18  Ulf Carlsson  <ulfc@engr.sgi.com>
4562
4563         * elf_bfd.h (struct elf_backend_data): Add info argument to
4564         elf_backend_hide_symbol.
4565         (_bfd_elf_link_hash_hide_symbol): Likewise.
4566         * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
4567         * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
4568         * elflink.h (elf_link_add_object_symbols): Likewise.
4569         (elf_link_assign_sym_version): Likewise.
4570
4571 2000-06-18  H.J. Lu  <hjl@gnu.org>
4572
4573         * coff-i386.c (coff_i386_reloc): Don't return in case of
4574         output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
4575         Compensate PE relocations when linking with non-PE object
4576         files to generate a non-PE executable.
4577
4578 2000-06-17  Ulf Carlsson  <ulfc@engr.sgi.com>
4579
4580         * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
4581         GOT entries if we're doing a static link or -Bsymbolic link.
4582
4583 2000-06-15  Ulf Carlsson  <ulfc@engr.sgi.com>
4584
4585         * elflink.h (elf_link_adjust_relocs): Check for and call backend
4586         specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
4587         available.
4588         (elf_link_output_relocs): Likewise.
4589         (elf_reloc_link_order): Likewise.
4590
4591 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
4592
4593         * archures.c (enum bfd_architecture): #define constants for
4594         PowerPc and RS6000 machine numbers.
4595         * bfd-in2.h: Regenerate.
4596         * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
4597         to bfd_arch_powerpc instead of bfd_arch_rs6000.  Refer to PowerPc
4598         and RS6000 machine numbers using #defined constants from
4599         archures.c.
4600         * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
4601         machine numbers using #defined constants from archures.c.  Add
4602         entries for EC603e, 630, A35, RS64II, RS64III, 7400.  Specify
4603         64-bit words in 620 entry.
4604         * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
4605         RSC, and RS2.
4606         (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
4607
4608 2000-06-16  Nicholas Duffek  <nsd@cygnus.com>
4609
4610         * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
4611         * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
4612         * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
4613
4614 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
4615
4616         * bfd-in.h (bfd_family_coff): Define.
4617         * bfd-in2.h: Regenerate.
4618         * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4619         coff_find_nearest_line): Check COFFness using bfd_family_coff()
4620         instead of bfd_target_coff_flavour.
4621         * cofflink.c (_bfd_coff_final_link): Likewise.
4622         * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4623         exclude XCOFF files.
4624         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4625         Likewise.
4626         * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4627         * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4628         * xcofflink.c (XCOFF_XVECP): Delete.
4629         (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4630         bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4631         bfd_xcoff_record_link_assignment,
4632         bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4633         check for bfd_target_xcoff_flavour.
4634
4635 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
4636
4637         * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4638         files on AIX 4.3.
4639         (read_hdr): New function.
4640         (rs6000coff_core_p): Store mstsave or __context64 struct instead
4641         of trying to extract individual registers.  Set abfd->arch_info
4642         to match the architecture that created the core file.
4643         (rs6000coff_get_section_contents): Delete.
4644         * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4645
4646 2000-06-14  H.J. Lu  <hjl@gnu.org>
4647
4648         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4649         is NULL.
4650
4651 2000-06-13  H.J. Lu  <hjl@gnu.org>
4652
4653         * configure: Regenerate.
4654
4655 2000-06-13  J"orn Rennecke <amylaar@cygnus.co.uk>
4656
4657         * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4658         armpei_little_vec.
4659
4660 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4661
4662         * configure.in (VERSION): Update to show this is the CVS mainline.
4663
4664 2000-06-07  Alan Modra  <alan@linuxcare.com.au>
4665
4666         * elf32-d10v.c: Include elf/d10v.h
4667         (enum reloc_type): Delete.
4668         * elf32-d30v.c: Include elf/d30v.h
4669         (enum reloc_type): Delete.
4670
4671         * Makefile.am: Run "make dep-am" to regenerate dependencies.
4672         * Makefile.in: Regenerate.
4673
4674         * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4675         (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4676         move HOWTOs into elf_howto_table.
4677         (R_386_standard, R_386_ext_offset): Define.
4678         (R_386_ext, R_386_vt_offset, R_386_vt): Define.
4679         (elf_i386_reloc_type_lookup): Modify calculation of index into
4680         elf_howto_table since we've removed the padding.
4681         (elf_i386_info_to_howto_rel): Likewise.
4682         (elf_i386_relocate_section): Likewise.
4683
4684 2000-06-06  Michael Snyder  <msnyder@seadog.cygnus.com>
4685
4686         * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
4687
4688 2000-06-05  H.J. Lu  <hjl@gnu.org>
4689
4690         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
4691         an error when seeing an undefined symbol with hidden/internal
4692         attribute. It is handled in *_relocate_section ().
4693
4694 2000-06-05  H.J. Lu  <hjl@gnu.org>
4695
4696         * elflink.h (elf_fix_symbol_flags): Follow the link for the
4697         indirect symbol for the ELF_LINK_NON_ELF bit.
4698         (elf_link_output_extsym): Don't output the indirect symbol even
4699         if the ELF_LINK_NON_ELF bit is set.
4700
4701 2000-06-01  J.T. Conklin  <jtc@redback.com>
4702
4703         * config.bfd (i[3456]86-*-netbsdelf*): New target.
4704         (i[3456]86-*-netbsdaout*): New target.
4705         (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
4706         (i[3456]86-*-openbsd*): Likewise.
4707
4708 2000-05-30  Andrew Cagney  <cagney@b1.cygnus.com>
4709
4710         * trad-core.c: From hpux-core.c, include <dirent.h> or
4711         <sys/ndir.h> when possible.
4712
4713 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
4714
4715         * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
4716         definitions.  We must not assume they are sorted in the file
4717         according to their index numbers.
4718
4719 2000-05-31  Alan Modra  <alan@linuxcare.com.au>
4720
4721         * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
4722         selector for R_PARISC_PCREL17R.  R_PARISC_DIR17R and
4723         R_PARISC_DIR17F are for absolute branches; Handle them as such.
4724
4725 2000-05-30  Nick Clifton  <nickc@cygnus.com>
4726
4727         * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
4728         80960CA, 80960MC as valid machine names.
4729
4730 2000-05-30  H.J. Lu  <hjl@gnu.org>
4731
4732         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
4733         visibility bits if the symbol is undefined. Correctly handle
4734         weak undefined symbols with hidden and internal attributes.
4735
4736         * elflink.h (elf_link_add_object_symbols): Always turn the
4737         symbol into local if it has the hidden or internal attribute.
4738
4739 2000-05-29  Philip Blundell  <philb@gnu.org>
4740
4741         * ppcboot.c:  Add packed attribute if compiling with GCC.
4742
4743 2000-05-29  Anatoly Vorobey  <mellon@pobox.com>
4744
4745         * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
4746
4747 2000-05-26  Michael Snyder  <msnyder@seadog.cygnus.com>
4748
4749         * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4750         elfcore_grok_psinfo): Add code to allow debugging a 32-bit
4751         corefile on a 64-bit (Sparc Solaris) host.  Also clean up
4752         a few old comments.
4753
4754 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4755
4756         * Makefile.am: Update dependencies with "make dep-am"
4757         * Makefile.in: Regenerate.
4758
4759         * sysdep.h (gettext, dgettext, dcgettext, textdomain,
4760         bindtextdomain): Replace defines with those from intl/libgettext.h
4761         to quieten gcc warnings.
4762
4763 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4764
4765         * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
4766
4767         * archive.c (normalize, bfd_bsd_truncate_arname,
4768         bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
4769         file names with backslashes.
4770
4771         * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
4772         before opening it.
4773
4774         * sysdep.h: Include filenames.h.
4775
4776 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4777
4778         * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
4779
4780 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
4781
4782         * elf64-sparc.c (sparc64_elf_relax_section): New.
4783         (sparc64_elf_relocate_section): Optimize tail call into branch always
4784         if possible.
4785         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4786         (elf32_sparc_relax_section): New.
4787
4788 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
4789
4790         * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
4791         Remove unusued variables.
4792         (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
4793         (sparc64_elf_merge_private_bfd_data): Fix shared library case from
4794         previous fix, so that shared libs really don't influence targets
4795         extension mask and memory model.
4796
4797 2000-05-23  H.J. Lu  <hjl@gnu.org>
4798
4799         * elf64-alpha.c (elf64_alpha_relocate_section): Check
4800         h->root.other not h->other.
4801         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4802
4803         * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
4804
4805 2000-05-23  H.J. Lu  <hjl@gnu.org>
4806
4807         * elf32-i386.c (elf_i386_relocate_section): Don't allow the
4808         undefined symbol with the non-default visibility attributes.
4809         * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4810         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4811         * elf32-i370.c (i370_elf_relocate_section): Likewise.
4812         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4813         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4814         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4815         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4816         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4817         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4818         * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
4819         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4820
4821 2000-05-22  Richard Henderson  <rth@cygnus.com>
4822
4823         * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
4824         PCREL22, PCREL64I.  Zero size of special relocs.
4825         (elf64_ia64_reloc_type_lookup): Likewise.
4826         (USE_BRL, oor_brl, oor_ip): New.
4827         (elf64_ia64_relax_section): New.
4828         (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
4829         (elf64_ia64_install_value): Likewise, plus PCREL21BI.
4830         (elf64_ia64_relocate_section): Likewise.
4831         (bfd_elf64_bfd_relax_section): New.
4832         * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
4833         (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
4834         * bfd-in2.h, libbfd.h: Regenerate.
4835
4836 2000-05-22  Nick Clifton  <nickc@cygnus.com>
4837
4838         * configure.in : Add peigen.lo to MIPS PE targets.
4839         * configure: Regenerate.
4840
4841 2000-05-22  Momchil Velikov  <velco@fadata.bg>
4842
4843         * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
4844         only if it is known for both input and output bfds. Separate
4845         error message strings as in some languages, it may be necessary
4846         to change more than one place in the string to change between
4847         'big' and 'little'.
4848
4849         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
4850         endianess checks, call _bfd_generic_verify_endian_match() instead.
4851
4852         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
4853
4854         * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
4855
4856         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
4857         endianess before checking bfd flavours.
4858
4859 2000-05-22  H.J. Lu  <hjl@gnu.org>
4860
4861         * elflink.h (elf_link_output_extsym): Clear the visibility
4862         field for symbols not defined locally.
4863
4864 2000-05-18  Alan Modra  <alan@linuxcare.com.au>
4865
4866         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4867         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4868         (hppa_rebuild_insn): Mask immediate bits here instead.
4869         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4870
4871 2000-05-18  Momchil Velikov <velco@fadata.bg>
4872
4873         * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
4874         relocs for an executable, ensure that they are virtual addresses.
4875
4876 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4877
4878         * config.bfd (hppa*64*-*-hpux11*): New target triplet.
4879
4880 2000-05-17  S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4881             Rick Gorton             <gorton@scrugs.lkg.dec.com>
4882
4883         * elflink.h: Add emitrelocations support: when enabled, relocation
4884         information and relocation sections are put into final output
4885         executables.  If the emitrelocations flag is set, do the following:
4886         (elf_bfd_final_link): Emit relocation sections.
4887         (elf_link_input_bfd): Compute relocation section contents.
4888         (elf_gc_sections): Don't clean relocation sections.
4889
4890 2000-05-16  Catherine Moore  <clm@cygnus.com>
4891
4892         * som.c (som_decode_symclass):  Recognize weak symbols.
4893
4894 2000-05-16  Szabolcs Szakacsits <szaka@F-Secure.com>
4895
4896         * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
4897         read idata section only from dataoff.
4898         (pe_print_edata): Correctly check for valid eat_member.
4899
4900 2000-05-16  J"orn Rennecke <amylaar@cygnus.co.uk>
4901
4902         * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4903
4904 2000-05-14  Philip Blundell  <philb@gnu.org>
4905
4906         * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
4907
4908 2000-05-12  Alan Modra  <alan@linuxcare.com.au>
4909
4910         * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4911
4912         * peigen.c (pe_print_idata): Look for .idata section and print
4913         info even if data directory has zero entries.  Read idata section
4914         starting from dataoff, and adjust all data offsets to suit.  Cast
4915         all bfd_vma vars to unsigned long before passing to fprintf.
4916         * peigen.c (pe_print_edata): Similarly, look for .edata section
4917         and print info even if data directory has zero entries.  Cast
4918         all bfd_vma vars to unsigned long before passing to fprintf.
4919
4920         From Szabolcs Szakacsits <szaka@F-Secure.com>
4921         * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4922         directory size which may be bogus.
4923         * peigen.c (pe_print_edata): Similarly.
4924
4925 2000-05-09  Alan Modra  <alan@linuxcare.com.au>
4926
4927         * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4928         section is empty.
4929         (copy_private_bfd_data): Allow for space possibly taken up by elf
4930         headers when calculating segment physical address from lma.
4931
4932 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
4933
4934         * versados.c (versados_scan): Init stringlen and pass_2_done.
4935
4936         * trad-core.c (trad_unix_core_file_p): Return
4937         bfd_error_wrong_format rather than bfd_error_file_truncated.
4938
4939         * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
4940         add_data_entry.  DataDirectory virtual address is relative.
4941         (pe_print_idata): Account for relative DataDirectory virtual
4942         addresses.  Don't trash datasize inside POWERPC_LE_PE code.
4943         (pe_print_edata): Similarly.
4944
4945         From Szabolcs Szakacsits <szaka@F-Secure.com>
4946         * peigen.c (dir_names): Add Delay Import Directory.
4947         (pe_print_idata):  Always search for bfd section containing
4948         idata address rather than looking up section name.  Print this
4949         section name rather than .idata.
4950         (pe_print_edata): Similarly.  Also print some fields as %08lx.
4951         (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
4952         Win32Version.
4953
4954 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
4955
4956         * xcoff.h: Rename to xcoff-target.h
4957         * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
4958         * coff-rs6000.c: Ditto.
4959         * coff64-rs6000.c: Ditto.
4960         * coff-pmac.c: Ditto.
4961         * Makefile.in: Regenerate.
4962
4963 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
4964
4965         * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
4966         Change U802TOC64MAGIC to U803XTOCMAGIC.
4967
4968 2000-05-04  Michael Snyder  <msnyder@seadog.cygnus.com>
4969
4970         * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
4971         * bfd-in.h: Prototype bfd_elf_get_arch_size.
4972         * bfd-in2.h: Prototype bfd_elf_get_arch_size.
4973
4974 2000-05-04  Alan Modra  <alan@linuxcare.com.au>
4975
4976         * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
4977
4978 2000-05-03  Martin v. L\81öwis  <loewis@informatik.hu-berlin.de>
4979
4980         * elflink.h (elf_link_add_object_symbols): Reset dynindx for
4981         hidden and internal symbols.
4982         (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
4983         visibility.
4984         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
4985         assign a PLT or GOT entry to symbols with hidden and
4986         internal visibility.
4987
4988 2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
4989
4990         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
4991         the .bss section.
4992         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4993
4994 2000-05-02  H.J. Lu  <hjl@gnu.org>
4995
4996         * elf.c (prep_headers): Use ELFOSABI_NONE instead of
4997         ELFOSABI_SYSV.
4998
4999 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
5000
5001         * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
5002         * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo.  Regenerate
5003         dependencies.
5004         * Makefile.in: Regenerate.
5005
5006 2000-05-01  Jim Wilson  <wilson@cygnus.com>
5007
5008         * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
5009         (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
5010         (BFD64_BACKENDS): Delete coff-ia64.lo.  Add efi-app-ia64.lo.
5011         (BFD64_BACKENDS_CFILES): Delete coff-ia64.c.  Add efi-app-ia64.c.
5012         * Makefile.in: Rebuild.
5013
5014 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
5015
5016         * config.bfd: Re-enable elf32-hppa.  It now compiles, even if it
5017         doesn't work very well.
5018
5019         * elf-hppa.h (elf_hppa_internal_shdr): Define.
5020         (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
5021         Set hdr->s_type to 1 if ARCH_SIZE == 32.
5022         (_bfd_elf_hppa_gen_reloc_type): Add prototype.
5023         (elf_hppa_info_to_howto): Likewise.
5024         (elf_hppa_info_to_howto_rel): Likewise.
5025         (elf_hppa_reloc_type_lookup): Likewise.
5026         (elf_hppa_is_local_label_name): Likewise.
5027         (elf_hppa_fake_sections): Likewise.
5028         (elf_hppa_final_write_processing): Likewise.
5029         (elf_hppa_howto_table): Fully initialise all entries.
5030         (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
5031         (elf_hppa_info_to_howto): Likewise.
5032         (elf_hppa_info_to_howto_rel): Likewise.
5033         (elf_hppa_reloc_type_lookup): Likewise.
5034         (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
5035         elf_hppa_unmark_useless_dynamic_symbols,
5036         elf_hppa_remark_useless_dynamic_symbols,
5037         elf_hppa_record_segment_addrs, elf_hppa_final_link,
5038         elf_hppa_relocate_section, elf_hppa_final_link_relocate,
5039         elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
5040         elf32-hppa.c mess is cleaned up.
5041         (elf_hppa_final_link_relocate): Make insn and r_type unsigned
5042         int.  Delete r_field.  In case R_PARISC_PCREL21L, don't set
5043         r_field then call hppa_field_adjust inline func with variable
5044         r_field arg, instead call hppa_field_adjust with fixed arg.
5045         In case R_PARISC_PCREL22F, don't set r_field.
5046         (elf_hppa_relocate_insn): Change args and return type to unsigned
5047         int.  Call re_assemble_* funcs to do the work.
5048
5049         * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
5050         sign extending.
5051
5052         * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
5053         extending.
5054         (sign_extend): Mask first before sign extending.
5055         (low_sign_extend): Rewrite without condition expression.
5056         (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
5057         dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
5058         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5059         assemble_17, assemble_21, sign_unext, low_sign_unext): Return
5060         result as function return value rather than through pointer arg.
5061         Accept unsigned int args, and return unsigned int.
5062         (re_assemble_3): New.  Combines function of dis_assemble_3 with
5063         re-assembly of opcode and immediate.
5064         (re_assemble_12): Likewise.
5065         (re_assemble_16): Likewise.
5066         (re_assemble_17): Likewise.
5067         (re_assemble_21): Likewise.
5068         (re_assemble_22): Likewise.
5069         (hppa_field_adjust): Rewrite and document, paying attention to
5070         size of types and signed/unsigned issues.
5071         (get_opcode): Shift before masking.
5072         (FDLW): Rename to FLDW.
5073         (bfd_hppa_insn2fmt): Change arg to unsigned int.  Delete fmt.
5074         (hppa_rebuild_insn): Change args and return value to unsigned
5075         int.  Make use of re_assemble_*.  Correct case 11.
5076
5077         * dep-in.sed: Handle ../opcodes/.
5078         * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
5079         elf64-hppa.h, hppa_stubs.h, xcoff.h.
5080         (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
5081         Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
5082         elfarm-nabi.lo dependencies outside of auto-dependency area.
5083         Regenerate dependencies.
5084         * Makefile.in: Regenerate.
5085
5086         * configure.in (TRAD_HEADER): Test non-null before
5087         AC_DEFINE_UNQUOTED.
5088         * configure: Regenerate.
5089
5090         * reloc.c: Fix mis-spelling in comment.
5091
5092 2000-05-01  Alan Modra  <alan@linuxcare.com.au>
5093
5094         * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
5095         * vms.c (vms_openr_next_archived_file): Return NULL.
5096
5097 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
5098
5099         * coffcode.h Copy changes mistakenly done to libcoff.h in
5100         4/24/2000 patch.
5101
5102 2000-04-29  Andreas Jaeger  <aj@suse.de>
5103
5104         * libbfd-in.h: Correctly check GCC version.
5105         * bfd-in.h: Likewise.
5106         * libhppa.h: Likewise.
5107         * libbfd.h: Regenerate.
5108         * bfd-in2.h: Regenerate.
5109
5110 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
5111
5112         * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
5113         coffdu-rs6000.{lo,c}.
5114         (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
5115         on xcoff.h
5116         * Makefile.in: Regenerate.
5117         * xcoff.h: New file.
5118         * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
5119         * coff-rs6000.c: Move all declarations and defines that are
5120         common to the xcoff backends into xcoff.h
5121         * coff64-rs6000.c: Ditto,
5122
5123 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
5124
5125         * coff-mips.c (mips_ecoff_backend_data):  Add initialization of
5126         _bfd_coff_force_symnames in strings and
5127         _bfd_coff_debug_string_prefix_length to their default values.
5128         * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
5129
5130 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
5131
5132         * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
5133         _bfd_coff_force_symnames in strings and
5134         _bfd_coff_debug_string_prefix_length to their default values.
5135
5136 2000-04-27  Alan Modra  <alan@linuxcare.com.au>
5137
5138         * elf32-m68k.c (elf_m68k_gc_sweep_hook):  Return if dynobj NULL.
5139         Check local_got_refcounts before dereferencing.
5140
5141         * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
5142         before deciding we don't need R_PPC_PLT32 relocation.
5143         (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
5144         dereferencing.
5145
5146         * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
5147
5148         * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
5149         .plt entries.
5150         (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
5151         (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
5152         (elf_i386_relocate_section): Allow for .plt to go missing.
5153         (elf_i386_finish_dynamic_symbol): Use same test to decide if we
5154         can use a relative reloc for got as elf_i386_relocate_section.
5155         (bfd_elf32_bfd_final_link): Define to use gc form of final link.
5156
5157 2000-04-26  Clinton Popetz  <cpopetz@cygnus.com>
5158
5159         * config.bfd: Remove extraneous bfd_powerpc_64_arch.
5160
5161 2000-04-24  Clinton Popetz  <cpopetz@cygnus.com>
5162
5163         * Makefile.am (coff64-rs6000.lo): New rule.
5164         * Makefile.in: Regenerate.
5165         * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
5166         xcoff_is_local_label_name, xcoff_rtype2howto,
5167         xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
5168         xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
5169         xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
5170         (NO_COFF_SYMBOLS): Define.
5171         (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
5172         xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
5173         internally.
5174         (MINUS_ONE): New macro.
5175         (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5176         relocation.
5177         (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5178         coff_SWAP_aux_out): Map to the new functions.
5179         * coff64-rs6000.c: New file.
5180         * libcoff.h (bfd_coff_backend_data): Add new fields
5181         _bfd_coff_force_symnames_in_strings and
5182         _bfd_coff_debug_string_prefix_length.
5183         (bfd_coff_force_symnames_in_strings,
5184         bfd_coff_debug_string_prefix_length): New macros for above fields.
5185         * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5186         Set machine to 620 for XCOFF64.  Use bfd_coff_swap_sym_in instead
5187         of using coff_swap_sym_in directly.
5188         (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5189         (coff_set_flags) Set magic for XCOFF64.
5190         (coff_compute_section_file_positions): Add symbol name length to
5191         string section length if bfd_coff_debug_string_prefix_length is
5192         true.
5193         (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5194         (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5195         using coff_swap_lineno_in directly.
5196         (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5197         and _bfd_coff_debug_string_prefix_length fields.
5198         * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5199         symbol names into strings table when
5200         bfd_coff_force_symnames_in_strings is true.
5201         * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5202         SET_RELOC_VADDR): New macros.
5203         (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5204         (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5205         code.
5206         (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5207         changes within RS6000COFF_C specific code.
5208         (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5209         MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5210         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5211         Extend existing hack on target name.
5212         * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5213         target name.
5214         * coff-tic54x.c (ticof): Keep up to date with new fields
5215         in bfd_coff_backend_data.
5216         * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5217         targ_selvecs to include rs6000coff64_vec for rs6000.
5218         * configure.in: Add rs6000coff64_vec case.
5219         * cpu-powerpc.c: New bfd_arch_info_type.
5220
5221 2000-04-24  Jeffrey A Law  (law@cygnus.com)
5222
5223         * config.bfd: Only disable elf32-hppa vectors, not all of the
5224         BSD and OSF configuration support.  Provide (disabled) clauses
5225         for PA64 support.
5226         * configure.in: Add clause for PA64 support.
5227         * configure: Rebuilt.
5228
5229         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5230         (bfd_elf64_hppa_vec): Declare.
5231
5232         * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5233         (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5234         (elf64-hppa.lo): Add dependencies.
5235         * Makefile.in: Rebuilt.
5236
5237         * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5238
5239 2000-04-24  Jason Eckhardt  <jle@cygnus.com>
5240
5241         * libhppa.h (dis_assemble_16): New function.
5242         (pa_arch): Added pa20w element.
5243
5244 2000-04-24  Ulrich Drepper  <drepper@cygnus.com>
5245
5246         * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5247         bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5248         bfd_elf64_slurp_reloc_table.
5249
5250         * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5251         definitions to get external names.
5252         (elf_write_relocs): Renamed from write_relocs and make global.
5253         (elf_slurp_reloc_table): Make global.
5254         (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5255
5256         * archive.c (hpux_uid_gid_encode): New function.
5257         (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5258         defined and the ID is greater than 99999.
5259         (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5260         special uid/gid fields into 32 bit values.
5261
5262 2000-04-21  Matthew Green  <mrg@cygnus.com>
5263
5264         * config.bfd: Add NetBSD/sparc64 support.
5265
5266 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
5267                           David Mosberger  <davidm@hpl.hp.com>
5268                           Timothy Wall <twall@cygnus.com>
5269                           Jim Wilson  <wilson@cygnus.com>
5270
5271         * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5272         (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5273         (BFD64_BACKENDS): Add elf64-ia64.lo.
5274         (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5275         (cpu-ia64.lo, elf64-ia64.lo): New rules.
5276         * Makefile.in: Rebuild.
5277         * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5278         (bfd_ia64_arch): Declare.
5279         (bfd_archures_list): Add bfd_ia64_arch.
5280         * bfd-in2.h: Rebuild.
5281         * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5282         * configure: Rebuild.
5283         * configure.host: (ia64-*-linux*): New host.
5284         * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5285         bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5286         * elf.c (prep_headers): Add bfd_arch_ia64.
5287         * libbfd.h: Rebuild.
5288         * reloc.c: Add IA-64 relocations.
5289         * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5290         Declare.
5291         (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5292         * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5293
5294 2000-04-21  Richard Henderson  <rth@cygnus.com>
5295
5296         * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5297         contents when performing a partial link.
5298         (bfd_elf_d30v_reloc_21): Likewise.
5299
5300 2000-04-20  H.J. Lu  <hjl@gnu.org>
5301
5302         * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5303         patch to symbols defined by a shared object.
5304         * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5305
5306 2000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5307
5308         K&R compiler fixes.
5309         * dwarf2.c (concat_filename): Avoid string literal concatenation.
5310         * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5311
5312 Mon Apr 17 19:14:36 2000  David Mosberger  <davidm@hpl.hp.com>
5313
5314         * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5315         (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5316         (coff-ia64.lo): Add dependency.
5317         * Makefile.in: Regenerate.
5318         * coff-ia64.c: New file.
5319         * efi-app-ia32.c: Ditto.
5320         * efi-app-ia64.c: Ditto.
5321         * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5322         (coff_set_flags): Ditto.
5323         (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5324         * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5325         * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5326         * configure: Regenerate.
5327         * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5328         (PUT_OPTHDR_IMAGE_BASE): Ditto.
5329         (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5330         (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5331         (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5332         (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5333         (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5334         (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5335         (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5336         (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5337         (GET_PDATA_ENTRY): Ditto.
5338         * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5339         data_start.  Use above macros to read fields that are 64 bit wide for
5340         COFF_WITH_PEP64.  Don't truncate entry and text_start to 32 bits.
5341         (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5342         FileAlignment and SectionAlignment to minimum alignment if they
5343         are zero.
5344         (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5345         Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5346         (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5347         Use above macros to write fields that are 64 bit wide for
5348         COFF_WITH_PEP64.
5349         (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5350         5*4 otherwise.  This should be right for IA-32 and IA-64, but may
5351         be wrong for platforms.  Use PDATA_ROW_SIZE instead of hardcoded
5352         value of 20 bytes.  Modify printing for COFF_WITH_PEP64 to print
5353         begin address, end address, and unwind info address only.  Use
5354         GET_PDATA_ENTRY() to read .pdata entries.  Use fprintf_vma() to
5355         print addresses.
5356         (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5357         HIGH3ADJ relocation names.
5358         (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5359         * targets.c: Declare bfd_efi_app_ia32_vec and
5360         bfd_efi_app_ia64_vec.
5361         (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5362         bfd_efi_app_ia64_vec.
5363
5364 2000-04-17  Timothy Wall  <twall@cygnus.com>
5365
5366         * bfd-in2.h: Add prototypes for tic54x load page access.
5367         * bfd-in.h: Regenerate.
5368         * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5369         in customized _set_arch_mach function.
5370         * coffcode.h (coff_set_alignment_hook): Set section load page if
5371         the appropriate macro is defined.
5372         (write_object_contents): Read section load page.
5373
5374 2000-04-13  Alan Modra  <alan@linuxcare.com.au>
5375
5376         * elf32-hppa.h: Update copyright date.
5377
5378         * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5379         * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5380
5381         * elf32-d30v.c (MAX32): Don't use LL suffix.
5382         (MIN32): Define in terms of MAX32.
5383         (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5384
5385         * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5386         expression.
5387
5388         * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5389
5390 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
5391
5392         * dep-in.sed: Match space before file name, not after.
5393         * Makefile.am: Regenerate dependencies.
5394         * Makefile.in: Regenerate.
5395
5396         * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5397         case, allow address wrap-around stupidly removed 2000-03-17.  Sign
5398         extend without an if statement.
5399
5400 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
5401
5402         * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5403         signed quantites.
5404         * elf32-mips.c (gprel16_with_gp): Likewise.
5405         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
5406         here using -0x40000, not (int)0xfffc0000.
5407         (elf32_hppa_size_of_stub): Likewise.
5408
5409 2000-04-11  Timothy Wall  <twall@cygnus.com>
5410
5411         * coff-tic54x.c: Now builds with all targets.
5412         * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
5413         * Makefile.in: Regenerate.
5414         * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
5415         unitialized variable.
5416
5417 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
5418
5419         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
5420         --enable-build-warnings option.
5421         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5422         * Makefile.in, configure: Re-generate.
5423
5424 2000-04-07  Nick Clifton  <nickc@cygnus.com>
5425
5426         * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
5427         BFD_RELOC_THUMB_PCREL_BLX.
5428
5429         * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5430         R_ARM_XPC25 and R_ARM_THM_PC22.
5431
5432         * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
5433         R_ARM_XPC25 and R_ARM_THM_XPC22.
5434         (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
5435         R_ARM_[XPC25|THM_XPC22].
5436
5437         * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
5438         elf/arm-oabi.h to elf/arm.h
5439
5440         * Makefile.am: Fix dependency for elfarm-oabi.c
5441         * Makefile.in: Regenerate.
5442
5443         * bfd-in2.h: Regenerate.
5444         * libbfd.h: Regenerate.
5445
5446 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
5447
5448         * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
5449         and restore it on failure.  Release newly allocated tdata on
5450         failure.
5451
5452 Fri Apr  7 11:33:47 2000  Jim Wilson  <wilson@cygnus.com>
5453
5454         * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
5455         (decode_line_info): Set it.  Report error if unit->line_offset is
5456         equal to or larger than it.
5457
5458 2000-04-07  Timothy Wall  <twall@cygnus.com>
5459
5460         * targets.c: Added vecs for tic54x.
5461         * reloc.c: Added relocs for tic54x.
5462         * libbfd.h: Regenerated.
5463         * configure: Add TI COFF vecs for tic54x.
5464         * configure.in: Ditto.
5465         * config.bfd (targ_cpu): Recognize new tic54x target.
5466         * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
5467         * bfd-in2.h: Add tic54x target and relocations.
5468         * Makefile.am, Makefile.in: Add tic54x target.
5469         * archures.c (bfd_archures_list): Add tic54x target.
5470         * coff-tic54x.c: New.
5471         * cpu-tic54x.c: New.
5472
5473 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
5474
5475         * elfcore.h (elf_core_file_p): call backend_object_p which
5476         thereby gets an opportunity to update the arch/machine type.
5477
5478 2000-04-06  Timothy Wall  <twall@cygnus.com>
5479
5480         * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
5481         class.  Handle SEC_CLINK and SEC_BLOCK flags.
5482         * section.c: Add SEC_CLINK and SEC_BLOCK flags.
5483         * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
5484
5485 2000-04-06  Nick Clifton  <nickc@cygnus.com>
5486
5487         * elf32-arm.h (elf32_arm_set_private_flags): Only check for
5488         EF_INTERWORK if this is an unknown EABI.
5489         (elf32_arm_merge_private_bfd_data): Check EABI version
5490         numbers.  Only check EF_xxx flags if the EABI version number
5491         is unknown.
5492         (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
5493         if the EABI version number is unknown.
5494         (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
5495         if the EABI version number is unknown.
5496
5497 Wed Apr  5 22:04:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
5498
5499         * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
5500         BFD_RELOC_SH_LOOP_END.
5501         * elf32-sh.c (sh_elf_howto_tab): Change special_func to
5502         sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
5503         Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
5504         (sh_elf_reloc_loop): New function.
5505         (sh_elf_reloc): No need to test for always-to-be-ignored relocs
5506         any more.
5507         (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
5508         (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
5509         * bfd-in2.h, libbfd.h: Regenerate.
5510
5511 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
5512
5513         * po/bfd.pot: Regenerate.
5514
5515         * Makefile.am: Remove extraneous mkdep comment.
5516         (MKDEP): Use gcc -MM rather than mkdep.
5517         (DEP): Quote when passing vars to sub-make.  Add warning
5518         message to end.
5519         (DEP1): Rewrite for "gcc -MM".
5520         (CLEANFILES): Add DEP2.
5521         Update dependencies.
5522         * Makefile.in: Regenerate.
5523
5524 2000-04-03  Kevin Buettner  <kevinb@redhat.com>
5525
5526         * configure.in: Added corefile support for AIX 4.3.  In particular,
5527         AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
5528         compiling rs6000-core.c.
5529         * configure: Regenerated.
5530
5531 2000-04-03  H.J. Lu  <hjl@gnu.org>
5532
5533         * cache.c (bfd_open_file): Unlink the output file only if
5534         it has non-zero size.
5535
5536 2000-04-01  Ken Block USG  <block@zk3.dec.com>
5537
5538         * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
5539         relative relocations for non-loaded sections in shared objects.
5540         (elf64_alpha_check_relocs): Similarly.
5541
5542 Mon Apr  3 13:37:15 2000  Hans-Peter Nilsson  <hp@axis.com>
5543
5544         * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
5545         BFD_RELOC_16 to switch for extended relocs.
5546         (MY_swap_ext_reloc_in): New.
5547         (MY_swap_ext_reloc_out): New.
5548         (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
5549         than NAME(aout,swap_ext_reloc_in) for extended relocs.
5550         (NAME(aout,squirt_out_relocs)): Similarly use
5551         MY_swap_ext_reloc_out.
5552         (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
5553
5554 2000-04-03  Kazu Hirata  <kazu@hxi.com>
5555
5556         * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
5557         the R_PCRWORD_B case.
5558
5559 2000-03-31  Thomas de Lellis  <tdel@wrs.com>
5560
5561         * srec.c : Set CHUNK size to 16 bytes to prevent download failures
5562         on some targets.
5563         * ihex.c : Ditto.
5564
5565 Wed Mar 30 15:28:00 2000  Donald Lindsay  <dlindsay@cygnus.com>
5566
5567         * elf32-m32r.c (m32r_elf_generic_reloc): new function.  All
5568         HOWTO references to bfd_elf_generic_reloc, that have
5569         partial_inplace == true, now use the new function.  The function
5570         is based on the recent rewrite of m32r_elf_lo16_reloc(), and
5571         extends its fixes to the R_M32R_{16,24,32} relocs.
5572         The new logic in m32r_elf_lo16_reloc() has been removed, and
5573         it instead calls the new routine to obtain that functionality.
5574
5575 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
5576
5577         * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
5578         elf32_avr_check_relocs, avr_final_link_relocate,
5579         elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
5580         elf32_avr_object_p): Add prototypes.
5581         (elf32_avr_gc_mark_hook): Add default for h->root.type.
5582         (bfd_elf_avr_final_write_processing): Make static.
5583
5584 2000-03-27  Denis Chertykov  <denisc@overta.ru>
5585
5586         * cpu-avr.c: New file.  BFD support routines for AVR architecture.
5587         * archures.c (bfd_architecture): Add AVR architecture.
5588         (bfd_archures_list): Add reference to AVR architecture info.
5589         * elf.c (prep_headers): Handle bfd_arch_avr.
5590         * reloc.c: Add various AVR relocation enums.
5591         * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
5592         list.
5593         * Makefile.am: Add support for AVR elf.
5594         * configure.in: Likewise.
5595         * config.bfd: Likewise.
5596         * Makefile.in: Regenerate.
5597         * configure: This too.
5598         * bfd-in2.h: And this.
5599         * libbfd.h: And this.
5600
5601 2000-03-24  H.J. Lu  <hjl@gnu.org>
5602
5603         * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
5604         (elf64_alpha_find_reloc_at_ofs): Likewise.
5605
5606 2000-03-17  Alan Modra  <alan@linuxcare.com.au>
5607
5608         * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
5609         flag an overflow if the bitfield is outside -2**n to 2**n-1.  The
5610         allowable range used to be -2**(n-1) to 2**n-1.
5611         * reloc.c (_bfd_relocate_contents): Same here.  Also replace
5612         "boolean overflow" with "bfd_reloc_status_type flag".
5613
5614 2000-03-14  Doug Evans  <dje@casey.transmeta.com>
5615
5616         * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5617
5618 2000-03-14  Kazu Hirata  <kazu@hxi.com>
5619
5620         * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5621         of shrinks properly, including the last reloc.
5622
5623 2000-03-13  Kazu Hirata  <kazu@hxi.com>
5624
5625         * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5626         check for R_MOVL2.
5627
5628 2000-03-11  Alan Modra  <alan@linuxcare.com.au>
5629
5630         * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5631         a format mismatch rather than an "error" from bfd_read such as
5632         bfd_error_file_truncated.
5633
5634 2000-03-10  Geoff Keating  <geoffk@cygnus.com>
5635
5636         * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5637         sign-extension and big-endian compensation for
5638         R_MIPS_64 even in ld -r.
5639
5640 2000-03-10  Geoffrey Keating  <geoffk@cygnus.com>
5641
5642         * elf32-mips.c (mips_elf_next_relocation): Rename from
5643         mips_elf_next_lo16_relocation, and generalize to look
5644         for any relocation type.
5645         (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5646         (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5647         (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5648         (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5649         (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5650         (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5651         (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5652         (mips_rtype_to_howto): Likewise.
5653         (mips_elf_calculate_relocation): Handle new relocs.
5654         (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5655         are paired.  The addend for R_MIPS_GNU_REL16_S2
5656         is shifted right two bits.
5657
5658 2000-03-10  Alan Modra  <alan@linuxcare.com.au>
5659
5660         * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5661         comment, and ensure it doesn't happen again.
5662         (bfd_install_relocation): Same here.
5663         (_bfd_relocate_contents): Don't bother assigning unused signmask
5664         shift result.  Fix typos in comments.
5665         Remove trailing whitespace throughout file.
5666
5667 2000-03-07  Doug Evans  <dje@casey.transmeta.com>
5668
5669         * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5670         * bfd-in2.h: Rebuild.
5671
5672 2000-03-06  Nick Clifton  <nickc@cygnus.com>
5673
5674         * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5675         sym_ptr_ptr fields.
5676         (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5677         (SIZEOF_ILF_STRINGS): Redefine.
5678         (pe_ILF_make_a_symbol-reloc): New function.  Creates a symbol
5679         relative reloc, as opposed to a section relative reloc.
5680         (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
5681         not C_LABEL.
5682         Add length of symbol's prefix to string pointer.
5683         Store a pointer to the symbol in the symbol pointer table.
5684         (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
5685         Initialise the symbol pointer table.
5686         Store the hint in the Hint/Name table.
5687         Make the jump reloc be symbol realtive, not section relative.
5688         Create an import symbol for imported code.
5689
5690 2000-03-06  Catherine Moore  <clm@cygnus.com>
5691
5692         * elf.c (swap_out_syms):  Check for null type_ptr.
5693
5694 2000-03-01  Hans-Peter Nilsson  <hp@axis.com>
5695
5696         * aout-target.h (MY(write_object_contents)): Remove unused
5697         and unusable "#if CHOOSE_RELOC_SIZE".
5698         * pc532-mach.c (MY(write_object_contents)): Ditto.
5699         * netbsd.h (MY(write_object_contents)): Ditto.
5700         * hp300hpux.c (MY(write_object_contents)): Ditto.
5701         * freebsd.h (MY(write_object_contents)): Ditto.
5702         * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
5703
5704 2000-02-29  H.J. Lu  <hjl@gnu.org>
5705
5706         * peicode.h (jtab): Make it static.
5707
5708         * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
5709         defined and COFF_IMAGE_WITH_PE is not defined.
5710         (_bfd_sh_align_load_span): Defined as sh_align_load_span if
5711         COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
5712
5713 2000-03-01  Nick Clifton  <nickc@cygnus.com>
5714
5715         * coff-arm.c (bfd_arm_process_before_allocation): Make
5716         'symndx' signed to prevent compile time warning.
5717
5718         * coff-mcore.c: Remove unused prototype for pe_object_p.
5719
5720         * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
5721         functions that are not used when COFF_IMAGE_WITH_PE is
5722         defined.
5723         (struct sh_opcode): Change type of 'flags' field to unsigned
5724         long so that it can hold the USESAS flag.
5725
5726         * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
5727
5728         * elf-m10300.c (mn10300_elf_relax_section): Initialise
5729         'sym_sec'.
5730
5731         * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
5732         parameters.
5733         Remove unusued variables and code.
5734         (elf_backend_add_symbol_hook): Fix prototype.
5735
5736         * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
5737         'srelgot'.
5738
5739         * elf32-mcore.c (mcore_elf_relocate_section): Initialise
5740         'oldinst'.
5741
5742         * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
5743         parameters.
5744         Remove unusued variables and code.
5745         (elf_backend_add_symbol_hook): Fix prototype.
5746
5747         * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
5748
5749         * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
5750         to unused function parameter.
5751
5752         * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
5753         parameters.
5754         Use EMPTY_HOWTO to initialise empty howto slots.
5755         Remove unused variables.
5756
5757         * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
5758
5759 2000-03-01  H.J. Lu  <hjl@gnu.org>
5760
5761         * aoutx.h (aout_link_input_section_std): Pass "true" to
5762         the undefined_symbol callback.
5763         (aout_link_input_section_ext): Likewise.
5764         * bout.c (get_value): Likewise.
5765         * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5766         * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
5767         Likewise.
5768         (alpha_relocate_section): Likewise.
5769         * coff-arm.c (coff_arm_relocate_section): Likewise.
5770         * coff-i960.c (coff_i960_relocate_section): Likewise.
5771         * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5772         * coff-mips.c (mips_relocate_section): Likewise.
5773         * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5774         * coff-sh.c (sh_relocate_section): Likewise.
5775         * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5776         * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
5777         * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5778         * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5779         * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5780         * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5781         * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5782         * elf32-i370.c (i370_elf_relocate_section): Likewise.
5783         * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5784         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5785         * elf32-sh.c (sh_elf_relocate_section): Likewise.
5786         * elf32-v850.c (v850_elf_relocate_section): Likewise.
5787         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
5788         * elflink.h (elf_link_output_extsym): Likewise.
5789         * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
5790         * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
5791         * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
5792
5793         * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
5794         undefined_symbol callback when building shared library with
5795         -Bsymbolic and undefined symbols are allowed. Otherwise, pass
5796         "true".
5797         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5798         * elf32-i386.c (elf_i386_relocate_section): Likewise.
5799         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5800         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5801         (elf32_mips_get_relocated_section_content): Likewise.
5802         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5803         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5804         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5805         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5806
5807 2000-02-28  Nick Clifton  <nickc@cygnus.com>
5808
5809         * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
5810         * Makefile.in: Regenerate.
5811
5812         * configure.in: Add support for mips and sh pe vectors.
5813         * configure: regenerate.
5814
5815         * config.bfd: Add support for arm-wince, mips-pe and sh-pe
5816         targets.
5817
5818         * targets.c: Add mips and sh pe vectors.
5819
5820         * libpei.h (coff_final_link_postscript): Only define if not
5821         already defined.
5822
5823         * coffcode.h: Add support for WinCE magic numbers.
5824
5825         * peigen.c (pe_print_reloc): Update comment and rearrange
5826         appending of newline character.
5827
5828         * peicode.h: Add support for Image Library Format.
5829         (pe_ILF_vars): Structure containing data used by ILF code.
5830         (pe_ILF_make_a_section): New function.  Create a section based
5831         on ILF data.
5832         (pe_ILF_make_a_reloc): New function.  Create a reloc based on
5833         ILF data.
5834         (pe_ILF_make_a_symbol): New function.  Create a symbol based
5835         on ILF data.
5836         (pe_ILF_save_relocs): New function.  Store the relocs created
5837         by pe_ILF_make_a_reloc in a section.
5838         (pe_ILF_build_a_bfd): New function.  Create a BFD describing
5839         an ILF object.
5840         (pe_ILF_object_p): New function.  Return a bfd_target pointer
5841         for an ILF object.
5842         (pe_bfd_object_p): If an ILF object is detected call
5843         pe_ILF_object_p on it.
5844
5845         * coff-arm.c: Add support for WinCE relocs which are different
5846         from normal ARM COFF relocs.
5847         * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
5848
5849         * coff-sh.c: Add support for sh-pe target.
5850         * pe-sh.c: New file.  Support code for sh-pe target.
5851         * pei-sh.c: New file.  Support code for sh-pe target.
5852
5853         * pe-mips.c: New file.  Support code for mips-pe target.
5854         * pei-mips.c: New file.  Support code for mips-pe target.
5855
5856 2000-02-27  Jakub Jelinek  <jakub@redhat.com>
5857
5858         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
5859         architecture if the object causing the bump is dynamic.
5860         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
5861         and also don't it for memory ordering.
5862         (sparc64_elf_write_relocs): Take src_rela out of the loop.
5863
5864 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
5865
5866         * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
5867         calling bfd_get_section_size_before_reloc.
5868         (decode_line_info): Likewise.
5869         (_bfd_dwarf2_find_nearest_line): Likewise.
5870
5871 2000-02-27  Eli Zaretskii  <eliz@is.elta.co.il>
5872
5873         * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
5874         name of the libtool directory.
5875         * Makefile.in: Rebuild.
5876
5877 Fri Feb 25 18:39:26 2000  Rodney Brown (RodneyBrown@pmsc.com)
5878
5879         * som.c (SOM_HOWTO): Define.
5880         (som_hppa_howto_table): Use it.
5881
5882 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
5883
5884         * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
5885
5886         * config.bfd: Enable 64 bit support for Solaris7+/sparc.
5887
5888 2000-02-24  Catherine Moore  <clm@cygnus.com>
5889
5890         * som.c (som_misc_symbol_info):  Add field
5891         secondary_def.
5892         (som_bfd_derive_misc_symbol_info):  Initialize
5893         secondary_def.
5894         (som_build_and_write_symbol_table): Keep track
5895         of secondary_def field.
5896         (som_slurp_symbol_table): Set BSF_WEAK symbol flag
5897         if secondary_def field is set.
5898         (som_bfd_ar_write_symbol_stuff): Initialize
5899         secondary_def.
5900
5901 2000-02-23  Stephane Carrez  <stcarrez@worldnet.fr>
5902
5903         * dwarf2.c (read_address): Read 16-bits addresses.
5904         (parse_comp_unit): Accept addr_size == 2.
5905
5906 2000-02-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
5907
5908         * bfd-in.h: Update copyright date.
5909
5910 2000-02-23  Linas Vepstas <linas@linas.org>
5911
5912         * cpu-i370.c: New file.
5913         * elf32-i370.c:  New file.
5914         * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5915         (bfd_i370_arch): New.
5916         (bfd_archures_list): Add bfd_i370_arch.
5917         * elf.c (prep_headers): Add bfd_arch_i370.
5918         * Makefile.am: Add support for IBM 370 elf.
5919         * config.bfd: Likewise.
5920         * configure.in: Likewise.
5921         * libbfd.h (bfd_reloc_code_real_names): Likewise.
5922         * reloc.c (bfd_reloc_code_type): Likewise.
5923         * targets.c: Likewise.
5924
5925         * Makefile.in: Regenerate.
5926         * configure: Regenerate.
5927         * bfd-in2.h: Regenerate.
5928
5929 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
5930
5931         * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5932         invalid relocation types, and change them to R_386_NONE.
5933
5934 2000-02-22  H.J. Lu  <hjl@gnu.org>
5935
5936         * elflink.h (elf_link_add_object_symbols): If a version symbol is
5937         not defined, don't add a second ELF_VER_CHR.
5938
5939         * elflink.h (elf_bfd_final_link): Call output_extsym for global
5940         symbols converted to local symbols even when stripping all
5941         symbols.
5942         (elf_link_output_extsym): Process global symbols converted to
5943         local symbols even if they are being stripped.
5944
5945 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
5946
5947         * archures.c (bfd_octets_per_byte): Return unsigned int.
5948         (bfd_arch_mach_octets_per_byte): Ditto.
5949         * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
5950         comparison warning.
5951         * section.c (bfd_get_section_size_before_reloc): Quell signed
5952         vs. unsigned comparison warning.
5953         (bfd_get_section_size_after_reloc): Same here.  Fix parentheses too.
5954         * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
5955         change.  What was I thinking?
5956         * bfd-in2.h: Regenerate.
5957
5958         * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
5959         (elf_gc_sections): Same here.
5960         (elf_gc_common_finalize_got_offsets): And here.
5961
5962 2000-02-21  Ian Lance Taylor  <ian@zembu.com>
5963
5964         ELF HPPA doesn't work at present; remove it until it does.
5965         * config.bfd: Comment out setting targ_defvec to
5966         bfd_elf32_hppa_vec.
5967         * Makefile.am: Rebuild dependencies.
5968         (BFD32_BACKENDS): Remove elf32-hppa.lo.
5969         (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
5970         (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
5971         * Makefile.in: Rebuild.
5972         * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
5973
5974 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
5975
5976         * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
5977         is no bfd_free().  Revert bfd_free part of previous change.
5978
5979 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
5980
5981         * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
5982         arrays.
5983         (coff_compute_section_file_positions): Use bfd_free to pair
5984         bfd_malloc.
5985         (coff_write_object_contents): Likewise.
5986
5987         * coff-rs6000.c (xcoff_howto_table_16): New variable.
5988         (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
5989
5990 2000-02-18  Ulrich Drepper  <drepper@cygnus.com>
5991
5992         * coff-rs6000.c (XCOFFARMAGBIG): New macro.
5993         (xcoff_ar_file_hdr_big): New structure.
5994         (SIZEOF_AR_FILE_HDR_BIG): New macro.
5995         (xcoff_ar_hdr_big): New structure.
5996         (SIZEOF_AR_HDR_BIG): New macro.
5997         (xcoff_big_format_p): New macro.
5998         (xcoff_ardata_big): New macro.
5999         (arch_xhdr_big): New macro.
6000         (xcoff_slurp_armap): Handle large archives.
6001         (xcoff_archive_p): Detect large archives.
6002         (xcoff_read_ar_hdr): Handle large archives.
6003         (xcoff_openr_next_archived_file): Handle large archives.
6004         (xcoff_generic_stat_arch_elt): Handle large archives.
6005         (xcoff_write_armap_old): Rename from xcoff_write_armap.
6006         (xcoff_write_armap_big): New function.
6007         (xcoff_write_armap): New function, dispatch to _old or _big.
6008         (xcoff_write_archive_contents_old): Rename from
6009         xcoff_write_archive_contents.
6010         (xcoff_write_archive_contents_big): New function.
6011         (xcoff_write_archive_contents): New function, dispatch to _old or
6012         _big.
6013
6014 2000-02-18  Richard Henderson  <rth@cygnus.com>
6015
6016         * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
6017         and hide_symbol members.
6018         (elf_link_hash_copy_indirect): Remove.
6019         (elf_link_hash_hide_symbol): Remove.
6020         (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
6021         and elf_backend_hide_symbol.
6022         (_bfd_elf_link_hash_copy_indirect): Declare.
6023         (_bfd_elf_link_hash_hide_symbol): Declare.
6024         * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
6025         (_bfd_elf_link_hash_hide_symbol): Likewise.
6026         (_bfd_elf_link_hash_table_init): Don't init killed members.
6027         * elflink.h (elf_link_add_object_symbols): Use the bed function
6028         pointers not elf_link_hash_{copy_indirect,hide_symbol}.
6029         (elf_link_assign_sym_version): Likewise.
6030         * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
6031         (elf_backend_hide_symbol): Likewise.
6032         (elfNN_bed): Update for new members.
6033
6034 2000-02-17  Kevin Buettner  <kevinb@redhat.com>
6035
6036         * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
6037         STACK_END_ADDR): Define for new core file format.
6038         (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
6039         for handling the vagaries of the various core file structures used
6040         by AIX over the years.
6041         (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
6042         Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
6043         core_dumpx structure.
6044
6045 Thu Feb 17 00:04:48 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
6046
6047         * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
6048         (bfd_mach_sh3_dsp): Likewise.
6049         (bfd_mach_sh4): Reinstate.
6050         (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
6051         * bfd-in2.h: Regenerate.
6052         * coff-sh.c (struct sh_opcode): flags is no longer short.
6053         (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
6054         (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
6055         (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
6056         (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
6057         (sh_opcodes): No longer const.
6058         (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
6059         (sh_insn_uses_reg): Check for USESAS and USESR8.
6060         (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
6061         (_bfd_sh_align_load_span): Return early for SH4.
6062         Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
6063         Take into account that field b of a parallel processing insn
6064         could be mistaken for a separate insn.
6065         * cpu-sh.c (arch_info_struct): New array elements for
6066         sh2, sh-dsp and sh3-dsp.
6067         Reinstate element for sh4.
6068         (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
6069         (SH4_NEXT): Reinstate.
6070         (SH3_NEXT, SH3E_NEXT): Adjust.
6071         * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
6072         * elf32-sh.c (sh_elf_set_private_flags): New function.
6073         (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
6074         (sh_elf_merge_private_data): New function.
6075         (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
6076         (bfd_elf32_bfd_copy_private_bfd_data): Define.
6077         (bfd_elf32_bfd_merge_private_bfd_data): Change to
6078         sh_elf_merge_private_data.
6079
6080 2000-02-13  Richard Henderson  <rth@cygnus.com>
6081
6082         * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
6083         hide_symbol members.
6084         (elf_link_hash_copy_indirect): New.
6085         (elf_link_hash_hide_symbol): New.
6086         * elflink.h (elf_link_add_object_symbols): Break out copy from
6087         indirect new new symbol to elf.c.
6088         (elf_link_assign_sym_version): Break out privatization of
6089         non-exported symbol to elf.c.
6090         * elf.c (_bfd_elf_link_hash_copy_indirect): New.
6091         (_bfd_elf_link_hash_hide_symbol): New.
6092         (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
6093
6094 2000-02-13  Ian Lance Taylor  <ian@zembu.com>
6095
6096         * section.c (_bfd_strip_section_from_output): Add info parameter.
6097         If it passed as non-NULL, use it to check whether any input BFD
6098         has an input section which uses this output section.  Change all
6099         callers.
6100         * bfd-in2.h: Rebuild.
6101
6102         * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
6103         bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
6104         1999-11-29.
6105         * bfd-in2.h: Rebuild.
6106
6107 2000-02-10  Timothy Wall  <twall@cygnus.com>
6108
6109         * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
6110         allow final modifications of swapped-in symbol.
6111         (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
6112         * coffcode.h (coff_write_relocs): Use macro
6113         SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
6114         symbol index should be set to -1.
6115
6116 Thu Feb 10 20:07:50 GMT 2000  Toshiyasu Morita (toshi.morita@sega.com)
6117
6118         * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
6119         USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
6120         * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
6121         * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
6122         sh_insns_uses_or_sets_freg): New functions.
6123         * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
6124         * (sh_insns_conflict): Use new functions and new macros to
6125         detect conflicts when two instructions both set same integer registers,
6126         both set same fp register, and both set special register.
6127
6128 2000-02-09  Timothy Wall  <twall@cygnus.com>
6129
6130         * coffgen.c (coff_real_object_p): Set arch/mach info prior to
6131         swapping in sections, so that the swapping routines have access to
6132         the arch/mach info.
6133
6134 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
6135
6136         * coff-go32.c: Update comment. Update copyright.
6137
6138 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
6139
6140         * syms.c (bfd_decode_symclass)
6141         Two new class characters were added - 'V' and 'v'.  The
6142         meaning of 'W' is now restricted to just weak non-object
6143         symbols.  This allows differentiation between, for example,
6144         weak functions vs weak objects.  nm for example now dumps:
6145         'W' = weak global
6146         'w' = weak unresolved
6147         'V' = weak global object
6148         'v' = weak unresolved object
6149
6150         (bfd_is_undefined_symclass): New function.  Return true if the
6151         given symbol class represents and undefined/unresolved symbol.
6152
6153         (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
6154         unresolved symbols.
6155
6156         * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
6157
6158         * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
6159         STT_ARM_16BIT flag set, but it is not attached to a data object
6160         return STT_ARM_16BIT so that it will be treated as code by the
6161         disassembler.
6162
6163 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
6164
6165         * coff-i386.c (i3coff_object_p): Remove prototype.
6166         Update copyright.
6167
6168         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
6169         to name.  Update copyright.
6170
6171         * trad-core.c (trad_unix_core_file_p): Cast core_regsec
6172         assignment to avoid warning.  Update copyright.
6173
6174 2000-01-24  Robert Lipe  (robertl@sco.com)
6175
6176         * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6177         instead of using GNU C extension.
6178
6179 2000-01-21  Nick Clifton  <nickc@cygnus.com>
6180
6181         * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6182         amount from a bfd_in_memory structure.
6183         (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6184         structure.
6185
6186 2000-01-14  Nick Clifton  <nickc@cygnus.com>
6187
6188         * linker.c (default_indirect_link_order): oops - fix incorrectly
6189         applied patch from Tim Wall.
6190
6191 2000-01-13  Timothy Wall (twall@tiac.net>
6192
6193         * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6194         = scnhsz, filhsz, relsz, aoutsz, etc)
6195
6196         * coffswap.h: Ditto.
6197
6198 2000-01-13  Nick Clifton  <nickc@cygnus.com>
6199
6200         * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6201         interwork thumb to arm stub.
6202
6203 2000-01-13  Timothy Wall (twall@tiac.net>
6204
6205         * archures.c (bfd_octets_per_byte): New function: Return
6206         target byte size.
6207         (bfd_arch_mach_octets_per_byte): New function: Return target
6208         byte size.
6209
6210         * section.c: Distinguish between octets and bytes for usage of
6211         _cooked_size,  _raw_size, and output_offset.  Clarify
6212         description of bfd_set_section_contents.
6213
6214         * bfd-in2.h: Regenerate.
6215
6216         * coffgen.c: Indicate that the offset parameter is in bytes, not
6217         octets.
6218
6219         * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6220         where appropriate to get the octet offset when calling
6221         bfd_set_section_contents.
6222         (bfd_coff_reloc_link_order): Ditto.
6223
6224         * linker.c (bfd_generic_reloc_link_order): Ditto.
6225         (_bfd_default_link_order): Ditto.
6226
6227         * reloc.c (bfd_perform_relocation):  Distinguish between octets
6228         and bytes.  Use octets when indexing into octet data; use bytes
6229         when calculating target addresses.
6230         (bfd_install_relocation): Ditto.
6231
6232         * srec.c (srec_write_section): Ditto.
6233
6234 2000-01-13  Nick Clifton  <nickc@cygnus.com>
6235
6236         * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6237         3 to 2.  This allows 4 byte sized sections, which is necessary for
6238         dlltool to build functioning DLLs.
6239
6240 2000-01-10  Philip Blundell  <pb@futuretv.com>
6241
6242         * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6243         (arm*-*-conix*): New target.
6244
6245 2000-01-10  Egor Duda  <deo@logos-m.ru>
6246
6247         * config.bfd: Include elf32_i386 vector to target list for cygwin
6248         and mingw.
6249
6250         * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6251         * configure.in: Test for structure win32_pstatus_t in
6252         <sys/procfs.h>
6253         * configure: Regenerate.
6254
6255         * elf.c (elfcore_grok_win32pstatus): New function: process
6256         win32_pstatus_t notes in elf core file.
6257         (elfcore_grok_note): Detect win32_pstatus notes.
6258
6259 2000-01-03  Martin v. Loewis  <loewis@informatik.hu-berlin.de>
6260
6261         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6262         visibility.
6263         * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6264         * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6265
6266 For older changes see ChangeLog-9899
6267 \f
6268 Local Variables:
6269 mode: change-log
6270 left-margin: 8
6271 fill-column: 74
6272 version-control: never
6273 End: