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