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