1 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
3 * ecoffswap.h (ecoff_swap_pdr_in) <isym, iline>: Update to
4 correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)
6 (ecoff_swap_sym_in) <iss>: Likewise.
7 * ecoff.c (_bfd_ecoff_slurp_symbolic_info): Fix error reading
8 ECOFF information: 'ioptMax' refers to the actual *size*
9 of the optimization symtab, not the number of entries.
11 2002-09-19 Daniel Jacobowitz <drow@mvista.com>
13 * elf32-arm.h (elf32_arm_adjust_dynamic_symbol): Update
14 ELF_LINK_HASH_NEEDS_PLT logic.
16 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
18 * elfcode.h (elf_slurp_reloc_table_from_section): Check
19 correct relocation count.
21 2002-09-17 Daniel Jacobowitz <drow@mvista.com>
23 * bfd-in.h (bfd_get_dynamic_symcount): Define.
24 * bfd.c (struct _bfd): Add dynsymcount.
25 * bfd-in2.h: Regenerated.
26 * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Set
28 * elfcode.h (elf_slurp_reloc_table_from_section): Check
31 2002-09-17 Stan Cox <scox@redhat.com>
33 * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
34 (mips_elf64_final_gp): Don't make up gp value.
35 * elfn32-mips.c (mips_elf_final_gp): Likewise.
36 * elfxx-mips.c (_bfd_mips_elf_final_link): Always create
37 .MIPS.options/.options section.
39 2002-09-17 David O'Brien <obrien@FreeBSD.org>
41 * elf32-i386-fbsd.c: Always label using the EI_OSABI method.
42 It is benign for FreeBSD < 4.1. Minor reformatting.
43 * elf64-alpha-fbsd.c: Likewise.
45 2002-09-17 Jakub Jelinek <jakub@redhat.com>
47 * elf32-i386.c (elf_i386_relocate_section) [R_386_TLS_TPOFF32]: Negate
50 2002-09-17 Alan Modra <amodra@bigpond.net.au>
52 * elf64-alpha.c (alpha_elf_size_info): Make static.
54 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
56 * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
59 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
61 * elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove
64 2002-09-16 Bruno Haible <bruno@clisp.org>
66 * elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included
67 by a target variant implementation.
68 * elf64-alpha.c: Likewise.
69 * elf32-i386-fbsd.c: New file.
70 * elf64-alpha-fbsd.c: New file.
71 * targets.c: Support bfd_elf32_i386_freebsd_vec and
72 bfd_elf64_alpha_freebsd_vec.
73 * configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec,
74 bfd_elf64_alpha_freebsd_vec.
75 * Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo.
76 (BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c.
77 (BFD64_BACKENDS): Add elf64-alpha-fbsd.lo.
78 (BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c.
79 (elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies.
80 * config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD
81 specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate.
83 2002-09-12 Jakub Jelinek <jakub@redhat.com>
85 * elf32-i386.c (dtpoff_base, tpoff): Don't crash if tls_segment is
87 (elf_i386_relocate_section): Return false after printing error about
88 unresolvable relocation.
90 2002-09-12 Nick Clifton <nickc@redhat.com>
92 * elf32-arm.h (elf32_arm_final_link_relocate): Fix handling of
95 2002-09-11 Andrew Haley <aph@cambridge.redhat.com>
97 * elf.c (_bfd_elf_find_nearest_line): Check functionname_ptr and
98 line_ptr before deciding we've found a symbol.
100 2002-09-11 Nick Clifton <nickc@redhat.com>
102 * po/da.po: New Danish translation file.
103 * configure.in (LINGUAS): Add 'da'.
104 * configure: Regenerate.
106 2002-09-10 Michael Snyder <msnyder@redhat.com>
108 * irix-core.c (do_sections, do_sections64): New functions.
109 (irix_core_core_file_p): Call new functions do_sections,
110 do_sections64, depending on corefile (32-bit or 64-bit).
112 2002-09-09 Richard Henderson <rth@redhat.com>
114 * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M
115 and PCREL21F like PCREL21B.
117 2002-09-04 Kevin Buettner <kevinb@redhat.com>
119 * config.bfd (mips*-*-irix6*): Add new ABI vectors. Make n32 default
122 2002-09-02 Nick Clifton <nickc@redhat.com>
124 * elf32-v850.c (v850_elf_final_link_relocate): Use helpful
125 names instead of cryptically overloaded bfd_reloc error
127 (v850_elf_relocate_section): Likewise.
128 (v850_elf_relax_section): Replace caching of external symbols
129 with caching of internal symbols obtained from calling
130 bfd_elf_get_elf_syms().
131 Fixup problems with freeing cached allocated memory blocks.
133 2002-09-02 Alan Modra <amodra@bigpond.net.au>
135 * cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove.
136 (bfd_pj_arch): Use bfd_default_scan.
137 * cpu-v850.c (scan): Remove.
138 (N): Use bfd_default_scan.
139 * cpu-z8k.c (scan_mach): Remove.
140 (arch_info_struct, bfd_z8k_arch): Reorganize so that the default is
141 first. Use bfd_default_scan.
143 * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-coded
145 (ecoff_get_magic): Likewise.
146 * elf32-v850.c (v850_elf_object_p): Likewise.
147 (v850_elf_final_write_processing): Likewise.
148 * mipsbsd.c (MY(set_arch_mach)): Likewise.
149 (MY(write_object_contents)): Likewise.
150 * coff64-rs6000.c (xcoff64_write_object_contents): Likewise.
151 * coffcode.h (coff_write_object_contents): Likewise.
152 (coff_set_arch_mach_hook): Add comment describing machine == 0.
153 Remove unnecessary "machine" assignments.
154 (coff_write_relocs): Test for the absolute section sym by testing
157 * aoutx.h (NAME(aout,machine_type)): Recognize bfd_mach_i386_i386
158 and bfd_mach_i386_i386_intel_syntax.
159 * pdp11.c (NAME(aout,machine_type)): Likewise.
161 2002-08-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
163 * bfd-in.h (align_power): Cast constants to bfd_vma type.
164 * bfd-in2.h (align_power): Likewise.
166 2002-08-30 Alan Modra <amodra@bigpond.net.au>
168 * Makefile.am: Run "make dep-am".
169 * Makefile.in: Regenerate.
171 * cpu-avr.c (compatible): Don't use hard-coded mach constants.
172 * cpu-powerpc.c (powerpc_compatible): Likewise.
173 * cpu-rs6000.c (rs6000_compatible): Likewise.
175 2002-08-28 Catherine Moore <clm@redhat.com>
177 * elf32-v850.c (v850_elf_reloc_map): Add new relocs.
178 (v850-elf-reloc): Don't resolve pc relative relocs.
179 (v850_elf_ignore_reloc): New routine.
180 (v850_elf_final_link_relocate): Handle new relocs.
181 (v850_elf_relax_delete_bytes ): New routine.
182 (v850_elf_relax_section): New routine.
183 (bfd_elf32_bfd_relax_section): Define.
184 (HOWTO): New entries for new relocs.
185 * reloc.c (BFD_RELOC_V850_LONGCALL): New reloc.
186 (BFD_RELOC_V850_LONGJUMP): New reloc.
187 (BFD_RELOC_V850_ALIGN): New reloc.
188 * archures.c: Remove redundant v850ea architecture.
189 * cpu-v850.c: Remove redundant v850ea support.
190 * libbfd.h: Regenerate.
191 * bfd-in2.h: Regenerated.
193 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
195 * config.bfd: Add tic4x-*-*coff* and c4x-*-*coff* target.
196 * configure.in: Add tic4x_coff vector files.
197 * configure: Regenerate.
198 * Makefile.am: Add tic4x target.
199 * Makefile.in: Regenerate.
201 2002-08-27 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
203 * archures.c: Add the BFD arch type tic4x.
204 * bfd-in.h: Add BFD_IN_MEMORY flag.
205 * coff-tic4x.c: New file.
206 * coffswap.h (coff_swap_sym_out): Add preadjuster.
207 * cpu-tic4x.c: New file.
208 * targets.c: Added tic4x- in list of xvecs.
209 * ticoff.h: New file.
210 * bfd-in2.h: Regenerate.
212 2002-08-27 Adam Nemet <anemet@lnxw.com>
214 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Set the last
215 bit of DT_INIT and DT_FINI for Thumb functions.
217 2002-08-26 Alan Modra <amodra@bigpond.net.au>
219 * coffcode.h (coff_set_arch_mach_hook): Handle W65MAGIC.
221 2002-08-26 Alan Modra <amodra@bigpond.net.au>
223 * aoutx.h (NAME(aout,reloc_type_lookup)): Handle BFD_RELOC_8.
225 2002-08-24 Kaz Kojima <kkojima@rr.iij4u.or.jp>
227 * elf32-sh.c (sh_elf_copy_indirect_symbol): New.
228 (create_got_section, allocate_dynrelocs, readonly_dynrelocs):
230 (struct elf_sh_pcrel_relocs_copied): Removed.
231 (struct elf_sh_dyn_relocs): New.
232 (struct elf_sh_link_hash_entry): Replace pcrel_relocs_copied
233 field with dyn_relocs.
234 (struct elf_sh_link_hash_table): Add short-cuts to get dynamic
235 sections and sym_sec.
236 (sh_elf_link_hash_newfunc): Clear dyn_relocs.
237 (sh_elf_link_hash_table_create): Clear shorts-cuts and sym_sec.
238 (sh_elf_create_dynamic_sections): Use create_got_section instead
239 of _bfd_elf_create_got_section.
240 (sh_elf_check_relocs): Likewise.
241 (sh_elf_create_dynamic_sections): Use short-cuts to the dynamic
243 (sh_elf_adjust_dynamic_symbol, sh_elf_size_dynamic_sections,
244 sh_elf_relocate_section, sh_elf_check_relocs,
245 sh_elf_finish_dynamic_symbol, sh_elf_finish_dynamic_sections):
247 (sh_elf_adjust_dynamic_symbol): Handle nocopyreloc. Keep the
248 dynamic relocations and avoiding the copy relocation when we
249 didn't find any dynamic relocations in the section which has
250 contents or is read-only.
251 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
252 (sh_elf_size_dynamic_sections): Don't reset the size of
253 .rela.got section even if dynamic_sections_created flag is off.
254 Don't use sh_elf_discard_copies. Scan all input bfd and use
255 allocate_dynrelocs. Call readonly_dynrelocs to determine
256 whether we need DT_TEXTREL.
257 (sh_elf_adjust_dynamic_symbol): Use plt.refcount to determine
258 whether the symbol was never referred to.
259 (sh_elf_relocate_section): Use WILL_CALL_FINISH_DYNAMIC_SYMBOL.
260 (sh_elf_gc_sweep_hook): Fill with the real sweep function.
261 (sh_elf_check_relocs): Call create_got_section if the short-cut
262 to .got is null. Increment reference counters only instead of
263 allocating space on dynamic sections here. Don't conditionalize
264 uninitialized got.offset value when marking the symbol as a
265 global offset table entry. Keep relocations for symbols satisfied
266 by a dynamic library to avoid copy relocations for the symbol.
267 Set dynobj field of an elf hash table if needed.
268 (sh_elf_finish_dynamic_sections): Handle null section pointer
270 (elf_backend_copy_indirect_symbol): Defined.
271 (elf_backend_can_refcount): Defined.
273 2002-08-23 Nick Clifton <nickc@redhat.com>
275 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Undo
276 previous change. Add comment explaining why.
278 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>
280 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): Copy
281 contents of .got.plt[2] to tr0, not address of .got.plt.
282 (sh_elf_finish_dynamic_symbol): Do not apply GOT_BIAS when
283 patching absolute plt entry. For shmedia plt entry, set bottom bit
284 of branch to plt0 as this is a branch to an shmedia instruction.
285 * elf64-sh64.c (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le):
286 Copy contents of .got.plt[2] to tr0, not address of .got.plt.
287 (elf_sh64_plt_entry_be, elf_sh64_plt_entry_le): Use ptrel to
289 (sh64_elf64_finish_dynamic_symbol): Do not apply GOT_BIAS when
290 patching absolute plt entry. For shmedia plt entry, branch to
291 plt0 is now ptrel, so use relative offset. Set bottom bit of
292 branch target as it is a branch to an shmedia instruction.
294 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>,
295 Richard Shann <richard.shann@superh.com>
297 * elf32-sh.c (sh_elf_finish_dynamic_sections): Set LSB of DT_INIT
298 value if .init is an SHmedia function. Similarly for DT_FINI.
299 * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
301 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>
303 * elf32-sh.c (sh_elf_size_dynamic_sections): Zero initialize
305 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
307 2002-08-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
309 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use a simple
310 byte read when reading the return address register column.
312 2002-08-22 Nick Clifton <nickc@redhat.com>
314 * config.bfd: Add powepc64-*-*bsd* target.
316 2002-08-22 Graeme Peterson <gp@qnx.com>
318 * Makefile.am: Add entries for elf32-shqnx.c
319 * Makefile.in: Regenerate.
320 * config.bfd: Add support sh-*-nto* target.
321 * configure.in: Add support for bfd_elf32_sh{l}qnx_vec.
322 * configure: Regenerate.
323 * elf32-qnx.h: Changed typo "elf_i386qnx_*" to "elf_qnx_*" .
324 * elf32-sh.c: Do not include elf32-target.h if
325 ELF32_SH_C_INCLUDED is defined.
326 * elf32-shqnx.c: New file: Support for QNX.
327 * targets.c: Add bfd_elf32_sh{l}qnx_vec.
329 2002-08-22 Nick Clifton <nickc@redhat.com>
331 * po/tr.po: Updated Turkish translation.
333 * syms.c (_bfd_generic_read_minisymbols): Set bfd_error if the
334 symbols are not read.
336 2002-08-22 Alan Modra <amodra@bigpond.net.au>
338 * elf32-m68hc11.c: Formatting fixes.
339 (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
340 * elf32-m68hc12.c: Formatting fixes.
341 (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
343 2002-08-22 Alan Modra <amodra@bigpond.net.au>
345 * coff-rs6000.c (rs6000coff_vec <object_flags>): Add SEC_CODE and
347 (pmac_xcoff_vec): Likewise.
348 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
349 (aix5coff64_vec): Likewise.
351 2002-08-22 Alan Modra <amodra@bigpond.net.au>
353 * elf-bfd.h (struct elf_backend_data): Add struct elf_backend_data
354 param to elf_backend_copy_indirect_symbol.
355 (_bfd_elf_link_hash_copy_indirect): Likewise.
356 * elflink.h (elf_add_default_symbol, elf_fix_symbol_flags): Adjust
357 calls to copy_indirect_symbol.
358 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
359 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
360 * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
361 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
362 * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
363 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
364 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
365 * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
366 * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Likewise.
367 * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Properly
368 test refcounts for "used" values.
370 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
372 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Add PARAMS to
373 argument declaration.
375 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
377 * archures.c (bfd_mach_ppc_e500): Added.
378 * bfd-in2.h: Rebuilt.
379 * cpu-powerpc.c (bfd_powerpc_archs): Added e500.
381 2002-08-19 Alan Modra <amodra@bigpond.net.au>
383 * elf32-m68hc12.c (elf_backend_can_gc_sections): False.
385 2002-08-17 Andrew Cagney <ac131313@redhat.com>
387 * elf.c (bfd_elf_get_elf_syms): Change type of `esym' to
390 2002-08-17 Stan Cox <scox@redhat.com>
392 * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Use the
393 IRIX 6 segment layout for NEWABI.
395 2002-08-16 Stephen Clarke <stephen.clarke@superh.com>
397 * bfd/elf32-sh.c (sh_elf_gc_mark_hook): For sh64, skip indirect
398 symbols when looking for section referred to by a relocation.
399 * bfd/elf64-sh.c (sh_elf64_gc_mark_hook): Likewise.
401 2002-08-15 Alan Modra <amodra@bigpond.net.au>
403 * elf32-i370.c: Move reloc enum to include/elf/i370.h.
405 2002-08-15 Hans-Peter Nilsson <hp@axis.com>
407 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Add
408 missing check for whether the symbol is referenced by DSO before
409 unexporting it as an unneeded dynamic symbol.
411 2002-08-14 H.J. Lu <hjl@gnu.org>
413 * libbfd.h: Regenerate.
415 2002-08-14 H.J. Lu <hjl@gnu.org>
417 * config.bfd: Always add 64bit vectors to 32bit Linux/mips.
419 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
421 * elf32-m68hc11.c (m68hc11_relax_group): New to relax group of
423 (m68hc11_direct_relax): New to define table of relaxable instructions.
424 (find_relaxable_insn): New, find a relaxable insn.
425 (compare_reloc): New to compare two relocs.
426 (m68hc11_elf_relax_section): New, relax text sections.
427 (m68hc11_elf_relax_delete_bytes): New, delete bytes and adjust branchs.
428 (elf32_m68hc11_check_relocs): New function for GC support.
429 (elf32_m68hc11_relocate_section): New function for GC support.
430 (bfd_elf32_bfd_relax_section): Define to support linker relaxation.
431 (elf_backend_check_relocs): Likewise.
432 (elf_backend_relocate_section): Likewise.
434 2002-08-13 H.J. Lu <hjl@gnu.org>
436 * elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count
437 definitions in shared objects when checking symbol with
440 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
442 * elf32-m68hc11.c (elf32_m68hc11_gc_mark_hook): New for section GC.
443 (elf32_m68hc11_gc_sweep_hook): Likewise.
444 (elf_backend_gc_mark_hook): Define for GC section support.
445 (elf_backend_gc_sweep_hook): Likewise.
446 (elf_backend_can_gc_sections): Likewise.
448 * elf32-m68hc12.c: Likewise.
450 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
452 * elf32-m68hc11.c (_bfd_m68hc11_elf_print_private_bfd_data): New.
453 (_bfd_m68hc11_elf_merge_private_bfd_data): New function.
454 (_bfd_m68hc11_elf_set_private_flags): New function.
455 Use them to set/check/print ELF flags specific to 68HC11.
457 * elf32-m68hc12.c (_bfd_m68hc12_elf_print_private_bfd_data): New.
458 (_bfd_m68hc12_elf_merge_private_bfd_data): New function.
459 (_bfd_m68hc12_elf_set_private_flags): New function.
460 Use them to set/check/print ELF flags specific to 68HC12.
462 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
464 * elf32-m68hc11.c (elf_m68hc11_howto_table): Add the new relocs;
465 fix masks for PC-rel relocs.
466 (m68hc11_elf_ignore_reloc): New function.
468 * elf32-m68hc12.c (m68hc12_elf_special_reloc): New to handle specific
469 68HC12 banked addressing relocs.
470 (m68hc12_phys_addr): New to compute physical address of banked memory.
471 (m68hc12_phys_page): Likewise for page.
472 (m68hc12_addr_is_banked): New to see if address is in banked area.
473 (elf_m68hc12_howto_table): Add new relocs and rename to xx12.
475 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
477 * reloc.c (BFD_RELOC_M68HC11_RL_JUMP, BFD_RELOC_M68HC11_RL_GROUP,
478 BFD_RELOC_M68HC11_LO16, BFD_RELOC_M68HC11_PAGE,
479 BFD_RELOC_M68HC11_24): New relocs for 68HC11/68HC12.
480 * bfd-in2.h: Regenerate.
482 2002-08-12 H.J. Lu <hjl@gnu.org>
484 * elflink.h (elf_add_default_symbol): Preserve section across
487 2002-08-09 Graeme Peterson <gp@qnx.com>
489 * Makefile.am: Add entries for elf32-ppcqnx.c, and add
490 elf32-qnx.h dependency to elfarmqnx-nabi.c and elf32-i386qnx.c.
491 * Makefile.in: Regenerate.
492 * config.bfd: Add support for powerpc{le}-*-nto targets.
493 * configure.in: Add support for bfd_elf32_powerpc{le}qnx_vec.
494 * configure: Regenerate.
495 * elf32-i386qnx.c: Moved backend functions into a QNX specific
496 common file "elf32-qnx.h", and now include that file.
497 * elf32-qnx.h: New file: QNX specific common elf backend.
498 * elf32-ppc.c: Do not include elf32-target.h if
499 ELF32_PPC_C_INCLUDED is defined.
500 * elf32-ppcqnx.c: New file: Support for QNX.
501 * elfarmqnx-nabi.c: Include elf32-qnx.h for qnx elf backend.
502 * targets.c: Add bfd_elf32_powerpc{le}qnx_vec.
504 2002-08-09 Nick Clifton <nickc@redhat.com>
506 * po/sv.po: Updated Swedish translation.
508 2002-08-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
510 * elfxx-mips.c (mips_elf_global_got_index): Avoid segfault if
511 g->global_gotsym is NULL.
513 2002-08-08 H.J. Lu <hjl@gnu.org>
515 * elflink.h (elf_add_default_symbol): Don't warn if a definition
516 overrides an indirect versioned symbol.
518 2002-08-08 Jakub Jelinek <jakub@redhat.com>
520 * elf32-i386.c (elf_i386_relocate_section): Fill in proper addend
521 for R_386_TLS_TPOFF32 relocs against symndx 0.
523 2002-08-07 H.J. Lu <hjl@gnu.org>
525 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Check symbol
526 with undefined version if needed.
527 (elf_link_assign_sym_version): Match a default symbol with a
528 version without definition. No need to hide the default
529 definition separately.
531 2002-08-08 Alan Modra <amodra@bigpond.net.au>
533 * elflink.h (elf_link_output_extsym): Don't output symbols from
534 SEC_EXCLUDE sections.
536 * aoutx.h (aout_link_write_symbols): Correct handling of warning syms.
538 2002-08-07 Alan Modra <amodra@bigpond.net.au>
540 * elf64-ppc.c (edit_opd): Arrange to drop symbols for discarded .opd
543 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
545 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Cast signedness
548 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
550 * elfxx-mips.c (ABI_64_P): Remove superfluous check.
552 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
554 * elf32-mips.c (mips_reloc_map): Fix typo.
556 2002-08-06 Alan Modra <amodra@bigpond.net.au>
558 * xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
560 2002-08-06 Alan Modra <amodra@bigpond.net.au>
562 * elf64-ppc.c (ppc64_elf_howto_raw): Zero all src_mask entries.
564 2002-08-06 Alan Modra <amodra@bigpond.net.au>
566 * libxcoff.h: Use PARAMS on function declarations.
567 * coff-rs6000.c (xcoff_generate_rtinit): Simplify size calc.
568 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
570 * coff-rs6000.c: (xcoff_rtype2howto): Don't place reloc address in
572 * coff64-rs6000.c: (xcoff64_rtype2howto): Likewise.
574 2002-08-06 Alan Modra <amodra@bigpond.net.au>
576 * coff-rs6000.c: Formatting fixes.
577 (xcoff_calculate_relocation): Use PARAMS in declaration.
578 (xcoff_complain_overflow): Likewise.
579 (xcoff_ppc_relocate_section): Use old-style function pointer call.
580 (bfd_xcoff_backend_data): Remove useless comments.
581 (rs6000coff_vec): Likewise.
582 (bfd_pmac_xcoff_backend_data): Likewise.
583 (pmac_xcoff_vec): Likewise.
585 * coff64-rs6000.c: Formatting fixes.
586 (xcoff64_calculate_relocation): Use PARAMS in declaration.
587 (xcoff64_ppc_relocate_section): Use old-style function pointer call.
588 (bfd_xcoff_backend_data): Remove useless comments.
589 (rs6000coff64_vec): Likewise.
590 (bfd_xcoff_aix5_backend_data): Likewise.
591 (aix5coff64_vec): Likewise.
593 2002-08-06 Alan Modra <amodra@bigpond.net.au>
595 * coff-rs6000.c (xcoff_howto_table): Revert some of last change to
596 mask entries. Use complain_overflow_dont for R_REF.
597 (xcoff_reloc_type_ba): Revert last change.
598 (xcoff_reloc_type_br): Likewise.
599 (xcoff_reloc_type_crel): Likewise.
600 (xcoff_ppc_relocate_section): Likewise.
601 * coff64-rs6000.c (xcoff64_reloc_type_br): Likewise.
602 (xcoff64_ppc_relocate_section): Likewise.
603 (xcoff64_howto_table): Revert some of last change to mask entries.
604 Use complain_overflow_dont for R_REF.
606 * coff-rs6000.c (xcoff_howto_table): Fix src_mask entries. Make all
607 relocs with bitsize == 16 have size = 1.
608 (xcoff_reloc_type_ba): Correct src_mask and dst_mask adjustment.
609 (xcoff_reloc_type_br): Likewise.
610 (xcoff_reloc_type_crel): Likewise.
611 (xcoff_ppc_relocate_section): Set up src_mask and dst_mask correctly.
612 * coff64-rs6000.c (xcoff64_reloc_type_br): Correct src_mask and
614 (xcoff64_ppc_relocate_section): Set up src_mask and dst_mask correctly.
615 (xcoff64_howto_table): Fix src_mask entries. Make all relocs with
616 bitsize == 16 have size = 1.
618 2002-08-01 Denis Chertykov <denisc@overta.ru>
620 * elf32-ip2k.c: Processor manufacturer changed to Ubicom.
621 (struct misc): New field isymbuf. All free_* fields removed.
622 (symbol_value): Pass in internal syms. No need to swap syms in.
623 (ip2k_elf_relax_section): Use bfd_elf_get_elf_syms. Properly free
624 possibly cached info.
625 (tidyup_after_error): Removed.
626 (ip2k_elf_relax_section_pass1): Don't use removed fields of struct
628 (adjust_all_relocations): Use internal syms. No need to swap syms
630 (add_page_insn): Don't use removed fields of struct misc.
632 2002-08-01 Nick Clifton <nickc@redhat.com>
634 * elf32-arm.h: Revert previous delta.
636 2002-08-01 Nick Clifton <nickc@redhat.com>
638 * configure.in (AM_INIT_AUTOMAKE): Bump version number.
639 * configure: Regenerate.
641 2002-07-31 H.J. Lu <hjl@gnu.org>
643 * config.bfd: Add x86-64 vector to Linux/i386 if 64bit BFD is
646 2002-07-31 H.J. Lu <hjl@gnu.org>
648 * config.bfd: Add n32 vectors to 32bit Linux/mips if 64bit BFD
651 2002-07-31 Jakub Jelinek <jakub@redhat.com>
653 * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type
654 if _bfd_elf_link_hash_copy_indirect will swap got.refcount.
656 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
658 * cpu-ns32k.c (_bfd_ns32k_put_immdeiate, _bfd_ns32k_get_immediate):
659 There is no 8 byte relocation type for this architecture.
660 (do_ns32k_reloc): Use bfd_vma instead of native types.
661 (bfd_ns32k_put_immediate, _bfd_ns32k_relocate_contents) put_data
663 (_bfd_ns32k_put_displacement): Don't check for overflow. We can
664 rely on generic code to do that.
665 * aout-ns32k.c (howto_table): Add appropriate overflow detection
666 to all table entries.
667 (_bfd_ns32k_relocate_contents): put_data returns void.
668 * ns32k.h: (_bfd_ns32k_put_displacement, _bfd_ns32k_put_immediate)
669 (_bfd_do_ns32k_reloc_contents): Fix prototypes. put data functions
672 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
674 * aoutx.h (aout_link_check_ar_symbols): Whether to include an
675 archive object is target dependant.
677 2002-07-31 Adam Nemet <anemet@lnxw.com>
679 * elf32-arm.h (ARM_PLT_ENTRY_SIZE): Rename PLT_ENTRY_SIZE.
680 (THUMB_PLT_ENTRY_SIZE): New macro.
681 (PLT_ENTRY_SIZE): Return the appropriate *_PLT_ENTRY_SIZE.
682 (elf32_arm_plt0_entry): Rename PLT_ENTRY_SIZE to
684 (elf32_arm_plt_entry): Likewise.
685 (elf_backend_plt_header_size): Likewise.
686 (elf32_thumb_plt0_entry): New global.
687 (elf32_arm_finish_dynamic_sections): Use it. Put Thumb entries
689 (elf32_thumb_plt_entry): New global.
690 (elf32_arm_finish_dynamic_symbol): Use it. Use .thumb.plt for
691 Thumb entries. Set the bottom bit of the corresponding GOT entry
692 for a Thumb PLT entry.
693 (struct elf32_arm_plt_entry_info): New structure.
694 (struct elf32_arm_link_hash_entry, plt_info): New member of this
696 (elf32_arm_link_hash_newfunc): Initialize new member.
697 (elf32_arm_final_link_relocate, R_ARM_THM_PC22 case): Handle
698 relocations against the PLT.
699 (elf32_arm_check_relocs, case R_ARM_PLT32 case): Set
700 first_rel_type if this is the first time we encounter the symbol.
701 (elf32_arm_check_relocs, case R_ARM_THM_PC22 case): New case.
702 Determine if relocation needs a PLT entry. Set first_rel_type if
703 this is the first time we encounter the symbol
704 (elf32_arm_adjust_dynamic_symbol): Create PLT entries for Thumb
706 (elf32_arm_size_dynamic_sections): Handle .plt.thumb like .plt.
707 (elf32_arm_create_dynamic_sections): New function. Create the
709 (elf_backend_create_dynamic_sections): Call it.
711 2002-07-31 Nick Clifton <nickc@redhat.com>
713 * bfd.c (bfd_alt_mach_code): Rename parameter 'index' to
714 'alternative' in order to avoid shadowing global symbol of the
716 * bfd-in2.h: Regenerate.
717 * libbfd.h: Regenerate.
718 * libcoff.h: Regenerate.
720 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
722 * Makefile.am: Add n32 ABI support.
723 * Makefile.in: Regenerate.
724 * config.bfd: Add n32 vectors to mips64*-*-linux* targets. Treat 64
725 bit vectors for mips*-*-linux targets as optional.
726 * configure.in: Add n32 ABI vectors.
727 * configure: Regenerate.
728 * elf32-mips.c (mips_elf32_object_p): Reject n32 ABI files.
729 * elfn32-mips.c: New file, n32 ABI support.
730 * targets.c: Add n32 ABI vectors.
732 2002-07-30 Graeme Peterson <gp@qnx.com>
734 * elfarmqnx-nabi.c: New file: Support for QNX.
735 * config.bfd: Add support for arm-*-nto target.
736 * configure.in: Add support for bfd_elf32_{big|little}armqnx_vec.
737 * configure: Regenerate.
738 * Makefile.am: Add entries for elfarmqnx-nabi.c.
739 * Makefile.in: Regenerate.
740 * elf32-arm.h (ELF_MAXPAGESIZE): Do not define if already defined.
741 Do not define global function if ELFARM_NABI_C_INCLUDED is defined.
742 * elfarm-nabi.c: Do not include elf32-arm.h if
743 ELFARM_NABI_C_INCLUDED is defined.
744 * targets.c: Add bfd_elf32_{big|little}armqnx_vec.
746 2002-07-30 Nick Clifton <nickc@redhat.com>
748 * po/sv.po: Updated Swedish translation.
750 2002-07-30 Jakub Jelinek <jakub@redhat.com>
752 * elf.c (elf_fake_sections): Fix up .tbss sh_size and sh_type.
754 2002-07-30 Alan Modra <amodra@bigpond.net.au>
756 * aoutx.h (some_aout_object_p): Clean up tdata properly on error.
757 * archive.c (bfd_generic_archive_p): Likewise.
758 * coff-rs6000.c (_bfd_xcoff_archive_p): Likewise.
759 (_bfd_xcoff_archive_p): Use bfd_scan_vma in place of strtol.
760 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
761 (xcoff64_archive_p): Likewise.
762 (xcoff64_openr_next_archived_file): Likewise.
763 (xcoff64_archive_p): Clean up tdata properly on error.
764 * coffgen.c (coff_real_object_p): Likewise.
765 (coff_object_p): Release filehdr and opthdr.
766 * ecoff.c (_bfd_ecoff_archive_p): Clean up tdata properly on error.
767 * ieee.c (ieee_archive_p): Likewise.
768 * ihex.c (ihex_object_p): Likewise.
769 (ihex_mkobject): Always allocate tdata.
770 * peicode.h (pe_ILF_object_p): Release bfd_alloc'd buffer on error.
771 * srec.c (srec_mkobject): Always allocate tdata.
772 (srec_object_p): Clean up tdata properly on error.
773 (symbolsrec_object_p): Likewise.
774 * versados.c (versados_object_p): Likewise.
775 * vms-misc.c (_bfd_vms_get_record): Use bfd_malloc instead of malloc,
776 and bfd_realloc instead of realloc.
777 (add_new_contents): Use bfd_alloc instead of bfd_malloc for sections.
778 * vms.c (vms_initialize): Always allocate tdata. Use bfd_alloc in
779 place of bfd_malloc, simplifying error freeing. Free hash table too.
780 (vms_object_p): Clean up tdata on error.
781 (vms_mkobject): Don't complain on stderr if vms_initialize fails.
782 (vms_close_and_cleanup): Adjust for bfd_alloc use.
784 2002-07-30 Alan Modra <amodra@bigpond.net.au>
786 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set e_flags.
788 2002-07-26 Chris Demetriou <cgd@broadcom.com>
790 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE
791 flags into resulting BFD.
793 2002-07-26 Alan Modra <amodra@bigpond.net.au>
795 From John Reiser <jreiser@BitWagon.com>
796 * elf32-i386.c (elf_i386_link_hash_table_create): Clear
797 tls_ldm_got.refcount.
799 2002-07-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
801 * elf64-mips.c: Update TODO comment.
802 (mips_elf64_higher_reloc,mips_elf64_highest_reloc,
803 mips_elf64_gprel16_reloca): Remove prototypes.
804 (mips16_jump_reloc,mips16_gprel_reloc): Add functions.
805 (UNUSED_RELOC): Replace by EMPTY_RELOC.
806 (mips_elf64_howto_table_rel): Use special R_MIPS_HI16 handling. Remove
807 wrong comments. Remove disfunctional support of R_MIPS_HIGHER and
809 (mips_elf64_howto_table_rela): Fix handling of R_MIPS_GPREL16 and
810 R_MIPS_GOT16. Remove wrong comments.
811 (elf_mips16_jump_howto,elf_mips16_gprel_howto,
812 elf_mips_gnu_vtinherit_howto,elf_mips_gnu_vtentry_howto): New, code
814 (mips_elf64_hi16_reloc): Fix formatting.
815 (mips_elf64_higher_reloc,mips_elf64_highest_reloc): Remove.
816 (mips_elf64_got16_reloc): Fix formatting. Remove superfluous code.
817 Better comment. Fall back to R_MIPS_GOT_DISP instead of abort().
818 (mips_elf64_gprel16_reloc): Make static. Add check for
820 (mips_elf64_gprel16_reloca): Remove.
821 (mips_elf64_literal_reloc): New function.
822 (mips_elf64_gprel32_reloc): Fix formatting.
823 (mips_elf64_shift6_reloc): Fix comment. Make static.
824 (mips16_jump_reloc,mips16_gprel_reloc): New functions, code from
826 (elf_reloc_map,mips_reloc_map): New mapping table, similiar as in
828 (bfd_elf64_bfd_reloc_type_lookup): Use the mapping table. Enable GNU
829 specific relocations.
830 (mips_elf64_rtype_to_howto): Enable GNU specific relocations.
831 (mips_elf64_object_p): Invert logic to check for SGI-ish ABI.
832 (ELF_MAXPAGESIZE): Add comment.
834 2002-07-25 Nick Clifton <nickc@redhat.com>
836 * po/sv.po: Updated Swedish translation.
837 * po/es.po: Updated Spanish translation.
838 * po/fr.po: Updated French translation.
840 2002-07-25 Alan Modra <amodra@bigpond.net.au>
842 * elf-bfd.h (_bfd_elf32_link_record_local_dynamic_symbol): Define
843 as elf_link_record_local_dynamic_symbol.
844 (_bfd_elf64_link_record_local_dynamic_symbol): Likewise.
845 (elf_link_record_local_dynamic_symbol): Declare. Now returns int.
846 * elflink.h (elf_link_record_local_dynamic_symbol): Move to..
847 * elflink.c: .. here. Use bfd_elf_get_elf_syms. Check whether an
848 attempt is made to record a symbol in a discarded section, and
849 return `2' in that case.
851 2002-07-24 Nick Clifton <nickc@redhat.com>
853 * po/sv.po: Updated Swedish translation.
854 * po/es.po: Updated Spanish translation.
856 2002-07-23 Alan Modra <amodra@bigpond.net.au>
858 * po/SRC-POTFILES.in: Regenerate.
860 * elf-hppa.h (elf_hppa_relocate_section): If relocatable, return
861 immediately. Remove code handling relocatable linking.
862 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
863 * elf32-cris.c (cris_elf_relocate_section): Likewise.
864 * elf32-fr30.c (elf32_frv_relocate_section): Likewise.
865 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
866 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
867 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
868 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
869 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
870 * elf32-v850.c (v850_elf_relocate_section): Likewise.
871 * elf32-vax.c (elf_vax_relocate_section): Likewise.
872 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
873 * elf32-avr.c (elf_backend_rela_normal): Define.
874 * elf32-cris.c: Likewise.
875 * elf32-fr30.c: Likewise.
876 * elf32-frv.c: Likewise.
877 * elf32-h8300.c: Likewise.
878 * elf32-hppa.c: Likewise.
879 * elf32-ip2k.c: Likewise.
880 * elf32-sparc.c: Likewise.
881 * elf32-v850.c: Likewise.
882 * elf32-vax.c: Likewise.
883 * elf64-hppa.c: Likewise.
884 * elf64-sparc.c: Likewise.
885 * elf32-fr30.c (elf32_frv_relocate_section): Edit comment.
886 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
887 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
888 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
889 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
890 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
891 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
892 * elf-m10200.c (USE_RELA): Don't define.
893 * elf-m10300.c: Likewise.
894 * elfarm-oabi.c: Likewise.
895 * elf32-i370.c: Likewise.
896 * elf32-ip2k.c: Likewise.
897 * elf32-m68k.c: Likewise.
898 * elf32-mcore.c: Likewise.
899 * elf32-ppc.c: Likewise.
900 * elf32-s390.c: Likewise.
901 * elf32-vax.c: Likewise.
902 * elf64-ppc.c: Likewise.
903 * elf64-s390.c: Likewise.
904 * elf64-x86-64.c: Likewise.
905 * elfxx-ia64.c: Likewise.
906 * elf32-avr.c (USE_REL): Don't undef.
907 * elf32-ip2k.c: Likewise.
909 2002-07-23 Nick Clifton <nickc@redhat.com>
911 * elf-bfd.h (struct elf_backend_data): Add new bitfield
912 'want_p_paddr_set_to_zero'.
913 * elfxx-target.h: Set default value for want_p_paddr_set_to_zero
915 * elfxx-ia64.c: Set want_p_paddr_set_zero for HPUX target.
916 * elf.c (copy_private_bfd_data): Test want_p_paddr_set_zero.
918 2002-07-23 Gabor Keresztfalvi <keresztg@mail.com>
920 * nlmcode.h (nlm_swap_auxiliary_headers_out): Swapped the order of
921 the MeSsAgEs and CoPyRiGhT tags to make >=NW4.x NLM loaders to
922 show the Copyright string.
923 Minor formatting tidy ups.
925 2002-07-23 Nick Clifton <nickc@redhat.com>
927 * po/fr.po: Updated French translation.
928 * po/sv.po: Updated Swedish translation.
930 2002-07-23 Alan Modra <amodra@bigpond.net.au>
932 * elflink.h (elf_link_input_bfd): Don't change internal symbols
933 when outputting relocs.
935 2002-07-20 Jason Thorpe <thorpej@wasabisystems.com>
937 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
938 DT_PLTGOT into the dynamic section if there is a PLT.
940 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
942 * elfxx-mips.c (_bfd_mips_elf_discard_info): New function, code from
944 (_bfd_mips_elf_write_section): Likewise.
945 * elfxx-mips.h (_bfd_mips_elf_discard_info): New prototype.
946 (_bfd_mips_elf_write_section): Likewise.
947 * elf32-mips.c (elf32_mips_discard_info): Move to elfxx-mips.c.
948 (elf32_mips_write_section): Likewise.
949 * elf64-mips.c (_bfd_mips_elf_ignore_discarded_relocs): Use it.
950 (_bfd_mips_elf_write_section): Likewise.
952 2002-07-19 Alan Modra <amodra@bigpond.net.au>
954 * elfxx-ia64.c: (elfNN_ia64_modify_segment_map): Properly scan
955 PT_IA_64_UNWIND segments for a given section.
957 2002-07-17 H.J. Lu <hjl@gnu.org>
959 * Makefile.am: Fix a typo.
960 * Makefile.in: Regenerate.
962 2002-07-15 Denis Chertykov <denisc@overta.ru>
963 Frank Ch. Eigler <fche@redhat.com>
964 Ben Elliston <bje@redhat.com>
965 Alan Lehotsky <alehotsky@cygnus.com>
966 John Healy <jhealy@redhat.com>
967 Graham Stott <grahams@redhat.com>
968 Jeff Johnston <jjohnstn@redhat.com>
970 * Makefile.am: Add support for ip2k.
971 * Makefile.in: Regenerate.
972 * doc/Makefile.in: Regenerate.
973 * archures.c: Add support for ip2k.
974 * config.bfd: Add support for ip2k.
975 * configure.in: Add support for ip2k.
976 * configure: Regenerate.
977 * reloc.c: Add support for ip2k.
978 * targets.c: Add support for ip2k.
979 * bfd-in2.h: Regenerate.
980 * libbfd.h: Regenerate.
981 * cpu-ip2k.c: New file.
982 * elf32-ip2k.c: New file.
984 2002-07-17 Ian Rickards <irickard@arm.com>
986 * dwarf2.c (concat_filename): If we can't establish the directory
987 just return the filename.
989 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
991 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
993 2002-07-16 Alan Modra <amodra@bigpond.net.au>
995 * elflink.h: Formatting fixes, tidy prototypes.
996 (elf_link_assign_sym_version): Move common code out of loop.
998 2002-07-16 Alan Modra <amodra@bigpond.net.au>
1000 * elflink.h (elf_link_input_bfd): Don't call reloc_emitter when
1001 reloc section size is zero. Correct reloc output location.
1003 2002-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1005 * elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as
1006 the final type for the e_fsel selector when generating PA2.0W code.
1007 (elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1
1010 2002-07-14 H.J. Lu <hjl@gnu.org>
1012 * elflink.h (elf_link_assign_sym_version): Hide the default
1013 definition if there is a hidden versioned definition.
1015 2002-07-12 Hans-Peter Nilsson <hp@axis.com>
1017 * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
1018 dynamic reference test in assertion when initializing GOT with
1019 static contents. Just assert that there are either no dynamic
1020 sections, the symbol is defined in the regular objects or that the
1021 symbol is undef weak. Tweak comment.
1022 (elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
1023 only if the symbol isn't defined in the program and isn't undef
1025 (elf_cris_adjust_dynamic_symbol): Simplify condition for getting
1026 rid of PLT entry: only do it if the symbol isn't defined in a DSO.
1027 When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments.
1028 (elf_cris_discard_excess_program_dynamics): Don't consider
1029 ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
1031 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1033 * elf32-i386.c (elf_i386_relocate_section): Don't complain about
1034 unresolved debugging relocs in dynamic applications.
1035 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1036 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1037 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1038 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1039 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1040 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1042 2002-07-10 Alan Modra <amodra@bigpond.net.au>
1044 * elf64-ppc.c (ONES): Define.
1045 (ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in
1046 missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill
1047 in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.
1049 * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
1050 (ppc64_elf_set_private_flags): Delete.
1051 (ppc64_elf_section_from_shdr): Delete.
1052 (ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
1053 (ppc64_elf_fake_sections): Delete.
1054 (bfd_elf64_bfd_set_private_flags): Don't define.
1055 (bfd_elf64_get_symbol_info): Likewise.
1056 (elf_backend_section_from_shdr): Likewise.
1057 (elf_backend_fake_sections): Likewise.
1059 2002-07-10 Marco Walther <Marco.Walther@sun.com>
1061 * elf.c: (assign_section_numbers) Set sh_entsize for .stab only
1062 when not already set.
1063 * elf64-sparc.c: (sparc64_elf_fake_sections): New function.
1064 (elf_backend_fake_sections): Define.
1066 2002-07-10 Alan Modra <amodra@bigpond.net.au>
1068 * merge.c (_bfd_merge_section): Remove redundant output_section check.
1070 (_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.
1072 2002-07-09 Hans-Peter Nilsson <hp@axis.com>
1074 * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
1075 NULL sym_hashes to just before use.
1076 <case R_CRIS_32_GOTREL>: In test for local symbol, accept also
1077 symbol with non-default visibility.
1078 <case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
1079 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
1081 (cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
1082 symbol with non-default visibility.
1083 (cris_elf_check_relocs): At tests for local symbol before
1084 increasing h->plt.refcount, also check for non-default
1085 visibility. Ditto when checking for local symbol to eliminate
1086 pc-relative runtime relocs.
1088 2002-07-08 Alan Modra <amodra@bigpond.net.au>
1090 * elf.c: Formatting.
1091 (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
1092 (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
1093 (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
1096 2002-07-07 Mark Mitchell <mark@codesourcery.com>
1097 Alan Modra <amodra@bigpond.net.au>
1099 * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
1100 account the impact of relocation count overflow when computing
1102 * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
1103 or not to apply the PE COFF reloc overflow handling. Fix a
1104 fencepost error in deciding whether or not to use that technique.
1106 2002-07-07 Alan Modra <amodra@bigpond.net.au>
1108 * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
1109 change type of locsyms.
1110 (bfd_elf_get_elf_syms): Declare.
1111 * elf.c (bfd_elf_get_elf_syms): New function.
1112 (group_signature): Use bfd_elf_get_elf_syms.
1113 (bfd_section_from_r_symndx): Likewise.
1114 * elfcode.h (elf_slurp_symbol_table): Likewise.
1115 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
1116 (elf_link_add_object_symbols): Likewise. Reorganise to increase
1117 locality of various data structures. Properly free internal relocs.
1118 (elf_bfd_final_link): Properly free internal relocs.
1119 (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
1120 (elf_link_input_bfd): Likewise.
1121 (elf_gc_mark): Likewise. Properly free internal relocs.
1122 (elf_gc_sweep): Properly free internal relocs.
1123 (elf_reloc_symbol_deleted_p): No need to swap syms in.
1124 (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
1126 * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
1127 Properly free possibly cached info.
1128 (mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
1129 (mn10200_elf_symbol_address_p): Pass in internal syms. Remove
1130 symbol swapping code.
1131 (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
1132 Properly free possibly cached info.
1133 * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
1134 (mn10300_elf_relax_delete_bytes): Likewise.
1135 (mn10300_elf_symbol_address_p): Likewise.
1136 (mn10300_elf_get_relocated_section_contents): Likewise.
1137 * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
1138 (elf32_h8_relax_delete_bytes): Likewise.
1139 (elf32_h8_symbol_address_p): Likewise.
1140 (elf32_h8_get_relocated_section_contents): Likewise.
1141 * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
1142 (m32r_elf_relax_delete_bytes): Likewise.
1143 (m32r_elf_get_relocated_section_contents): Likewise.
1144 * elf32-sh.c (sh_elf_reloc_loop): Free section contents using
1145 elf_section_data to determine whether cached.
1146 (sh_elf_relax_section): As above for elf-m10200.c.
1147 (sh_elf_relax_delete_bytes): Likewise.
1148 (sh_elf_get_relocated_section_contents): Likewise.
1149 * elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
1150 * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
1151 reading of local syms.
1152 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
1153 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
1154 * elfxx-ia64.c (elfNN_ia64_relax_section): As above.
1155 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
1157 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
1158 free internal relocs and section contents. Don't read symbols.
1159 * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
1160 (elf32_hppa_size_stubs): Don't free local syms.
1161 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
1162 reading of local syms. Use bfd_elf_get_elf_syms. Properly free
1163 possibly cached info.
1164 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
1165 * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
1166 * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
1168 (get_local_syms): Delete function.
1169 (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
1171 (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
1173 2002-07-05 Jim Wilson <wilson@redhat.com>
1175 * syms.c (decode_section_type): New.
1176 (bfd_decode_symclass): Call decode_section_type.
1178 2002-07-04 Jakub Jelinek <jakub@redhat.com>
1180 * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
1181 section content start.
1182 Reported by Michael Schumacher <mike@hightec-rt.com>.
1184 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1186 * section.c (_bfd_strip_section_from_output): Remove unnecessary
1187 link order code. Don't actually remove the output section here;
1188 Just set a flag for the linker to do so.
1189 * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
1190 sections when setting up output section dynsyms.
1192 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1194 * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
1196 * elf.c (bfd_section_from_shdr): Work around broken hpux shared
1199 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
1201 * elf64-s390.c (create_got_section): Set .got section alignment to
1203 (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
1205 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1207 * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
1209 2002-07-01 Matt Thomas <matt@3am-software.com>
1211 * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
1214 2002-07-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1216 * elfxx-mips.c (ABI_64_P): Fix comment.
1217 (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
1218 new section names for N64 ABI.
1219 (mips_elf_output_extsym): No special _gp_disp handling for NewABI.
1220 (mips_elf_calculate_relocation): Code formatting.
1221 (mips_elf_create_dynamic_relocation): Likewise.
1222 (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
1223 (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
1224 (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
1226 (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
1228 (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
1229 (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
1232 2002-07-01 Andreas Schwab <schwab@suse.de>
1234 * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
1235 R_X86_64_64 to R_X86_64_RELATIVE.
1237 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1239 * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
1240 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
1242 * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
1244 * configure.in (vaxbsd_vec): Add.
1245 * targets.c (vaxbsd_vec): Add.
1246 * Makefile.in: Rebuild.
1247 * configure: Rebuild.
1248 * po/SRC-POTFILES.in: Rebuild.
1250 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1252 * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
1253 examining to gc_mark_hook, rather than the bfd.
1254 (elf_gc_sections): Adjust.
1255 * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
1256 * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
1257 * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
1258 * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
1259 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
1260 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
1261 * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
1262 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
1263 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
1264 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
1265 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
1266 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
1267 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
1268 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
1269 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
1270 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
1271 * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
1272 * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
1273 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
1274 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
1275 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
1276 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1277 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
1278 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
1279 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
1280 * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
1281 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
1282 * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
1283 redundant local sym tests.
1284 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
1285 (link_hash_newfunc): Init is_entry.
1286 (ppc64_elf_copy_indirect_symbol): Copy is_entry.
1287 (ppc64_elf_link_hash_table_create): Init all_local_syms.
1288 (create_linkage_sections): Use bfd_make_section_anyway rather than
1290 (ppc64_elf_mark_entry_syms): New function.
1291 (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
1292 up opd entry to function section map.
1293 (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
1294 relocs that reference the opd section.
1295 (edit_opd): New function.
1296 (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
1297 (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
1298 (get_local_syms): Do so here. Exit if we already have local syms.
1299 Remove bogus comment imported from elf32-hppa.c. Don't attempt to
1300 read local syms on non-ELF input.
1301 (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
1302 than duplicating it's function here. Adjust free of internal
1304 (ppc64_elf_relocate_section): Adjust local syms in opd section.
1305 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
1306 * elf32-hppa.c (elf32_hppa_size_stubs): Call
1307 _bfd_elf32_link_read_relocs rather than duplicating it's function
1308 here. Adjust free of internal relocs to suit.
1310 2002-07-01 Andreas Jaeger <aj@suse.de>
1312 * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
1313 are not allowed in shared libs code, enforce -fPIC.
1315 2002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
1317 * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
1318 trailing zero-sequences when there's previous left-over data.
1320 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
1322 * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
1323 (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
1324 and opd_rel_sec in order for starting rela section. Check _raw_size.
1325 (elf_backend_reloc_type_class): Define.
1327 2002-06-27 Kevin Buettner <kevinb@redhat.com>
1329 * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
1332 2002-06-27 Alan Modra <amodra@bigpond.net.au>
1334 * cpu-powerpc.c: Comment on ordering of arch_info.
1335 * elf32-ppc.c (ppc_elf_object_p): New function.
1336 (elf_backend_object_p): Define.
1337 * elf64-ppc.c (ppc64_elf_object_p): New function.
1338 (elf_backend_object_p): Define.
1340 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1342 * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
1343 * configure: Regenerate.
1345 2002-06-25 Jason Eckhardt <jle@rice.edu>
1347 * dwarf2.c (decode_line_info): Check unit->addr_size
1348 to read in the proper number of prologue bytes.
1350 2002-06-25 Nick Clifton <nickc@cambridge.redhat.com>
1352 * config.bfd (powerpc-*-aix5*): Only create a selvecs for
1353 aix5coff64_vec if 64-bit bfd support has been enabled.
1354 (powerpc64-*-aix5*): Only define if 64-bit bfd support has
1357 * targets.c (_bfd_target_vector[]): Only include
1358 aix5coff64_vec if 64-bit bfd support has been enabled.
1360 2002-06-25 Alan Modra <amodra@bigpond.net.au>
1362 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
1363 * elf32-hppa.c (hppa_add_stub): Likewise.
1364 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
1365 * elflink.h (elf_add_default_symbol): Fix comment typo.
1366 (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
1367 (elf_link_add_object_symbols): Likewise.
1368 (elf_link_assign_sym_version): Likewise.
1369 * hash.c (bfd_hash_lookup): Likewise.
1370 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
1371 * section.c (bfd_get_unique_section_name): Likewise.
1372 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
1373 * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
1374 (assign_section_numbers): Likewise.
1375 (_bfd_elfcore_make_pseudosection): Likewise.
1376 (elfcore_grok_lwpstatus): Likewise.
1377 (elfcore_grok_win32pstatus): Likewise.
1378 (elfcore_write_note): Constify input params. Use PTR instead of
1379 void *. Include terminating NUL in namesz. Correct padding.
1380 Support NULL "name" param. Use memcpy instead of strcpy.
1381 (elfcore_write_prpsinfo): Constify input params.
1382 (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
1383 (elfcore_write_lwpstatus): Likewise.
1384 (elfcore_write_pstatus): Likewise.
1385 (elfcore_write_prfpreg): Likewise.
1386 (elfcore_write_prxfpreg): Likewise.
1387 * elf-bfd.h (elfcore_write_note): Update declaration.
1388 (elfcore_write_prpsinfo): Likewise.
1389 (elfcore_write_prstatus): Likewise.
1390 (elfcore_write_pstatus): Likewise.
1391 (elfcore_write_prfpreg): Likewise.
1392 (elfcore_write_prxfpreg): Likewise.
1393 (elfcore_write_lwpstatus): Likewise.
1395 2002-06-25 Jason Eckhardt <jle@rice.edu>
1397 * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
1398 symbols of type stProc and stStaticProc.
1400 2002-06-25 Nick Clifton <nickc@redhat.com>
1402 * ecoff.c: VArious formatting fixes.
1404 2002-06-25 Alan Modra <amodra@bigpond.net.au>
1406 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
1408 2002-06-25 Alan Modra <amodra@bigpond.net.au>
1410 * aout-adobe.c: Don't compare against "true" or "false.
1411 * aout-target.h: Likewise.
1412 * aoutx.h: Likewise.
1413 * archive.c: Likewise.
1415 * cache.c: Likewise.
1416 * coff-a29k.c: Likewise.
1417 * coff-alpha.c: Likewise.
1418 * coff-i386.c: Likewise.
1419 * coff-mips.c: Likewise.
1420 * coff-or32.c: Likewise.
1421 * coff64-rs6000.c: Likewise.
1422 * coffcode.h: Likewise.
1423 * coffgen.c: Likewise.
1424 * cpu-ns32k.c: Likewise.
1425 * ecoff.c: Likewise.
1426 * ecofflink.c: Likewise.
1428 * elf32-arm.h: Likewise.
1429 * elf32-cris.c: Likewise.
1430 * elf32-d30v.c: Likewise.
1431 * elf32-i386.c: Likewise.
1432 * elf32-mcore.c: Likewise.
1433 * elf32-ppc.c: Likewise.
1434 * elf32-sh.c: Likewise.
1435 * elf32-sh64.c: Likewise.
1436 * elf32-v850.c: Likewise.
1437 * elf64-alpha.c: Likewise.
1438 * elf64-sh64.c: Likewise.
1439 * elfcode.h: Likewise.
1440 * elfcore.h: Likewise.
1441 * elflink.h: Likewise.
1442 * elfxx-mips.c: Likewise.
1443 * i386os9k.c: Likewise.
1445 * libbfd.c: Likewise.
1446 * linker.c: Likewise.
1448 * nlm32-alpha.c: Likewise.
1449 * nlm32-i386.c: Likewise.
1450 * nlm32-ppc.c: Likewise.
1451 * nlm32-sparc.c: Likewise.
1452 * nlmcode.h: Likewise.
1453 * oasys.c: Likewise.
1454 * pdp11.c: Likewise.
1455 * peicode.h: Likewise.
1456 * reloc.c: Likewise.
1459 * tekhex.c: Likewise.
1461 * xcofflink.c: Likewise.
1462 * elf64-sparc.c: Edit comment to not use "== false".
1464 * aoutf1.h: Don't use "? true : false".
1465 * ecoff.c: Likewise.
1466 * format.c: Likewise.
1468 * linker.c: Likewise.
1470 * oasys.c: Likewise.
1472 2002-06-23 H.J. Lu <hjl@gnu.org>
1474 * elflink.h (elf_link_add_archive_symbols): For the default
1475 version, check references with only one `@' first.
1477 2002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
1479 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
1481 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
1483 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
1484 (elf64_hppa_size_dynamic_sections): Revise to use
1485 elf64_hppa_mark_milli_and_exported_functions.
1486 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
1487 symbols out of dynamic symbol table.
1489 2002-06-23 Alan Modra <amodra@bigpond.net.au>
1491 * Makefile.in: Regenerate.
1492 * libbfd.h: Regenerate.
1493 * bfd-in2.h: Regenerate.
1494 * configure: Regenerate.
1495 * po/SRC-POTFILES.in: Regenerate.
1497 * elflink.h: Comment typo fixes.
1499 2002-06-23 H.J. Lu <hjl@gnu.org>
1501 * elf-bfd.h (elf_link_loaded_list): New structure.
1502 (elf_link_hash_table): Add "loaded".
1503 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
1504 * elflink.h (elf_link_check_versioned_symbol): New function.
1505 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
1507 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
1509 * elflink.h (size_dynamic_sections): If the target does not
1510 support an ELF style hash table, return true, indicating that
1511 nothing needed to be done, rather than false, indicating that the
1512 section's size could not be computed.
1514 2002-06-18 Dave Brolley <brolley@redhat.com>
1516 From Catherine Moore, Michael Meissner, Dave Brolley:
1517 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
1518 * targets.c: Support bfd_elf32_frv_vec.
1519 * reloc.c: Add FRV relocs.
1520 * configure.in: Add support for bfd-elf32-frv-vec.
1521 * config.bfd (targ_cpu): Add support for frv-*-elf.
1522 * archures.c: Add frv arch and machines.
1523 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
1524 (ALL_MACHINES_CFILES): Add cpu-frv.c.
1525 (BFD32_BACKENDS): Add elf32-frv.lo.
1526 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
1527 (cpu-frv.lo): New target.
1528 (elf32-frv.lo): New target.
1529 * cpu-frv.c: New file.
1530 * elf32-frv.c: New file.
1532 2002-06-18 Jakub Jelinek <jakub@redhat.com>
1534 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
1536 Only read the first section header if e_shoff is non-zero.
1537 Don't consider e_shstrndx if there are no sections.
1539 2002-06-17 Tom Rix <trix@redhat.com>
1541 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
1542 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
1543 complain_overflow_bitfield.
1545 2002-06-17 Alan Modra <amodra@bigpond.net.au>
1547 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
1548 (bfd_fdopenr): Likewise.
1549 (bfd_openstreamr): Likewise.
1550 (bfd_openw): Likewise.
1552 * targets.c: Sort target vecs.
1553 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
1554 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
1555 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
1556 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
1557 * configure.in: Sort target vecs. Add m88kmach3_vec.
1558 * configure: Regenerate.
1560 2002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
1562 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
1563 bpo_reloc_no to break sort order ties, not address of items.
1565 2002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1567 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
1568 Skip excluded sections in determing __gp value.
1569 (elf_hppa_final_link_relocate): Use the symbol's address in
1570 R_PARISC_FPTR64 relocations that don't need an opd entry.
1571 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
1572 (elf64_hppa_finalize_dynreloc): Likewise.
1573 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
1574 (elf64_hppa_finish_dynamic_symbol): Break up assert.
1576 2002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
1578 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
1579 alignment for .bss, .data and .text sections so that sse and sse2
1581 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1583 2002-06013 J"orn Rennecke <joern.rennecke@superh.com>
1585 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
1588 2002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1590 * elflink.h (elf_bfd_final_link): Improve error handling for missing
1593 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
1594 for a symbol that has no output section.
1595 (allocate_dynrel_entries): Correct comment.
1596 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
1598 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
1599 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
1600 with no section. Remove unnecessary parentheses.
1602 2002-06-11 Tom Rix <trix@redhat.com>
1604 * coffcode.h (coff_compute_section_file_positions): Add data
1605 section to AIX loader alignment check.
1607 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
1608 alignment to 4 bytes.
1609 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
1610 power accessor macro.
1611 (do_shared_object_padding): Remove invalid assertion.
1613 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1615 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
1616 for removed output sections.
1618 2002-06-10 Geoffrey Keating <geoffk@redhat.com>
1620 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
1622 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
1624 2002-06-08 H.J. Lu <hjl@gnu.org>
1626 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
1627 work around a long long bug in gcc 2.96 on mips.
1629 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1631 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
1632 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
1633 Regenerate dependency lists.
1634 * Makefile.in: Regenerate.
1635 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
1636 vax1knetbsd_vec to targ_selvecs.
1637 * configure.in: Add vax1knetbsd_vec.
1638 * configure: Regenerate.
1639 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
1640 * vax1knetbsd.c: New file.
1641 * vaxnetbsd.c: Update copyright years.
1642 (TARGET_PAGE_SIZE): Set to 0x1000.
1643 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
1645 2002-06-08 Matt Thomas <matt@3am-software.com>
1647 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
1649 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1651 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
1653 2002-06-08 Alan Modra <amodra@bigpond.net.au>
1655 * Makefile.am: Run "make dep-am".
1656 * Makefile.in: Regenerate.
1658 * armnetbsd.c: Replace CONST with const.
1659 * corefile.c: Likewise.
1660 * elf32-dlx.c: Likewise.
1661 * elf64-mips.c: Likewise.
1663 * ns32knetbsd.c: Likewise.
1665 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
1666 table is elf64-sparc.
1668 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1670 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
1671 Fix RELA addends to get not shifted in the result. Don't do special
1672 handling of R_MIPS_64 for NewABI.
1674 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1676 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
1677 (NAME(aout,slurp_reloc_table)): Likewise.
1678 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
1679 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
1680 (xcoff_write_archive_contents_big): Likewise.
1681 (xcoff_generate_rtinit): Likewise.
1682 (xcoff_generate_rtinit): Likewise, and check error return.
1683 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
1684 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
1685 (coff_get_normalized_symtab): Likewise.
1686 (coff_make_empty_symbol): Likewise.
1687 (bfd_coff_set_symbol_class): Likewise.
1688 * cofflink.c (coff_link_add_symbols): Likewise.
1689 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
1690 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
1691 (bfd_ecoff_write_accumulated_debug): Likewise.
1692 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
1693 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
1694 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
1695 * ieee.c (do_with_relocs): Use bfd_zalloc.
1696 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
1697 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
1698 (NAME(aout,slurp_reloc_table)): Likewise.
1699 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
1700 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
1701 * som.c (som_build_and_write_symbol_table): Likewise.
1702 (som_slurp_string_table): Likewise.
1703 (som_slurp_symbol_table): Likewise.
1704 (som_bfd_ar_write_symbol_stuff): Likewise.
1705 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
1706 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
1707 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
1708 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
1709 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
1711 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1713 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
1715 (elf_group_name): Update.
1716 (elf_group_id): Define.
1717 (bfd_elf_set_group_contents): Declare.
1718 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
1719 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
1720 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
1721 that sym for the signature.
1722 (_bfd_elf_compute_section_file_positions): Don't call
1723 set_group_contents for "ld -r" case.
1724 (swap_out_syms): Use bfd_zalloc.
1725 * elflink.h (elf_link_add_archive_symbols): Likewise.
1726 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
1727 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
1729 2002-06-07 Alan Modra <amodra@bigpond.net.au>
1731 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
1732 relocs in opd for non-shared too.
1734 2002-06-06 Jeffrey Law <law@redhat.com
1736 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
1739 2002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
1741 * merge.c: Include libiberty.h.
1742 * elf-strtab.c: Include libiberty.h.
1744 2002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
1746 * peXXigen.c (pe_print_idata): Remove unused variable.
1748 2002-06-06 David Heine <dlheine@tensilica.com>
1750 * elf.c (assign_file_positions_for_segments): Remove unallocated
1751 sections from the section to segment mapping for PT_LOAD segments.
1752 Update comment about empty loadable segments.
1754 2002-06-06 Richard Sandiford <rsandifo@redhat.com>
1756 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
1757 is within the .stabstr section.
1759 2002-06-06 Alan Modra <amodra@bigpond.net.au>
1761 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
1762 are "const PTR", not "const PTR *".
1763 (bfd_elf32_swap_symbol_in): Likewise.
1764 (bfd_elf64_swap_symbol_in): Likewise.
1765 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
1766 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
1767 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
1768 (elf_link_add_object_symbols): Likewise.
1769 (elf_link_record_local_dynamic_symbol): Likewise.
1770 (elf_link_input_bfd): Likewise.
1771 (elf_gc_mark): Likewise.
1772 (elf_reloc_symbol_deleted_p): Likewise.
1773 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
1774 (mn10200_elf_relax_delete_bytes): Likewise.
1775 (mn10200_elf_symbol_address_p): Likewise.
1776 (mn10200_elf_get_relocated_section_contents): Likewise.
1777 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
1778 (mn10300_elf_relax_section): Likewise.
1779 (mn10300_elf_relax_delete_bytes): Likewise.
1780 (mn10300_elf_symbol_address_p): Likewise.
1781 (mn10300_elf_get_relocated_section_contents): Likewise.
1782 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
1783 (elf32_h8_relax_delete_bytes): Likewise.
1784 (elf32_h8_symbol_address_p): Likewise.
1785 (elf32_h8_get_relocated_section_contents): Likewise.
1786 * elf32-hppa.c (get_local_syms): Likewise.
1787 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
1788 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
1789 * elf32-sh.c (sh_elf_relax_section): Likewise.
1790 (sh_elf_relax_delete_bytes): Likewise.
1791 (sh_elf_get_relocated_section_contents): Likewise.
1792 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
1793 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
1794 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
1795 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
1796 * elf64-ppc.c (get_local_syms): Likewise.
1797 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
1798 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1800 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
1802 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
1804 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1806 * elf.c (group_signature): Swap in the whole symbol, and handle
1807 extracting section symbol names.
1808 (setup_group): Add comment.
1809 (set_group_contents): When called from objcopy or ld, arrange for
1810 section contents to be written. Write group member output section
1811 indices to allow objcopy to reorganize sections.
1812 (_bfd_elf_copy_private_section_data): Copy group info.
1814 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
1815 (bfd_elf32_swap_symbol_in): Update prototype.
1816 (bfd_elf64_swap_symbol_in): Likewise.
1817 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
1818 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
1819 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
1820 (elf_link_add_object_symbols): Likewise.
1821 (elf_link_record_local_dynamic_symbol): Likewise.
1822 (elf_link_input_bfd): Likewise.
1823 (elf_gc_mark): Likewise.
1824 (elf_reloc_symbol_deleted_p): Likewise.
1825 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
1826 (mn10200_elf_relax_delete_bytes): Likewise.
1827 (mn10200_elf_symbol_address_p): Likewise.
1828 (mn10200_elf_get_relocated_section_contents): Likewise.
1829 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
1830 (mn10300_elf_relax_section): Likewise.
1831 (mn10300_elf_relax_delete_bytes): Likewise.
1832 (mn10300_elf_symbol_address_p): Likewise.
1833 (mn10300_elf_get_relocated_section_contents): Likewise.
1834 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
1835 (elf32_h8_relax_delete_bytes): Likewise.
1836 (elf32_h8_symbol_address_p): Likewise.
1837 (elf32_h8_get_relocated_section_contents): Likewise.
1838 * elf32-hppa.c (get_local_syms): Likewise.
1839 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
1840 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
1841 * elf32-sh.c (sh_elf_relax_section): Likewise.
1842 (sh_elf_relax_delete_bytes): Likewise.
1843 (sh_elf_get_relocated_section_contents): Likewise.
1844 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
1845 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
1846 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
1847 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
1848 * elf64-ppc.c (get_local_syms): Likewise.
1849 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
1850 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1851 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
1852 * elf64-alpha.c (alpha_elf_size_info): Likewise.
1853 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
1854 * elf64-mips.c (mips_elf64_size_info): Likewise.
1855 * elf64-s390.c (s390_elf64_size_info): Likewise.
1856 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
1858 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1860 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
1861 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
1862 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
1863 _bfd_mips_elf_ignore_discarded_relocs.
1864 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
1866 2002-06-05 H.J. Lu <hjl@gnu.org>
1868 * elfxx-mips.c (mips_elf_calculate_relocation): Call
1869 _bfd_elf_rel_local_sym for STT_SECTION relocations against
1870 the SEC_MERGE section.
1872 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1874 * coff-alpha.c: Update copyright date.
1875 * coff-mips.c: Likewise.
1876 * xcoff-target.h: Likewise.
1878 * bfd-in.h: Remove "taken from the source" comment.
1879 * libbfd-in.h: Likewise.
1880 * libcoff-in.h: Likewise.
1881 * bfd-in2.h: Regenerate.
1882 * libbfd.h: Regenerate.
1883 * libcoff.h: Regenerate.
1885 * elf.c (bfd_elf_discard_group): Return true.
1886 * elf-bfd.h (bfd_elf_discard_group): Declare.
1887 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
1888 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
1889 * bfd.c (bfd_discard_group): Define.
1890 * targets.c (struct bfd_target): Add _bfd_discard_group.
1891 (BFD_JUMP_TABLE_LINK): Here too.
1892 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
1893 * aout-adobe.c (aout_32_bfd_discard_group): Define.
1894 * aout-target.h (MY_bfd_discard_group): Define.
1895 * aout-tic30.c (MY_bfd_discard_group): Define.
1896 * binary.c (binary_bfd_discard_group): Define.
1897 * bout.c (b_out_bfd_discard_group): Define.
1898 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
1899 * coffcode.h (coff_bfd_discard_group): Define.
1900 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
1901 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
1902 * i386msdos.c (msdos_bfd_discard_group): Define.
1903 * i386os9k.c (os9k_bfd_discard_group): Define.
1904 * ieee.c (ieee_bfd_discard_group): Define.
1905 * ihex.c (ihex_bfd_discard_group): Define.
1906 * mmo.c (mmo_bfd_discard_group): Define.
1907 * nlm-target.h (nlm_bfd_discard_group): Define.
1908 * oasys.c (oasys_bfd_discard_group): Define.
1909 * ppcboot.c (ppcboot_bfd_discard_group): Define.
1910 * som.c (som_bfd_discard_group): Define.
1911 * srec.c (srec_bfd_discard_group): Define.
1912 * tekhex.c (tekhex_bfd_discard_group): Define.
1913 * versados.c (versados_bfd_discard_group): Define.
1914 * vms.c (vms_bfd_discard_group): Define.
1915 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
1916 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
1917 (aix5coff64_vec): Likewise.
1918 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
1920 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1922 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
1923 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
1924 (elf32-sh64-com.lo): New dependency list.
1925 * Makefile.in: Regenerate.
1926 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
1927 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
1929 * configure: Regenerate.
1930 * elf32-sh64.c (sh64_address_in_cranges)
1931 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
1932 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
1933 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
1934 * elf32-sh64-com.c: ...here. New file.
1936 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1938 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
1939 ATTRIBUTE_UNUSED on used params.
1940 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
1941 before calling bfd_section_from_elf_index on local syms.
1942 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
1944 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1946 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
1947 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
1948 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
1949 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
1950 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
1951 * Makefile.in: Regenerate.
1952 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
1953 (sh64-*-netbsd*): New targets.
1954 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
1955 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
1956 * configure: Regenerate.
1957 * elf32-sh64-nbsd.c: New file.
1958 * elf64-sh64-nbsd.c: New file.
1959 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
1960 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
1961 bfd_elf64_sh64lnbsd_vec.
1963 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1965 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
1966 (bfd_section_from_shdr): Likewise. Set section name of group
1967 sections from signature.
1968 (group_signature): Split out from setup_group. Ensure symbol table
1970 (bfd_elf_discard_group): New function.
1971 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
1972 .gnu.linkonce* sections if they are members of a group.
1973 (set_group_contents): Set GRP_COMDAT flag.
1974 * section.c (bfd_discard_group): New function.
1975 * bfd-in.h (bfd_elf_discard_group): Declare.
1976 * bfd-in2.h: Regenerate.
1977 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
1978 (elf_linkonce_p): Define.
1980 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1982 * elf.c (bfd_section_from_shdr): Make "name" const.
1983 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
1984 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
1985 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
1986 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
1987 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
1988 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
1989 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
1990 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
1991 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
1992 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
1993 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
1995 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1997 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
2000 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2002 * elf32-arc.c: Fix formatting.
2003 * elf32-arm.h: Likewise.
2004 * elf32-cris.c: Likewise.
2005 * elf32-dlx.c: Likewise.
2006 * elf32-hppa.c: Likewise.
2007 * elf32-i386.c: Likewise.
2008 * elf32-i386qnx.c: Likewise.
2009 * elf32-or32.c: Likewise.
2010 * elf32-s390.c: Likewise.
2011 * elf32-sh64.c: Likewise.
2012 * elf32-vax.c: Likewise.
2013 * elf32-xstormy16.c: Likewise.
2014 * elf64-alpha.c: Likewise.
2015 * elf64-mmix.c: Likewise.
2016 * elf64-ppc.c: Likewise.
2017 * elf64-s390.c: Likewise.
2018 * elf64-sh64.c: Likewise.
2019 * elf64-x86-64.c: Likewise.
2021 2002-06-02 Richard Henderson <rth@redhat.com>
2023 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
2024 null when there are no got entries for a symbol.
2025 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
2026 uninitialized variable warning.
2028 2002-06-01 Richard Henderson <rth@redhat.com>
2030 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
2031 undefined symbols here.
2032 (elf64_alpha_relax_section): Do it here. Also test for not
2033 defined in the current module.
2034 (elf64_alpha_relocate_section_r): Split out of ...
2035 (elf64_alpha_relocate_section): ... here. Don't dereference
2036 NULL when looking up local got entries.
2038 2002-06-01 Richard Henderson <rth@redhat.com>
2040 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
2041 symbols from JSR relaxation.
2042 (elf64_alpha_size_plt_section_1): New.
2043 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
2044 (elf64_alpha_size_rela_got_1): ... here.
2045 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
2046 (elf64_alpha_size_rela_got_section): ... here.
2047 (elf64_alpha_size_plt_section): New.
2048 (elf64_alpha_relax_section): Call them.
2049 (elf64_alpha_size_got_sections): Remove output_bfd arg.
2050 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
2052 2002-06-01 Richard Henderson <rth@redhat.com>
2054 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
2055 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
2056 in shared libraries. Fix DTPRELHI and TPRELHI value.
2057 (INSN_ADDQ, INSN_RDUNIQ): New.
2058 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
2059 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
2060 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
2061 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
2062 Handle GOTDTPREL and GOTTPREL relocations.
2063 (elf64_alpha_relax_gprelhilo): New.
2064 (elf64_alpha_relax_tls_get_addr): New.
2065 (elf64_alpha_relax_find_tls_segment): New.
2066 (elf64_alpha_relax_section): Handle TLS relocations.
2067 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
2068 (elf64_alpha_check_relocs): Set it.
2070 2002-06-01 Richard Henderson <rth@redhat.com>
2072 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
2074 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
2075 check; don't suppress dynamic relocs for non-allocated sections.
2077 * elf64-alpha.c: Remove dead code.
2079 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2081 * bfd-in2.h: Regenerate.
2082 * libbfd.h: Regenerate.
2083 * po/SRC-POTFILES.in: Regenerate.
2085 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
2088 2002-05-31 Graeme Peterson <gp@qnx.com>
2090 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
2091 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
2093 * Makefile.in: Regenerate.
2094 * config.bfd: Add i[3456]86-*-nto-qnx* support.
2095 * configure.in: Add bfd_elf32_i386qnx_vec support.
2096 * configure: Regenerate.
2097 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
2098 is_contained_by_filepos, and copy_private_bfd_data_p.
2099 * elf.c (assign_file_positions_for_segments): Call backend
2100 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
2101 (IS_CONTAINED_BY_FILEPOS): Define.
2102 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
2103 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
2104 Fix non-K&R call to _bfd_error_handler.
2105 (_bfd_elf_copy_private_section_data): Use backend
2106 copy_private_bfd_data_p.
2107 * elf32-i386.c: Don't include elfxx-target.h when
2108 ELF32_I386_C_INCLUDED is defined.
2109 * elf32-i386qnx.c: New QNX elf backend file.
2110 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
2111 elf_backend_is_contained_by_filepos, and
2112 elf_backend_do_copy_private_bfd_data.
2113 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
2115 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2117 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
2118 Move other similar defines to start of file.
2120 2002-05-30 Tom Rix <trix@redhat.com>
2122 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
2123 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
2125 2002-05-30 Richard Henderson <rth@redhat.com>
2127 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
2128 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
2129 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
2130 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
2131 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
2132 (struct alpha_elf_obj_tdata): Rename total_got_entries and
2133 n_local_got_entries to total_got_size and local_got_size.
2134 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
2135 (alpha_got_entry_size): New.
2136 (elf64_alpha_relax_with_lituse): Use it.
2137 (elf64_alpha_relax_without_lituse): Likewise.
2138 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
2139 (get_got_entry): New.
2140 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
2141 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
2142 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
2143 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
2144 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
2145 (elf64_alpha_calc_got_offsets): Likewise.
2146 (alpha_dynamic_entries_for_reloc): New.
2147 (elf64_alpha_calc_dynrel_sizes): Use it.
2148 (elf64_alpha_size_dynamic_sections): Likewise.
2149 (elf64_alpha_relocate_section): Handle TLS relocations.
2150 * reloc.c: Add Alpha TLS relocations.
2151 * bfd-in2.h, libbfd.h: Rebuild.
2153 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
2155 * peXXigen.c (pe_print_idata): Remove double printed
2156 import table lines; add Bound-To comment.
2158 2002-05-29 Matt Thomas <matt@3am-software.com>
2160 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
2161 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
2162 (elf32-vax.lo): New rule.
2163 * Makefile.in: Regenerate.
2164 * configure.in (bfd_elf32_vax_vec)
2165 (vaxnetbsd_vec): New vectors.
2166 * configure: Regenerate.
2167 * config.bfd (vax-*-netbsdelf*)
2169 (vax-*-netbsd*): New targets.
2170 * elf32-vax.c: New file.
2171 * reloc.c: Add VAX relocations.
2172 * bfd-in2.h: Regenerate.
2173 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
2175 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2177 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
2178 and bfd_elf32_bigarm_vec to targ_selvecs.
2180 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
2182 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
2183 with auto-imported symbols.
2185 2002-05-29 Adam Nemet <anemet@lnxw.com>
2187 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
2188 sections only record bfd.
2189 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
2190 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
2191 * bfd-in2.h: Regenerate.
2193 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2195 * syms.c (_bfd_stab_section_find_nearest_line): Move
2196 declaration and initialisation of saw_line and saw_func out of
2199 2002-05-29 Alan Modra <amodra@bigpond.net.au>
2201 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
2202 (bfd_elf64_get_symbol_info): Define.
2203 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
2205 2002-05-29 Andrey Volkov <avolkov@transas.com>
2207 * cpu-h8300.c: Make default h8300 machine first in machine list.
2209 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2211 * config.bfd: Added DLX configuraton.
2212 * Makefile.am: Added DLX configuraton.
2213 * configure.in: Added DLX configuraton.
2214 * archures.c: Add DLX architecure.
2215 * reloc.c: Add DLX relocs.
2216 * targets.c: Added DLX target vector.
2217 * configure: Regenerate.
2218 * Makefile.in: Regenreate.
2219 * bfd-in2.h: Regenreate.
2220 * elf32-dlx.c: New file: Support DLX target.
2221 * cpu-dlx.c: New file: Support DLX target.
2223 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2225 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
2227 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
2228 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
2229 strings to point inside function code sym string.
2230 (func_desc_adjust): Likewise.
2231 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
2233 2002-05-24 Michal Ludvig <mludvig@suse.cz>
2235 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
2236 (elf64_x86_64_grok_psinfo): Added.
2238 2002-05-24 TAMURA Kent <kent@netbsd.org>
2240 * config.bfd: Add a target for i386-netbsdpe.
2242 2002-05-24 Alan Modra <amodra@bigpond.net.au>
2244 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
2245 and is_func_descriptor.
2246 (func_desc_adjust): Hide function code sym in shared libs unless
2247 there is a matching exported function descriptor sym.
2249 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2251 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
2252 for symbols from SHF_TLS section.
2253 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
2254 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
2255 (map_sections_to_segments): Build PT_TLS segment if necessary.
2256 (assign_file_positions_for_segments): Likewise.
2257 (get_program_header_size): Account for PT_TLS segment.
2258 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
2259 SEC_THREAD_LOCAL sections to STT_TLS.
2260 * reloc.c: Add 386 and IA-64 TLS relocs.
2261 * section.c (SEC_THREAD_LOCAL): Define.
2262 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
2264 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
2265 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
2267 (struct elf_final_link_info): Add first_tls_sec.
2268 (elf_bfd_final_link): Set first_tls_sec.
2269 Compute elf_hash_table (info)->tls_segment.
2270 (elf_link_output_extsym): Handle STT_TLS symbols.
2271 (elf_link_input_bfd): Likewise.
2272 * syms.c (BSF_THREAD_LOCAL): Define.
2273 * bfd-in2.h: Rebuilt.
2274 * libbfd.h: Rebuilt.
2275 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
2276 elf_i386_mkobject, elf_i386_object_p): New functions.
2277 (elf_howto_table): Add TLS relocs.
2278 (elf_i386_reloc_type_lookup): Support TLS relocs.
2279 (elf_i386_info_to_howto_rel): Likewise.
2280 (struct elf_i386_link_hash_entry): Add tls_type.
2281 (struct elf_i386_obj_tdata): New.
2282 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
2284 (struct elf_i386_link_hash_table): Add tls_ldm_got.
2285 (link_hash_newfunc): Clear tls_type.
2286 (elf_i386_check_relocs): Support TLS relocs.
2287 (elf_i386_gc_sweep_hook): Likewise.
2288 (allocate_dynrelocs): Likewise.
2289 (elf_i386_size_dynamic_sections): Likewise.
2290 (elf_i386_relocate_section): Likewise.
2291 (elf_i386_finish_dynamic_symbol): Likewise.
2292 (bfd_elf32_mkobject, elf_backend_object_p): Define.
2293 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
2294 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
2295 want_tprel, want_dtpmod, want_dtprel.
2296 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
2297 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
2298 R_IA64_LTOFF_TPREL22.
2299 (elf_code_to_howto_index): Add TLS relocs.
2300 (elfNN_ia64_check_relocs): Support TLS relocs.
2301 (allocate_global_data_got): Account for TLS .got data.
2302 (allocate_dynrel_entries): Account for TLS dynamic relocations.
2303 (elfNN_ia64_install_value): Supprt TLS relocs.
2304 (set_got_entry): Support TLS relocs.
2305 (elfNN_ia64_relocate_section): Likewise.
2307 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2309 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
2310 BLX reloc round the relocation up rather than down.
2311 * coff-arm.c (coff_arm_relocate_section): Likewise.
2313 2002-05-21 H.J. Lu (hjl@gnu.org)
2315 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
2318 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2320 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
2321 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
2323 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2325 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
2327 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
2329 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2331 * bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
2334 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2336 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
2338 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
2339 return with false on error.
2340 (elf_link_input_bfd): Check reloc_emitter return value.
2342 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2344 * config.bfd (armeb-*-netbsdelf*): New target.
2346 2002-05-20 Alan Modra <amodra@bigpond.net.au>
2348 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
2349 at the plt call stub.
2351 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2353 * cpu-mips.c (mips_compatible): Don't try to check machine
2356 2002-05-18 Tom Rix <trix@redhat.com>
2358 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
2360 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2362 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
2363 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
2364 we've already warned about an undefined symbol. Report more
2365 detail on reloc errors.
2367 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2369 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
2370 * configure.in: Invoke AM_INSTALL_LIBBFD.
2371 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
2372 (install_libbfd): .. New target.
2373 (uninstall_libbfd): Likewise.
2374 (install-bfdlibLTLIBRARIES): Likewise.
2375 (uninstall-bfdlibLTLIBRARIES): Likewise.
2377 (bfdincludedir): New.
2378 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
2379 * aclocal.m4: Regenerate.
2380 * configure: Regenerate.
2381 * Makefile.in: Regenerate.
2383 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
2385 * hash.c (bfd_hash_lookup): Remove computation of len from inside
2388 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2390 * config.bfd: Add targets for sh64-linux (little endian and
2393 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
2395 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
2396 is located in the same section as the import table. Instead
2397 check, and if necessary load the section containing the thunk.
2399 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
2401 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
2403 (xcoff64_core_file_matches_executable_p): Replace bfd_read
2406 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2408 * aix5ppc-core.c: Warning fixes.
2409 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
2410 * aout-target.h (MY_bfd_link_just_syms): Define.
2411 * aout-tic30.c (MY_bfd_link_just_syms): Define.
2412 * bfd.c (bfd_link_just_syms): Define.
2413 * binary.c (binary_bfd_link_just_syms): Define.
2414 * bout.c (b_out_bfd_link_just_syms): Define.
2415 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
2416 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
2417 * coffcode.h (coff_bfd_link_just_syms): Define.
2418 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
2419 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
2420 (_bfd_elf_link_just_syms): Declare.
2421 * elf.c (_bfd_elf_link_just_syms): New function.
2422 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
2423 sections haven't already been discarded by the linker.
2424 * elflink.h (elf_link_add_object_symbols): Likewise for stab
2425 sections and SEC_MERGE sections.
2426 (elf_bfd_discard_info): Similarly here.
2427 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
2428 * i386msdos.c (msdos_bfd_link_just_syms): Define.
2429 * i386os9k.c (os9k_bfd_link_just_syms): Define.
2430 * ieee.c (ieee_bfd_link_just_syms): Define.
2431 * ihex.c (ihex_bfd_link_just_syms): Define.
2432 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
2433 (_bfd_generic_link_just_syms): Declare.
2434 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
2435 * linker.c (_bfd_generic_link_just_syms): New function.
2436 * mmo.c (mmo_bfd_link_just_syms): Define.
2437 * nlm-target.h (nlm_bfd_link_just_syms): Define.
2438 * oasys.c (oasys_bfd_link_just_syms): Define.
2439 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
2440 * som.c (som_bfd_link_just_syms): Define.
2441 * srec.c (srec_bfd_link_just_syms): Define.
2442 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
2443 (BFD_JUMP_TABLE_LINK): And here.
2444 * tekhex.c (tekhex_bfd_link_just_syms): Define.
2445 * versados.c (versados_bfd_link_just_syms): Define.
2446 * vms.c (vms_bfd_link_just_syms): Define.
2447 * libbfd.h: Regenerate.
2448 * bfd-in2.h: Regenerate.
2450 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2452 * elf32-mips.c: Remove superfluous definitions copied from
2454 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
2455 SGIish vectors to check the special case.
2456 (mips_elf_hi16_reloc): Fix comment.
2457 (mips_elf_got16_reloc): Likewise.
2458 (_bfd_mips_elf32_gprel16_reloc): Likewise.
2459 (elf_reloc_map): Code cleanup.
2460 (mips_reloc_map): Add comment.
2461 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
2462 (mips_elf32_rtype_to_howto): Likewise.
2463 (mips_elf32_discard_info): Likewise.
2464 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
2465 lead to IRIX compatibility now.
2467 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2469 * elfxx-mips.c: Call it IRIX, not Irix in comments.
2471 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
2473 * config.bfd (shle-*-netbsdelf*): Add target which includes
2476 2002-05-13 David Edelsohn <edelsohn@gnu.org>
2478 * configure.in: Revert 2002-04-07. Instead, auto-configure
2480 * configure: Regenerate.
2481 * config.in: Regenerate.
2482 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
2485 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
2487 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
2489 * configure: Regenerate.
2491 2002-05-13 Alan Modra <amodra@bigpond.net.au>
2493 * Makefile.am (install-data-local): Install headers to
2494 $(exec_prefix)/include.
2495 * Makefile.in: Regenerate.
2497 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2498 Daniel Jacobowitz <drow@mvista.com>
2500 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
2503 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
2505 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
2506 hppa*-*-openbsd*): New targets.
2507 * configure.in (alpha*-*-openbsd*): Set COREFILE.
2508 * configure: Regenerate.
2510 2002-05-10 Tom Rix <trix@redhat.com>
2512 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
2513 xcoff64_ppc_relocate_section.
2514 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
2515 * libxcoff.h: Common xcoff_reloc_type function declaration.
2517 2002-05-10 Alan Modra <amodra@bigpond.net.au>
2519 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
2520 added in 2002-05-09 commit.
2522 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
2523 don't look for stubs on all undefined syms.
2525 2002-05-09 Alan Modra <amodra@bigpond.net.au>
2527 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
2528 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
2531 * elf32-i386.c (elf_howto_table): Comments.
2532 (elf_i386_relocate_section): Handle more relocs for relocatable
2533 linking and against SEC_MERGE sections.
2535 2002-05-08 Alan Modra <amodra@bigpond.net.au>
2537 * elf32-ppc.c (ppc_elf_create_got): New function.
2538 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
2539 _bfd_elf_create_dynamic_sections. Correct .plt flags.
2540 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
2541 _bfd_elf_create_got_section.
2543 2002-05-07 Alan Modra <amodra@bigpond.net.au>
2545 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
2546 * elfxx-target.h (elf_backend_rela_normal): Define.
2547 (elfNN_bed): Init rela_normal.
2548 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
2549 for section symbols here if rela_normal. Simplify abs section test.
2550 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
2551 return immediately. Remove code handling relocatable linking.
2552 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
2553 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
2554 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2555 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
2556 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2557 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2558 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
2559 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2560 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2561 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
2562 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2563 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2564 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2565 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
2566 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
2567 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2568 * elf-m10200.c (elf_backend_rela_normal): Define.
2569 * elf-m10300.c (elf_backend_rela_normal): Define.
2570 * elf32-fr30.c (elf_backend_rela_normal): Define.
2571 * elf32-i370.c (elf_backend_rela_normal): Define.
2572 * elf32-i860.c (elf_backend_rela_normal): Define.
2573 * elf32-m68k.c (elf_backend_rela_normal): Define.
2574 * elf32-mcore.c (elf_backend_rela_normal): Define.
2575 * elf32-openrisc.c (elf_backend_rela_normal): Define.
2576 * elf32-ppc.c (elf_backend_rela_normal): Define.
2577 * elf32-s390.c (elf_backend_rela_normal): Define.
2578 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
2579 * elf64-ppc.c (elf_backend_rela_normal): Define.
2580 * elf64-s390.c (elf_backend_rela_normal): Define.
2581 * elf64-x86-64.c (elf_backend_rela_normal): Define.
2582 * elfxx-ia64.c (elf_backend_rela_normal): Define.
2583 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
2584 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
2586 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
2588 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
2589 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
2591 2002-05-06 Alan Modra <amodra@bigpond.net.au>
2593 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
2594 when not relocatable. Fix reloc_emitter call for K&R.
2596 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2598 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
2599 reloading local sym addend mistakenly removed in 2002-05-01 change.
2601 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
2602 (read_abbrevs): Change "offset" param to bfd_vma.
2603 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
2604 Change "abbrev_offset" to bfd_vma.
2605 (read_indirect_string): Use correct conversion chars in error
2606 message format string, cast bfd_vma's to unsigned long.
2607 (read_abbrevs): Likewise.
2608 (read_attribute_value): Likewise.
2609 (decode_line_info): Likewise.
2610 (scan_unit_for_functions): Likewise.
2611 (parse_comp_unit): Likewise.
2613 2002-05-04 Tom Rix <trix@redhat.com>
2615 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
2616 (coff_swap_reloc_out): Same.
2617 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
2618 (xcoff_swap_reloc_out): Same.
2619 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
2620 case some 16 bit relocs. Add reloc value to output.
2621 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
2622 R_RBR. Improve names.
2623 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
2624 (bfd_xcoff_backend_data): Update with new reloc swap names.
2625 (bfd_pmac_xcoff_backend_data) : Same.
2626 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
2627 (xcoff64_swap_reloc_out): Same.
2628 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
2629 R_POS. Add reloc value to output.
2630 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
2631 bit R_RBR. Improve names, masks.
2632 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
2633 (bfd_xcoff_backend_data): Update with new reloc swap names.
2634 (bfd_xcoff_aix5_backend_data) : Same.
2636 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2638 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
2639 bfd_count top_index, input_list, all_local_syms.
2640 (elf32_hppa_setup_section_lists): New function, split from
2641 elf32_hppa_size_stubs.
2642 (elf32_hppa_next_input_section): Likewise.
2643 (group_sections): Likewise.
2644 (get_local_syms): Likewise.
2645 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
2646 stubs on undefined syms too.
2647 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
2648 Only access htab elf fields when we have an elf hash table.
2649 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
2650 (elf32_hppa_next_input_section): Declare.
2652 2002-05-04 Bob Byrnes <byrnes@curl.com>
2654 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
2657 2002-05-03 H.J. Lu (hjl@gnu.org)
2659 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
2660 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
2661 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
2662 to hide a global symbol.
2663 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
2664 forced_local to true.
2666 2002-05-02 Richard Henderson <rth@redhat.com>
2668 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
2669 vs SHN_UNDEF to zero.
2671 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2673 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
2675 <R_PPC64_SECTOFF_DS>: Likewise.
2676 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
2678 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
2679 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
2682 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
2683 (ppc64_elf_ha_reloc): New function.
2684 (ppc64_elf_brtaken_reloc): New function.
2685 (ppc64_elf_sectoff_reloc): New function.
2686 (ppc64_elf_sectoff_ha_reloc): New function.
2687 (ppc64_elf_toc_reloc): New function.
2688 (ppc64_elf_toc_ha_reloc): New function.
2689 (ppc64_elf_toc64_reloc): New function.
2690 (ppc64_elf_unhandled_reloc): New function.
2691 (ppc64_elf_howto_raw): Use the above.
2692 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
2693 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
2694 <R_PPC64_SECTOFF_DS>: Likewise.
2695 (IS_ABSOLUTE_RELOC): Update.
2696 (struct ppc_link_hash_table): Add have_undefweak.
2697 (ppc64_elf_link_hash_table_create): Init.
2698 (func_desc_adjust): Set have_undefweak.
2699 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
2700 add the .sfpr blr when have_undefweak.
2701 (ppc64_elf_setup_section_lists): Check hash table flavour.
2702 (ppc64_elf_next_input_section): Move output_section->owner test to
2704 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
2705 and relocatable test. Return TOCstart and don't set elf_gp.
2706 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
2707 offset calculation. Add assert on weak sym branch tweaks.
2708 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
2709 (ppc64_elf_toc): Declare.
2710 (ppc64_elf_next_input_section): Update.
2712 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2714 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
2717 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2719 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
2720 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
2721 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
2722 call branches. Correct undefined weak destination.
2723 (ppc64_elf_func_desc_adjust): Always create at least one blr in
2724 .sfpr, and correct case where either only savef* or restf* is
2727 Long branch stubs, multiple stub sections.
2728 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
2729 (ppc64_elf_next_input_section): Declare.
2730 * elf64-ppc.c: Move linker-only prototypes.
2731 (STUB_SUFFIX): Define.
2732 (enum ppc_stub_type): New.
2733 (struct ppc_stub_hash_entry): New.
2734 (struct ppc_branch_hash_entry): New.
2735 (struct ppc_link_hash_entry): Add stub_cache, oh.
2736 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
2737 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
2738 Rename plt_overflow to stub_error.
2739 (ppc_stub_hash_lookup): Define.
2740 (ppc_branch_hash_lookup): Define.
2741 (stub_hash_newfunc): New function.
2742 (branch_hash_newfunc): New function.
2743 (link_hash_newfunc): Init new fields.
2744 (ppc64_elf_link_hash_table_create): Likewise.
2745 (ppc64_elf_link_hash_table_free): New function.
2746 (ppc_stub_name): New function.
2747 (ppc_get_stub_entry): New function.
2748 (ppc_add_stub): New function.
2749 (create_linkage_sections): Use bfd_make_section_anyway. Create
2750 .branch_lt and .rela.branch_lt sections. Don't create .stub.
2751 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
2752 and set up for plt call stubs. Link func and func desc syms.
2753 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
2754 (func_desc_adjust): Avoid hash lookup when func desc sym available
2755 via shortcut, and set links when processing.
2756 (ppc64_elf_hide_symbol): Likewise.
2757 (allocate_dynrelocs): Don't allocate stub section here.
2758 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
2760 (ppc_type_of_stub): New function.
2761 (build_one_stub): Delete.
2762 (ppc_build_one_stub): New function.
2763 (ppc_size_one_stub): New function.
2764 (ppc64_elf_setup_section_lists): New function.
2765 (ppc64_elf_next_input_section): New function.
2766 (group_sections): New function.
2767 (get_local_syms): New function.
2768 (ppc64_elf_size_stubs): Rewrite.
2769 (ppc64_elf_build_stubs): Rewrite.
2770 (ppc64_elf_relocate_section): Look up stub entry for REL24
2771 relocs. Don't propagate REL14* to dynamic objects. Look for long
2772 branch stubs if REL14* or REL24 relocs won't reach.
2773 (bfd_elf64_bfd_link_hash_table_free): Define.
2775 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2777 * config.bfd: Add support for powerpc-*-windiss.
2779 2002-04-30 Tom Rix <trix@redhat.com>
2781 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
2782 symbol names into the hash table.
2784 2002-04-28 Tom Rix <trix@redhat.com>
2786 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
2787 calulating relocations.
2788 (xcoff_complain_overflow) : Function table for relocation errors.
2789 (xcoff_ppc_relocate_section): Use relocation and complain function
2791 (xcoff_complain_overflow_unsigned_func): New complain function.
2792 (xcoff_complain_overflow_signed_func): Same.
2793 (xcoff_complain_overflow_bitfield_func): Same.
2794 (xcoff_complain_overflow_dont_func): Same.
2795 (xcoff_reloc_type_crel): New recot function.
2796 (xcoff_reloc_type_br): Same.
2797 (xcoff_reloc_type_ba): Same.
2798 (xcoff_reloc_type_toc): Same.
2799 (xcoff_reloc_type_rel): Same.
2800 (xcoff_reloc_type_neg): Same.
2801 (xcoff_reloc_type_pos): Same.
2802 (xcoff_reloc_type_fail): Same.
2803 (xcoff_reloc_type_noop): Same.
2804 * libxcoff.h : Declare common parts for xcoff64.
2805 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
2806 and complain function tables.
2808 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2810 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
2811 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
2813 2002-04-26 Alan Modra <amodra@bigpond.net.au>
2815 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
2816 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
2818 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
2819 same as the output before calling elf_link_input_bfd.
2821 * coffcode.h (coff_compute_section_file_positions): Set
2822 section_tail after shuffling section list.
2824 2002-04-24 Christian Groessler <chris@groessler.org>
2826 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
2827 addresses are 23bit with a special layout, not plain 32bit
2828 values. Prevent relocation of immediate values.
2830 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
2832 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
2833 MIPS-16 ASE flags are set, print something to indicate that.
2835 2002-04-23 Alan Modra <amodra@bigpond.net.au>
2837 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
2838 under which a plt call stub is used.
2839 (final_link_relocate): Similarly.
2840 (allocate_plt_static): Clear h-plabel except when plt entry is
2841 exclusively used for a plabel.
2842 (allocate_dynrelocs): Use the above to simplify plt sizing.
2843 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
2844 (elf32_hppa_link_hash_table_create): Init.
2846 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
2847 (elf32_hppa_check_relocs): Set has_22bit_branch.
2849 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
2850 (final_link_relocate): Likewise.
2852 2002-04-22 Jakub Jelinek <jakub@redhat.com>
2854 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
2855 search table if some FDE is DW_EH_PE_aligned encoded either.
2856 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
2858 2002-04-22 Richard Smith <richard@ex-parrot.com>
2859 Jakub Jelinek <jakub@redhat.com>
2861 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
2862 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
2863 encoded personality.
2864 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
2865 for CIE/FDE removal.
2867 2002-04-20 Tom Rix <trix@redhat.com>
2869 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
2871 2002-04-20 Alan Modra <amodra@bigpond.net.au>
2873 * archures.c (bfd_lookup_arch): Move the list order comment..
2874 (struct bfd_arch_info): ..to where it belongs.
2875 * bfd-in2.h: Regenerate.
2877 * archures.c (bfd_lookup_arch): Add comment on list order.
2878 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
2879 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
2880 is always at head of list.
2882 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
2884 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
2885 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
2886 definition of these functions for ARM_WINCE builds as they are
2888 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
2889 for ARM_WINCE builds.
2891 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
2893 * coff-arm.c (bfd_arm_process_before_allocation):
2895 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2897 * cpu-sh.c (scan_mach): Delete.
2898 (arch_info_struct): Replace scan_mach with bfd_default_scan.
2899 (bfd_sh_arch): Likewise.
2901 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
2903 * ihex.c (ihex_write_object_contents): Fix check for records
2904 crossing 64K boundaries.
2906 2002-04-16 Alan Modra <amodra@bigpond.net.au>
2908 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
2909 type rather than just assuming entries are ELF.
2910 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
2911 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
2912 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
2913 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
2914 rather than elf_link_hash_entry.
2916 2002-04-15 Richard Henderson <rth@redhat.com>
2918 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
2921 2002-04-15 Michael Snyder <msnyder@redhat.com>
2923 * opncls.c (bfd_close): Write contents if writeable.
2924 Minor formatting tidy-ups.
2926 2002-04-15 Alan Modra <amodra@bigpond.net.au>
2928 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
2930 2002-04-12 Michael Snyder <msnyder@redhat.com>
2932 * bfd-in.h (bfd_get_section_lma): New access macro.
2933 Minor white-space fix-up.
2935 2002-04-12 Alan Modra <amodra@bigpond.net.au>
2937 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
2940 2002-04-09 DJ Delorie <dj@redhat.com>
2942 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
2944 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
2946 * coffcode.h (coff_read_word): New.
2947 (coff_compute_checksum): New.
2948 (coff_apply_checksum): New.
2949 (coff_write_object_contents): Call coff_apply_checksum () to
2950 apply checksum to PE image.
2952 2002-04-08 Randolph Chung <tausq@debian.org>
2954 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
2955 (elf32_hppa_final_link): Split out sorting logic to..
2956 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
2957 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
2959 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2961 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
2963 * configure: Re-generate.
2965 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2967 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
2968 is greater or equal to 4.3.3.
2969 * configure: Regenerate.
2972 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
2974 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
2975 R_CRIS_32_PCREL>: Fix typo in name.
2976 (cris_elf_check_relocs): Always create .rela.got here when
2977 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
2978 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
2979 assume it's created.
2981 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
2983 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
2984 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
2986 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
2987 * bfd.c (bfd_link_hash_table_free): Define.
2988 * binary.c (binary_bfd_link_hash_table_free): Define.
2989 * bout.c (b_out_bfd_link_hash_table_free): Define.
2990 * coff-rs6000.c (rs6000coff_vec): Include
2991 _bfd_generic_link_hash_table_free.
2992 (pmac_xcoff_vec): Likewise.
2993 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2994 (aix5coff64_vec): Likewise.
2995 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
2996 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
2997 (bfd_elf32_bfd_link_hash_table_free): Define.
2998 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
2999 (bfd_elf32_bfd_link_hash_table_free): Define.
3000 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
3002 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
3003 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
3004 * ieee.c (ieee_bfd_link_hash_table_free): Define.
3005 * ihex.c (ihex_bfd_link_hash_table_free): Define.
3006 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
3007 (_bfd_generic_link_hash_table_free): Add prototype.
3008 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
3009 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
3010 * linker.c (_bfd_generic_link_hash_table_free): New function.
3011 * mmo.c (mmo_bfd_link_hash_table_free): Define.
3012 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
3013 * oasys.c (oasys_bfd_link_hash_table_free): Define.
3014 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
3015 * som.c (som_bfd_link_hash_table_free): Define.
3016 * srec.c (srec_bfd_link_hash_table_free): Define.
3017 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
3018 * versados.c (versados_bfd_link_hash_table_free): Define.
3019 * vms.c (vms_bfd_link_hash_table_free): New function.
3020 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
3022 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
3023 instead of bfd_alloc.
3024 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
3025 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
3026 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
3027 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
3028 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
3029 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
3030 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
3031 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
3032 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
3033 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
3034 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
3035 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
3036 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
3037 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
3038 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
3039 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
3040 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
3041 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
3042 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
3043 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
3044 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
3045 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
3046 * m68klinux.c (linux_link_hash_table_create): Likewise.
3047 * sparclinux.c (linux_link_hash_table_create): Likewise.
3048 * sunos.c (sunos_link_hash_table_create): Likewise.
3049 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
3051 * targets.c: Add _bfd_link_hash_table_free to xvec.
3053 * bfd-in2.h: Regenerate.
3054 * libbfd.h: Regenerate.
3055 * libcoff.h: Regenerate.
3057 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3059 * dep-in.sed: Cope with absolute paths.
3060 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
3062 * Makefile.in: Regenerate.
3063 * coff-arm.c: Fix copyright date.
3064 * cpu-h8300.c: Likewise.
3065 * cpu-i370.c: Likewise.
3066 * cpu-s390.c: Likewise.
3067 * cpu-mips.c: Likewise.
3068 * po/SRC-POTFILES.in: Regenerate.
3070 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3072 * Makefile.am: Add elfxx-mips.c to the known backends.
3073 (elf32-mips.lo): remove dependency to coff/external.h.
3074 * Makefile.in: Regenerate.
3075 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
3076 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
3078 * configure: Regenerate.
3079 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
3080 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
3081 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
3082 MIPS specific backend functions.
3083 * elf32-mips.c: Moved most code to elfxx-mips.c.
3084 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
3086 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
3087 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
3088 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
3089 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
3090 interface to allow selection of the right REL or RELA howto table.
3091 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
3092 static. Let it refuse n32 objects.
3093 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
3094 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
3095 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
3096 (elf32_mips_ignore_discarded_relocs): Rename from
3097 _bfd_elf32_mips_ignore_discarded_relocs.
3098 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
3099 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
3100 (elf_mips_howto_table_rela): Remove.
3101 * elf64-mips.c: Moved most code to elfxx-mips.c.
3102 (bfd_elf64_bfd_reloc_type_lookup): Make static.
3103 (mips_elf64_rtype_to_howto): New function.
3104 (mips_elf64_object_p): Likewise.
3105 (elf64_mips_irix_compat): Likewise.
3106 * elfxx-mips.c: New file containing common code merged together from
3107 elf32-mips.c and elf64-mips.c.
3108 * elfxx-mips.h: New file containing MIPS specific prototypes from
3110 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
3111 elf_backend_mips_rtype_to_howto.
3113 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3115 * srec.c (MAXCHUNK, Chunk): Revise comments.
3116 (srec_write_record): Correct buffer size.
3117 (srec_write_header): Do without intermediate buffer.
3118 (srec_write_section): Validate Chunk.
3119 (srec_write_terminator): Pass NULL instead of dummy buffer.
3120 (srec_write_symbols): Pass file and symbol names directly to
3121 bfd_bwrite so sprintf won't overflow buffer.
3123 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3125 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
3126 PC relative relocs against hidden symbols.
3127 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3129 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3131 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
3132 LMAs, loop over segments until p_vaddr and p_memsz specify an
3133 extent enclosing the section.
3135 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
3137 * ihex.c (ihex_write_object_contents): Do not allow records to
3138 cross a 64K boundary - wrap if necessary.
3140 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
3142 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
3143 which caused the returned LWP ID to always be 0.
3145 2002-04-01 Richard Henderson <rth@redhat.com>
3147 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
3148 (elf32_sparc_relocate_section): Use it to figure out when to
3149 initialize .got entries.
3150 * elf64-sparc.c: Similarly.
3152 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3154 * linker.c (link_action): Ignore duplicate warning syms.
3155 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
3156 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
3157 (elf_adjust_dynamic_symbol): Likewise.
3158 (elf_export_symbol): Likewise.
3159 (elf_link_find_version_dependencies): Likewise.
3160 (elf_link_assign_sym_version): Likewise.
3161 (elf_link_sec_merge_syms): Likewise.
3162 (elf_link_output_extsym): Likewise.
3163 (elf_gc_sweep_symbol): Likewise.
3164 (elf_gc_propagate_vtable_entries_used): Likewise.
3165 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3166 (elf_gc_allocate_got_offsets): Likewise.
3167 (elf_collect_hash_codes): Likewise.
3168 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
3169 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
3170 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
3171 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
3172 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
3173 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
3174 (elf_cris_discard_excess_dso_dynamics): Likewise.
3175 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
3176 (mark_PIC_calls): Likewise.
3177 (allocate_plt_static): Likewise.
3178 (allocate_dynrelocs): Likewise.
3179 (readonly_dynrelocs): Likewise.
3180 * elf32-i386.c (allocate_dynrelocs): Likewise.
3181 (readonly_dynrelocs): Likewise.
3182 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
3183 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
3184 * elf32-mips.c (mips_elf_output_extsym): Likewise.
3185 (mips_elf_sort_hash_table_f): Likewise.
3186 (mips_elf_check_mips16_stubs): Likewise.
3187 * elf32-s390.c (allocate_dynrelocs): Likewise.
3188 (readonly_dynrelocs): Likewise.
3189 * elf32-sh.c (sh_elf_discard_copies): Likewise.
3190 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
3191 (xstormy16_relax_plt_realloc): Likewise.
3192 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
3193 (elf64_alpha_output_extsym): Likewise.
3194 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
3195 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
3196 (mips_elf64_check_mips16_stubs): Likewise.
3197 (mips_elf64_output_extsym): Likewise.
3198 * elf64-ppc.c (func_desc_adjust): Likewise.
3199 (allocate_dynrelocs): Likewise.
3200 (readonly_dynrelocs): Likewise.
3201 * elf64-s390.c (allocate_dynrelocs): Likewise.
3202 (readonly_dynrelocs): Likewise.
3203 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
3204 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
3205 (readonly_dynrelocs): Likewise.
3206 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
3207 * aoutx.h (aout_link_write_other_symbol): Likewise.
3208 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
3209 (_bfd_coff_write_global_sym): Likewise.
3210 * i386linux.c (linux_tally_symbols): Likewise.
3211 * m68klinux.c (linux_tally_symbols): Likewise.
3212 * sparclinux.c (linux_tally_symbols): Likewise.
3213 * pdp11.c (aout_link_write_other_symbol): Likewise.
3214 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
3215 * xcofflink.c (xcoff_build_ldsyms): Likewise.
3216 (xcoff_write_global_symbol): Likewise.
3218 * cofflink.c (_bfd_coff_final_link): Formatting.
3219 * cpu-mips.c (mips_compatible): Make static, prototype.
3220 * elf32-i386.c (elf_i386_check_relocs): Formatting.
3221 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
3222 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
3223 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
3224 (mips_elf64_final_link): Likewise.
3225 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
3228 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
3230 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
3231 (SWAP_OUT_RELOC_OFFSET): Define.
3233 2002-03-27 Gregory Steuck <greg@nest.cx>
3235 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
3236 terminating NULL if empty symbol table.
3237 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
3239 2002-03-26 H.J. Lu (hjl@gnu.org)
3241 * elflink.h (elf_link_input_bfd): Revert the last change since
3242 the gcc exception handling isn't fixed yet.
3244 2002-03-26 H.J. Lu (hjl@gnu.org)
3246 * elflink.h (elf_link_input_bfd): Complain about relocations
3247 against local symbols in discarded sections.
3249 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3251 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
3253 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3255 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
3256 section file offset for !SEC_LOAD sections.
3258 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
3260 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
3261 <case R_ARM_GOT>): Handle relocations to Thumb functions.
3263 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3265 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
3267 * archive.c: Update copyright date.
3268 * bfd-in2.h: Regenerate.
3269 * libbfd.h: Regenerate.
3270 * Makefile.am: Run "make dep-am"
3271 * Makefile.in: Regenerate.
3272 * po/SRC-POTFILES.in: Regenerate.
3274 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
3276 * dwarf2.c (struct funcinfo): Move up.
3277 (lookup_address_in_function_table): New argument function_ptr.
3279 (lookup_address_in_line_table): New argument function. If function
3280 is non-NULL, use it to handle ``addr'' before the first line note of
3282 (comp_unit_find_nearest_line): Update and swap calls to
3283 lookup_address_in_function_table and lookup_address_in_line_table.
3284 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
3285 N_SLINE encountered if we see an N_FUN before any N_SLINE.
3287 2002-03-20 Tom Rix <trix@redhat.com>
3289 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
3290 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
3291 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
3293 2002-03-19 Tom Rix <trix@redhat.com>
3295 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
3296 dynamic objects in archives.
3298 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
3300 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
3301 STT_NOTYPE symbols to STT_OBJECT.
3303 2002-03-18 Jan Hubicka <jh@suse.cz>
3305 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
3307 2002-03-18 Tom Rix <trix@redhat.com>
3309 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
3310 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
3311 * coff-rs6000 (do_pad) : New function for archive padding.
3312 (do_copy) : New function for object file copying in archives.
3313 (do_shared_object_padding) : New function for padding shared
3314 objects to their text section alignment in archives.
3315 (bfd_xcoff_ar_achive_set_magic) : Stub.
3316 (xcoff_write_armap_big) : Use do_copy and do_pad.
3317 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
3319 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
3320 bfd_xcoff_magic_number.
3321 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
3323 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
3324 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
3325 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
3326 * rs6000-core.c : Update copyright date.
3327 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
3329 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
3330 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
3331 (coff_set_flags) : Use bfd_xcoff_magic_number.
3332 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
3333 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
3334 * Makefile.am : Same.
3335 * config.bfd : Same.
3337 * configure : Regnerate.
3338 * Makefile.in : Same.
3341 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3343 * po/fr.po: Updated version.
3345 2002-03-18 Alan Modra <amodra@bigpond.net.au>
3347 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
3348 * libbfd.h: Regenerate.
3349 * archive.c (coff_write_armap): Pass on failures from
3350 bfd_write_bigendian_4byte_int.
3352 2002-03-14 H.J. Lu <hjl@gnu.org>
3354 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
3355 error to bfd_error_nonrepresentable_section for reinit_array
3358 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
3360 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
3361 OR it in rather than replacing previously selected flags.
3363 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
3364 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
3366 2002-03-14 Alan Modra <amodra@bigpond.net.au>
3368 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
3370 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
3371 ensure reloc size matches before calling elf_link_input_bfd.
3372 Add an assert to check reloc size when counting output relocs.
3374 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
3376 * mmo.c (mmo_get_loc): Return NULL rather than false.
3378 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3380 * po/fr.po: Updated version.
3382 2002-03-13 Alan Modra <amodra@bigpond.net.au>
3384 * archures.c (bfd_default_compatible): Test bits_per_word.
3385 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
3386 bfd_default_compatible.
3387 * cpu-i370.c (i370_compatible): Likewise.
3388 * cpu-sparc.c (sparc_compatible): Likewise.
3389 * cpu-h8300.c (compatible): Test in->arch == out->arch.
3391 * elflink.h: Formatting fixes.
3392 (elf_link_output_extsym): Merge undefined and undef weak cases.
3394 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
3395 when word size of input matches output word size.
3397 2002-03-12 Andreas Jaeger <aj@suse.de>
3399 * cpu-i386.c (i386_compatible): New. Use it instead of
3400 bfd_default_compatible.
3402 2002-03-07 H.J. Lu (hjl@gnu.org)
3404 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
3405 as the type for bfd_reloc_val.
3407 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3409 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
3410 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
3411 (elf_hppa_final_link_relocate): Correct relocations for indirect
3412 references to local data through the DLT. Fix .opd creation for
3413 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
3414 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
3415 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
3416 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
3417 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
3418 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
3419 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
3421 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3423 * merge.c (_bfd_merge_sections): Don't segfault if there
3424 is nothing to merge due to GC.
3426 2002-03-05 Alan Modra <amodra@bigpond.net.au>
3428 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
3429 symbols that have been forced local.
3431 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
3432 to output forced local syms for non-shared link.
3433 (elf_link_output_extsym): Tweak condition for calling backend
3434 adjust_dynamic_symbol so that previous behaviour is kept.
3435 Whitespace changes throughout file.
3437 2002-03-04 H.J. Lu <hjl@gnu.org>
3439 * elf.c (bfd_section_from_shdr): Handle special sections,
3440 .init_array, .fini_array and .preinit_array.
3441 (elf_fake_sections): Likewise.
3443 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
3444 DT entry only if the section is in output for .init_array,
3445 .fini_array and .preinit_array. Complain about .preinit_array
3447 (elf_bfd_final_link): Warn zero size for .init_array,
3448 .fini_array and .preinit_array sections.
3450 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
3451 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
3452 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
3455 2002-03-04 Alan Modra <amodra@bigpond.net.au>
3457 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
3458 * configure: Regenerate.
3460 2002-03-02 Tom Rix <trix@redhat.com>
3462 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
3464 * coff-rs6000.c (xcoff_howto_table): Same.
3466 2002-03-01 David Mosberger <davidm@hpl.hp.com>
3468 * elflink.h (size_dynamic_sections): If section named
3469 ".preinit_array" exists, create DT_PREINIT_ARRAY and
3470 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
3471 ".init_array" and ".fini_array".
3472 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
3473 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
3476 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
3478 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
3481 2002-02-25 Alan Modra <amodra@bigpond.net.au>
3483 * elf64-hppa.h: Update copyright date.
3485 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
3486 (ppc64_elf_relocate_section): Don't generate power4 style branch
3487 hints for *_BRTAKEN and *_BRNTAKEN relocs.
3489 2002-02-22 Jakub Jelinek <jakub@redhat.com>
3491 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
3493 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
3495 2002-02-21 Andreas Jaeger <aj@suse.de>
3497 * elf64-x86-64.c: Major rework that introduces all recent changes
3498 to the x86-64 backend. Get a closer match to elf32-i386.
3499 (struct elf64_x86_64_dyn_relocs): Rename from
3500 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
3502 (struct elf64_x86_64_link_hash_table): Add short cuts to some
3504 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
3505 remove casts, initialize new hash members.
3506 (create_got_section): New.
3507 (elf64_x86_64_create_dynamic_sections): New.
3508 (elf64_x86_64_copy_indirect_symbol): New.
3509 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
3510 relocs, .got or .relgot here but do it in allocate_dynrelocs.
3511 Reference count possible .plt and .got entries. Don't test input
3512 section SEC_READONLY here to try to avoid copy relocs, and keep
3513 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
3514 DF_TEXTREL here. Delay setting of variables until needed. Cache
3515 pointer to "sreloc" section in elf_section_data. Tweak condition
3516 under which .got created. Report files with bad relocation
3518 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
3519 Reference count possible .plt entries. Don't deallocate .got and
3521 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
3522 do copy reloc processing for weakdefs. Remove redundant casts and
3523 aborts. Delay setting of vars until needed. Move creation of
3524 dynamic symbols and allocation of .plt and .rela.plt to
3525 allocate_dynrelocs. Replace BFD_ASSERT with abort.
3526 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
3527 (allocate_dynrelocs): New.
3528 (readonly_dynrelocs): New.
3529 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
3530 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
3531 Zero out the dynamic allocated content space.
3532 (elf64_x86_64_discard_copies): Removed.
3533 (elf64_x86_64_relocate_section): Make use of dynamic section
3534 short-cuts. Localise vars, and delay setting. Better error
3535 reporting, replace BFD_ASSERT with abort. Check
3536 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
3537 regular object file and tread the weak definition as the normal
3538 one. Don't discard relocs for undefweak or undefined symbols and
3539 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
3541 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
3542 symbols that have been forced local. Use same test to decide if
3543 we can use a relative reloc for got as relocate_section. Expand
3544 SHN_UNDEF comment. Move expressions out of function calls.
3545 Replace BFD_ASSERT with abort.
3546 (bfd_elf64_bfd_final_link): Removed.
3547 (elf_backend_copy_indirect_symbol): Define.
3549 2002-02-20 Tom Rix <trix@redhat.com>
3551 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
3552 (_bfd_xcoff_reloc_type_lookup): Use it.
3553 * coff64-rs6000.c (xcoff64_howto_table): Same.
3554 (xcoff64_reloc_type_lookup): Same.
3556 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3558 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
3561 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3563 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
3564 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
3565 * bfd-in2.h: Regenerate.
3566 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
3567 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
3569 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
3570 (elf_s390_reloc_type_lookup): Likewise.
3571 (elf_s390_check_relocs): Likewise.
3572 (elf_s390_gc_sweep_hook): Likewise.
3573 (elf_s390_relocate_section): Likewise.
3574 (elf_s390_object_p): Use renamed architecture define.
3575 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
3577 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
3579 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
3581 2002-02-19 Jakub Jelinek <jakub@redhat.com>
3583 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
3584 absptr -> pcrel optimization for shared libs.
3585 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
3586 library cannot be converted to pcrel.
3587 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
3589 * elf32-i386.c (elf_i386_relocate_section): If
3590 _bfd_elf_section_offset returned -2, skip, but make sure the
3591 relocation is installed.
3592 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
3593 * elf32-cris.c (cris_elf_relocate_section): Likewise.
3594 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
3595 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3596 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3597 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3598 * elf32-s390.c (elf_s390_relocate_section): Likewise.
3599 * elf32-sh.c (sh_elf_relocate_section): Likewise.
3600 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3601 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
3602 * elf64-s390.c (elf_s390_relocate_section): Likewise.
3603 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
3604 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3605 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
3606 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
3607 _bfd_elf_section_offset returning -2 the same way as -1.
3608 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
3609 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
3611 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
3613 2002-02-18 Tom Rix <trix@redhat.com>
3615 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
3616 (bfd_xcoff_size_dynamic_sections): Same.
3617 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
3618 (bfd_xcoff_size_dynamic_sections): Same.
3619 * coff-rs6000.c (xcoff_generate_rtinit): Same.
3620 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
3621 * libxcoff.h (struct xcoff_backend_data_rec): Same.
3622 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
3623 * bfd-in2.h: Regenerate.
3625 2002-02-18 Alan Modra <amodra@bigpond.net.au>
3627 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
3628 (struct ppc_link_hash_table): Add sfpr.
3629 (ppc64_elf_link_hash_table_create): Init it.
3630 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
3632 (create_linkage_sections): ..here. Make .sfpr too.
3633 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
3635 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
3636 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
3637 ._restf* functions, and create as needed.
3638 (func_desc_adjust): Only force_local for shared libs.
3640 2002-02-18 David O'Brien <obrien@FreeBSD.org>
3642 * configure.in: Bump version number post 2.12 branching.
3643 * configure: Regenerate.
3645 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
3647 * mmo.c: Correct and improve comments.
3648 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
3649 zero-pad. Use input to fill up non-empty bfd buffer.
3650 (mmo_flush_chunk): New function.
3651 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
3652 changed. Don't emit location specifier if VMA is same as
3653 *LAST_VMAP after omitting leading zero contents. Call
3654 mmo_flush_chunk before emitting location specifier.
3655 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
3656 with mmo_write_loc_chunk calls.
3657 (mmo_internal_write_section): Call mmo_flush_chunk after
3659 (mmo_write_symbols_and_terminator): Move :Main to first position
3660 in symbol array. Add faked one if it does not exist if there are
3661 other symbols. Don't add it if there are no symbols at all. Move
3662 out test for value of :Main from symbol loop. Rename table
3663 fakemain to maintable and variable mainsym to fakemain.
3665 2002-02-15 Richard Henderson <rth@redhat.com>
3667 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
3668 section with no got matches any got. Simplify error generaion.
3670 2002-02-15 Alan Modra <amodra@bigpond.net.au>
3672 Support arbitrary length fill patterns.
3673 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
3674 (_bfd_default_link_order): Remove bfd_fill_link_order code.
3675 Call default_data_link_order.
3676 (default_fill_link_order): Delete.
3677 (default_data_link_order): New function.
3678 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
3679 of bfd_fill_link_order with bfd_data_link_order.
3680 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
3681 * elf64-mips.c (mips_elf64_final_link): Likewise.
3683 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
3684 Correct value returned in "end" for "0x<non-hex>".
3686 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
3688 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
3689 (scan): Test against 'mach' field in info structure.
3691 2002-02-14 Alan Modra <amodra@bigpond.net.au>
3693 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
3695 2002-02-14 Matt Fredette <fredette@netbsd.org>
3697 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
3700 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
3702 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
3703 non-zero physical addresses when adjusting the LMAs of new
3706 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
3708 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
3709 from _bfd_elf_hppa_gen_reloc_type.
3710 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
3711 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
3712 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
3713 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
3715 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
3717 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
3718 loading its contents if there's nothing to do in it.
3720 2002-02-12 Alan Modra <amodra@bigpond.net.au>
3722 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
3725 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
3726 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
3727 (ppc64_elf_finish_dynamic_sections): Set values for them.
3729 2002-02-11 Michael Snyder <msnyder@redhat.com>
3731 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
3732 * elf.c (elfcore_grok_pstatus): Add prototype.
3733 (elfcore_grok_lwpstatus): Add prototype.
3734 (elfcore_write_lwpstatus): New function.
3735 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
3737 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3739 * elf32-sh.c: Added missing prototypes.
3740 * elf32-sh64.c: Likewise.
3741 (sh_elf_align_loads): Mark unused args as such.
3742 * elf64-sh64.c: Added missing prototypes.
3743 (struct elf_sh64_link_hash_entry): Fix typo.
3744 (sh_elf64_relocate_section): Fix info argument passed to
3745 _bfd_elf_section_offset.
3747 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3749 * Makefile.am: "make dep-am".
3750 * Makefile.in: Regenerate.
3751 * aclocal.m4: Regenerate.
3752 * config.in: Regenerate.
3753 * configure: Regenerate.
3755 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3757 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
3759 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
3761 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
3762 cast warnings for the common case.
3764 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
3766 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
3768 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
3771 2002-02-09 Richard Henderson <rth@redhat.com>
3773 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
3774 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
3775 (elf64_alpha_relocate_section): Likewise.
3776 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
3777 * bfd-in2.h, libbfd.h: Rebuild.
3779 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
3781 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
3782 that base-plus-offset reloc accounting is consistent.
3783 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
3784 up to date for undefined symbols.
3786 2002-02-08 Eric Christopher <echristo@redhat.com>
3788 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3790 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
3791 sections for the O32 ABI.
3793 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3795 * elf32-arm.h: Fix formatting of _("...").
3796 * elf32-d10v.c: Likewise.
3797 * elf32-m68k.c: Likewise.
3798 * elf32-mips.c: Likewise.
3800 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
3802 * coff-or32.c: Fix compile time warning messages.
3804 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3806 Contribute sh64-elf.
3807 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
3808 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
3809 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
3810 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
3811 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
3812 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
3813 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
3814 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
3815 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
3816 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
3818 * libbfd.h, bfd-in2.h: Rebuilt.
3819 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
3820 (sh_reloc_map): Map them.
3821 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3822 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
3823 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
3824 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3825 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
3826 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
3827 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
3828 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
3829 datalabel_got_offset.
3830 (sh_elf_link_hash_newfunc): Initialize it.
3831 (sh_elf_relocate_section): Augment the scope of
3832 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
3833 GOT and GOTOFF handling to new SHmedia relocation types. Support
3835 (sh_elf_check_relocs): Likewise.
3836 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
3837 PLT entries using movi_shori_putval. Support GOT_BIAS.
3838 (sh_elf_finish_dynamic_sections): Likewise.
3839 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
3840 relocation, it's now done by the caller.
3842 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
3843 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
3844 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
3845 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
3846 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
3847 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
3848 sh64_elf64_hash_table): New.
3849 (sh_elf64_howto_table): Introduce new relocs.
3850 (sh_elf64_info_to_howto): Accept new PIC relocs.
3851 (sh_elf64_relocate_section): Augment the scope of
3852 seen_stt_datalabel. Support new PIC relocs.
3853 (sh_elf64_check_relocs): Support new PIC relocs.
3854 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
3855 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
3856 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
3857 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
3858 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
3859 movi_shori_putval, movi_3shori_putval,
3860 sh64_elf64_create_dynamic_sections,
3861 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
3862 sh64_elf64_size_dynamic_sections,
3863 sh64_elf64_finish_dynamic_symbol,
3864 sh64_elf64_finish_dynamic_sections): New.
3865 (elf_backend_create_dynamic-sections,
3866 bfd_elf64_bfd_link_hash_table_create,
3867 elf_backend_adjust_dynamic_symbol,
3868 elf_backend_size_dynamic_sections,
3869 elf_backend_finish_dynamic_symbol,
3870 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3871 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3872 elf_backend_got_header_size, elf_backend_plt_header_size):
3874 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
3875 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
3876 match official numbers and names; moved unmaching ones to the
3878 * elf32-sh64.c, elf64-sh64.c: Likewise.
3879 2001-03-12 DJ Delorie <dj@redhat.com>
3880 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
3882 2001-03-12 DJ Delorie <dj@redhat.com>
3883 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
3885 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
3886 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
3887 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
3888 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
3889 .cranges section with SEC_SORT_ENTRIES set.
3890 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
3891 incoming sorted .cranges section.
3892 (sh64_bfd_elf_copy_private_section_data): New.
3893 (sh64_elf_final_write_processing): Only sort .cranges and modify
3894 start address if called by linker.
3895 2001-01-08 Ben Elliston <bje@redhat.com>
3896 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
3897 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
3898 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
3899 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3900 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
3901 line. Add comments before all entries.
3902 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
3904 (sh_elf64_reloc): Correct head comment.
3905 (sh_elf64_relocate_section): Correct spacing.
3906 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
3907 instead call reloc_dangerous callback.
3908 <case R_SH_SHMEDIA_CODE>: New case.
3909 (sh_elf64_gc_mark_hook): Correct spacing.
3910 (sh_elf64_check_relocs): Ditto.
3911 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
3913 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
3915 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
3916 clarify describing comment. Add comments before all entries.
3917 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
3918 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
3919 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3920 Sort .cranges section in final link. Prepare to set bit 0 on
3922 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
3923 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
3924 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
3926 (sh64_backend_section_from_shdr): New, to recognize
3927 SHT_SH5_CR_SORTED on incoming .cranges section.
3928 (elf_backend_section_from_shdr): Define.
3929 (sh64_elf_final_write_processing): Sort outgoing .cranges
3930 section. (New, temporarily disabled:) Set bit 0 on entry address
3931 according to ISA type.
3932 (sh64_find_section_for_address): New.
3933 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
3934 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
3935 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
3936 bfd_malloc, not xmalloc.
3937 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
3939 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
3940 temporarily disabled) setting bit 0 on entry address.
3941 (elf_backend_final_write_processing): Define.
3942 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3943 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
3944 be a proper relocation for PTA and PTB rather than a marker.
3945 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
3946 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
3947 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
3948 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
3949 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
3951 * elf64-sh64.c: Ditto.
3952 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
3953 * elf32-sh64.c: Include opcodes/sh64-opc.h
3954 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
3955 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
3956 parameters. No unused parameters. Caller changed.
3957 <case R_SH_PT_16>: New case.
3958 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
3959 * Makefile.in: Regenerate.
3960 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3961 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
3963 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
3964 (sh64_elf_merge_private_data): Ditto.
3965 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
3966 to access stored section flags.
3967 (sh64_elf_final_write_processing): Return immediately unless
3968 called by linker. Use sh64_elf_section_data (cranges) to get size
3969 of linker-generated cranges entries.
3970 (sh64_elf_copy_private_data): Add missing "return true".
3971 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
3972 (sh_elf64_merge_private_data): Ditto.
3973 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3974 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
3975 elf64-sh64.c:sh64_elf_fake_sections.
3976 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
3977 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3978 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
3979 (sh64_elf_final_write_processing): New.
3980 (elf_backend_final_write_processing): Define.
3981 (sh64_elf_fake_sections): Get header flags from tdata field.
3982 (sh64_elf_copy_private_data): Do not call
3983 sh64_elf_copy_private_data_internal, just copy e_flags field.
3984 (sh64_elf_merge_private_data): Do not call
3985 sh64_elf_copy_private_data_internal.
3986 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3987 Remove EF_SH64_ABI64, let ELF size make difference.
3988 Remove SH64-specific BFD section flag.
3989 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
3990 containing SHmedia through elf_section_data (asect)->tdata
3991 non-zero, not using a BFD section flag.
3992 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
3993 (sh64_elf_merge_private_data): Similar.
3994 (elf_backend_section_flags): Don't define.
3995 (sh64_elf_backend_section_flags): Delete.
3996 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
3998 (sh_elf64_merge_private_data): Similar.
3999 * section.c (Section flags definitions): Don't define
4001 (bfd-in2.h): Regenerate.
4002 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
4003 Make DataLabel references work with partial linking.
4004 * elf32-sh64.c: Fix formatting.
4005 (sh64_elf_link_output_symbol_hook): New.
4006 (elf_backend_link_output_symbol_hook): Define to
4007 sh64_elf_link_output_symbol_hook.
4008 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
4009 undefined if partial linking. Adjust sanity check.
4010 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
4011 (elf_backend_link_output_symbol_hook): Define to
4012 sh64_elf64_link_output_symbol_hook.
4013 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
4014 undefined if partial linking. Adjust sanity check.
4015 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4016 Implement semantics for inter-file DataLabel references.
4017 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
4018 (sh64_elf64_add_symbol_hook): New.
4019 (sh_elf64_relocate_section): If passing an indirect symbol with
4020 st_type STT_DATALABEL on the way to a symbol with st_other
4021 STO_SH5_ISA32, do not bitor 1 to the relocation.
4022 (elf_backend_add_symbol_hook): Define to
4023 sh64_elf64_add_symbol_hook.
4024 * elf64-sh32.c: Tweak comments.
4025 (DATALABEL_SUFFIX): Define.
4026 (sh64_elf_add_symbol_hook): New.
4027 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
4028 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
4029 symbol with st_type STT_DATALABEL on the way to a symbol with
4030 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
4031 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4032 Pass through STT_DATALABEL.
4033 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
4034 (elf_backend_get_symbol_type): Define.
4035 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
4036 (elf_backend_get_symbol_type): Define.
4037 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4038 * elf32-sh64.c: Tweak comments.
4039 (sh64_elf_copy_private_data_internal): Add prototype.
4040 (bfd_elf32_bfd_set_private_flags): Define.
4041 (sh64_elf_copy_private_data_internal): Compare machine name, not
4042 textual BFD target name, to check whether to copy section flag
4044 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
4045 Tweak section-contents-type-mismatch message.
4046 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
4047 Validize reloc-types.
4048 * elf64-sh64.c: New file.
4049 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
4050 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
4051 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
4052 Regenerate dependencies.
4053 * Makefile.in: Regenerate.
4054 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
4055 bfd_elf64_sh64l_vec.
4056 * configure.in: Handle bfd_elf64_sh64_vec and
4057 bfd_elf64_sh64l_vec.
4058 * configure: Regenerate.
4059 * po/POTFILES.in: Regenerate.
4060 * po/bfd.pot: Regenerate.
4061 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4062 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
4063 anything else but EF_SH64 and EF_SH64_ABI64.
4064 (sh64_elf_merge_private_data): Emit error for anything else but
4065 EF_SH64 and EF_SH64_ABI64.
4066 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
4068 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
4069 bfd_elf32_sh64l_vec as a temporary measure.
4070 * configure: Regenerate.
4071 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4072 * cpu-sh.c (arch_info_struct): Include sh5 item
4074 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
4075 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
4076 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
4077 * elf32-sh64.c: Tweak comments.
4078 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
4079 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
4080 (sh64_elf_copy_private_data_internal): Wrap long line.
4081 (sh64_elf_merge_private_data): Rewrite to allow objects from
4082 SH64 subsets to be linked together.
4083 (INCLUDE_SHMEDIA): Define.
4084 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
4085 Parenthesize plus-expression inside or-expression.
4086 <global symbol>: Ditto.
4087 (sh_elf_set_mach_from_flags): Remove code refusing
4088 deleted EF_SH64_32BIT_ABI flag.
4089 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
4090 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
4091 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
4092 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
4093 (sh_elf_relocate_section) <local symbol>: Or 1 in
4094 calculation of relocation if sym->st_other & STO_SH5_ISA32.
4095 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
4096 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
4098 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4099 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
4100 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
4101 Regenerate dependencies.
4102 * Makefile.in: Regenerate.
4103 * archures.c: Add bfd_mach_sh5.
4104 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
4105 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
4106 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
4107 * configure: Regenerate.
4108 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
4109 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
4110 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4111 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
4112 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
4113 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
4114 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
4115 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
4116 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
4117 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
4119 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
4121 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
4122 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
4123 shmedia_prepare_reloc, goto final_link_relocate if it returns
4124 non-zero, else fail as before.
4125 (sh_elf_set_mach_from_flags): Provide function only if not defined
4126 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
4127 (sh_elf_set_private_flags): Provide function only if not defined
4129 (sh_elf_copy_private_data): Similar.
4130 (sh_elf_merge_private_data): Similar.
4131 * section.c (SEC_SH_ISA_SHMEDIA): New.
4132 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
4133 * elf32-sh64.c: New file.
4134 * libbfd.h: Regenerate.
4135 * bfd-in2.h: Regenerate.
4136 * po/POTFILES.in: Regenerate.
4137 * po/bfd.pot: Regenerate.
4138 * bfd-in2.h: Regenerate.
4139 * libbfd.h: Regenerate.
4141 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
4143 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
4144 been included, not drag it in.
4145 * bfd-in2.h: Regenerate.
4147 2002-02-06 H.J. Lu (hjl@gnu.org)
4149 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
4150 the mach and ISA fields if necessary.
4152 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4154 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
4155 ARM architecture when an F_ARM_5 flag is detected, since we cannot
4156 be sure exactly which architecture this represents.
4158 2002-02-05 Nick Clifton <nickc@redhat.com>
4160 * po/tr.po: Updated translation.
4162 2002-02-05 Alan Modra <amodra@bigpond.net.au>
4164 From Jimi X <jimix@watson.ibm.com>
4165 * archures (bfd_mach_ppc64): Define.
4166 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
4167 (bfd_powerpc_arch): Define.
4168 * bfd-in2.h: Regenerate.
4169 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
4170 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
4171 (bfd_powerpc_archs): Add default powerpc64 arch.
4173 2002-02-05 Alan Modra <amodra@bigpond.net.au>
4175 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
4176 against section syms in readonly sections. Don't do the global
4177 sym check if we find one.
4178 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
4179 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
4180 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4181 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
4182 (elf_s390_grok_prstatus): Add missing prototype.
4184 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4186 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
4187 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
4188 Call bfd_get_section_by_name only once. Initialize
4189 bpodata->n_bpo_relocs_this_section.
4190 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
4192 (bpo_reloc_request_sort_fn): Don't use difference of values as
4195 2002-02-02 David O'Brien <obrien@FreeBSD>
4197 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
4198 version 4.5 and later the same as 5-CURRENT.
4199 * configure: Re-generate.
4201 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4203 * config.bfd (hppa*-*-netbsd*): New target.
4205 2002-01-31 Philipp Thomas <pthomas@suse.de>
4207 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
4208 to front of message. Unify messages with elf32-arm.h. Use
4209 commas where neccessary.
4210 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
4211 ERROR in messages. Unify messages with coff-arm.c. Correct
4212 VFP/FPA error message.
4213 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
4214 APCS-32 for translation.
4216 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4218 Perform on-demand global register allocation from
4219 R_MMIX_BASE_PLUS_OFFSET relocs.
4220 * elf64-mmix.c (struct bpo_reloc_section_info, struct
4221 bpo_reloc_request, struct bpo_greg_section_info): New.
4222 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
4223 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
4224 _bfd_mmix_check_all_relocs,
4225 _bfd_mmix_prepare_linker_allocated_gregs,
4226 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
4227 (elf_mmix_howto_table): Correct src_mask for most relocs.
4228 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
4230 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
4231 case. Fix typo in comment. New label do_mmix_reloc.
4232 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
4233 store first object file with a base-plus-offset reloc. Call
4234 mmix_elf_check_common_relocs for the part common with mmo.
4235 (mmix_elf_final_link): Write out linker-allocated register
4237 (elf_backend_gc_sweep_hook): Define.
4238 (bfd_elf64_bfd_relax_section): Define.
4240 * mmo.c: Don't include <ctype.h>
4241 (mmo_init): Correct init-once logic.
4243 2002-02-01 Tom Rix <trix@redhat.com>
4245 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
4247 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4249 * Makefile.am: Run "make dep-am"
4250 * Makefile.in: Regenerate.
4252 2002-01-31 David O'Brien <obrien@FreeBSD>
4254 * configure.in: Recognize the differences in core files from FreeBSD
4255 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
4257 * configure: Regenerate.
4259 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4261 * coff-or32.c: New file.
4262 * cpu-or32.c: New file.
4263 * elf32-or32.c: New file.
4264 * archures.c: Add support for or32.
4265 * targets.c: Add support for or32.
4266 * bfd-in2.h: Regenerate.
4267 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
4268 coff_write_object_contents): Add support for or32.
4269 * config.bfd: Add target.
4270 * configure.in: Add support for or32.
4271 * configure: Regenerate.
4272 * Makefile.am: Add support for or32.
4273 * Makefile.in: Regenerate.
4274 * po/SRC-POTFILES.in: Add or32 files.
4275 * po/bfd.pot: Regenerate.
4277 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
4278 Don Lindsay <lindsayd@cisco.com>
4280 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
4281 false' with a return of a bfd_reloc_ error code.
4283 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
4285 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
4286 unexport unreferenced symbols when --export-dynamic. Call
4287 _bfd_elf_strtab_delref when unexporting.
4289 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
4291 * bfd-in.h: Include <stdbool.h> if it is available.
4292 * bfd-in2.h: Regenerated.
4294 2002-01-31 Alan Modra <amodra@bigpond.net.au>
4296 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
4299 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
4301 * archures.c: Tidy up formatting of embedded comments.
4302 * bfd.c: Tidy up formatting of embedded comments.
4303 * bfd-in.h: Fix formatting of comments.
4304 * reloc.c: Tidy up formatting of ordinary & embedded comments.
4305 * section.c: Tidy up formatting of embedded comments.
4306 * syms.c: Tidy up formatting of embedded comments.
4307 * targets.c: Tidy up formatting of embedded comments.
4309 * bfd-in2.h: Regenerate.
4311 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
4313 * vms-tir.c (cmd_name): New function.
4314 (tir_cmd_name): New function.
4315 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
4316 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
4319 * peXXigen.c (pe_print_idata): Rearrange message to aid in
4321 (pe_print_pdata): Rearrange message to aid in translation.
4323 * libbfd.c (warn_deprecated): Rearrange error message to aid in
4326 * ihex.c (ihex_write_object_contents): Fix spelling typo.
4328 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
4330 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
4331 message to aid in translation.
4333 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
4334 to aid in translation.
4336 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
4338 2002-01-30 Philipp Thomas <pthomas@suse.de>
4340 * coff-arm.c, elf32-elf.h: Unify messages.
4342 2002-01-30 Nick Clifton <nickc@redhat.com>
4344 * po/sv.po: Updated translation.
4346 2002-01-30 Philipp Thomas <pthomas@suse.de>
4348 * dwarf2.c (read_abbrev): Use full section name in error message.
4349 (decode_line_info): Likewise.
4351 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
4354 2002-01-30 Alan Modra <amodra@bigpond.net.au>
4356 * elf64-ppc.c (func_desc_adjust): Only provide missing function
4357 descriptor symbols for undefined function code syms. Clear
4358 ELF_LINK_NON_ELF so that they can stay weak.
4360 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4361 Mitch Lichtenberg <mpl@broadcom.com>
4363 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
4364 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
4365 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
4367 * bfd-in2.h: Regenerate.
4369 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4371 * elf32-mips.c: Add additional comments about HI16 relocation
4373 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
4374 pc-relative relocations. (Reverts change made on 2001-10-31.)
4375 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
4376 for pc-relative relocations.
4377 (mips_elf_calculate_relocation): Add a comment about a kludge
4378 in the R_MIPS_GNU_REL_HI16 handling.
4379 (_bfd_mips_elf_relocate_section): Implement that kludge;
4380 adjust pc-relative HI16 relocation for difference in HI16 and
4381 LO16 addresses, since it can't easily be done in
4382 mips_elf_calculate_relocation.
4384 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
4386 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
4387 relocations with PC32 relocations for undefined or weak symbols.
4388 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
4389 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
4391 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
4393 * elfcore.h (elf_core_file_p): Improve comment for last change.
4395 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4397 * configure: Regenerated.
4399 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
4401 * elfcore.h (elf_core_file_p): Set the machine architecture
4402 before processing the program headers.
4404 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4406 * configure.in <64-bit configuration>: If using gcc, check and
4407 emit error for egcs-1.1.2.
4408 * configure: Regenerate.
4410 2002-01-26 Egor Duda <deo@logos-m.ru>
4412 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
4413 as possible to avoid stack corruption.
4415 2002-01-26 Richard Henderson <rth@redhat.com>
4417 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
4418 for non-allocated sections.
4420 2002-01-25 Mark Kettenis <kettenis@gnu.org>
4422 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
4423 prstat.pr_reg even if it is a struct.
4425 2002-01-25 Steve Ellcey <sje@cup.hp.com>
4427 * elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
4429 2002-01-25 Philipp Thomas <pthomas@suse.de>
4431 * coffgen.c (coff_print_symbol): Don't mark info message
4434 2002-01-25 Nick Clifton <nickc@redhat.com>
4436 * po/fr.po: Updated translation.
4437 * po/es.po: Updated translation.
4439 2002-01-25 Philipp Thomas <pthomas@suse.de>
4441 * coff-alpha.c (alpha_relocate_section): Unify warning message
4442 for GP relative relocations without GP defined.
4443 * coff-mips.c (mips_relocate_section): Likewise.
4445 2002-01-25 Alan Modra <amodra@bigpond.net.au>
4447 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
4448 unsigned overflow when new_offset < old_offset.
4450 2002-01-24 Philipp Thomas <pthomas@suse.de>
4452 * bfd.c (_bfd_abort): Fix typo.
4454 2002-01-23 Richard Henderson <rth@redhat.com>
4456 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
4457 plt entries for undefweak symbols.
4459 2002-01-23 Steve Ellcey <sje@cup.hp.com>
4461 * targets.c (bfd_elf32_ia64_hpux_big_vec): Add to DEFAULT_VECTOR.
4462 (bfd_elf64_ia64_hpux_big_vec): Ditto.
4463 (bfd_elf32_h8300_vec): Ditto.
4465 2002-01-23 Alan Modra <amodra@bigpond.net.au>
4467 * elf64-ppc.c: Remove stale part of ABI comment.
4468 (NO_OPD_RELOCS): Define.
4469 (ppc64_elf_check_relocs): Use it.
4470 (ppc64_elf_relocate_section): Here too.
4471 (build_one_stub): Don't point function syms at the stub. Instead,
4473 (ppc64_elf_relocate_section): Check whether REL24 relocs should
4474 really go to the stub. Make all dynamic relocs in opd against
4476 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
4479 2002-01-22 Richard Henderson <rth@redhat.com>
4481 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
4483 2002-01-22 Alan Modra <amodra@bigpond.net.au>
4485 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
4486 TOC_BASE_OFF adjustment.
4488 * Makefile.am: Run "make dep-am".
4489 * Makefile.in: Regenerate.
4490 * po/SRC-POTFILES.in: Regenerate.
4492 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
4494 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
4497 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
4499 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
4500 Check for and emit error if sgot is NULL at this point.
4502 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4504 * config.bfd (ia64*-*-netbsd*): New target.
4506 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
4508 * som.c (som_write_space_strings): Comment typo fix.
4510 2002-01-21 Alan Modra <amodra@bigpond.net.au>
4512 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
4513 is_func_descriptor fields.
4514 (link_hash_newfunc): Init them.
4515 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
4516 dot are candidates for plt entries. When processing .opd relocs,
4517 set function descriptor strings to point inside function code
4518 string, and set new ppc_link_hash_entry fields.
4519 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
4520 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
4521 function descriptors. It's now done in..
4522 (func_desc_adjust): New.
4523 (ppc64_elf_func_desc_adjust): New.
4524 (define elf_backend_always_size_sections): Define.
4525 (ppc64_elf_hide_symbol): New.
4526 (define elf_backend_hide_symbol): Define.
4527 (allocate_dynrelocs): Remove code looking up function descriptors
4528 as that has been done earlier.
4529 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
4531 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
4532 up function descriptor.
4533 (build_one_stub): Look up the function code sym. Check for
4534 invalid plt offsets.
4535 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
4536 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
4538 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
4540 (_bfd_elf_link_hash_hide_symbol): Likewise.
4541 * elflink.h (elf_link_add_object_symbols): Adjust call to
4542 elf_backend_hide_symbol.
4543 (elf_fix_symbol_flags): Likewise.
4544 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
4546 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
4547 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
4548 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
4549 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
4550 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
4552 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
4553 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
4554 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
4556 2002-01-18 Alan Modra <amodra@bigpond.net.au>
4558 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
4559 dynamic function descriptor symbol, not the associated function
4562 2002-01-17 Eric Christopher <echristo@redhat.com>
4564 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
4566 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
4568 * po/bfd.pot: Regenerate.
4569 * po/fr.po: Regenerate.
4571 2002-01-17 Alan Modra <amodra@bigpond.net.au>
4573 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
4574 Remove "Elf_Internal_Shdr *" param.
4575 (_bfd_mips_elf_section_from_bfd_section): Ditto.
4576 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
4577 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
4578 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
4579 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
4580 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
4581 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
4582 function to override special sections. Remove hdr arg from
4583 backend call, and don't loop.
4585 2002-01-16 Eric Christopher <echristo@redhat.com>
4587 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
4588 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
4589 relocations requiring gp0 and gp.
4591 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
4593 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
4595 (elf32_arm_print_private_bfd_data): Likewise.
4597 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4599 * po/tr.po: Import new version.
4601 2002-01-16 Alan Modra <amodra@bigpond.net.au>
4603 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
4604 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
4605 (ORI_R0_R0_0): Correct.
4607 2002-01-16 Alan Modra <amodra@bigpond.net.au>
4609 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
4610 when plt_not_loaded.
4611 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
4612 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
4613 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
4614 (ppc64_elf_glink_code): Delete.
4615 (PPC64_ELF_GLINK_SIZE): Delete.
4616 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
4617 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
4618 ORI_R0_R0_0): Define.
4619 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
4620 (struct ppc_link_hash_table): Add sstub and plt_overflow.
4621 (ppc64_elf_link_hash_table_create): Init them.
4622 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
4623 Don't copy to shared lib.
4624 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
4625 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
4626 (allocate_dynrelocs <plt>): Don't change function sym here. Make
4627 room for .stub and .glink code.
4628 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
4630 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
4631 bfd_elf64_bfd_final_link.
4632 (bfd_elf64_bfd_final_link): Don't define.
4633 (ppc64_elf_size_stubs): New.
4634 (build_plt_stub): New.
4635 (build_one_stub): New.
4636 (ppc64_elf_build_stubs): New.
4637 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
4638 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
4639 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
4640 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
4641 case output sections not separate. Adjust DT_RELASZ to not
4642 include plt relocs. Set reserved got entry. Set got and plt
4644 (elf_backend_got_header_size): Set to 8.
4645 * elf64-ppc.h: New file.
4647 2002-01-16 Alan Modra <amodra@bigpond.net.au>
4649 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
4650 sections, use bfd_section_list_remove.
4651 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
4652 * elflink.h (elf_link_add_object_symbols): When removing all
4653 sections, use bfd_section_list_clear.
4655 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4657 * po/sv.po: New file: Swedish translation.
4658 * configure.in (ALL_LINGUAS): Add sv.
4659 * configure: Regenerate.
4661 2002-01-15 Jakub Jelinek <jakub@redhat.com>
4663 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
4664 * elf.c (merge_sections_remove_hook): New function.
4665 (_bfd_elf_merge_sections): Pass it as 3rd argument to
4666 _bfd_merge_sections.
4667 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
4668 * libbfd.h: Rebuilt.
4669 * merge.c (_bfd_merge_sections): Add remove_hook argument.
4670 Call remove_hook if a SEC_EXCLUDE section is encountered.
4672 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
4674 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
4675 (xstormy16_reloc_map): Initialise new field with correct howto
4677 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
4680 2002-01-10 Michael Snyder <msnyder@redhat.com>
4682 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
4683 (elfcore_write_pstatus): Use long instead of pid_t;
4684 * elf-bfd.h: Change prototypes to use long instead of pid_t;
4686 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
4688 * elf.c: Update copyright years.
4689 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
4690 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
4692 2002-01-08 Michael Snyder <msnyder@redhat.com>
4694 Add capability to write corefile note sections, for gdb.
4695 * elf.c (elfcore_write_note): New function.
4696 (elfcore_write_prpsinfo): New function.
4697 (elfcore_write_prstatus): New function.
4698 (elfcore_write_pstatus): New function.
4699 (elfcore_write_prfpreg): New function.
4700 (elfcore_write_prxfpreg): New function.
4701 * elf-bfd.h: Add prototypes for above functions.
4703 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
4705 * elf.c (elf_fake_sections): Propagate errors from
4706 elf_backend_fake_section.
4708 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
4710 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
4711 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
4712 (elf32-sh-nbsd.lo): New rule.
4713 * Makefile.in: Regenerate.
4714 * config.bfd (sh*le-*-netbsdelf*): New target.
4715 (sh*-*-netbsdelf*): New target.
4716 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
4717 (bfd_elf32_shnbsd_vec): New vector.
4718 (bfd_elf32_shlnbsd_vec): New vector.
4719 * configure: Regenerate.
4720 * elf32-sh-nbsd.c: New file.
4721 * targets.c: Update copyright years.
4722 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
4723 bfd_elf32_shnbsd_vec.
4725 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4727 * coff-rs6000.c (READ20): Use bfd_scan_vma.
4729 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
4731 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
4732 of a symbol in a section that will be deleted.
4734 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
4736 * po/es.po: New file: Spanish translation.
4737 * configure.in (ALL_LINGUAS): Add es.
4738 * configure: Regenerate.
4740 2002-01-06 Steve Ellcey <sje@cup.hp.com>
4742 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
4743 argument so we can handle HP-UX specially.
4744 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
4745 (elfNN_hpux_backend_section_from_bfd_section): New for support
4746 of SHN_IA_64_ANSI_COMMON.
4747 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
4748 (is_unwind_section_name): Add special HP-UX support.
4749 (elfNN_ia64_section_from_shdr): Add support for more sections.
4750 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
4751 add support for more sections.
4752 (elfNN_ia64_additional_program_headers): Modify
4753 is_unwind_section_name call.
4754 (elfNN_ia64_modify_segment_map): Remove assumption that there is
4755 only one unwind section in segment.
4757 2002-01-06 Alan Modra <amodra@bigpond.net.au>
4759 * syms.c (_bfd_generic_make_empty_symbol): New function.
4760 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
4761 _bfd_generic_make_empty_symbol.
4762 * libbfd.h: Regenerate.
4763 * bfd-in2.h: Regenerate.
4764 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
4765 (hppabsd_core_get_symtab_upper_bound): Don't define.
4766 (hppabsd_core_get_symtab): Likewise.
4767 (hppabsd_core_print_symbol): Likewise.
4768 (hppabsd_core_get_symbol_info): Likewise.
4769 (hppabsd_core_bfd_is_local_label_name): Likewise.
4770 (hppabsd_core_get_lineno): Likewise.
4771 (hppabsd_core_find_nearest_line): Likewise.
4772 (hppabsd_core_bfd_make_debug_symbol): Likewise.
4773 (hppabsd_core_read_minisymbols): Likewise.
4774 (hppabsd_core_minisymbol_to_symbol): Likewise.
4775 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
4777 * hpux-core.c: Similarly.
4778 * irix-core.c: Similarly.
4779 * osf-core.c: Similarly.
4780 * sco5-core.c: Similarly.
4781 * binary.c (binary_make_empty_symbol): Remove function, define as
4782 _bfd_generic_make_empty_symbol.
4783 * ihex.c (ihex_make_empty_symbol): Likewise.
4784 * mmo.c (mmo_make_empty_symbol): Likewise.
4785 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
4786 * srec.c (srec_make_empty_symbol): Likewise.
4787 * versados.c (versados_make_empty_symbol): Likewise.
4788 * vms.c (_bfd_vms_make_empty_symbol): Remove.
4789 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
4790 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
4791 rather than _bfd_vms_make_empty_symbol.
4792 * vms-misc.c (new_symbol): Likewise.
4794 2002-01-05 Alan Modra <amodra@bigpond.net.au>
4796 * section.c (bfd_section_init): Remove unnecessary initialisations.
4797 (bfd_section_list_clear): New function.
4798 (bfd_section_list_remove, bfd_section_list_insert): New macros.
4799 (_bfd_strip_section_from_output): Use them.
4800 * coffcode.h (coff_set_alignment_hook): Likewise.
4801 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
4802 * elf64-mips.c (mips_elf64_final_link): Likewise.
4803 * elf64-mmix.c (mmix_elf_final_link): Likewise.
4804 * sunos.c (sunos_add_dynamic_symbols): Likewise.
4805 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
4806 * bfd-in2.h: Regenerate.
4808 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
4809 rather than doing our own section handling. Clean up after errors
4810 with bfd_release and bfd_section_list_clear. Handle unexpected
4812 * aoutf1.h (sunos4_core_file_p): Likewise.
4813 * aix386-core.c (aix386_core_file_p): Likewise.
4814 * cisco-core.c (cisco_core_file_validate): Likewise.
4815 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
4816 * trad-core.c (trad_unix_core_file_p): Likewise.
4818 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
4819 with bfd_release and bfd_section_list_clear.
4820 * hpux-core.c (hpux_core_core_file_p): Likewise.
4821 * irix-core.c (irix_core_core_file_p): Likewise.
4822 * lynx-core.c (lynx_core_file_p): Likewise.
4823 * osf-core.c (osf_core_core_file_p): Likewise.
4824 * rs6000-core.c (rs6000coff_core_p): Likewise.
4825 * sco5-core.c (sco5_core_file_p): Likewise.
4827 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
4828 sign extension adjustments without conditionals.
4830 2002-01-04 Jakub Jelinek <jakub@redhat.com>
4832 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
4833 CIE at .eh_frame start is removed due to no FDEs referencing it.
4835 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4837 * config.bfd (x86_64-*-netbsd*): New target.
4838 * configure.in (x86_64-*-netbsd*): Set COREFILE
4840 * configure: Regenerated.
4842 2002-01-03 Tom Rix <trix@redhat.com>
4844 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
4845 for recent bfd_make_section_anyway change.
4847 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
4849 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4850 R_ARM_THM_PC11 reloc.
4852 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4854 * configure.in (LINGUAS): Add ja.
4855 * configure: Regenerate.
4856 * po/ja.po: Import from translation project's web site.
4858 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
4860 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
4861 messages to ease translation into other languages.
4863 For older changes see ChangeLog-0001
4869 version-control: never