]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
Remove stale files.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
a703a6ea
AM
12002-05-17 Alan Modra <amodra@bigpond.net.au>
2
3 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
4 * configure.in: Invoke AM_INSTALL_LIBBFD.
5 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
6 (install_libbfd): .. New target.
7 (uninstall_libbfd): Likewise.
8 (install-bfdlibLTLIBRARIES): Likewise.
9 (uninstall-bfdlibLTLIBRARIES): Likewise.
10 (bfdlibdir): New.
11 (bfdincludedir): New.
12 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
13 * aclocal.m4: Regenerate.
14 * configure: Regenerate.
15 * Makefile.in: Regenerate.
16
2c13d98b
NC
172002-05-17 Stuart Balfour <sbalfour@cisco.com>
18
19 * hash.c (bfd_hash_lookup): Remove computation of len from inside
20 hash loop.
21
629936c5
NC
222002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
23
24 * config.bfd: Add targets for sh64-linux (little endian and
25 big endian).
26
e4cf60a8
NC
272002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
28
29 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
30 is located in the same section as the import table. Instead
31 check, and if necessary load the section containing the thunk.
32
d1e66cd4
NC
332002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
34
35 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
36 bfd_bread.
37 (xcoff64_core_file_matches_executable_p): Replace bfd_read
38 with bfd_bread.
39
2d653fc7
AM
402002-05-15 Alan Modra <amodra@bigpond.net.au>
41
42 * aix5ppc-core.c: Warning fixes.
43 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
44 * aout-target.h (MY_bfd_link_just_syms): Define.
45 * aout-tic30.c (MY_bfd_link_just_syms): Define.
46 * bfd.c (bfd_link_just_syms): Define.
47 * binary.c (binary_bfd_link_just_syms): Define.
48 * bout.c (b_out_bfd_link_just_syms): Define.
49 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
50 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
51 * coffcode.h (coff_bfd_link_just_syms): Define.
52 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
53 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
54 (_bfd_elf_link_just_syms): Declare.
55 * elf.c (_bfd_elf_link_just_syms): New function.
56 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
57 sections haven't already been discarded by the linker.
58 * elflink.h (elf_link_add_object_symbols): Likewise for stab
59 sections and SEC_MERGE sections.
60 (elf_bfd_discard_info): Similarly here.
61 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
62 * i386msdos.c (msdos_bfd_link_just_syms): Define.
63 * i386os9k.c (os9k_bfd_link_just_syms): Define.
64 * ieee.c (ieee_bfd_link_just_syms): Define.
65 * ihex.c (ihex_bfd_link_just_syms): Define.
66 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
67 (_bfd_generic_link_just_syms): Declare.
68 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
69 * linker.c (_bfd_generic_link_just_syms): New function.
70 * mmo.c (mmo_bfd_link_just_syms): Define.
71 * nlm-target.h (nlm_bfd_link_just_syms): Define.
72 * oasys.c (oasys_bfd_link_just_syms): Define.
73 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
74 * som.c (som_bfd_link_just_syms): Define.
75 * srec.c (srec_bfd_link_just_syms): Define.
76 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
77 (BFD_JUMP_TABLE_LINK): And here.
78 * tekhex.c (tekhex_bfd_link_just_syms): Define.
79 * versados.c (versados_bfd_link_just_syms): Define.
80 * vms.c (vms_bfd_link_just_syms): Define.
81 * libbfd.h: Regenerate.
82 * bfd-in2.h: Regenerate.
83
cb7394f2
TS
842002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
85
86 * elf32-mips.c: Remove superfluous definitions copied from
87 elfxx-mips.c.
88 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
89 SGIish vectors to check the special case.
90 (mips_elf_hi16_reloc): Fix comment.
91 (mips_elf_got16_reloc): Likewise.
92 (_bfd_mips_elf32_gprel16_reloc): Likewise.
93 (elf_reloc_map): Code cleanup.
94 (mips_reloc_map): Add comment.
95 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
96 (mips_elf32_rtype_to_howto): Likewise.
97 (mips_elf32_discard_info): Likewise.
98 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
99 lead to IRIX compatibility now.
100
8dc1a139
TS
1012002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
102
103 * elfxx-mips.c: Call it IRIX, not Irix in comments.
104
2051e1b5
JT
1052002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
106
107 * config.bfd (shle-*-netbsdelf*): Add target which includes
108 sh64 support.
109
83954261
AM
1102002-05-13 David Edelsohn <edelsohn@gnu.org>
111
112 * configure.in: Revert 2002-04-07. Instead, auto-configure
113 HAVE_ST_C_IMPL.
114 * configure: Regenerate.
115 * config.in: Regenerate.
116 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
117 or AIX_5_CORE.
118
a9bf1154
NC
1192002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
120
121 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
122 corefiles as well.2
123 * configure: Regenerate.
124
3129eb7a
AM
1252002-05-13 Alan Modra <amodra@bigpond.net.au>
126
127 * Makefile.am (install-data-local): Install headers to
128 $(exec_prefix)/include.
129 * Makefile.in: Regenerate.
130
a9a32010
DJ
1312002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
132 Daniel Jacobowitz <drow@mvista.com>
133
134 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
135 map BFD_RELOC_RVA.
136
1372002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
690cc98b
NC
138
139 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
140 hppa*-*-openbsd*): New targets.
141 * configure.in (alpha*-*-openbsd*): Set COREFILE.
142 * configure: Regenerate.
143
f1f0d9ab
TR
1442002-05-10 Tom Rix <trix@redhat.com>
145
146 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
147 xcoff64_ppc_relocate_section.
148 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
149 * libxcoff.h: Common xcoff_reloc_type function declaration.
150
c432ba1a
AM
1512002-05-10 Alan Modra <amodra@bigpond.net.au>
152
16a10388
AM
153 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
154 addend in 2002-05-09 commit.
155
c432ba1a
AM
156 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
157 don't look for stubs on all undefined syms.
158
4a335f3d
AM
1592002-05-09 Alan Modra <amodra@bigpond.net.au>
160
8fc39d5d
AM
161 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
162 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
163 pcrel_offset.
164
4a335f3d
AM
165 * elf32-i386.c (elf_howto_table): Comments.
166 (elf_i386_relocate_section): Handle more relocs for relocatable
167 linking and against SEC_MERGE sections.
168
41fcb14e
AM
1692002-05-08 Alan Modra <amodra@bigpond.net.au>
170
171 * elf32-ppc.c (ppc_elf_create_got): New function.
172 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
173 _bfd_elf_create_dynamic_sections. Correct .plt flags.
174 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
175 _bfd_elf_create_got_section.
176
b491616a
AM
1772002-05-07 Alan Modra <amodra@bigpond.net.au>
178
179 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
180 * elfxx-target.h (elf_backend_rela_normal): Define.
181 (elfNN_bed): Init rela_normal.
182 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
183 for section symbols here if rela_normal. Simplify abs section test.
184 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
185 return immediately. Remove code handling relocatable linking.
186 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
187 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
188 * elf32-i370.c (i370_elf_relocate_section): Likewise.
189 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
190 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
191 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
192 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
193 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
194 * elf32-s390.c (elf_s390_relocate_section): Likewise.
195 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
196 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
197 * elf64-s390.c (elf_s390_relocate_section): Likewise.
198 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
199 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
200 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
201 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
202 * elf-m10200.c (elf_backend_rela_normal): Define.
203 * elf-m10300.c (elf_backend_rela_normal): Define.
204 * elf32-fr30.c (elf_backend_rela_normal): Define.
205 * elf32-i370.c (elf_backend_rela_normal): Define.
206 * elf32-i860.c (elf_backend_rela_normal): Define.
207 * elf32-m68k.c (elf_backend_rela_normal): Define.
208 * elf32-mcore.c (elf_backend_rela_normal): Define.
209 * elf32-openrisc.c (elf_backend_rela_normal): Define.
210 * elf32-ppc.c (elf_backend_rela_normal): Define.
211 * elf32-s390.c (elf_backend_rela_normal): Define.
212 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
213 * elf64-ppc.c (elf_backend_rela_normal): Define.
214 * elf64-s390.c (elf_backend_rela_normal): Define.
215 * elf64-x86-64.c (elf_backend_rela_normal): Define.
216 * elfxx-ia64.c (elf_backend_rela_normal): Define.
217 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
218 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
219
df212a7e
NC
2202002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
221
222 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
223 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
224
3decf53c
AM
2252002-05-06 Alan Modra <amodra@bigpond.net.au>
226
227 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
228 when not relocatable. Fix reloc_emitter call for K&R.
229
f46c2da6
AM
2302002-05-04 Alan Modra <amodra@bigpond.net.au>
231
232 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
233 reloading local sym addend mistakenly removed in 2002-05-01 change.
234
235 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
236 (read_abbrevs): Change "offset" param to bfd_vma.
237 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
238 Change "abbrev_offset" to bfd_vma.
239 (read_indirect_string): Use correct conversion chars in error
240 message format string, cast bfd_vma's to unsigned long.
241 (read_abbrevs): Likewise.
242 (read_attribute_value): Likewise.
243 (decode_line_info): Likewise.
244 (scan_unit_for_functions): Likewise.
245 (parse_comp_unit): Likewise.
246
59862849
TR
2472002-05-04 Tom Rix <trix@redhat.com>
248
249 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
250 (coff_swap_reloc_out): Same.
251 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
252 (xcoff_swap_reloc_out): Same.
253 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
254 case some 16 bit relocs. Add reloc value to output.
255 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
256 R_RBR. Improve names.
257 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
258 (bfd_xcoff_backend_data): Update with new reloc swap names.
259 (bfd_pmac_xcoff_backend_data) : Same.
260 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
261 (xcoff64_swap_reloc_out): Same.
262 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
263 R_POS. Add reloc value to output.
264 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
265 bit R_RBR. Improve names, masks.
266 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
267 (bfd_xcoff_backend_data): Update with new reloc swap names.
268 (bfd_xcoff_aix5_backend_data) : Same.
269
b4655ea9
AM
2702002-05-04 Alan Modra <amodra@bigpond.net.au>
271
272 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
273 bfd_count top_index, input_list, all_local_syms.
274 (elf32_hppa_setup_section_lists): New function, split from
275 elf32_hppa_size_stubs.
276 (elf32_hppa_next_input_section): Likewise.
277 (group_sections): Likewise.
278 (get_local_syms): Likewise.
279 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
280 stubs on undefined syms too.
281 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
8fc39d5d 282 Only access htab elf fields when we have an elf hash table.
b4655ea9
AM
283 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
284 (elf32_hppa_next_input_section): Declare.
285
301e3139
AM
2862002-05-04 Bob Byrnes <byrnes@curl.com>
287
288 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
289 _bfd_new_bfd.
290
7c5fcef7
L
2912002-05-03 H.J. Lu (hjl@gnu.org)
292
293 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
294 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
295 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
296 to hide a global symbol.
297 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
298 forced_local to true.
299
84de6048
RH
3002002-05-02 Richard Henderson <rth@redhat.com>
301
302 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
303 vs SHN_UNDEF to zero.
304
805fc799
AM
3052002-05-02 Alan Modra <amodra@bigpond.net.au>
306
c061c2d8
AM
307 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
308 16 bit reloc.
309 <R_PPC64_SECTOFF_DS>: Likewise.
310 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
311 SECTOFF reloc.
312 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
313 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
314 SECTOFF reloc.
315
805fc799
AM
316 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
317 (ppc64_elf_ha_reloc): New function.
318 (ppc64_elf_brtaken_reloc): New function.
319 (ppc64_elf_sectoff_reloc): New function.
320 (ppc64_elf_sectoff_ha_reloc): New function.
321 (ppc64_elf_toc_reloc): New function.
322 (ppc64_elf_toc_ha_reloc): New function.
323 (ppc64_elf_toc64_reloc): New function.
324 (ppc64_elf_unhandled_reloc): New function.
325 (ppc64_elf_howto_raw): Use the above.
326 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
327 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
328 <R_PPC64_SECTOFF_DS>: Likewise.
329 (IS_ABSOLUTE_RELOC): Update.
330 (struct ppc_link_hash_table): Add have_undefweak.
331 (ppc64_elf_link_hash_table_create): Init.
332 (func_desc_adjust): Set have_undefweak.
333 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
334 add the .sfpr blr when have_undefweak.
335 (ppc64_elf_setup_section_lists): Check hash table flavour.
336 (ppc64_elf_next_input_section): Move output_section->owner test to
337 ppc64elf.em.
338 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
339 and relocatable test. Return TOCstart and don't set elf_gp.
340 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
341 offset calculation. Add assert on weak sym branch tweaks.
342 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
343 (ppc64_elf_toc): Declare.
344 (ppc64_elf_next_input_section): Update.
345
818c39a3
AM
3462002-05-01 Alan Modra <amodra@bigpond.net.au>
347
348 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
349 file_name.
350
721956f4
AM
3512002-05-01 Alan Modra <amodra@bigpond.net.au>
352
353 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
354 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
355 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
356 call branches. Correct undefined weak destination.
357 (ppc64_elf_func_desc_adjust): Always create at least one blr in
358 .sfpr, and correct case where either only savef* or restf* is
359 needed.
360
361 Long branch stubs, multiple stub sections.
362 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
363 (ppc64_elf_next_input_section): Declare.
364 * elf64-ppc.c: Move linker-only prototypes.
365 (STUB_SUFFIX): Define.
366 (enum ppc_stub_type): New.
367 (struct ppc_stub_hash_entry): New.
368 (struct ppc_branch_hash_entry): New.
369 (struct ppc_link_hash_entry): Add stub_cache, oh.
370 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
371 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
372 Rename plt_overflow to stub_error.
373 (ppc_stub_hash_lookup): Define.
374 (ppc_branch_hash_lookup): Define.
375 (stub_hash_newfunc): New function.
376 (branch_hash_newfunc): New function.
377 (link_hash_newfunc): Init new fields.
378 (ppc64_elf_link_hash_table_create): Likewise.
379 (ppc64_elf_link_hash_table_free): New function.
380 (ppc_stub_name): New function.
381 (ppc_get_stub_entry): New function.
382 (ppc_add_stub): New function.
383 (create_linkage_sections): Use bfd_make_section_anyway. Create
384 .branch_lt and .rela.branch_lt sections. Don't create .stub.
385 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
386 and set up for plt call stubs. Link func and func desc syms.
387 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
388 (func_desc_adjust): Avoid hash lookup when func desc sym available
389 via shortcut, and set links when processing.
390 (ppc64_elf_hide_symbol): Likewise.
391 (allocate_dynrelocs): Don't allocate stub section here.
392 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
393 Remove sstub code.
394 (ppc_type_of_stub): New function.
395 (build_one_stub): Delete.
396 (ppc_build_one_stub): New function.
397 (ppc_size_one_stub): New function.
398 (ppc64_elf_setup_section_lists): New function.
399 (ppc64_elf_next_input_section): New function.
400 (group_sections): New function.
401 (get_local_syms): New function.
402 (ppc64_elf_size_stubs): Rewrite.
403 (ppc64_elf_build_stubs): Rewrite.
404 (ppc64_elf_relocate_section): Look up stub entry for REL24
405 relocs. Don't propagate REL14* to dynamic objects. Look for long
406 branch stubs if REL14* or REL24 relocs won't reach.
407 (bfd_elf64_bfd_link_hash_table_free): Define.
408
09c2219b
MM
4092002-04-30 Mark Mitchell <mark@codesourcery.com>
410
411 * bfd/config.bfd: Add support for powerpc-*-windiss.
412
07b678c0
TR
4132002-04-30 Tom Rix <trix@redhat.com>
414
415 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
416 symbol names into the hash table.
417
dbe341c6
TR
4182002-04-28 Tom Rix <trix@redhat.com>
419
420 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
421 calulating relocations.
422 (xcoff_complain_overflow) : Function table for relocation errors.
423 (xcoff_ppc_relocate_section): Use relocation and complain function
424 tables.
425 (xcoff_complain_overflow_unsigned_func): New complain function.
426 (xcoff_complain_overflow_signed_func): Same.
427 (xcoff_complain_overflow_bitfield_func): Same.
428 (xcoff_complain_overflow_dont_func): Same.
429 (xcoff_reloc_type_crel): New recot function.
430 (xcoff_reloc_type_br): Same.
431 (xcoff_reloc_type_ba): Same.
432 (xcoff_reloc_type_toc): Same.
433 (xcoff_reloc_type_rel): Same.
434 (xcoff_reloc_type_neg): Same.
435 (xcoff_reloc_type_pos): Same.
436 (xcoff_reloc_type_fail): Same.
437 (xcoff_reloc_type_noop): Same.
438 * libxcoff.h : Declare common parts for xcoff64.
439 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
440 and complain function tables.
441
985142a4
AM
4422002-04-28 Alan Modra <amodra@bigpond.net.au>
443
444 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
445 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
446
eba91044
AM
4472002-04-26 Alan Modra <amodra@bigpond.net.au>
448
e54fdaa5
AM
449 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
450 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
451
a50c1845
AM
452 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
453 same as the output before calling elf_link_input_bfd.
454
eba91044
AM
455 * coffcode.h (coff_compute_section_file_positions): Set
456 section_tail after shuffling section list.
457
3c25c5f6
NC
4582002-04-24 Christian Groessler <chris@groessler.org>
459
460 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
461 addresses are 23bit with a special layout, not plain 32bit
462 values. Prevent relocation of immediate values.
463
40d32fc6
CD
4642002-04-24 Chris G. Demetriou <cgd@broadcom.com>
465
466 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
467 MIPS-16 ASE flags are set, print something to indicate that.
468
067fa4a6
AM
4692002-04-23 Alan Modra <amodra@bigpond.net.au>
470
471 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
472 under which a plt call stub is used.
473 (final_link_relocate): Similarly.
474 (allocate_plt_static): Clear h-plabel except when plt entry is
475 exclusively used for a plabel.
476 (allocate_dynrelocs): Use the above to simplify plt sizing.
477 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
478 (elf32_hppa_link_hash_table_create): Init.
479 (BL22_RP): Define.
480 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
481 (elf32_hppa_check_relocs): Set has_22bit_branch.
482
483 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
484 (final_link_relocate): Likewise.
485
af40ce3c
JJ
4862002-04-22 Jakub Jelinek <jakub@redhat.com>
487
488 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
489 search table if some FDE is DW_EH_PE_aligned encoded either.
490 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
491
09ae86c2
JJ
4922002-04-22 Richard Smith <richard@ex-parrot.com>
493 Jakub Jelinek <jakub@redhat.com>
494
495 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
496 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
497 encoded personality.
498 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
499 for CIE/FDE removal.
500
deeb2cd7
TR
5012002-04-20 Tom Rix <trix@redhat.com>
502
503 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
504
99dc0092
AM
5052002-04-20 Alan Modra <amodra@bigpond.net.au>
506
aa3d5824
AM
507 * archures.c (bfd_lookup_arch): Move the list order comment..
508 (struct bfd_arch_info): ..to where it belongs.
509 * bfd-in2.h: Regenerate.
510
99dc0092
AM
511 * archures.c (bfd_lookup_arch): Add comment on list order.
512 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
513 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
514 is always at head of list.
515
7831a775
NC
5162002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
517
518 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
519 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
520 definition of these functions for ARM_WINCE builds as they are
521 not used.
522 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
523 for ARM_WINCE builds.
524
5252002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
526
527 * coff-arm.c (bfd_arm_process_before_allocation):
528
5292002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
530
531 * cpu-sh.c (scan_mach): Delete.
532 (arch_info_struct): Replace scan_mach with bfd_default_scan.
533 (bfd_sh_arch): Likewise.
534
3d8dbe36
NC
5352002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
536
537 * ihex.c (ihex_write_object_contents): Fix check for records
538 crossing 64K boundaries.
539
4ab82700
AM
5402002-04-16 Alan Modra <amodra@bigpond.net.au>
541
542 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
543 type rather than just assuming entries are ELF.
544 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
545 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
546 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
547 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
548 rather than elf_link_hash_entry.
549
036fe0fe
RH
5502002-04-15 Richard Henderson <rth@redhat.com>
551
552 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
553 n32 binaries.
554
c4f3d130
NC
5552002-04-15 Michael Snyder <msnyder@redhat.com>
556
557 * opncls.c (bfd_close): Write contents if writeable.
558 Minor formatting tidy-ups.
559
4ab82700 5602002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
561
562 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
563
0c04d169
MS
5642002-04-12 Michael Snyder <msnyder@redhat.com>
565
566 * bfd-in.h (bfd_get_section_lma): New access macro.
567 Minor white-space fix-up.
568
89d4966f
AM
5692002-04-12 Alan Modra <amodra@bigpond.net.au>
570
571 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
572 header pad.
573
8d0da3c2
DD
5742002-04-09 DJ Delorie <dj@redhat.com>
575
576 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
577
05793179
NC
5782002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
579
580 * coffcode.h (coff_read_word): New.
581 (coff_compute_checksum): New.
582 (coff_apply_checksum): New.
583 (coff_write_object_contents): Call coff_apply_checksum () to
584 apply checksum to PE image.
585
46fe4e66
AM
5862002-04-08 Randolph Chung <tausq@debian.org>
587
588 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
589 (elf32_hppa_final_link): Split out sorting logic to..
590 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
591 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
592
3b5b409c
AC
5932002-04-07 Andrew Cagney <ac131313@redhat.com>
594
595 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
596 pattern.
597 * configure: Re-generate.
598
ac7b6ceb
AC
5992002-04-07 Andrew Cagney <ac131313@redhat.com>
600
601 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
602 is greater or equal to 4.3.3.
603 * configure: Regenerate.
604 Fix PR gdb/344.
605
44aa49bb
HPN
6062002-04-05 Hans-Peter Nilsson <hp@axis.com>
607
608 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
609 R_CRIS_32_PCREL>: Fix typo in name.
610 (cris_elf_check_relocs): Always create .rela.got here when
611 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
612 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
613 assume it's created.
614
e2d34d7d
DJ
6152002-04-04 Daniel Jacobowitz <drow@mvista.com>
616
617 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
618 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
619 define.
620 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
621 * bfd.c (bfd_link_hash_table_free): Define.
622 * binary.c (binary_bfd_link_hash_table_free): Define.
623 * bout.c (b_out_bfd_link_hash_table_free): Define.
624 * coff-rs6000.c (rs6000coff_vec): Include
625 _bfd_generic_link_hash_table_free.
626 (pmac_xcoff_vec): Likewise.
627 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
628 (aix5coff64_vec): Likewise.
629 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
630 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
631 (bfd_elf32_bfd_link_hash_table_free): Define.
632 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
633 (bfd_elf32_bfd_link_hash_table_free): Define.
634 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
635 define.
636 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
637 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
638 * ieee.c (ieee_bfd_link_hash_table_free): Define.
639 * ihex.c (ihex_bfd_link_hash_table_free): Define.
640 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
641 (_bfd_generic_link_hash_table_free): Add prototype.
642 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
643 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
644 * linker.c (_bfd_generic_link_hash_table_free): New function.
645 * mmo.c (mmo_bfd_link_hash_table_free): Define.
646 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
647 * oasys.c (oasys_bfd_link_hash_table_free): Define.
648 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
649 * som.c (som_bfd_link_hash_table_free): Define.
650 * srec.c (srec_bfd_link_hash_table_free): Define.
651 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
652 * versados.c (versados_bfd_link_hash_table_free): Define.
653 * vms.c (vms_bfd_link_hash_table_free): New function.
654 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
655
656 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
657 instead of bfd_alloc.
658 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
659 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
660 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
661 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
662 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
663 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
664 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
665 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
666 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
667 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
668 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
669 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
670 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
671 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
672 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
673 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
674 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
675 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
676 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
677 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
678 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
679 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
680 * m68klinux.c (linux_link_hash_table_create): Likewise.
681 * sparclinux.c (linux_link_hash_table_create): Likewise.
682 * sunos.c (sunos_link_hash_table_create): Likewise.
683 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
684
685 * targets.c: Add _bfd_link_hash_table_free to xvec.
686
687 * bfd-in2.h: Regenerate.
688 * libbfd.h: Regenerate.
689 * libcoff.h: Regenerate.
690
830629ab
AM
6912002-04-04 Alan Modra <amodra@bigpond.net.au>
692
693 * dep-in.sed: Cope with absolute paths.
694 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
695 Run "make dep-am".
696 * Makefile.in: Regenerate.
697 * coff-arm.c: Fix copyright date.
698 * cpu-h8300.c: Likewise.
699 * cpu-i370.c: Likewise.
700 * cpu-s390.c: Likewise.
701 * cpu-mips.c: Likewise.
702 * po/SRC-POTFILES.in: Regenerate.
703
c6e90b02
TS
7042002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
705
706 * Makefile.am: Add elfxx-mips.c to the known backends.
707 (elf32-mips.lo): remove dependency to coff/external.h.
708 * Makefile.in: Regenerate.
709 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
710 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
711 accordingly.
712 * configure: Regenerate.
713 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
714 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
715 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
716 MIPS specific backend functions.
717 * elf32-mips.c: Moved most code to elfxx-mips.c.
718 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
719 static.
720 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
721 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
722 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
723 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
724 interface to allow selection of the right REL or RELA howto table.
725 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
726 static. Let it refuse n32 objects.
727 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
728 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
729 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
730 (elf32_mips_ignore_discarded_relocs): Rename from
731 _bfd_elf32_mips_ignore_discarded_relocs.
732 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
733 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
734 (elf_mips_howto_table_rela): Remove.
735 * elf64-mips.c: Moved most code to elfxx-mips.c.
736 (bfd_elf64_bfd_reloc_type_lookup): Make static.
737 (mips_elf64_rtype_to_howto): New function.
738 (mips_elf64_object_p): Likewise.
739 (elf64_mips_irix_compat): Likewise.
740 * elfxx-mips.c: New file containing common code merged together from
741 elf32-mips.c and elf64-mips.c.
742 * elfxx-mips.h: New file containing MIPS specific prototypes from
743 elf-bfd.h.
744 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
745 elf_backend_mips_rtype_to_howto.
746
d8dce692
AM
7472002-04-04 Alan Modra <amodra@bigpond.net.au>
748
749 * srec.c (MAXCHUNK, Chunk): Revise comments.
750 (srec_write_record): Correct buffer size.
751 (srec_write_header): Do without intermediate buffer.
752 (srec_write_section): Validate Chunk.
753 (srec_write_terminator): Pass NULL instead of dummy buffer.
754 (srec_write_symbols): Pass file and symbol names directly to
755 bfd_bwrite so sprintf won't overflow buffer.
756
b88a866a
JJ
7572002-04-03 Jakub Jelinek <jakub@redhat.com>
758
759 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
760 PC relative relocs against hidden symbols.
761 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
762
d7866f04
AM
7632002-04-03 Alan Modra <amodra@bigpond.net.au>
764
765 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
766 LMAs, loop over segments until p_vaddr and p_memsz specify an
767 extent enclosing the section.
768
9e81ee67
NC
7692002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
770
771 * ihex.c (ihex_write_object_contents): Do not allow records to
772 cross a 64K boundary - wrap if necessary.
773
d2b64500
JT
7742002-04-01 Nathan Williams <nathanw@wasabisystems.com>
775
776 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
777 which caused the returned LWP ID to always be 0.
778
e36f7d53
RH
7792002-04-01 Richard Henderson <rth@redhat.com>
780
781 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
782 (elf32_sparc_relocate_section): Use it to figure out when to
783 initialize .got entries.
784 * elf64-sparc.c: Similarly.
785
e92d460e
AM
7862002-03-28 Alan Modra <amodra@bigpond.net.au>
787
788 * linker.c (link_action): Ignore duplicate warning syms.
789 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
790 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
791 (elf_adjust_dynamic_symbol): Likewise.
792 (elf_export_symbol): Likewise.
793 (elf_link_find_version_dependencies): Likewise.
794 (elf_link_assign_sym_version): Likewise.
795 (elf_link_sec_merge_syms): Likewise.
796 (elf_link_output_extsym): Likewise.
797 (elf_gc_sweep_symbol): Likewise.
798 (elf_gc_propagate_vtable_entries_used): Likewise.
799 (elf_gc_smash_unused_vtentry_relocs): Likewise.
800 (elf_gc_allocate_got_offsets): Likewise.
801 (elf_collect_hash_codes): Likewise.
802 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
803 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
804 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
805 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
806 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
807 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
808 (elf_cris_discard_excess_dso_dynamics): Likewise.
809 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
810 (mark_PIC_calls): Likewise.
811 (allocate_plt_static): Likewise.
812 (allocate_dynrelocs): Likewise.
813 (readonly_dynrelocs): Likewise.
814 * elf32-i386.c (allocate_dynrelocs): Likewise.
815 (readonly_dynrelocs): Likewise.
816 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
817 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
818 * elf32-mips.c (mips_elf_output_extsym): Likewise.
819 (mips_elf_sort_hash_table_f): Likewise.
820 (mips_elf_check_mips16_stubs): Likewise.
821 * elf32-s390.c (allocate_dynrelocs): Likewise.
822 (readonly_dynrelocs): Likewise.
823 * elf32-sh.c (sh_elf_discard_copies): Likewise.
824 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
825 (xstormy16_relax_plt_realloc): Likewise.
826 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
827 (elf64_alpha_output_extsym): Likewise.
828 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
829 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
830 (mips_elf64_check_mips16_stubs): Likewise.
831 (mips_elf64_output_extsym): Likewise.
832 * elf64-ppc.c (func_desc_adjust): Likewise.
833 (allocate_dynrelocs): Likewise.
834 (readonly_dynrelocs): Likewise.
835 * elf64-s390.c (allocate_dynrelocs): Likewise.
836 (readonly_dynrelocs): Likewise.
837 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
838 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
839 (readonly_dynrelocs): Likewise.
840 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
841 * aoutx.h (aout_link_write_other_symbol): Likewise.
842 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
843 (_bfd_coff_write_global_sym): Likewise.
844 * i386linux.c (linux_tally_symbols): Likewise.
845 * m68klinux.c (linux_tally_symbols): Likewise.
846 * sparclinux.c (linux_tally_symbols): Likewise.
847 * pdp11.c (aout_link_write_other_symbol): Likewise.
848 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
849 * xcofflink.c (xcoff_build_ldsyms): Likewise.
850 (xcoff_write_global_symbol): Likewise.
851
852 * cofflink.c (_bfd_coff_final_link): Formatting.
853 * cpu-mips.c (mips_compatible): Make static, prototype.
854 * elf32-i386.c (elf_i386_check_relocs): Formatting.
855 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
856 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
857 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
858 (mips_elf64_final_link): Likewise.
859 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
860 prototype.
861
2106126f
NC
8622002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
863
864 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
865 (SWAP_OUT_RELOC_OFFSET): Define.
866
b99d1833
AM
8672002-03-27 Gregory Steuck <greg@nest.cx>
868
869 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
870 terminating NULL if empty symbol table.
871 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
872
ad43ed4c
L
8732002-03-26 H.J. Lu (hjl@gnu.org)
874
875 * elflink.h (elf_link_input_bfd): Revert the last change since
876 the gcc exception handling isn't fixed yet.
877
3851fca4
L
8782002-03-26 H.J. Lu (hjl@gnu.org)
879
880 * elflink.h (elf_link_input_bfd): Complain about relocations
881 against local symbols in discarded sections.
882
b91afed7
AM
8832002-03-26 Alan Modra <amodra@bigpond.net.au>
884
885 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
886
dba143ef
AM
8872002-03-23 Alan Modra <amodra@bigpond.net.au>
888
889 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
890 section file offset for !SEC_LOAD sections.
891
ee29b9fb
RE
8922002-03-21 Richard Earnshaw <rearnsha@arm.com>
893
830629ab
AM
894 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
895 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 896
54327882
AM
8972002-03-21 Alan Modra <amodra@bigpond.net.au>
898
899 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
900 Whitespace changes.
901 * archive.c: Update copyright date.
902 * bfd-in2.h: Regenerate.
903 * libbfd.h: Regenerate.
904 * Makefile.am: Run "make dep-am"
905 * Makefile.in: Regenerate.
906 * po/SRC-POTFILES.in: Regenerate.
907
1ee24f27
DJ
9082002-03-20 Daniel Jacobowitz <drow@mvista.com>
909
910 * dwarf2.c (struct funcinfo): Move up.
911 (lookup_address_in_function_table): New argument function_ptr.
912 Set it.
913 (lookup_address_in_line_table): New argument function. If function
914 is non-NULL, use it to handle ``addr'' before the first line note of
915 the function.
916 (comp_unit_find_nearest_line): Update and swap calls to
917 lookup_address_in_function_table and lookup_address_in_line_table.
918 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
919 N_SLINE encountered if we see an N_FUN before any N_SLINE.
920
51b9608c
TR
9212002-03-20 Tom Rix <trix@redhat.com>
922
923 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
924 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
925 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
926
789c90aa
TR
9272002-03-19 Tom Rix <trix@redhat.com>
928
929 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
930 dynamic objects in archives.
931
1da54d81
HPN
9322002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
933
934 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
935 STT_NOTYPE symbols to STT_OBJECT.
936
7831a775 9372002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
938
939 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
940
eb1e0e80
NC
9412002-03-18 Tom Rix <trix@redhat.com>
942
943 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
944 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
945 * coff-rs6000 (do_pad) : New function for archive padding.
946 (do_copy) : New function for object file copying in archives.
947 (do_shared_object_padding) : New function for padding shared
948 objects to their text section alignment in archives.
949 (bfd_xcoff_ar_achive_set_magic) : Stub.
950 (xcoff_write_armap_big) : Use do_copy and do_pad.
951 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
952 do_copy and do_pad.
953 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
954 bfd_xcoff_magic_number.
955 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
956 fop.
957 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
958 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
959 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
960 * rs6000-core.c : Update copyright date.
961 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
962 csectpp.
963 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
964 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
965 (coff_set_flags) : Use bfd_xcoff_magic_number.
966 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
967 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
968 * Makefile.am : Same.
969 * config.bfd : Same.
970 * targets.c : Same.
971 * configure : Regnerate.
972 * Makefile.in : Same.
973 * bfd-in2.h : Same.
974
a1c259a1
NC
9752002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
976
977 * po/fr.po: Updated version.
978
4dae1ae7
AM
9792002-03-18 Alan Modra <amodra@bigpond.net.au>
980
981 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
982 * libbfd.h: Regenerate.
983 * archive.c (coff_write_armap): Pass on failures from
984 bfd_write_bigendian_4byte_int.
985
36b4f6e7
L
9862002-03-14 H.J. Lu <hjl@gnu.org>
987
988 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
989 error to bfd_error_nonrepresentable_section for reinit_array
990 section in DSO.
991
a1aefc76
NC
9922002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
993
a181be0a
NC
994 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
995 OR it in rather than replacing previously selected flags.
996
a1aefc76
NC
997 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
998 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
999
c119f9b8
AM
10002002-03-14 Alan Modra <amodra@bigpond.net.au>
1001
1002 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
1003 (N): Use the above.
1004 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
1005 ensure reloc size matches before calling elf_link_input_bfd.
1006 Add an assert to check reloc size when counting output relocs.
1007
c295a511
NC
10082002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1009
1010 * mmo.c (mmo_get_loc): Return NULL rather than false.
1011
9ce88e60
NC
10122002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1013
1014 * po/fr.po: Updated version.
1015
4ddafab0
AM
10162002-03-13 Alan Modra <amodra@bigpond.net.au>
1017
b74fa2cd
AM
1018 * archures.c (bfd_default_compatible): Test bits_per_word.
1019 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
1020 bfd_default_compatible.
1021 * cpu-i370.c (i370_compatible): Likewise.
1022 * cpu-sparc.c (sparc_compatible): Likewise.
1023 * cpu-h8300.c (compatible): Test in->arch == out->arch.
1024
40b829d4
AM
1025 * elflink.h: Formatting fixes.
1026 (elf_link_output_extsym): Merge undefined and undef weak cases.
1027
4ddafab0
AM
1028 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
1029 when word size of input matches output word size.
1030
dd53c801
AJ
10312002-03-12 Andreas Jaeger <aj@suse.de>
1032
1033 * cpu-i386.c (i386_compatible): New. Use it instead of
1034 bfd_default_compatible.
1035
aa066ac8
L
10362002-03-07 H.J. Lu (hjl@gnu.org)
1037
1038 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
1039 as the type for bfd_reloc_val.
1040
1bf42538
JL
10412002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1042
1043 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
1044 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
1045 (elf_hppa_final_link_relocate): Correct relocations for indirect
1046 references to local data through the DLT. Fix .opd creation for
1047 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
1048 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
1049 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
1050 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1051 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
1052 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
1053 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1054
86eaf01e
JJ
10552002-03-05 Jakub Jelinek <jakub@redhat.com>
1056
1057 * merge.c (_bfd_merge_sections): Don't segfault if there
1058 is nothing to merge due to GC.
1059
c44233aa
AM
10602002-03-05 Alan Modra <amodra@bigpond.net.au>
1061
039cc25f
AM
1062 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
1063 symbols that have been forced local.
1064
c44233aa
AM
1065 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
1066 to output forced local syms for non-shared link.
1067 (elf_link_output_extsym): Tweak condition for calling backend
1068 adjust_dynamic_symbol so that previous behaviour is kept.
1069 Whitespace changes throughout file.
1070
25e27870
L
10712002-03-04 H.J. Lu <hjl@gnu.org>
1072
1073 * elf.c (bfd_section_from_shdr): Handle special sections,
1074 .init_array, .fini_array and .preinit_array.
1075 (elf_fake_sections): Likewise.
1076
1077 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
1078 DT entry only if the section is in output for .init_array,
1079 .fini_array and .preinit_array. Complain about .preinit_array
1080 section in DSO.
1081 (elf_bfd_final_link): Warn zero size for .init_array,
1082 .fini_array and .preinit_array sections.
1083
1084 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
1085 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
1086 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
1087 .preinit_array.
1088
bb2a49f2
AM
10892002-03-04 Alan Modra <amodra@bigpond.net.au>
1090
1091 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
1092 * configure: Regenerate.
1093
38487e5e
TR
10942002-03-02 Tom Rix <trix@redhat.com>
1095
c44233aa
AM
1096 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
1097 symbolic equiv.
38487e5e
TR
1098 * coff-rs6000.c (xcoff_howto_table): Same.
1099
30831527
RH
11002002-03-01 David Mosberger <davidm@hpl.hp.com>
1101
1102 * elflink.h (size_dynamic_sections): If section named
1103 ".preinit_array" exists, create DT_PREINIT_ARRAY and
1104 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
1105 ".init_array" and ".fini_array".
1106 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
1107 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
1108 DT_FINI_ARRAY.
1109
c8e5ddc8
AM
11102002-02-26 Andrew Macleod <amacleod@cygnus.com>
1111
1112 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
1113 dynsyms.
1114
96e0dda4
AM
11152002-02-25 Alan Modra <amodra@bigpond.net.au>
1116
1c5b6bf8
AM
1117 * elf64-hppa.h: Update copyright date.
1118
96e0dda4
AM
1119 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
1120 (ppc64_elf_relocate_section): Don't generate power4 style branch
1121 hints for *_BRTAKEN and *_BRNTAKEN relocs.
1122
0fb19cbc
JJ
11232002-02-22 Jakub Jelinek <jakub@redhat.com>
1124
1125 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
1126 last patch.
1127 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1128
c434dee6
AJ
11292002-02-21 Andreas Jaeger <aj@suse.de>
1130
1131 * elf64-x86-64.c: Major rework that introduces all recent changes
1132 to the x86-64 backend. Get a closer match to elf32-i386.
1133 (struct elf64_x86_64_dyn_relocs): Rename from
1134 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
1135 all users.
1136 (struct elf64_x86_64_link_hash_table): Add short cuts to some
1137 sections.
1138 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
1139 remove casts, initialize new hash members.
1140 (create_got_section): New.
1141 (elf64_x86_64_create_dynamic_sections): New.
1142 (elf64_x86_64_copy_indirect_symbol): New.
1143 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
1144 relocs, .got or .relgot here but do it in allocate_dynrelocs.
1145 Reference count possible .plt and .got entries. Don't test input
1146 section SEC_READONLY here to try to avoid copy relocs, and keep
1147 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
1148 DF_TEXTREL here. Delay setting of variables until needed. Cache
1149 pointer to "sreloc" section in elf_section_data. Tweak condition
1150 under which .got created. Report files with bad relocation
1151 section names.
1152 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1153 Reference count possible .plt entries. Don't deallocate .got and
1154 .relgot space here.
1155 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
1156 do copy reloc processing for weakdefs. Remove redundant casts and
1157 aborts. Delay setting of vars until needed. Move creation of
1158 dynamic symbols and allocation of .plt and .rela.plt to
1159 allocate_dynrelocs. Replace BFD_ASSERT with abort.
1160 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1161 (allocate_dynrelocs): New.
1162 (readonly_dynrelocs): New.
1163 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
1164 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
1165 Zero out the dynamic allocated content space.
1166 (elf64_x86_64_discard_copies): Removed.
1167 (elf64_x86_64_relocate_section): Make use of dynamic section
1168 short-cuts. Localise vars, and delay setting. Better error
1169 reporting, replace BFD_ASSERT with abort. Check
1170 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
1171 regular object file and tread the weak definition as the normal
1172 one. Don't discard relocs for undefweak or undefined symbols and
1173 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
1174 relocs.
1175 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
1176 symbols that have been forced local. Use same test to decide if
1177 we can use a relative reloc for got as relocate_section. Expand
1178 SHN_UNDEF comment. Move expressions out of function calls.
1179 Replace BFD_ASSERT with abort.
1180 (bfd_elf64_bfd_final_link): Removed.
1181 (elf_backend_copy_indirect_symbol): Define.
1182
ff3a6ee3
TR
11832002-02-20 Tom Rix <trix@redhat.com>
1184
1185 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
1186 (_bfd_xcoff_reloc_type_lookup): Use it.
1187 * coff64-rs6000.c (xcoff64_howto_table): Same.
1188 (xcoff64_reloc_type_lookup): Same.
c434dee6 1189
a68d41fb
AM
11902002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1191
1192 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
1193 little endian.
1194
befc3abb
MS
11952002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1196
1197 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
1198 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
1199 * bfd-in2.h: Regenerate.
1200 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
1201 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
1202 with "s390:64-bit".
1203 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
1204 (elf_s390_reloc_type_lookup): Likewise.
1205 (elf_s390_check_relocs): Likewise.
1206 (elf_s390_gc_sweep_hook): Likewise.
1207 (elf_s390_relocate_section): Likewise.
1208 (elf_s390_object_p): Use renamed architecture define.
1209 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
1210
6eeeec9b
FCE
12112002-02-19 Frank Ch. Eigler <fche@redhat.com>
1212
1213 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
1214
0bb2d96a
JJ
12152002-02-19 Jakub Jelinek <jakub@redhat.com>
1216
1217 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
1218 absptr -> pcrel optimization for shared libs.
1219 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
1220 library cannot be converted to pcrel.
1221 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
1222 relative.
1223 * elf32-i386.c (elf_i386_relocate_section): If
1224 _bfd_elf_section_offset returned -2, skip, but make sure the
1225 relocation is installed.
1226 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
1227 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1228 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1229 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1230 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1231 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1232 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1233 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1234 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1235 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1236 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1237 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1238 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1239 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1240 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
1241 _bfd_elf_section_offset returning -2 the same way as -1.
1242 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
1243 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
1244 and BFD_ASSERT.
1245 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
1246
69f284c7
TR
12472002-02-18 Tom Rix <trix@redhat.com>
1248
1249 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
1250 (bfd_xcoff_size_dynamic_sections): Same.
1251 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
1252 (bfd_xcoff_size_dynamic_sections): Same.
1253 * coff-rs6000.c (xcoff_generate_rtinit): Same.
1254 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
1255 * libxcoff.h (struct xcoff_backend_data_rec): Same.
1256 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
1257 * bfd-in2.h: Regenerate.
1258
82bd7b59
AM
12592002-02-18 Alan Modra <amodra@bigpond.net.au>
1260
1261 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
1262 (struct ppc_link_hash_table): Add sfpr.
1263 (ppc64_elf_link_hash_table_create): Init it.
1264 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
1265 .glink out to..
1266 (create_linkage_sections): ..here. Make .sfpr too.
1267 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
1268 dynobj early.
1269 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
1270 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
1271 ._restf* functions, and create as needed.
1272 (func_desc_adjust): Only force_local for shared libs.
1273
ef1355e8
NC
12742002-02-18 David O'Brien <obrien@FreeBSD.org>
1275
1276 * configure.in: Bump version number post 2.12 branching.
1277 * configure: Regenerate.
1278
dfa36a69
HPN
12792002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1280
1281 * mmo.c: Correct and improve comments.
1282 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
1283 zero-pad. Use input to fill up non-empty bfd buffer.
1284 (mmo_flush_chunk): New function.
1285 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
1286 changed. Don't emit location specifier if VMA is same as
1287 *LAST_VMAP after omitting leading zero contents. Call
1288 mmo_flush_chunk before emitting location specifier.
1289 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
1290 with mmo_write_loc_chunk calls.
1291 (mmo_internal_write_section): Call mmo_flush_chunk after
1292 mmo_write_chunk.
1293 (mmo_write_symbols_and_terminator): Move :Main to first position
1294 in symbol array. Add faked one if it does not exist if there are
1295 other symbols. Don't add it if there are no symbols at all. Move
1296 out test for value of :Main from symbol loop. Rename table
1297 fakemain to maintable and variable mainsym to fakemain.
1298
ccf00ab6
RH
12992002-02-15 Richard Henderson <rth@redhat.com>
1300
1301 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
1302 section with no got matches any got. Simplify error generaion.
1303
88eaccc2
AM
13042002-02-15 Alan Modra <amodra@bigpond.net.au>
1305
fd96f80f
AM
1306 Support arbitrary length fill patterns.
1307 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
1308 (_bfd_default_link_order): Remove bfd_fill_link_order code.
1309 Call default_data_link_order.
1310 (default_fill_link_order): Delete.
1311 (default_data_link_order): New function.
1312 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1313 of bfd_fill_link_order with bfd_data_link_order.
1314 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1315 * elf64-mips.c (mips_elf64_final_link): Likewise.
1316
88eaccc2
AM
1317 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1318 Correct value returned in "end" for "0x<non-hex>".
1319
e2fd756b
NC
13202002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1321
1322 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1323 (scan): Test against 'mach' field in info structure.
1324
edd29cf9
AM
13252002-02-14 Alan Modra <amodra@bigpond.net.au>
1326
1327 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1328
1e30956e 13292002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
1330
1331 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1332 EF_M68000.
1333
bf36db18
NC
13342002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1335
1336 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
1337 non-zero physical addresses when adjusting the LMAs of new
1338 sections.
bf36db18 1339
189c6563
AM
13402002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1341
1342 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1343 from _bfd_elf_hppa_gen_reloc_type.
1344 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1345 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1346 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1347 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1348
e948afaf
AO
13492002-02-12 Alexandre Oliva <aoliva@redhat.com>
1350
1351 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1352 loading its contents if there's nothing to do in it.
1353
19397422
AM
13542002-02-12 Alan Modra <amodra@bigpond.net.au>
1355
0ad3a73b
AM
1356 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1357 64k boundary.
1358
19397422
AM
1359 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1360 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1361 (ppc64_elf_finish_dynamic_sections): Set values for them.
1362
51316059
MS
13632002-02-11 Michael Snyder <msnyder@redhat.com>
1364
1365 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1366 * elf.c (elfcore_grok_pstatus): Add prototype.
1367 (elfcore_grok_lwpstatus): Add prototype.
1368 (elfcore_write_lwpstatus): New function.
1369 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
1370
518313c3
AO
13712002-02-11 Alexandre Oliva <aoliva@redhat.com>
1372
1373 * elf32-sh.c: Added missing prototypes.
1374 * elf32-sh64.c: Likewise.
1375 (sh_elf_align_loads): Mark unused args as such.
1376 * elf64-sh64.c: Added missing prototypes.
1377 (struct elf_sh64_link_hash_entry): Fix typo.
1378 (sh_elf64_relocate_section): Fix info argument passed to
1379 _bfd_elf_section_offset.
1380
2c73f9d8
AM
13812002-02-11 Alan Modra <amodra@bigpond.net.au>
1382
1383 * Makefile.am: "make dep-am".
1384 * Makefile.in: Regenerate.
1385 * aclocal.m4: Regenerate.
1386 * config.in: Regenerate.
1387 * configure: Regenerate.
1388
d426c6b0
DJ
13892002-02-10 Daniel Jacobowitz <drow@mvista.com>
1390
1391 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
1392 variable warnings.
1393 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
1394 comparison warning.
1395 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
1396 cast warnings for the common case.
1397
e58ee0cd
HPN
13982002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1399
1400 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
1401 vectors.
1402 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
1403 vectors.
1404
7793f4d0
RH
14052002-02-09 Richard Henderson <rth@redhat.com>
1406
1407 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
1408 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
1409 (elf64_alpha_relocate_section): Likewise.
1410 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
1411 * bfd-in2.h, libbfd.h: Rebuild.
1412
7e799044
HPN
14132002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1414
1415 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
1416 that base-plus-offset reloc accounting is consistent.
1417 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
1418 up to date for undefined symbols.
1419
027d73eb
EC
14202002-02-08 Eric Christopher <echristo@redhat.com>
1421
1422 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1423
1424 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
1425 sections for the O32 ABI.
1426
517662d4
CD
14272002-02-08 Chris Demetriou <cgd@broadcom.com>
1428
1429 * elf32-arm.h: Fix formatting of _("...").
1430 * elf32-d10v.c: Likewise.
1431 * elf32-m68k.c: Likewise.
1432 * elf32-mips.c: Likewise.
1433
5e37cc46
NC
14342002-02-08 Ivan Guzvinec <ivang@opencores.org>
1435
1436 * coff-or32.c: Fix compile time warning messages.
1437
fbca6ad9
AO
14382002-02-08 Alexandre Oliva <aoliva@redhat.com>
1439
1440 Contribute sh64-elf.
1441 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
1442 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
1443 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
1444 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
1445 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
1446 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
1447 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
1448 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
1449 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
1450 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
1451 New relocs.
1452 * libbfd.h, bfd-in2.h: Rebuilt.
1453 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
1454 (sh_reloc_map): Map them.
1455 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1456 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
1457 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
1458 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1459 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
1460 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
1461 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
1462 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
1463 datalabel_got_offset.
1464 (sh_elf_link_hash_newfunc): Initialize it.
1465 (sh_elf_relocate_section): Augment the scope of
1466 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
1467 GOT and GOTOFF handling to new SHmedia relocation types. Support
1468 GOT_BIAS.
1469 (sh_elf_check_relocs): Likewise.
1470 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
1471 PLT entries using movi_shori_putval. Support GOT_BIAS.
1472 (sh_elf_finish_dynamic_sections): Likewise.
1473 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
1474 relocation, it's now done by the caller.
1475 (GOT_BIAS): New.
1476 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
1477 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
1478 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
1479 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
1480 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
1481 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
1482 sh64_elf64_hash_table): New.
1483 (sh_elf64_howto_table): Introduce new relocs.
1484 (sh_elf64_info_to_howto): Accept new PIC relocs.
1485 (sh_elf64_relocate_section): Augment the scope of
1486 seen_stt_datalabel. Support new PIC relocs.
1487 (sh_elf64_check_relocs): Support new PIC relocs.
1488 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
1489 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
1490 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
1491 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
1492 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
1493 movi_shori_putval, movi_3shori_putval,
1494 sh64_elf64_create_dynamic_sections,
1495 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
1496 sh64_elf64_size_dynamic_sections,
1497 sh64_elf64_finish_dynamic_symbol,
1498 sh64_elf64_finish_dynamic_sections): New.
1499 (elf_backend_create_dynamic-sections,
1500 bfd_elf64_bfd_link_hash_table_create,
1501 elf_backend_adjust_dynamic_symbol,
1502 elf_backend_size_dynamic_sections,
1503 elf_backend_finish_dynamic_symbol,
1504 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1505 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1506 elf_backend_got_header_size, elf_backend_plt_header_size):
1507 Define.
1508 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1509 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
1510 match official numbers and names; moved unmaching ones to the
1511 range 0xf2-0xff.
1512 * elf32-sh64.c, elf64-sh64.c: Likewise.
1513 2001-03-12 DJ Delorie <dj@redhat.com>
1514 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
1515 sections.
1516 2001-03-12 DJ Delorie <dj@redhat.com>
1517 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
1518 be aligned.
1519 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
1520 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1521 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
1522 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
1523 .cranges section with SEC_SORT_ENTRIES set.
1524 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
1525 incoming sorted .cranges section.
1526 (sh64_bfd_elf_copy_private_section_data): New.
1527 (sh64_elf_final_write_processing): Only sort .cranges and modify
1528 start address if called by linker.
1529 2001-01-08 Ben Elliston <bje@redhat.com>
1530 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
1531 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
1532 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
1533 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1534 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
1535 line. Add comments before all entries.
1536 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
1537 comment.
1538 (sh_elf64_reloc): Correct head comment.
1539 (sh_elf64_relocate_section): Correct spacing.
1540 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
1541 instead call reloc_dangerous callback.
1542 <case R_SH_SHMEDIA_CODE>: New case.
1543 (sh_elf64_gc_mark_hook): Correct spacing.
1544 (sh_elf64_check_relocs): Ditto.
1545 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
1546 New case.
1547 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
1548 functions.
1549 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
1550 clarify describing comment. Add comments before all entries.
1551 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
1552 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
1553 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1554 Sort .cranges section in final link. Prepare to set bit 0 on
1555 entry address.
1556 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
1557 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
1558 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
1559 .cranges section.
1560 (sh64_backend_section_from_shdr): New, to recognize
1561 SHT_SH5_CR_SORTED on incoming .cranges section.
1562 (elf_backend_section_from_shdr): Define.
1563 (sh64_elf_final_write_processing): Sort outgoing .cranges
1564 section. (New, temporarily disabled:) Set bit 0 on entry address
1565 according to ISA type.
1566 (sh64_find_section_for_address): New.
1567 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1568 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1569 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
1570 bfd_malloc, not xmalloc.
1571 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
1572 global.
1573 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1574 temporarily disabled) setting bit 0 on entry address.
1575 (elf_backend_final_write_processing): Define.
1576 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1577 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1578 be a proper relocation for PTA and PTB rather than a marker.
1579 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1580 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1581 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1582 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1583 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1584 Zero src_mask.
1585 * elf64-sh64.c: Ditto.
1586 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1587 * elf32-sh64.c: Include opcodes/sh64-opc.h
1588 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1589 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
1590 parameters. No unused parameters. Caller changed.
1591 <case R_SH_PT_16>: New case.
1592 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1593 * Makefile.in: Regenerate.
1594 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1595 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1596 all code sections.
1597 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1598 (sh64_elf_merge_private_data): Ditto.
1599 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1600 to access stored section flags.
1601 (sh64_elf_final_write_processing): Return immediately unless
1602 called by linker. Use sh64_elf_section_data (cranges) to get size
1603 of linker-generated cranges entries.
1604 (sh64_elf_copy_private_data): Add missing "return true".
1605 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1606 (sh_elf64_merge_private_data): Ditto.
1607 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1608 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1609 elf64-sh64.c:sh64_elf_fake_sections.
1610 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1611 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1612 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1613 (sh64_elf_final_write_processing): New.
1614 (elf_backend_final_write_processing): Define.
1615 (sh64_elf_fake_sections): Get header flags from tdata field.
1616 (sh64_elf_copy_private_data): Do not call
1617 sh64_elf_copy_private_data_internal, just copy e_flags field.
1618 (sh64_elf_merge_private_data): Do not call
1619 sh64_elf_copy_private_data_internal.
1620 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1621 Remove EF_SH64_ABI64, let ELF size make difference.
1622 Remove SH64-specific BFD section flag.
1623 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1624 containing SHmedia through elf_section_data (asect)->tdata
1625 non-zero, not using a BFD section flag.
1626 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1627 (sh64_elf_merge_private_data): Similar.
1628 (elf_backend_section_flags): Don't define.
1629 (sh64_elf_backend_section_flags): Delete.
1630 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1631 not EF_SH64_ABI64.
1632 (sh_elf64_merge_private_data): Similar.
1633 * section.c (Section flags definitions): Don't define
1634 SEC_SH_ISA_SHMEDIA.
1635 (bfd-in2.h): Regenerate.
1636 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
1637 Make DataLabel references work with partial linking.
1638 * elf32-sh64.c: Fix formatting.
1639 (sh64_elf_link_output_symbol_hook): New.
1640 (elf_backend_link_output_symbol_hook): Define to
1641 sh64_elf_link_output_symbol_hook.
1642 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1643 undefined if partial linking. Adjust sanity check.
1644 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1645 (elf_backend_link_output_symbol_hook): Define to
1646 sh64_elf64_link_output_symbol_hook.
1647 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1648 undefined if partial linking. Adjust sanity check.
1649 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1650 Implement semantics for inter-file DataLabel references.
1651 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1652 (sh64_elf64_add_symbol_hook): New.
1653 (sh_elf64_relocate_section): If passing an indirect symbol with
1654 st_type STT_DATALABEL on the way to a symbol with st_other
1655 STO_SH5_ISA32, do not bitor 1 to the relocation.
1656 (elf_backend_add_symbol_hook): Define to
1657 sh64_elf64_add_symbol_hook.
1658 * elf64-sh32.c: Tweak comments.
1659 (DATALABEL_SUFFIX): Define.
1660 (sh64_elf_add_symbol_hook): New.
1661 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1662 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1663 symbol with st_type STT_DATALABEL on the way to a symbol with
1664 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1665 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1666 Pass through STT_DATALABEL.
1667 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1668 (elf_backend_get_symbol_type): Define.
1669 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1670 (elf_backend_get_symbol_type): Define.
1671 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1672 * elf32-sh64.c: Tweak comments.
1673 (sh64_elf_copy_private_data_internal): Add prototype.
1674 (bfd_elf32_bfd_set_private_flags): Define.
1675 (sh64_elf_copy_private_data_internal): Compare machine name, not
1676 textual BFD target name, to check whether to copy section flag
1677 SHF_SH5_ISA32.
1678 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1679 Tweak section-contents-type-mismatch message.
1680 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1681 Validize reloc-types.
1682 * elf64-sh64.c: New file.
1683 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1684 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1685 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1686 Regenerate dependencies.
1687 * Makefile.in: Regenerate.
1688 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1689 bfd_elf64_sh64l_vec.
1690 * configure.in: Handle bfd_elf64_sh64_vec and
1691 bfd_elf64_sh64l_vec.
1692 * configure: Regenerate.
1693 * po/POTFILES.in: Regenerate.
1694 * po/bfd.pot: Regenerate.
1695 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1696 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1697 anything else but EF_SH64 and EF_SH64_ABI64.
1698 (sh64_elf_merge_private_data): Emit error for anything else but
1699 EF_SH64 and EF_SH64_ABI64.
1700 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1701 from targ_selvecs.
1702 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1703 bfd_elf32_sh64l_vec as a temporary measure.
1704 * configure: Regenerate.
1705 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1706 * cpu-sh.c (arch_info_struct): Include sh5 item
1707 unconditionalized.
1708 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1709 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1710 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1711 * elf32-sh64.c: Tweak comments.
1712 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1713 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
1714 (sh64_elf_copy_private_data_internal): Wrap long line.
1715 (sh64_elf_merge_private_data): Rewrite to allow objects from
1716 SH64 subsets to be linked together.
1717 (INCLUDE_SHMEDIA): Define.
1718 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1719 Parenthesize plus-expression inside or-expression.
1720 <global symbol>: Ditto.
1721 (sh_elf_set_mach_from_flags): Remove code refusing
1722 deleted EF_SH64_32BIT_ABI flag.
1723 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
1724 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1725 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1726 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1727 (sh_elf_relocate_section) <local symbol>: Or 1 in
1728 calculation of relocation if sym->st_other & STO_SH5_ISA32.
1729 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1730 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1731 relocation.
1732 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1733 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1734 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1735 Regenerate dependencies.
1736 * Makefile.in: Regenerate.
1737 * archures.c: Add bfd_mach_sh5.
1738 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1739 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
1740 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1741 * configure: Regenerate.
1742 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1743 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1744 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1745 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1746 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1747 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1748 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1749 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1750 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1751 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1752 in item for SH5.
1753 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
1754 for SHmedia relocs.
1755 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
1756 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
1757 shmedia_prepare_reloc, goto final_link_relocate if it returns
1758 non-zero, else fail as before.
1759 (sh_elf_set_mach_from_flags): Provide function only if not defined
1760 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
1761 (sh_elf_set_private_flags): Provide function only if not defined
1762 as a macro.
1763 (sh_elf_copy_private_data): Similar.
1764 (sh_elf_merge_private_data): Similar.
1765 * section.c (SEC_SH_ISA_SHMEDIA): New.
1766 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
1767 * elf32-sh64.c: New file.
1768 * libbfd.h: Regenerate.
1769 * bfd-in2.h: Regenerate.
1770 * po/POTFILES.in: Regenerate.
1771 * po/bfd.pot: Regenerate.
1772 * bfd-in2.h: Regenerate.
1773 * libbfd.h: Regenerate.
1774
e108f470
DJ
17752002-02-07 Daniel Jacobowitz <drow@mvista.com>
1776
1777 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
1778 been included, not drag it in.
1779 * bfd-in2.h: Regenerate.
1780
259d18a3
L
17812002-02-06 H.J. Lu (hjl@gnu.org)
1782
1783 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
1784 the mach and ISA fields if necessary.
1785
f13b834e
NC
17862002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1787
1788 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1789 ARM architecture when an F_ARM_5 flag is detected, since we cannot
1790 be sure exactly which architecture this represents.
1791
82f6addb
NC
17922002-02-05 Nick Clifton <nickc@redhat.com>
1793
1794 * po/tr.po: Updated translation.
1795
899f54f5
AM
17962002-02-05 Alan Modra <amodra@bigpond.net.au>
1797
1798 From Jimi X <jimix@watson.ibm.com>
1799 * archures (bfd_mach_ppc64): Define.
1800 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1801 (bfd_powerpc_arch): Define.
1802 * bfd-in2.h: Regenerate.
1803 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1804 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1805 (bfd_powerpc_archs): Add default powerpc64 arch.
1806
248866a8
AM
18072002-02-05 Alan Modra <amodra@bigpond.net.au>
1808
1809 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1810 against section syms in readonly sections. Don't do the global
1811 sym check if we find one.
1812 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1813 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 1814 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
1815 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1816 (elf_s390_grok_prstatus): Add missing prototype.
1817
4fa5c2a8
HPN
18182002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1819
1820 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1821 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1822 Call bfd_get_section_by_name only once. Initialize
1823 bpodata->n_bpo_relocs_this_section.
1824 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1825 referring to DSOs.
1826 (bpo_reloc_request_sort_fn): Don't use difference of values as
1827 return-value.
1828
537c972e
DB
18292002-02-02 David O'Brien <obrien@FreeBSD>
1830
1831 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
1832 version 4.5 and later the same as 5-CURRENT.
1833 * configure: Re-generate.
1834
006336b8
JT
18352002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1836
1837 * config.bfd (hppa*-*-netbsd*): New target.
1838
6c571f00
PT
18392002-01-31 Philipp Thomas <pthomas@suse.de>
1840
19397422
AM
1841 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1842 to front of message. Unify messages with elf32-arm.h. Use
1843 commas where neccessary.
1844 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1845 ERROR in messages. Unify messages with coff-arm.c. Correct
1846 VFP/FPA error message.
1847 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1848 APCS-32 for translation.
6c571f00 1849
930b4cb2
HPN
18502002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1851
1852 Perform on-demand global register allocation from
1853 R_MMIX_BASE_PLUS_OFFSET relocs.
1854 * elf64-mmix.c (struct bpo_reloc_section_info, struct
1855 bpo_reloc_request, struct bpo_greg_section_info): New.
1856 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1857 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1858 _bfd_mmix_check_all_relocs,
1859 _bfd_mmix_prepare_linker_allocated_gregs,
1860 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1861 (elf_mmix_howto_table): Correct src_mask for most relocs.
1862 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1863 case.
1864 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1865 case. Fix typo in comment. New label do_mmix_reloc.
1866 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1867 store first object file with a base-plus-offset reloc. Call
1868 mmix_elf_check_common_relocs for the part common with mmo.
1869 (mmix_elf_final_link): Write out linker-allocated register
1870 contents section.
1871 (elf_backend_gc_sweep_hook): Define.
1872 (bfd_elf64_bfd_relax_section): Define.
1873
1874 * mmo.c: Don't include <ctype.h>
1875 (mmo_init): Correct init-once logic.
1876
3e36d993
TR
18772002-02-01 Tom Rix <trix@redhat.com>
1878
1879 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1880
ba323545
AM
18812002-02-01 Alan Modra <amodra@bigpond.net.au>
1882
1883 * Makefile.am: Run "make dep-am"
1884 * Makefile.in: Regenerate.
1885
012884d6
DB
18862002-01-31 David O'Brien <obrien@FreeBSD>
1887
1888 * configure.in: Recognize the differences in core files from FreeBSD
1889 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
1890 5-CURRENT.
1891 * configure: Regenerate.
1892
3b16e843
NC
18932002-01-31 Ivan Guzvinec <ivang@opencores.org>
1894
1895 * coff-or32.c: New file.
1896 * cpu-or32.c: New file.
1897 * elf32-or32.c: New file.
1898 * archures.c: Add support for or32.
1899 * targets.c: Add support for or32.
1900 * bfd-in2.h: Regenerate.
7dc0ab31 1901 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
1902 coff_write_object_contents): Add support for or32.
1903 * config.bfd: Add target.
1904 * configure.in: Add support for or32.
1905 * configure: Regenerate.
1906 * Makefile.am: Add support for or32.
1907 * Makefile.in: Regenerate.
3b16e843
NC
1908 * po/SRC-POTFILES.in: Add or32 files.
1909 * po/bfd.pot: Regenerate.
7dc0ab31 1910
caf8ca8e
NC
19112002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
1912 Don Lindsay <lindsayd@cisco.com>
1913
1914 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1915 false' with a return of a bfd_reloc_ error code.
1916
e5dfef09
HPN
19172002-01-31 Hans-Peter Nilsson <hp@axis.com>
1918
1919 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1920 unexport unreferenced symbols when --export-dynamic. Call
1921 _bfd_elf_strtab_delref when unexporting.
1922
4e4770d0
DJ
19232002-01-30 Daniel Jacobowitz <drow@mvista.com>
1924
1925 * bfd-in.h: Include <stdbool.h> if it is available.
1926 * bfd-in2.h: Regenerated.
1927
e1fa50e7
AM
19282002-01-31 Alan Modra <amodra@bigpond.net.au>
1929
1930 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1931 not go via the plt.
1932
b5f79c76
NC
19332002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1934
b5f79c76
NC
1935 * archures.c: Tidy up formatting of embedded comments.
1936 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 1937 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
1938 * reloc.c: Tidy up formatting of ordinary & embedded comments.
1939 * section.c: Tidy up formatting of embedded comments.
1940 * syms.c: Tidy up formatting of embedded comments.
1941 * targets.c: Tidy up formatting of embedded comments.
1942
1943 * bfd-in2.h: Regenerate.
1944
ca09e32b
NC
19452002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1946
1947 * vms-tir.c (cmd_name): New function.
1948 (tir_cmd_name): New function.
1949 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1950 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1951 Fix formatting.
7dc0ab31 1952
ca09e32b
NC
1953 * peXXigen.c (pe_print_idata): Rearrange message to aid in
1954 translation.
1955 (pe_print_pdata): Rearrange message to aid in translation.
1956
1957 * libbfd.c (warn_deprecated): Rearrange error message to aid in
1958 translation.
1959
1960 * ihex.c (ihex_write_object_contents): Fix spelling typo.
1961
1962 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1963
1964 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1965 message to aid in translation.
1966
1967 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1968 to aid in translation.
1969
1970 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1971
7dc0ab31 19722002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
1973
1974 * coff-arm.c, elf32-elf.h: Unify messages.
1975
05f64ac6
NC
19762002-01-30 Nick Clifton <nickc@redhat.com>
1977
1978 * po/sv.po: Updated translation.
1979
f5a3e38a
NC
19802002-01-30 Philipp Thomas <pthomas@suse.de>
1981
1982 * dwarf2.c (read_abbrev): Use full section name in error message.
1983 (decode_line_info): Likewise.
661a3fd4
NC
1984
1985 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1986 message.
1987
d926e03d
AM
19882002-01-30 Alan Modra <amodra@bigpond.net.au>
1989
1990 * elf64-ppc.c (func_desc_adjust): Only provide missing function
1991 descriptor symbols for undefined function code syms. Clear
1992 ELF_LINK_NON_ELF so that they can stay weak.
1993
030d18fb 19942002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 1995 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
1996
1997 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
1998 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
1999 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
2000 generation.
2001 * bfd-in2.h: Regenerate.
2002
fcc76bea
CD
20032002-01-29 Chris Demetriou <cgd@broadcom.com>
2004
2005 * elf32-mips.c: Add additional comments about HI16 relocation
2006 processing.
2007 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
2008 pc-relative relocations. (Reverts change made on 2001-10-31.)
2009 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
2010 for pc-relative relocations.
2011 (mips_elf_calculate_relocation): Add a comment about a kludge
2012 in the R_MIPS_GNU_REL_HI16 handling.
2013 (_bfd_mips_elf_relocate_section): Implement that kludge;
2014 adjust pc-relative HI16 relocation for difference in HI16 and
2015 LO16 addresses, since it can't easily be done in
2016 mips_elf_calculate_relocation.
2017
f9cd9119
MS
20182002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2019
2020 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
2021 relocations with PC32 relocations for undefined or weak symbols.
2022 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
2023 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
2024
702248bb
JT
20252002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2026
2027 * elfcore.h (elf_core_file_p): Improve comment for last change.
2028
4867be41
DJ
20292002-01-27 Daniel Jacobowitz <drow@mvista.com>
2030
2031 * configure: Regenerated.
2032
a94cef6a
JT
20332002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
2034
2035 * elfcore.h (elf_core_file_p): Set the machine architecture
2036 before processing the program headers.
2037
7562a296
HPN
20382002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2039
966abd70
HPN
2040 * configure.in <64-bit configuration>: If using gcc, check and
2041 emit error for egcs-1.1.2.
2042 * configure: Regenerate.
2043
e8eab623
NC
20442002-01-26 Egor Duda <deo@logos-m.ru>
2045
2046 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
2047 as possible to avoid stack corruption.
2048
73896efb
RH
20492002-01-26 Richard Henderson <rth@redhat.com>
2050
2051 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
2052 for non-allocated sections.
2053
20542002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
2055
2056 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
2057 prstat.pr_reg even if it is a struct.
2058
73896efb 20592002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
2060
2061 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
2062
3d66c4f7
NC
20632002-01-25 Philipp Thomas <pthomas@suse.de>
2064
2065 * coffgen.c (coff_print_symbol): Don't mark info message
2066 for translation.
2067
9460ecda
NC
20682002-01-25 Nick Clifton <nickc@redhat.com>
2069
2070 * po/fr.po: Updated translation.
2071 * po/es.po: Updated translation.
2072
cc9ff76a
AM
20732002-01-25 Philipp Thomas <pthomas@suse.de>
2074
2075 * coff-alpha.c (alpha_relocate_section): Unify warning message
2076 for GP relative relocations without GP defined.
2077 * coff-mips.c (mips_relocate_section): Likewise.
2078
c68836a9
AM
20792002-01-25 Alan Modra <amodra@bigpond.net.au>
2080
2081 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
2082 unsigned overflow when new_offset < old_offset.
2083
e8eab623 20842002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
2085
2086 * bfd.c (_bfd_abort): Fix typo.
2087
8ba89f17
RH
20882002-01-23 Richard Henderson <rth@redhat.com>
2089
2090 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
2091 plt entries for undefweak symbols.
2092
c6953948
NC
20932002-01-23 Steve Ellcey <sje@cup.hp.com>
2094
2095 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
2096 DEFAULT_VECTOR.
2097 (bfd_elf64_ia64_hpux_big_vec): Ditto.
2098 (bfd_elf32_h8300_vec): Ditto.
2099
41bd81ab
AM
21002002-01-23 Alan Modra <amodra@bigpond.net.au>
2101
2102 * elf64-ppc.c: Remove stale part of ABI comment.
2103 (NO_OPD_RELOCS): Define.
2104 (ppc64_elf_check_relocs): Use it.
2105 (ppc64_elf_relocate_section): Here too.
2106 (build_one_stub): Don't point function syms at the stub. Instead,
2107 hijack plt.offset.
2108 (ppc64_elf_relocate_section): Check whether REL24 relocs should
2109 really go to the stub. Make all dynamic relocs in opd against
2110 locals.
2111 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
2112 plt.offset.
2113
f304919d
RH
21142002-01-22 Richard Henderson <rth@redhat.com>
2115
2116 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
2117
c0ef99a7
AM
21182002-01-22 Alan Modra <amodra@bigpond.net.au>
2119
60ee0d4a
AM
2120 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
2121 TOC_BASE_OFF adjustment.
2122
c0ef99a7
AM
2123 * Makefile.am: Run "make dep-am".
2124 * Makefile.in: Regenerate.
2125 * po/SRC-POTFILES.in: Regenerate.
2126
64328b46
AM
21272002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
2128
2129 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
2130 host defines.
2131
59953665 21322002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
2133
2134 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
2135 Check for and emit error if sgot is NULL at this point.
2136
9596feea
JT
21372002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2138
2139 * config.bfd (ia64*-*-netbsd*): New target.
2140
7b45c6e1
AM
21412002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2142
2143 * som.c (som_write_space_strings): Comment typo fix.
2144
e5094212
AM
21452002-01-21 Alan Modra <amodra@bigpond.net.au>
2146
e86ce104
AM
2147 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
2148 is_func_descriptor fields.
2149 (link_hash_newfunc): Init them.
2150 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
2151 dot are candidates for plt entries. When processing .opd relocs,
2152 set function descriptor strings to point inside function code
2153 string, and set new ppc_link_hash_entry fields.
2154 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
2155 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
2156 function descriptors. It's now done in..
2157 (func_desc_adjust): New.
2158 (ppc64_elf_func_desc_adjust): New.
2159 (define elf_backend_always_size_sections): Define.
2160 (ppc64_elf_hide_symbol): New.
2161 (define elf_backend_hide_symbol): Define.
2162 (allocate_dynrelocs): Remove code looking up function descriptors
2163 as that has been done earlier.
2164 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
2165 table.
2166 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
2167 up function descriptor.
2168 (build_one_stub): Look up the function code sym. Check for
2169 invalid plt offsets.
2170 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
2171 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
2172
e5094212
AM
2173 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
2174 boolean param.
2175 (_bfd_elf_link_hash_hide_symbol): Likewise.
2176 * elflink.h (elf_link_add_object_symbols): Adjust call to
2177 elf_backend_hide_symbol.
2178 (elf_fix_symbol_flags): Likewise.
2179 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
2180 than bfd_alloc.
2181 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
2182 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
2183 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2184 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
2185 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
2186 and adjust to suit.
2187 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
2188 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
2189 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2190
40b8271b
AM
21912002-01-18 Alan Modra <amodra@bigpond.net.au>
2192
2193 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
2194 dynamic function descriptor symbol, not the associated function
2195 symbol.
2196
55baa95b
EC
21972002-01-17 Eric Christopher <echristo@redhat.com>
2198
2199 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
2200
328577ad
NC
22012002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2202
2203 * po/bfd.pot: Regenerate.
2204 * po/fr.po: Regenerate.
2205
af746e92
AM
22062002-01-17 Alan Modra <amodra@bigpond.net.au>
2207
2208 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
2209 Remove "Elf_Internal_Shdr *" param.
2210 (_bfd_mips_elf_section_from_bfd_section): Ditto.
2211 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
2212 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
2213 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
2214 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
2215 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
2216 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
2217 function to override special sections. Remove hdr arg from
2218 backend call, and don't loop.
2219
175e9962
EC
22202002-01-16 Eric Christopher <echristo@redhat.com>
2221
2222 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
2223 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
2224 relocations requiring gp0 and gp.
2225
96a846ea
RE
22262002-01-16 Richard Earnshaw <rearnsha@arm.com>
2227
175e9962 2228 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
2229 EF_ARM_VFP_FLOAT.
2230 (elf32_arm_print_private_bfd_data): Likewise.
2231
af3ae48d
NC
22322002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
2233
2234 * po/tr.po: Import new version.
2235
10ed1bba
AM
22362002-01-16 Alan Modra <amodra@bigpond.net.au>
2237
2238 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
2239 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
2240 (ORI_R0_R0_0): Correct.
2241
5d1634d7
AM
22422002-01-16 Alan Modra <amodra@bigpond.net.au>
2243
2244 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
2245 when plt_not_loaded.
2246 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
2247 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
2248 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
2249 (ppc64_elf_glink_code): Delete.
2250 (PPC64_ELF_GLINK_SIZE): Delete.
2251 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
2252 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
2253 ORI_R0_R0_0): Define.
2254 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
2255 (struct ppc_link_hash_table): Add sstub and plt_overflow.
2256 (ppc64_elf_link_hash_table_create): Init them.
2257 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
2258 Don't copy to shared lib.
2259 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
2260 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
2261 (allocate_dynrelocs <plt>): Don't change function sym here. Make
2262 room for .stub and .glink code.
2263 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
2264 DT_PPC64_GLINK.
2265 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
2266 bfd_elf64_bfd_final_link.
2267 (bfd_elf64_bfd_final_link): Don't define.
2268 (ppc64_elf_size_stubs): New.
2269 (build_plt_stub): New.
2270 (build_one_stub): New.
2271 (ppc64_elf_build_stubs): New.
2272 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
2273 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
2274 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
2275 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
2276 case output sections not separate. Adjust DT_RELASZ to not
2277 include plt relocs. Set reserved got entry. Set got and plt
2278 entry size.
2279 (elf_backend_got_header_size): Set to 8.
2280 * elf64-ppc.h: New file.
2281
c601ffdb
AM
22822002-01-16 Alan Modra <amodra@bigpond.net.au>
2283
2284 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
2285 sections, use bfd_section_list_remove.
2286 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2287 * elflink.h (elf_link_add_object_symbols): When removing all
2288 sections, use bfd_section_list_clear.
2289
8fb4cb7f
NC
22902002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2291
2292 * po/sv.po: New file: Swedish translation.
2293 * configure.in (ALL_LINGUAS): Add sv.
2294 * configure: Regenerate.
2295
d3c456e9
JJ
22962002-01-15 Jakub Jelinek <jakub@redhat.com>
2297
2298 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
2299 * elf.c (merge_sections_remove_hook): New function.
2300 (_bfd_elf_merge_sections): Pass it as 3rd argument to
2301 _bfd_merge_sections.
2302 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
2303 * libbfd.h: Rebuilt.
2304 * merge.c (_bfd_merge_sections): Add remove_hook argument.
2305 Call remove_hook if a SEC_EXCLUDE section is encountered.
2306
1f7fd478
NC
23072002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2308
2309 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
2310 (xstormy16_reloc_map): Initialise new field with correct howto
2311 table.
2312 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2313 howto entry.
2314
b87011e9
MS
23152002-01-10 Michael Snyder <msnyder@redhat.com>
2316
2317 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2318 (elfcore_write_pstatus): Use long instead of pid_t;
2319 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2320
175e9962 23212002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
2322
2323 * elf.c: Update copyright years.
2324 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2325 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2326
7c76fa91
MS
23272002-01-08 Michael Snyder <msnyder@redhat.com>
2328
2329 Add capability to write corefile note sections, for gdb.
2330 * elf.c (elfcore_write_note): New function.
2331 (elfcore_write_prpsinfo): New function.
2332 (elfcore_write_prstatus): New function.
2333 (elfcore_write_pstatus): New function.
2334 (elfcore_write_prfpreg): New function.
2335 (elfcore_write_prxfpreg): New function.
97996af6 2336 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 2337
e1fddb6b
AO
23382002-01-08 Alexandre Oliva <aoliva@redhat.com>
2339
2340 * elf.c (elf_fake_sections): Propagate errors from
2341 elf_backend_fake_section.
2342
8d05742f
JT
23432002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2344
2345 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2346 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2347 (elf32-sh-nbsd.lo): New rule.
2348 * Makefile.in: Regenerate.
2349 * config.bfd (sh*le-*-netbsdelf*): New target.
2350 (sh*-*-netbsdelf*): New target.
2351 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2352 (bfd_elf32_shnbsd_vec): New vector.
2353 (bfd_elf32_shlnbsd_vec): New vector.
2354 * configure: Regenerate.
2355 * elf32-sh-nbsd.c: New file.
2356 * targets.c: Update copyright years.
175e9962 2357 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
2358 bfd_elf32_shnbsd_vec.
2359
1dba4cb4
AH
23602002-01-07 Aldy Hernandez <aldyh@redhat.com>
2361
2362 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2363
47b22aef
GK
23642002-01-07 Geoffrey Keating <geoffk@redhat.com>
2365
2366 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
2367 of a symbol in a section that will be deleted.
2368
be2d1673
NC
23692002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2370
2371 * po/es.po: New file: Spanish translation.
2372 * configure.in (ALL_LINGUAS): Add es.
2373 * configure: Regenerate.
2374
d9cf1b54
AM
23752002-01-06 Steve Ellcey <sje@cup.hp.com>
2376
2377 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
2378 argument so we can handle HP-UX specially.
2379 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
2380 (elfNN_hpux_backend_section_from_bfd_section): New for support
2381 of SHN_IA_64_ANSI_COMMON.
2382 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
2383 (is_unwind_section_name): Add special HP-UX support.
2384 (elfNN_ia64_section_from_shdr): Add support for more sections.
2385 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
2386 add support for more sections.
2387 (elfNN_ia64_additional_program_headers): Modify
2388 is_unwind_section_name call.
2389 (elfNN_ia64_modify_segment_map): Remove assumption that there is
2390 only one unwind section in segment.
2391
3f3c5c34
AM
23922002-01-06 Alan Modra <amodra@bigpond.net.au>
2393
2394 * syms.c (_bfd_generic_make_empty_symbol): New function.
2395 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
2396 _bfd_generic_make_empty_symbol.
2397 * libbfd.h: Regenerate.
2398 * bfd-in2.h: Regenerate.
2399 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
2400 (hppabsd_core_get_symtab_upper_bound): Don't define.
2401 (hppabsd_core_get_symtab): Likewise.
2402 (hppabsd_core_print_symbol): Likewise.
2403 (hppabsd_core_get_symbol_info): Likewise.
2404 (hppabsd_core_bfd_is_local_label_name): Likewise.
2405 (hppabsd_core_get_lineno): Likewise.
2406 (hppabsd_core_find_nearest_line): Likewise.
2407 (hppabsd_core_bfd_make_debug_symbol): Likewise.
2408 (hppabsd_core_read_minisymbols): Likewise.
2409 (hppabsd_core_minisymbol_to_symbol): Likewise.
2410 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
2411 Formatting fixes.
2412 * hpux-core.c: Similarly.
2413 * irix-core.c: Similarly.
2414 * osf-core.c: Similarly.
2415 * sco5-core.c: Similarly.
2416 * binary.c (binary_make_empty_symbol): Remove function, define as
2417 _bfd_generic_make_empty_symbol.
2418 * ihex.c (ihex_make_empty_symbol): Likewise.
2419 * mmo.c (mmo_make_empty_symbol): Likewise.
2420 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
2421 * srec.c (srec_make_empty_symbol): Likewise.
2422 * versados.c (versados_make_empty_symbol): Likewise.
2423 * vms.c (_bfd_vms_make_empty_symbol): Remove.
2424 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
2425 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
2426 rather than _bfd_vms_make_empty_symbol.
2427 * vms-misc.c (new_symbol): Likewise.
2428
3f0a7f7f
AM
24292002-01-05 Alan Modra <amodra@bigpond.net.au>
2430
9e7b37b3
AM
2431 * section.c (bfd_section_init): Remove unnecessary initialisations.
2432 (bfd_section_list_clear): New function.
2433 (bfd_section_list_remove, bfd_section_list_insert): New macros.
2434 (_bfd_strip_section_from_output): Use them.
2435 * coffcode.h (coff_set_alignment_hook): Likewise.
2436 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
2437 * elf64-mips.c (mips_elf64_final_link): Likewise.
2438 * elf64-mmix.c (mmix_elf_final_link): Likewise.
2439 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2440 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
2441 * bfd-in2.h: Regenerate.
2442
2443 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
2444 rather than doing our own section handling. Clean up after errors
2445 with bfd_release and bfd_section_list_clear. Handle unexpected
2446 flags.
2447 * aoutf1.h (sunos4_core_file_p): Likewise.
2448 * aix386-core.c (aix386_core_file_p): Likewise.
2449 * cisco-core.c (cisco_core_file_validate): Likewise.
2450 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
2451 * trad-core.c (trad_unix_core_file_p): Likewise.
2452
2453 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
2454 with bfd_release and bfd_section_list_clear.
2455 * hpux-core.c (hpux_core_core_file_p): Likewise.
2456 * irix-core.c (irix_core_core_file_p): Likewise.
2457 * lynx-core.c (lynx_core_file_p): Likewise.
2458 * osf-core.c (osf_core_core_file_p): Likewise.
2459 * rs6000-core.c (rs6000coff_core_p): Likewise.
2460 * sco5-core.c (sco5_core_file_p): Likewise.
2461
3f0a7f7f
AM
2462 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
2463 sign extension adjustments without conditionals.
2464
a3aa38ee
JJ
24652002-01-04 Jakub Jelinek <jakub@redhat.com>
2466
2467 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
2468 CIE at .eh_frame start is removed due to no FDEs referencing it.
2469
8a8b2d4b
AJ
24702002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2471
2472 * config.bfd (x86_64-*-netbsd*): New target.
2473 * configure.in (x86_64-*-netbsd*): Set COREFILE
2474 to netbsd-core.lo.
2475 * configure: Regenerated.
2476
04b5af89
TR
24772002-01-03 Tom Rix <trix@redhat.com>
2478
2479 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
2480 for recent bfd_make_section_anyway change.
2481
51c5503b
NC
24822002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
2483
2484 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2485 R_ARM_THM_PC11 reloc.
2486
07f7c046
NC
24872002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2488
2489 * configure.in (LINGUAS): Add ja.
2490 * configure: Regenerate.
2491 * po/ja.po: Import from translation project's web site.
2492
5eefb65f
NC
24932002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2494
2495 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
2496 messages to ease translation into other languages.
2497
39e90f10 2498For older changes see ChangeLog-0001
56882138
AM
2499\f
2500Local Variables:
2501mode: change-log
2502left-margin: 8
2503fill-column: 74
2504version-control: never
2505End: