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