2001-02-18 Kazu Hirata <kazu@hxi.com>
[external/binutils.git] / bfd / ChangeLog
1 2001-02-18  Kazu Hirata  <kazu@hxi.com>
2
3         * vms-misc.c: Fix formatting.
4
5 2001-02-16  Kazu Hirata  <kazu@hxi.com>
6
7         * vms.c: Fix formatting.
8
9 2001-02-14  H.J. Lu  <hjl@gnu.org>
10
11         * elf.c (elf_find_function): New function.
12         (_bfd_elf_find_nearest_line): Call elf_find_function () to find
13         the file name and function name.
14
15 2001-02-14  Nick Clifton  <nickc@redhat.com>
16
17         * ecoff.c (bfd_debug_section): Update to initialise new fields in
18         asection structure.
19
20         * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
21         (BFD64_BACKENDS): Add pepigen.c
22         Add rules to create peigen.c and pepigen.c from peXXigen.c.
23
24         * Makefile.in: Regenerate.
25         * configure:  Regenerate.
26         * po/POTFILES.in: Regenerate.
27         * po/bfd.pot: Regenerate.
28
29 2001-02-14  H.J. Lu  <hjl@gnu.org>
30
31         * libcoff-in.h (pe_tdata): Add members target_subsystem and
32         force_minimum_alignment.
33
34 2001-02-14  Bo Thorsen  <bo@suse.de>
35
36         * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
37         (elf64_86_64_size_info): Struct added to fix a problem
38         with the hashtable string entries.
39         (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
40         (elf64_x86_64_size_dynamic_sections): A FIXME removed.
41         (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
42         remove the FIXME for this.
43         (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
44         section. Also removed the FIXME for it.
45         (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
46         (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
47         (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
48
49 2001-02-13  Richard Henderson  <rth@redhat.com>
50
51         * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
52         and not user provided.
53
54 2001-02-13  Kazu Hirata  <kazu@hxi.com>
55
56         * vms.c (vms_print_symbol): Remove unreachable code.
57
58         * rs6000-core.c: Fix formatting.
59
60 2001-02-13  David Mosberger  <davidm@hpl.hp.com>
61
62         * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
63         as _bfd_XXi_only_swap_filehdr_out.
64         (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
65         pe->force_minimum_alignment to TRUE.
66         (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
67         PEI_TARGET_SUBSYSTEM.
68         (pe_print_private_bfd_data): Call
69         _bfd_XX_print_private_bfd_data_common() instead of
70         _bfd_pe_print_private_bfd_data_common().
71         (pe_bfd_copy_private_bfd_data): Call
72         _bfd_XX_bfd_copy_private_bfd_data_common() instead of
73         _bfd_pe_bfd_copy_private_bfd_data_common().
74         (coff_bfd_copy_private_section_data): Define as
75         _bfd_XX_bfd_copy_private_section_data instead of
76         _bfd_pe_bfd_copy_private_section_data.
77         (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
78         of a _bfd_pe_get_symbol_info.
79
80         * peigen.c: Delete.
81
82         * peXXigen.c: Renamed from peigen.c.
83         (COFF_WITH_XX): Define this macro (will get expanded into
84         COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
85         compiled as peigen.c or pepigen.c.
86         [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
87         define the canonical PEP structures and definitions.
88         (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
89         effect, enforce minimum file and section alignments.  If
90         extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
91         pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
92         so, by default, this is a no-op).
93
94         * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
95         (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
96         _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
97         _bfd_pefoo if it's not defined.  Use these macros to define
98         coff swap macros.
99
100         * libcoff.h (pe_tdata): Add members target_subsystem and
101         force_minimum_alignment.
102
103         * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
104         COFF_WITH_pep.
105         (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
106
107         * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
108         peigen.lo.
109
110         * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
111         (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
112         PEPAOUTHDR.
113
114         * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
115         (BFD64_BACKENDS_CFILES): Mention pepigen.c
116         (peigen.c): Add rule to generate from peXXigen.c.
117         (pepigen.c): Ditto.
118         (pepigen.lo): List dependencies for pepigen.lo.
119
120 2001-02-13  Alan Modra  <alan@linuxcare.com.au>
121
122         * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$.  If
123         $global$ referenced but not defined, set its value here.
124
125 2001-02-09  Bo Thorsen  <bo@suse.de>
126
127         * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
128         alignment to 3.
129         (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
130         and relocation.
131         (elf64_x86_64_relocate_section): Fix formatting.
132         (elf64_x86_64_relocate_section): Fix addend for relocation of
133         R_X86_64_(8|16|32|PC8|PC16|PC32).
134
135 2001-02-12  Jan Hubicka  <jh@suse.cz>
136
137         * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
138
139 2001-02-11  H.J. Lu  <hjl@gnu.org>
140
141         * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
142         alignment.
143
144 2001-02-11  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
145
146         * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
147         from 2000-10-13.  Do not add the symbol's value for R_MIPS_REL32
148         relocations against dynsym symbols.
149
150         * elf32-mips.c (elf_mips_howto_table): Fix the comment on
151         the R_MIPS_26 relocation.
152         (mips_elf_calculate_relocation): Use (p + 4) instead of p for
153         the R_MIPS_26 relocation.
154         (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
155         relocation.
156         * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
157         the R_MIPS_26 relocation.
158         (mips_elf64_howto_table_rela): Likewise.
159
160         * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
161         member to mark symbols that have non-CALL relocations against
162         them.
163         (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
164         (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
165         R_MIPS_GOT16.
166         (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
167         non-CALL relocation against it is encountered.
168         (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
169         (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
170         no_fn_stub is not set.
171
172         * elf32-mips.c (mips_elf_output_extsym): Get the output section
173         information from the real symbol for indirect ones.
174         Check no_fn_stub to find out if a symbol has a function stub
175         indeed.
176
177 2001-02-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
178
179         * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
180         * Makefile.in: Regenerate.
181
182 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
183
184         * elfxx-ia64.c (is_unwind_section_name): New function.  Returns
185         true if section name is an unwind table section name.
186         (elfNN_ia64_additional_program_headers): Count each unwind section
187         separately.
188         (elfNN_ia64_modify_segment_map): Install one unwind program header
189         for each unwind separate section.  Note: normally the linker
190         script merges the unwind sections that go into a single segment,
191         so this still generates at most one unwind program header per
192         segment.
193
194         * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
195         name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
196         (elfNN_ia64_fake_sections): Mark sections with names that start
197         with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
198         unwind section.
199
200         * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
201         Use it to make sh_info in unwind section point to the text section
202         it applies to.
203
204 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
205
206         * Makefile.am: Add linux target for S/390.
207         * archures.c: Likewise.
208         * bfd-in2.h: Likewise.
209         * config.bfd: Likewise.
210         * configure.in: Likewise.
211         * elf.c: Likewise.
212         * libbfd.h: Likewise.
213         * targets.c: Likewise.
214         * cpu-s390.c: New file.
215         * elf32-s390.c: New file.
216         * elf64-s390.c: New file.
217
218 2001-02-09  Nick Clifton  <nickc@redhat.com>
219
220         * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
221         ImageBase.  This has already been done by coff_swap_hdr_in.
222
223 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
224
225         * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
226
227 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
228
229         * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
230         (sparc64_elf_relocate_section): Likewise.
231
232 2001-02-09  Mark Kettenis  <kettenis@gnu.org>
233
234         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
235         similar to R_SPARC_32.
236         * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
237
238 2001-02-08  H.J. Lu  <hjl@gnu.org>
239
240         * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
241         relocation entries for weak definitions when building DSO with
242         -Bsymbolic.
243
244 2001-02-08  Richard Henderson  <rth@redhat.com>
245
246         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
247         before visibility.  Locally defined protected symbols are not
248         dynamic.
249
250 2001-02-08  Geoffrey Keating  <geoffk@redhat.com>
251
252         * config.bfd: Enable coff64 for rs6000-*.  Patch from
253         <hzoli@austin.ibm.com>.
254
255 2001-02-07  Mark Elbrecht  <snowball3@bigfoot.com>
256
257         * coffgen.c (coff_find_nearest_line): If stabs info is successfully
258         found, do not attempt to find dwarf2 info before returning.
259
260 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
261
262         * elflink.h (is_global_symbol_definition): Rename to
263         is_global_data_symbol_definition and have it reject function
264         symbols.
265         (elf_link_is_defined_archive_symbol): Use renamed function.
266
267 2001-02-07  Todd Vierling  <tv@wasabisystems.com>
268
269         * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
270         * libbfd.h (bfd_target_vector): Likewise.
271         * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
272         make static; create pointer reference named bfd_target_vector.
273         (_bfd_target_vector_entries): Calculate this based on the array
274         typed _bfd_target_vector.
275
276 2001-02-06  H.J. Lu  <hjl@gnu.org>
277
278         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
279         internal symbols are not dynamic.
280         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
281
282 2001-02-06  Nick Clifton  <nickc@redhat.com>
283
284         * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
285         that it will not be pulled into the list of files that make up
286         po/POTFILES.in.
287         * Makefile.in: Regenerate.
288         * po/bfd.pot:  Regenerate.
289
290 2001-02-06  H.J. Lu  <hjl@gnu.org>
291
292         * bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
293         checking.
294         (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
295         external_PEI_IMAGE_hdr.
296
297 2001-02-06  Kazu Hirata  <kazu@hxi.com>
298
299         * elf-m10200.c: Fix formatting.
300
301 2001-02-04  Nick Clifton  <nickc@redhat.com>
302
303         * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
304         rel, it will be handled later on.
305
306 2001-02-02  Fred Fish  <fnf@ninemoons.com>
307
308         * Makefile.in: Fix typo.
309
310 2001-02-01  Kazu Hirata  <kazu@hxi.com>
311
312         * elf-m10300.c: Fix formatting.
313
314 2001-01-30  Alan Modra  <alan@linuxcare.com.au>
315
316         * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
317         (elf_backend_get_symbol_type): Define.
318         (elf64_hppa_object_p): Set architecture and machine from elf
319         header flags.
320
321 2001-01-30  Curtis L. Janssen  <cljanss@ca.sandia.gov>
322
323         * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
324         before mdebug.
325
326 2001-01-26  Richard Henderson  <rth@redhat.com>
327
328         * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
329         for non-default visibility.
330         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
331         delete ugly macro and replace with pretty function.
332
333 2001-01-25  Mark Elbrecht  <snowball3@bigfoot.com>
334
335         * coff-go32.c: Update copyright.
336         * coff-stgo32.c: Likewise.
337         * coff-go32.c (COFF_LONG_FILENAMES): Define.
338         * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
339         * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
340         * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
341
342 2001-01-25  Kazu Hirata  <kazu@hxi.com>
343
344         * bfd-in2.h: Rebuild.
345         * libbfd.h: Likewise.
346
347 2001-01-23  H.J. Lu  <hjl@gnu.org>
348
349         * bfd-in2.h: Rebuild.
350
351 2001-01-23  H.J. Lu  <hjl@gnu.org>
352
353         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
354         is NULL or PRIV(vms_rec) is outside of the buffer.
355
356 2001-01-23  Kazu Hirata  <kazu@hxi.com>
357
358         * coff64-rs6000.c: Fix formatting.
359         * coff-arm.c: Likewise.
360         * coffgen.c: Likewise.
361         * cofflink.c: Likewise.
362         * coff-mcore.c: Likewise.
363         * coff-mips.c: Likewise.
364         * coff-pmac.c: Likewise.
365         * coff-ppc.c: Likewise.
366         * coff-rs6000.c: Likewise.
367         * elf32.c: Likewise.
368         * elf32-fr30.c: Likewise.
369         * elf32-i370.c: Likewise.
370         * elf32-i860.c: Likewise.
371         * elf32-m32r.c: Likewise.
372         * elf32-m68k.c: Likewise.
373         * elf32-mcore.c: Likewise.
374         * elf32-ppc.c: Likewise.
375         * elf32-sh.c: Likewise.
376         * elf32-v850.c: Likewise.
377         * elf64-alpha.c: Likewise.
378         * elf64-sparc.c: Likewise.
379         * elflink.c: Likewise.
380         * elflink.h: Likewise.
381         * elf-m10200.c: Likewise.
382         * elf-m10300.c: Likewise.
383         * elfxx-ia64.c: Likewise.
384
385         * aoutx.h: Fix formatting.
386         * bfd.c: Likewise.
387         * bfd-in2.h: Likewise.
388         * bfd-in.h: Likewise.
389         * cpu-i386.c: Likewise.
390         * cpu-m68hc11.c: Likewise.
391         * dwarf2.c: Likewise.
392         * elf64-x86-64.c: Likewise.
393         * format.c: Likewise.
394         * freebsd.h: Likewise.
395         * hash.c: Likewise.
396         * hp300hpux.c: Likewise.
397         * hppabsd-core.c: Likewise.
398         * hpux-core.c: Likewise.
399
400 2001-01-22  Bo Thorsen  <bo@suse.de>
401
402         * elf64-x86-64.c: Added PIC support for X86-64.
403         (elf64_x86_64_link_hash_newfunc): Function added.
404         (elf64_x86_64_link_hash_table_create): Likewise.
405         (elf64_x86_64_check_relocs): Likewise.
406         (elf64_x86_64_gc_mark_hook): Likewise.
407         (elf64_x86_64_gc_sweep_hook): Likewise.
408         (elf64_x86_64_adjust_dynamic_symbol): Likewise.
409         (elf64_x86_64_size_dynamic_sections): Likewise.
410         (elf64_x86_64_discard_copies): Likewise.
411         (elf64_x86_64_finish_dynamic_symbol): Likewise.
412         (elf64_x86_64_finish_dynamic_sections): Likewise.
413         (elf64_x86_64_relocate_section): Add relocation of PIC sections.
414
415 2001-01-21  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
416
417         * Makefile.am (install-data-local): Make use of $(DESTDIR).
418         * Makefile.in: Regenerate.
419
420 2001-01-21  Kazu Hirata  <kazu@hxi.com>
421
422         * coff-a29k.c: Fix formatting.
423
424 2001-01-19  H.J. Lu  <hjl@gnu.org>
425
426         * elf32-i386.c (elf_i386_check_relocs): Report files with bad
427         relocation section names.
428         (elf_i386_relocate_section): Report files with bad relocation
429         section names and return false.
430
431 2001-01-17  Bo Thorsen  <bo@suse.de>
432
433         * targets.c: Alphabetize list of xvecs.
434
435 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
436
437         * config.bfd: Add linux target variant for elfxx-hppa.
438         * configure.in: Recognize bfd_elf32_hppa_linux_vec and
439         bfd_elf64_hppa_linux_vec.
440         * configure: Regenerate.
441         * elf64-hppa.c: Include elf64-target.h again to support linux
442         target variant.
443         (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
444         * elf32-hppa.c: Include elf32-target.h again to support linux
445         target variant.
446         (elf32_hppa_post_process_headers): New function.
447         (elf_backend_post_process_headers): Define.
448         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
449         bfd_elf32_hppa_linux_vec.
450
451         * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
452         and data_segment_base fields.
453         (elf32_hppa_link_hash_table_create ): Init them.
454         (elf32_hppa_check_relocs): Update comments.
455         (hppa_record_segment_addr): New function.
456         (elf32_hppa_relocate_section): Call it.
457         (final_link_relocate): Handle R_PARISC_SEGREL32.
458         (elf32_hppa_final_link): New function.
459         (bfd_elf32_bfd_final_link): Define to call it.
460         (hppa_unwind_entry_compare): New function.
461         * cache.c (bfd_open_file): Create files in write+read mode.
462
463         * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
464         SEGREL32 and numerous other relocs.  Change duplicate
465         R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
466
467         * opncls.c (bfd_fdopenr): Add parens like the comment says around
468         O_ACCMODE.
469
470         * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
471         .plt entries for DT_INIT and DT_FINI.
472         (elf32_hppa_finish_dynamic_sections): Remove special handling of
473         DT_INIT and DT_FINI.
474
475         * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
476         offsets for stub .plt access if wide mode.  Check offset in range.
477
478 2001-01-13  Nick Clifton  <nickc@redhat.com>
479
480         * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
481         line.
482
483         * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
484         line.
485
486 2001-01-12  Alan Modra  <alan@linuxcare.com.au>
487
488         * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
489         * configure: Regenerate.
490
491 2001-01-11  Peter Targett  <peter.targett@arccores.com>
492
493         * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
494         bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
495         * cpu-arc.c (arch_info_struct): Add entries for variants.
496         (bfd_arc_arch) Set default to bfd_mach_arc_5.
497         (arc_get_mach) Don't assume machine names prefixed arc- before
498         testing.
499         * elf32-arc.c (arc_elf_object_p): Set machine number based on new
500         selections.
501         (arc_elf_final_write_processing) Likewise.
502         (ELF_MACHINE_CODE) Use EM_ARC.
503
504 2001-01-10  Nick Clifton  <nickc@redhat.com>
505
506         * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
507
508 2001-01-07  Philip Blundell  <philb@gnu.org>
509
510         * README: Replace `bug-gnu-utils@gnu.org' with
511         `bug-binutils@gnu.org'.
512
513 2001-01-04  Kazu Hirata  <kazu@hxi.com>
514
515         * som.c: Fix formatting.
516
517 2001-01-03  Kazu Hirata  <kazu@hxi.com>
518
519         * ecoffswap.h: Fix formatting.
520         * elf-bfd.h: Likewise.
521         * elfarm-nabi.c: Likewise.
522         * elfarm-oabi.c: Likewise.
523         * elfcode.h: Likewise.
524         * elfcore.h: Likewise.
525         * elflink.c: Likewise.
526         * elflink.h: Likewise.
527         * elfxx-ia64.c: Likewise.
528         * elfxx-target.h: Likewise.
529         * libbfd.c: Likewise
530         * linker.c: Likewise.
531         * lynx-core.c: Likewise.
532
533 2001-01-02  Kazu Hirata  <kazu@hxi.com>
534
535         * pc532-mach.c: Fix formatting.
536         * pe-arm.c: Likewise.
537         * pe-i386.c: Likewise.
538         * pe-mips.c: Likewise.
539         * pe-ppc.c: Likewise.
540         * pe-sh.c: Likewise.
541         * pei-mips.c: Likewise.
542         * pei-sh.c: Likewise.
543         * peicode.h: Likewise.
544         * ppcboot.c: Likewise.
545         * ptrace-core.c: Likewise.
546
547 2001-01-01  Kazu Hirata  <kazu@hxi.com>
548
549         * reloc.c: Fix formatting.
550         * riscix.c: Likewise.
551         * rs6000-core.c: Likewise.
552         * xcoff-target.h: Likewise.
553
554 2000-12-29  Hans-Peter Nilsson  <hp@bitrange.com>
555
556         * elfcode.h (elf_object_p): Also restore the bfd mach field on
557         error, by calling bfd_default_set_arch_mach with incoming
558         values.
559
560 2000-12-26  Kazu Hirata  <kazu@hxi.com>
561
562         * vaxnetbsd.c: Fix formatting.
563         * versados.c: Likewise.
564         * vms-gsd.c: Likewise.
565         * vms-hdr.c: Likewise.
566         * vms-misc.c: Likewise.
567
568 2000-12-25  Alexandre Oliva  <aoliva@redhat.com>
569
570         * archive.c (coff_write_armap): Don't write more than symbol_count
571         `archive_member_file_ptr's.
572
573 2000-12-25  Kazu Hirata  <kazu@hxi.com>
574
575         * vms-tir.c: Fix formatting.
576
577 2000-12-23  Kazu Hirata  <kazu@hxi.com>
578
579         * vms.c: Fix formatting.
580         * vms.h: Likewise.
581
582 2000-12-21  Santeri Paavolainen <santtu@ssh.com>
583
584         * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
585
586         * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
587
588         * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
589         arithmetic.
590
591         * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
592
593         * coffcode.h (styp_to_sec_flags): Add empty statement after label.
594
595 2000-12-21  Richard Sandiford  <rsandifo@redhat.com>
596
597         * libbfd.c (bfd_get_bits): Added
598         (bfd_put_bits): Likewise
599         * bfd-in.h: Declared the above.
600         * bfd-in2.h: Regenerated.
601
602 2000-12-20  Kazu Hirata  <kazu@hxi.com>
603
604         * targets.c: Fix formatting.
605         * tekhex.c: Likewise.
606         * trad-core.c: Likewise.
607
608 2000-12-19  Kazu Hirata  <kazu@hxi.com>
609
610         * sco5-core.c: Fix formatting.
611         * section.c: Likewise.
612         * sparclinux.c: Likewise.
613         * sparclynx.c: Likewise.
614         * sparcnetbsd.c: Likewise.
615         * srec.c: Likewise.
616         * stabs.c: Likewise.
617         * stab-syms.c: Likewise.
618         * sunos.c: Likewise.
619         * syms.c: Likewise.
620         * sysdep.h: Likewise.
621
622 2000-12-18  Nick Clifton  <nickc@redhat.com>
623
624         * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
625         defined.
626         * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
627         * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
628
629 2000-12-18  Nick Clifton  <nickc@redhat.com>
630
631         * vms-misc.c (_bfd_vms_get_record): Add default case to
632         file_format switch.
633
634 2000-12-15  Miloslav Trmac <mitr@volny.cz>
635
636         * elfcore.h (elf_core_file_p): Move to the start of the program
637         headers before attempting to read them.
638
639 2000-12-14  Kazu Hirata  <kazu@hxi.com>
640
641         * peigen.c: Fix formatting.
642         * som.c: Likewise.
643         * som.h: Likewise.
644
645 2000-12-13  Kazu Hirata  <kazu@hxi.com>
646
647         * peigen.c: Fix formatting.
648
649 2000-12-12  Jim Wilson  <wilson@redhat.com>
650
651         *  elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
652
653 2000-12-08  Mark Salter  <msalter@redhat.com>
654
655         * binary.c (binary_set_section_contents): Ignore sections
656         with zero size.
657
658 2000-12-12  Kazu Hirata  <kazu@hxi.com>
659
660         * m68klinux.c: Fix formatting.
661         * m68knetbsd.c: Likewise.
662         * mipsbsd.c: Likewise.
663         * netbsd-core.c: Likewise.
664         * netbsd.h: Likewise.
665         * newsos3.c: Likewise.
666         * nlm32-alpha.c: Likewise.
667         * nlm32-i386.c: Likewise.
668         * nlm32-ppc.c: Likewise.
669         * nlm32-sparc.c: Likewise.
670         * nlmcode.h: Likewise.
671         * nlmswap.h: Likewise.
672         * nlm-target.h: Likewise.
673         * ns32knetbsd.c: Likewise.
674
675 2000-12-10  Fred Fish  <fnf@be.com>
676
677         * elflink.h (elf_link_output_extsym): Don't complain about undefined
678         symbols in shared objects if allow_shlib_undefined is true.
679
680 2000-12-12  Nick Clifton  <nickc@redhat.com>
681
682         * cpu-sh.c: Fix formattng.
683         * elf.c: Fix formattng.
684         * elf32-mips.c: Fix formattng.
685         * elf32-sh.c: Fix formattng.
686         * elf64-alpha.c: Fix formattng.
687
688 2000-12-09  Nick Clifton  <nickc@redhat.com>
689
690         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
691         dwarf2_find_line_info as last parameter to invocation of
692         _bfd_dwarf2_find_nearest_line.
693         * elf32-arm.h (elf32_arm_find_nearest_line): Pass
694         dwarf2_find_line_info as last parameter to invocation of
695         _bfd_dwarf2_find_nearest_line.
696
697 2000-12-08  Mark Elbrecht  <snowball3@bigfoot.com>
698
699         * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
700         (BFD_LIBS): ...to here.
701         (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
702         (BFD_LIBS_CFILES): ...to here.
703         * Makefile.in: Regenerate.
704         * configure.in: Remove dwarf.lo from the elf shell variable.
705         * configure: Regenerate.
706         * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
707         * libcoff.h: Regenerate.
708         * coffgen.c (coff_find_nearest_line): Call
709         _bfd_dwarf2_find_nearest_line.
710         * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
711         accordingly.
712         (read_abbrevs): Likewise
713         (decode_line_info): Likewise.
714         (parse_comp_unit): Likewise.
715         (comp_unit_find_nearest_line): Likewise.
716         * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
717         * libbfd.h: Regenerate.
718         * elf.c (_bfd_elf_find_nearest_line): Update call.
719         * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
720         * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
721         * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
722         (sec_to_styp_flags): Use them. Handle DWARF2 sections.
723         (styp_to_sec_flags): Handle DWARF2 sections.
724         * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
725         to _bfd_find_nearest_line.
726         * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
727         call to _bfd_find_nearest_line.
728
729 2000-12-08  Kazu Hirata  <kazu@hxi.com>
730
731         * coffgen.c: Fix formatting.
732         * elf-m10300.c: Likewise.
733         * elf32-i386.c: Likewise.
734         * elf32-i960.c: Likewise.
735         * elf32-m68k.c: Likewise.
736         * elf32-mcore.c: Likewise.
737         * elf32-ppc.c: Likewise.
738         * elf32-sh.c: Likewise.
739         * elf32-sparc.c: Likewise.
740         * elf32-v850.c: Likewise.
741         * elf64-alpha.c: Likewise.
742         * elf64-hppa.c: Likewise.
743         * elf64-mips.c: Likewise.
744         * elf64-sparc.c: Likewise.
745
746 2000-12-07  Kazu Hirata  <kazu@hxi.com>
747
748         * elf32-ppc.c: Fix formatting.
749         * elf64-x86-64.c: Likewise.
750
751 2000-12-06  Ulf Carlsson  <ulfc@engr.sgi.com>
752
753         From  Ralf Baechle  <ralf@gnu.org>
754
755         * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
756         BFDs containing no sections or empty .text, .data or .bss sections
757         to be merged, regardless of their flags.
758
759 2000-12-06  Kazu Hirata  <kazu@hxi.com>
760
761         * elf32-m32r.c: Fix formatting.
762         * elf32-m68hc11.c: Likewise.
763         * elf32-m68hc12.c: Likewise.
764         * elf32-m68k.c: Likewise.
765         * elf32-mcore.c: Likewise.
766         * elf32-pj.c: Likewise.
767         * elf32-ppc.c: Likewise.
768
769 2000-12-05  Kazu Hirata  <kazu@hxi.com>
770
771         * elf32-fr30.c: Fix formatting.
772         * elf32-hppa.c: Likewise.
773         * elf32-i370.c: Likewise.
774         * elf32-i386.c: Likewise.
775         * elf32-i860.c: Likewise.
776         * elf32-i960.c: Likewise.
777
778 2000-12-03  Kazu Hirata  <kazu@hxi.com>
779
780         * elf32-arm.h: Fix formatting.
781         * elf32-avr.c: Likewise.
782         * elf32-cris.c: Likewise.
783         * elf32-d10v.c: Likewise.
784         * elf32-d30v.c: Likewise.
785         * elf-hppa.h: Likewise.
786         * elf-m10200.c: Likewise.
787         * elf-m10300.c: Likewise.
788
789 2000-12-01  Chris Demetriou  <cgd@sibyte.com>
790
791         * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
792         bfd_mach_mips32_4k.  Update FIXME comment.
793         * archures.c (bfd_mach_mips32): New constant.
794         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
795         the latter, renumber it.
796         * bfd-in2.h (bfd_mach_mips32): New constant.
797         (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
798         the latter, renumber it.
799         * cpu-mips.c (I_mips32): New constant.
800         (I_mips4K, I_mips32_4k): Rename the former to the latter.
801         (arch_info_struct): Add bfd_mach_mips32 entry, replace
802         bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
803         * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
804         (elf_mips_mach): Likewise.  Also, replace E_MIPS_MACH_MIPS32
805         with E_MIPS_MACH_MIPS32_4K.
806         (_bfd_mips_elf_final_write_processing): Replace
807         bfd_mach_mips4K with bfd_mach_mips32_4k case, add
808         bfd_mach_mips32 case.
809         (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
810         comparison with support for MIPS32.
811         (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
812         MIPS32.
813
814         * aoutx.h (NAME(aout,machine_type)): Add cases for
815         bfd_mach_mips5 and bfd_mach_mips64.
816         * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
817         * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
818         * cpu_mips.c (I_mips5, I_mips64): New definitions.
819         (arch_info_struct): Add entries for bfd_mach_mips5 and
820         bfd_mach_mips64.
821         * elf32-mips.c (elf_mips_isa, elf_mips_mach,
822         _bfd_mips_elf_print_private_bfd_data): Add cases for
823         E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
824         (_bfd_mips_elf_final_write_processing): Add cases for
825         bfd_mach_mips5 and bfd_mach_mips64.
826
827         * bfd/aoutx.h (NAME(aout,machine_type)): Add a
828         bfd_mach_mips_sb1 case.
829         * bfd/archures.c (bfd_mach_mips_sb1): New constant.
830         * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
831         * bfd/cpu-mips.c (I_sb1): New constant.
832         (arch_info_struct): Add entry for bfd_mach_mips_sb1.
833         * bfd/elf32-mips.c (elf_mips_mach): Add case for
834         E_MIPS_MACH_SB1.
835         (_bfd_mips_elf_final_write_processing): Add case for
836         bfd_mach_mips_sb1.
837
838 2000-12-01  Joel Sherrill <joel@OARcorp.com>
839
840         * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
841         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
842         (sparc*-*-rtems*): Switched from a.out to ELF.
843
844 2000-11-30  Jan Hubicka  <jh@suse.cz>
845
846         * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
847         BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
848         (elf64-x86-64.lo): Add dependencies.
849         * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
850         bfd_mach_x86_64_intel_syntax.
851         * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
852         * config.bfd (x86_64): Add.
853         * configure.in: Add support for bfd_elf64_x86_64_vec.
854         * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
855         (bfd_i386_arch, i8086_ar): Link in.
856         * elf64-x86-64.c: New file.
857         * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
858         * targets.c (bfd_elf64_x86_64_vec): Add.
859         (bfd_target_vect): Add bfd_elf64_x86_64_vec.
860
861 2000-11-30  Kazu Hirata  <kazu@hxi.com>
862
863         * xcofflink.c: Fix formatting.
864
865 2000-11-28  Kazu Hirata  <kazu@hxi.com>
866
867         * aoutx.h: Fix formatting.
868         * bfd-in.h: Likewise.
869         * bfd-in2.h: Likewise.
870         * cache.c: Likewise.
871         * cisco-core.c: Likewise.
872         * coff64-rs6000.c: Likewise.
873         * coffcode.h: Likewise.
874         * coffswap.h: Likewise.
875         * corefile.c: Likewise.
876         * elf32-mips.c: Likewise.
877
878 2000-11-27  Kazu Hirata  <kazu@hxi.com>
879
880         * aout-adobe.c: Fix formatting.
881         * coff64-rs6000.c: Likewise.
882         * coffgen.c: Likewise.
883         * cofflink.c: Likewise.
884
885 2000-11-27  Philip Blundell  <pb@futuretv.com>
886
887         * libcoff-in.h (coff_tdata): Add `strings_written' flag.
888         (obj_coff_strings_written): New accessor macro for above.
889         * libcoff.h: Regenerate.
890         * cofflink.c (_bfd_coff_final_link): Say that we wrote the
891         strings.
892         * coffcode.h (coff_write_object_contents): No need to write out
893         the string table if it's already been done.
894
895 2000-11-22  Philip Blundell  <pb@futuretv.com>
896
897         * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
898         weak undefined symbols.
899
900 2000-11-24  Nick Clifton  <nickc@redhat.com>
901
902         * archures.c (bfd_mach_arm_5TE): Define.
903         (bfd_mach_arm+XScale): Define.
904         * bfd-in2.h: Regenerate.
905
906         * coff-arm.c (coff_arm_reloc_type_lookup): Accept
907         BFD_RELOC_ARM_PCREL_BLX.
908
909         * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
910         XScale machine numbers.
911
912         * config.bfd (xscale-elf): Add target.
913         (xscale-coff): Add target.
914
915         * cpu-arm.c: Add xscale machine name.
916         Add v5t, v5te and XScale machine numbers.
917
918 2000-11-23  Kazu Hirata  <kazu@hxi.com>
919
920         * aix386-core.c: Fix formatting.
921
922 2000-11-22  Jim Wilson  <wilson@redhat.com>
923
924         * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
925         (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
926         * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
927         (ins_imms_scaled): Initialize sign_bit at function entry.
928         (elf64_ia64_operands): Add missing initializers.
929         * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
930         elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
931         elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
932         elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
933         elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
934         parameters.
935         (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
936         and free_extsyms at function entry.
937         (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
938         (elfNN_ia64_create_dynamic_sections): Delete unused local h.
939         (get_got): Delete unused local srel.
940         (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
941         (elfNN_ia64_relocate_section): Delete unused local dynindx.
942
943 2000-11-21  Kazu Hirata  <kazu@hxi.com>
944
945         * coff-a29k.c: Fix formatting.
946         * coff-h8500.c: Likewise.
947         * coff-i960.c: Likewise.
948         * coff-ppc.c: Likewise.
949         * coff-rs6000.c: Likewise.
950         * coff-stgo32.c: Likewise.
951         * coff-tic54x.c: Likewise.
952         * coff-w65.c: Likewise.
953         * cpu-h8500.c: Likewise.
954         * cpu-hppa.c: Likewise.
955         * cpu-ns32k.c: Likewise.
956         * ecoff.c: Likewise.
957         * ecofflink.c: Likewise.
958
959 2000-11-21  Nick Clifton  <nickc@redhat.com>
960
961         * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
962         remove possibility of infinite loop.
963
964 2000-11-20  Kazu Hirata  <kazu@hxi.com>
965
966         * aix386-core.c: Fix formatting.
967         * aout-adobe.c: Likewise.
968         * aout-arm.c: Likewise.
969         * aout-encap.c: Likewise.
970         * aout-ns32k.c: Likewise.
971         * aout-target.h: Likewise.
972         * aout-tic30.c: Likewise.
973         * aoutf1.h: Likewise.
974         * aoutx.h: Likewise.
975         * archive.c: Likewise.
976         * bfd-in.h: Likewise.
977         * bfd-in2.h: Likewise.
978         * bfd.c: Likewise.
979         * bout.c: Likewise.
980
981 2000-11-17  H.J. Lu  <hjl@gnu.org>
982
983         * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
984         pltoff entries for DT_INIT and DT_FINI.
985         (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
986         (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
987         entries.
988
989 2000-11-16  Richard Henderson  <rth@redhat.com>
990
991         * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
992         (allocate_dynrel_entries): Likewise.
993         (elfNN_ia64_relocate_section): Likewise.  Set REL addends correctly.
994         (set_pltoff_entry): Likewise.
995         (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
996         (elfNN_ia64_reloc_type_lookup): Likewise.
997         (elfNN_ia64_install_value): Likewise.
998         (elfNN_ia64_relocate_section): Likewise.
999         * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1000         (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1001
1002 2000-11-16  Kazu Hirata  <kazu@hxi.com>
1003
1004         * cpu-a29k.c: Fix formatting.
1005         * cpu-alpha.c: Likewise.
1006         * cpu-arm.c: Likewise.
1007         * cpu-avr.c: Likewise.
1008         * cpu-d10v.c: Likewise.
1009         * cpu-h8500.c: Likewise.
1010         * cpu-hppa.c: Likewise.
1011         * cpu-i370.c: Likewise.
1012         * cpu-i386.c: Likewise.
1013         * cpu-i960.c: Likewise.
1014         * cpu-ia64-opc.c: Likewise.
1015         * cpu-ia64.c: Likewise.
1016         * cpu-m32r.c: Likewise.
1017         * cpu-m68hc11.c: Likewise.
1018         * cpu-m68hc12.c: Likewise.
1019         * cpu-m68k.c: Likewise.
1020         * cpu-m88k.c: Likewise.
1021         * cpu-mips.c: Likewise.
1022         * cpu-ns32k.c: Likewise.
1023         * cpu-pj.c: Likewise.
1024         * cpu-powerpc.c: Likewise.
1025         * cpu-sh.c: Likewise.
1026         * cpu-sparc.c: Likewise.
1027         * cpu-tic54x.c: Likewise.
1028         * cpu-v850.c: Likewise.
1029         * cpu-vax.c: Likewise.
1030         * cpu-w65.c: Likewise.
1031         * cpu-we32k.c: Likewise.
1032         * cpu-z8k.c: Likewise.
1033         * dwarf1.c: Likewise.
1034         * dwarf2.c: Likewise.
1035
1036 2000-11-15  Kazu Hirata  <kazu@hxi.com>
1037
1038         * coff-arm.c: Fix formatting.
1039         * coff-ppc.c: Likewise.
1040         * coff-rs6000.c: Likewise.
1041         * coff-sh.c: Likewise.
1042         * coff-sparc.c: Likewise.
1043         * coff-tic30.c: Likewise.
1044         * coff-tic54x.c: Likewise.
1045         * coff-tic80.c: Likewise.
1046         * coff-w65.c: Likewise.
1047         * coff-we32k.c: Likewise.
1048         * coff-z8k.c: Likewise.
1049
1050 2000-11-15  Richard Henderson  <rth@redhat.com>
1051
1052         * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1053         section with the same ALLOC|LOAD flags as the source section.
1054
1055 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
1056
1057         * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1058         by STO_ALPHA constants.
1059
1060 2000-11-14  Kazu Hirata  <kazu@hxi.com>
1061
1062         * coff-pmac.c: Fix formatting.
1063         * coff-ppc.c: Likewise.
1064
1065 2000-11-13  H.J. Lu  <hjl@gnu.org>
1066
1067         * elflink.h (elf_link_add_object_symbols): Also add indirect
1068         symbols for common symbols with the default version.
1069
1070 2000-11-09  Philip Blundell  <pb@futuretv.com>
1071
1072         * section.c (STD_SECTION): Set gc_mark flag.
1073
1074 2000-11-11  Kazu Hirata  <kazu@hxi.com>
1075
1076         * coff-i960.c: Likewise.
1077         * coff-m68k.c: Likewise.
1078         * coff-m88k.c: Likewise.
1079         * coff-mcore.c: Likewise.
1080         * coff-mips.c: Likewise.
1081
1082 2000-11-11  Bernd Schmidt  <bernds@cygnus.co.uk>
1083
1084         * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1085
1086 2000-11-10  Kazu Hirata  <kazu@hxi.com>
1087
1088         * coff-h8300.c: Fix formatting.
1089         * coff-h8500.c: Likewise.
1090         * coff-i386.c: Likewise.
1091         * coff-i860.c: Likewise.
1092         * coff-i960.c: Likewise.
1093         * coff-ia64.c: Likewise.
1094
1095 2000-11-09  Kazu Hirata  <kazu@hxi.com>
1096
1097         * archive.c: Fix formatting.
1098         * archures.c: Likewise.
1099
1100 2000-11-07  Richard Henderson  <rth@redhat.com>
1101
1102         * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1103         Set it before bfd_elf64_bfd_final_link call.  Use it after the call.
1104         * section.c (bfd_set_section_contents): Call memcpy if
1105         section->contents set and location not equal to contents plus offset.
1106
1107 2000-11-08  Kazu Hirata  <kazu@hxi.com>
1108
1109         * bfd-in.h: Fix formatting.
1110         * bfd-in2.h: Likewise.
1111         * bfd.c: Likewise.
1112         * binary.c: Likewise.
1113         * bout.c: Likewise.
1114         * coff-a29k.c: Likewise.
1115         * coff-alpha.c: Likewise.
1116         * coff-apollo.c: Likewise.
1117         * coff-aux.c: Likewise.
1118
1119 2000-11-07  Kazu Hirata  <kazu@hxi.com>
1120
1121         * aix386-core.c: Fix formatting.
1122         * aoutf1.h: Likewise.
1123         * aoutx.h: Likewise.
1124         * archures.c: Likewise.
1125         * armnetbsd.c: Likewise.
1126
1127 2000-11-07  Alan Modra  <alan@linuxcare.com.au>
1128
1129         * coff-h8300.c (special): Adjust reloc address.
1130
1131 2000-11-06  Steve Ellcey <sje@cup.hp.com>
1132
1133         * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1134         to differentiate elf32 and elf64 on ia64.
1135         * bfd-in2.h: Regenerate.
1136         * config.bfd: Add target for "ia64*-*-hpux*".
1137         * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1138         * configure: Regenerate.
1139         * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1140         * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1141
1142         * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1143         from elfxx-ia64.c.  Add depenency rules for making elf32-ia64.lo.
1144         * Makefile.in: Regnerate.
1145         * elf64-ia64.c: Deleted.
1146         * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1147
1148 2000-11-06  Kazu Hirata  <kazu@hxi.com>
1149
1150         * aout-adobe.c: Fix formatting.
1151         * aout-arm.c: Likewise.
1152         * aout-cris.c: Likewise.
1153         * aout-encap.c: Likewise.
1154         * aout-ns32k.c: Likewise.
1155         * aout-target.h: Likewise.
1156         * aout-tic30.c: Likewise.
1157
1158 2000-11-05  Philip Blundell  <philb@gnu.org>
1159
1160         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1161         BFDs containing no sections to be merged, regardless of their flags.
1162
1163 2000-11-04  Philip Blundell  <philb@gnu.org>
1164
1165         * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1166         if a relocation for an undefined symbol also results in an
1167         overflow.
1168
1169 2000-11-06  Christopher Faylor <cgf@cygnus.com>
1170
1171         * config.bfd: Add support for Sun Chorus.
1172
1173 2000-11-05  David O'Brien  <obrien@FreeBSD.org>
1174
1175         * configure.in: Recognize alpha-*-freebsd*.
1176         * configure: Regenerate.
1177
1178 2000-11-02  Luciano Gemme <ishitawa@yahoo.com>
1179
1180         * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1181         (Chunk): New global variable set by a parameter in objcopy.c.
1182         (S3Forced): New global variable set by a parameter in
1183         objcopy.c.
1184         (srec_set_section_contents): If S3Forced is true, always generate
1185         S3 records.
1186         (srec_write_section): Use 'Chunk' to limit maximum length of S
1187         records.
1188
1189 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
1190
1191         * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1192         * Makefile.in: Regenerate.
1193         * bfd-in2.h: Regenerate.
1194         * po/bfd.pot: Regenerate.
1195
1196 2000-10-31  Philip Blundell  <philb@gnu.org>
1197
1198         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1199         EF_SOFT_FLOAT if it is defined.
1200
1201 2000-10-27  Philip Blundell  <philb@gnu.org>
1202
1203         * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1204         attempts to mix PIC code with non-PIC, just mark the output as
1205         being position dependent.
1206         (elf32_arm_merge_private_bfd_data): Likewise.  Print an error
1207         message for EF_SOFT_FLOAT mismatches.  Display diagnostics for
1208         all mismatches, not just the first one.
1209
1210 2000-10-25  Chris Demetriou  <cgd@sibyte.com>
1211
1212         * ieee.c (ieee_archive_p): Plug one of many possible
1213         memory leaks in error handling.
1214
1215 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
1216
1217         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1218         elf32_sparc_object_p, elf32_sparc_final_write_processing):
1219         Support v8plusb.
1220         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1221         sparc64_elf_object_p): Support v9b.
1222         * archures.c: Declare v8plusb and v9b machines.
1223         * bfd-in2.h: Ditto.
1224         * cpu-sparc.c: Ditto.
1225
1226 2000-10-16  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
1227
1228         * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1229         of a GOT reloc.
1230
1231         * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1232         (SYMBOL_CALLS_LOCAL): New macro.
1233         (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1234         (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1235         (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1236         (ppc_elf_relocate_section): Use flag variable to determine
1237         whether the relocation refers to a local symbol.
1238         Test whether a PLTREL24 reloc will produce a reloc by looking
1239         to see whether a PLT entry was made.
1240
1241 2000-10-14  Geoffrey Keating  <geoffk@shoggoth.cygnus.com>
1242
1243         * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1244         entries that could serve as a definition for a weak symbol.
1245
1246 2000-10-13  Ulf Carlsson  <ulfc@engr.sgi.com>
1247
1248         From  Ralf Baechle  <ralf@gnu.org>
1249
1250         * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1251         local_p.  Add symbol value only for non-R_MIPS_REL32 relocations
1252         against local symbols.
1253         (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1254
1255 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
1256
1257         * section.c (struct sec): Add kept_section.
1258         (struct bfd_comdat_info): Remove sec, we can use above.
1259         (STD_SECTION): Add initializer.
1260         (bfd_make_section_anyway): Init here too.
1261
1262         * bfd-in2.h: Regenerate.
1263
1264         * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1265         zeroing of `flags'.
1266         (elf_link_input_bfd): Set all asection->symbol->value's here, and
1267         fudge values for discarded link-once section symbols.
1268
1269         * elf64-hppa.c: Include alloca-conf.h
1270
1271 2000-10-11  Alan Modra  <alan@linuxcare.com.au>
1272
1273         * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1274
1275         * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1276
1277 2000-10-10  Alan Modra  <alan@linuxcare.com.au>
1278
1279         * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1280
1281 2000-10-10  Tom Rix <trix@redhat.com>
1282
1283         * section.c (bfd_make_section_anyway): Release newsect ptr when
1284         newsect->symbol fails to alloc.  Use bfd_release instead of free.
1285
1286 2000-10-09  Richard Henderson  <rth@cygnus.com
1287
1288         * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1289         (elf64_ia64_unwind_entry_compare): New.
1290         (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1291
1292 2000-10-07  Alan Modra  <alan@linuxcare.com.au>
1293
1294         * elflink.h (size_dynamic_sections): Don't create various tags if
1295         .dynstr is excluded from the link.  Don't set first dynsym entry
1296         if dynsymcount is zero.
1297         (elf_bfd_final_link): Don't try to swap out dynamic syms if
1298         .dynsym excluded from the link.  Don't try to write any dynamic
1299         sections excluded from the link.
1300
1301         * elf.c (swap_out_syms): Handle global section symbols.
1302
1303 2000-10-05  DJ Delorie  <dj@redhat.com>
1304
1305         * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
1306         * coffcode.h (coff_set_alignment_hook): read extended reloc count
1307         (coff_write_relocs): write extended reloc count
1308         (coff_write_object_contents): account for extended relocs
1309
1310 2000-10-05  Jim Wilson  <wilson@cygnus.com>
1311
1312         * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
1313         field.
1314         * elf.c (_bfd_elf_make_section_from_shdr): Call the
1315         elf_backend_section_flags function.
1316         * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
1317         code.
1318         (elf64_ia64_section_flags): New function containing flag conversion
1319         code.
1320         (elf_backend_section_flags): Define to elf64_ia64_section_flags.
1321         * elfxx-target.h (elf_backend_section_flags): Define.
1322         (elfNN_bed): Initialize elf_backend_section_flags field.
1323
1324 2000-10-02  Alan Modra  <alan@linuxcare.com.au>
1325
1326         * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
1327         _bfd_elf32_gc_record_vtable.  Correct a comment.
1328
1329 2000-10-01  Ulf Carlsson  <ulfc@engr.sgi.com>
1330
1331         From  Ralf Baechle  <ralf@gnu.org>
1332
1333         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
1334         produces binaries with got[1] = 0x80000001 to differenciate them
1335         for the dynamic linker from the broken binaries produced by old
1336         versions.
1337
1338 2000-09-30  Petr Sorfa <petrs@sco.com>
1339
1340         * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
1341         (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
1342         * configure.in: Add check for pxstatus_t and lwpxstatus_t.
1343         * configure: Regenerate.
1344
1345 2000-09-27  Hans-Peter Nilsson  <hp@axis.com>
1346
1347         Define two bfd_targets for absence and presence of leading
1348         underscore on symbols.  Make sure to only link same kind.
1349         * elf32-cris.c (cris_elf_object_p,
1350         cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
1351         cris_elf_merge_private_bfd_data): New.
1352         (elf_backend_object_p, elf_backend_final_write_processing,
1353         bfd_elf32_bfd_print_private_bfd_data,
1354         bfd_elf32_bfd_merge_private_bfd_data): Define.
1355         <Target vector definition>: Include elf32-target.h twice with
1356         different macro settings:
1357         (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
1358         bfd_elf32_us_cris_vec.
1359         (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
1360         (elf_symbol_leading_char): First as 0, then '_'.
1361         (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
1362         * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
1363         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
1364         * configure: Regenerate.
1365         * targets.c: Declare bfd_elf32_us_cris_vec.
1366         * po/bfd.pot: Regenerate.
1367
1368 2000-09-29  Momchil Velikov  <velco@fadata.bg>
1369
1370         * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
1371         R_ARM_THM_PC22 relocations.
1372
1373 2000-09-29  NIIBE Yutaka <gniibe@chroot.org>
1374
1375         * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
1376
1377 2000-09-29  Momchil Velikov <velco@fadata.bg>
1378
1379         * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
1380         is has the SEC_HAS_CONTENTS flag set.
1381
1382 2000-09-28  Vrjan Friberg  <orjanf@axis.com>
1383             Hans-Peter Nilsson  <hp@axis.com>
1384
1385         * aout-cris.c (N_TXTADDR): Define.
1386
1387 2000-09-28  John David Anglin <dave@hiauly1.hia.nrc.ca>
1388
1389         * som.c: Include alloca-conf.h.
1390         * Makefile.am: "make dep-am"
1391         * Makefile.in: Regenerate.
1392
1393 2000-09-27  Alan Modra  <alan@linuxcare.com.au>
1394
1395         * elf32-hppa.c (plt_stub): New.
1396         (PLT_STUB_ENTRY): Define.
1397         (elf32_hppa_link_hash_table): Change multi_subspace to packed
1398         boolean.  Add need_plt_stub, has_12bit_branch and has_17bit_branch.
1399         (elf32_hppa_link_hash_table_create): Init to suit.
1400         (elf32_hppa_check_relocs): Set has_12bit_branch and
1401         has_17bit_branch as appropriate.
1402         (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
1403         non-local functions.
1404         (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
1405         Add space for plt_stub as needed.
1406         (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
1407         functions at plt_stub.
1408         (elf32_hppa_finish_dynamic_sections): Write plt_stub.
1409         (elf32_hppa_create_dynamic_sections): Leave .plt executable.
1410
1411         * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
1412         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.  Use it instead
1413         of fixed size, and if negative, disable handling of input sections
1414         before stub section.  Set up default stub group size depending
1415         on detected branch relocs.
1416         (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
1417         ensure different offsets from sym_value aren't rounded to
1418         different 2k blocks.  Use lrsel and rrsel for other stubs too for
1419         consistency rather than necessity.
1420         (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
1421         (final_link_relocate): Likewise.
1422         (elf32_hppa_relocate_section): Likewise.
1423
1424         * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
1425         (_bfd_elf_hppa_gen_reloc_type): Generate them.
1426         (elf_hppa_final_link_relocate): Handle them.
1427         (elf_hppa_relocate_insn): Likewise.
1428         (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
1429
1430 2000-09-26  Hans-Peter Nilsson  <hp@axis.com>
1431
1432         * elfcode.h (elf_object_p): Preserve and clear abfd section
1433         information.  Restore at error.
1434
1435 2000-09-26  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1436
1437         * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
1438         is empty, make sure that its rva also 0. NT loader dislikes
1439         having otherwise.
1440
1441 2000-09-26  Steve Ellcey <sje@cup.hp.com>
1442
1443         * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
1444         global by default.
1445
1446 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
1447
1448         * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
1449         currently unused RELATIVE_DYNAMIC_RELOCS code.
1450         (hppa_discard_copies): Likewise.
1451         (elf32_hppa_size_stubs): Size `input_list' array correctly.  Correct
1452         comments.  Don't check non-code output sections for stub grouping.
1453
1454 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
1455
1456         * section.c (bfd_get_unique_section_name): Return NULL if
1457         bfd_malloc fails.
1458
1459 2000-09-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1460
1461         * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
1462         instruction sequence to actually work.
1463         (elf_m68k_finish_dynamic_sections): Change the patch-in offset
1464         accordingly.
1465
1466 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
1467
1468         * elf32-sh.c (sh_elf_relocate_section): Use
1469         _bfd_final_link_relocate to apply the relocation against a section
1470         symbol, when doing relocatable links.
1471
1472 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
1473
1474         * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
1475         to id_sec.
1476         (stub_hash_newfunc): Here too.
1477         (hppa_add_stub): And here.
1478         (elf32_hppa_link_hash_table): Remove stub_section_created,
1479         reloc_section_created, first_init_sec and first_fini_sec.  Add
1480         stub_group.
1481         (elf32_hppa_link_hash_table_create): Init to suit.
1482         (hppa_get_stub_entry): Add support for grouping stub sections.
1483         (hppa_add_stub): Likewise.  Remove sec_count param and init/fini
1484         section code.  Index stub vars by section->id.
1485         (elf32_hppa_size_stubs): Likewise.  Remove duplicated function
1486         exit paths.  Zap allocation of above removed vars.  Refine
1487         link-once test.
1488
1489         * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
1490         * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1491         (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
1492         rather than pointer to bfd_link_info.
1493         (hppa_add_stub): Likewise.
1494         (final_link_relocate): Likewise.
1495
1496 2000-09-17  David Huggins-Daines  <dhd@linuxcare.com>
1497
1498         (elf32_hppa_size_stubs): Don't try to build stubs for discarded
1499         link-once sections.
1500
1501 2000-09-16  Alexandre Oliva  <aoliva@redhat.com>
1502
1503         * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
1504         ld/emulparams/shelf.sh.
1505
1506 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1507
1508         * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
1509         * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
1510         * bfd-in2.h: Regenerate.
1511
1512 2000-09-15  Kenneth Block  <Kenneth.Block@compaq.com>
1513
1514         * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
1515         LITUSE relocations incorrectly if -relax is specified on the ld
1516         command line and the displacement field of the load or store
1517         instruction is non-zero. (Patch by paul.winalski@compaq.com)
1518
1519 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
1520
1521         * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
1522         first_fini_sec here.
1523         (elf32_hppa_size_stubs): Instead correctly find the first .init
1524         and .fini section here.
1525
1526 2000-09-15  David Huggins-Daines  <dhd@linuxcare.com>
1527
1528         * elf32-hppa.c (clobber_millicode_symbols): New function.
1529         (elf32_hppa_size_dynamic_sections): Call it.
1530
1531 2000-09-14  Alan Modra  <alan@linuxcare.com.au>
1532
1533         * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
1534         packed.  Add plabel, plt_abs packed booleans.
1535         (hppa_link_hash_newfunc): Init new fields.
1536         (PLABEL_PLT_ENTRY_SIZE): Define.
1537         (hppa_stub_name): Use size_t len vars.
1538         (hppa_add_stub): Likewise.
1539         (elf32_hppa_build_stubs): Likewise.
1540         (hppa_build_one_stub): Kill some compiler warnings.
1541         (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
1542         if dynamic linking.  Munge the local plt offsets into
1543         local_got_refcounts.  Set h->plabel for all global PLABELs.  Use
1544         size_t len vars.  Add assert for plabel addend.
1545         (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
1546         (elf32_hppa_hide_symbol): New function.
1547         (elf_backend_hide_symbol): Define.
1548         (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
1549         with h->plabel set.  Don't make plt entries to have dynamic syms
1550         when they have been forced local.  If plt entry is used by a
1551         plabel, make it PLABEL_PLT_ENTRY_SIZE.
1552         (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
1553         Set up .plt offsets for local syms.
1554         (elf32_hppa_relocate_section): Initialise plt entries for local
1555         syms.  Leave weak undefined plabels zero.  Make global plabel
1556         relocs against function symbol, and leave the addend zero.
1557         Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
1558         (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
1559         non-dynamic syms.  Init extra plt for plabels.  Use *ABS* DIR32
1560         relocs instead of SEGREL32 for dynamic got relocs.
1561         (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
1562         (elf_backend_got_header_size): Adjust.
1563         (elf32_hppa_set_gp): Calculate an "ideal" LTP.
1564
1565         * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
1566         (hppa_type_of_stub): Use it instead of #if 0
1567         (hppa_discard_copies): Use it here too.
1568         (elf32_hppa_size_dynamic_sections): And here.
1569
1570         * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
1571         (elf32_hppa_link_hash_table_create): And here.
1572         (hppa_build_one_stub): And here.  Instead keep track of stub
1573         offset using _raw_size.
1574         (elf32_hppa_size_stubs): Likewise.
1575         (elf32_hppa_build_stubs): Likewise.
1576         (hppa_size_one_stub): Likewise.  Resize reloc section too.
1577
1578         * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
1579         first_fini_sec handling.  Don't search for reloc section or set
1580         hplink->reloc_section_created here.
1581         (elf32_hppa_size_stubs): Instead search for reloc sections, and
1582         set reloc_section_created here.
1583         (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
1584         (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
1585         and DT_FINI.
1586         (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
1587
1588         * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
1589         with `hplink->root.'.
1590         (elf32_hppa_check_relocs): Likewise.
1591         (elf32_hppa_gc_sweep_hook): Likewise.
1592         (elf32_hppa_adjust_dynamic_symbol): Likewise.
1593         (hppa_handle_PIC_calls): Likewise.
1594         (elf32_hppa_size_dynamic_sections): Likewise.
1595         (elf32_hppa_set_gp): Likewise.
1596         (elf32_hppa_relocate_section): Likewise.
1597         (elf32_hppa_finish_dynamic_symbol): Likewise.
1598         (elf32_hppa_finish_dynamic_sections): Likewise.
1599
1600         From  David Huggins-Daines  <dhd@linuxcare.com>
1601         * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
1602         defined weak symbols in shared links.
1603         (final_link_relocate): Calls to defined weak symbols in shared
1604         objects must go via import stubs, as the target might not be known
1605         at link time.
1606
1607 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
1608
1609         * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
1610         R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
1611         R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167.  Replaced
1612         the original entries with EMPTY_HOWTOs, and added new ones to fill
1613         in the gap.
1614         (sh_elf_info_to_howto): Make sure the new gap isn't used.
1615         (sh_elf_relocate_section): Likewise.
1616
1617 2000-09-13  Anders Norlander  <anorland@acc.umu.se>
1618
1619         * cpu-mips.c (arch_info_struct): Add mips:4K
1620         * bfd-in2.h (bfd_mach_mips4K): New define.
1621         * archures.c: Add bfd_mach_mips4K to comment.
1622         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
1623         E_MIPS_ARCH_2 for bfd_mach_mips4K.
1624
1625 2000-09-13  Marco Franzen <marcof@thyron.com>
1626
1627         * som.c (som_write_symbol_strings): Do not used fixed buffers,
1628         use size_t as a counter.
1629         (som_write_space_strings): Similarly.
1630
1631 2000-09-12  Jason Eckhardt  <jle@cygnus.com>
1632
1633         * elf32-i860.c (elf32_i860_relocate_pc26): New function
1634         and prototype.
1635         (elf32_i860_relocate_section): Invoke new function from here.
1636
1637 2000-09-11  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1638
1639         * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
1640         static.
1641
1642 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
1643
1644         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
1645         target section name instead of dumping core when the target symbol is
1646         undefined.
1647
1648 2000-09-09  Kazu Hirata  <kazu@hxi.com>
1649
1650         * riscix.c: Remove DEFUN.
1651
1652 2000-09-08  Nick Clifton  <nickc@redhat.com>
1653
1654         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
1655         initialise flags in output bfd if the input bfd is the default
1656         architecture with the default flags.
1657
1658 2000-09-08  Kazu Hirata  <kazu@hxi.com>
1659
1660         * archive.c: Fix formatting.
1661         * coff-arm.c: Likewise.
1662         * doc/chew.c: Likewise.
1663
1664 2000-09-08  Alan Modra  <alan@linuxcare.com.au>
1665
1666         * section.c (bfd_get_unique_section_name): Put a dot before the
1667         numeric suffix.
1668
1669 2000-09-07  Kazu Hirata  <kazu@hxi.com>
1670
1671         * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
1672         * elf.c: Fix formatting.
1673
1674 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
1675
1676         * config.bfd (sh-*-linux*): Added.
1677         * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
1678         * targets.c: Declare them.
1679         * elf32-sh-lin.c: New file.
1680         * Makefile.am: Compile it.
1681         * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
1682         * configure, Makefile.in: Rebuilt.
1683
1684 2000-09-06  Geoffrey Keating  <geoffk@cygnus.com>
1685
1686         * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
1687         pseduo-section when determining where the TOC ends.
1688
1689         * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
1690         output x_tvndx as it is only two bytes wide.
1691
1692         * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
1693         reloc is 26 or 32 bits wide.
1694
1695         * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
1696         for relocs that don't change anything.  Also look at the full
1697         6 bits of bitsize.
1698
1699 2000-09-06  Philip Blundell  <philb@gnu.org>
1700
1701         * config.bfd (arm*-*-uclinux*): New target.
1702
1703 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
1704
1705         * configure: Rebuilt with new libtool.m4.
1706
1707 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
1708
1709         * section.c (bfd_get_unique_section_name): Avoid c++ reserved
1710         word for variable name.
1711         * bfd-in2.h: Regenerate.
1712
1713 2000-09-05  Nick Clifton  <nickc@redhat.com>
1714
1715         * config.in: Regenerate.
1716         * libbfd.h: Regenerate.
1717         * po/bfd.pot: Regenerate.
1718         * doc/bfdint.texi: Remove CVS date string - it foils compares with
1719         local versions.
1720
1721 2000-09-05  Steven Johnson  <sbjohnson@ozemail.com.au>
1722
1723         * cpu-powerpc.c  (arch_info_struct): Added MPC860 Family entry.
1724
1725 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
1726
1727         Shared library and PIC support.
1728         * elf32-hppa.c (PLT_ENTRY_SIZE): New.
1729         (GOT_ENTRY_SIZE): New.
1730         (ELF_DYNAMIC_INTERPRETER): New.
1731         (STUB_SUFFIX): Define.
1732         (LONG_BRANCH_PIC_IN_SHLIB): Define.
1733         (RELATIVE_DYNAMIC_RELOCS): Define.
1734         (enum elf32_hppa_stub_type): New.
1735         (struct elf32_hppa_stub_hash_entry): Rename offset to
1736         stub_offset.  Add a number of new fields.
1737         (struct elf32_hppa_link_hash_entry): New.
1738         (struct elf32_hppa_link_hash_table): Add numerous fields.  Remove
1739         global_value.
1740         (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
1741         (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
1742         (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc.  Init
1743         new fields.
1744         (hppa_link_hash_newfunc): New function.
1745         (elf32_hppa_link_hash_table_create): Use above function. Init new
1746         fields.
1747         (elf32_hppa_stub_name): Rename to hppa_stub_name.  Pass in reloc
1748         instead of addend, and remove sym_name from args.  Don't use
1749         symbol name for local syms, instead use sym index.
1750         (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
1751         stub type rather than size.  Pass in hash and handle import stub
1752         case.  Also pass in reloc instead of offset so we can calculate
1753         PCREL22F and PCREL12F branches properly.
1754         (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub.  Build
1755         import and export stubs too.
1756         (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub.  Handle
1757         import and export stub sizing.
1758         (elf32_hppa_check_relocs): New function.
1759         (elf32_hppa_adjust_dynamic_symbol): New function.
1760         (hppa_discard_copies): New function.
1761         (elf32_hppa_size_dynamic_sections): New function.
1762         (elf_backend_size_dynamic_sections): Define.
1763         (elf32_hppa_finish_dynamic_symbol): New function.
1764         (elf_backend_finish_dynamic_symbol): Define.
1765         (elf32_hppa_size_stubs): Stash params in link hash table, and move
1766         some local vars into the link hash table too.  For shared links,
1767         trundle over function syms, generating export stubs.  Handle
1768         PCREL22F branches.  Break out stub creation code from here..
1769         (hppa_add_stub): .. to here.  New function.
1770         (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
1771         call the bfd linker.  Use elf_gp to record global pointer.
1772         Calculate a value from sections if $global$ is missing.
1773         (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
1774         (elf32_hppa_gc_mark_hook): New function.
1775         (elf_backend_gc_mark_hook): Define.
1776         (elf32_hppa_gc_sweep_hook): New function.
1777         (elf_backend_gc_sweep_hook): Define.
1778         (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
1779         Add rel to args, and remove howto, input_bfd, offset, addend,
1780         sym_name as we can recalculate these locally.  Handle calls to
1781         dynamic objects, extra PIC relocs, PCREL22F branches.  Change
1782         handling of undefined weak syms.  Check that stubs are in range.
1783         Only look for import stubs on PCREL17F and PCREL22F relocs.  Add
1784         message on hitting a DPREL21L reloc that needs fixing.  Subtract
1785         off PC for PCREL14F.  Break out code that does a stub lookup from
1786         here..
1787         (hppa_get_stub_entry): ..to here.  New function.
1788         (elf32_hppa_relocate_insn): Merge into final_link_relocate.
1789         (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
1790         relocs, etc. etc.
1791         (elf32_hppa_finish_dynamic_sections): New function.
1792         (elf_backend_finish_dynamic_sections): Define.
1793         (elf_backend_final_write_processing) Define.
1794         (hppa_handle_PIC_calls): New function.
1795         (elf32_hppa_build_stubs): Call it.  Pass link_info to
1796         hppa_build_one_stub.
1797         (elf32_hppa_create_dynamic_sections): New function
1798         to create .plt and .got then set .plt flags correctly.
1799         (elf_backend_create_dynamic_sections): Define.
1800         (elf32_hppa_object_p): New function.
1801         (elf_backend_object_p): Define.
1802         (elf32_hppa_elf_get_symbol_type): New function.
1803         (elf_backend_get_symbol_type): Define.
1804         (elf_backend_can_gc_sections): Define.
1805         (elf_backend_want_got_plt): Define.
1806         (elf_backend_plt_alignment): Set to 2.
1807         (elf_backend_plt_readonly): Define.
1808         (elf_backend_want_plt_sym): Define.
1809         (elf_backend_got_header_size): Reserve one entry.
1810
1811         * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
1812         (elf32_hppa_size_stubs): Pass in multi_subspace.
1813         (elf32_hppa_set_gp): Declare.
1814
1815         * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
1816         (bfd_get_unique_section_name): New function.
1817         * bfd_in2.h: Regenerate.
1818
1819         * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
1820         (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
1821         comment.
1822
1823         From  David Huggins-Daines  <dhd@linuxcare.com>
1824         * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
1825         (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
1826         (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
1827         been updated in finish_dynamic_symbol before modifying function
1828         symbol.
1829
1830         * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
1831         eight entries.  Replace NULL with bfd_elf_generic_reloc.  Add
1832         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
1833         (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*.  Add some
1834         comments.  Handle format == 12 for R_HPPA_PCREL_CALL.
1835         (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
1836         (elf_hppa_relocate_insn): Likewise.  Reformat some comments.
1837         (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
1838
1839         From David Huggins-Daines  <dhd@linuxcare.com>
1840         * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
1841         style of local labels as well.
1842
1843 2000-09-03  Philip Blundell  <philb@gnu.org>
1844
1845         * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
1846         references to undefined symbols in debugging sections.
1847
1848 2000-09-02  H.J. Lu  <hjl@gnu.org>
1849
1850         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1851         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
1852         BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
1853         section.
1854
1855 2000-09-02  Jason Eckhardt  <jle@cygnus.com>
1856
1857         * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
1858         (elf32_i860_is_local_label_name): New function and prototype.
1859
1860 2000-09-02  Nick Clifton  <nickc@redhat.com>
1861
1862         * configure.in: Increase version number to 2.10.91.
1863         * configure: Regenerate.
1864         * aclocal.m4: Regenerate.
1865         * config.in: Regenerate.
1866         * po/bfd.pot: Regenerate.
1867
1868 2000-09-02  Daniel Berlin <dberlin@redhat.com>
1869
1870         * elf.c (_bfd_elf_make_section_from_shdr): Add
1871         .gnu.linkobce.wi. to the list of debug section names.
1872
1873 2000-09-02  Nick Clifton  <nickc@redhat.com>
1874
1875         * dwarf2.c (find_debug_info): New function: Locate a section
1876         containing dwarf2 debug information.
1877         (bfd_dwarf2_find_nearest_line): Find all sections containing
1878         debug information and include them in the stash.
1879
1880 2000-09-01  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
1881
1882         * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
1883         R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
1884         (sh_reloc_map): Add new relocs.
1885         (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
1886         sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
1887         sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
1888         sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
1889         functions.
1890         (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
1891         (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1892         elf_sh_plt_entry_be, elf_sh_plt_entry_le,
1893         elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
1894         New array constants.
1895         (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
1896         New variables.
1897         (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1898         elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
1899         elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
1900         elf_sh_plt_reloc_offset): Define.
1901         (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
1902         elf_sh_link_hash_table): New structs.
1903         (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
1904         (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
1905         relocation types.
1906         (elf_backend_create_dynamic_sections,
1907         bfd_elf32_bfd_link_hash_table_create,
1908         elf_backend_adjust_dynamic_symbol,
1909         elf_backend_size_dynamic_sections,
1910         elf_backend_finish_dynamic_symbol,
1911         elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1912         elf_backend_plt_readonly, elf_backend_want_plt_sym,
1913         elf_backend_got_header_size, elf_backend_plt_header_size):
1914         Define.
1915         * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
1916         BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
1917         New relocs.
1918         * bfd-in2.h, libbfd.h: Rebuilt.
1919
1920 2000-09-01  Alan Modra  <alan@linuxcare.com.au>
1921
1922         * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
1923         change.
1924
1925 2000-08-31  J"orn Rennecke <amylaar@cygnus.co.uk>
1926
1927         * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
1928         not initialized, set them to indicate the SH1 instruction set.
1929
1930 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
1931
1932         * acinclude.m4: Include libtool and gettext macros from the
1933         top level.
1934         * aclocal.m4, configure: Rebuilt.
1935
1936 2000-08-29  Michael Snyder  <msnyder@seadog.cygnus.com>
1937
1938         * elf.c: Eliminate references to __sparcv9 macro; replace with
1939         autoconf variables HAVE_PSINFO32_T etc.
1940         * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
1941         HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
1942         * config.in: Ditto.
1943         * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
1944         detect the above typedefs.  (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
1945         * aclocal.m4: Ditto.
1946         * configure: Regenerate.
1947
1948 2000-08-27  Alan Modra  <alan@linuxcare.com.au>
1949
1950         * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
1951         for any shared link, not just shared -Bsymbolic.
1952         (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
1953         any shared link, and pass link info to it.
1954         (elf_i386_size_dynamic_sections): Update comment.
1955         (elf_i386_discard_copies): Modify to discard relocs for symbols
1956         that have been forced local.
1957         (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
1958         that have been forced local.
1959
1960 2000-08-24  Denis Chertykov  <denisc@overta.ru> & Nick Clifton  <nickc@redhat.com>
1961
1962         * elflink.h (elf_link_add_object_symbols): Allow common
1963         symbols to have an alignment of 1 if explicitly requested, and
1964         not overridden by other definitions.
1965
1966 2000-08-22  Doug Kwan <dkwan@transmeta.com>
1967
1968         * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
1969         * coffcode.h (coff_set_flags): Add detection of w65 architecture.
1970
1971 2000-08-22  H.J. Lu  <hjl@gnu.org>
1972
1973         * elf-bfd.h (elf_link_hash_table): Add runpath.
1974
1975         * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
1976         * bfd-in2.h: Rebuilt.
1977
1978         * elf.c (_bfd_elf_link_hash_table_init): Initialize the
1979         "runpath" field to NULL.
1980         (bfd_elf_get_runpath_list): New function.
1981
1982         * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
1983         DT_RUNPATH entries.
1984
1985 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
1986
1987         * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
1988         R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
1989         explicitly.  Improve validation of r_type.
1990
1991 2000-08-21  H.J. Lu  <hjl@gnu.org>
1992
1993         * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
1994         dynamic allocated content space.  Add a comment to remind us that
1995         one day this ought to be fixed.
1996         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1997         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
1998         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1999
2000 2000-08-21  Jason Eckhardt  <jle@cygnus.com>
2001
2002         * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2003         field with the newly relocated value instead of adding it to the
2004         existing immediate field.
2005         (elf32_i860_relocate_splitn): Likewise.
2006         (elf32_i860_relocate_highadj): Likewise.
2007
2008 2000-08-16  Jason Eckhardt  <jle@cygnus.com>
2009
2010         * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2011         was previously just a stub).
2012
2013 2000-08-16  Alexandre Oliva  <aoliva@redhat.com>
2014
2015         * elflink.c (_bfd_elf_create_got_section): Don't abort().
2016         Formatting fixes.
2017         (_bfd_elf_create_dynamic_sections): Likewise.
2018
2019 2000-08-16  Andrew Macleod  <amacleod@cygnus.com>
2020
2021         * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2022         for undefined symbols to be the beginning of the section.
2023
2024         * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2025         four extra entries at the beginning of the .rela.plt section.
2026         (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2027         section to account for the four reserved entries in the .plt section.
2028
2029 2000-08-15  Geoffrey Keating  <geoffk@cygnus.com>
2030
2031         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2032         to the list of NOPs we recognize after a branch-and-link.
2033         Use the ori NOP when one is needed.
2034
2035         * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2036         for large archives.
2037
2038 2000-08-14  Jim Wilson  <wilson@cygnus.com>
2039
2040         * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2041         EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2042         (elf64_ia64_print_private_bfd_data): Likewise.  Also handle
2043         EF_IA_64_ABSOLUTE.
2044
2045 2000-08-11  Alexandre Oliva  <aoliva@redhat.com>
2046
2047         * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2048
2049 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
2050
2051         * elf32-i860.c (elf32_i860_relocate_section): New function.
2052         (i860_final_link_relocate): New function.
2053         (elf32_i860_relocate_splitn): New function.
2054         (elf32_i860_relocate_pc16): New function.
2055         (elf32_i860_relocate_highadj): New function.
2056         (elf32_i860_howto): Minor adjustments to some relocations.
2057         (elf_info_to_howto_rel): Define.
2058         (elf_backend_relocate_section): Define.
2059
2060 2000-08-10  Nick Clifton  <nickc@cygnus.com>
2061
2062         * elf32-arm.h: Fix formatting.
2063
2064 2000-08-10  Bernd Schmidt  <bernds@cygnus.co.uk>
2065
2066         * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2067
2068 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
2069
2070         * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2071
2072 2000-08-07  Kazu Hirata  <kazu@hxi.com>
2073
2074         * ieee.c (ieee_write_debug_part): Rewrite a comment.
2075         * elf64-ia64.c: Fix a typo.
2076
2077 2000-08-05  Jason Eckhardt  <jle@cygnus.com>
2078
2079         * elf32-i860 (elf32_i860_howto_table): New structure.
2080         (lookup_howto): New function.
2081         (elf32_i860_reloc_type_lookup): New function.
2082         (elf32_i860_info_to_howto_rela): New function.
2083         (elf_code_to_howto_index): New structure.
2084         (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2085         (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2086         elf32_i860_reloc_type_lookup.
2087
2088 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
2089
2090         * som.c (struct fixup_format): Constify `format'.
2091         (som_hppa_howto_table): Use SOM_HOWTO macro.
2092         (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2093         (som_bfd_reloc_type_lookup): Likewise.
2094         (compare_subspaces): Remove unused `count1', `count2'.
2095         (som_begin_writing): Remove unused `total_reloc_size'.
2096         (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2097         (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2098         (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2099         (som_find_nearest_line): Decorate unused parameter(s).
2100         (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2101         (som_bfd_link_split_section): Likewise.
2102
2103 2000-08-03  Nick Clifton  <nickc@cygnus.com>
2104
2105         * section.c: Restore backed out code.
2106         * elf.c: Restore backed out code.
2107         (copy_private_bfd_data): Fix bug preventing stipped dynamic
2108         binaries from working.
2109         * bfd-in2.h: Regenerate.
2110
2111 2000-08-03  H.J. Lu  <hjl@gnu.org>
2112
2113         * section.c: Back out the change made by Nick Clifton
2114         <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2115         binaries.
2116         * bfd-in2.h: Likewise.
2117         * elf.c: Likewise.
2118
2119 2000-08-03  Alexandre Oliva  <aoliva@redhat.com>
2120
2121         * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2122
2123 2000-07-31  Jason Eckhardt  <jle@cygnus.com>
2124
2125         * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2126         * bfd-in2.h, libbfd.h: Regenerate.
2127
2128 2000-07-31  Nick Clifton  <nickc@cygnus.com>
2129
2130         * section.c (struct sec): Add new boolean field 'segment_mark'.
2131         (STD_SECTION): Initialise new field to zero.
2132
2133         * bfd-in2.h: Regenerate.
2134
2135         * elf.c (copy_private_bfd_data): Reorganise section to segment
2136         mapping to cope with moved sections requiring new segments,
2137         and overlapping segments.
2138         (SEGMENT_END): New macro: Return the end address of a segment.
2139         (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2140         contains a section by comparing their VMA addresses.
2141         (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2142         contains a section by comparing their LMA addresses.
2143         (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2144         section should be included in a segment.
2145         (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2146         follows another in memory.
2147         (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2148         segments overlap.
2149
2150 2000-07-22  Jason Eckhardt  <jle@cygnus.com>
2151
2152         * cpu-i860.c: Added comments.
2153
2154         * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2155         bfd_elf32_i860_little_vec.
2156         (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2157         (ELF_MAXPAGESIZE): Changed to 4096.
2158
2159         * targets.c (bfd_elf32_i860_little_vec): Declaration of
2160         new target.
2161         (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2162
2163         * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2164         config for little endian elf32 i860.
2165         (targ_defvec): Define for the new config above
2166         as "bfd_elf32_i860_little_vec".
2167         (targ_selvecs): Define for the new config above
2168         as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2169
2170         * configure.in (bfd_elf32_i860_little_vec): Added recognition
2171         of new target vec.
2172
2173         * configure: Regenerated.
2174
2175 2000-07-27  H.J. Lu  <hjl@gnu.org>
2176
2177         * elflink.h (elf_merge_symbol): Take one more argument,
2178         dt_needed, to indicate if the symbol comes from a DT_NEEDED
2179         entry. Don't overide the existing weak definition if dt_needed
2180         is true.
2181         (elf_link_add_object_symbols): Pass dt_needed to
2182         elf_merge_symbol ().
2183
2184 2000-07-27  Nick Clifton  <nickc@cygnus.com>
2185
2186         * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2187         allocated contents.
2188
2189 2000-07-25  Geoffrey Keating  <geoffk@cygnus.com>
2190
2191         * configure.host (*-*-aix*): AIX has 'long long' always.
2192
2193         * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2194         (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2195         (xcoff_write_archive_contents_big): Don't update the offset
2196         of the symbol table, xcoff_write_armap will do it.
2197
2198 2000-07-23  Ulf Carlsson  <ulfc@engr.sgi.com>
2199
2200         * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2201         of dynobj for SGI_COMPAT checks.
2202
2203 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
2204
2205         * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2206         * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2207         * bfd-in2.h: Regenerate.
2208
2209 2000-07-21  Nick Clifton  <nickc@cygnus.com>
2210
2211         * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2212         range symbol indices in relocs and issue an error message.
2213
2214 2000-07-20  H.J. Lu  <hjl@gnu.org>
2215
2216         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2217         info->new_dtags when setting DT_FLAGS_1. It will only be set
2218         by the new linker options. It shouldn't break anything.
2219
2220 2000-07-20  H.J. Lu  <hjl@gnu.org>
2221
2222         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2223         only if info->new_dtags is true.
2224
2225 2000-07-20  H.J. Lu  <hjl@gnu.org>
2226
2227         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2228         DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2229
2230 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
2231
2232         * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2233         (ALL_MACHINES_CFILES): Add cpu-cris.c.
2234         (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2235         (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2236         (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2237         * Makefile.in: Rebuild.
2238         * aclocal.m4: Rebuild.
2239         * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2240         * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2241         (bfd_cris_arch): Declare.
2242         (bfd_archures_list): Add bfd_cris_arch.
2243         * bfd-in2.h: Rebuild.
2244         * config.bfd: (cris-*-*): New target.
2245         * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2246         * configure: Rebuild.
2247         * elf.c (prep_headers): Add bfd_arch_cris.
2248         * libbfd.h: Rebuild.
2249         * libaout.h (enum machine_type): Add M_CRIS.
2250         * reloc.c: Add CRIS relocations.
2251         * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2252         (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2253         * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2254         * po/POTFILES.in, po/bfd.pot: Regenerate.
2255
2256 2000-07-19  H.J. Lu  <hjl@gnu.org>
2257
2258         * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2259         DF_TEXTREL if DT_TEXTREL is set.
2260         * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2261         * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2262         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2263         * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2264         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2265         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2266         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2267         * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2268         * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2269         * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2270
2271         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2272         set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2273         DT_RPATH is set.
2274         Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2275
2276 2000-07-19  H.J. Lu  <hjl@gnu.org>
2277
2278         * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2279         * bfd-in2.h: Rebuild.
2280
2281         * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2282         (elf_dt_soname): New.
2283
2284         * elf.c (bfd_elf_set_dt_needed_soname): New.
2285
2286         * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2287         entry if the shared object loaded by DT_NEEDED is used to
2288         resolve the reference in a regular object.
2289
2290 2000-07-19  H.J. Lu  <hjl@gnu.org>
2291
2292         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2293         DT_DEPAUDIT and DT_AUDIT as strings.
2294
2295 2000-07-19  Nick Clifton  <nickc@cygnus.com>
2296
2297         * format.c: Fix formatting.
2298
2299 2000-07-19  H.J. Lu  <hjl@gnu.org>
2300
2301         * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2302
2303 2000-07-19  H.J. Lu  <hjl@gnu.org>
2304
2305         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
2306         DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
2307         DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
2308         DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
2309         DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
2310         DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
2311         DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2312
2313 2000-07-18  Andrew Cagney  <cagney@b1.cygnus.com>
2314
2315         * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
2316         renamed functions from here...
2317         (assign_section_numbers): Use renamed functions.
2318         (prep_headers): Use renamed functions.
2319
2320         * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
2321         * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
2322         * bfd-in2.h: Regenerate.
2323
2324 2000-07-18  Ulf Carlsson  <ulfc@engr.sgi.com>
2325
2326         * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
2327         parenthesis in if statement.
2328
2329 2000-07-17  Koundinya K  <kk@ddeorg.soft.net>
2330
2331         Enable the support for Traditional MIPS.
2332         * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
2333         return ict_none appropriately for traditional mips targets.
2334         (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
2335         (STUB_MOVE): Conditionalize for traditonal mips.
2336         (STUB_LI16): Likewise.
2337         (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
2338         room for RTPROC header.
2339         (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
2340         the permission for the PT_DYNAMIC as read, write and execute.
2341         (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
2342         for traditonal mips.
2343         (_bfd_mips_elf_create_dynamic_sections): Add the symbol
2344         _DYNAMIC_LINKING for traditonal mips.
2345         (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
2346         in case of traditonal mips.
2347         (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
2348         entry is required. For a function if PLT is not required then set the
2349         corresponding hash table entry to 0.
2350         (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
2351         traditonal mips.
2352         (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
2353         shared object set the value to 0.
2354         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
2355         _DYNAMIC_LINKING for traditonal mips.
2356         (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
2357         for traditonal mips.
2358
2359 2000-07-15  H.J. Lu  <hjl@gnu.org>
2360
2361         * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2362
2363 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
2364
2365         * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
2366         out a structure that is BFD_IN_MEMORY.
2367
2368 2000-07-11  Alan Modra  <alan@linuxcare.com.au>
2369
2370         * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
2371         bfd pointer.  Print section id instead of bfd pointer for local
2372         syms.  Prefix addend with `+' for global syms as well as local.
2373         Correct calculation of name component lengths.
2374         (elf64_hppa_check_relocs): Update call to get_dyn_name.
2375
2376         From David Huggins-Daines  <dhd@linuxcare.com>
2377         * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
2378         * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
2379         (elf64_hppa_modify_segment_map): Likewise.
2380
2381 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2382
2383         * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
2384         addresses to be "naturally" sign extended.  Return -1 if unknown.
2385         * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
2386         * bfd-in2.h: Regenerate.
2387
2388 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2389
2390         * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
2391         and ECOF_SIGNED_64 to list ways to extract an offset.
2392         (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
2393         ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
2394         Update.
2395         * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
2396         * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2397
2398 2000-07-11  Andrew Cagney  <cagney@b1.cygnus.com>
2399
2400         * elfcode.h (elf_object_p): Use bfd_set_start_address and not
2401         bfd_get_start_address.
2402         (elf_swap_ehdr_in): Sign extend e_entry when applicable.
2403         (elf_swap_ehdr_out): Ditto.
2404
2405 2000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>
2406
2407         * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
2408         compatibility with older binutils.
2409
2410 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
2411
2412         * section.c (bfd_make_section_anyway): Start section_id at 0x10.
2413         (STD_SECTION): Avoid negative ids, instead use 0 to 3.
2414
2415         From Ryan Bradetich  <rbradetich@uswest.net>
2416         * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
2417         (parse_line_table): Ditto.
2418         (_bfd_dwarf1_find_nearest_line): Ditto.
2419         * syms.c (cmpindexentry): Remove extra `*' from params.
2420
2421 2000-07-09  Koundinya K  <kk@ddeorg.soft.net>
2422
2423         * elf32-mips.c (sort_dynamic_relocs): New Function.
2424         (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
2425         via qsort to sort the dynamic relocations in increasing r_symndx
2426         value.
2427
2428 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
2429
2430         * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
2431         ATTRIBUTE_UNUSED to unused args.
2432         (get_opd): Likewise.
2433         (get_plt): Likewise.
2434         (get_dlt): Likewise.
2435         (get_stub): Likewise.
2436         (elf64_hppa_adjust_dynamic_symbol): Likewise.
2437         (elf64_hppa_link_output_symbol_hook): Likewise.
2438         (elf64_hppa_check_relocs): Delete unused var.
2439         (elf64_hppa_size_dynamic_sections): Likewise.
2440         (elf64_hppa_finalize_opd): Likewise.
2441         (elf64_hppa_finalize_dynreloc): Likewise.
2442         (elf64_hppa_modify_segment_map): Likewise.
2443         (elf64_hppa_finish_dynamic_sections): Likewise.
2444
2445         * elf-hppa.h (elf_hppa_final_write_processing): Add
2446         ATTRIBUTE_UNUSED to unused args.
2447         (elf_hppa_final_link_relocate): Likewise.
2448         (elf_hppa_record_segment_addrs): Add paretheses.
2449         (elf_hppa_relocate_section): Constify dyn_name.
2450
2451         From  David Huggins-Daines  <dhd@linuxcare.com>
2452         * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
2453         rearrange case statement so that it gets preferred to 32-bit ones.
2454
2455         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
2456         asection->id instead of address of asection structure.
2457         (elf32_hppa_size_stubs): Likewise.
2458
2459         * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
2460         for .init* and .fini*.
2461
2462         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
2463         and addends used in stub names to 32 bits.
2464         (elf32_hppa_size_stubs): Likewise.
2465
2466         * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
2467         twice for R_PARISC_GPREL64.  Use bfd_put_32 for R_PARISC_PCREL32,
2468         not bfd_put_64.  Fix minor comment typo and formatting.
2469
2470         Changes to create multiple linker stubs, positioned immediately
2471         before the section where they are required.
2472         * elf32-hppa.c: Don't include hppa_stubs.h.
2473         (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
2474         (elf32_hppa_stub_hash_table): Delete.
2475         (elf32_hppa_link_hash_entry): Delete.
2476         (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
2477         stub_hash_table, and store the struct here rather than a pointer.
2478         Delete output_symbol_count.  Add offset array.  Change
2479         global_value to a bfd_vma.
2480         (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
2481         (elf32_hppa_stub_hash_traverse): Delete.
2482         (elf32_hppa_name_of_stub): Delete.
2483         (elf32_hppa_link_hash_lookup): Delete.
2484         (elf32_hppa_link_hash_traverse): Delete.
2485         (elf32_hppa_stub_hash_table_init): Delete.
2486         (elf32_hppa_size_of_stub): Pass input section and offset rather
2487         than location and calculate location here.  Don't pass name as all
2488         stubs are now the same size.
2489         (elf32_hppa_stub_hash_newfunc): Init new fields.
2490         (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
2491         too.
2492         (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
2493         comparing against ints.  Rewrite stub handling code.
2494         (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
2495         Case enums to int before comparing against ints.  Remove
2496         bfd_reloc_dangerous case.
2497         (elf32_hppa_build_one_stub): Rewrite.
2498         (elf32_hppa_size_one_stub): New function.
2499         (elf32_hppa_build_stubs): Rewrite.
2500         (elf32_hppa_size_stubs): Pass in linker call-back functions.
2501         Rewrite stub-handling specific code.
2502
2503         * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
2504
2505         * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
2506
2507         * hppa_stubs.h: Delete.
2508         * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
2509         (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
2510         * Makefile.in: Regenerate.
2511
2512         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
2513         e_nlrsel.
2514
2515         * libhppa.h (hppa_field_adjust): Correct e_nsel case.
2516
2517         * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
2518         and section name for bfd_reloc_notsupported error message.
2519         (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
2520         bfd_reloc_notsupported.
2521         (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
2522
2523         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
2524         undefined weak symbols for all relocs.
2525         (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
2526         offsets are relative to one past the delay slot.
2527         (elf32_hppa_size_stubs): Account for reloc addend when calculating
2528         branch destination.  Put addend into stub name too.
2529         (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
2530         adjust by 8 when deciding whether a linker stub is needed.  Put
2531         addend into stub name as for above.
2532
2533         * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
2534         various args and vars.
2535         (elf32_hppa_bfd_final_link_relocate): Here too.
2536         (elf32_hppa_size_stubs): Rename index -> indx.  Use e_indx for
2537         inner block var to avoid shadowing.
2538
2539         * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type):  Make `field' arg
2540         unsigned.
2541         * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
2542         * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
2543         (elf_hppa_fake_sections): Rename local var to avoid shadowing.
2544
2545         * libhppa.h: Change practically all unsigned ints to plain ints.
2546         Remove tests on gcc version.  Instead use ATTRIBUTE_UNUSED for
2547         prototypes.
2548
2549         From Ryan Bradetich  <rbradetich@uswest.net>
2550         * libhppa.h (hppa_opcode_type): New enum to replace #define's.
2551         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
2552         suit above.
2553         From  David Huggins-Daines  <dhd@linuxcare.com>
2554         * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
2555         to the new OP_* ones.
2556
2557         * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
2558         error exit.  Bail out earlier on plabel relocs that we aren't
2559         interested in.  Don't tell elf32_hppa_stub_hash_lookup to copy
2560         string, and then don't free our copy.
2561         (elf32_hppa_build_one_stub): Make insn unsigned int.
2562
2563         * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
2564         available with BL, not BE and BLE.
2565
2566         * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
2567         code for elf arg relocs.
2568         (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
2569         argument with elf_link_hash_entry h.  Handle undefined weak
2570         symbols.  Move $global$ lookup from here...
2571         (elf32_hppa_relocate_section): ...to here.  Return correct error
2572         message for non-handled relocs.
2573         (elf32_hppa_size_of_stub): Correctly test branch range.  Previous
2574         wrong test was -0x3ffff to +0x40000.
2575
2576         * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
2577         R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
2578         Handle them as such.
2579         (elf_hppa_relocate_insn): Fix a typo.
2580
2581         * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
2582         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
2583         assemble_17, assemble_21): Delete.
2584         Supply defines for all 64 possible opcodes.
2585         (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
2586         formats.  Handle COMICLR.
2587         (hppa_rebuild_insn): Delete bfd argument.  Handle formats 10, -11,
2588         -10, -16, 16, 22.
2589
2590         * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
2591         (elf32_hppa_bfd_final_link_relocate): Major rewrite.
2592         (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
2593         to suit.
2594         (elf32_hppa_size_stubs): Don't free stub_name twice.  Read in all
2595         the local syms - did this code get deleted accidentally?  Ignore
2596         undefined and undefweak syms.
2597
2598         * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
2599         block.  Use it instead of elf64_hppa_hash_table (info).
2600         (elf_hppa_final_link_relocate): Use hppa_info instead of
2601         elf64_hppa_hash_table (info).
2602
2603         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
2604         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
2605         (hppa_rebuild_insn): Mask immediate bits here instead.
2606         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2607
2608 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
2609
2610         * section.c (struct sec): Add id field.  Tidy comment formatting.
2611         (bfd_make_section_anyway): Set id.
2612         (STD_SECTION): Init id too.
2613         Change CONST to const throughout.
2614         * archures.c (bfd_arch_info): Tidy comment.
2615         (bfd_arch_list): Change a CONST to const.
2616         * libbfd-in.h: Tidy comments and replace CONST with const.
2617         * elf-bfd.h: Likewise.
2618         * libbfd.h: Regenerate.
2619         * bfd-in2.h: Regenerate.
2620         * libcoff.h: Regenerate.
2621
2622 2000-07-07  DJ Delorie  <dj@redhat.com>
2623
2624         * archive.c (_bfd_write_archive_contents): Add an informative
2625         comment.
2626
2627 2000-07-06  Kazu Hirata  <kazu@hxi.com>
2628
2629         * srec.c: Fix formatting.
2630
2631 2000-06-05  DJ Delorie  <dj@redhat.com>
2632
2633         * MAINTAINERS: new
2634
2635 2000-07-04  Alexandre Oliva  <aoliva@redhat.com>
2636
2637         * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
2638         value of PC-relative offsets.
2639
2640 2000-07-03  Jim Wilson  <wilson@cygnus.com>
2641
2642         * elf64-alpha.c (alpha_elf_size_info): New.
2643         (elf_backend_size_info): Define to alpha_elf_size_info.
2644         * elfcode.h (elf_size_info): Change hash bucket size to 4.
2645
2646 2000-07-03  Ulf Carlsson  <ulfc@engr.sgi.com>
2647
2648         * elf32-mips.c: Include elf32-target.h again for the traditional
2649         MIPS targets.
2650
2651 2000-07-03  Marek Michalkiewicz  <marekm@linux.org.pl>
2652
2653         * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
2654         Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
2655         (avr_info_to_howto_rela): Likewise.
2656         (elf32_avr_gc_mark_hook): Likewise.
2657         (elf32_avr_gc_sweep_hook): Likewise.
2658         (elf32_avr_relocate_section): Likewise.
2659
2660 2000-07-03  Mark Elbrecht  <snowball3@bigfoot.com>
2661
2662         * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
2663         an external symbol for a non-shared, non-relocatable link.
2664
2665 2000-07-03  Nick Clifton  <nickc@redhat.com>
2666
2667         * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
2668         is an external symbol.
2669         (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
2670         external symbol.
2671
2672 2000-07-03  Kazu Hirata  <kazu@hxi.com>
2673
2674         * reloc16.c: Fix formatting.
2675
2676 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
2677
2678         * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
2679         to add a new target for traditional mips i.e
2680         bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
2681         * configure.in: Likewise.
2682         * configure: Rebuild.
2683         * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
2684         bfd_target_vector.
2685         (bfd_elf32_tradlittlemips_vec): Likewise.
2686         * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
2687         to see that elfNN_bed does not get redefined even if the target file
2688         is included twice for a chip. See elf32-mips.c.
2689
2690 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
2691
2692         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
2693         (CLEANFILES): Add DEPA.
2694         * Makefile.in: Regenerate.
2695
2696 2000-06-30  DJ Delorie  <dj@cygnus.com>
2697
2698         * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
2699         can't assume the PE header is at 0x80.
2700
2701 2000-06-29  Mark Elbrecht  <snowball3@bigfoot.com>
2702
2703         * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2704
2705 2000-06-28  Mark Elbrecht  <snowball3@bigfoot.com>
2706
2707         * go32stub.h: Update stub.
2708
2709 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
2710
2711         * archures.c (bfd_mach_avr5): Define.
2712         * bfd-in2.h (bfd_mach_avr5): Define.
2713         * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
2714         bfd_mach_avr5, add bfd_mach_avr4.  Update comments.
2715         (compatible): Update comment.  Add missing test.
2716         * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
2717         for avr2 and avr4.  Simplify 8K wrap code.
2718         (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
2719         (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2720
2721 2000-06-26  Kazu Hirata  <kazu@hxi.com>
2722
2723         * coff-h8300.c: Fix formatting.
2724         * cpu-h8300.c: Likewise.
2725
2726 2000-06-24  Alexandre Oliva  <aoliva@redhat.com>
2727
2728         * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
2729         for local symbols whose names are unknown.
2730
2731 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
2732
2733         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2734         find one.
2735         * Makefile.in: Regenerate.
2736         * doc/Makefile.in: Regenerate.
2737
2738 2000-06-20  H.J. Lu  <hjl@gnu.org>
2739
2740         * Makefile.am: Rebuild dependency.
2741         * Makefile.in: Rebuild.
2742
2743 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2744
2745         * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
2746         (elf_backend_copy_indirect_symbol): Map to the new function.
2747
2748 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
2749
2750         * archive.c (normalize): Correct pointer comparison when checking
2751         for backslashes.
2752         (bfd_bsd_truncate_arname): Likewise.
2753         (bfd_gnu_truncate_arname): Likewise.
2754
2755 2000-06-20  Ulf Carlsson  <ulfc@engr.sgi.com>
2756
2757         * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
2758         sections elf_{text,data}_{section,symbol}.
2759         * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
2760         (_bfd_mips_elf_hide_symbol): New function.
2761         (elf_backend_hide_symbol): Map to the new function.
2762         (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
2763         definitions of mips_elf_{text,data}_{section,symbol}.
2764         (mips_elf_local_relocation_p): Try to find the direct symbol
2765         based on new check_forced argument.
2766         (mips_elf_calculate_relocation): Use new version of
2767         mips_elf_local_relocation_p.
2768         (mips_elf_relocate_section): Likewise.
2769         (_bfd_mips_elf_relocate_section): Likewise.
2770         (mips_elf_sort_hash_table): Only assert that have enough GOT
2771         space.
2772         (mips_elf_got16_entry): Match all 32 bits to the existing GOT
2773         entry if the relocation based on the new external argument.
2774         (mips_elf_create_dynamic_relocation): Assert that we have a
2775         section contents allocated where we can swap out the dynamic
2776         relocations.
2777         (mips_elf_calculate_relocation): Find the real hash-table entry
2778         correctly by using h->root.root.type.  Only create a dynamic
2779         relocation entry if the symbol is defined in a shared library.
2780         Create an external GOT entry for the GOT16 relocation if the
2781         symbol was forced local.
2782         (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
2783         dynamic index if the symbol was forced local.
2784
2785 2000-06-20  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2786
2787         * elf32-mips.c: Fix typos in comments.
2788
2789 2000-06-19  Mark Kettenis  <kettenis@gnu.org>
2790
2791         * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
2792         CORE_VERSION_1.
2793
2794 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
2795
2796         * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
2797         * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
2798         BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
2799         * configure.in (bfd_elf32_m68hc12_vec): Recognize.
2800         (bfd_elf32_m68hc11_vec): Likewise.
2801         * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
2802         Supports 68hc11 & 68hc12  at the same time.
2803         * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
2804         bfd_target_vector.
2805         (bfd_elf32_m68hc11_vec): Likewise.
2806         * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
2807         * archures.c (bfd_m68hc12_arch): Define and register in global list
2808         (bfd_m68hc11_arch): Likewise.
2809         * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
2810         BFD_RELOC_M68HC11_3B): Define.
2811         * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
2812         * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2813
2814 2000-06-18  Ulf Carlsson  <ulfc@engr.sgi.com>
2815
2816         * elf_bfd.h (struct elf_backend_data): Add info argument to
2817         elf_backend_hide_symbol.
2818         (_bfd_elf_link_hash_hide_symbol): Likewise.
2819         * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
2820         * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
2821         * elflink.h (elf_link_add_object_symbols): Likewise.
2822         (elf_link_assign_sym_version): Likewise.
2823
2824 2000-06-18  H.J. Lu  <hjl@gnu.org>
2825
2826         * coff-i386.c (coff_i386_reloc): Don't return in case of
2827         output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
2828         Compensate PE relocations when linking with non-PE object
2829         files to generate a non-PE executable.
2830
2831 2000-06-17  Ulf Carlsson  <ulfc@engr.sgi.com>
2832
2833         * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
2834         GOT entries if we're doing a static link or -Bsymbolic link.
2835
2836 2000-06-15  Ulf Carlsson  <ulfc@engr.sgi.com>
2837
2838         * elflink.h (elf_link_adjust_relocs): Check for and call backend
2839         specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
2840         available.
2841         (elf_link_output_relocs): Likewise.
2842         (elf_reloc_link_order): Likewise.
2843
2844 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
2845
2846         * archures.c (enum bfd_architecture): #define constants for
2847         PowerPc and RS6000 machine numbers.
2848         * bfd-in2.h: Regenerate.
2849         * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
2850         to bfd_arch_powerpc instead of bfd_arch_rs6000.  Refer to PowerPc
2851         and RS6000 machine numbers using #defined constants from
2852         archures.c.
2853         * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
2854         machine numbers using #defined constants from archures.c.  Add
2855         entries for EC603e, 630, A35, RS64II, RS64III, 7400.  Specify
2856         64-bit words in 620 entry.
2857         * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
2858         RSC, and RS2.
2859         (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2860
2861 2000-06-16  Nicholas Duffek  <nsd@cygnus.com>
2862
2863         * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
2864         * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
2865         * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2866
2867 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
2868
2869         * bfd-in.h (bfd_family_coff): Define.
2870         * bfd-in2.h: Regenerate.
2871         * coffgen.c (coff_count_linenumbers, coff_symbol_from,
2872         coff_find_nearest_line): Check COFFness using bfd_family_coff()
2873         instead of bfd_target_coff_flavour.
2874         * cofflink.c (_bfd_coff_final_link): Likewise.
2875         * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
2876         exclude XCOFF files.
2877         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
2878         Likewise.
2879         * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
2880         * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
2881         * xcofflink.c (XCOFF_XVECP): Delete.
2882         (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
2883         bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
2884         bfd_xcoff_record_link_assignment,
2885         bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
2886         check for bfd_target_xcoff_flavour.
2887
2888 2000-06-16  Nicholas Duffek  <nsd@redhat.com>
2889
2890         * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
2891         files on AIX 4.3.
2892         (read_hdr): New function.
2893         (rs6000coff_core_p): Store mstsave or __context64 struct instead
2894         of trying to extract individual registers.  Set abfd->arch_info
2895         to match the architecture that created the core file.
2896         (rs6000coff_get_section_contents): Delete.
2897         * xcoff-target.h (rs6000coff_get_section_contents): Delete.
2898
2899 2000-06-14  H.J. Lu  <hjl@gnu.org>
2900
2901         * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
2902         is NULL.
2903
2904 2000-06-13  H.J. Lu  <hjl@gnu.org>
2905
2906         * configure: Regenerate.
2907
2908 2000-06-13  J"orn Rennecke <amylaar@cygnus.co.uk>
2909
2910         * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
2911         armpei_little_vec.
2912
2913 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
2914
2915         * configure.in (VERSION): Update to show this is the CVS mainline.
2916
2917 2000-06-07  Alan Modra  <alan@linuxcare.com.au>
2918
2919         * elf32-d10v.c: Include elf/d10v.h
2920         (enum reloc_type): Delete.
2921         * elf32-d30v.c: Include elf/d30v.h
2922         (enum reloc_type): Delete.
2923
2924         * Makefile.am: Run "make dep-am" to regenerate dependencies.
2925         * Makefile.in: Regenerate.
2926
2927         * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
2928         (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
2929         move HOWTOs into elf_howto_table.
2930         (R_386_standard, R_386_ext_offset): Define.
2931         (R_386_ext, R_386_vt_offset, R_386_vt): Define.
2932         (elf_i386_reloc_type_lookup): Modify calculation of index into
2933         elf_howto_table since we've removed the padding.
2934         (elf_i386_info_to_howto_rel): Likewise.
2935         (elf_i386_relocate_section): Likewise.
2936
2937 2000-06-06  Michael Snyder  <msnyder@seadog.cygnus.com>
2938
2939         * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2940
2941 2000-06-05  H.J. Lu  <hjl@gnu.org>
2942
2943         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
2944         an error when seeing an undefined symbol with hidden/internal
2945         attribute. It is handled in *_relocate_section ().
2946
2947 2000-06-05  H.J. Lu  <hjl@gnu.org>
2948
2949         * elflink.h (elf_fix_symbol_flags): Follow the link for the
2950         indirect symbol for the ELF_LINK_NON_ELF bit.
2951         (elf_link_output_extsym): Don't output the indirect symbol even
2952         if the ELF_LINK_NON_ELF bit is set.
2953
2954 2000-06-01  J.T. Conklin  <jtc@redback.com>
2955
2956         * config.bfd (i[3456]86-*-netbsdelf*): New target.
2957         (i[3456]86-*-netbsdaout*): New target.
2958         (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
2959         (i[3456]86-*-openbsd*): Likewise.
2960
2961 2000-05-30  Andrew Cagney  <cagney@b1.cygnus.com>
2962
2963         * trad-core.c: From hpux-core.c, include <dirent.h> or
2964         <sys/ndir.h> when possible.
2965
2966 2000-05-31  Nick Clifton  <nickc@cygnus.com>
2967
2968         * opintl.h (_(String)): Explain why dgettext is used instead
2969         of gettext.
2970
2971 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
2972
2973         * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
2974         definitions.  We must not assume they are sorted in the file
2975         according to their index numbers.
2976
2977 2000-05-31  Alan Modra  <alan@linuxcare.com.au>
2978
2979         * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
2980         selector for R_PARISC_PCREL17R.  R_PARISC_DIR17R and
2981         R_PARISC_DIR17F are for absolute branches; Handle them as such.
2982
2983 2000-05-30  Nick Clifton  <nickc@cygnus.com>
2984
2985         * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
2986         80960CA, 80960MC as valid machine names.
2987
2988 2000-05-30  H.J. Lu  <hjl@gnu.org>
2989
2990         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
2991         visibility bits if the symbol is undefined. Correctly handle
2992         weak undefined symbols with hidden and internal attributes.
2993
2994         * elflink.h (elf_link_add_object_symbols): Always turn the
2995         symbol into local if it has the hidden or internal attribute.
2996
2997 2000-05-29  Philip Blundell  <philb@gnu.org>
2998
2999         * ppcboot.c:  Add packed attribute if compiling with GCC.
3000
3001 2000-05-29  Anatoly Vorobey  <mellon@pobox.com>
3002
3003         * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3004
3005 2000-05-26  Michael Snyder  <msnyder@seadog.cygnus.com>
3006
3007         * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3008         elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3009         corefile on a 64-bit (Sparc Solaris) host.  Also clean up
3010         a few old comments.
3011
3012 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
3013
3014         * Makefile.am: Update dependencies with "make dep-am"
3015         * Makefile.in: Regenerate.
3016
3017         * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3018         bindtextdomain): Replace defines with those from intl/libgettext.h
3019         to quieten gcc warnings.
3020
3021 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
3022
3023         * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3024
3025         * archive.c (normalize, bfd_bsd_truncate_arname,
3026         bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3027         file names with backslashes.
3028
3029         * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3030         before opening it.
3031
3032         * sysdep.h: Include filenames.h.
3033
3034 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
3035
3036         * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3037
3038 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
3039
3040         * elf64-sparc.c (sparc64_elf_relax_section): New.
3041         (sparc64_elf_relocate_section): Optimize tail call into branch always
3042         if possible.
3043         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3044         (elf32_sparc_relax_section): New.
3045
3046 2000-05-26  Jakub Jelinek  <jakub@redhat.com>
3047
3048         * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3049         Remove unusued variables.
3050         (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3051         (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3052         previous fix, so that shared libs really don't influence targets
3053         extension mask and memory model.
3054
3055 2000-05-23  H.J. Lu  <hjl@gnu.org>
3056
3057         * elf64-alpha.c (elf64_alpha_relocate_section): Check
3058         h->root.other not h->other.
3059         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3060
3061         * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3062
3063 2000-05-23  H.J. Lu  <hjl@gnu.org>
3064
3065         * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3066         undefined symbol with the non-default visibility attributes.
3067         * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3068         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3069         * elf32-i370.c (i370_elf_relocate_section): Likewise.
3070         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3071         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3072         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3073         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3074         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3075         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3076         * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3077         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3078
3079 2000-05-22  Richard Henderson  <rth@cygnus.com>
3080
3081         * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3082         PCREL22, PCREL64I.  Zero size of special relocs.
3083         (elf64_ia64_reloc_type_lookup): Likewise.
3084         (USE_BRL, oor_brl, oor_ip): New.
3085         (elf64_ia64_relax_section): New.
3086         (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3087         (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3088         (elf64_ia64_relocate_section): Likewise.
3089         (bfd_elf64_bfd_relax_section): New.
3090         * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3091         (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3092         * bfd-in2.h, libbfd.h: Regenerate.
3093
3094 2000-05-22  Nick Clifton  <nickc@cygnus.com>
3095
3096         * configure.in : Add peigen.lo to MIPS PE targets.
3097         * configure: Regenerate.
3098
3099 2000-05-22  Momchil Velikov  <velco@fadata.bg>
3100
3101         * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3102         only if it is known for both input and output bfds. Separate
3103         error message strings as in some languages, it may be necessary
3104         to change more than one place in the string to change between
3105         'big' and 'little'.
3106
3107         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3108         endianess checks, call _bfd_generic_verify_endian_match() instead.
3109
3110         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3111
3112         * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3113
3114         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3115         endianess before checking bfd flavours.
3116
3117 2000-05-22  H.J. Lu  <hjl@gnu.org>
3118
3119         * elflink.h (elf_link_output_extsym): Clear the visibility
3120         field for symbols not defined locally.
3121
3122 2000-05-18  Alan Modra  <alan@linuxcare.com.au>
3123
3124         * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3125         re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3126         (hppa_rebuild_insn): Mask immediate bits here instead.
3127         * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3128
3129 2000-05-18  Momchil Velikov <velco@fadata.bg>
3130
3131         * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3132         relocs for an executable, ensure that they are virtual addresses.
3133
3134 2000-05-18  Jeffrey A Law  (law@cygnus.com)
3135
3136         * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3137
3138 2000-05-17  S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
3139             Rick Gorton             <gorton@scrugs.lkg.dec.com>
3140
3141         * elflink.h: Add emitrelocations support: when enabled, relocation
3142         information and relocation sections are put into final output
3143         executables.  If the emitrelocations flag is set, do the following:
3144         (elf_bfd_final_link): Emit relocation sections.
3145         (elf_link_input_bfd): Compute relocation section contents.
3146         (elf_gc_sections): Don't clean relocation sections.
3147
3148 2000-05-16  Catherine Moore  <clm@cygnus.com>
3149
3150         * som.c (som_decode_symclass):  Recognize weak symbols.
3151
3152 2000-05-16  Szabolcs Szakacsits <szaka@F-Secure.com>
3153
3154         * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3155         read idata section only from dataoff.
3156         (pe_print_edata): Correctly check for valid eat_member.
3157
3158 2000-05-16  J"orn Rennecke <amylaar@cygnus.co.uk>
3159
3160         * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3161
3162 2000-05-14  Philip Blundell  <philb@gnu.org>
3163
3164         * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3165
3166 2000-05-12  Alan Modra  <alan@linuxcare.com.au>
3167
3168         * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3169
3170         * peigen.c (pe_print_idata): Look for .idata section and print
3171         info even if data directory has zero entries.  Read idata section
3172         starting from dataoff, and adjust all data offsets to suit.  Cast
3173         all bfd_vma vars to unsigned long before passing to fprintf.
3174         * peigen.c (pe_print_edata): Similarly, look for .edata section
3175         and print info even if data directory has zero entries.  Cast
3176         all bfd_vma vars to unsigned long before passing to fprintf.
3177
3178         From Szabolcs Szakacsits <szaka@F-Secure.com>
3179         * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3180         directory size which may be bogus.
3181         * peigen.c (pe_print_edata): Similarly.
3182
3183 2000-05-09  Alan Modra  <alan@linuxcare.com.au>
3184
3185         * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3186         section is empty.
3187         (copy_private_bfd_data): Allow for space possibly taken up by elf
3188         headers when calculating segment physical address from lma.
3189
3190 2000-05-08  Alan Modra  <alan@linuxcare.com.au>
3191
3192         * versados.c (versados_scan): Init stringlen and pass_2_done.
3193
3194         * trad-core.c (trad_unix_core_file_p): Return
3195         bfd_error_wrong_format rather than bfd_error_file_truncated.
3196
3197         * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3198         add_data_entry.  DataDirectory virtual address is relative.
3199         (pe_print_idata): Account for relative DataDirectory virtual
3200         addresses.  Don't trash datasize inside POWERPC_LE_PE code.
3201         (pe_print_edata): Similarly.
3202
3203         From Szabolcs Szakacsits <szaka@F-Secure.com>
3204         * peigen.c (dir_names): Add Delay Import Directory.
3205         (pe_print_idata):  Always search for bfd section containing
3206         idata address rather than looking up section name.  Print this
3207         section name rather than .idata.
3208         (pe_print_edata): Similarly.  Also print some fields as %08lx.
3209         (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3210         Win32Version.
3211
3212 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
3213
3214         * xcoff.h: Rename to xcoff-target.h
3215         * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3216         * coff-rs6000.c: Ditto.
3217         * coff64-rs6000.c: Ditto.
3218         * coff-pmac.c: Ditto.
3219         * Makefile.in: Regenerate.
3220
3221 2000-05-05  Clinton Popetz  <cpopetz@cygnus.com>
3222
3223         * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3224         Change U802TOC64MAGIC to U803XTOCMAGIC.
3225
3226 2000-05-04  Michael Snyder  <msnyder@seadog.cygnus.com>
3227
3228         * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3229         * bfd-in.h: Prototype bfd_elf_get_arch_size.
3230         * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3231
3232 2000-05-04  Alan Modra  <alan@linuxcare.com.au>
3233
3234         * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3235
3236 2000-05-03  Martin v. Lvwis  <loewis@informatik.hu-berlin.de>
3237
3238         * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3239         hidden and internal symbols.
3240         (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3241         visibility.
3242         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3243         assign a PLT or GOT entry to symbols with hidden and
3244         internal visibility.
3245
3246 2000-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
3247
3248         * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3249         the .bss section.
3250         * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3251
3252 2000-05-02  H.J. Lu  <hjl@gnu.org>
3253
3254         * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3255         ELFOSABI_SYSV.
3256
3257 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
3258
3259         * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3260         * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo.  Regenerate
3261         dependencies.
3262         * Makefile.in: Regenerate.
3263
3264 2000-05-01  Jim Wilson  <wilson@cygnus.com>
3265
3266         * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3267         (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3268         (BFD64_BACKENDS): Delete coff-ia64.lo.  Add efi-app-ia64.lo.
3269         (BFD64_BACKENDS_CFILES): Delete coff-ia64.c.  Add efi-app-ia64.c.
3270         * Makefile.in: Rebuild.
3271
3272 2000-05-02  Alan Modra  <alan@linuxcare.com.au>
3273
3274         * config.bfd: Re-enable elf32-hppa.  It now compiles, even if it
3275         doesn't work very well.
3276
3277         * elf-hppa.h (elf_hppa_internal_shdr): Define.
3278         (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3279         Set hdr->s_type to 1 if ARCH_SIZE == 32.
3280         (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3281         (elf_hppa_info_to_howto): Likewise.
3282         (elf_hppa_info_to_howto_rel): Likewise.
3283         (elf_hppa_reloc_type_lookup): Likewise.
3284         (elf_hppa_is_local_label_name): Likewise.
3285         (elf_hppa_fake_sections): Likewise.
3286         (elf_hppa_final_write_processing): Likewise.
3287         (elf_hppa_howto_table): Fully initialise all entries.
3288         (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3289         (elf_hppa_info_to_howto): Likewise.
3290         (elf_hppa_info_to_howto_rel): Likewise.
3291         (elf_hppa_reloc_type_lookup): Likewise.
3292         (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3293         elf_hppa_unmark_useless_dynamic_symbols,
3294         elf_hppa_remark_useless_dynamic_symbols,
3295         elf_hppa_record_segment_addrs, elf_hppa_final_link,
3296         elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3297         elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3298         elf32-hppa.c mess is cleaned up.
3299         (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3300         int.  Delete r_field.  In case R_PARISC_PCREL21L, don't set
3301         r_field then call hppa_field_adjust inline func with variable
3302         r_field arg, instead call hppa_field_adjust with fixed arg.
3303         In case R_PARISC_PCREL22F, don't set r_field.
3304         (elf_hppa_relocate_insn): Change args and return type to unsigned
3305         int.  Call re_assemble_* funcs to do the work.
3306
3307         * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3308         sign extending.
3309
3310         * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
3311         extending.
3312         (sign_extend): Mask first before sign extending.
3313         (low_sign_extend): Rewrite without condition expression.
3314         (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
3315         dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
3316         (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3317         assemble_17, assemble_21, sign_unext, low_sign_unext): Return
3318         result as function return value rather than through pointer arg.
3319         Accept unsigned int args, and return unsigned int.
3320         (re_assemble_3): New.  Combines function of dis_assemble_3 with
3321         re-assembly of opcode and immediate.
3322         (re_assemble_12): Likewise.
3323         (re_assemble_16): Likewise.
3324         (re_assemble_17): Likewise.
3325         (re_assemble_21): Likewise.
3326         (re_assemble_22): Likewise.
3327         (hppa_field_adjust): Rewrite and document, paying attention to
3328         size of types and signed/unsigned issues.
3329         (get_opcode): Shift before masking.
3330         (FDLW): Rename to FLDW.
3331         (bfd_hppa_insn2fmt): Change arg to unsigned int.  Delete fmt.
3332         (hppa_rebuild_insn): Change args and return value to unsigned
3333         int.  Make use of re_assemble_*.  Correct case 11.
3334
3335         * dep-in.sed: Handle ../opcodes/.
3336         * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
3337         elf64-hppa.h, hppa_stubs.h, xcoff.h.
3338         (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
3339         Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
3340         elfarm-nabi.lo dependencies outside of auto-dependency area.
3341         Regenerate dependencies.
3342         * Makefile.in: Regenerate.
3343
3344         * configure.in (TRAD_HEADER): Test non-null before
3345         AC_DEFINE_UNQUOTED.
3346         * configure: Regenerate.
3347
3348         * reloc.c: Fix mis-spelling in comment.
3349
3350 2000-05-01  Alan Modra  <alan@linuxcare.com.au>
3351
3352         * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
3353         * vms.c (vms_openr_next_archived_file): Return NULL.
3354
3355 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3356
3357         * coffcode.h Copy changes mistakenly done to libcoff.h in
3358         4/24/2000 patch.
3359
3360 2000-04-29  Andreas Jaeger  <aj@suse.de>
3361
3362         * libbfd-in.h: Correctly check GCC version.
3363         * bfd-in.h: Likewise.
3364         * libhppa.h: Likewise.
3365         * libbfd.h: Regenerate.
3366         * bfd-in2.h: Regenerate.
3367
3368 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3369
3370         * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
3371         coffdu-rs6000.{lo,c}.
3372         (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
3373         on xcoff.h
3374         * Makefile.in: Regenerate.
3375         * xcoff.h: New file.
3376         * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
3377         * coff-rs6000.c: Move all declarations and defines that are
3378         common to the xcoff backends into xcoff.h
3379         * coff64-rs6000.c: Ditto,
3380
3381 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3382
3383         * coff-mips.c (mips_ecoff_backend_data):  Add initialization of
3384         _bfd_coff_force_symnames in strings and
3385         _bfd_coff_debug_string_prefix_length to their default values.
3386         * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
3387
3388 2000-04-28  Clinton Popetz  <cpopetz@cygnus.com>
3389
3390         * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
3391         _bfd_coff_force_symnames in strings and
3392         _bfd_coff_debug_string_prefix_length to their default values.
3393
3394 2000-04-27  Alan Modra  <alan@linuxcare.com.au>
3395
3396         * elf32-m68k.c (elf_m68k_gc_sweep_hook):  Return if dynobj NULL.
3397         Check local_got_refcounts before dereferencing.
3398
3399         * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
3400         before deciding we don't need R_PPC_PLT32 relocation.
3401         (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
3402         dereferencing.
3403
3404         * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
3405
3406         * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
3407         .plt entries.
3408         (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
3409         (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
3410         (elf_i386_relocate_section): Allow for .plt to go missing.
3411         (elf_i386_finish_dynamic_symbol): Use same test to decide if we
3412         can use a relative reloc for got as elf_i386_relocate_section.
3413         (bfd_elf32_bfd_final_link): Define to use gc form of final link.
3414
3415 2000-04-26  Clinton Popetz  <cpopetz@cygnus.com>
3416
3417         * config.bfd: Remove extraneous bfd_powerpc_64_arch.
3418
3419 2000-04-24  Clinton Popetz  <cpopetz@cygnus.com>
3420
3421         * Makefile.am (coff64-rs6000.lo): New rule.
3422         * Makefile.in: Regenerate.
3423         * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
3424         xcoff_is_local_label_name, xcoff_rtype2howto,
3425         xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
3426         xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
3427         xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
3428         (NO_COFF_SYMBOLS): Define.
3429         (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
3430         xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
3431         internally.
3432         (MINUS_ONE): New macro.
3433         (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
3434         relocation.
3435         (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
3436         coff_SWAP_aux_out): Map to the new functions.
3437         * coff64-rs6000.c: New file.
3438         * libcoff.h (bfd_coff_backend_data): Add new fields
3439         _bfd_coff_force_symnames_in_strings and
3440         _bfd_coff_debug_string_prefix_length.
3441         (bfd_coff_force_symnames_in_strings,
3442         bfd_coff_debug_string_prefix_length): New macros for above fields.
3443         * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
3444         Set machine to 620 for XCOFF64.  Use bfd_coff_swap_sym_in instead
3445         of using coff_swap_sym_in directly.
3446         (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
3447         (coff_set_flags) Set magic for XCOFF64.
3448         (coff_compute_section_file_positions): Add symbol name length to
3449         string section length if bfd_coff_debug_string_prefix_length is
3450         true.
3451         (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
3452         (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
3453         using coff_swap_lineno_in directly.
3454         (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
3455         and _bfd_coff_debug_string_prefix_length fields.
3456         * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
3457         symbol names into strings table when
3458         bfd_coff_force_symnames_in_strings is true.
3459         * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
3460         SET_RELOC_VADDR): New macros.
3461         (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
3462         (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
3463         code.
3464         (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
3465         changes within RS6000COFF_C specific code.
3466         (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
3467         MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
3468         * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3469         Extend existing hack on target name.
3470         * xcofflink.c (XCOFF_XVECP): Extend existing hack on
3471         target name.
3472         * coff-tic54x.c (ticof): Keep up to date with new fields
3473         in bfd_coff_backend_data.
3474         * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
3475         targ_selvecs to include rs6000coff64_vec for rs6000.
3476         * configure.in: Add rs6000coff64_vec case.
3477         * cpu-powerpc.c: New bfd_arch_info_type.
3478
3479 2000-04-24  Jeffrey A Law  (law@cygnus.com)
3480
3481         * config.bfd: Only disable elf32-hppa vectors, not all of the
3482         BSD and OSF configuration support.  Provide (disabled) clauses
3483         for PA64 support.
3484         * configure.in: Add clause for PA64 support.
3485         * configure: Rebuilt.
3486
3487         * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
3488         (bfd_elf64_hppa_vec): Declare.
3489
3490         * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
3491         (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
3492         (elf64-hppa.lo): Add dependencies.
3493         * Makefile.in: Rebuilt.
3494
3495         * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
3496
3497 2000-04-24  Jason Eckhardt  <jle@cygnus.com>
3498
3499         * libhppa.h (dis_assemble_16): New function.
3500         (pa_arch): Added pa20w element.
3501
3502 2000-04-24  Ulrich Drepper  <drepper@cygnus.com>
3503
3504         * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
3505         bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
3506         bfd_elf64_slurp_reloc_table.
3507
3508         * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
3509         definitions to get external names.
3510         (elf_write_relocs): Renamed from write_relocs and make global.
3511         (elf_slurp_reloc_table): Make global.
3512         (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
3513
3514         * archive.c (hpux_uid_gid_encode): New function.
3515         (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
3516         defined and the ID is greater than 99999.
3517         (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
3518         special uid/gid fields into 32 bit values.
3519
3520 2000-04-21  Matthew Green  <mrg@cygnus.com>
3521
3522         * config.bfd: Add NetBSD/sparc64 support.
3523
3524 Fri Apr 21 13:20:53 2000  Richard Henderson  <rth@cygnus.com>
3525                           David Mosberger  <davidm@hpl.hp.com>
3526                           Timothy Wall <twall@cygnus.com>
3527                           Jim Wilson  <wilson@cygnus.com>
3528
3529         * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
3530         (ALL_MACHINES_CFILES): Add cpu-ia64.c.
3531         (BFD64_BACKENDS): Add elf64-ia64.lo.
3532         (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
3533         (cpu-ia64.lo, elf64-ia64.lo): New rules.
3534         * Makefile.in: Rebuild.
3535         * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
3536         (bfd_ia64_arch): Declare.
3537         (bfd_archures_list): Add bfd_ia64_arch.
3538         * bfd-in2.h: Rebuild.
3539         * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
3540         * configure: Rebuild.
3541         * configure.host: (ia64-*-linux*): New host.
3542         * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
3543         bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
3544         * elf.c (prep_headers): Add bfd_arch_ia64.
3545         * libbfd.h: Rebuild.
3546         * reloc.c: Add IA-64 relocations.
3547         * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
3548         Declare.
3549         (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
3550         * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
3551
3552 2000-04-21  Richard Henderson  <rth@cygnus.com>
3553
3554         * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
3555         contents when performing a partial link.
3556         (bfd_elf_d30v_reloc_21): Likewise.
3557
3558 2000-04-20  H.J. Lu  <hjl@gnu.org>
3559
3560         * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
3561         patch to symbols defined by a shared object.
3562         * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
3563
3564 2000-04-19  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3565
3566         K&R compiler fixes.
3567         * dwarf2.c (concat_filename): Avoid string literal concatenation.
3568         * ieee.c (ieee_get_symtab): Don't initialise union in struct.
3569
3570 Mon Apr 17 19:14:36 2000  David Mosberger  <davidm@hpl.hp.com>
3571
3572         * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
3573         (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
3574         (coff-ia64.lo): Add dependency.
3575         * Makefile.in: Regenerate.
3576         * coff-ia64.c: New file.
3577         * efi-app-ia32.c: Ditto.
3578         * efi-app-ia64.c: Ditto.
3579         * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
3580         (coff_set_flags): Ditto.
3581         (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
3582         * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
3583         * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
3584         * configure: Regenerate.
3585         * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
3586         (PUT_OPTHDR_IMAGE_BASE): Ditto.
3587         (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3588         (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
3589         (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3590         (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
3591         (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3592         (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
3593         (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3594         (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
3595         (GET_PDATA_ENTRY): Ditto.
3596         * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
3597         data_start.  Use above macros to read fields that are 64 bit wide for
3598         COFF_WITH_PEP64.  Don't truncate entry and text_start to 32 bits.
3599         (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
3600         FileAlignment and SectionAlignment to minimum alignment if they
3601         are zero.
3602         (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
3603         Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
3604         (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
3605         Use above macros to write fields that are 64 bit wide for
3606         COFF_WITH_PEP64.
3607         (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
3608         5*4 otherwise.  This should be right for IA-32 and IA-64, but may
3609         be wrong for platforms.  Use PDATA_ROW_SIZE instead of hardcoded
3610         value of 20 bytes.  Modify printing for COFF_WITH_PEP64 to print
3611         begin address, end address, and unwind info address only.  Use
3612         GET_PDATA_ENTRY() to read .pdata entries.  Use fprintf_vma() to
3613         print addresses.
3614         (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
3615         HIGH3ADJ relocation names.
3616         (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
3617         * targets.c: Declare bfd_efi_app_ia32_vec and
3618         bfd_efi_app_ia64_vec.
3619         (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
3620         bfd_efi_app_ia64_vec.
3621
3622 2000-04-17  Timothy Wall  <twall@cygnus.com>
3623
3624         * bfd-in2.h: Add prototypes for tic54x load page access.
3625         * bfd-in.h: Regenerate.
3626         * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
3627         in customized _set_arch_mach function.
3628         * coffcode.h (coff_set_alignment_hook): Set section load page if
3629         the appropriate macro is defined.
3630         (write_object_contents): Read section load page.
3631
3632 2000-04-13  Alan Modra  <alan@linuxcare.com.au>
3633
3634         * elf32-hppa.h: Update copyright date.
3635
3636         * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
3637         * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
3638
3639         * elf32-d30v.c (MAX32): Don't use LL suffix.
3640         (MIN32): Define in terms of MAX32.
3641         (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
3642
3643         * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
3644         expression.
3645
3646         * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
3647
3648 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
3649
3650         * dep-in.sed: Match space before file name, not after.
3651         * Makefile.am: Regenerate dependencies.
3652         * Makefile.in: Regenerate.
3653
3654         * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
3655         case, allow address wrap-around stupidly removed 2000-03-17.  Sign
3656         extend without an if statement.
3657
3658 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
3659
3660         * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
3661         signed quantites.
3662         * elf32-mips.c (gprel16_with_gp): Likewise.
3663         * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
3664         here using -0x40000, not (int)0xfffc0000.
3665         (elf32_hppa_size_of_stub): Likewise.
3666
3667 2000-04-11  Timothy Wall  <twall@cygnus.com>
3668
3669         * coff-tic54x.c: Now builds with all targets.
3670         * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
3671         * Makefile.in: Regenerate.
3672         * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
3673         unitialized variable.
3674
3675 Fri Apr  7 15:56:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
3676
3677         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
3678         --enable-build-warnings option.
3679         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3680         * Makefile.in, configure: Re-generate.
3681
3682 2000-04-07  Nick Clifton  <nickc@cygnus.com>
3683
3684         * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
3685         BFD_RELOC_THUMB_PCREL_BLX.
3686
3687         * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3688         R_ARM_XPC25 and R_ARM_THM_PC22.
3689
3690         * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
3691         R_ARM_XPC25 and R_ARM_THM_XPC22.
3692         (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
3693         R_ARM_[XPC25|THM_XPC22].
3694
3695         * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
3696         elf/arm-oabi.h to elf/arm.h
3697
3698         * Makefile.am: Fix dependency for elfarm-oabi.c
3699         * Makefile.in: Regenerate.
3700
3701         * bfd-in2.h: Regenerate.
3702         * libbfd.h: Regenerate.
3703
3704 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
3705
3706         * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
3707         and restore it on failure.  Release newly allocated tdata on
3708         failure.
3709
3710 Fri Apr  7 11:33:47 2000  Jim Wilson  <wilson@cygnus.com>
3711
3712         * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
3713         (decode_line_info): Set it.  Report error if unit->line_offset is
3714         equal to or larger than it.
3715
3716 2000-04-07  Timothy Wall  <twall@cygnus.com>
3717
3718         * targets.c: Added vecs for tic54x.
3719         * reloc.c: Added relocs for tic54x.
3720         * libbfd.h: Regenerated.
3721         * configure: Add TI COFF vecs for tic54x.
3722         * configure.in: Ditto.
3723         * config.bfd (targ_cpu): Recognize new tic54x target.
3724         * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
3725         * bfd-in2.h: Add tic54x target and relocations.
3726         * Makefile.am, Makefile.in: Add tic54x target.
3727         * archures.c (bfd_archures_list): Add tic54x target.
3728         * coff-tic54x.c: New.
3729         * cpu-tic54x.c: New.
3730
3731 2000-04-06  Michael Snyder  <msnyder@seadog.cygnus.com>
3732
3733         * elfcore.h (elf_core_file_p): call backend_object_p which
3734         thereby gets an opportunity to update the arch/machine type.
3735
3736 2000-04-06  Timothy Wall  <twall@cygnus.com>
3737
3738         * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
3739         class.  Handle SEC_CLINK and SEC_BLOCK flags.
3740         * section.c: Add SEC_CLINK and SEC_BLOCK flags.
3741         * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
3742
3743 2000-04-06  Nick Clifton  <nickc@cygnus.com>
3744
3745         * elf32-arm.h (elf32_arm_set_private_flags): Only check for
3746         EF_INTERWORK if this is an unknown EABI.
3747         (elf32_arm_merge_private_bfd_data): Check EABI version
3748         numbers.  Only check EF_xxx flags if the EABI version number
3749         is unknown.
3750         (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
3751         if the EABI version number is unknown.
3752         (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
3753         if the EABI version number is unknown.
3754
3755 Wed Apr  5 22:04:20 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
3756
3757         * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
3758         BFD_RELOC_SH_LOOP_END.
3759         * elf32-sh.c (sh_elf_howto_tab): Change special_func to
3760         sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
3761         Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
3762         (sh_elf_reloc_loop): New function.
3763         (sh_elf_reloc): No need to test for always-to-be-ignored relocs
3764         any more.
3765         (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
3766         (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
3767         * bfd-in2.h, libbfd.h: Regenerate.
3768
3769 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
3770
3771         * po/bfd.pot: Regenerate.
3772
3773         * Makefile.am: Remove extraneous mkdep comment.
3774         (MKDEP): Use gcc -MM rather than mkdep.
3775         (DEP): Quote when passing vars to sub-make.  Add warning
3776         message to end.
3777         (DEP1): Rewrite for "gcc -MM".
3778         (CLEANFILES): Add DEP2.
3779         Update dependencies.
3780         * Makefile.in: Regenerate.
3781
3782 2000-04-03  Kevin Buettner  <kevinb@redhat.com>
3783
3784         * configure.in: Added corefile support for AIX 4.3.  In particular,
3785         AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
3786         compiling rs6000-core.c.
3787         * configure: Regenerated.
3788
3789 2000-04-03  H.J. Lu  <hjl@gnu.org>
3790
3791         * cache.c (bfd_open_file): Unlink the output file only if
3792         it has non-zero size.
3793
3794 2000-04-01  Ken Block USG  <block@zk3.dec.com>
3795
3796         * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
3797         relative relocations for non-loaded sections in shared objects.
3798         (elf64_alpha_check_relocs): Similarly.
3799
3800 Mon Apr  3 13:37:15 2000  Hans-Peter Nilsson  <hp@axis.com>
3801
3802         * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
3803         BFD_RELOC_16 to switch for extended relocs.
3804         (MY_swap_ext_reloc_in): New.
3805         (MY_swap_ext_reloc_out): New.
3806         (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
3807         than NAME(aout,swap_ext_reloc_in) for extended relocs.
3808         (NAME(aout,squirt_out_relocs)): Similarly use
3809         MY_swap_ext_reloc_out.
3810         (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
3811
3812 2000-04-03  Kazu Hirata  <kazu@hxi.com>
3813
3814         * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
3815         the R_PCRWORD_B case.
3816
3817 2000-03-31  Thomas de Lellis  <tdel@wrs.com>
3818
3819         * srec.c : Set CHUNK size to 16 bytes to prevent download failures
3820         on some targets.
3821         * ihex.c : Ditto.
3822
3823 Wed Mar 30 15:28:00 2000  Donald Lindsay  <dlindsay@cygnus.com>
3824
3825         * elf32-m32r.c (m32r_elf_generic_reloc): new function.  All
3826         HOWTO references to bfd_elf_generic_reloc, that have
3827         partial_inplace == true, now use the new function.  The function
3828         is based on the recent rewrite of m32r_elf_lo16_reloc(), and
3829         extends its fixes to the R_M32R_{16,24,32} relocs.
3830         The new logic in m32r_elf_lo16_reloc() has been removed, and
3831         it instead calls the new routine to obtain that functionality.
3832
3833 2000-03-27  Alan Modra  <alan@linuxcare.com.au>
3834
3835         * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
3836         elf32_avr_check_relocs, avr_final_link_relocate,
3837         elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
3838         elf32_avr_object_p): Add prototypes.
3839         (elf32_avr_gc_mark_hook): Add default for h->root.type.
3840         (bfd_elf_avr_final_write_processing): Make static.
3841
3842 2000-03-27  Denis Chertykov  <denisc@overta.ru>
3843
3844         * cpu-avr.c: New file.  BFD support routines for AVR architecture.
3845         * archures.c (bfd_architecture): Add AVR architecture.
3846         (bfd_archures_list): Add reference to AVR architecture info.
3847         * elf.c (prep_headers): Handle bfd_arch_avr.
3848         * reloc.c: Add various AVR relocation enums.
3849         * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
3850         list.
3851         * Makefile.am: Add support for AVR elf.
3852         * configure.in: Likewise.
3853         * config.bfd: Likewise.
3854         * Makefile.in: Regenerate.
3855         * configure: This too.
3856         * bfd-in2.h: And this.
3857         * libbfd.h: And this.
3858
3859 2000-03-24  H.J. Lu  <hjl@gnu.org>
3860
3861         * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
3862         (elf64_alpha_find_reloc_at_ofs): Likewise.
3863
3864 2000-03-17  Alan Modra  <alan@linuxcare.com.au>
3865
3866         * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
3867         flag an overflow if the bitfield is outside -2**n to 2**n-1.  The
3868         allowable range used to be -2**(n-1) to 2**n-1.
3869         * reloc.c (_bfd_relocate_contents): Same here.  Also replace
3870         "boolean overflow" with "bfd_reloc_status_type flag".
3871
3872 2000-03-14  Doug Evans  <dje@casey.transmeta.com>
3873
3874         * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
3875
3876 2000-03-14  Kazu Hirata  <kazu@hxi.com>
3877
3878         * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
3879         of shrinks properly, including the last reloc.
3880
3881 2000-03-13  Kazu Hirata  <kazu@hxi.com>
3882
3883         * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
3884         check for R_MOVL2.
3885
3886 2000-03-11  Alan Modra  <alan@linuxcare.com.au>
3887
3888         * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
3889         a format mismatch rather than an "error" from bfd_read such as
3890         bfd_error_file_truncated.
3891
3892 2000-03-10  Geoff Keating  <geoffk@cygnus.com>
3893
3894         * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
3895         sign-extension and big-endian compensation for
3896         R_MIPS_64 even in ld -r.
3897
3898 2000-03-10  Geoffrey Keating  <geoffk@cygnus.com>
3899
3900         * elf32-mips.c (mips_elf_next_relocation): Rename from
3901         mips_elf_next_lo16_relocation, and generalize to look
3902         for any relocation type.
3903         (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
3904         (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
3905         (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
3906         (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
3907         (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
3908         (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
3909         (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
3910         (mips_rtype_to_howto): Likewise.
3911         (mips_elf_calculate_relocation): Handle new relocs.
3912         (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
3913         are paired.  The addend for R_MIPS_GNU_REL16_S2
3914         is shifted right two bits.
3915
3916 2000-03-10  Alan Modra  <alan@linuxcare.com.au>
3917
3918         * reloc.c (bfd_perform_relocation): Undo emacs formatting of
3919         comment, and ensure it doesn't happen again.
3920         (bfd_install_relocation): Same here.
3921         (_bfd_relocate_contents): Don't bother assigning unused signmask
3922         shift result.  Fix typos in comments.
3923         Remove trailing whitespace throughout file.
3924
3925 2000-03-07  Doug Evans  <dje@casey.transmeta.com>
3926
3927         * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
3928         * bfd-in2.h: Rebuild.
3929
3930 2000-03-06  Nick Clifton  <nickc@cygnus.com>
3931
3932         * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
3933         sym_ptr_ptr fields.
3934         (SIZEOF_ILF_SYM_PTR_TABLE): Define.
3935         (SIZEOF_ILF_STRINGS): Redefine.
3936         (pe_ILF_make_a_symbol-reloc): New function.  Creates a symbol
3937         relative reloc, as opposed to a section relative reloc.
3938         (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
3939         not C_LABEL.
3940         Add length of symbol's prefix to string pointer.
3941         Store a pointer to the symbol in the symbol pointer table.
3942         (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
3943         Initialise the symbol pointer table.
3944         Store the hint in the Hint/Name table.
3945         Make the jump reloc be symbol realtive, not section relative.
3946         Create an import symbol for imported code.
3947
3948 2000-03-06  Catherine Moore  <clm@cygnus.com>
3949
3950         * elf.c (swap_out_syms):  Check for null type_ptr.
3951
3952 2000-03-01  Hans-Peter Nilsson  <hp@axis.com>
3953
3954         * aout-target.h (MY(write_object_contents)): Remove unused
3955         and unusable "#if CHOOSE_RELOC_SIZE".
3956         * pc532-mach.c (MY(write_object_contents)): Ditto.
3957         * netbsd.h (MY(write_object_contents)): Ditto.
3958         * hp300hpux.c (MY(write_object_contents)): Ditto.
3959         * freebsd.h (MY(write_object_contents)): Ditto.
3960         * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
3961
3962 2000-02-29  H.J. Lu  <hjl@gnu.org>
3963
3964         * peicode.h (jtab): Make it static.
3965
3966         * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
3967         defined and COFF_IMAGE_WITH_PE is not defined.
3968         (_bfd_sh_align_load_span): Defined as sh_align_load_span if
3969         COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
3970
3971 2000-03-01  Nick Clifton  <nickc@cygnus.com>
3972
3973         * coff-arm.c (bfd_arm_process_before_allocation): Make
3974         'symndx' signed to prevent compile time warning.
3975
3976         * coff-mcore.c: Remove unused prototype for pe_object_p.
3977
3978         * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
3979         functions that are not used when COFF_IMAGE_WITH_PE is
3980         defined.
3981         (struct sh_opcode): Change type of 'flags' field to unsigned
3982         long so that it can hold the USESAS flag.
3983
3984         * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
3985
3986         * elf-m10300.c (mn10300_elf_relax_section): Initialise
3987         'sym_sec'.
3988
3989         * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
3990         parameters.
3991         Remove unusued variables and code.
3992         (elf_backend_add_symbol_hook): Fix prototype.
3993
3994         * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
3995         'srelgot'.
3996
3997         * elf32-mcore.c (mcore_elf_relocate_section): Initialise
3998         'oldinst'.
3999
4000         * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4001         parameters.
4002         Remove unusued variables and code.
4003         (elf_backend_add_symbol_hook): Fix prototype.
4004
4005         * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4006
4007         * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4008         to unused function parameter.
4009
4010         * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4011         parameters.
4012         Use EMPTY_HOWTO to initialise empty howto slots.
4013         Remove unused variables.
4014
4015         * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4016
4017 2000-03-01  H.J. Lu  <hjl@gnu.org>
4018
4019         * aoutx.h (aout_link_input_section_std): Pass "true" to
4020         the undefined_symbol callback.
4021         (aout_link_input_section_ext): Likewise.
4022         * bout.c (get_value): Likewise.
4023         * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4024         * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4025         Likewise.
4026         (alpha_relocate_section): Likewise.
4027         * coff-arm.c (coff_arm_relocate_section): Likewise.
4028         * coff-i960.c (coff_i960_relocate_section): Likewise.
4029         * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4030         * coff-mips.c (mips_relocate_section): Likewise.
4031         * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4032         * coff-sh.c (sh_relocate_section): Likewise.
4033         * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4034         * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4035         * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4036         * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4037         * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4038         * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4039         * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4040         * elf32-i370.c (i370_elf_relocate_section): Likewise.
4041         * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4042         * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4043         * elf32-sh.c (sh_elf_relocate_section): Likewise.
4044         * elf32-v850.c (v850_elf_relocate_section): Likewise.
4045         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4046         * elflink.h (elf_link_output_extsym): Likewise.
4047         * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4048         * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4049         * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4050
4051         * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4052         undefined_symbol callback when building shared library with
4053         -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4054         "true".
4055         * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4056         * elf32-i386.c (elf_i386_relocate_section): Likewise.
4057         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4058         * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4059         (elf32_mips_get_relocated_section_content): Likewise.
4060         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4061         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4062         * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4063         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4064
4065 2000-02-28  Nick Clifton  <nickc@cygnus.com>
4066
4067         * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4068         * Makefile.in: Regenerate.
4069
4070         * configure.in: Add support for mips and sh pe vectors.
4071         * configure: regenerate.
4072
4073         * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4074         targets.
4075
4076         * targets.c: Add mips and sh pe vectors.
4077
4078         * libpei.h (coff_final_link_postscript): Only define if not
4079         already defined.
4080
4081         * coffcode.h: Add support for WinCE magic numbers.
4082
4083         * peigen.c (pe_print_reloc): Update comment and rearrange
4084         appending of newline character.
4085
4086         * peicode.h: Add support for Image Library Format.
4087         (pe_ILF_vars): Structure containing data used by ILF code.
4088         (pe_ILF_make_a_section): New function.  Create a section based
4089         on ILF data.
4090         (pe_ILF_make_a_reloc): New function.  Create a reloc based on
4091         ILF data.
4092         (pe_ILF_make_a_symbol): New function.  Create a symbol based
4093         on ILF data.
4094         (pe_ILF_save_relocs): New function.  Store the relocs created
4095         by pe_ILF_make_a_reloc in a section.
4096         (pe_ILF_build_a_bfd): New function.  Create a BFD describing
4097         an ILF object.
4098         (pe_ILF_object_p): New function.  Return a bfd_target pointer
4099         for an ILF object.
4100         (pe_bfd_object_p): If an ILF object is detected call
4101         pe_ILF_object_p on it.
4102
4103         * coff-arm.c: Add support for WinCE relocs which are different
4104         from normal ARM COFF relocs.
4105         * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4106
4107         * coff-sh.c: Add support for sh-pe target.
4108         * pe-sh.c: New file.  Support code for sh-pe target.
4109         * pei-sh.c: New file.  Support code for sh-pe target.
4110
4111         * pe-mips.c: New file.  Support code for mips-pe target.
4112         * pei-mips.c: New file.  Support code for mips-pe target.
4113
4114 2000-02-27  Jakub Jelinek  <jakub@redhat.com>
4115
4116         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4117         architecture if the object causing the bump is dynamic.
4118         * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4119         and also don't it for memory ordering.
4120         (sparc64_elf_write_relocs): Take src_rela out of the loop.
4121
4122 2000-02-27  Ian Lance Taylor  <ian@zembu.com>
4123
4124         * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4125         calling bfd_get_section_size_before_reloc.
4126         (decode_line_info): Likewise.
4127         (_bfd_dwarf2_find_nearest_line): Likewise.
4128
4129 2000-02-27  Eli Zaretskii  <eliz@is.elta.co.il>
4130
4131         * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4132         name of the libtool directory.
4133         * Makefile.in: Rebuild.
4134
4135 Fri Feb 25 18:39:26 2000  Rodney Brown (RodneyBrown@pmsc.com)
4136
4137         * som.c (SOM_HOWTO): Define.
4138         (som_hppa_howto_table): Use it.
4139
4140 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4141
4142         * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4143
4144         * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4145
4146 2000-02-24  Catherine Moore  <clm@cygnus.com>
4147
4148         * som.c (som_misc_symbol_info):  Add field
4149         secondary_def.
4150         (som_bfd_derive_misc_symbol_info):  Initialize
4151         secondary_def.
4152         (som_build_and_write_symbol_table): Keep track
4153         of secondary_def field.
4154         (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4155         if secondary_def field is set.
4156         (som_bfd_ar_write_symbol_stuff): Initialize
4157         secondary_def.
4158
4159 2000-02-23  Stephane Carrez  <stcarrez@worldnet.fr>
4160
4161         * dwarf2.c (read_address): Read 16-bits addresses.
4162         (parse_comp_unit): Accept addr_size == 2.
4163
4164 2000-02-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4165
4166         * bfd-in.h: Update copyright date.
4167
4168 2000-02-23  Linas Vepstas <linas@linas.org>
4169
4170         * cpu-i370.c: New file.
4171         * elf32-i370.c:  New file.
4172         * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4173         (bfd_i370_arch): New.
4174         (bfd_archures_list): Add bfd_i370_arch.
4175         * elf.c (prep_headers): Add bfd_arch_i370.
4176         * Makefile.am: Add support for IBM 370 elf.
4177         * config.bfd: Likewise.
4178         * configure.in: Likewise.
4179         * libbfd.h (bfd_reloc_code_real_names): Likewise.
4180         * reloc.c (bfd_reloc_code_type): Likewise.
4181         * targets.c: Likewise.
4182
4183         * Makefile.in: Regenerate.
4184         * configure: Regenerate.
4185         * bfd-in2.h: Regenerate.
4186
4187 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
4188
4189         * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4190         invalid relocation types, and change them to R_386_NONE.
4191
4192 2000-02-22  H.J. Lu  <hjl@gnu.org>
4193
4194         * elflink.h (elf_link_add_object_symbols): If a version symbol is
4195         not defined, don't add a second ELF_VER_CHR.
4196
4197         * elflink.h (elf_bfd_final_link): Call output_extsym for global
4198         symbols converted to local symbols even when stripping all
4199         symbols.
4200         (elf_link_output_extsym): Process global symbols converted to
4201         local symbols even if they are being stripped.
4202
4203 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4204
4205         * archures.c (bfd_octets_per_byte): Return unsigned int.
4206         (bfd_arch_mach_octets_per_byte): Ditto.
4207         * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4208         comparison warning.
4209         * section.c (bfd_get_section_size_before_reloc): Quell signed
4210         vs. unsigned comparison warning.
4211         (bfd_get_section_size_after_reloc): Same here.  Fix parentheses too.
4212         * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4213         change.  What was I thinking?
4214         * bfd-in2.h: Regenerate.
4215
4216         * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4217         (elf_gc_sections): Same here.
4218         (elf_gc_common_finalize_got_offsets): And here.
4219
4220 2000-02-21  Ian Lance Taylor  <ian@zembu.com>
4221
4222         ELF HPPA doesn't work at present; remove it until it does.
4223         * config.bfd: Comment out setting targ_defvec to
4224         bfd_elf32_hppa_vec.
4225         * Makefile.am: Rebuild dependencies.
4226         (BFD32_BACKENDS): Remove elf32-hppa.lo.
4227         (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4228         (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4229         * Makefile.in: Rebuild.
4230         * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4231
4232 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
4233
4234         * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4235         is no bfd_free().  Revert bfd_free part of previous change.
4236
4237 2000-02-18  Geoff Keating  <geoffk@cygnus.com>
4238
4239         * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4240         arrays.
4241         (coff_compute_section_file_positions): Use bfd_free to pair
4242         bfd_malloc.
4243         (coff_write_object_contents): Likewise.
4244
4245         * coff-rs6000.c (xcoff_howto_table_16): New variable.
4246         (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4247
4248 2000-02-18  Ulrich Drepper  <drepper@cygnus.com>
4249
4250         * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4251         (xcoff_ar_file_hdr_big): New structure.
4252         (SIZEOF_AR_FILE_HDR_BIG): New macro.
4253         (xcoff_ar_hdr_big): New structure.
4254         (SIZEOF_AR_HDR_BIG): New macro.
4255         (xcoff_big_format_p): New macro.
4256         (xcoff_ardata_big): New macro.
4257         (arch_xhdr_big): New macro.
4258         (xcoff_slurp_armap): Handle large archives.
4259         (xcoff_archive_p): Detect large archives.
4260         (xcoff_read_ar_hdr): Handle large archives.
4261         (xcoff_openr_next_archived_file): Handle large archives.
4262         (xcoff_generic_stat_arch_elt): Handle large archives.
4263         (xcoff_write_armap_old): Rename from xcoff_write_armap.
4264         (xcoff_write_armap_big): New function.
4265         (xcoff_write_armap): New function, dispatch to _old or _big.
4266         (xcoff_write_archive_contents_old): Rename from
4267         xcoff_write_archive_contents.
4268         (xcoff_write_archive_contents_big): New function.
4269         (xcoff_write_archive_contents): New function, dispatch to _old or
4270         _big.
4271
4272 2000-02-18  Richard Henderson  <rth@cygnus.com>
4273
4274         * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4275         and hide_symbol members.
4276         (elf_link_hash_copy_indirect): Remove.
4277         (elf_link_hash_hide_symbol): Remove.
4278         (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4279         and elf_backend_hide_symbol.
4280         (_bfd_elf_link_hash_copy_indirect): Declare.
4281         (_bfd_elf_link_hash_hide_symbol): Declare.
4282         * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4283         (_bfd_elf_link_hash_hide_symbol): Likewise.
4284         (_bfd_elf_link_hash_table_init): Don't init killed members.
4285         * elflink.h (elf_link_add_object_symbols): Use the bed function
4286         pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4287         (elf_link_assign_sym_version): Likewise.
4288         * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4289         (elf_backend_hide_symbol): Likewise.
4290         (elfNN_bed): Update for new members.
4291
4292 2000-02-17  Kevin Buettner  <kevinb@redhat.com>
4293
4294         * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4295         STACK_END_ADDR): Define for new core file format.
4296         (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4297         for handling the vagaries of the various core file structures used
4298         by AIX over the years.
4299         (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4300         Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4301         core_dumpx structure.
4302
4303 Thu Feb 17 00:04:48 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
4304
4305         * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4306         (bfd_mach_sh3_dsp): Likewise.
4307         (bfd_mach_sh4): Reinstate.
4308         (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4309         * bfd-in2.h: Regenerate.
4310         * coff-sh.c (struct sh_opcode): flags is no longer short.
4311         (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
4312         (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
4313         (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
4314         (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
4315         (sh_opcodes): No longer const.
4316         (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
4317         (sh_insn_uses_reg): Check for USESAS and USESR8.
4318         (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
4319         (_bfd_sh_align_load_span): Return early for SH4.
4320         Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
4321         Take into account that field b of a parallel processing insn
4322         could be mistaken for a separate insn.
4323         * cpu-sh.c (arch_info_struct): New array elements for
4324         sh2, sh-dsp and sh3-dsp.
4325         Reinstate element for sh4.
4326         (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
4327         (SH4_NEXT): Reinstate.
4328         (SH3_NEXT, SH3E_NEXT): Adjust.
4329         * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
4330         * elf32-sh.c (sh_elf_set_private_flags): New function.
4331         (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
4332         (sh_elf_merge_private_data): New function.
4333         (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
4334         (bfd_elf32_bfd_copy_private_bfd_data): Define.
4335         (bfd_elf32_bfd_merge_private_bfd_data): Change to
4336         sh_elf_merge_private_data.
4337
4338 2000-02-13  Richard Henderson  <rth@cygnus.com>
4339
4340         * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
4341         hide_symbol members.
4342         (elf_link_hash_copy_indirect): New.
4343         (elf_link_hash_hide_symbol): New.
4344         * elflink.h (elf_link_add_object_symbols): Break out copy from
4345         indirect new new symbol to elf.c.
4346         (elf_link_assign_sym_version): Break out privatization of
4347         non-exported symbol to elf.c.
4348         * elf.c (_bfd_elf_link_hash_copy_indirect): New.
4349         (_bfd_elf_link_hash_hide_symbol): New.
4350         (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
4351
4352 2000-02-13  Ian Lance Taylor  <ian@zembu.com>
4353
4354         * section.c (_bfd_strip_section_from_output): Add info parameter.
4355         If it passed as non-NULL, use it to check whether any input BFD
4356         has an input section which uses this output section.  Change all
4357         callers.
4358         * bfd-in2.h: Rebuild.
4359
4360         * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
4361         bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
4362         1999-11-29.
4363         * bfd-in2.h: Rebuild.
4364
4365 2000-02-10  Timothy Wall  <twall@cygnus.com>
4366
4367         * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
4368         allow final modifications of swapped-in symbol.
4369         (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
4370         * coffcode.h (coff_write_relocs): Use macro
4371         SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
4372         symbol index should be set to -1.
4373
4374 Thu Feb 10 20:07:50 GMT 2000  Toshiyasu Morita (toshi.morita@sega.com)
4375
4376         * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
4377         USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
4378         * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
4379         * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
4380         sh_insns_uses_or_sets_freg): New functions.
4381         * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
4382         * (sh_insns_conflict): Use new functions and new macros to
4383         detect conflicts when two instructions both set same integer registers,
4384         both set same fp register, and both set special register.
4385
4386 2000-02-09  Timothy Wall  <twall@cygnus.com>
4387
4388         * coffgen.c (coff_real_object_p): Set arch/mach info prior to
4389         swapping in sections, so that the swapping routines have access to
4390         the arch/mach info.
4391
4392 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
4393
4394         * coff-go32.c: Update comment. Update copyright.
4395
4396 2000-01-27  Thomas de Lellis  <tdel@windriver.com>
4397
4398         * syms.c (bfd_decode_symclass)
4399         Two new class characters were added - 'V' and 'v'.  The
4400         meaning of 'W' is now restricted to just weak non-object
4401         symbols.  This allows differentiation between, for example,
4402         weak functions vs weak objects.  nm for example now dumps:
4403         'W' = weak global
4404         'w' = weak unresolved
4405         'V' = weak global object
4406         'v' = weak unresolved object
4407
4408         (bfd_is_undefined_symclass): New function.  Return true if the
4409         given symbol class represents and undefined/unresolved symbol.
4410
4411         (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
4412         unresolved symbols.
4413
4414         * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
4415
4416         * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
4417         STT_ARM_16BIT flag set, but it is not attached to a data object
4418         return STT_ARM_16BIT so that it will be treated as code by the
4419         disassembler.
4420
4421 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4422
4423         * coff-i386.c (i3coff_object_p): Remove prototype.
4424         Update copyright.
4425
4426         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
4427         to name.  Update copyright.
4428
4429         * trad-core.c (trad_unix_core_file_p): Cast core_regsec
4430         assignment to avoid warning.  Update copyright.
4431
4432 2000-01-24  Robert Lipe  (robertl@sco.com)
4433
4434         * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
4435         instead of using GNU C extension.
4436
4437 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4438
4439         * libbfd.c (bfd_read): Do not attempt to get a negativly sized
4440         amount from a bfd_in_memory structure.
4441         (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
4442         structure.
4443
4444 2000-01-14  Nick Clifton  <nickc@cygnus.com>
4445
4446         * linker.c (default_indirect_link_order): oops - fix incorrectly
4447         applied patch from Tim Wall.
4448
4449 2000-01-13  Timothy Wall (twall@tiac.net>
4450
4451         * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
4452         = scnhsz, filhsz, relsz, aoutsz, etc)
4453
4454         * coffswap.h: Ditto.
4455
4456 2000-01-13  Nick Clifton  <nickc@cygnus.com>
4457
4458         * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
4459         interwork thumb to arm stub.
4460
4461 2000-01-13  Timothy Wall (twall@tiac.net>
4462
4463         * archures.c (bfd_octets_per_byte): New function: Return
4464         target byte size.
4465         (bfd_arch_mach_octets_per_byte): New function: Return target
4466         byte size.
4467
4468         * section.c: Distinguish between octets and bytes for usage of
4469         _cooked_size,  _raw_size, and output_offset.  Clarify
4470         description of bfd_set_section_contents.
4471
4472         * bfd-in2.h: Regenerate.
4473
4474         * coffgen.c: Indicate that the offset parameter is in bytes, not
4475         octets.
4476
4477         * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
4478         where appropriate to get the octet offset when calling
4479         bfd_set_section_contents.
4480         (bfd_coff_reloc_link_order): Ditto.
4481
4482         * linker.c (bfd_generic_reloc_link_order): Ditto.
4483         (_bfd_default_link_order): Ditto.
4484
4485         * reloc.c (bfd_perform_relocation):  Distinguish between octets
4486         and bytes.  Use octets when indexing into octet data; use bytes
4487         when calculating target addresses.
4488         (bfd_install_relocation): Ditto.
4489
4490         * srec.c (srec_write_section): Ditto.
4491
4492 2000-01-13  Nick Clifton  <nickc@cygnus.com>
4493
4494         * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
4495         3 to 2.  This allows 4 byte sized sections, which is necessary for
4496         dlltool to build functioning DLLs.
4497
4498 2000-01-10  Philip Blundell  <pb@futuretv.com>
4499
4500         * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
4501         (arm*-*-conix*): New target.
4502
4503 2000-01-10  Egor Duda  <deo@logos-m.ru>
4504
4505         * config.bfd: Include elf32_i386 vector to target list for cygwin
4506         and mingw.
4507
4508         * config.in: Undefine HAVE_WIN32_PSTATUS_T.
4509         * configure.in: Test for structure win32_pstatus_t in
4510         <sys/procfs.h>
4511         * configure: Regenerate.
4512
4513         * elf.c (elfcore_grok_win32pstatus): New function: process
4514         win32_pstatus_t notes in elf core file.
4515         (elfcore_grok_note): Detect win32_pstatus notes.
4516
4517 2000-01-03  Martin v. Loewis  <loewis@informatik.hu-berlin.de>
4518
4519         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
4520         visibility.
4521         * elflink.h (elf_link_add_object_symbols): Combine visibilities.
4522         * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
4523
4524 For older changes see ChangeLog-9899
4525 \f
4526 Local Variables:
4527 mode: change-log
4528 left-margin: 8
4529 fill-column: 74
4530 version-control: never
4531 End: