(_bfd_elf_slurp_version_tables): Correct reading of version
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
70d72e0e
AM
12000-05-31 Alan Modra <alan@linuxcare.com.au>
2
3 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
4 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
5 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6
96f6d4c4
NC
72000-05-30 Nick Clifton <nickc@cygnus.com>
8
9 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
10 80960CA, 80960MC as valid machine names.
11
38048eb9
L
122000-05-30 H.J. Lu <hjl@gnu.org>
13
14 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
15 visibility bits if the symbol is undefined. Correctly handle
16 weak undefined symbols with hidden and internal attributes.
17
18 * elflink.h (elf_link_add_object_symbols): Always turn the
19 symbol into local if it has the hidden or internal attribute.
20
8c763017
PB
212000-05-29 Philip Blundell <philb@gnu.org>
22
23 * ppcboot.c: Add packed attribute if compiling with GCC.
24
1ae00f9d
AM
252000-05-29 Anatoly Vorobey <mellon@pobox.com>
26
27 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
28
5af11cab
AM
292000-05-26 Alan Modra <alan@linuxcare.com.au>
30
2114f57b
AM
31 * Makefile.am: Update dependencies with "make dep-am"
32 * Makefile.in: Regenerate.
33
5af11cab
AM
34 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
35 bindtextdomain): Replace defines with those from intl/libgettext.h
36 to quieten gcc warnings.
37
382000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
39
40 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
41
42 * archive.c (normalize, bfd_bsd_truncate_arname,
43 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
44 file names with backslashes.
45
46 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
47 before opening it.
48
49 * sysdep.h: Include filenames.h.
50
b6cdd0fd
AM
512000-05-26 Alan Modra <alan@linuxcare.com.au>
52
53 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
54
f7775d95
JJ
552000-05-26 Jakub Jelinek <jakub@redhat.com>
56
57 * elf64-sparc.c (sparc64_elf_relax_section): New.
58 (sparc64_elf_relocate_section): Optimize tail call into branch always
59 if possible.
60 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
61 (elf32_sparc_relax_section): New.
62
6c08d697
JJ
632000-05-26 Jakub Jelinek <jakub@redhat.com>
64
65 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
66 Remove unusued variables.
67 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
68 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
69 previous fix, so that shared libs really don't influence targets
70 extension mask and memory model.
71
edb72b3b
L
722000-05-23 H.J. Lu <hjl@gnu.org>
73
74 * elf64-alpha.c (elf64_alpha_relocate_section): Check
75 h->root.other not h->other.
ba09750c
L
76 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
77
78 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
edb72b3b 79
3a27a730
L
802000-05-23 H.J. Lu <hjl@gnu.org>
81
82 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
83 undefined symbol with the non-default visibility attributes.
84 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
85 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
86 * elf32-i370.c (i370_elf_relocate_section): Likewise.
87 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
88 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
89 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
90 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
91 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
92 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
93 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
94 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
95
748abff6
RH
962000-05-22 Richard Henderson <rth@cygnus.com>
97
98 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
99 PCREL22, PCREL64I. Zero size of special relocs.
100 (elf64_ia64_reloc_type_lookup): Likewise.
101 (USE_BRL, oor_brl, oor_ip): New.
102 (elf64_ia64_relax_section): New.
103 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
104 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
105 (elf64_ia64_relocate_section): Likewise.
106 (bfd_elf64_bfd_relax_section): New.
107 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
108 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
109 * bfd-in2.h, libbfd.h: Regenerate.
110
fb67355a
NC
1112000-05-22 Nick Clifton <nickc@cygnus.com>
112
113 * configure.in : Add peigen.lo to MIPS PE targets.
114 * configure: Regenerate.
115
1fe494a5
NC
1162000-05-22 Momchil Velikov <velco@fadata.bg>
117
118 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
748abff6 119 only if it is known for both input and output bfds. Separate
1fe494a5
NC
120 error message strings as in some languages, it may be necessary
121 to change more than one place in the string to change between
122 'big' and 'little'.
123
124 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
125 endianess checks, call _bfd_generic_verify_endian_match() instead.
126
127 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
128
129 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
130
131 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
132 endianess before checking bfd flavours.
133
32c092c3
L
1342000-05-22 H.J. Lu <hjl@gnu.org>
135
136 * elflink.h (elf_link_output_extsym): Clear the visibility
137 field for symbols not defined locally.
138
df6d9773
JL
1392000-05-18 Alan Modra <alan@linuxcare.com.au>
140
141 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
142 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
143 (hppa_rebuild_insn): Mask immediate bits here instead.
144 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
145
7ad34365
NC
1462000-05-18 Momchil Velikov <velco@fadata.bg>
147
148 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
149 relocs for an executable, ensure that they are virtual addresses.
150
d1dab720
JL
151Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
152
153 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
154
a712da20
NC
1552000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
156 Rick Gorton <gorton@scrugs.lkg.dec.com>
157
158 * elflink.h: Add emitrelocations support: when enabled, relocation
159 information and relocation sections are put into final output
160 executables. If the emitrelocations flag is set, do the following:
161 (elf_bfd_final_link): Emit relocation sections.
162 (elf_link_input_bfd): Compute relocation section contents.
163 (elf_gc_sections): Don't clean relocation sections.
164
10febd84
CM
1652000-05-16 Catherine Moore <clm@cygnux.com>
166
167 * som.c (som_decode_symclass): Recognize weak symbols.
168
db8503c4
AM
1692000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
170
171 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
172 read idata section only from dataoff.
173 (pe_print_edata): Correctly check for valid eat_member.
174
851cde10
JR
175Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
176
177 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
178
1bde2d57
PB
1792000-05-14 Philip Blundell <philb@gnu.org>
180
181 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
182
a76b448c
AM
1832000-05-12 Alan Modra <alan@linuxcare.com.au>
184
9ee25201
AM
185 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
186
a76b448c
AM
187 * peigen.c (pe_print_idata): Look for .idata section and print
188 info even if data directory has zero entries. Read idata section
189 starting from dataoff, and adjust all data offsets to suit. Cast
190 all bfd_vma vars to unsigned long before passing to fprintf.
191 * peigen.c (pe_print_edata): Similarly, look for .edata section
192 and print info even if data directory has zero entries. Cast
193 all bfd_vma vars to unsigned long before passing to fprintf.
194
195 From Szabolcs Szakacsits <szaka@F-Secure.com>
196 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
197 directory size which may be bogus.
198 * peigen.c (pe_print_edata): Similarly.
199
72730e0c
AM
2002000-05-09 Alan Modra <alan@linuxcare.com.au>
201
202 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
203 section is empty.
204 (copy_private_bfd_data): Allow for space possibly taken up by elf
205 headers when calculating segment physical address from lma.
206
8181c403
AM
2072000-05-08 Alan Modra <alan@linuxcare.com.au>
208
bfde9f99
AM
209 * versados.c (versados_scan): Init stringlen and pass_2_done.
210
b35efbcd
AM
211 * trad-core.c (trad_unix_core_file_p): Return
212 bfd_error_wrong_format rather than bfd_error_file_truncated.
213
8181c403
AM
214 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
215 add_data_entry. DataDirectory virtual address is relative.
216 (pe_print_idata): Account for relative DataDirectory virtual
217 addresses. Don't trash datasize inside POWERPC_LE_PE code.
218 (pe_print_edata): Similarly.
219
220 From Szabolcs Szakacsits <szaka@F-Secure.com>
221 * peigen.c (dir_names): Add Delay Import Directory.
222 (pe_print_idata): Always search for bfd section containing
223 idata address rather than looking up section name. Print this
224 section name rather than .idata.
225 (pe_print_edata): Similarly. Also print some fields as %08lx.
226 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
227 Win32Version.
228
2c38bc20
CP
229Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
230
231 * xcoff.h: Rename to xcoff-target.h
232 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
233 * coff-rs6000.c: Ditto.
234 * coff64-rs6000.c: Ditto.
235 * coff-pmac.c: Ditto.
236 * Makefile.in: Regenerate.
237
c6664dfb
CP
238Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
239
240 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
241 Change U802TOC64MAGIC to U803XTOCMAGIC.
242
3425c182
MS
2432000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
244
245 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
246 * bfd-in.h: Prototype bfd_elf_get_arch_size.
247 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
248
7c30ac37
AM
2492000-05-04 Alan Modra <alan@linuxcare.com.au>
250
251 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
252