1 2002-05-18 Tom Rix <trix@redhat.com>
3 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
5 2002-05-17 Alan Modra <amodra@bigpond.net.au>
7 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
8 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
9 we've already warned about an undefined symbol. Report more
10 detail on reloc errors.
12 2002-05-17 Alan Modra <amodra@bigpond.net.au>
14 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
15 * configure.in: Invoke AM_INSTALL_LIBBFD.
16 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
17 (install_libbfd): .. New target.
18 (uninstall_libbfd): Likewise.
19 (install-bfdlibLTLIBRARIES): Likewise.
20 (uninstall-bfdlibLTLIBRARIES): Likewise.
23 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
24 * aclocal.m4: Regenerate.
25 * configure: Regenerate.
26 * Makefile.in: Regenerate.
28 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
30 * hash.c (bfd_hash_lookup): Remove computation of len from inside
33 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
35 * config.bfd: Add targets for sh64-linux (little endian and
38 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
40 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
41 is located in the same section as the import table. Instead
42 check, and if necessary load the section containing the thunk.
44 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
46 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
48 (xcoff64_core_file_matches_executable_p): Replace bfd_read
51 2002-05-15 Alan Modra <amodra@bigpond.net.au>
53 * aix5ppc-core.c: Warning fixes.
54 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
55 * aout-target.h (MY_bfd_link_just_syms): Define.
56 * aout-tic30.c (MY_bfd_link_just_syms): Define.
57 * bfd.c (bfd_link_just_syms): Define.
58 * binary.c (binary_bfd_link_just_syms): Define.
59 * bout.c (b_out_bfd_link_just_syms): Define.
60 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
61 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
62 * coffcode.h (coff_bfd_link_just_syms): Define.
63 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
64 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
65 (_bfd_elf_link_just_syms): Declare.
66 * elf.c (_bfd_elf_link_just_syms): New function.
67 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
68 sections haven't already been discarded by the linker.
69 * elflink.h (elf_link_add_object_symbols): Likewise for stab
70 sections and SEC_MERGE sections.
71 (elf_bfd_discard_info): Similarly here.
72 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
73 * i386msdos.c (msdos_bfd_link_just_syms): Define.
74 * i386os9k.c (os9k_bfd_link_just_syms): Define.
75 * ieee.c (ieee_bfd_link_just_syms): Define.
76 * ihex.c (ihex_bfd_link_just_syms): Define.
77 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
78 (_bfd_generic_link_just_syms): Declare.
79 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
80 * linker.c (_bfd_generic_link_just_syms): New function.
81 * mmo.c (mmo_bfd_link_just_syms): Define.
82 * nlm-target.h (nlm_bfd_link_just_syms): Define.
83 * oasys.c (oasys_bfd_link_just_syms): Define.
84 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
85 * som.c (som_bfd_link_just_syms): Define.
86 * srec.c (srec_bfd_link_just_syms): Define.
87 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
88 (BFD_JUMP_TABLE_LINK): And here.
89 * tekhex.c (tekhex_bfd_link_just_syms): Define.
90 * versados.c (versados_bfd_link_just_syms): Define.
91 * vms.c (vms_bfd_link_just_syms): Define.
92 * libbfd.h: Regenerate.
93 * bfd-in2.h: Regenerate.
95 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
97 * elf32-mips.c: Remove superfluous definitions copied from
99 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
100 SGIish vectors to check the special case.
101 (mips_elf_hi16_reloc): Fix comment.
102 (mips_elf_got16_reloc): Likewise.
103 (_bfd_mips_elf32_gprel16_reloc): Likewise.
104 (elf_reloc_map): Code cleanup.
105 (mips_reloc_map): Add comment.
106 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
107 (mips_elf32_rtype_to_howto): Likewise.
108 (mips_elf32_discard_info): Likewise.
109 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
110 lead to IRIX compatibility now.
112 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
114 * elfxx-mips.c: Call it IRIX, not Irix in comments.
116 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
118 * config.bfd (shle-*-netbsdelf*): Add target which includes
121 2002-05-13 David Edelsohn <edelsohn@gnu.org>
123 * configure.in: Revert 2002-04-07. Instead, auto-configure
125 * configure: Regenerate.
126 * config.in: Regenerate.
127 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
130 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
132 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
134 * configure: Regenerate.
136 2002-05-13 Alan Modra <amodra@bigpond.net.au>
138 * Makefile.am (install-data-local): Install headers to
139 $(exec_prefix)/include.
140 * Makefile.in: Regenerate.
142 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
143 Daniel Jacobowitz <drow@mvista.com>
145 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
148 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
150 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
151 hppa*-*-openbsd*): New targets.
152 * configure.in (alpha*-*-openbsd*): Set COREFILE.
153 * configure: Regenerate.
155 2002-05-10 Tom Rix <trix@redhat.com>
157 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
158 xcoff64_ppc_relocate_section.
159 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
160 * libxcoff.h: Common xcoff_reloc_type function declaration.
162 2002-05-10 Alan Modra <amodra@bigpond.net.au>
164 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
165 addend in 2002-05-09 commit.
167 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
168 don't look for stubs on all undefined syms.
170 2002-05-09 Alan Modra <amodra@bigpond.net.au>
172 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
173 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
176 * elf32-i386.c (elf_howto_table): Comments.
177 (elf_i386_relocate_section): Handle more relocs for relocatable
178 linking and against SEC_MERGE sections.
180 2002-05-08 Alan Modra <amodra@bigpond.net.au>
182 * elf32-ppc.c (ppc_elf_create_got): New function.
183 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
184 _bfd_elf_create_dynamic_sections. Correct .plt flags.
185 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
186 _bfd_elf_create_got_section.
188 2002-05-07 Alan Modra <amodra@bigpond.net.au>
190 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
191 * elfxx-target.h (elf_backend_rela_normal): Define.
192 (elfNN_bed): Init rela_normal.
193 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
194 for section symbols here if rela_normal. Simplify abs section test.
195 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
196 return immediately. Remove code handling relocatable linking.
197 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
198 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
199 * elf32-i370.c (i370_elf_relocate_section): Likewise.
200 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
201 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
202 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
203 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
204 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
205 * elf32-s390.c (elf_s390_relocate_section): Likewise.
206 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
207 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
208 * elf64-s390.c (elf_s390_relocate_section): Likewise.
209 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
210 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
211 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
212 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
213 * elf-m10200.c (elf_backend_rela_normal): Define.
214 * elf-m10300.c (elf_backend_rela_normal): Define.
215 * elf32-fr30.c (elf_backend_rela_normal): Define.
216 * elf32-i370.c (elf_backend_rela_normal): Define.
217 * elf32-i860.c (elf_backend_rela_normal): Define.
218 * elf32-m68k.c (elf_backend_rela_normal): Define.
219 * elf32-mcore.c (elf_backend_rela_normal): Define.
220 * elf32-openrisc.c (elf_backend_rela_normal): Define.
221 * elf32-ppc.c (elf_backend_rela_normal): Define.
222 * elf32-s390.c (elf_backend_rela_normal): Define.
223 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
224 * elf64-ppc.c (elf_backend_rela_normal): Define.
225 * elf64-s390.c (elf_backend_rela_normal): Define.
226 * elf64-x86-64.c (elf_backend_rela_normal): Define.
227 * elfxx-ia64.c (elf_backend_rela_normal): Define.
228 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
229 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
231 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
233 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
234 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
236 2002-05-06 Alan Modra <amodra@bigpond.net.au>
238 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
239 when not relocatable. Fix reloc_emitter call for K&R.
241 2002-05-04 Alan Modra <amodra@bigpond.net.au>
243 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
244 reloading local sym addend mistakenly removed in 2002-05-01 change.
246 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
247 (read_abbrevs): Change "offset" param to bfd_vma.
248 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
249 Change "abbrev_offset" to bfd_vma.
250 (read_indirect_string): Use correct conversion chars in error
251 message format string, cast bfd_vma's to unsigned long.
252 (read_abbrevs): Likewise.
253 (read_attribute_value): Likewise.
254 (decode_line_info): Likewise.
255 (scan_unit_for_functions): Likewise.
256 (parse_comp_unit): Likewise.
258 2002-05-04 Tom Rix <trix@redhat.com>
260 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
261 (coff_swap_reloc_out): Same.
262 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
263 (xcoff_swap_reloc_out): Same.
264 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
265 case some 16 bit relocs. Add reloc value to output.
266 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
267 R_RBR. Improve names.
268 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
269 (bfd_xcoff_backend_data): Update with new reloc swap names.
270 (bfd_pmac_xcoff_backend_data) : Same.
271 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
272 (xcoff64_swap_reloc_out): Same.
273 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
274 R_POS. Add reloc value to output.
275 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
276 bit R_RBR. Improve names, masks.
277 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
278 (bfd_xcoff_backend_data): Update with new reloc swap names.
279 (bfd_xcoff_aix5_backend_data) : Same.
281 2002-05-04 Alan Modra <amodra@bigpond.net.au>
283 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
284 bfd_count top_index, input_list, all_local_syms.
285 (elf32_hppa_setup_section_lists): New function, split from
286 elf32_hppa_size_stubs.
287 (elf32_hppa_next_input_section): Likewise.
288 (group_sections): Likewise.
289 (get_local_syms): Likewise.
290 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
291 stubs on undefined syms too.
292 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
293 Only access htab elf fields when we have an elf hash table.
294 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
295 (elf32_hppa_next_input_section): Declare.
297 2002-05-04 Bob Byrnes <byrnes@curl.com>
299 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
302 2002-05-03 H.J. Lu (hjl@gnu.org)
304 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
305 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
306 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
307 to hide a global symbol.
308 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
309 forced_local to true.
311 2002-05-02 Richard Henderson <rth@redhat.com>
313 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
314 vs SHN_UNDEF to zero.
316 2002-05-02 Alan Modra <amodra@bigpond.net.au>
318 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
320 <R_PPC64_SECTOFF_DS>: Likewise.
321 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
323 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
324 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
327 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
328 (ppc64_elf_ha_reloc): New function.
329 (ppc64_elf_brtaken_reloc): New function.
330 (ppc64_elf_sectoff_reloc): New function.
331 (ppc64_elf_sectoff_ha_reloc): New function.
332 (ppc64_elf_toc_reloc): New function.
333 (ppc64_elf_toc_ha_reloc): New function.
334 (ppc64_elf_toc64_reloc): New function.
335 (ppc64_elf_unhandled_reloc): New function.
336 (ppc64_elf_howto_raw): Use the above.
337 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
338 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
339 <R_PPC64_SECTOFF_DS>: Likewise.
340 (IS_ABSOLUTE_RELOC): Update.
341 (struct ppc_link_hash_table): Add have_undefweak.
342 (ppc64_elf_link_hash_table_create): Init.
343 (func_desc_adjust): Set have_undefweak.
344 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
345 add the .sfpr blr when have_undefweak.
346 (ppc64_elf_setup_section_lists): Check hash table flavour.
347 (ppc64_elf_next_input_section): Move output_section->owner test to
349 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
350 and relocatable test. Return TOCstart and don't set elf_gp.
351 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
352 offset calculation. Add assert on weak sym branch tweaks.
353 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
354 (ppc64_elf_toc): Declare.
355 (ppc64_elf_next_input_section): Update.
357 2002-05-01 Alan Modra <amodra@bigpond.net.au>
359 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
362 2002-05-01 Alan Modra <amodra@bigpond.net.au>
364 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
365 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
366 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
367 call branches. Correct undefined weak destination.
368 (ppc64_elf_func_desc_adjust): Always create at least one blr in
369 .sfpr, and correct case where either only savef* or restf* is
372 Long branch stubs, multiple stub sections.
373 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
374 (ppc64_elf_next_input_section): Declare.
375 * elf64-ppc.c: Move linker-only prototypes.
376 (STUB_SUFFIX): Define.
377 (enum ppc_stub_type): New.
378 (struct ppc_stub_hash_entry): New.
379 (struct ppc_branch_hash_entry): New.
380 (struct ppc_link_hash_entry): Add stub_cache, oh.
381 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
382 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
383 Rename plt_overflow to stub_error.
384 (ppc_stub_hash_lookup): Define.
385 (ppc_branch_hash_lookup): Define.
386 (stub_hash_newfunc): New function.
387 (branch_hash_newfunc): New function.
388 (link_hash_newfunc): Init new fields.
389 (ppc64_elf_link_hash_table_create): Likewise.
390 (ppc64_elf_link_hash_table_free): New function.
391 (ppc_stub_name): New function.
392 (ppc_get_stub_entry): New function.
393 (ppc_add_stub): New function.
394 (create_linkage_sections): Use bfd_make_section_anyway. Create
395 .branch_lt and .rela.branch_lt sections. Don't create .stub.
396 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
397 and set up for plt call stubs. Link func and func desc syms.
398 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
399 (func_desc_adjust): Avoid hash lookup when func desc sym available
400 via shortcut, and set links when processing.
401 (ppc64_elf_hide_symbol): Likewise.
402 (allocate_dynrelocs): Don't allocate stub section here.
403 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
405 (ppc_type_of_stub): New function.
406 (build_one_stub): Delete.
407 (ppc_build_one_stub): New function.
408 (ppc_size_one_stub): New function.
409 (ppc64_elf_setup_section_lists): New function.
410 (ppc64_elf_next_input_section): New function.
411 (group_sections): New function.
412 (get_local_syms): New function.
413 (ppc64_elf_size_stubs): Rewrite.
414 (ppc64_elf_build_stubs): Rewrite.
415 (ppc64_elf_relocate_section): Look up stub entry for REL24
416 relocs. Don't propagate REL14* to dynamic objects. Look for long
417 branch stubs if REL14* or REL24 relocs won't reach.
418 (bfd_elf64_bfd_link_hash_table_free): Define.
420 2002-04-30 Mark Mitchell <mark@codesourcery.com>
422 * bfd/config.bfd: Add support for powerpc-*-windiss.
424 2002-04-30 Tom Rix <trix@redhat.com>
426 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
427 symbol names into the hash table.
429 2002-04-28 Tom Rix <trix@redhat.com>
431 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
432 calulating relocations.
433 (xcoff_complain_overflow) : Function table for relocation errors.
434 (xcoff_ppc_relocate_section): Use relocation and complain function
436 (xcoff_complain_overflow_unsigned_func): New complain function.
437 (xcoff_complain_overflow_signed_func): Same.
438 (xcoff_complain_overflow_bitfield_func): Same.
439 (xcoff_complain_overflow_dont_func): Same.
440 (xcoff_reloc_type_crel): New recot function.
441 (xcoff_reloc_type_br): Same.
442 (xcoff_reloc_type_ba): Same.
443 (xcoff_reloc_type_toc): Same.
444 (xcoff_reloc_type_rel): Same.
445 (xcoff_reloc_type_neg): Same.
446 (xcoff_reloc_type_pos): Same.
447 (xcoff_reloc_type_fail): Same.
448 (xcoff_reloc_type_noop): Same.
449 * libxcoff.h : Declare common parts for xcoff64.
450 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
451 and complain function tables.
453 2002-04-28 Alan Modra <amodra@bigpond.net.au>
455 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
456 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
458 2002-04-26 Alan Modra <amodra@bigpond.net.au>
460 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
461 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
463 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
464 same as the output before calling elf_link_input_bfd.
466 * coffcode.h (coff_compute_section_file_positions): Set
467 section_tail after shuffling section list.
469 2002-04-24 Christian Groessler <chris@groessler.org>
471 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
472 addresses are 23bit with a special layout, not plain 32bit
473 values. Prevent relocation of immediate values.
475 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
477 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
478 MIPS-16 ASE flags are set, print something to indicate that.
480 2002-04-23 Alan Modra <amodra@bigpond.net.au>
482 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
483 under which a plt call stub is used.
484 (final_link_relocate): Similarly.
485 (allocate_plt_static): Clear h-plabel except when plt entry is
486 exclusively used for a plabel.
487 (allocate_dynrelocs): Use the above to simplify plt sizing.
488 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
489 (elf32_hppa_link_hash_table_create): Init.
491 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
492 (elf32_hppa_check_relocs): Set has_22bit_branch.
494 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
495 (final_link_relocate): Likewise.
497 2002-04-22 Jakub Jelinek <jakub@redhat.com>
499 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
500 search table if some FDE is DW_EH_PE_aligned encoded either.
501 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
503 2002-04-22 Richard Smith <richard@ex-parrot.com>
504 Jakub Jelinek <jakub@redhat.com>
506 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
507 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
509 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
512 2002-04-20 Tom Rix <trix@redhat.com>
514 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
516 2002-04-20 Alan Modra <amodra@bigpond.net.au>
518 * archures.c (bfd_lookup_arch): Move the list order comment..
519 (struct bfd_arch_info): ..to where it belongs.
520 * bfd-in2.h: Regenerate.
522 * archures.c (bfd_lookup_arch): Add comment on list order.
523 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
524 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
525 is always at head of list.
527 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
529 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
530 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
531 definition of these functions for ARM_WINCE builds as they are
533 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
534 for ARM_WINCE builds.
536 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
538 * coff-arm.c (bfd_arm_process_before_allocation):
540 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
542 * cpu-sh.c (scan_mach): Delete.
543 (arch_info_struct): Replace scan_mach with bfd_default_scan.
544 (bfd_sh_arch): Likewise.
546 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
548 * ihex.c (ihex_write_object_contents): Fix check for records
549 crossing 64K boundaries.
551 2002-04-16 Alan Modra <amodra@bigpond.net.au>
553 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
554 type rather than just assuming entries are ELF.
555 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
556 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
557 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
558 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
559 rather than elf_link_hash_entry.
561 2002-04-15 Richard Henderson <rth@redhat.com>
563 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
566 2002-04-15 Michael Snyder <msnyder@redhat.com>
568 * opncls.c (bfd_close): Write contents if writeable.
569 Minor formatting tidy-ups.
571 2002-04-15 Alan Modra <amodra@bigpond.net.au>
573 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
575 2002-04-12 Michael Snyder <msnyder@redhat.com>
577 * bfd-in.h (bfd_get_section_lma): New access macro.
578 Minor white-space fix-up.
580 2002-04-12 Alan Modra <amodra@bigpond.net.au>
582 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
585 2002-04-09 DJ Delorie <dj@redhat.com>
587 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
589 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
591 * coffcode.h (coff_read_word): New.
592 (coff_compute_checksum): New.
593 (coff_apply_checksum): New.
594 (coff_write_object_contents): Call coff_apply_checksum () to
595 apply checksum to PE image.
597 2002-04-08 Randolph Chung <tausq@debian.org>
599 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
600 (elf32_hppa_final_link): Split out sorting logic to..
601 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
602 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
604 2002-04-07 Andrew Cagney <ac131313@redhat.com>
606 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
608 * configure: Re-generate.
610 2002-04-07 Andrew Cagney <ac131313@redhat.com>
612 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
613 is greater or equal to 4.3.3.
614 * configure: Regenerate.
617 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
619 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
620 R_CRIS_32_PCREL>: Fix typo in name.
621 (cris_elf_check_relocs): Always create .rela.got here when
622 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
623 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
626 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
628 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
629 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
631 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
632 * bfd.c (bfd_link_hash_table_free): Define.
633 * binary.c (binary_bfd_link_hash_table_free): Define.
634 * bout.c (b_out_bfd_link_hash_table_free): Define.
635 * coff-rs6000.c (rs6000coff_vec): Include
636 _bfd_generic_link_hash_table_free.
637 (pmac_xcoff_vec): Likewise.
638 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
639 (aix5coff64_vec): Likewise.
640 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
641 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
642 (bfd_elf32_bfd_link_hash_table_free): Define.
643 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
644 (bfd_elf32_bfd_link_hash_table_free): Define.
645 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
647 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
648 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
649 * ieee.c (ieee_bfd_link_hash_table_free): Define.
650 * ihex.c (ihex_bfd_link_hash_table_free): Define.
651 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
652 (_bfd_generic_link_hash_table_free): Add prototype.
653 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
654 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
655 * linker.c (_bfd_generic_link_hash_table_free): New function.
656 * mmo.c (mmo_bfd_link_hash_table_free): Define.
657 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
658 * oasys.c (oasys_bfd_link_hash_table_free): Define.
659 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
660 * som.c (som_bfd_link_hash_table_free): Define.
661 * srec.c (srec_bfd_link_hash_table_free): Define.
662 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
663 * versados.c (versados_bfd_link_hash_table_free): Define.
664 * vms.c (vms_bfd_link_hash_table_free): New function.
665 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
667 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
668 instead of bfd_alloc.
669 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
670 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
671 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
672 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
673 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
674 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
675 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
676 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
677 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
678 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
679 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
680 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
681 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
682 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
683 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
684 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
685 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
686 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
687 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
688 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
689 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
690 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
691 * m68klinux.c (linux_link_hash_table_create): Likewise.
692 * sparclinux.c (linux_link_hash_table_create): Likewise.
693 * sunos.c (sunos_link_hash_table_create): Likewise.
694 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
696 * targets.c: Add _bfd_link_hash_table_free to xvec.
698 * bfd-in2.h: Regenerate.
699 * libbfd.h: Regenerate.
700 * libcoff.h: Regenerate.
702 2002-04-04 Alan Modra <amodra@bigpond.net.au>
704 * dep-in.sed: Cope with absolute paths.
705 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
707 * Makefile.in: Regenerate.
708 * coff-arm.c: Fix copyright date.
709 * cpu-h8300.c: Likewise.
710 * cpu-i370.c: Likewise.
711 * cpu-s390.c: Likewise.
712 * cpu-mips.c: Likewise.
713 * po/SRC-POTFILES.in: Regenerate.
715 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
717 * Makefile.am: Add elfxx-mips.c to the known backends.
718 (elf32-mips.lo): remove dependency to coff/external.h.
719 * Makefile.in: Regenerate.
720 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
721 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
723 * configure: Regenerate.
724 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
725 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
726 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
727 MIPS specific backend functions.
728 * elf32-mips.c: Moved most code to elfxx-mips.c.
729 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
731 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
732 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
733 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
734 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
735 interface to allow selection of the right REL or RELA howto table.
736 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
737 static. Let it refuse n32 objects.
738 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
739 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
740 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
741 (elf32_mips_ignore_discarded_relocs): Rename from
742 _bfd_elf32_mips_ignore_discarded_relocs.
743 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
744 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
745 (elf_mips_howto_table_rela): Remove.
746 * elf64-mips.c: Moved most code to elfxx-mips.c.
747 (bfd_elf64_bfd_reloc_type_lookup): Make static.
748 (mips_elf64_rtype_to_howto): New function.
749 (mips_elf64_object_p): Likewise.
750 (elf64_mips_irix_compat): Likewise.
751 * elfxx-mips.c: New file containing common code merged together from
752 elf32-mips.c and elf64-mips.c.
753 * elfxx-mips.h: New file containing MIPS specific prototypes from
755 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
756 elf_backend_mips_rtype_to_howto.
758 2002-04-04 Alan Modra <amodra@bigpond.net.au>
760 * srec.c (MAXCHUNK, Chunk): Revise comments.
761 (srec_write_record): Correct buffer size.
762 (srec_write_header): Do without intermediate buffer.
763 (srec_write_section): Validate Chunk.
764 (srec_write_terminator): Pass NULL instead of dummy buffer.
765 (srec_write_symbols): Pass file and symbol names directly to
766 bfd_bwrite so sprintf won't overflow buffer.
768 2002-04-03 Jakub Jelinek <jakub@redhat.com>
770 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
771 PC relative relocs against hidden symbols.
772 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
774 2002-04-03 Alan Modra <amodra@bigpond.net.au>
776 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
777 LMAs, loop over segments until p_vaddr and p_memsz specify an
778 extent enclosing the section.
780 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
782 * ihex.c (ihex_write_object_contents): Do not allow records to
783 cross a 64K boundary - wrap if necessary.
785 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
787 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
788 which caused the returned LWP ID to always be 0.
790 2002-04-01 Richard Henderson <rth@redhat.com>
792 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
793 (elf32_sparc_relocate_section): Use it to figure out when to
794 initialize .got entries.
795 * elf64-sparc.c: Similarly.
797 2002-03-28 Alan Modra <amodra@bigpond.net.au>
799 * linker.c (link_action): Ignore duplicate warning syms.
800 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
801 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
802 (elf_adjust_dynamic_symbol): Likewise.
803 (elf_export_symbol): Likewise.
804 (elf_link_find_version_dependencies): Likewise.
805 (elf_link_assign_sym_version): Likewise.
806 (elf_link_sec_merge_syms): Likewise.
807 (elf_link_output_extsym): Likewise.
808 (elf_gc_sweep_symbol): Likewise.
809 (elf_gc_propagate_vtable_entries_used): Likewise.
810 (elf_gc_smash_unused_vtentry_relocs): Likewise.
811 (elf_gc_allocate_got_offsets): Likewise.
812 (elf_collect_hash_codes): Likewise.
813 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
814 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
815 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
816 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
817 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
818 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
819 (elf_cris_discard_excess_dso_dynamics): Likewise.
820 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
821 (mark_PIC_calls): Likewise.
822 (allocate_plt_static): Likewise.
823 (allocate_dynrelocs): Likewise.
824 (readonly_dynrelocs): Likewise.
825 * elf32-i386.c (allocate_dynrelocs): Likewise.
826 (readonly_dynrelocs): Likewise.
827 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
828 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
829 * elf32-mips.c (mips_elf_output_extsym): Likewise.
830 (mips_elf_sort_hash_table_f): Likewise.
831 (mips_elf_check_mips16_stubs): Likewise.
832 * elf32-s390.c (allocate_dynrelocs): Likewise.
833 (readonly_dynrelocs): Likewise.
834 * elf32-sh.c (sh_elf_discard_copies): Likewise.
835 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
836 (xstormy16_relax_plt_realloc): Likewise.
837 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
838 (elf64_alpha_output_extsym): Likewise.
839 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
840 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
841 (mips_elf64_check_mips16_stubs): Likewise.
842 (mips_elf64_output_extsym): Likewise.
843 * elf64-ppc.c (func_desc_adjust): Likewise.
844 (allocate_dynrelocs): Likewise.
845 (readonly_dynrelocs): Likewise.
846 * elf64-s390.c (allocate_dynrelocs): Likewise.
847 (readonly_dynrelocs): Likewise.
848 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
849 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
850 (readonly_dynrelocs): Likewise.
851 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
852 * aoutx.h (aout_link_write_other_symbol): Likewise.
853 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
854 (_bfd_coff_write_global_sym): Likewise.
855 * i386linux.c (linux_tally_symbols): Likewise.
856 * m68klinux.c (linux_tally_symbols): Likewise.
857 * sparclinux.c (linux_tally_symbols): Likewise.
858 * pdp11.c (aout_link_write_other_symbol): Likewise.
859 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
860 * xcofflink.c (xcoff_build_ldsyms): Likewise.
861 (xcoff_write_global_symbol): Likewise.
863 * cofflink.c (_bfd_coff_final_link): Formatting.
864 * cpu-mips.c (mips_compatible): Make static, prototype.
865 * elf32-i386.c (elf_i386_check_relocs): Formatting.
866 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
867 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
868 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
869 (mips_elf64_final_link): Likewise.
870 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
873 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
875 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
876 (SWAP_OUT_RELOC_OFFSET): Define.
878 2002-03-27 Gregory Steuck <greg@nest.cx>
880 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
881 terminating NULL if empty symbol table.
882 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
884 2002-03-26 H.J. Lu (hjl@gnu.org)
886 * elflink.h (elf_link_input_bfd): Revert the last change since
887 the gcc exception handling isn't fixed yet.
889 2002-03-26 H.J. Lu (hjl@gnu.org)
891 * elflink.h (elf_link_input_bfd): Complain about relocations
892 against local symbols in discarded sections.
894 2002-03-26 Alan Modra <amodra@bigpond.net.au>
896 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
898 2002-03-23 Alan Modra <amodra@bigpond.net.au>
900 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
901 section file offset for !SEC_LOAD sections.
903 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
905 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
906 <case R_ARM_GOT>): Handle relocations to Thumb functions.
908 2002-03-21 Alan Modra <amodra@bigpond.net.au>
910 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
912 * archive.c: Update copyright date.
913 * bfd-in2.h: Regenerate.
914 * libbfd.h: Regenerate.
915 * Makefile.am: Run "make dep-am"
916 * Makefile.in: Regenerate.
917 * po/SRC-POTFILES.in: Regenerate.
919 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
921 * dwarf2.c (struct funcinfo): Move up.
922 (lookup_address_in_function_table): New argument function_ptr.
924 (lookup_address_in_line_table): New argument function. If function
925 is non-NULL, use it to handle ``addr'' before the first line note of
927 (comp_unit_find_nearest_line): Update and swap calls to
928 lookup_address_in_function_table and lookup_address_in_line_table.
929 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
930 N_SLINE encountered if we see an N_FUN before any N_SLINE.
932 2002-03-20 Tom Rix <trix@redhat.com>
934 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
935 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
936 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
938 2002-03-19 Tom Rix <trix@redhat.com>
940 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
941 dynamic objects in archives.
943 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
945 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
946 STT_NOTYPE symbols to STT_OBJECT.
948 2002-03-18 Jan Hubicka <jh@suse.cz>
950 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
952 2002-03-18 Tom Rix <trix@redhat.com>
954 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
955 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
956 * coff-rs6000 (do_pad) : New function for archive padding.
957 (do_copy) : New function for object file copying in archives.
958 (do_shared_object_padding) : New function for padding shared
959 objects to their text section alignment in archives.
960 (bfd_xcoff_ar_achive_set_magic) : Stub.
961 (xcoff_write_armap_big) : Use do_copy and do_pad.
962 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
964 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
965 bfd_xcoff_magic_number.
966 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
968 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
969 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
970 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
971 * rs6000-core.c : Update copyright date.
972 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
974 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
975 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
976 (coff_set_flags) : Use bfd_xcoff_magic_number.
977 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
978 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
979 * Makefile.am : Same.
982 * configure : Regnerate.
983 * Makefile.in : Same.
986 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
988 * po/fr.po: Updated version.
990 2002-03-18 Alan Modra <amodra@bigpond.net.au>
992 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
993 * libbfd.h: Regenerate.
994 * archive.c (coff_write_armap): Pass on failures from
995 bfd_write_bigendian_4byte_int.
997 2002-03-14 H.J. Lu <hjl@gnu.org>
999 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
1000 error to bfd_error_nonrepresentable_section for reinit_array
1003 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1005 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
1006 OR it in rather than replacing previously selected flags.
1008 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
1009 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
1011 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1013 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
1015 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
1016 ensure reloc size matches before calling elf_link_input_bfd.
1017 Add an assert to check reloc size when counting output relocs.
1019 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
1021 * mmo.c (mmo_get_loc): Return NULL rather than false.
1023 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1025 * po/fr.po: Updated version.
1027 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1029 * archures.c (bfd_default_compatible): Test bits_per_word.
1030 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
1031 bfd_default_compatible.
1032 * cpu-i370.c (i370_compatible): Likewise.
1033 * cpu-sparc.c (sparc_compatible): Likewise.
1034 * cpu-h8300.c (compatible): Test in->arch == out->arch.
1036 * elflink.h: Formatting fixes.
1037 (elf_link_output_extsym): Merge undefined and undef weak cases.
1039 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
1040 when word size of input matches output word size.
1042 2002-03-12 Andreas Jaeger <aj@suse.de>
1044 * cpu-i386.c (i386_compatible): New. Use it instead of
1045 bfd_default_compatible.
1047 2002-03-07 H.J. Lu (hjl@gnu.org)
1049 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
1050 as the type for bfd_reloc_val.
1052 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1054 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
1055 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
1056 (elf_hppa_final_link_relocate): Correct relocations for indirect
1057 references to local data through the DLT. Fix .opd creation for
1058 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
1059 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
1060 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
1061 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1062 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
1063 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
1064 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
1066 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1068 * merge.c (_bfd_merge_sections): Don't segfault if there
1069 is nothing to merge due to GC.
1071 2002-03-05 Alan Modra <amodra@bigpond.net.au>
1073 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
1074 symbols that have been forced local.
1076 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
1077 to output forced local syms for non-shared link.
1078 (elf_link_output_extsym): Tweak condition for calling backend
1079 adjust_dynamic_symbol so that previous behaviour is kept.
1080 Whitespace changes throughout file.
1082 2002-03-04 H.J. Lu <hjl@gnu.org>
1084 * elf.c (bfd_section_from_shdr): Handle special sections,
1085 .init_array, .fini_array and .preinit_array.
1086 (elf_fake_sections): Likewise.
1088 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
1089 DT entry only if the section is in output for .init_array,
1090 .fini_array and .preinit_array. Complain about .preinit_array
1092 (elf_bfd_final_link): Warn zero size for .init_array,
1093 .fini_array and .preinit_array sections.
1095 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
1096 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
1097 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
1100 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1102 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
1103 * configure: Regenerate.
1105 2002-03-02 Tom Rix <trix@redhat.com>
1107 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
1109 * coff-rs6000.c (xcoff_howto_table): Same.
1111 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1113 * elflink.h (size_dynamic_sections): If section named
1114 ".preinit_array" exists, create DT_PREINIT_ARRAY and
1115 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
1116 ".init_array" and ".fini_array".
1117 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
1118 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
1121 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
1123 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
1126 2002-02-25 Alan Modra <amodra@bigpond.net.au>
1128 * elf64-hppa.h: Update copyright date.
1130 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
1131 (ppc64_elf_relocate_section): Don't generate power4 style branch
1132 hints for *_BRTAKEN and *_BRNTAKEN relocs.
1134 2002-02-22 Jakub Jelinek <jakub@redhat.com>
1136 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
1138 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1140 2002-02-21 Andreas Jaeger <aj@suse.de>
1142 * elf64-x86-64.c: Major rework that introduces all recent changes
1143 to the x86-64 backend. Get a closer match to elf32-i386.
1144 (struct elf64_x86_64_dyn_relocs): Rename from
1145 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
1147 (struct elf64_x86_64_link_hash_table): Add short cuts to some
1149 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
1150 remove casts, initialize new hash members.
1151 (create_got_section): New.
1152 (elf64_x86_64_create_dynamic_sections): New.
1153 (elf64_x86_64_copy_indirect_symbol): New.
1154 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
1155 relocs, .got or .relgot here but do it in allocate_dynrelocs.
1156 Reference count possible .plt and .got entries. Don't test input
1157 section SEC_READONLY here to try to avoid copy relocs, and keep
1158 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
1159 DF_TEXTREL here. Delay setting of variables until needed. Cache
1160 pointer to "sreloc" section in elf_section_data. Tweak condition
1161 under which .got created. Report files with bad relocation
1163 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1164 Reference count possible .plt entries. Don't deallocate .got and
1166 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
1167 do copy reloc processing for weakdefs. Remove redundant casts and
1168 aborts. Delay setting of vars until needed. Move creation of
1169 dynamic symbols and allocation of .plt and .rela.plt to
1170 allocate_dynrelocs. Replace BFD_ASSERT with abort.
1171 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
1172 (allocate_dynrelocs): New.
1173 (readonly_dynrelocs): New.
1174 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
1175 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
1176 Zero out the dynamic allocated content space.
1177 (elf64_x86_64_discard_copies): Removed.
1178 (elf64_x86_64_relocate_section): Make use of dynamic section
1179 short-cuts. Localise vars, and delay setting. Better error
1180 reporting, replace BFD_ASSERT with abort. Check
1181 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
1182 regular object file and tread the weak definition as the normal
1183 one. Don't discard relocs for undefweak or undefined symbols and
1184 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
1186 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
1187 symbols that have been forced local. Use same test to decide if
1188 we can use a relative reloc for got as relocate_section. Expand
1189 SHN_UNDEF comment. Move expressions out of function calls.
1190 Replace BFD_ASSERT with abort.
1191 (bfd_elf64_bfd_final_link): Removed.
1192 (elf_backend_copy_indirect_symbol): Define.
1194 2002-02-20 Tom Rix <trix@redhat.com>
1196 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
1197 (_bfd_xcoff_reloc_type_lookup): Use it.
1198 * coff64-rs6000.c (xcoff64_howto_table): Same.
1199 (xcoff64_reloc_type_lookup): Same.
1201 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1203 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
1206 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1208 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
1209 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
1210 * bfd-in2.h: Regenerate.
1211 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
1212 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
1214 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
1215 (elf_s390_reloc_type_lookup): Likewise.
1216 (elf_s390_check_relocs): Likewise.
1217 (elf_s390_gc_sweep_hook): Likewise.
1218 (elf_s390_relocate_section): Likewise.
1219 (elf_s390_object_p): Use renamed architecture define.
1220 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
1222 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
1224 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
1226 2002-02-19 Jakub Jelinek <jakub@redhat.com>
1228 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
1229 absptr -> pcrel optimization for shared libs.
1230 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
1231 library cannot be converted to pcrel.
1232 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
1234 * elf32-i386.c (elf_i386_relocate_section): If
1235 _bfd_elf_section_offset returned -2, skip, but make sure the
1236 relocation is installed.
1237 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
1238 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1239 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1240 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1241 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1242 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1243 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1244 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1245 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1246 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1247 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1248 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1249 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1250 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1251 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
1252 _bfd_elf_section_offset returning -2 the same way as -1.
1253 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
1254 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
1256 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
1258 2002-02-18 Tom Rix <trix@redhat.com>
1260 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
1261 (bfd_xcoff_size_dynamic_sections): Same.
1262 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
1263 (bfd_xcoff_size_dynamic_sections): Same.
1264 * coff-rs6000.c (xcoff_generate_rtinit): Same.
1265 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
1266 * libxcoff.h (struct xcoff_backend_data_rec): Same.
1267 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
1268 * bfd-in2.h: Regenerate.
1270 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1272 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
1273 (struct ppc_link_hash_table): Add sfpr.
1274 (ppc64_elf_link_hash_table_create): Init it.
1275 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
1277 (create_linkage_sections): ..here. Make .sfpr too.
1278 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
1280 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
1281 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
1282 ._restf* functions, and create as needed.
1283 (func_desc_adjust): Only force_local for shared libs.
1285 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1287 * configure.in: Bump version number post 2.12 branching.
1288 * configure: Regenerate.
1290 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1292 * mmo.c: Correct and improve comments.
1293 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
1294 zero-pad. Use input to fill up non-empty bfd buffer.
1295 (mmo_flush_chunk): New function.
1296 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
1297 changed. Don't emit location specifier if VMA is same as
1298 *LAST_VMAP after omitting leading zero contents. Call
1299 mmo_flush_chunk before emitting location specifier.
1300 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
1301 with mmo_write_loc_chunk calls.
1302 (mmo_internal_write_section): Call mmo_flush_chunk after
1304 (mmo_write_symbols_and_terminator): Move :Main to first position
1305 in symbol array. Add faked one if it does not exist if there are
1306 other symbols. Don't add it if there are no symbols at all. Move
1307 out test for value of :Main from symbol loop. Rename table
1308 fakemain to maintable and variable mainsym to fakemain.
1310 2002-02-15 Richard Henderson <rth@redhat.com>
1312 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
1313 section with no got matches any got. Simplify error generaion.
1315 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1317 Support arbitrary length fill patterns.
1318 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
1319 (_bfd_default_link_order): Remove bfd_fill_link_order code.
1320 Call default_data_link_order.
1321 (default_fill_link_order): Delete.
1322 (default_data_link_order): New function.
1323 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1324 of bfd_fill_link_order with bfd_data_link_order.
1325 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1326 * elf64-mips.c (mips_elf64_final_link): Likewise.
1328 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1329 Correct value returned in "end" for "0x<non-hex>".
1331 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1333 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1334 (scan): Test against 'mach' field in info structure.
1336 2002-02-14 Alan Modra <amodra@bigpond.net.au>
1338 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1340 2002-02-14 Matt Fredette <fredette@netbsd.org>
1342 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1345 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1347 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
1348 non-zero physical addresses when adjusting the LMAs of new
1351 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1353 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1354 from _bfd_elf_hppa_gen_reloc_type.
1355 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1356 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1357 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1358 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1360 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
1362 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1363 loading its contents if there's nothing to do in it.
1365 2002-02-12 Alan Modra <amodra@bigpond.net.au>
1367 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1370 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1371 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1372 (ppc64_elf_finish_dynamic_sections): Set values for them.
1374 2002-02-11 Michael Snyder <msnyder@redhat.com>
1376 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1377 * elf.c (elfcore_grok_pstatus): Add prototype.
1378 (elfcore_grok_lwpstatus): Add prototype.
1379 (elfcore_write_lwpstatus): New function.
1380 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
1382 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1384 * elf32-sh.c: Added missing prototypes.
1385 * elf32-sh64.c: Likewise.
1386 (sh_elf_align_loads): Mark unused args as such.
1387 * elf64-sh64.c: Added missing prototypes.
1388 (struct elf_sh64_link_hash_entry): Fix typo.
1389 (sh_elf64_relocate_section): Fix info argument passed to
1390 _bfd_elf_section_offset.
1392 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1394 * Makefile.am: "make dep-am".
1395 * Makefile.in: Regenerate.
1396 * aclocal.m4: Regenerate.
1397 * config.in: Regenerate.
1398 * configure: Regenerate.
1400 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1402 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
1404 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
1406 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
1407 cast warnings for the common case.
1409 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1411 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
1413 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
1416 2002-02-09 Richard Henderson <rth@redhat.com>
1418 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
1419 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
1420 (elf64_alpha_relocate_section): Likewise.
1421 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
1422 * bfd-in2.h, libbfd.h: Rebuild.
1424 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1426 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
1427 that base-plus-offset reloc accounting is consistent.
1428 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
1429 up to date for undefined symbols.
1431 2002-02-08 Eric Christopher <echristo@redhat.com>
1433 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1435 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
1436 sections for the O32 ABI.
1438 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1440 * elf32-arm.h: Fix formatting of _("...").
1441 * elf32-d10v.c: Likewise.
1442 * elf32-m68k.c: Likewise.
1443 * elf32-mips.c: Likewise.
1445 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1447 * coff-or32.c: Fix compile time warning messages.
1449 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1451 Contribute sh64-elf.
1452 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
1453 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
1454 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
1455 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
1456 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
1457 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
1458 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
1459 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
1460 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
1461 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
1463 * libbfd.h, bfd-in2.h: Rebuilt.
1464 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
1465 (sh_reloc_map): Map them.
1466 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1467 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
1468 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
1469 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1470 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
1471 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
1472 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
1473 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
1474 datalabel_got_offset.
1475 (sh_elf_link_hash_newfunc): Initialize it.
1476 (sh_elf_relocate_section): Augment the scope of
1477 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
1478 GOT and GOTOFF handling to new SHmedia relocation types. Support
1480 (sh_elf_check_relocs): Likewise.
1481 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
1482 PLT entries using movi_shori_putval. Support GOT_BIAS.
1483 (sh_elf_finish_dynamic_sections): Likewise.
1484 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
1485 relocation, it's now done by the caller.
1487 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
1488 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
1489 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
1490 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
1491 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
1492 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
1493 sh64_elf64_hash_table): New.
1494 (sh_elf64_howto_table): Introduce new relocs.
1495 (sh_elf64_info_to_howto): Accept new PIC relocs.
1496 (sh_elf64_relocate_section): Augment the scope of
1497 seen_stt_datalabel. Support new PIC relocs.
1498 (sh_elf64_check_relocs): Support new PIC relocs.
1499 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
1500 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
1501 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
1502 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
1503 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
1504 movi_shori_putval, movi_3shori_putval,
1505 sh64_elf64_create_dynamic_sections,
1506 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
1507 sh64_elf64_size_dynamic_sections,
1508 sh64_elf64_finish_dynamic_symbol,
1509 sh64_elf64_finish_dynamic_sections): New.
1510 (elf_backend_create_dynamic-sections,
1511 bfd_elf64_bfd_link_hash_table_create,
1512 elf_backend_adjust_dynamic_symbol,
1513 elf_backend_size_dynamic_sections,
1514 elf_backend_finish_dynamic_symbol,
1515 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1516 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1517 elf_backend_got_header_size, elf_backend_plt_header_size):
1519 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1520 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
1521 match official numbers and names; moved unmaching ones to the
1523 * elf32-sh64.c, elf64-sh64.c: Likewise.
1524 2001-03-12 DJ Delorie <dj@redhat.com>
1525 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
1527 2001-03-12 DJ Delorie <dj@redhat.com>
1528 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
1530 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
1531 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1532 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
1533 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
1534 .cranges section with SEC_SORT_ENTRIES set.
1535 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
1536 incoming sorted .cranges section.
1537 (sh64_bfd_elf_copy_private_section_data): New.
1538 (sh64_elf_final_write_processing): Only sort .cranges and modify
1539 start address if called by linker.
1540 2001-01-08 Ben Elliston <bje@redhat.com>
1541 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
1542 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
1543 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
1544 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1545 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
1546 line. Add comments before all entries.
1547 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
1549 (sh_elf64_reloc): Correct head comment.
1550 (sh_elf64_relocate_section): Correct spacing.
1551 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
1552 instead call reloc_dangerous callback.
1553 <case R_SH_SHMEDIA_CODE>: New case.
1554 (sh_elf64_gc_mark_hook): Correct spacing.
1555 (sh_elf64_check_relocs): Ditto.
1556 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
1558 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
1560 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
1561 clarify describing comment. Add comments before all entries.
1562 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
1563 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
1564 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1565 Sort .cranges section in final link. Prepare to set bit 0 on
1567 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
1568 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
1569 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
1571 (sh64_backend_section_from_shdr): New, to recognize
1572 SHT_SH5_CR_SORTED on incoming .cranges section.
1573 (elf_backend_section_from_shdr): Define.
1574 (sh64_elf_final_write_processing): Sort outgoing .cranges
1575 section. (New, temporarily disabled:) Set bit 0 on entry address
1576 according to ISA type.
1577 (sh64_find_section_for_address): New.
1578 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1579 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1580 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
1581 bfd_malloc, not xmalloc.
1582 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
1584 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1585 temporarily disabled) setting bit 0 on entry address.
1586 (elf_backend_final_write_processing): Define.
1587 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1588 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1589 be a proper relocation for PTA and PTB rather than a marker.
1590 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1591 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1592 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1593 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1594 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1596 * elf64-sh64.c: Ditto.
1597 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1598 * elf32-sh64.c: Include opcodes/sh64-opc.h
1599 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1600 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
1601 parameters. No unused parameters. Caller changed.
1602 <case R_SH_PT_16>: New case.
1603 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1604 * Makefile.in: Regenerate.
1605 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1606 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1608 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1609 (sh64_elf_merge_private_data): Ditto.
1610 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1611 to access stored section flags.
1612 (sh64_elf_final_write_processing): Return immediately unless
1613 called by linker. Use sh64_elf_section_data (cranges) to get size
1614 of linker-generated cranges entries.
1615 (sh64_elf_copy_private_data): Add missing "return true".
1616 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1617 (sh_elf64_merge_private_data): Ditto.
1618 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1619 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1620 elf64-sh64.c:sh64_elf_fake_sections.
1621 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1622 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1623 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1624 (sh64_elf_final_write_processing): New.
1625 (elf_backend_final_write_processing): Define.
1626 (sh64_elf_fake_sections): Get header flags from tdata field.
1627 (sh64_elf_copy_private_data): Do not call
1628 sh64_elf_copy_private_data_internal, just copy e_flags field.
1629 (sh64_elf_merge_private_data): Do not call
1630 sh64_elf_copy_private_data_internal.
1631 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1632 Remove EF_SH64_ABI64, let ELF size make difference.
1633 Remove SH64-specific BFD section flag.
1634 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1635 containing SHmedia through elf_section_data (asect)->tdata
1636 non-zero, not using a BFD section flag.
1637 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1638 (sh64_elf_merge_private_data): Similar.
1639 (elf_backend_section_flags): Don't define.
1640 (sh64_elf_backend_section_flags): Delete.
1641 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1643 (sh_elf64_merge_private_data): Similar.
1644 * section.c (Section flags definitions): Don't define
1646 (bfd-in2.h): Regenerate.
1647 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
1648 Make DataLabel references work with partial linking.
1649 * elf32-sh64.c: Fix formatting.
1650 (sh64_elf_link_output_symbol_hook): New.
1651 (elf_backend_link_output_symbol_hook): Define to
1652 sh64_elf_link_output_symbol_hook.
1653 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1654 undefined if partial linking. Adjust sanity check.
1655 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1656 (elf_backend_link_output_symbol_hook): Define to
1657 sh64_elf64_link_output_symbol_hook.
1658 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1659 undefined if partial linking. Adjust sanity check.
1660 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1661 Implement semantics for inter-file DataLabel references.
1662 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1663 (sh64_elf64_add_symbol_hook): New.
1664 (sh_elf64_relocate_section): If passing an indirect symbol with
1665 st_type STT_DATALABEL on the way to a symbol with st_other
1666 STO_SH5_ISA32, do not bitor 1 to the relocation.
1667 (elf_backend_add_symbol_hook): Define to
1668 sh64_elf64_add_symbol_hook.
1669 * elf64-sh32.c: Tweak comments.
1670 (DATALABEL_SUFFIX): Define.
1671 (sh64_elf_add_symbol_hook): New.
1672 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1673 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1674 symbol with st_type STT_DATALABEL on the way to a symbol with
1675 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1676 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1677 Pass through STT_DATALABEL.
1678 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1679 (elf_backend_get_symbol_type): Define.
1680 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1681 (elf_backend_get_symbol_type): Define.
1682 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1683 * elf32-sh64.c: Tweak comments.
1684 (sh64_elf_copy_private_data_internal): Add prototype.
1685 (bfd_elf32_bfd_set_private_flags): Define.
1686 (sh64_elf_copy_private_data_internal): Compare machine name, not
1687 textual BFD target name, to check whether to copy section flag
1689 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1690 Tweak section-contents-type-mismatch message.
1691 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1692 Validize reloc-types.
1693 * elf64-sh64.c: New file.
1694 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1695 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1696 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1697 Regenerate dependencies.
1698 * Makefile.in: Regenerate.
1699 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1700 bfd_elf64_sh64l_vec.
1701 * configure.in: Handle bfd_elf64_sh64_vec and
1702 bfd_elf64_sh64l_vec.
1703 * configure: Regenerate.
1704 * po/POTFILES.in: Regenerate.
1705 * po/bfd.pot: Regenerate.
1706 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1707 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1708 anything else but EF_SH64 and EF_SH64_ABI64.
1709 (sh64_elf_merge_private_data): Emit error for anything else but
1710 EF_SH64 and EF_SH64_ABI64.
1711 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1713 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1714 bfd_elf32_sh64l_vec as a temporary measure.
1715 * configure: Regenerate.
1716 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1717 * cpu-sh.c (arch_info_struct): Include sh5 item
1719 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1720 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1721 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1722 * elf32-sh64.c: Tweak comments.
1723 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1724 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
1725 (sh64_elf_copy_private_data_internal): Wrap long line.
1726 (sh64_elf_merge_private_data): Rewrite to allow objects from
1727 SH64 subsets to be linked together.
1728 (INCLUDE_SHMEDIA): Define.
1729 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1730 Parenthesize plus-expression inside or-expression.
1731 <global symbol>: Ditto.
1732 (sh_elf_set_mach_from_flags): Remove code refusing
1733 deleted EF_SH64_32BIT_ABI flag.
1734 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
1735 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1736 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1737 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1738 (sh_elf_relocate_section) <local symbol>: Or 1 in
1739 calculation of relocation if sym->st_other & STO_SH5_ISA32.
1740 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1741 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1743 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1744 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1745 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1746 Regenerate dependencies.
1747 * Makefile.in: Regenerate.
1748 * archures.c: Add bfd_mach_sh5.
1749 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1750 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
1751 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1752 * configure: Regenerate.
1753 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1754 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1755 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1756 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1757 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1758 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1759 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1760 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1761 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1762 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1764 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
1766 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
1767 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
1768 shmedia_prepare_reloc, goto final_link_relocate if it returns
1769 non-zero, else fail as before.
1770 (sh_elf_set_mach_from_flags): Provide function only if not defined
1771 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
1772 (sh_elf_set_private_flags): Provide function only if not defined
1774 (sh_elf_copy_private_data): Similar.
1775 (sh_elf_merge_private_data): Similar.
1776 * section.c (SEC_SH_ISA_SHMEDIA): New.
1777 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
1778 * elf32-sh64.c: New file.
1779 * libbfd.h: Regenerate.
1780 * bfd-in2.h: Regenerate.
1781 * po/POTFILES.in: Regenerate.
1782 * po/bfd.pot: Regenerate.
1783 * bfd-in2.h: Regenerate.
1784 * libbfd.h: Regenerate.
1786 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
1788 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
1789 been included, not drag it in.
1790 * bfd-in2.h: Regenerate.
1792 2002-02-06 H.J. Lu (hjl@gnu.org)
1794 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
1795 the mach and ISA fields if necessary.
1797 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1799 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1800 ARM architecture when an F_ARM_5 flag is detected, since we cannot
1801 be sure exactly which architecture this represents.
1803 2002-02-05 Nick Clifton <nickc@redhat.com>
1805 * po/tr.po: Updated translation.
1807 2002-02-05 Alan Modra <amodra@bigpond.net.au>
1809 From Jimi X <jimix@watson.ibm.com>
1810 * archures (bfd_mach_ppc64): Define.
1811 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1812 (bfd_powerpc_arch): Define.
1813 * bfd-in2.h: Regenerate.
1814 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1815 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1816 (bfd_powerpc_archs): Add default powerpc64 arch.
1818 2002-02-05 Alan Modra <amodra@bigpond.net.au>
1820 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1821 against section syms in readonly sections. Don't do the global
1822 sym check if we find one.
1823 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1824 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1825 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1826 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1827 (elf_s390_grok_prstatus): Add missing prototype.
1829 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1831 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1832 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1833 Call bfd_get_section_by_name only once. Initialize
1834 bpodata->n_bpo_relocs_this_section.
1835 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1837 (bpo_reloc_request_sort_fn): Don't use difference of values as
1840 2002-02-02 David O'Brien <obrien@FreeBSD>
1842 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
1843 version 4.5 and later the same as 5-CURRENT.
1844 * configure: Re-generate.
1846 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1848 * config.bfd (hppa*-*-netbsd*): New target.
1850 2002-01-31 Philipp Thomas <pthomas@suse.de>
1852 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1853 to front of message. Unify messages with elf32-arm.h. Use
1854 commas where neccessary.
1855 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1856 ERROR in messages. Unify messages with coff-arm.c. Correct
1857 VFP/FPA error message.
1858 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1859 APCS-32 for translation.
1861 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1863 Perform on-demand global register allocation from
1864 R_MMIX_BASE_PLUS_OFFSET relocs.
1865 * elf64-mmix.c (struct bpo_reloc_section_info, struct
1866 bpo_reloc_request, struct bpo_greg_section_info): New.
1867 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1868 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1869 _bfd_mmix_check_all_relocs,
1870 _bfd_mmix_prepare_linker_allocated_gregs,
1871 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1872 (elf_mmix_howto_table): Correct src_mask for most relocs.
1873 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1875 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1876 case. Fix typo in comment. New label do_mmix_reloc.
1877 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1878 store first object file with a base-plus-offset reloc. Call
1879 mmix_elf_check_common_relocs for the part common with mmo.
1880 (mmix_elf_final_link): Write out linker-allocated register
1882 (elf_backend_gc_sweep_hook): Define.
1883 (bfd_elf64_bfd_relax_section): Define.
1885 * mmo.c: Don't include <ctype.h>
1886 (mmo_init): Correct init-once logic.
1888 2002-02-01 Tom Rix <trix@redhat.com>
1890 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1892 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1894 * Makefile.am: Run "make dep-am"
1895 * Makefile.in: Regenerate.
1897 2002-01-31 David O'Brien <obrien@FreeBSD>
1899 * configure.in: Recognize the differences in core files from FreeBSD
1900 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
1902 * configure: Regenerate.
1904 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1906 * coff-or32.c: New file.
1907 * cpu-or32.c: New file.
1908 * elf32-or32.c: New file.
1909 * archures.c: Add support for or32.
1910 * targets.c: Add support for or32.
1911 * bfd-in2.h: Regenerate.
1912 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
1913 coff_write_object_contents): Add support for or32.
1914 * config.bfd: Add target.
1915 * configure.in: Add support for or32.
1916 * configure: Regenerate.
1917 * Makefile.am: Add support for or32.
1918 * Makefile.in: Regenerate.
1919 * po/SRC-POTFILES.in: Add or32 files.
1920 * po/bfd.pot: Regenerate.
1922 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
1923 Don Lindsay <lindsayd@cisco.com>
1925 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1926 false' with a return of a bfd_reloc_ error code.
1928 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
1930 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1931 unexport unreferenced symbols when --export-dynamic. Call
1932 _bfd_elf_strtab_delref when unexporting.
1934 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
1936 * bfd-in.h: Include <stdbool.h> if it is available.
1937 * bfd-in2.h: Regenerated.
1939 2002-01-31 Alan Modra <amodra@bigpond.net.au>
1941 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1944 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1946 * archures.c: Tidy up formatting of embedded comments.
1947 * bfd.c: Tidy up formatting of embedded comments.
1948 * bfd-in.h: Fix formatting of comments.
1949 * reloc.c: Tidy up formatting of ordinary & embedded comments.
1950 * section.c: Tidy up formatting of embedded comments.
1951 * syms.c: Tidy up formatting of embedded comments.
1952 * targets.c: Tidy up formatting of embedded comments.
1954 * bfd-in2.h: Regenerate.
1956 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1958 * vms-tir.c (cmd_name): New function.
1959 (tir_cmd_name): New function.
1960 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1961 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1964 * peXXigen.c (pe_print_idata): Rearrange message to aid in
1966 (pe_print_pdata): Rearrange message to aid in translation.
1968 * libbfd.c (warn_deprecated): Rearrange error message to aid in
1971 * ihex.c (ihex_write_object_contents): Fix spelling typo.
1973 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1975 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1976 message to aid in translation.
1978 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1979 to aid in translation.
1981 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1983 2002-01-30 Philipp Thomas <pthomas@suse.de>
1985 * coff-arm.c, elf32-elf.h: Unify messages.
1987 2002-01-30 Nick Clifton <nickc@redhat.com>
1989 * po/sv.po: Updated translation.
1991 2002-01-30 Philipp Thomas <pthomas@suse.de>
1993 * dwarf2.c (read_abbrev): Use full section name in error message.
1994 (decode_line_info): Likewise.
1996 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1999 2002-01-30 Alan Modra <amodra@bigpond.net.au>
2001 * elf64-ppc.c (func_desc_adjust): Only provide missing function
2002 descriptor symbols for undefined function code syms. Clear
2003 ELF_LINK_NON_ELF so that they can stay weak.
2005 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2006 Mitch Lichtenberg <mpl@broadcom.com>
2008 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
2009 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
2010 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
2012 * bfd-in2.h: Regenerate.
2014 2002-01-29 Chris Demetriou <cgd@broadcom.com>
2016 * elf32-mips.c: Add additional comments about HI16 relocation
2018 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
2019 pc-relative relocations. (Reverts change made on 2001-10-31.)
2020 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
2021 for pc-relative relocations.
2022 (mips_elf_calculate_relocation): Add a comment about a kludge
2023 in the R_MIPS_GNU_REL_HI16 handling.
2024 (_bfd_mips_elf_relocate_section): Implement that kludge;
2025 adjust pc-relative HI16 relocation for difference in HI16 and
2026 LO16 addresses, since it can't easily be done in
2027 mips_elf_calculate_relocation.
2029 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2031 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
2032 relocations with PC32 relocations for undefined or weak symbols.
2033 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
2034 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
2036 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
2038 * elfcore.h (elf_core_file_p): Improve comment for last change.
2040 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
2042 * configure: Regenerated.
2044 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
2046 * elfcore.h (elf_core_file_p): Set the machine architecture
2047 before processing the program headers.
2049 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
2051 * configure.in <64-bit configuration>: If using gcc, check and
2052 emit error for egcs-1.1.2.
2053 * configure: Regenerate.
2055 2002-01-26 Egor Duda <deo@logos-m.ru>
2057 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
2058 as possible to avoid stack corruption.
2060 2002-01-26 Richard Henderson <rth@redhat.com>
2062 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
2063 for non-allocated sections.
2065 2002-01-25 Mark Kettenis <kettenis@gnu.org>
2067 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
2068 prstat.pr_reg even if it is a struct.
2070 2002-01-25 Steve Ellcey <sje@cup.hp.com>
2072 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
2074 2002-01-25 Philipp Thomas <pthomas@suse.de>
2076 * coffgen.c (coff_print_symbol): Don't mark info message
2079 2002-01-25 Nick Clifton <nickc@redhat.com>
2081 * po/fr.po: Updated translation.
2082 * po/es.po: Updated translation.
2084 2002-01-25 Philipp Thomas <pthomas@suse.de>
2086 * coff-alpha.c (alpha_relocate_section): Unify warning message
2087 for GP relative relocations without GP defined.
2088 * coff-mips.c (mips_relocate_section): Likewise.
2090 2002-01-25 Alan Modra <amodra@bigpond.net.au>
2092 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
2093 unsigned overflow when new_offset < old_offset.
2095 2002-01-24 Philipp Thomas <pthomas@suse.de>
2097 * bfd.c (_bfd_abort): Fix typo.
2099 2002-01-23 Richard Henderson <rth@redhat.com>
2101 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
2102 plt entries for undefweak symbols.
2104 2002-01-23 Steve Ellcey <sje@cup.hp.com>
2106 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
2108 (bfd_elf64_ia64_hpux_big_vec): Ditto.
2109 (bfd_elf32_h8300_vec): Ditto.
2111 2002-01-23 Alan Modra <amodra@bigpond.net.au>
2113 * elf64-ppc.c: Remove stale part of ABI comment.
2114 (NO_OPD_RELOCS): Define.
2115 (ppc64_elf_check_relocs): Use it.
2116 (ppc64_elf_relocate_section): Here too.
2117 (build_one_stub): Don't point function syms at the stub. Instead,
2119 (ppc64_elf_relocate_section): Check whether REL24 relocs should
2120 really go to the stub. Make all dynamic relocs in opd against
2122 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
2125 2002-01-22 Richard Henderson <rth@redhat.com>
2127 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
2129 2002-01-22 Alan Modra <amodra@bigpond.net.au>
2131 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
2132 TOC_BASE_OFF adjustment.
2134 * Makefile.am: Run "make dep-am".
2135 * Makefile.in: Regenerate.
2136 * po/SRC-POTFILES.in: Regenerate.
2138 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
2140 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
2143 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
2145 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
2146 Check for and emit error if sgot is NULL at this point.
2148 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
2150 * config.bfd (ia64*-*-netbsd*): New target.
2152 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2154 * som.c (som_write_space_strings): Comment typo fix.
2156 2002-01-21 Alan Modra <amodra@bigpond.net.au>
2158 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
2159 is_func_descriptor fields.
2160 (link_hash_newfunc): Init them.
2161 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
2162 dot are candidates for plt entries. When processing .opd relocs,
2163 set function descriptor strings to point inside function code
2164 string, and set new ppc_link_hash_entry fields.
2165 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
2166 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
2167 function descriptors. It's now done in..
2168 (func_desc_adjust): New.
2169 (ppc64_elf_func_desc_adjust): New.
2170 (define elf_backend_always_size_sections): Define.
2171 (ppc64_elf_hide_symbol): New.
2172 (define elf_backend_hide_symbol): Define.
2173 (allocate_dynrelocs): Remove code looking up function descriptors
2174 as that has been done earlier.
2175 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
2177 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
2178 up function descriptor.
2179 (build_one_stub): Look up the function code sym. Check for
2180 invalid plt offsets.
2181 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
2182 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
2184 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
2186 (_bfd_elf_link_hash_hide_symbol): Likewise.
2187 * elflink.h (elf_link_add_object_symbols): Adjust call to
2188 elf_backend_hide_symbol.
2189 (elf_fix_symbol_flags): Likewise.
2190 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
2192 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
2193 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
2194 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2195 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
2196 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
2198 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
2199 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
2200 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2202 2002-01-18 Alan Modra <amodra@bigpond.net.au>
2204 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
2205 dynamic function descriptor symbol, not the associated function
2208 2002-01-17 Eric Christopher <echristo@redhat.com>
2210 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
2212 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2214 * po/bfd.pot: Regenerate.
2215 * po/fr.po: Regenerate.
2217 2002-01-17 Alan Modra <amodra@bigpond.net.au>
2219 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
2220 Remove "Elf_Internal_Shdr *" param.
2221 (_bfd_mips_elf_section_from_bfd_section): Ditto.
2222 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
2223 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
2224 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
2225 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
2226 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
2227 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
2228 function to override special sections. Remove hdr arg from
2229 backend call, and don't loop.
2231 2002-01-16 Eric Christopher <echristo@redhat.com>
2233 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
2234 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
2235 relocations requiring gp0 and gp.
2237 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
2239 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
2241 (elf32_arm_print_private_bfd_data): Likewise.
2243 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
2245 * po/tr.po: Import new version.
2247 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2249 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
2250 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
2251 (ORI_R0_R0_0): Correct.
2253 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2255 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
2256 when plt_not_loaded.
2257 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
2258 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
2259 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
2260 (ppc64_elf_glink_code): Delete.
2261 (PPC64_ELF_GLINK_SIZE): Delete.
2262 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
2263 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
2264 ORI_R0_R0_0): Define.
2265 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
2266 (struct ppc_link_hash_table): Add sstub and plt_overflow.
2267 (ppc64_elf_link_hash_table_create): Init them.
2268 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
2269 Don't copy to shared lib.
2270 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
2271 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
2272 (allocate_dynrelocs <plt>): Don't change function sym here. Make
2273 room for .stub and .glink code.
2274 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
2276 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
2277 bfd_elf64_bfd_final_link.
2278 (bfd_elf64_bfd_final_link): Don't define.
2279 (ppc64_elf_size_stubs): New.
2280 (build_plt_stub): New.
2281 (build_one_stub): New.
2282 (ppc64_elf_build_stubs): New.
2283 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
2284 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
2285 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
2286 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
2287 case output sections not separate. Adjust DT_RELASZ to not
2288 include plt relocs. Set reserved got entry. Set got and plt
2290 (elf_backend_got_header_size): Set to 8.
2291 * elf64-ppc.h: New file.
2293 2002-01-16 Alan Modra <amodra@bigpond.net.au>
2295 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
2296 sections, use bfd_section_list_remove.
2297 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2298 * elflink.h (elf_link_add_object_symbols): When removing all
2299 sections, use bfd_section_list_clear.
2301 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2303 * po/sv.po: New file: Swedish translation.
2304 * configure.in (ALL_LINGUAS): Add sv.
2305 * configure: Regenerate.
2307 2002-01-15 Jakub Jelinek <jakub@redhat.com>
2309 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
2310 * elf.c (merge_sections_remove_hook): New function.
2311 (_bfd_elf_merge_sections): Pass it as 3rd argument to
2312 _bfd_merge_sections.
2313 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
2314 * libbfd.h: Rebuilt.
2315 * merge.c (_bfd_merge_sections): Add remove_hook argument.
2316 Call remove_hook if a SEC_EXCLUDE section is encountered.
2318 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2320 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
2321 (xstormy16_reloc_map): Initialise new field with correct howto
2323 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2326 2002-01-10 Michael Snyder <msnyder@redhat.com>
2328 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2329 (elfcore_write_pstatus): Use long instead of pid_t;
2330 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2332 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
2334 * elf.c: Update copyright years.
2335 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2336 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2338 2002-01-08 Michael Snyder <msnyder@redhat.com>
2340 Add capability to write corefile note sections, for gdb.
2341 * elf.c (elfcore_write_note): New function.
2342 (elfcore_write_prpsinfo): New function.
2343 (elfcore_write_prstatus): New function.
2344 (elfcore_write_pstatus): New function.
2345 (elfcore_write_prfpreg): New function.
2346 (elfcore_write_prxfpreg): New function.
2347 * elf-bfd.h: Add prototypes for above functions.
2349 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
2351 * elf.c (elf_fake_sections): Propagate errors from
2352 elf_backend_fake_section.
2354 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2356 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2357 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2358 (elf32-sh-nbsd.lo): New rule.
2359 * Makefile.in: Regenerate.
2360 * config.bfd (sh*le-*-netbsdelf*): New target.
2361 (sh*-*-netbsdelf*): New target.
2362 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2363 (bfd_elf32_shnbsd_vec): New vector.
2364 (bfd_elf32_shlnbsd_vec): New vector.
2365 * configure: Regenerate.
2366 * elf32-sh-nbsd.c: New file.
2367 * targets.c: Update copyright years.
2368 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
2369 bfd_elf32_shnbsd_vec.
2371 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
2373 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2375 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
2377 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
2378 of a symbol in a section that will be deleted.
2380 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2382 * po/es.po: New file: Spanish translation.
2383 * configure.in (ALL_LINGUAS): Add es.
2384 * configure: Regenerate.
2386 2002-01-06 Steve Ellcey <sje@cup.hp.com>
2388 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
2389 argument so we can handle HP-UX specially.
2390 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
2391 (elfNN_hpux_backend_section_from_bfd_section): New for support
2392 of SHN_IA_64_ANSI_COMMON.
2393 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
2394 (is_unwind_section_name): Add special HP-UX support.
2395 (elfNN_ia64_section_from_shdr): Add support for more sections.
2396 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
2397 add support for more sections.
2398 (elfNN_ia64_additional_program_headers): Modify
2399 is_unwind_section_name call.
2400 (elfNN_ia64_modify_segment_map): Remove assumption that there is
2401 only one unwind section in segment.
2403 2002-01-06 Alan Modra <amodra@bigpond.net.au>
2405 * syms.c (_bfd_generic_make_empty_symbol): New function.
2406 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
2407 _bfd_generic_make_empty_symbol.
2408 * libbfd.h: Regenerate.
2409 * bfd-in2.h: Regenerate.
2410 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
2411 (hppabsd_core_get_symtab_upper_bound): Don't define.
2412 (hppabsd_core_get_symtab): Likewise.
2413 (hppabsd_core_print_symbol): Likewise.
2414 (hppabsd_core_get_symbol_info): Likewise.
2415 (hppabsd_core_bfd_is_local_label_name): Likewise.
2416 (hppabsd_core_get_lineno): Likewise.
2417 (hppabsd_core_find_nearest_line): Likewise.
2418 (hppabsd_core_bfd_make_debug_symbol): Likewise.
2419 (hppabsd_core_read_minisymbols): Likewise.
2420 (hppabsd_core_minisymbol_to_symbol): Likewise.
2421 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
2423 * hpux-core.c: Similarly.
2424 * irix-core.c: Similarly.
2425 * osf-core.c: Similarly.
2426 * sco5-core.c: Similarly.
2427 * binary.c (binary_make_empty_symbol): Remove function, define as
2428 _bfd_generic_make_empty_symbol.
2429 * ihex.c (ihex_make_empty_symbol): Likewise.
2430 * mmo.c (mmo_make_empty_symbol): Likewise.
2431 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
2432 * srec.c (srec_make_empty_symbol): Likewise.
2433 * versados.c (versados_make_empty_symbol): Likewise.
2434 * vms.c (_bfd_vms_make_empty_symbol): Remove.
2435 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
2436 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
2437 rather than _bfd_vms_make_empty_symbol.
2438 * vms-misc.c (new_symbol): Likewise.
2440 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2442 * section.c (bfd_section_init): Remove unnecessary initialisations.
2443 (bfd_section_list_clear): New function.
2444 (bfd_section_list_remove, bfd_section_list_insert): New macros.
2445 (_bfd_strip_section_from_output): Use them.
2446 * coffcode.h (coff_set_alignment_hook): Likewise.
2447 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
2448 * elf64-mips.c (mips_elf64_final_link): Likewise.
2449 * elf64-mmix.c (mmix_elf_final_link): Likewise.
2450 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2451 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
2452 * bfd-in2.h: Regenerate.
2454 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
2455 rather than doing our own section handling. Clean up after errors
2456 with bfd_release and bfd_section_list_clear. Handle unexpected
2458 * aoutf1.h (sunos4_core_file_p): Likewise.
2459 * aix386-core.c (aix386_core_file_p): Likewise.
2460 * cisco-core.c (cisco_core_file_validate): Likewise.
2461 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
2462 * trad-core.c (trad_unix_core_file_p): Likewise.
2464 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
2465 with bfd_release and bfd_section_list_clear.
2466 * hpux-core.c (hpux_core_core_file_p): Likewise.
2467 * irix-core.c (irix_core_core_file_p): Likewise.
2468 * lynx-core.c (lynx_core_file_p): Likewise.
2469 * osf-core.c (osf_core_core_file_p): Likewise.
2470 * rs6000-core.c (rs6000coff_core_p): Likewise.
2471 * sco5-core.c (sco5_core_file_p): Likewise.
2473 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
2474 sign extension adjustments without conditionals.
2476 2002-01-04 Jakub Jelinek <jakub@redhat.com>
2478 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
2479 CIE at .eh_frame start is removed due to no FDEs referencing it.
2481 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2483 * config.bfd (x86_64-*-netbsd*): New target.
2484 * configure.in (x86_64-*-netbsd*): Set COREFILE
2486 * configure: Regenerated.
2488 2002-01-03 Tom Rix <trix@redhat.com>
2490 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
2491 for recent bfd_make_section_anyway change.
2493 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
2495 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2496 R_ARM_THM_PC11 reloc.
2498 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2500 * configure.in (LINGUAS): Add ja.
2501 * configure: Regenerate.
2502 * po/ja.po: Import from translation project's web site.
2504 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2506 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
2507 messages to ease translation into other languages.
2509 For older changes see ChangeLog-0001
2515 version-control: never