1 2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
3 * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
4 Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
5 replace uses of *_alias with *_noncanonical.
6 * aclocal.m4: Rebuild with aclocal 1.4p6.
7 * Makefile.in: Rebuild with automake 1.4p6.
8 * doc/Makefile.in: Rebuild with automake 1.4p6.
9 * configure.in: Autoupdate with autoupdate 2.59.
10 * config.in: Regenerate with autoheader 2.59.
11 * configure: Regnerate with autoconf 2.59.
13 2004-08-28 Alan Modra <amodra@bigpond.net.au>
15 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
16 symbol pointer arrays before modifying.
18 2004-08-28 Alan Modra <amodra@bigpond.net.au>
20 * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
21 * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
22 * elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
23 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
24 * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
25 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
26 Use both symbol tables on non-relocatable objects. Use a common
27 error exit. Fix "mid" warning.
28 * libbfd.h: Regenerate.
29 * bfd-in2.h: Regenerate.
31 2004-08-28 Alan Modra <amodra@bigpond.net.au>
33 * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
35 (struct sfpr_def_parms): Save some space.
36 (sfpr_define): Here too.
38 * elf64-ppc.c (compare_symbols): Put section syms first.
39 (sym_exists_at): New function.
40 (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
41 points only for relocatable files. Use .opd section contents
42 otherwise. Generally clean up the code.
44 2004-08-27 Alan Modra <amodra@bigpond.net.au>
46 * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
47 LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
48 (struct sfpr_def_parms): New.
49 (sfpr_define): New function.
50 (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
51 (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
52 (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
53 (savefpr1_tail, restfpr1_tail): New functions.
54 (savevr, savevr_tail, restvr, restvr_tail): New functions.
55 (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
56 (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
57 code. Define all ABI mandated _save and _rest functions.
59 2004-08-26 Paul Brook <paul@codesourcery.com>
61 * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
63 2004-08-26 Alan Modra <amodra@bigpond.net.au>
65 * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
68 2004-08-26 Alan Modra <amodra@bigpond.net.au>
70 * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
71 that pcrel correction is applied for R_386_PC32.
73 2004-08-25 Alan Modra <amodra@bigpond.net.au>
75 * elf32-i386.c (elf_i386_relocate_section): Zero section contents
76 for R_386_32 and R_386_PC32 relocs against symbols defined in
79 2004-08-25 Dmitry Diky <diwil@spec.ru>
81 * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
83 * bfd-in2.h: Regenerate.
84 * libbfd.h: Regenerate.
85 * elf32-msp430.c: Clean-up code.
86 (elf_msp430_howto_table): Add new relocation entries.
87 (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers.
88 (msp430_elf_relax_section): New function.
89 (msp430_elf_relax_delete_bytes): New function.
90 (msp430_elf_symbol_address_p): New function.
92 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
94 * elf32-m32r.c (m32r_elf_relocate_section): Handle
95 R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
97 2004-08-20 Daniel Jacobowitz <dan@debian.org>
99 * elflink.c (_bfd_elf_section_already_linked): Handle
100 SEC_LINK_DUPLICATES_SAME_CONTENTS.
102 2004-08-19 Mark Mitchell <mark@codesourcery.com>
104 * config.bfd (arm*-*-symbianelf*): New target.
105 (arm*-*-eabi*): Likewise.
107 2004-08-19 Alan Modra <amodra@bigpond.net.au>
109 * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
110 "struct ppc_link_hash_entry *".
111 (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf
112 to satisfy RELOC_FOR_GLOBAL_SYMBOL.
114 2004-08-19 Jakub Jelinek <jakub@redhat.com>
116 * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
117 entries (where fd_aux overlaps next entry's fd_func).
118 Add non_overlapping argument, use it.
119 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
120 ppc64_elf_size_stubs, ppc64_elf_relocate_section,
121 ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
122 as indexes into opd_sym_map/opd_adjust array.
123 * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.
125 2004-08-18 Alan Modra <amodra@bigpond.net.au>
127 * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
128 if we can look up their function descriptor in a regular file.
130 2004-08-18 Nick Clifton <nickc@redhat.com>
133 * cofflink.c (coff_link_add_symbols): Check that the comdat
134 pointer in the coff_section_data structure has been initialised
137 2004-08-18 Alan Modra <amodra@bigpond.net.au>
140 * elflink.c (bfd_elf_record_link_assignment): Add comment about
141 changing bfd_link_hash_undefined to bfd_link_hash_new.
143 2004-08-17 Jakub Jelinek <jakub@redhat.com>
145 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
147 * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
148 (synthetic_opd, synthetic_relocatable): New variables.
149 (compare_symbols, compare_relocs): New helper routines.
150 (ppc64_elf_get_synthetic_symtab): New function.
151 * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
153 * bfd-in2.h: Regenerated.
154 * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
155 to relsyms. Return 0 if abfd is relocatable.
157 2004-08-17 Alan Modra <amodra@bigpond.net.au>
159 * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
161 2004-08-17 Nick Clifton <nickc@redhat.com>
163 * (is_arm_mapping_symbol_name): New function - return true
164 when a symbol name matches the requirements for an ARM mapping
166 (arm_elf_find_function): New function based on
167 elf_find_function in elf.c but skipping ARM mapping symbols
168 and including thumb function symbols.
169 (elf32_arm_find_nearest_line): Use arm_elf_find_function.
170 (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
172 2004-08-17 Alan Modra <amodra@bigpond.net.au>
174 * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
175 (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
176 (ppc64_elf_brtaken_reloc): Here too.
178 2004-08-17 Alan Modra <amodra@bigpond.net.au>
180 * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
182 (ppc64_elf_check_directives): Check that we have the right hash
183 table before proceeding.
185 2004-08-17 Alan Modra <amodra@bigpond.net.au>
187 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
188 (adjust_opd_syms): Attach opd syms for deleted entries to one of
189 the sections that will be discarded.
191 2004-08-16 Alan Modra <amodra@bigpond.net.au>
193 * elflink.c (elf_section_complain_discarded): Ignore .fixup.
195 2004-08-16 Alan Modra <amodra@bigpond.net.au>
197 * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
198 free space available.
200 2004-08-16 Alan Modra <amodra@bigpond.net.au>
202 * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
203 occurrences with bfd_byte * thoughout file.
205 * coff-rs6000.c (do_shared_object_padding): Warning fix.
206 (xcoff_write_armap_big): Likewise.
207 (xcoff_write_archive_contents_old): Likewise.
208 (xcoff_write_archive_contents_big): Likewise.
210 * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
212 2004-08-13 Nick Clifton <nickc@redhat.com>
214 * elf32-arm.h: Convert to ISO C90.
216 2004-08-13 Alan Modra <amodra@bigpond.net.au>
219 * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
222 2004-08-13 Alan Modra <amodra@bigpond.net.au>
224 * bfd.c (_bfd_default_error_handler): Handle %A and %B.
225 (bfd_archive_filename, bfd_get_section_ident): Delete.
226 * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
227 bfd_archive_filename.
228 * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
229 to warn about symbols in discarded sections. Use _bfd_error_handler.
230 * aout-adobe.c (aout_adobe_callback): See below.
231 * aout-cris.c (swap_ext_reloc_in): ..
232 * coff-arm.c (find_thumb_glue, find_arm_glue,
233 coff_arm_relocate_section, bfd_arm_process_before_allocation,
234 coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
235 coff_arm_copy_private_bfd_data): ..
236 * coff-i860.c (i860_reloc_processing): ..
237 * coff-mcore.c (mcore_coff_unsupported_reloc,
238 coff_mcore_relocate_section): ..
239 * coff-ppc.c (coff_ppc_relocate_section): ..
240 * coff-rs6000.c (xcoff_create_csect_from_smclas
241 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
242 sh_swap_insns, sh_relocate_section): ..
243 * coff-tic54x.c (tic54x_reloc_processing): ..
244 * coff-tic80.c (coff_tic80_relocate_section): ..
245 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
246 * coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
247 coff_slurp_symbol_table, coff_classify_symbol,
248 coff_slurp_reloc_table): ..
249 * coffgen.c (_bfd_coff_read_string_table): ..
250 * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
251 _bfd_coff_generic_relocate_section): ..
252 * cpu-arm.c (bfd_arm_merge_machines): ..
253 * cpu-sh.c (sh_merge_bfd_arch): ..
254 * elf-hppa.h (elf_hppa_relocate_section): ..
255 * elf.c (bfd_elf_string_from_elf_section, setup_group,
256 _bfd_elf_setup_group_pointers, bfd_section_from_shdr,
257 assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
258 copy_private_bfd_data, _bfd_elf_validate_reloc): ..
259 * elf32-arm.h (find_thumb_glue, find_arm_glue,
260 bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
261 elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
262 elf32_arm_relocate_section, elf32_arm_set_private_flags,
263 elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
264 * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
265 cris_elf_merge_private_bfd_data
266 * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
267 * elf32-gen.c (elf32_generic_link_add_symbols): ..
268 * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
269 elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
270 elf32_hppa_relocate_section): ..
271 * elf32-i370.c (i370_elf_merge_private_bfd_data,
272 i370_elf_check_relocs, i370_elf_relocate_section): ..
273 * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
274 elf_i386_relocate_section): ..
275 * elf32-m32r.c (m32r_elf_relocate_section,
276 m32r_elf_merge_private_bfd_data): ..
277 * elf32-m68hc1x.c (m68hc12_add_stub,
278 _bfd_m68hc11_elf_merge_private_bfd_data): ..
279 * elf32-m68k.c (elf_m68k_relocate_section): ..
280 * elf32-mcore.c (mcore_elf_unsupported_reloc,
281 mcore_elf_relocate_section): ..
282 * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
283 ppc_elf_check_relocs, ppc_elf_relocate_section,
284 ppc_elf_begin_write_processing): ..
285 * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
286 elf_s390_relocate_section): ..
287 * elf32-sh-symbian.c (sh_symbian_import_as,
288 sh_symbian_process_embedded_commands,
289 sh_symbian_relocate_section): ..
290 * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
291 sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
292 sh_elf_merge_private_data): ..
293 * elf32-sparc.c (elf32_sparc_check_relocs,
294 elf32_sparc_relocate_section,
295 elf32_sparc_merge_private_bfd_data): ..
296 * elf32-v850.c (v850_elf_check_relocs,
297 v850_elf_merge_private_bfd_data): ..
298 * elf32-xtensa.c (elf_xtensa_check_relocs,
299 elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
300 * elf64-alpha.c (elf64_alpha_relax_with_lituse,
301 elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
302 elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
303 * elf64-gen.c (elf64_generic_link_add_symbols): ..
304 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
305 ppc64_elf_check_relocs, ppc64_elf_edit_opd,
306 ppc64_elf_relocate_section): ..
307 * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
308 elf_s390_relocate_section): ..
309 * elf64-sh64.c (sh_elf64_relocate_section): ..
310 * elf64-sparc.c (sparc64_elf_check_relocs,
311 sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
312 sparc64_elf_merge_private_bfd_data): ..
313 * elf64-x86-64.c (elf64_x86_64_check_relocs,
314 elf64_x86_64_relocate_section): ..
315 * elflink.c (_bfd_elf_add_default_symbol,
316 _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
317 _bfd_elf_link_output_relocs, elf_link_add_object_symbols,
318 bfd_elf_size_dynamic_sections, elf_link_output_extsym,
319 elf_get_linked_section_vma, elf_fixup_link_order,
320 bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
321 bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
322 * elfxx-ia64.c (elfNN_ia64_relax_section,
323 elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
324 * elfxx-mips.c (mips_elf_perform_relocation,
325 _bfd_mips_elf_check_relocs,
326 _bfd_mips_elf_merge_private_bfd_data): ..
327 * ieee.c (ieee_slurp_external_symbols): ..
328 * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
329 * libbfd.c (_bfd_generic_verify_endian_match): ..
330 * linker.c (_bfd_generic_link_add_one_symbol,
331 _bfd_generic_section_already_linked): ..
332 * pdp11.c (translate_to_native_sym_flags): ..
333 * pe-mips.c (coff_pe_mips_relocate_section): ..
334 * peicode.h (pe_ILF_build_a_bfd): ..
335 * srec.c (srec_bad_byte): ..
336 * stabs.c (_bfd_link_section_stabs): ..
337 * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
338 Replace all uses of bfd_archive_filename and bfd_get_section_ident
339 with corresponding %B and %A in _bfd_error_handler format string.
340 Replace occurrences of "fprintf (stderr," with _bfd_error_handler
341 calls to use %A and %B. Fix "against symbol .. from section" and
342 similar error messages. Combine multiple _bfd_error_handler calls
343 where they were separated due to bfd_archive_filename deficiencies.
344 * bfd-in2.h: Regenerate.
346 2004-08-12 H.J. Lu <hongjiu.lu@intel.com>
348 * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
351 2004-08-10 Alan Modra <amodra@bigpond.net.au>
353 * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined.
354 (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed.
355 Make emit_stub_syms, stub_error and has_14bit_branch bit-fields.
357 (link_hash_newfunc): Init was_undefined.
358 (add_symbol_adjust): Don't set undefined dot symbols to defweak;
359 Use undefweak instead.
360 (ppc64_elf_check_directives): Fix undefs chain.
361 (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed
363 (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change.
364 (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions.
365 * elf64-ppc.h (ppc64_elf_restore_symbols): Declare.
367 2004-08-09 Jakub Jelinek <jakub@redhat.com>
369 * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
370 error, test input_section flags rather than sec.
372 2004-08-09 Alan Modra <amodra@bigpond.net.au>
374 * elf-bfd.h (struct elf_backend_data): Add
375 elf_backend_archive_symbol_lookup.
376 (_bfd_elf_archive_symbol_lookup): Declare.
377 * elflink.c (_bfd_elf_archive_symbol_lookup): New function..
378 (elf_link_add_archive_symbols): ..extracted from here. Call the
380 * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default.
381 (elfNN_bed): Init new field.
382 * elf64-ppc.c (elf_backend_check_directives): Define.
383 (elf_backend_archive_symbol_lookup): Define.
384 (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add
385 a ppc_link_hash_entry pointer.
387 (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions.
388 (add_symbol_adjust, ppc64_elf_check_directives): New functions.
389 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust,
390 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup,
391 ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub,
392 ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section,
393 ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function
396 2004-08-09 Alan Modra <amodra@bigpond.net.au>
398 * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment.
399 (ppc64_elf_add_symbol_hook): Test for NULL section.
400 (get_sym_h): Formatting.
401 (ppc64_elf_size_stubs): Include reloc addend in value stored as
404 * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
405 long branch stubs with code handling plt and r2off branch stubs.
407 2004-08-09 Alan Modra <amodra@bigpond.net.au>
409 * elf-bfd.h (_bfd_elf_gc_mark): Declare.
410 * elflink.c (elf_link_input_bfd): Formatting.
411 (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
413 * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
414 (link_hash_newfunc): Don't set it.
415 (ppc64_elf_copy_indirect_symbol): Nor copy it.
416 (ppc64_elf_mark_entry_syms): Delete.
417 (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
418 sections. Use get_opd_info.
419 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
421 2004-08-09 Alan Modra <amodra@bigpond.net.au>
423 * elf64-ppc.c (adjust_opd_syms): Fix merge error.
425 * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak.
426 (func_desc_adjust): Don't set have_undefweak.
427 (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr.
428 (ppc64_elf_relocate_section): NOP out calls to undefweak functions.
430 * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a
431 "struct ppc_link_hash_entry *". Adjust all references.
432 (ppc64_elf_hide_symbol): Correct a comment.
434 * elf64-ppc.c (get_opd_info): New function.
435 (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero.
436 (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot
437 before calling get_fdh. Test fdh rather than h before dereferencing
438 fdh. Mark removed symbols in opd_adjust.
439 (ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
440 (ppc64_elf_relocate_section): Use get_opd_info, and handle removed
442 (ppc64_elf_output_symbol_hook): Likewise.
444 2004-08-06 Paul Brook <paul@codesourcery.com>
446 * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
447 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
448 BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
449 * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
450 and BFD_RELOC_ARM_SBREL32.
451 * bfd-in2.h, bbfd.h: Regenerate.
453 2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
455 * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
456 the dynamic link symbol actually in use.
458 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
460 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
462 2004-07-31 Joel Brobecker <brobecker@gnat.com>
463 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
465 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
466 SHN_MIPS_TEXT and SHN_MIPS_DATA.
468 2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
469 Nick Clifton <nickc@redhat.com>
472 * bfd.c (_bfd_default_error_handler): Make it global.
474 * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
476 * elf.c (assign_section_numbers): Cope gracefully with sections
477 which have SHF_LINK_ORDER set but no sh_link set up.
478 * elflink.c (elf_get_linked_section_vma): Likewise.
480 * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
483 * elfxx-target.h (elf_backend_link_order_error_handler): New.
484 Set it to _bfd_default_error_handler.
485 (elfNN_bed): Add elf_backend_link_order_error_handler.
487 * libbfd-in.h (_bfd_default_error_handler): New.
489 * libbfd.h: Regenerated.
491 2004-07-30 Jakub Jelinek <jakub@redhat.com>
493 * archures.c (bfd_mach_sparc_64bit_p): Define.
494 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
495 * bfd-in2.h: Rebuilt.
497 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
499 Introduce SH2a support.
500 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
501 * archures.c (bfd_mach_sh2a_nofpu): New.
502 * bfd-in2.h: Rebuilt.
503 * cpu-sh.c (SH2A_NOFPU_NEXT): New.
504 (arch_info_struct): Add sh2a_nofpu.
505 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
506 2003-12-29 DJ Delorie <dj@redhat.com>
507 * reloc.c: Add relocs for sh2a.
508 * bfd-in2.h: Regenerate.
509 * libbfd.hh: Regenerate.
510 2003-12-01 Michael Snyder <msnyder@redhat.com>
511 * archures.c (bfd_mach_sh2a): New.
512 * bfd-in2.h: Rebuilt.
513 * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
515 (arch_info_struct): Add sh2a.
516 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
518 2004-07-28 Nick Clifton <nickc@redhat.com>
519 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
522 * som.c (setup_sections): Improve estimation of space sizes in
525 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
526 * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
527 bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
529 * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
530 * configure: Regenerate.
531 * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
532 case that accepts OSABI=NetBSD and OSABI=SysV.
533 (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
534 the base of .got or .data (if .got does not exist).
535 (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
537 (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
538 (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
539 * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
540 (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
542 2004-07-27 H.J. Lu <hongjiu.lu@intel.com>
545 * elf-bfd.h (bfd_elf_section_data): Add sec_group.
546 (elf_sec_group): Defined.
547 (bfd_elf_match_symbols_in_sections): New prototype.
548 (_bfd_elf_setup_group_pointers): Likewise.
550 * elf.c (bfd_elf_discard_group): Abort.
551 (bfd_elf_set_group_contents): Also include relocation sections.
552 Remove zero-fill for ld -r.
553 (_bfd_elf_setup_group_pointers): New function.
554 (elf_sort_elf_symbol): Likewise.
555 (elf_sym_name_compare): Likewise.
556 (bfd_elf_match_symbols_in_sections): Likewise.
558 * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
560 * elflink.c (match_group_member): New.
561 (elf_link_input_bfd): Check group member for discarded section.
562 (try_match_symbols_in_sections): New function.
563 (already_linked): Likewise.
564 (_bfd_elf_section_already_linked): Support mixing comdat group
565 and linkonce section.
567 * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
568 * linker.c (bfd_section_already_linked_table_traverse): New.
570 * libbfd.h: Regenerated.
572 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
574 * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
575 BFD_RELOC_CRX_SWITCH32.
576 * bfd-in2.h: Regenerate.
577 * libbfd.h: Regenerate.
578 * elf32-crx.c: Support relocation/relaxation of
579 BFD_RELOC_CRX_SWITCH* types.
581 2004-07-27 Alan Modra <amodra@bigpond.net.au>
583 * elf64-ppc.c: Correct "Linker stubs" comment.
585 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
587 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
589 (elf_linked_to_section): New.
591 * elf.c (assign_section_numbers): Set up sh_link for
594 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
595 to sh_link for SHT_IA_64_UNWIND sections.
597 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
599 * elflink.c (elf_fixup_link_order): Add _() to error message.
601 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
603 * elflink.c (elf_fixup_link_order): Issue a warning and flag
606 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
608 * aout-adobe.c (aout_32_section_already_linked): Defined.
609 * aout-target.h (MY_section_already_linked): Likewise.
610 * aout-tic30.c (MY_section_already_linked): Likewise.
611 * binary.c (binary_section_already_linked): Likewise.
612 * bout.c (b_out_section_already_linked): Likewise.
613 * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
614 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
615 * coffcode.h (coff_section_already_linked): Likewise.
616 * i386msdos.c (msdos_section_already_linked): Likewise.
617 * i386os9k.c (os9k_section_already_linked): Likewise.
618 * ieee.c (ieee_section_already_linked): Likewise.
619 * ihex.c (ihex_section_already_linked): Likewise.
620 * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
621 * mmo.c (mmo_section_already_linked): Likewise.
622 * nlm-target.h (nlm_section_already_linked): Likewise.
623 * oasys.c (oasys_section_already_linked): Likewise.
624 * pef.c (bfd_pef_section_already_linked): Likewise.
625 * ppcboot.c (ppcboot_section_already_linked): Likewise.
626 * som.c (som_bfd_discard_group): Likewise.
627 * srec.c (srec_section_already_linked): Likewise.
628 * tekhex.c (tekhex_section_already_linked): Likewise.
629 * versados.c (versados_section_already_linked): Likewise.
630 * vms.c (vms_section_already_linked): Likewise.
631 * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
632 * xsym.c (bfd_sym_section_already_linked): Likewise.
634 * bfd-in.h (bfd_section_already_linked_table_init): New.
635 (bfd_section_already_linked_table_free): Likewise.
637 * coff-rs6000.c (rs6000coff_vec): Add
638 _bfd_generic_section_already_linked.
639 (pmac_xcoff_vec): Likewise.
640 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
641 (aix5coff64_vec): Likewise.
643 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
644 * elflink.c (_bfd_elf_section_already_linked): New function.
646 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
648 * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
649 (_bfd_generic_section_already_linked): New.
650 (bfd_section_already_linked_hash_entry): Likewise.
651 (bfd_section_already_linked): Likewise.
652 (bfd_section_already_linked_table_lookup): Likewise.
653 (bfd_section_already_linked_table_insert): Likewise.
655 * linker.c (bfd_section_already_linked): New.
656 (_bfd_section_already_linked_table): Likewise.
657 (bfd_section_already_linked_table_lookup): Likewise.
658 (bfd_section_already_linked_table_insert): Likewise.
659 (already_linked_newfunc): Likewise.
660 (bfd_section_already_linked_table_init): Likewise.
661 (bfd_section_already_linked_table_free): Likewise.
662 (_bfd_generic_section_already_linked): Likewise.
664 * section.c (bfd_section): Remove comdat.
665 (bfd_comdat_info): Moved to ...
666 * bfd-in.h (coff_comdat_info): Here.
667 (bfd_coff_get_comdat_section): New.
668 * coffgen.c (bfd_coff_get_comdat_section): Likewise.
669 * libcoff-in.h (coff_section_tdata): Add comdat.
670 * coffcode.h (handle_COMDAT): Updated.
671 * cofflink.c (coff_link_add_symbols): Likewise.
672 * ecoff.c (bfd_debug_section): Likewise.
674 * targets.c (bfd_target): Add _section_already_linked.
675 (BFD_JUMP_TABLE_LINK): Updated.
677 * bfd-in2.h: Regenerated.
678 * libbfd.h: Likewise.
679 * libcoff.h: Likewise.
681 2003-07-21 Paul Brook <paul@codesourcery.com>
683 * elflink.c (elf_get_linked_section_vma, compare_link_order,
684 elf_fixup_link_order): New functions.
685 (bfd_elf_final_link): Call elf_fixup_link_order.
687 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
689 * elf-bfd.h (ELF_COMMON_DEF_P): New.
690 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
692 * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
693 _bfd_elf_symbol_refs_local_p.
694 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
697 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
699 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
701 (bfd_elf_get_dyn_lib_class): New prototype.
702 * elf.c (bfd_elf_get_dyn_lib_class): New function.
704 * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
705 DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
706 entry is needed. Issue an error if a DT_NEEDED entry is needed
707 for a file marked DYN_NO_NEEDED.
708 (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
711 * bfd-in2.h: Regenerated.
713 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
715 * elflink.c (elf_section_complain_discarded): Don't complain in
718 2004-07-10 James E Wilson <wilson@specifixinc.com>
720 * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
721 (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
722 (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
723 elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
725 (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
726 bfd_put_64 to bfd_putl64.
727 (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
729 2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
732 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
733 .init/.fini sections when trying to relax it.
735 2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
737 * elf.c (assign_file_positions_for_segments): Make sure the
738 .dynamic section is the first section in the PT_DYNAMIC segment.
740 2004-07-09 Nick Clifton <nickc@redhat.com>
742 * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
743 * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
744 sh_elf_get_flags_from_mach functions so that they do not conflict
745 when this target is built with other sh-elf targets.
746 * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
747 suppression of this function.
748 (sh_elf_find_flags): Likewise.
750 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
752 * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
753 (ALL_MACHINES_CFILES): Add cpu-crx.c.
754 (BFD32_BACKENDS): Add elf32-crx.lo.
755 (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
756 (cpu-crx.lo): New target.
757 (elf32-crx.lo): New target.
758 * Makefile.in: Regenerate.
759 * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
760 (bfd_archures_list): Add bfd_crx_arch.
761 * bfd-in2.h: Regenerate.
762 * config.bfd: Handle crx-*-elf*, crx*.
763 * configure.in: Handle bfd_elf32_crx_vec.
764 * configure: Regenerate.
765 * cpu-crx.c: New file.
766 * elf32-crx.c: Likewise.
767 * libbfd.h: Regenerate.
768 * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
769 BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
770 BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
771 BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
772 BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
773 BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
774 * targets.c (bfd_elf32_crx_vec): Declare.
775 (bfd_target_vector): Add bfd_elf32_crx_vec.
777 2004-07-06 Nick Clifton <nickc@redhat.com>
779 * config.bfd: Add sh-symbian-elf target.
780 * configure.in: Add bfd_elf32_shl_symbian_vec.
781 * configure: Regenerate.
782 * elf-bfd.h (struct elf_backend_data): Add new field
784 * elflink.c (elf_link_add_object_symbols): Invoke the
785 check_directives function, if defined.
786 * elfxx-target.h: Provide a default, NULL definition for
788 * targets.c: Add bfd_elf32_shl_symbian_vec.
789 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
791 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
792 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
793 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
794 not already been defined.
795 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
796 * sh-symbian.c: New file. Provide functions to support the
797 * sh-symbian-elf target.
798 * Makefile.am: Add elf32-sh-symbian.c
799 * Makefile.in: Regenerate.
801 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
803 * elf32-sh.c: Include ../opcodes/sh-opc.h.
804 * Makefile.am: Ran make dep-am.
805 * Makefile.in: Ran make dep-in.
807 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
809 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
812 2004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
814 * config.bfd: Add want64 to configuration target s390-*-linux*.
816 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
818 * bfd.c (bfd_get_section_ident): New.
820 * elflink.c (elf_link_read_relocs_from_section): Call
821 bfd_get_section_ident to identify the section when reporting
823 (_bfd_elf_link_output_relocs): Likewise.
824 (elf_link_output_extsym): Likewise.
825 (elf_link_input_bfd): Likewise.
826 (bfd_elf_gc_record_vtinherit): Likewise.
828 * bfd-in2.h: Regenerated.
830 2004-07-01 Jie Zhang <zhangjie@magima.com.cn>
831 Nick Clifton <nickc@redhat.com>
834 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
835 of section symbols to mips_elf_sort_hash_table ().
837 2004-07-01 Alan Modra <amodra@bigpond.net.au>
839 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
841 (elf_section_complain_discarded): New function. Handle
842 .gcc_except_table too.
843 (elf_link_input_bfd): Rewrite handling of relocs against symbols
844 in discarded sections.
845 * elf-bfd.h (elf_discarded_section): Protect macro arg.
847 2004-06-30 James E Wilson <wilson@specifixinc.com>
849 * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
850 to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
852 2004-06-30 H.J. Lu <hongjiu.lu@intel.com>
855 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
856 local references to discarded sections and report their
859 2004-06-30 Alan Modra <amodra@bigpond.net.au>
861 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
862 sec_info_type, test section name instead.
864 2004-06-29 H.J. Lu <hongjiu.lu@intel.com>
867 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
868 in .init/.fini sections.
870 2004-06-29 Bob Wilson <bob.wilson@acm.org>
872 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
873 bfd_get_section_limit.
875 2004-06-29 Bob Wilson <bob.wilson@acm.org>
877 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
880 2004-06-29 Alan Modra <amodra@bigpond.net.au>
882 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
884 (mmix_elf_perform_relocation): Adjust for above change.
885 (mmix_elf_relocate_section): Likewise.
886 (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
887 (mmix_elf_get_section_contents): Delete.
888 (bfd_elf64_get_section_contents): Delete.
889 (mmix_elf_relocate_section): Zero stub area.
890 * linker.c (default_indirect_link_order): Alloc max of section size
892 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
893 * section.c (bfd_malloc_and_get_section): Likewise.
894 (struct bfd_section): Update rawsize comment.
895 * bfd-in2.h: Regenerate.
897 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
899 2004-06-29 Alan Modra <amodra@bigpond.net.au>
901 * bfd-in.h (bfd_get_section_limit): Define.
902 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
903 (_bfd_final_link_relocate): Use bfd_get_section_limit.
904 * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
905 * coff-arm.c (coff_arm_relocate_section): Likewise.
906 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
907 * cpu-ns32k.c (do_ns32k_reloc): Likewise.
908 (bfd_ns32k_final_link_relocate): Likewise.
909 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
910 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
911 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
912 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
913 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
914 (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
915 * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
916 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
917 * elf32-or32.c (or32_elf_consth_reloc): Likewise.
918 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
919 * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
920 * elf32-sh.c (sh_elf_reloc_loop): Likewise.
921 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
922 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
923 * elf32-v850.c (v850_elf_reloc): Likewise.
924 * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
925 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
926 * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
927 * elf64-mips.c (mips_elf64_gprel32_reloc)
928 (mips16_gprel_reloc): Likewise.
929 * elf64-mmix.c (mmix_elf_reloc): Likewise.
930 * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
931 * elf64-sparc.c (init_insn_reloc): Likewise.
932 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
933 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
934 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
935 (_bfd_mips_elf_generic_reloc): Likewise.
936 * bfd-in2.h: Regenerate.
938 2004-06-28 Alan Modra <amodra@bigpond.net.au>
940 * bfd-in.h (struct stab_info): Move from stabs.c.
941 * stabs.c (struct stab_link_includes_table): Delete.
942 (stab_link_includes_lookup): Delete.
943 (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
944 level of indirection from sinfo parm.
945 (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
946 stabstr section. Adjust hash table accesses.
947 * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
948 alloc. Adjust stab_info test.
949 * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
950 (_bfd_coff_final_link): Adjust stab_info test.
951 (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
952 * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
954 * libcoff-in.h (struct coff_link_hash_table): Likewise.
955 * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
956 * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
957 stabstr section. Adjust stab_info test.
958 * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
959 (_bfd_write_stab_strings): Adjust prototypes.
960 * libbfd.h: Regenerate.
961 * libcoff.h: Regenerate.
962 * bfd-in2.h: Regenerate.
964 2004-06-27 Mark Kettenis <kettenis@gnu.org>
966 From Miod Vallat <miod@online.fr>:
967 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
969 2004-06-26 Alexandre Oliva <aoliva@redhat.com>
971 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
972 (struct elf32_mn10300_link_hash_entry): Remove
974 (mn10300_elf_check_relocs): Only reserve dynamic relocations for
975 R_MN10300_32. Don't adjust pcrel_relocs_copied.
976 (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
977 and gotoff relocations if the symbol doesn't bind locally. Use
978 _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
979 relocation for PCREL32.
980 (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
981 to test whether a symbol binds locally.
982 (elf32_mn10300_link_hash_newfunc): Don't initialize
984 (_bfd_mn10300_elf_discard_copies): Delete.
985 (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
987 2004-06-26 Mark Kettenis <kettenis@gnu.org>
989 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
991 2004-06-25 Joel Brobecker <brobecker@gnat.com>
993 * som.c (som_set_reloc_info): Correct small typo.
995 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
997 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
998 (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
999 (m32r_elf_gcsweep_hook): Likewise.
1000 (m32r_elf_check_relocs): Likewise.
1001 (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
1002 R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
1003 * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
1004 BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
1005 * bfd-in2.h: Regenerated.
1006 * libbfd.h: Regenerated.
1008 2004-06-24 H.J. Lu <hongjiu.lu@intel.com>
1010 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
1012 (elf64_x86_64_relocate_section): Issue an error for
1013 R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
1014 against global symbols when building shared library.
1016 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1018 * section.c (struct sec): Rename "_cooked_size" to "size".
1019 Rename "_raw_size" to "rawsize".
1020 (STD_SECTION): Adjust comments.
1021 (bfd_set_section_size, bfd_get_section_contents): Use size.
1022 (bfd_malloc_and_get_section): New function.
1023 * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
1024 * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
1025 Correctly free reloc and contents memory.
1026 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
1027 and fake CIE now that we can shink section size to zero.
1028 (_bfd_elf_write_section_eh_frame): Likewise..
1029 * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
1030 * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
1031 _bfd_stab_section_offset. Use _bfd_elf_section_offset.
1032 * stabs.c (_bfd_stab_section_offset_): Remove unused args and
1033 unneeded indirection.
1034 * elf.c (_bfd_elf_section_offset): .. and update call.
1035 * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
1036 * libbfd.h: Regenerate.
1037 * bfd-in2.h: Regenerate.
1039 Replace occurrences of "_raw_size" and "_cooked_size" in most places
1040 with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
1041 sections. Use "rawsize", if non-zero, for bfd_get_section_contents
1042 calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
1043 Similarly use "rawsize", if non-zero, in reloc functions to validate
1044 reloc addresses. Use new bfd_malloc_and_get_section in most places
1045 where bfd_get_section_contents was called. Expand all occurrences of
1046 bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
1047 grok_prstatus and similar functions to "size".
1048 * aix386-core.c (aix386_core_file_p): ..
1049 * aix5ppc-core.c (xcoff64_core_p): ..
1050 * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
1051 aout_adobe_set_section_contents): ..
1052 * aout-target.h (callback): ..
1053 * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
1054 MY_bfd_final_link): ..
1055 * aoutf1.h (sunos4_core_file_p): ..
1056 * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
1057 adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
1058 final_link, aout_link_input_section): ..
1059 * binary.c (binary_object_p, binary_canonicalize_symtab,
1060 binary_set_section_contents): ..
1061 * bout.c (b_out_callback, b_out_write_object_contents,
1062 b_out_set_section_contents, b_out_bfd_relax_section,
1063 b_out_bfd_get_relocated_section_contents): ..
1064 * cisco-core.c (cisco_core_file_validate): ..
1065 * coff-alpha.c (alpha_ecoff_object_p,
1066 alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
1067 * coff-arm.c (coff_arm_relocate_section,
1068 bfd_arm_allocate_interworking_sections): ..
1069 * coff-h8300.c (h8300_reloc16_extra_cases,
1070 h8300_bfd_link_add_symbols): ..
1071 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
1072 * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
1073 ppc_bfd_coff_final_link): ..
1074 * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
1075 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
1076 sh_align_loads, sh_coff_get_relocated_section_contents): ..
1077 * coff64-rs6000.c (xcoff64_write_object_contents,
1078 xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
1079 * coffcode.h (coff_compute_section_file_positions,
1080 coff_write_object_contents): ..
1081 * coffgen.c (make_a_section_from_file, coff_write_symbols,
1082 coff_section_symbol, build_debug_section): ..
1083 * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
1084 process_embedded_commands, _bfd_coff_link_input_bfd,
1085 _bfd_coff_write_global_sym): ..
1086 * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
1087 * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
1088 * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
1089 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
1090 _bfd_dwarf2_find_nearest_line): ..
1091 * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
1092 ecoff_compute_section_file_positions,
1093 _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
1094 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
1095 _bfd_elf_discard_section_eh_frame_hdr,
1096 _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
1097 _bfd_elf_write_section_eh_frame,
1098 _bfd_elf_write_section_eh_frame_hdr): ..
1099 * elf-hppa.h (elf_hppa_sort_unwind): ..
1100 * elf-m10200.c (mn10200_elf_relax_section,
1101 mn10200_elf_relax_delete_bytes,
1102 mn10200_elf_get_relocated_section_contents): ..
1103 * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
1104 mn10300_elf_check_relocs, mn10300_elf_relax_section,
1105 mn10300_elf_relax_delete_bytes,
1106 mn10300_elf_get_relocated_section_contents,
1107 _bfd_mn10300_elf_adjust_dynamic_symbol,
1108 _bfd_mn10300_elf_discard_copies,
1109 _bfd_mn10300_elf_size_dynamic_sections,
1110 _bfd_mn10300_elf_finish_dynamic_sections): ..
1111 * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
1112 _bfd_elf_make_section_from_phdr, elf_fake_sections,
1113 bfd_elf_set_group_contents, map_sections_to_segments,
1114 elf_sort_sections, assign_file_positions_for_segments,
1115 SECTION_SIZE, copy_private_bfd_data,
1116 _bfd_elf_get_dynamic_reloc_upper_bound,
1117 _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
1118 _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
1119 elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
1120 elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
1121 _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
1122 * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
1123 bfd_elf32_arm_process_before_allocation,
1124 elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
1125 elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
1126 elf32_arm_write_section): ..
1127 * elf32-cris.c (cris_elf_grok_prstatus,
1128 elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
1129 elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
1130 cris_elf_check_relocs, elf_cris_size_dynamic_sections,
1131 elf_cris_discard_excess_dso_dynamics,
1132 elf_cris_discard_excess_program_dynamics): ..
1133 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
1134 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
1135 * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
1136 _frv_create_got_section, _frvfdpic_assign_plt_entries,
1137 elf32_frvfdpic_size_dynamic_sections,
1138 elf32_frvfdpic_modify_segment_map,
1139 elf32_frvfdpic_finish_dynamic_sections): ..
1140 * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
1141 elf32_h8_get_relocated_section_contents): ..
1142 * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
1143 elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
1144 allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
1145 elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
1146 elf32_hppa_finish_dynamic_sections): ..
1147 * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
1148 i370_elf_size_dynamic_sections, i370_elf_check_relocs,
1149 i370_elf_finish_dynamic_sections): ..
1150 * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
1151 allocate_dynrelocs, elf_i386_size_dynamic_sections,
1152 elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
1153 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
1154 i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
1155 * elf32-ip2k.c (ip2k_is_switch_table_128,
1156 ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
1157 ip2k_relax_switch_table_256, ip2k_elf_relax_section,
1158 adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
1159 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
1160 m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
1161 allocate_dynrelocs, m32r_elf_size_dynamic_sections,
1162 m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
1163 m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
1164 m32r_elf_get_relocated_section_contents): ..
1165 * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
1166 m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
1167 m68hc11_elf_relax_delete_bytes): ..
1168 * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
1169 m68hc12_elf_size_one_stub): ..
1170 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
1171 elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
1172 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
1173 elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
1174 elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
1175 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
1176 elf32_mips_grok_prstatus): ..
1177 * elf32-or32.c (or32_elf_consth_reloc): ..
1178 * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
1179 elf_create_pointer_linker_section, ppc_elf_create_linker_section,
1180 ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
1181 allocate_dynrelocs, ppc_elf_size_dynamic_sections,
1182 ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
1183 ppc_elf_final_write_processing): ..
1184 * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
1185 allocate_dynrelocs, elf_s390_size_dynamic_sections,
1186 elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
1187 * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
1188 sh_elf_relax_delete_bytes, sh_elf_align_loads,
1189 sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
1190 sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
1191 sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
1192 * elf32-sh64-com.c (sh64_address_in_cranges,
1193 sh64_get_contents_type): ..
1194 * elf32-sh64.c (sh64_find_section_for_address,
1195 sh64_elf_final_write_processing): ..
1196 * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
1197 sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
1198 allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
1199 elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
1200 * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
1201 * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
1202 elf_vax_size_dynamic_sections, elf_vax_discard_copies,
1203 elf_vax_instantiate_got_entries, elf_vax_relocate_section,
1204 elf_vax_finish_dynamic_sections): ..
1205 * elf32-xstormy16.c (xstormy16_elf_24_reloc,
1206 xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
1207 xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
1208 xstormy16_elf_finish_dynamic_sections): ..
1209 * elf32-xtensa.c (xtensa_read_table_entries,
1210 elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
1211 elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
1212 bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
1213 elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
1214 elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
1215 get_relocation_opcode, retrieve_contents, find_relaxable_sections,
1216 collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
1217 relax_section, shrink_dynamic_reloc_sections, relax_property_section,
1218 xtensa_callback_required_dependence): ..
1219 * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
1220 elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
1221 elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
1222 elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
1223 elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
1224 elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
1225 elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
1226 elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
1227 * elf64-hppa.c (allocate_dynrel_entries,
1228 elf64_hppa_size_dynamic_sections,
1229 elf64_hppa_finish_dynamic_sections): ..
1230 * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
1231 mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
1232 elf64_mips_grok_prstatus): ..
1233 * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
1234 mmix_elf_relocate_section, mmix_elf_final_link,
1235 mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
1236 mmix_elf_relax_section, mmix_elf_get_section_contents): ..
1237 * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
1238 ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
1239 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
1240 allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
1241 ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
1242 toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
1243 ppc64_elf_build_stubs, ppc64_elf_relocate_section,
1244 ppc64_elf_finish_dynamic_sections): ..
1245 * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
1246 allocate_dynrelocs, elf_s390_size_dynamic_sections,
1247 elf_s390_finish_dynamic_sections): ..
1248 * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
1249 sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
1250 sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
1251 sh64_elf64_finish_dynamic_sections): ..
1252 * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
1253 sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
1254 sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
1255 sparc64_elf_finish_dynamic_symbol,
1256 sparc64_elf_finish_dynamic_sections): ..
1257 * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
1258 elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
1259 elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
1260 elf64_x86_64_finish_dynamic_sections): ..
1261 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
1262 * elfcode.h (elf_slurp_reloc_table): ..
1263 * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
1264 elf_finalize_dynstr, elf_link_add_object_symbols,
1265 bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
1266 elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
1267 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
1268 elf32_mips_grok_prstatus): ..
1269 * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
1270 elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
1271 elfNN_ia64_choose_gp, elfNN_ia64_final_link,
1272 elfNN_ia64_finish_dynamic_sections): ..
1273 * elfxx-mips.c (mips_elf_create_procedure_table,
1274 mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
1275 _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
1276 mips_elf_global_got_index, mips_elf_multi_got,
1277 mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
1278 mips_elf_allocate_dynamic_relocations,
1279 mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
1280 _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
1281 _bfd_mips_elf_always_size_sections,
1282 _bfd_mips_elf_size_dynamic_sections,
1283 _bfd_mips_elf_finish_dynamic_symbol,
1284 _bfd_mips_elf_finish_dynamic_sections,
1285 _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
1286 _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
1287 _bfd_elf_mips_get_relocated_section_contents,
1288 _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
1289 * hp300hpux.c (callback): ..
1290 * hppabsd-core.c (make_bfd_asection): ..
1291 * hpux-core.c (make_bfd_asection): ..
1292 * i386linux.c (linux_link_create_dynamic_sections,
1293 bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
1294 * i386msdos.c (msdos_write_object_contents): ..
1295 * i386os9k.c (os9k_callback, os9k_write_object_contents,
1296 os9k_set_section_contents): ..
1297 * ieee.c (parse_expression, ieee_slurp_external_symbols,
1298 ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
1299 ieee_write_section_part, do_with_relocs, do_as_repeat,
1300 do_without_relocs, ieee_write_debug_part, init_for_output,
1301 ieee_set_section_contents): ..
1302 * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
1303 * irix-core.c (do_sections, make_bfd_asection): ..
1304 * libaout.h (aout_section_merge_with_text_p): ..
1305 * libbfd.c (_bfd_generic_get_section_contents,
1306 _bfd_generic_get_section_contents_in_window): ..
1307 * linker.c (default_indirect_link_order): ..
1308 * lynx-core.c (make_bfd_asection): ..
1309 * m68klinux.c (linux_link_create_dynamic_sections,
1310 bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
1311 * mach-o.c (bfd_mach_o_make_bfd_section,
1312 bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
1313 bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
1314 bfd_mach_o_scan_read_segment): ..
1315 * merge.c (_bfd_add_merge_section, record_section, merge_strings,
1316 _bfd_merge_sections): ..
1317 * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
1318 mmo_map_set_sizes, mmo_canonicalize_symtab,
1319 mmo_internal_write_section, mmo_write_object_contents): ..
1320 * netbsd-core.c (netbsd_core_file_p): ..
1321 * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
1322 nlm_alpha_set_public_section): ..
1323 * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
1324 * nlm32-sparc.c (nlm_sparc_write_import): ..
1325 * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
1326 nlm_compute_section_file_positions): ..
1327 * oasys.c (oasys_object_p, oasys_slurp_section_data,
1328 oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
1329 * opncls.c (get_debug_link_info): ..
1330 * osf-core.c (make_bfd_asection): ..
1331 * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
1332 adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
1333 final_link, aout_link_input_section): ..
1334 * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
1335 pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
1336 * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
1337 bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
1338 * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
1339 * ptrace-core.c (ptrace_unix_core_file_p): ..
1340 * reloc.c (bfd_perform_relocation, bfd_install_relocation,
1341 _bfd_final_link_relocate, bfd_generic_relax_section,
1342 bfd_generic_get_relocated_section_contents): ..
1343 * reloc16.c (bfd_coff_reloc16_relax_section,
1344 bfd_coff_reloc16_get_relocated_section_c): ..
1345 * riscix.c (riscix_some_aout_object_p): ..
1346 * rs6000-core.c (read_hdr, make_bfd_asection): ..
1347 * sco5-core.c (make_bfd_asection): ..
1348 * simple.c (bfd_simple_get_relocated_section_contents): ..
1349 * som.c (som_object_setup, setup_sections, som_prep_headers,
1350 som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
1351 som_set_reloc_info, som_get_section_contents,
1352 som_bfd_link_split_section): ..
1353 * sparclinux.c (linux_link_create_dynamic_sections,
1354 bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
1355 * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
1356 * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
1357 _bfd_write_stab_strings, _bfd_stab_section_offset): ..
1358 * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
1359 bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
1360 sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
1361 sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
1362 sunos_finish_dynamic_link): ..
1363 * syms.c (_bfd_stab_section_find_nearest_line): ..
1364 * tekhex.c (first_phase, tekhex_set_section_contents,
1365 tekhex_write_object_contents): ..
1366 * trad-core.c (trad_unix_core_file_p): ..
1367 * versados.c (process_esd, process_otr, process_otr): ..
1368 * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
1369 * vms-misc.c (add_new_contents): ..
1370 * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
1371 * vms.c (vms_set_section_contents): ..
1372 * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
1373 xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
1374 _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
1375 * xsym.c (bfd_sym_scan): .. See above.
1377 2004-06-21 H.J. Lu <hongjiu.lu@intel.com>
1379 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
1380 calling _bfd_merged_section_offset only for section symbols.
1382 2004-06-22 Alan Modra <amodra@bigpond.net.au>
1384 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
1385 for handling SEC_MERGE symbols in relax_section.
1387 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1389 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
1390 * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
1391 linked together. Mark the result as h8300sx code.
1393 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1395 * elf-bfd.h (struct elf_backend_data): Added
1396 elf_backend_omit_section_dynsym.
1397 (_bfd_elf_link_omit_section_dynsym): Declare.
1398 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
1399 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
1400 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
1401 (_bfd_elf_link_renumber_dynsyms): ... this function.
1402 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
1403 _bfd_elf_link_omit_section_dynsym).
1404 (elfNN_bed): Added elf_backend_omit_section_dynsym.
1406 2004-06-21 Nick Clifton <nickc@redhat.com>
1408 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
1411 2004-06-17 Jerome Guitton <guitton@gnat.com>
1413 * bfd-in.h (bfd_cache_close_all): New function declaration.
1414 * bfd-in2.h: Regenerate.
1415 * cache.c (bfd_cache_close_all): New function definition.
1417 2004-06-16 Mark Kettenis <kettenis@gnu.org>
1419 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
1421 * configure: Regenerate.
1423 2004-06-16 Daniel Jacobowitz <dan@debian.org>
1425 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
1426 the pre-existing section.
1428 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1430 * section.c (struct sec): Remove usused flags. Reorganize a little.
1431 (bfd_get_section_size_before_reloc): Delete.
1432 (bfd_get_section_size_after_reloc): Delete.
1433 (STD_SECTION): Update.
1434 (bfd_get_section_size_now): Delete.
1435 (bfd_set_section_contents): Don't referece reloc_done.
1436 (bfd_get_section_contents): Remove reloc_done comment.
1437 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
1439 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
1440 * ecoff.c (bfd_debug_section): Update initializer.
1441 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
1442 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
1443 * bfd-in.h (bfd_section_size): Expand.
1444 (bfd_get_section_size): New macro.
1445 * bfd-in2.h: Regenerate.
1446 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
1447 bfd_get_section_size_before_reloc with bfd_get_section_size.
1448 * coffcode.h (coff_write_object_contents): Likewise.
1449 * coffgen.c (build_debug_section): Likewise.
1450 * dwarf1.c (parse_line_table): Likewise.
1451 (_bfd_dwarf1_find_nearest_line): Likewise.
1452 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
1453 * i386msdos.c (msdos_write_object_contents): Likewise.
1454 * pdp11.c (squirt_out_relocs): Likewise.
1455 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
1456 * elf64-mmix.c (mmix_elf_final_link): Update comment.
1458 2004-06-14 Chris Demetriou <cgd@broadcom.com>
1460 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
1461 removal) with updated comment.
1462 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
1464 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
1465 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
1467 2004-06-12 Alan Modra <amodra@bigpond.net.au>
1469 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
1470 overflow on branches to undefweaks.
1472 2004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1474 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
1475 as ecoff_section_data() does not return a valid lvalue.
1477 2004-06-09 Alexandre Oliva <aoliva@redhat.com>
1479 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
1480 (elf_link_add_object_symbols): Likewise.
1482 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
1483 (elf_backend_reloc_type_class): New.
1485 2004-06-08 Mark Kettenis <kettenis@gnu.org>
1487 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
1489 * configure: Regenerate.
1491 2004-06-07 Daniel Jacobowitz <dan@debian.org>
1493 From: Albert Chin-A-Young <china@thewrittenword.com>
1494 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
1497 2004-05-29 H.J. Lu <hongjiu.lu@intel.com>
1499 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
1502 2004-05-28 DJ Delorie <dj@redhat.com>
1504 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
1505 for linking, but otherwise adjust reloc for merged sections.
1507 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
1509 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
1510 _bfd_merged_section_offset for local symbols.
1512 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1514 * Makefile.am: Regenerate dependencies.
1515 * Makefile.in: Regenerate.
1516 * archures.c: Add bfd_mach_sh3_nommu .
1517 * bfd-in2.h: Regenerate.
1518 * cpu-sh.c: Add sh3-nommu architecture.
1519 (bfd_to_arch_table): Create new table.
1520 (sh_get_arch_from_bfd_mach): Create new function.
1521 (sh_get_arch_up_from_bfd_mach): Create new function.
1522 (sh_merge_bfd_arch): Create new function.
1523 * elf32-sh.c (sh_ef_bfd_table): Add table.
1524 (sh_elf_check_relocs): Replace switch statement with
1525 use of sh_ef_bfd_table .
1526 (sh_elf_get_flags_from_mach): Add new function.
1527 (sh_find_elf_flags): Likewise.
1528 (sh_elf_copy_private_data): Replace most of non-elf contents
1529 with a call to sh_merge_bfd_arch() .
1531 2004-05-27 Michael Chastain <mec.gnu@mindspring.com>
1533 * Makefile.am (bfdver.h): Use explicit filename, not $< .
1534 * Makefile.in: Regenerate.
1536 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
1538 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
1539 custom calling conventions for dynamic symbols.
1540 (mn10300_elf_relax_section): Avoid relaxing a function as a local
1541 symbol if it's an alias to a global one.
1543 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1545 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
1548 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
1550 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
1553 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1555 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
1556 for SHT_GROUP sections.
1558 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1560 * elflink.c (elf_link_add_object_symbols): Don't set up merge
1562 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
1563 * merge.c: Formatting. Remove unnecessary casts. Expand
1564 bfd_get_section_alignment macro.
1565 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
1566 use throughout file.
1567 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
1568 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
1569 section name to determine sinfo group, instead test output section
1571 (_bfd_merge_sections): Add struct bfd_link_info param. Call
1572 _bfd_strip_section_from_output rather than just twiddling flags.
1573 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
1574 (_bfd_merge_sections): Update prototype.
1575 * libbfd.h: Regenerate.
1577 2004-05-24 Mark Kettenis <kettenis@gnu.org>
1579 * netbsd-core.c: Correctly indent section that sets architecture
1582 From Miod Vallat <miod@online.fr>:
1583 * m88kopenbsd.c: New file.
1584 * targets.c (m88k_openbsd_vec): New.
1585 * config.bfd: Add m88k-*-openbsd*.
1586 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
1587 (m88kopenbsd_vec): New.
1588 * configure: Regenerate.
1589 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
1590 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
1592 * Makefile.in: Regenerate.
1593 * po/SRC-POTFILES.in: Regenerate.
1595 2004-05-24 Nick Clifton <nickc@redhat.com>
1597 * hash.c: Remove bogus node "Changing the default Hash Table Size"
1598 introduced by hash table size patch.
1600 2004-05-22 Ben Elliston <bje@au.ibm.com>
1602 * configure.in (is_release): Remove.
1603 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
1604 (AC_OUTPUT): Don't output bfdver.h from version.h.
1605 * configure: Regenerate.
1606 * Makefile.am (RELEASE): New variable.
1607 (bfdver.h): New target.
1608 * Makefile.in: Regenerate.
1609 * doc/Makefile.in: Likewise.
1611 2004-05-22 Ben Elliston <bje@au.ibm.com>
1613 * Makefile.am (config.status): Don't depend on version.h.
1614 * Makefile.in: Regenerate.
1616 2004-05-22 Alan Modra <amodra@bigpond.net.au>
1618 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
1619 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
1620 * libbfd.h: Regenerate.
1621 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
1622 (_bfd_elf_rel_local_sym): Likewise.
1623 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
1624 (elf_link_input_bfd): Likewise.
1625 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
1626 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1627 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1628 (elfNN_ia64_relocate_section): Likewise.
1630 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1632 * hash.c (bfd_default_hash_table_size): New variable.
1633 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
1634 (bfd_hash_set_default_size): New function. Set the default size
1635 to a selected prime number close to the argument. Document new
1637 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
1638 * bfd-in2.h: Regenerate.
1639 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
1640 * Makefile.in: Regenerate.
1642 2004-05-21 Mark Kettenis <kettenis@gnu.org>
1644 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
1645 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
1646 arm, m68k, m88k and hppa core files.
1648 2004-05-21 Nick Clifton <nickc@redhat.com>
1650 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
1651 (bfd_bwrite): Likewise.
1652 (bfd_tell): Likewise.
1653 (bfd_flush): Likewise.
1654 (bfd_stat): Likewise.
1655 (bfd_seek): Likewise.
1656 (bfd_get_mtime): Likewise.
1657 (bfd_get_size): Likewise.
1659 2004-05-19 Ben Elliston <bje@au.ibm.com>
1661 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
1663 2004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
1665 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
1666 (bfd_generic_openr_next_archived_file): Likewise.
1668 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1670 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
1671 section names by inserting a new substring after .gnu.linkonce, except
1672 for .gnu.linkonce.t.* where the "t." is replaced.
1674 2004-05-17 Adam Nemet <anemet@lnxw.com>
1676 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
1677 (m68-*-lynxos* case): Likewise.
1678 (powerpc-*-lyxnos* case): New case.
1679 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
1681 2004-05-17 David Heine <dlheine@tensilica.com>
1683 * aout-target.h (MY_bfd_copy_private_header_data): Define.
1684 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
1685 * bfd.c (bfd_copy_private_header_data): Define.
1686 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
1688 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1689 * coffcode.h (coff_bfd_copy_private_header_data): Define.
1690 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
1691 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
1692 segments by calling copy_private_bfd_data.
1693 (_bfd_elf_copy_private_header_data): Define.
1694 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
1695 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
1696 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
1697 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
1698 * mmo.c (mmo_bfd_copy_private_header_data): Define.
1699 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
1700 * som.c (som_bfd_copy_private_header_data): Define.
1701 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
1702 * vms.c (vms_bfd_copy_private_header_data): Define.
1703 * bfd-in2.h: Regenerate.
1704 * libbfd.h: Regenerate.
1706 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1708 * elfxx-mips.c (MINUS_TWO): Define.
1709 (mips_elf_higher, mips_elf_highest,
1710 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
1711 some bfd_vma values.
1712 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
1714 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1716 * som.c (log2): Rename to exact_log2. Adjust all callers.
1718 2004-05-13 Paul Brook <paul@codesourcery.com>
1720 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
1721 dwarf3 format CIE entries. Remove comment about the size of the
1722 ra_column field. It is now correctly deduced.
1724 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1726 * config.bfd (or32-*-rtems*): Switch to elf.
1728 2004-05-13 Nick Clifton <nickc@redhat.com>
1730 * po/fr.po: Updated French translation.
1732 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1734 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
1735 into .dynsym if elf_section_data (sec)->dynindx <= 0.
1736 Adjust counting of last_local.
1737 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
1738 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
1739 created by the linker nor !SHF_ALLOC.
1741 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
1742 DT_PLTGOT to the start of the .got.plt section instead of the
1743 .got output section. Set sh_entsize for .got section in addition
1745 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
1746 is at sgot->output_section->vma.
1747 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
1748 DT_PLTGOT to the start of the .got.plt section instead of the
1749 .got output section.
1750 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
1751 is at sgot->output_section->vma. Set sh_entsize for .got section
1752 in addition to .got.plt.
1753 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
1754 (bfd_section_from_phdr): Likewise.
1755 (map_sections_to_segments): Likewise.
1756 (assign_file_positions_for_segments): Likewise.
1757 (get_program_header_size): Likewise.
1758 * elflink.c (bfd_elf_size_dynamic_sections): Set
1759 elf_tdata (output_bfd)->relro from info->relro.
1760 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
1762 2004-05-08 Alexandre Oliva <aoliva@redhat.com>
1764 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
1765 a zero symndx for which we hadn't accounted a dynamic relocation.
1766 (_frvfdpic_add_rofixup): Likewise.
1768 2004-05-07 Brian Ford <ford@vss.fsi.com>
1769 DJ Delorie <dj@redhat.com>
1771 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
1772 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
1773 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
1774 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
1776 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
1778 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
1779 immediately if there's no link info.
1780 (elf32_frvfdpic_copy_private_bfd_data): New.
1781 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
1783 2004-05-06 Zack Weinberg <zack@codesourcery.com>
1785 * dwarf2.c (add_line_info): Also set info->filename to NULL if
1786 filename argument is null; do not call strlen on a null pointer.
1788 2004-05-06 Daniel Jacobowitz <drow@mvista.com>
1790 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
1793 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1795 * configure.in (bfd_elf32_frvfdpic_vec): New.
1796 * configure: Rebuilt.
1797 * targets.c (bfd_elf32_frvfdpic_vec): New.
1798 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
1800 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
1801 frvfdpic instead of frv. Rearrange elf-target macros such that
1802 the FDPIC-specific ones are only defined for this new target
1804 (bfd_elf32_frvfdpic_vec): Declare.
1806 (elf32_frv_relocate_section): Use it to enable segment checking
1807 and to control rofixup emission. Add output section vma to
1808 applied relocation in non-LOAD non-ALLOC sections. Use
1809 _bfd_error_handler for errors.
1810 (_frv_create_got_section): Create .rel.got and .rofixup only in
1811 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
1813 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
1814 (elf32_frvfdpic_modify_segment_map): Likewise.
1815 (elf32_frv_finish_dynamic_sections): New, do-nothing.
1816 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
1817 error message if we miscompute the rofixup size.
1818 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
1819 (frvfdpic_elf_encode_eh_address): Likewise.
1820 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
1821 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
1822 relocs. Reject unknown relocation types.
1823 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
1824 (frv_elf_merge_private_bfd_data): Likewise.
1825 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
1826 0x4000 for newly-added elf32-frvfdpic.
1828 2004-05-05 Nick Clifton <nickc@redhat.com>
1831 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
1832 returning NULL as most users of this function do not check its
1834 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
1835 of bfd_cache_lookup().
1836 * sco5-core.c (sco5_core_file_p): Likewise.
1837 * trad-core.c (trad_unix_core_file_p): Likewise.
1839 2004-05-05 Nick Clifton <nickc@redhat.com>
1841 * cache.c (bfd_cache_lookup): Improve formatting.
1842 * archive.c: Fix formatting.
1844 2004-05-05 Peter Barada <peter@the-baradas.com>
1846 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
1847 * cpu-m68k.c(bfd_m68k_arch): Likewise.
1848 * bfd-in2.h(bfd_architecture): Regenerate.
1850 2004-05-03 Alan Modra <amodra@bigpond.net.au>
1852 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
1854 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
1855 those against discarded link-once and SEC_MERGE section symbols.
1857 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
1859 * section.c (bfd_get_section_by_name_if): New.
1860 * bfd-in2.h: Regenerated.
1862 2004-05-02 Alan Modra <amodra@bigpond.net.au>
1864 * som.c (som_bfd_is_group_section): Define.
1866 2004-05-01 Alan Modra <amodra@bigpond.net.au>
1868 * section.c (bfd_make_section_anyway): Copy the whole
1869 bfd_hash_entry, not just "next" from existing entry.
1871 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
1873 * elf.c (bfd_section_from_shdr): Maintain the section order in
1875 (special_sections): Add ".note.GNU-stack".
1876 (elf_fake_sections): Handle section group for relocatable
1879 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
1881 * section.c (bfd_sections_find_if): New.
1882 * bfd-in2.h: Regenerated.
1884 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1886 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
1888 * elf-bfd.h (bfd_elf_is_group_section): Declare.
1889 * elf.c (bfd_elf_is_group_section): New function.
1890 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
1891 * section.c (bfd_generic_is_group_section): New function.
1892 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
1893 (BFD_JUMP_TABLE_LINK): Adjust.
1894 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
1895 * aout-target.h (MY_bfd_is_group_section): Define.
1896 * aout-tic30.c (MY_bfd_is_group_section): Define.
1897 * bfd.c (bfd_is_group_section): Define.
1898 * binary.c (binary_bfd_is_group_section): Define.
1899 * bout.c (b_out_bfd_is_group_section): Define.
1900 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
1901 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
1902 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
1903 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
1904 * coffcode.h (coff_bfd_is_group_section): Define.
1905 * i386msdos.c (msdos_bfd_is_group_section): Define.
1906 * i386os9k.c (os9k_bfd_is_group_section): Define.
1907 * ieee.c (ieee_bfd_is_group_section): Define.
1908 * ihex.c (ihex_bfd_is_group_section): Define.
1909 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
1910 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
1911 * mmo.c (mmo_bfd_is_group_section): Define.
1912 * nlm-target.h (nlm_bfd_is_group_section): Define.
1913 * oasys.c (oasys_bfd_is_group_section): Define.
1914 * pef.c (bfd_pef_bfd_is_group_section): Define.
1915 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
1916 * srec.c (srec_bfd_is_group_section): Define.
1917 * tekhex.c (tekhex_bfd_is_group_section): Define.
1918 * versados.c (versados_bfd_is_group_section): Define.
1919 * vms.c (vms_bfd_is_group_section): Define.
1920 * xsym.c (bfd_sym_bfd_is_group_section): Define.
1921 * bfd-in2.h: Regenerate.
1922 * libbfd.h: Regenerate.
1924 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1926 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
1928 2004-04-30 Hans-Peter Nilsson <hp@axis.com>
1930 * configure.in: Update version to 2.15.91.
1931 * configure: Regenerate.
1933 2004-04-29 Brian Ford <ford@vss.fsi.com>
1935 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
1936 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
1937 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
1938 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
1939 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
1940 .gnu.linkonce.wi. sections.
1941 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
1942 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
1944 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
1945 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1947 2004-04-28 Chris Demetriou <cgd@broadcom.com>
1949 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
1950 * bfd-in2.h: Regenerate.
1951 * libbfd.h: Likewise.
1953 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1955 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
1957 (setup_sections): Use som_subspace_dictionary_record struct instead
1958 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
1959 is_comdat, is_common or dup_common.
1960 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
1961 is_comdat, is_common and dup_common in section subspace_dict from
1963 (som_begin_writing): Use som_subspace_dictionary_record struct.
1964 (som_finish_writing): Likewise.
1965 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
1966 is_common and dup_common flags in info for symbol. Add comment
1967 regarding linker support for these fields. Slightly reorganize
1969 (som_build_and_write_symbol_table): Set is_comdat, is_common and
1970 dup_common fields in symbol table from symbol info.
1971 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
1972 arguments. Set corresponding fields in copy_data. Change all callers.
1973 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
1975 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
1976 * som.h (som_subspace_dictionary_record): Define.
1977 (som_copyable_section_data_struct): Add is_comdat, is_common and
1979 (som_section_data_struct): Use som_subspace_dictionary_record struct
1980 instead of subspace_dictionary_record.
1981 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
1983 2004-04-27 Bob Wilson <bob.wilson@acm.org>
1985 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
1986 if set. Check reloc_done flag before applying relocations. Use
1987 output addresses, both when applying relocations and when comparing
1988 against the specified section.
1989 (elf_xtensa_relocate_section): Use output address to check if dynamic
1990 reloc is in a literal pool. Set section's reloc_done flag.
1992 2004-04-27 H.J. Lu <hongjiu.lu@intel.com>
1994 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
1995 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
1997 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
2000 2004-04-27 Alan Modra <amodra@bigpond.net.au>
2002 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
2003 structure field removed in 2004-04-24 patch.
2004 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
2006 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
2008 * elf32-arm.h (elf32_arm_section_flags): Likewise.
2009 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
2010 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
2011 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
2012 field before calling elf_backend_section_flags.
2014 2004-04-24 Chris Demetriou <cgd@broadcom.com>
2016 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
2017 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
2018 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
2019 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
2020 and BFD_RELOC_32_PCREL.
2021 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
2022 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
2023 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
2024 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
2025 (mips_elf_next_relocation): Move comment about matching HI/LO
2027 (_bfd_mips_elf_relocate_section): Here. Remove handling for
2028 R_MIPS_GNU_REL_HI16.
2030 2004-04-23 Chris Demetriou <cgd@broadcom.com>
2032 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
2033 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
2034 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
2035 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
2036 and update comments to reflect current usage.
2037 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
2038 and MIPS_R_SWITCH, as well as several empty entries. Update comment
2040 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
2041 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
2042 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
2043 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
2044 type number to be MIPS_R_PCREL16.
2045 (mips_relocate_section): Remove support for link-time relaxation
2046 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
2047 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
2048 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
2049 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
2050 relaxation of branches used by embedded-PIC.
2051 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
2052 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
2053 related members, update comment.
2054 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
2055 code related to embedded-PIC.
2056 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
2057 initialization of now-removed 'adjust' member of
2058 'struct ecoff_debug_info'.
2060 2004-04-23 Chris Demetriou <cgd@broadcom.com>
2062 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
2064 2004-04-21 Philip Blundell <pb@nexus.co.uk>
2066 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
2067 relocs for locally defined symbols during -shared final link.
2068 (elf32_arm_final_link_relocate): Likewise.
2070 2004-04-22 Jakub Jelinek <jakub@redhat.com>
2072 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
2073 ELF_LINK_POINTER_EQUALITY_NEEDED.
2074 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
2075 if r_type is not R_X86_64_PC32.
2076 (elf64_x86_64_finish_dynamic_symbol): If
2077 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
2080 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2082 * elf32-sh.c (sh_elf_plt_sym_val): New function.
2083 (elf_backend_plt_sym_val): Define.
2085 2004-04-22 Andrew Cagney <cagney@redhat.com>
2087 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
2089 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2091 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
2093 * som.c (som_set_section_contents): Constantify second argument.
2094 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
2095 (som_object_setup): Rework to avoid warning.
2096 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
2099 2004-04-22 Andrew Cagney <cagney@redhat.com>
2101 * cache.c (bfd_cache_close): Check for a previously closed file.
2103 2004-04-22 Jakub Jelinek <jakub@redhat.com>
2105 * bfd.c (bfd_get_synthetic_symtab): Define.
2106 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
2107 NAME##_get_synthetic_symtab.
2108 (struct bfd_target): Add _bfd_get_synthetic_symtab.
2109 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
2110 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
2112 (_bfd_elf_get_synthetic_symtab): New prototype.
2113 * elfcode.h (elf_get_synthetic_symtab): Define.
2114 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
2115 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
2116 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
2117 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
2118 * bfd-in2.h: Rebuilt.
2119 * libbfd.h: Rebuilt.
2120 * elf32-i386.c (elf_i386_plt_sym_val): New function.
2121 (elf_backend_plt_sym_val): Define.
2122 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
2123 (elf_backend_plt_sym_val): Define.
2124 * elf32-s390.c (elf_s390_plt_sym_val): New function.
2125 (elf_backend_plt_sym_val): Define.
2126 * elf64-s390.c (elf_s390_plt_sym_val): New function.
2127 (elf_backend_plt_sym_val): Define.
2128 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
2129 (elf_backend_plt_sym_val): Define.
2130 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
2131 (elf_backend_plt_sym_val): Define.
2132 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
2133 (elf_backend_plt_sym_val): Define.
2134 * aout-target.h (MY_get_synthetic_symtab): Define.
2135 * aout-tic30.c (MY_get_synthetic_symtab): Define.
2136 * coff-rs6000.c (rs6000coff_vec): Add
2137 _bfd_nodynamic_get_synthetic_symtab.
2138 (pmac_xcoff_vec): Likewise.
2139 * coff64-rs6000.c (rs6000coff64_vec): Add
2140 _bfd_nodynamic_get_synthetic_symtab.
2141 (aix5coff64_vec): Likewise.
2142 * sunos.c (MY_get_synthetic_symtab): Define.
2143 * vms.c (vms_get_synthetic_symtab): Define.
2145 2004-04-22 Nick Clifton <nickc@redhat.com>
2147 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
2149 2004-04-22 Peter Barada <peter@the-baradas.com>
2151 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
2152 * bfd2-in.h: Regenerate.
2153 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
2155 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2157 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
2158 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
2159 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
2160 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
2161 * bfd-in2.h: Regenerate.
2163 2004-04-21 Bob Wilson <bob.wilson@acm.org>
2165 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
2166 require relocations against a weak symbol to reference the same
2167 symbol hash entry if not a final, static link.
2168 (get_cached_value, add_value_map): Add final_static_link argument.
2169 (remove_literals): Pass final_static_link argument as needed.
2171 2004-04-21 Andrew Cagney <cagney@redhat.com>
2173 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
2174 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
2175 (opncls_bwrite, opncls_bclose, opncls_bflush)
2176 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
2177 bfd iovec that uses function callbacks.
2178 (bfd_close): Use the iovec's bclose.
2179 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
2180 (cache_bclose, cache_bflush, cache_bstat)
2181 (cache_iovec): New functions and global variable, implement a
2182 cache "iovec", where applicable set bfd_error.
2183 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
2184 * bfdio.c (struct bfd_iovec): Define.
2185 (real_read): Delete function.
2186 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
2187 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
2188 assume that bread and bwrite set bfd_error.
2189 * bfd.c (struct bfd): Add "iovec", update comments.
2190 * bfd-in2.h, libbfd.h: Re-generate.
2192 2004-04-21 Andrew Cagney <cagney@redhat.com>
2194 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
2196 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2198 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
2199 (bfd_elf_gc_sections): Fail if a shared object is being created.
2200 Do not fail if dynamic sections have been created. Instead call
2201 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
2202 dynamically referenced symbols. Do not mark the whole graph
2203 rooted at .eh_frame, only the section proper.
2205 2004-04-20 DJ Delorie <dj@redhat.com>
2207 * reloc.c: Add BFD_RELOC_32_SECREL.
2208 * bfd-in2.h: Regenerate.
2209 * libbfd.h: Likewise.
2210 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
2211 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
2212 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
2214 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2216 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
2217 relocs against hidden/protected undefweak symbols properly.
2218 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2220 2004-04-18 Mark Kettenis <kettenis@gnu.org>
2222 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
2223 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
2226 2004-04-17 Brian Ford <ford@vss.fsi.com>
2228 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
2229 filepos for the SizeOfHeaders field.
2230 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
2232 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
2234 2004-04-16 Alan Modra <amodra@bigpond.net.au>
2236 * simple.c (bfd_simple_get_relocated_section_contents): Don't
2237 change reloc_done. Set and restore _cooked_size.
2240 2004-04-15 Mark Kettenis <kettenis@gnu.org>
2242 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
2245 2004-04-15 Nick Clifton <nickc@redhat.com>
2247 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
2249 2004-04-15 Alan Modra <amodra@bigpond.net.au>
2251 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
2253 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
2255 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
2256 when it is a definition.
2258 2004-04-14 Alan Modra <amodra@bigpond.net.au>
2260 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
2261 when statically linking PIC code.
2262 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2264 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2266 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
2267 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
2268 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
2269 * configure: Regenerate.
2271 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2273 * elflink.c: Include libiberty.h.
2274 * Makefile.am (elflink.lo): Depend on libiberty.h.
2275 * Makefile.in: Regenerate.
2277 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
2279 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
2282 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
2284 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
2285 reserve the memory for dynamic linker
2287 2004-04-05 Mark Kettenis <kettenis@gnu.org>
2289 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
2290 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
2292 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
2294 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
2295 RELOC_FOR_GLOBAL_SYMBOL.
2296 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
2298 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
2300 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2301 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
2303 2004-04-01 Paul Brook <paul@codesourcery.com>
2305 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
2306 * elf32-arm.h (struct elf32_elf_section_map): New.
2307 (struct _arm_elf_section_data): New.
2308 (elf32_arm_section_data): Define.
2309 (struct elf32_arm_link_hash_table): Add byteswap_code.
2310 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
2311 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
2312 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
2313 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
2314 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
2315 (bfd_elf32_new_section_hook, elf_backend_write_section,
2316 elf_backend_link_output_symbol_hook): Define.
2318 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
2320 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
2321 that keeps the characters in a B_INCL..B_EINCL range.
2322 (_bfd_link_section_stabs): When computing the sum of the
2323 characters in a B_INCL..B_EINCL range also keep a copy of those
2324 characters. Use this information to distinguish between
2325 include sections that have the same sum and the same length
2326 but which are nevertheless unique.
2328 2004-03-31 Paul Brook <paul@codesourcery.com>
2330 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
2331 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
2333 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
2335 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
2336 to 'sum_chars' and add field 'num_chars'.
2337 (_bfd_link_section_stabs): When computing the sum of the
2338 characters in a B_INCL..B_EINCL range also keep a count of the
2339 number of characters. Use this information to help distinguish
2340 between include sections when have the same sum but which
2341 nevertheless are still unique.
2343 2004-03-31 Mattias Engdegård <mattias@virtutech.se>
2345 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
2347 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2348 Tomer Levi <Tomer.Levi@nsc.com>
2350 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
2351 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
2352 (BFD32_BACKENDS): Add elf32-cr16c.lo.
2353 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
2354 (cpu-cr16c.lo): New target.
2355 (elf32-cr16c.lo): Likewise.
2356 * Makefile.in: Regenerate.
2357 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
2358 (bfd_archures_list): Add bfd_cr16c_arch.
2359 * config.bfd: Handle cr16c-*-elf*.
2360 * configure.in: Handle bfd_elf32_cr16c_vec.
2361 * configure: Regenerate.
2362 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
2363 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
2364 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
2365 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
2366 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
2367 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
2368 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
2369 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
2370 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
2371 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
2372 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
2373 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
2374 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
2375 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
2376 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
2377 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
2378 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
2379 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
2380 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
2381 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
2382 * targets.c (bfd_elf32_cr16c_vec): Declare.
2383 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
2384 * cpu-cr16c.c: New file.
2385 * elf32-cr16c.c: Likewise.
2386 * libbfd.h: Regenerate.
2387 * bfd-in2.h: Likewise.
2389 2004-03-30 Jakub Jelinek <jakub@redhat.com>
2391 * elf.c (map_sections_to_segments): Fix handling of .tbss.
2393 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2395 * Makefile.am: Remove all mention of elflink.h.
2396 * Makefile.in: Regenerate.
2397 * bfd-in.h (bfd_elf_discard_info): Declare.
2398 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
2399 * bfd-in2.h: Regenerate.
2400 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
2401 bfd_elf32_link_record_dynamic_symbol,
2402 bfd_elf64_link_record_dynamic_symbol,
2403 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
2404 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
2405 _bfd_elf32_link_record_local_dynamic_symbol,
2406 _bfd_elf64_link_record_local_dynamic_symbol,
2407 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
2408 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
2409 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
2410 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
2411 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
2412 _bfd_elf32_reloc_symbol_deleted_p,
2413 _bfd_elf64_reloc_symbol_deleted_p): Delete.
2414 (bfd_elf_link_record_dynamic_symbol,
2415 bfd_elf_link_record_local_dynamic_symbol,
2416 bfd_elf_final_link, bfd_elf_gc_sections,
2417 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
2418 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
2419 bfd_elf_reloc_symbol_deleted_p): Declare.
2420 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2421 * elf32-arm.h: Update for changed function names. Remove local
2422 WILL_CALL_FINISH_DYNAMIC_SECTION define.
2423 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
2424 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
2425 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
2426 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
2427 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
2428 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
2429 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
2430 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
2431 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
2432 (bfd_elfNN_print_symbol): Define.
2433 * elfcode.h: Don't include elflink.h.
2434 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
2435 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
2436 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
2437 elf_gc_record_vtinherit, elf_gc_record_vtentry,
2438 elf_link_record_local_dynamic_symbol): Don't define.
2439 * elflink.c: Update for changed function names. Move elflink.h
2441 * elflink.h: Delete file.
2442 * po/SRC-POTFILES.in: Regenerate.
2443 * po/bfd.pot: Regenerate.
2445 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2447 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
2448 "name" for global syms accidentally removed in 2004-03-20 change.
2450 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2452 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
2453 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
2454 where Elf_External_* is different for 64 and 32 bit, with
2455 corresponding elf_size_info field.
2456 (struct elf_final_link_info): Use "bfd_byte *" instead
2457 of "Elf_External_Sym *" for external_syms and symbuf.
2458 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
2459 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
2460 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
2461 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
2462 (elf_link_sort_cmp2): Adjust.
2463 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
2464 using ELF_R_SYM macro. Set u.sym_mask.
2465 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
2466 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
2467 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
2468 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
2469 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
2470 swap_syn_out functions. Rearrange dyn swap in/out switch.
2471 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
2472 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
2473 (elf_link_flush_output_syms): Add elf_backend_data arg.
2474 (elf_link_check_versioned_symbol): Likewise.
2475 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
2476 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
2477 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
2478 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
2479 ELF_R_TYPE and ELF_R_INFO macros.
2480 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
2481 based on size rather than using ELF_R_INFO.
2482 (elf_gc_mark): Set up r_sym_shift local var and use instead of
2484 (struct alloc_got_off_arg): New.
2485 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
2486 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
2487 (elf_gc_allocate_got_offsets): Adjust.
2488 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
2489 ELF_R_SYM. Use bfd_section_from_elf_index.
2490 (elf_bfd_discard_info): Set cookie.r_sym_shift.
2491 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
2492 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
2494 2004-03-26 Stan Shebs <shebs@apple.com>
2496 Remove MPW support, no longer used.
2497 * config.bfd (powerpc-*-mpw*): Remove configuration.
2498 * mpw-config.in, mpw-make.sed: Remove files.
2499 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
2501 2004-03-26 Alan Modra <amodra@bigpond.net.au>
2503 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
2504 (ppc64_elf_add_symbol_hook): New function.
2505 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
2506 const from Elf_Internal_Sym param.
2507 * elflink.c (elf_link_add_object_symbols): Adjust.
2508 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
2509 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
2510 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
2511 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
2512 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
2513 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
2514 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
2515 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
2516 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
2517 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
2518 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
2519 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
2520 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
2521 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
2522 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
2523 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
2525 2004-03-26 Alan Modra <amodra@bigpond.net.au>
2527 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
2528 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
2529 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
2530 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
2531 (bfd_elf64_bfd_link_add_symbols): Delete.
2532 (bfd_elf_link_add_symbols): Declare.
2533 * elfcode.h (elf_bfd_link_add_symbols): Delete.
2534 * elflink.c: Include safe-ctype.h.
2535 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
2537 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
2538 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
2540 (elf_link_add_archive_symbols): Rename from
2541 _bfd_elf_link_add_archive_symbols, make static.
2542 (elf_link_add_object_symbols): New function. Corresponding
2543 elflink.h function converted to use elf_size_info.
2544 (bfd_elf_link_add_symbols): Likewise.
2545 (bfd_elf_size_dynamic_sections): Adjust.
2546 * elflink.h (elf_bfd_link_add_symbols): Delete.
2547 (elf_link_add_object_symbols): Delete.
2548 * elf32-gen.c (elf32_generic_link_add_symbols): Call
2549 bfd_elf_link_add_symbols.
2550 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
2552 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2554 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
2555 and chained shared libs only if dynsym. Clear dynsym on forced-local.
2557 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
2558 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
2559 (_bfd_elf_add_dt_needed_tag): Declare.
2560 (_bfd_elf_sort_symbol): Declare.
2561 (_bfd_elf_finalize_dynstr): Declare.
2562 (RELOC_FOR_GLOBAL_SYM): Formatting.
2563 * elfcode.h (elf_add_dynamic_entry): Delete.
2564 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
2565 elflink.h function converted to use elf_size_info.
2566 (_bfd_elf_add_dt_needed_tag): Likewise.
2567 (_bfd_elf_sort_symbol): Likewise.
2568 (_bfd_elf_finalize_dynstr): Likewise.
2569 (compute_bucket_count): Likewise.
2570 (bfd_elf_size_dynamic_sections): Likewise. Check result of
2571 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
2572 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
2573 * elflink.h: ..here.
2574 (sort_symbol, add_dt_needed_tag): Delete.
2575 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
2576 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
2578 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
2579 * elf32-cris.c (add_dynamic_entry): Likewise.
2580 * elf32-hppa.c (add_dynamic_entry): Likewise.
2581 * elf32-i370.c (add_dynamic_entry): Likewise.
2582 * elf32-i386.c (add_dynamic_entry): Likewise.
2583 * elf32-m32r.c (add_dynamic_entry): Likewise.
2584 * elf32-m68k.c (add_dynamic_entry): Likewise.
2585 * elf32-ppc.c (add_dynamic_entry): Likewise.
2586 * elf32-s390.c (add_dynamic_entry): Likewise.
2587 * elf32-sh.c (add_dynamic_entry): Likewise.
2588 * elf32-sparc.c (add_dynamic_entry): Likewise.
2589 * elf32-vax.c (add_dynamic_entry): Likewise.
2590 * elf32-xtensa.c (add_dynamic_entry): Likewise.
2591 * elf64-alpha.c (add_dynamic_entry): Likewise.
2592 * elf64-hppa.c (add_dynamic_entry): Likewise.
2593 * elf64-ppc.c (add_dynamic_entry): Likewise.
2594 * elf64-s390.c (add_dynamic_entry): Likewise.
2595 * elf64-sparc.c (add_dynamic_entry): Likewise.
2596 * elf64-x86-64.c (add_dynamic_entry): Likewise.
2597 * elfxx-ia64.c (add_dynamic_entry): Likewise.
2598 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
2599 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
2600 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
2601 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
2603 2004-03-23 Paul Brook <paul@codesourcery.com>
2605 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
2607 2004-03-22 Bob Wilson <bob.wilson@acm.org>
2609 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
2610 literal tables and check for relocs outside of literal pools.
2611 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
2612 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
2614 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
2615 (elf_xtensa_relocate_section): Read literal tables and check for
2616 dynamic relocations in read-only sections and not in literal pools.
2618 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2621 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
2623 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2625 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
2626 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
2627 not defined by the executable, or defined in a DSO.
2628 <eliding run-time relocation of .got>: Initialize GOT entry for a
2629 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
2631 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
2632 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
2633 a PLT reloc to GOT for an executable.
2634 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
2635 .got for a DSO and explain why.
2636 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
2637 and unreferenced symbols for which a PLT is defined. Adjust
2638 dynamic-symbol pruning correspondingly, to make sure we don't lose
2639 a dynamic symbol also defined by a DSO.
2641 2004-03-22 Alan Modra <amodra@bigpond.net.au>
2643 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
2644 and rel args. Group input and output args. Wrap to 80 columns.
2645 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
2646 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
2647 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
2648 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
2649 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
2650 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
2651 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
2652 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
2653 RELOC_FOR_GLOBAL_SYMBOL invocation.
2655 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2657 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
2658 unresolved symbols in objects aren't allowed.
2660 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
2662 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2663 (elf_hppa_unmark_useless_dynamic_symbols):
2664 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
2665 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2666 (elf32_hppa_relocate_section): Likewise.
2667 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2668 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2669 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2670 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2671 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
2673 * elf-m10200.c (mn10200_elf_relocate_section): Use
2674 RELOC_FOR_GLOBAL_SYMBOL.
2675 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
2676 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
2677 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
2678 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
2679 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
2680 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
2681 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2682 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
2683 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
2684 * elf32-v850.c (v850_elf_relocate_section): Likewise.
2685 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
2686 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
2688 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2690 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
2691 (final_link_relocate): Likewise.
2692 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
2693 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
2695 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2697 * Makefile.am: Run "make dep-am".
2698 * Makefile.in: Regenerate.
2699 * aclocal.m4: Regenerate.
2700 * config.in: Regenerate.
2701 * po/bfd.pot: Regenerate.
2703 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2704 H.J. Lu <hongjiu.lu@intel.com>
2706 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
2707 type and size change code to where it was previously. Remove
2708 dt_needed param. Treat old weak syms as strong if new sym is
2709 from a shared lib, even when old sym is from another shared
2710 lib. Remove unnecessary tests of oldweak and newweak. Correct
2712 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
2713 _bfd_elf_merge_symbol calls.
2714 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
2715 dt_needed local var. Update comments.
2716 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
2717 (_bfd_elf_add_default_symbol): Likewise.
2719 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
2720 strong syms in one shared object overriding weak syms in another.
2722 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2724 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
2725 dyn_lib_class field. Rearrange for better packing.
2726 (elf_dt_soname): Delete.
2727 (elf_dyn_lib_class): Define.
2728 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
2729 (bfd_elf_set_dt_needed_soname): Delete.
2730 (bfd_elf_set_dyn_lib_class): New function.
2731 * elflink.h (add_dt_needed_tag): New function. Split out from..
2732 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
2733 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
2734 initialization of soname.
2735 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
2737 * bfd-in.h (enum dynamic_lib_link_class): New.
2738 (bfd_elf_set_dt_needed_soname): Delete.
2739 (bfd_elf_set_dyn_lib_class): Declare.
2740 * bfd-in2.h: Regenerate.
2742 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
2743 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
2744 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
2745 symbol loop. Instead use add_needed to flag tag as written.
2747 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
2749 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
2750 logic for null_input_bfd detection.
2752 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2754 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2756 2004-03-16 Mark Kettenis <kettenis@gnu.org>
2758 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
2761 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2763 * elflink.c (elf_link_read_relocs_from_section): Don't use
2764 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
2765 (_bfd_elf_link_read_relocs): ..to here.
2766 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
2768 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2770 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
2771 values selected in configure.host. Require both to be defined
2772 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
2773 corresponding BFD_HOST vars with quotes.
2774 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
2775 Always require BFD_HOST_64_BIT_DEFINED.
2776 <file_ptr type>: Find off_t size before emitting message. Combine
2777 off_t and ftello64 conditional.
2778 * configure: Regenerate.
2780 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2782 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
2783 aliasing warning. Remove trailing whitespace throughout file.
2785 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2787 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
2788 input_section in calls to get_dyn_name.
2789 * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for
2791 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
2793 2004-03-15 Alan Modra <amodra@bigpond.net.au>
2795 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
2796 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
2797 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
2798 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
2799 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
2800 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
2801 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
2803 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
2804 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
2805 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
2806 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
2807 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
2808 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
2809 (read_8_bytes, read_indirect_string, read_address): Likewise.
2810 (read_abbrevs, parse_comp_unit): Likewise.
2811 * targets.c (struct bfd_target): Likewise.
2812 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
2813 * hppabsd-core.c: Likewise. Formatting.
2814 * hpux-core.c: Likewise.
2815 * irix-core.c: Likewise.
2816 * netbsd-core.c: Likewise.
2817 * osf-core.c: Likewise.
2818 * ptrace-core.c: Likewise.
2819 * sco5-core.c: Likewise.
2820 * trad-core.c: Likewise.
2821 * configure: Regenerate.
2822 * bfd-in2.h: Regenerate.
2824 2004-03-15 Alan Modra <amodra@bigpond.net.au>
2826 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
2827 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
2828 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
2829 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
2830 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
2831 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
2832 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
2833 * libbfd.c: Likewise in function definitions.
2834 (bfd_put_8): Mask with 0xff rather than casting to char.
2835 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
2836 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
2837 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
2838 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
2839 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
2840 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
2841 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
2842 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
2843 (H_GET_64, H_GET_32, H_GET_16): Likewise.
2844 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
2845 * archive.c (do_slurp_coff_armap): Update swap prototype.
2846 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
2847 (tic54x_getl_signed_32): Likewise.
2848 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
2849 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
2850 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
2851 (bfd_getp_signed_32, bfd_putp32): Likewise.
2852 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
2853 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
2854 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
2855 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
2856 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
2857 bfd_h_getx_signed_16, bfd_h_putx16.
2858 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
2859 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
2860 * hpux-core.c: Likewise.
2861 * irix-core.c: Likewise.
2862 * netbsd-core.c: Likewise.
2863 * osf-core.c: Likewise.
2864 * ptrace-core.c: Likewise.
2865 * sco5-core.c: Likewise.
2866 * trad-core.c: Likewise.
2867 * bfd-in2.h: Regenerate.
2869 2004-03-15 Matt Thomas <matt@3am-software.com>
2871 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
2874 2004-03-13 Mark Kettenis <kettenis@gnu.org>
2876 * config.bfd: Add x86_64-*-openbsd*.
2877 * configure.in (x86_64-*-openbsd*): Set COREFILE to
2879 * configure: Regenerate.
2881 2004-03-12 Nick Clifton <nickc@redhat.com>
2882 Dave Murphy <wintermute2k4@ntlworld.com>
2884 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
2885 if the input bfd does not contain any code.
2887 2004-03-09 Steve Ellcey <sje@cup.hp.com>
2889 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
2891 2004-03-05 Fred Fish <fnf@redhat.com>
2893 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
2894 mips16 symbols to be even rather than testing first for even/odd.
2895 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
2897 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2899 * elf.c (map_sections_to_segments): Ignore .tbss sections for
2902 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
2904 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
2905 undefined symbols as hash_new.
2907 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
2909 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
2911 * elf32-sh.c: Ditto.
2912 * bfd-in2.h: Regenerate.
2914 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
2916 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
2918 (_frv_count_got_plt_entries): Initialize them.
2919 (frv_pic_relocs_info_find): Add insert argument. Adjust all
2921 (frv_pic_relocs_info_for_global): Likewise.
2922 (frv_pic_relocs_info_for_local): Likewise.
2923 (frv_pic_merge_early_relocs_info): New.
2924 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
2926 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
2927 Check that we don't exceed the allocated count for entry.
2928 (_frv_add_rofixup): Likewise.
2929 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
2930 (elf32_frv_finish_dynamic_sections): Improve error message in case
2931 we emit too few rofixup entries.
2933 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
2935 * archures.c (bfd_mach_fr450): New.
2936 * bfd-in2.h: Regenerate.
2937 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
2938 (arch_info_500): Link to it.
2939 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
2940 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
2941 (frv_elf_arch_extension_p): New function.
2942 (frv_elf_merge_private_bfd_data): Use it.
2944 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
2946 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
2948 * elflink.h (is_global_data_symbol_definition): Moved to
2950 (elf_link_is_defined_archive_symbol): Likewise.
2951 (elf_link_add_archive_symbols): Likewise. Renamed to
2952 _bfd_elf_link_add_archive_symbols.
2954 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
2955 of ELF symbol table entry from backend.
2956 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
2957 instead of elf_link_add_object_symbols.
2959 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
2961 * elf-bfd.h (struct elf_backend_data): Added
2962 elf_backend_can_make_relative_eh_frame,
2963 elf_backend_can_make_lsda_relative_eh_frame and
2964 elf_backend_encode_eh_address.
2965 (_bfd_elf_encode_eh_address): Declare.
2966 (_bfd_elf_can_make_relative): Declare.
2967 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
2968 hooks to decide whether to attempt to make_relative and
2970 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
2971 (_bfd_elf_can_make_relative): New.
2972 (_bfd_elf_encode_eh_address): New.
2973 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
2974 (frv_elf_encode_eh_address): New.
2975 (elf_backend_can_make_relative_eh_frame): Define.
2976 (elf_backend_can_make_lsda_relative_eh_frame): Define.
2977 (elf_backend_encode_eh_address): Define.
2979 (elf_backend_can_make_relative_eh_frame): Define.
2980 (elf_backend_can_make_lsda_relative_eh_frame): Define.
2981 (elf_backend_encode_eh_address): Define.
2982 (elfNN_bed): Add them.
2984 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
2986 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
2987 complain_on_overflow to signed.
2989 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
2991 * elflink.h (sort_symbol): New.
2992 (elf_link_add_object_symbols): Use a sorted symbol array for
2995 2004-02-27 Jakub Jelinek <jakub@redhat.com>
2997 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
2998 for pc relative relocs.
2999 (elf_s390_relocate_section): Likewise.
3000 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
3001 for pc relative relocs.
3002 (elf_s390_relocate_section): Likewise.
3004 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
3006 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
3009 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
3011 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
3012 field to track if a relocation is against readonly section.
3013 (count_dyn_reloc): Take a new argument for rent->reltext.
3014 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
3015 (get_reloc_section): Don't set ia64_info->reltext here.
3016 (allocate_dynrel_entries): Set ia64_info->reltext here.
3018 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
3020 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
3021 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
3022 function's descriptor to symbol+offset, and map local undefweak
3023 symbol to NULL function descriptor.
3024 (elf32_frv_relocate_section): Likewise.
3026 2004-02-23 Mark Kettenis <kettenis@gnu.org>
3028 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
3030 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
3031 (netbsd_core_file_p): Set architecture from machine ID for
3034 2004-02-23 Jakub Jelinek <jakub@redhat.com>
3036 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
3037 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
3039 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
3041 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
3042 symbols with non-default visibility.
3044 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
3046 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
3047 IMAGE_SCN_MEM_WRITE on known sections only.
3049 2004-02-20 Jakub Jelinek <jakub@redhat.com>
3051 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
3052 symbols used in PIE relocs.
3054 2004-02-19 Jakub Jelinek <jakub@redhat.com>
3056 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
3059 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
3061 * configure.in: Update version to 2.15.90.
3062 * configure: Regenerate.
3064 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
3065 Richard Sandiford <rsandifo@redhat.com>
3067 * elfxx-mips.c (mips_elf_calculate_relocation): Use
3068 _bfd_elf_symbol_refs_local_p to decide whether to decay
3069 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
3070 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
3071 relocs if the symbol wasn't defined by a regular object file.
3072 Don't check the symbol's dynindx.
3074 2004-02-16 Andrew Cagney <cagney@redhat.com>
3076 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
3078 * bfd-in2.h: Re-generate.
3080 2004-02-14 Andrew Cagney <cagney@redhat.com>
3082 * configure.host (HDEFINES): When hppa*-*-hpux*, define
3083 _LARGEFILE64_SOURCE.
3085 2004-02-13 Andrew Cagney <cagney@redhat.com>
3087 * elf.c (vma_page_aligned_bias): New function.
3088 (assign_file_positions_except_relocs)
3089 (assign_file_positions_for_segments): Replace broken modulo
3090 arithmetic with call to vma_page_aligned_bias.
3092 2004-02-11 Andrew Cagney <cagney@redhat.com>
3094 * bfd-in.h: Update copyright.
3095 (bfd_tell): Change return type to file_ptr.
3096 * bfd-in2.h: Re-generate.
3097 * cache.c: Update copyright.
3098 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
3100 (close_one): Use real_ftell.
3101 * bfdio.c: Update copyright.
3102 (real_ftell, real_fseek): New functions.
3103 (bfd_tell): Use real_fseek and real_ftell, change return type to
3105 (bfd_seek): Use real_ftell and real_fseek, change type of
3106 file_position to a file_ptr.
3107 * libbfd-in.h: Update copyright.
3108 (real_ftell, real_fseek): Declare.
3109 * libbfd.h: Re-generate.
3111 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
3112 fseeko and fseeko64. Determine bfd_file_ptr.
3113 * configure: Re-generate.
3114 * config.in: Re-generate.
3116 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
3118 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
3119 * elf32-h8300.c: Likewise.
3121 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
3122 Nick Clifton <nickc@redhat.com>
3124 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
3125 GOT entries with no associated GOT subsection.
3127 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
3129 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
3130 * elf.c (swap_out_syms): Use it to decide whether local section
3131 symbols should be named.
3132 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
3133 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
3134 (elf_backend_name_local_section_symbols): Define.
3135 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
3137 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
3139 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
3140 (elfNN_ia64_relax_section): Optimize brl to br during the relax
3143 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
3145 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
3146 to bfd_link_hash_entry passed by reference to
3147 _bfd_generic_link_add_one_symbol.
3149 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
3151 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
3152 relocations against dynamic symbols.
3154 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
3156 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
3159 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
3161 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
3162 * bfd-in2.h, libbfd.h: Rebuilt.
3164 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3166 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
3167 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
3168 flag has been cleared.
3170 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
3172 * coff-h8300.c: Add and adjust comments about relaxation.
3173 * elf32-h8300.c: Likewise.
3175 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
3177 * coff-h8300.c: Fix comment typos.
3178 * elf32-h8300.c: Likewise.
3180 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
3182 * coff-h8300.c: Add comments about relaxation.
3183 * elf32-h8300.c: Likewise.
3185 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3187 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
3189 * aclocal.m4: Regenerate.
3190 * configure: Regenerate.
3192 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
3194 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
3195 mips_elf64_rtype_to_howto instead of using howto_table.
3197 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
3199 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
3201 (elf32_arm_check_relocs): Don't increment the PLT refcount for
3202 relocs which would not use the PLT.
3204 2004-01-13 Alan Modra <amodra@bigpond.net.au>
3206 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
3207 (ppc64_elf_gc_sweep_hook): Likewise.
3208 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
3210 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
3212 Adds linker relaxation support for bit manipulation insns like
3213 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
3215 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
3216 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
3217 * coff-h8300.c: Opcode for bit manipulation insn is checked in
3218 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
3220 2004-01-12 Alan Modra <amodra@bigpond.net.au>
3222 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
3224 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
3226 * elf32-h8300.c: Fix formatting.
3228 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
3230 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
3231 dynamic object is present. Declare r_symndx and h in an inner
3233 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
3235 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
3237 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
3238 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
3239 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
3240 identically. Do not emit PC24 relocations for shared libraries.
3241 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
3242 identically. Don't adjust pc_count.
3243 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
3244 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
3245 adjust count for branch relocations.
3246 (allocate_dynrelocs): Correct typo in call to
3247 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
3248 PC24 or PLT32 relocs when linking.
3250 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
3252 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
3253 relocation howto with ARM_26 one for consistency.
3254 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
3255 that will be converted to ARM_26D ones, since we always want 'done'
3256 relocations to be reflected in section's data.
3257 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
3259 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
3262 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
3264 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
3265 are not partial_inplace during a relocatable link.
3267 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
3269 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
3270 if no dynamic object is present. Declare r_symndx and h in an
3273 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
3275 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
3276 trampoline if it is known out of range.
3278 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
3280 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
3281 * elf32-frv.c (_frv_osec_readonly_p): New.
3282 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
3284 (_frv_count_got_plt_entries): Adjust expected count accordingly.
3285 (elf32_frv_relocate_section): Likewise. Error out if attempting
3286 to emit rofixups or dynamic relocs in read-only segments. Use
3287 _bfd_elf_section_offset to adjust r_offsets in rofixups and
3288 dynamic relocations.
3289 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
3290 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
3291 relocations or fixups involving merged sections correctly. Avoid
3292 crash when undefined symbol is referenced by R_FRV_32 or
3293 R_FRV_FUNCDESC_VALUE.
3294 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
3295 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
3296 input section holding local symbol to addend of R_FRV_32 or
3297 R_FRV_FUNCDESC_VALUE dynamic relocation.
3298 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
3299 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
3300 (elf32_frv_always_size_sections): Don't store pointer to
3301 __stacksize symbol in sec_info.
3302 (elf32_frv_modify_segment_map): Look it up here.
3303 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
3304 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
3305 of the lazy PLT entry, not only its offset, as the low word of a
3306 function descriptor.
3307 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
3308 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
3309 if a hash table entry already exists but is not a definition.
3310 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3311 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
3312 (_frv_add_rofixup): Don't inline.
3313 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
3314 for undefweak symbols.
3315 (elf32_frv_relocate_section): Avoid crash while computing
3316 relocation when linking with shared library. Only emit rofixups
3317 and dynamic relocations for alloc&load sections. Mark binaries
3318 with inter-segment relocations for relocation as a unit.
3319 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
3320 (DEFAULT_STACK_SIZE): New.
3321 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
3322 emit rofixups or dynamic relocs when linking dynamic non-PIE
3324 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
3325 shared libs too. Reserve the last entry for the GOT pointer.
3326 (elf32_frv_finish_dynamic_sections): Emit it.
3327 (elf32_frv_always_size_sections): New.
3328 (elf32_frv_modify_segment_map): New.
3329 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
3331 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
3332 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
3333 (elf_backend_always_size_sections): New.
3334 (elf_backend_modify_segment_map): New.
3335 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3336 * config.bfd: Added frv-*-*linux*.
3337 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
3338 ABS section, instead of crashing.
3339 (elf32_frv_relocate_section): Don't crash before warning about
3340 different segments in non-PIC relocation.
3341 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
3342 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
3343 relocs to undefweak symbols.
3344 (elf32_frv_relocate_section): Ditto for undefined symbols.
3345 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
3346 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
3347 gotfixup section was created.
3348 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3349 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
3350 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
3351 complain_overflow_signed.
3352 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
3353 have not been allocated.
3354 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
3355 privfd only if dynamic sections were created.
3356 (elf32_frv_relocate_section): Compute gprel_segment, and use it
3357 for GPREL relocs. When linking relocatable FDPIC executables,
3358 emit warnings for relocations that would be illegal on PIE or
3359 shared libraries. Emit rofixup for R_FRV_32 only if input object
3361 (_frv_create_got_section): Define _gp symbol in the rofixup
3363 (elf32_frv_finish_dynamic_sections): If rofixups needed but
3364 dynamic sections missing, error out requesting -melf32frvfd.
3365 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
3366 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
3367 computation of addends from section and global or local symbol
3368 value. Change return type to bfd_boolean, and return a failure if
3369 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
3370 nonzero addend is required.
3371 (elf32_frv_relocate_section): Likewise. Print error for
3372 unsupported nonzero addends.
3373 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3374 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
3375 force everything local.
3376 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
3377 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
3378 (frv_gotfixup_section): New.
3379 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
3380 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
3382 (_frv_add_rofixup): New.
3383 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
3384 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
3385 improve some ugly conditions.
3386 (elf32_frv_relocate_section): Likewise. Reject inter-segment
3387 relocations in fdpic.
3388 (_frv_create_got_section): Create .rofixup.got section.
3389 (struct _frv_dynamic_got_info): Added fixups.
3390 (_frv_count_got_plt_entries): Account in-GOT relocations into
3391 relocs32, relocsfd and relocsfdv. Account them into relocs or
3392 fixups, as appropriate.
3393 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
3395 (elf32_frv_finish_dynamic_sections): Verify that the right number
3396 of relocations and fixups was generated.
3397 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
3399 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
3400 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
3401 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
3402 descriptor of a (formerly-)global symbol is local.
3403 (struct frv_pic_relocs_info): Adjust comments.
3404 (_frv_emit_got_relocs_plt_entries): Adjust.
3405 (elf32_frv_relocate_section): Likewise.
3406 (_frv_count_got_plt_entries): Likewise.
3407 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
3408 symbol's value to addend in the common preamble. Decay dynamic
3409 symbols to section+offset if they bind or call locally, for GOT
3410 and FUNCDESC_VALUE, respectively.
3411 (elf32_frv_relocate_section): Likewise.
3412 (elf32_frv_check_relocs): Don't register as dynamic symbols of
3413 internal or hidden visibility.
3414 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
3415 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
3416 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
3417 (elf32_frv_relocate_section): Pass relocation addend in. Use
3418 original relocation addend to look up the got relocs/plt entries
3419 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
3420 processing relocations that reference .scommon symbols.
3421 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3422 Introduce support for dynamic linking.
3423 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
3424 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
3425 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
3426 (frv_reloc_type_lookup): Return REL howtos for executables and
3428 (frv_info_to_howto_rel): New.
3429 (struct frv_elf_link_hash_table): New.
3430 (frv_hash_table, frv_got_section, frv_gotrel_section,
3431 frv_plt_section, frv_pltrel_section, frv_relocs_info,
3432 frv_got_initial_offset, frv_plt_initial_offset): New macros.
3433 (frv_elf_link_hash_table_create): New.
3434 (struct frv_pic_relocs_info): New.
3435 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
3436 (frv_pic_relocs_info_find): New.
3437 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
3439 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
3440 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
3441 (_frv_emit_got_relocs_plt_entries): New.
3442 (elf32_frv_relocate_section): Add support for dynamic linking.
3443 Handle new relocations.
3444 (_frv_create_got_section): New.
3445 (elf32_frv_create_dynamic_sections): New.
3446 (ELF_DYNAMIC_INTERPRETER): New.
3447 (struct _frv_dynamic_got_info): New.
3448 (_frv_count_got_plt_entries): New.
3449 (struct _frv_dynamic_got_plt_info): New.
3450 (_frv_compute_got_alloc_data): New.
3451 (_frv_get_got_entry, _frv_get_fd_entry): New.
3452 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
3453 (_frv_resolve_final_relocs_info): New.
3454 (elf32_frv_size_dynamic_sections): New.
3455 (elf32_frv_finish_dynamic_sections): New.
3456 (elf32_frv_adjust_dynamic_symbol): New.
3457 (elf32_frv_finish_dynamic_symbol): New.
3458 (elf32_frv_check_relocs): Handle new relocs. Explain how the
3460 (elf_info_to_howto_rel): Define.
3461 (bfd_elf32_bfd_link_hash_table_create): Define.
3462 (elf_backend_create_dynamic_sections): Define.
3463 (elf_backend_adjust_dynamic_symbol): Define.
3464 (elf_backend_size_dynamic_sections): Define.
3465 (elf_backend_finish_dynamic_symbol): Define.
3466 (elf_backend_finish_dynamic_sections): Define.
3467 (elf_backend_want_got_sym): Define.
3468 (elf_backend_got_header_size): Define.
3469 (elf_backend_want_got_plt): Define.
3470 (elf_backend_plt_readonly): Define.
3471 (elf_backend_want_plt_sym): Define.
3472 (elf_backend_plt_header_size): Define.
3473 (elf_backend_may_use_rel_p): Define.
3474 (elf_backend_may_use_rela_p): Define.
3475 (elf_backend_default_use_rela_p): Define.
3476 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
3477 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
3478 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
3479 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
3480 (frv_reloc_map): Map the corresponding BFD relocs to them.
3481 (frv_reloc_type_lookup): ... and back to BFD relocs.
3482 * reloc.c: New relocs.
3483 * bfd-in2.h, libbfd.h: Rebuilt.
3484 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
3485 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
3486 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
3487 R_FRV_FUNCDESC_GOTLO): New.
3488 (frv_reloc_map): Map the corresponding BFD relocs to them.
3489 (frv_reloc_type_lookup): ... and back to BFD relocs.
3490 * reloc.c: New relocs.
3491 * bfd-in2.h, libbfd.h: Rebuilt.
3493 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3495 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
3496 targets to support pages of up to 64kB.
3497 (elf32_bed): Redefine to get a separate backend data structure for
3498 traditional targets.
3499 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
3500 targets to support pages of up to 64kB.
3501 (elf64_bed): Redefine to get a separate backend data structure for
3502 traditional targets.
3503 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
3504 targets to support pages of up to 64kB.
3505 (elf32_bed): Redefine to get a separate backend data structure for
3506 traditional targets.
3508 2004-01-04 Mark Kettenis <kettenis@gnu.org>
3510 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
3512 2004-01-02 Mark Kettenis <kettenis@gnu.org>
3514 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
3515 (elf_i386_grok_psinfo): Likewise.
3517 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3519 * config.bfd: Add m68k-uClinux target.
3521 2004-01-01 Grant Edwards <grante@visi.com>
3523 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
3524 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
3525 (elf32_h8_gc_sweep_hook): New function.
3526 (elf_backend_gc_mark_hook): Define.
3527 (elf_backend_gc_sweep_hook): Define.
3528 (elf_backend_can_gc_sections): Define.
3530 For older changes see ChangeLog-0203
3536 version-control: never