1 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3 * elf.c (map_sections_to_segments): Ignore .tbss sections for
6 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
8 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
9 undefined symbols as hash_new.
11 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
13 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
16 * bfd-in2.h: Regenerate.
18 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
20 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
22 (_frv_count_got_plt_entries): Initialize them.
23 (frv_pic_relocs_info_find): Add insert argument. Adjust all
25 (frv_pic_relocs_info_for_global): Likewise.
26 (frv_pic_relocs_info_for_local): Likewise.
27 (frv_pic_merge_early_relocs_info): New.
28 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
30 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
31 Check that we don't exceed the allocated count for entry.
32 (_frv_add_rofixup): Likewise.
33 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
34 (elf32_frv_finish_dynamic_sections): Improve error message in case
35 we emit too few rofixup entries.
37 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
39 * archures.c (bfd_mach_fr450): New.
40 * bfd-in2.h: Regenerate.
41 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
42 (arch_info_500): Link to it.
43 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
44 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
45 (frv_elf_arch_extension_p): New function.
46 (frv_elf_merge_private_bfd_data): Use it.
48 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
50 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
52 * elflink.h (is_global_data_symbol_definition): Moved to
54 (elf_link_is_defined_archive_symbol): Likewise.
55 (elf_link_add_archive_symbols): Likewise. Renamed to
56 _bfd_elf_link_add_archive_symbols.
58 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
59 of ELF symbol table entry from backend.
60 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
61 instead of elf_link_add_object_symbols.
63 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
65 * elf-bfd.h (struct elf_backend_data): Added
66 elf_backend_can_make_relative_eh_frame,
67 elf_backend_can_make_lsda_relative_eh_frame and
68 elf_backend_encode_eh_address.
69 (_bfd_elf_encode_eh_address): Declare.
70 (_bfd_elf_can_make_relative): Declare.
71 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
72 hooks to decide whether to attempt to make_relative and
74 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
75 (_bfd_elf_can_make_relative): New.
76 (_bfd_elf_encode_eh_address): New.
77 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
78 (frv_elf_encode_eh_address): New.
79 (elf_backend_can_make_relative_eh_frame): Define.
80 (elf_backend_can_make_lsda_relative_eh_frame): Define.
81 (elf_backend_encode_eh_address): Define.
83 (elf_backend_can_make_relative_eh_frame): Define.
84 (elf_backend_can_make_lsda_relative_eh_frame): Define.
85 (elf_backend_encode_eh_address): Define.
86 (elfNN_bed): Add them.
88 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
90 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
91 complain_on_overflow to signed.
93 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
95 * elflink.h (sort_symbol): New.
96 (elf_link_add_object_symbols): Use a sorted symbol array for
99 2004-02-27 Jakub Jelinek <jakub@redhat.com>
101 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
102 for pc relative relocs.
103 (elf_s390_relocate_section): Likewise.
104 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
105 for pc relative relocs.
106 (elf_s390_relocate_section): Likewise.
108 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
110 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
113 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
115 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
116 field to track if a relocation is against readonly section.
117 (count_dyn_reloc): Take a new argument for rent->reltext.
118 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
119 (get_reloc_section): Don't set ia64_info->reltext here.
120 (allocate_dynrel_entries): Set ia64_info->reltext here.
122 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
124 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
125 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
126 function's descriptor to symbol+offset, and map local undefweak
127 symbol to NULL function descriptor.
128 (elf32_frv_relocate_section): Likewise.
130 2004-02-23 Mark Kettenis <kettenis@gnu.org>
132 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
134 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
135 (netbsd_core_file_p): Set architecture from machine ID for
138 2004-02-23 Jakub Jelinek <jakub@redhat.com>
140 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
141 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
143 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
145 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
146 symbols with non-default visibility.
148 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
150 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
151 IMAGE_SCN_MEM_WRITE on known sections only.
153 2004-02-20 Jakub Jelinek <jakub@redhat.com>
155 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
156 symbols used in PIE relocs.
158 2004-02-19 Jakub Jelinek <jakub@redhat.com>
160 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
163 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
165 * configure.in: Update version to 2.15.90.
166 * configure: Regenerate.
168 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
169 Richard Sandiford <rsandifo@redhat.com>
171 * elfxx-mips.c (mips_elf_calculate_relocation): Use
172 _bfd_elf_symbol_refs_local_p to decide whether to decay
173 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
174 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
175 relocs if the symbol wasn't defined by a regular object file.
176 Don't check the symbol's dynindx.
178 2004-02-16 Andrew Cagney <cagney@redhat.com>
180 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
182 * bfd-in2.h: Re-generate.
184 2004-02-14 Andrew Cagney <cagney@redhat.com>
186 * configure.host (HDEFINES): When hppa*-*-hpux*, define
189 2004-02-13 Andrew Cagney <cagney@redhat.com>
191 * elf.c (vma_page_aligned_bias): New function.
192 (assign_file_positions_except_relocs)
193 (assign_file_positions_for_segments): Replace broken modulo
194 arithmetic with call to vma_page_aligned_bias.
196 2004-02-11 Andrew Cagney <cagney@redhat.com>
198 * bfd-in.h: Update copyright.
199 (bfd_tell): Change return type to file_ptr.
200 * bfd-in2.h: Re-generate.
201 * cache.c: Update copyright.
202 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
204 (close_one): Use real_ftell.
205 * bfdio.c: Update copyright.
206 (real_ftell, real_fseek): New functions.
207 (bfd_tell): Use real_fseek and real_ftell, change return type to
209 (bfd_seek): Use real_ftell and real_fseek, change type of
210 file_position to a file_ptr.
211 * libbfd-in.h: Update copyright.
212 (real_ftell, real_fseek): Declare.
213 * libbfd.h: Re-generate.
215 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
216 fseeko and fseeko64. Determine bfd_file_ptr.
217 * configure: Re-generate.
218 * config.in: Re-generate.
220 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
222 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
223 * elf32-h8300.c: Likewise.
225 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
226 Nick Clifton <nickc@redhat.com>
228 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
229 GOT entries with no associated GOT subsection.
231 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
233 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
234 * elf.c (swap_out_syms): Use it to decide whether local section
235 symbols should be named.
236 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
237 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
238 (elf_backend_name_local_section_symbols): Define.
239 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
241 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
243 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
244 (elfNN_ia64_relax_section): Optimize brl to br during the relax
247 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
249 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
250 to bfd_link_hash_entry passed by reference to
251 _bfd_generic_link_add_one_symbol.
253 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
255 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
256 relocations against dynamic symbols.
258 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
260 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
263 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
265 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
266 * bfd-in2.h, libbfd.h: Rebuilt.
268 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
270 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
271 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
272 flag has been cleared.
274 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
276 * coff-h8300.c: Add and adjust comments about relaxation.
277 * elf32-h8300.c: Likewise.
279 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
281 * coff-h8300.c: Fix comment typos.
282 * elf32-h8300.c: Likewise.
284 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
286 * coff-h8300.c: Add comments about relaxation.
287 * elf32-h8300.c: Likewise.
289 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
291 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
293 * aclocal.m4: Regenerate.
294 * configure: Regenerate.
296 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
298 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
299 mips_elf64_rtype_to_howto instead of using howto_table.
301 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
303 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
305 (elf32_arm_check_relocs): Don't increment the PLT refcount for
306 relocs which would not use the PLT.
308 2004-01-13 Alan Modra <amodra@bigpond.net.au>
310 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
311 (ppc64_elf_gc_sweep_hook): Likewise.
312 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
314 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
316 Adds linker relaxation support for bit manipulation insns like
317 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
319 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
320 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
321 * coff-h8300.c: Opcode for bit manipulation insn is checked in
322 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
324 2004-01-12 Alan Modra <amodra@bigpond.net.au>
326 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
328 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
330 * elf32-h8300.c: Fix formatting.
332 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
334 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
335 dynamic object is present. Declare r_symndx and h in an inner
337 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
339 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
341 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
342 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
343 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
344 identically. Do not emit PC24 relocations for shared libraries.
345 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
346 identically. Don't adjust pc_count.
347 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
348 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
349 adjust count for branch relocations.
350 (allocate_dynrelocs): Correct typo in call to
351 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
352 PC24 or PLT32 relocs when linking.
354 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
356 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
357 relocation howto with ARM_26 one for consistency.
358 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
359 that will be converted to ARM_26D ones, since we always want 'done'
360 relocations to be reflected in section's data.
361 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
363 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
366 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
368 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
369 are not partial_inplace during a relocatable link.
371 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
373 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
374 if no dynamic object is present. Declare r_symndx and h in an
377 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
379 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
380 trampoline if it is known out of range.
382 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
384 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
385 * elf32-frv.c (_frv_osec_readonly_p): New.
386 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
388 (_frv_count_got_plt_entries): Adjust expected count accordingly.
389 (elf32_frv_relocate_section): Likewise. Error out if attempting
390 to emit rofixups or dynamic relocs in read-only segments. Use
391 _bfd_elf_section_offset to adjust r_offsets in rofixups and
393 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
394 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
395 relocations or fixups involving merged sections correctly. Avoid
396 crash when undefined symbol is referenced by R_FRV_32 or
397 R_FRV_FUNCDESC_VALUE.
398 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
399 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
400 input section holding local symbol to addend of R_FRV_32 or
401 R_FRV_FUNCDESC_VALUE dynamic relocation.
402 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
403 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
404 (elf32_frv_always_size_sections): Don't store pointer to
405 __stacksize symbol in sec_info.
406 (elf32_frv_modify_segment_map): Look it up here.
407 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
408 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
409 of the lazy PLT entry, not only its offset, as the low word of a
411 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
412 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
413 if a hash table entry already exists but is not a definition.
414 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
415 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
416 (_frv_add_rofixup): Don't inline.
417 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
418 for undefweak symbols.
419 (elf32_frv_relocate_section): Avoid crash while computing
420 relocation when linking with shared library. Only emit rofixups
421 and dynamic relocations for alloc&load sections. Mark binaries
422 with inter-segment relocations for relocation as a unit.
423 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
424 (DEFAULT_STACK_SIZE): New.
425 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
426 emit rofixups or dynamic relocs when linking dynamic non-PIE
428 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
429 shared libs too. Reserve the last entry for the GOT pointer.
430 (elf32_frv_finish_dynamic_sections): Emit it.
431 (elf32_frv_always_size_sections): New.
432 (elf32_frv_modify_segment_map): New.
433 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
435 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
436 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
437 (elf_backend_always_size_sections): New.
438 (elf_backend_modify_segment_map): New.
439 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
440 * config.bfd: Added frv-*-*linux*.
441 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
442 ABS section, instead of crashing.
443 (elf32_frv_relocate_section): Don't crash before warning about
444 different segments in non-PIC relocation.
445 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
446 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
447 relocs to undefweak symbols.
448 (elf32_frv_relocate_section): Ditto for undefined symbols.
449 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
450 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
451 gotfixup section was created.
452 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
453 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
454 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
455 complain_overflow_signed.
456 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
457 have not been allocated.
458 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
459 privfd only if dynamic sections were created.
460 (elf32_frv_relocate_section): Compute gprel_segment, and use it
461 for GPREL relocs. When linking relocatable FDPIC executables,
462 emit warnings for relocations that would be illegal on PIE or
463 shared libraries. Emit rofixup for R_FRV_32 only if input object
465 (_frv_create_got_section): Define _gp symbol in the rofixup
467 (elf32_frv_finish_dynamic_sections): If rofixups needed but
468 dynamic sections missing, error out requesting -melf32frvfd.
469 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
470 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
471 computation of addends from section and global or local symbol
472 value. Change return type to bfd_boolean, and return a failure if
473 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
474 nonzero addend is required.
475 (elf32_frv_relocate_section): Likewise. Print error for
476 unsupported nonzero addends.
477 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
478 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
479 force everything local.
480 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
481 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
482 (frv_gotfixup_section): New.
483 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
484 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
486 (_frv_add_rofixup): New.
487 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
488 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
489 improve some ugly conditions.
490 (elf32_frv_relocate_section): Likewise. Reject inter-segment
491 relocations in fdpic.
492 (_frv_create_got_section): Create .rofixup.got section.
493 (struct _frv_dynamic_got_info): Added fixups.
494 (_frv_count_got_plt_entries): Account in-GOT relocations into
495 relocs32, relocsfd and relocsfdv. Account them into relocs or
496 fixups, as appropriate.
497 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
499 (elf32_frv_finish_dynamic_sections): Verify that the right number
500 of relocations and fixups was generated.
501 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
503 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
504 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
505 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
506 descriptor of a (formerly-)global symbol is local.
507 (struct frv_pic_relocs_info): Adjust comments.
508 (_frv_emit_got_relocs_plt_entries): Adjust.
509 (elf32_frv_relocate_section): Likewise.
510 (_frv_count_got_plt_entries): Likewise.
511 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
512 symbol's value to addend in the common preamble. Decay dynamic
513 symbols to section+offset if they bind or call locally, for GOT
514 and FUNCDESC_VALUE, respectively.
515 (elf32_frv_relocate_section): Likewise.
516 (elf32_frv_check_relocs): Don't register as dynamic symbols of
517 internal or hidden visibility.
518 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
519 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
520 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
521 (elf32_frv_relocate_section): Pass relocation addend in. Use
522 original relocation addend to look up the got relocs/plt entries
523 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
524 processing relocations that reference .scommon symbols.
525 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
526 Introduce support for dynamic linking.
527 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
528 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
529 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
530 (frv_reloc_type_lookup): Return REL howtos for executables and
532 (frv_info_to_howto_rel): New.
533 (struct frv_elf_link_hash_table): New.
534 (frv_hash_table, frv_got_section, frv_gotrel_section,
535 frv_plt_section, frv_pltrel_section, frv_relocs_info,
536 frv_got_initial_offset, frv_plt_initial_offset): New macros.
537 (frv_elf_link_hash_table_create): New.
538 (struct frv_pic_relocs_info): New.
539 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
540 (frv_pic_relocs_info_find): New.
541 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
543 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
544 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
545 (_frv_emit_got_relocs_plt_entries): New.
546 (elf32_frv_relocate_section): Add support for dynamic linking.
547 Handle new relocations.
548 (_frv_create_got_section): New.
549 (elf32_frv_create_dynamic_sections): New.
550 (ELF_DYNAMIC_INTERPRETER): New.
551 (struct _frv_dynamic_got_info): New.
552 (_frv_count_got_plt_entries): New.
553 (struct _frv_dynamic_got_plt_info): New.
554 (_frv_compute_got_alloc_data): New.
555 (_frv_get_got_entry, _frv_get_fd_entry): New.
556 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
557 (_frv_resolve_final_relocs_info): New.
558 (elf32_frv_size_dynamic_sections): New.
559 (elf32_frv_finish_dynamic_sections): New.
560 (elf32_frv_adjust_dynamic_symbol): New.
561 (elf32_frv_finish_dynamic_symbol): New.
562 (elf32_frv_check_relocs): Handle new relocs. Explain how the
564 (elf_info_to_howto_rel): Define.
565 (bfd_elf32_bfd_link_hash_table_create): Define.
566 (elf_backend_create_dynamic_sections): Define.
567 (elf_backend_adjust_dynamic_symbol): Define.
568 (elf_backend_size_dynamic_sections): Define.
569 (elf_backend_finish_dynamic_symbol): Define.
570 (elf_backend_finish_dynamic_sections): Define.
571 (elf_backend_want_got_sym): Define.
572 (elf_backend_got_header_size): Define.
573 (elf_backend_want_got_plt): Define.
574 (elf_backend_plt_readonly): Define.
575 (elf_backend_want_plt_sym): Define.
576 (elf_backend_plt_header_size): Define.
577 (elf_backend_may_use_rel_p): Define.
578 (elf_backend_may_use_rela_p): Define.
579 (elf_backend_default_use_rela_p): Define.
580 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
581 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
582 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
583 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
584 (frv_reloc_map): Map the corresponding BFD relocs to them.
585 (frv_reloc_type_lookup): ... and back to BFD relocs.
586 * reloc.c: New relocs.
587 * bfd-in2.h, libbfd.h: Rebuilt.
588 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
589 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
590 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
591 R_FRV_FUNCDESC_GOTLO): New.
592 (frv_reloc_map): Map the corresponding BFD relocs to them.
593 (frv_reloc_type_lookup): ... and back to BFD relocs.
594 * reloc.c: New relocs.
595 * bfd-in2.h, libbfd.h: Rebuilt.
597 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
599 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
600 targets to support pages of up to 64kB.
601 (elf32_bed): Redefine to get a separate backend data structure for
603 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
604 targets to support pages of up to 64kB.
605 (elf64_bed): Redefine to get a separate backend data structure for
607 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
608 targets to support pages of up to 64kB.
609 (elf32_bed): Redefine to get a separate backend data structure for
612 2004-01-04 Mark Kettenis <kettenis@gnu.org>
614 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
616 2004-01-02 Mark Kettenis <kettenis@gnu.org>
618 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
619 (elf_i386_grok_psinfo): Likewise.
621 2004-01-02 Bernardo Innocenti <bernie@develer.com>
623 * config.bfd: Add m68k-uClinux target.
625 2004-01-01 Grant Edwards <grante@visi.com>
627 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
628 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
629 (elf32_h8_gc_sweep_hook): New function.
630 (elf_backend_gc_mark_hook): Define.
631 (elf_backend_gc_sweep_hook): Define.
632 (elf_backend_can_gc_sections): Define.
634 For older changes see ChangeLog-0203
640 version-control: never