1 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
3 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
4 logic for null_input_bfd detection.
6 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
10 2004-03-16 Mark Kettenis <kettenis@gnu.org>
12 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
15 2004-03-16 Alan Modra <amodra@bigpond.net.au>
17 * elflink.c (elf_link_read_relocs_from_section): Don't use
18 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
19 (_bfd_elf_link_read_relocs): ..to here.
20 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
22 2004-03-16 Alan Modra <amodra@bigpond.net.au>
24 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
25 values selected in configure.host. Require both to be defined
26 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
27 corresponding BFD_HOST vars with quotes.
28 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
29 Always require BFD_HOST_64_BIT_DEFINED.
30 <file_ptr type>: Find off_t size before emitting message. Combine
31 off_t and ftello64 conditional.
32 * configure: Regenerate.
34 2004-03-16 Alan Modra <amodra@bigpond.net.au>
36 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
37 aliasing warning. Remove trailing whitespace throughout file.
39 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
41 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
42 input_section in calls to get_dyn_name.
43 * 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
45 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
47 2004-03-15 Alan Modra <amodra@bigpond.net.au>
49 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
50 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
51 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
52 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
53 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
54 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
55 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
57 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
58 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
59 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
60 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
61 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
62 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
63 (read_8_bytes, read_indirect_string, read_address): Likewise.
64 (read_abbrevs, parse_comp_unit): Likewise.
65 * targets.c (struct bfd_target): Likewise.
66 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
67 * hppabsd-core.c: Likewise. Formatting.
68 * hpux-core.c: Likewise.
69 * irix-core.c: Likewise.
70 * netbsd-core.c: Likewise.
71 * osf-core.c: Likewise.
72 * ptrace-core.c: Likewise.
73 * sco5-core.c: Likewise.
74 * trad-core.c: Likewise.
75 * configure: Regenerate.
76 * bfd-in2.h: Regenerate.
78 2004-03-15 Alan Modra <amodra@bigpond.net.au>
80 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
81 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
82 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
83 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
84 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
85 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
86 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
87 * libbfd.c: Likewise in function definitions.
88 (bfd_put_8): Mask with 0xff rather than casting to char.
89 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
90 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
91 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
92 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
93 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
94 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
95 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
96 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
97 (H_GET_64, H_GET_32, H_GET_16): Likewise.
98 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
99 * archive.c (do_slurp_coff_armap): Update swap prototype.
100 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
101 (tic54x_getl_signed_32): Likewise.
102 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
103 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
104 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
105 (bfd_getp_signed_32, bfd_putp32): Likewise.
106 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
107 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
108 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
109 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
110 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
111 bfd_h_getx_signed_16, bfd_h_putx16.
112 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
113 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
114 * hpux-core.c: Likewise.
115 * irix-core.c: Likewise.
116 * netbsd-core.c: Likewise.
117 * osf-core.c: Likewise.
118 * ptrace-core.c: Likewise.
119 * sco5-core.c: Likewise.
120 * trad-core.c: Likewise.
121 * bfd-in2.h: Regenerate.
123 2004-03-15 Matt Thomas <matt@3am-software.com>
125 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
128 2004-03-13 Mark Kettenis <kettenis@gnu.org>
130 * config.bfd: Add x86_64-*-openbsd*.
131 * configure.in (x86_64-*-openbsd*): Set COREFILE to
133 * configure: Regenerate.
135 2004-03-12 Nick Clifton <nickc@redhat.com>
136 Dave Murphy <wintermute2k4@ntlworld.com>
138 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
139 if the input bfd does not contain any code.
141 2004-03-09 Steve Ellcey <sje@cup.hp.com>
143 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
145 2004-03-05 Fred Fish <fnf@redhat.com>
147 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
148 mips16 symbols to be even rather than testing first for even/odd.
149 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
151 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
153 * elf.c (map_sections_to_segments): Ignore .tbss sections for
156 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
158 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
159 undefined symbols as hash_new.
161 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
163 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
166 * bfd-in2.h: Regenerate.
168 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
170 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
172 (_frv_count_got_plt_entries): Initialize them.
173 (frv_pic_relocs_info_find): Add insert argument. Adjust all
175 (frv_pic_relocs_info_for_global): Likewise.
176 (frv_pic_relocs_info_for_local): Likewise.
177 (frv_pic_merge_early_relocs_info): New.
178 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
180 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
181 Check that we don't exceed the allocated count for entry.
182 (_frv_add_rofixup): Likewise.
183 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
184 (elf32_frv_finish_dynamic_sections): Improve error message in case
185 we emit too few rofixup entries.
187 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
189 * archures.c (bfd_mach_fr450): New.
190 * bfd-in2.h: Regenerate.
191 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
192 (arch_info_500): Link to it.
193 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
194 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
195 (frv_elf_arch_extension_p): New function.
196 (frv_elf_merge_private_bfd_data): Use it.
198 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
200 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
202 * elflink.h (is_global_data_symbol_definition): Moved to
204 (elf_link_is_defined_archive_symbol): Likewise.
205 (elf_link_add_archive_symbols): Likewise. Renamed to
206 _bfd_elf_link_add_archive_symbols.
208 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
209 of ELF symbol table entry from backend.
210 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
211 instead of elf_link_add_object_symbols.
213 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
215 * elf-bfd.h (struct elf_backend_data): Added
216 elf_backend_can_make_relative_eh_frame,
217 elf_backend_can_make_lsda_relative_eh_frame and
218 elf_backend_encode_eh_address.
219 (_bfd_elf_encode_eh_address): Declare.
220 (_bfd_elf_can_make_relative): Declare.
221 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
222 hooks to decide whether to attempt to make_relative and
224 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
225 (_bfd_elf_can_make_relative): New.
226 (_bfd_elf_encode_eh_address): New.
227 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
228 (frv_elf_encode_eh_address): New.
229 (elf_backend_can_make_relative_eh_frame): Define.
230 (elf_backend_can_make_lsda_relative_eh_frame): Define.
231 (elf_backend_encode_eh_address): Define.
233 (elf_backend_can_make_relative_eh_frame): Define.
234 (elf_backend_can_make_lsda_relative_eh_frame): Define.
235 (elf_backend_encode_eh_address): Define.
236 (elfNN_bed): Add them.
238 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
240 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
241 complain_on_overflow to signed.
243 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
245 * elflink.h (sort_symbol): New.
246 (elf_link_add_object_symbols): Use a sorted symbol array for
249 2004-02-27 Jakub Jelinek <jakub@redhat.com>
251 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
252 for pc relative relocs.
253 (elf_s390_relocate_section): Likewise.
254 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
255 for pc relative relocs.
256 (elf_s390_relocate_section): Likewise.
258 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
260 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
263 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
265 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
266 field to track if a relocation is against readonly section.
267 (count_dyn_reloc): Take a new argument for rent->reltext.
268 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
269 (get_reloc_section): Don't set ia64_info->reltext here.
270 (allocate_dynrel_entries): Set ia64_info->reltext here.
272 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
274 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
275 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
276 function's descriptor to symbol+offset, and map local undefweak
277 symbol to NULL function descriptor.
278 (elf32_frv_relocate_section): Likewise.
280 2004-02-23 Mark Kettenis <kettenis@gnu.org>
282 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
284 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
285 (netbsd_core_file_p): Set architecture from machine ID for
288 2004-02-23 Jakub Jelinek <jakub@redhat.com>
290 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
291 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
293 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
295 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
296 symbols with non-default visibility.
298 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
300 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
301 IMAGE_SCN_MEM_WRITE on known sections only.
303 2004-02-20 Jakub Jelinek <jakub@redhat.com>
305 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
306 symbols used in PIE relocs.
308 2004-02-19 Jakub Jelinek <jakub@redhat.com>
310 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
313 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
315 * configure.in: Update version to 2.15.90.
316 * configure: Regenerate.
318 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
319 Richard Sandiford <rsandifo@redhat.com>
321 * elfxx-mips.c (mips_elf_calculate_relocation): Use
322 _bfd_elf_symbol_refs_local_p to decide whether to decay
323 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
324 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
325 relocs if the symbol wasn't defined by a regular object file.
326 Don't check the symbol's dynindx.
328 2004-02-16 Andrew Cagney <cagney@redhat.com>
330 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
332 * bfd-in2.h: Re-generate.
334 2004-02-14 Andrew Cagney <cagney@redhat.com>
336 * configure.host (HDEFINES): When hppa*-*-hpux*, define
339 2004-02-13 Andrew Cagney <cagney@redhat.com>
341 * elf.c (vma_page_aligned_bias): New function.
342 (assign_file_positions_except_relocs)
343 (assign_file_positions_for_segments): Replace broken modulo
344 arithmetic with call to vma_page_aligned_bias.
346 2004-02-11 Andrew Cagney <cagney@redhat.com>
348 * bfd-in.h: Update copyright.
349 (bfd_tell): Change return type to file_ptr.
350 * bfd-in2.h: Re-generate.
351 * cache.c: Update copyright.
352 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
354 (close_one): Use real_ftell.
355 * bfdio.c: Update copyright.
356 (real_ftell, real_fseek): New functions.
357 (bfd_tell): Use real_fseek and real_ftell, change return type to
359 (bfd_seek): Use real_ftell and real_fseek, change type of
360 file_position to a file_ptr.
361 * libbfd-in.h: Update copyright.
362 (real_ftell, real_fseek): Declare.
363 * libbfd.h: Re-generate.
365 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
366 fseeko and fseeko64. Determine bfd_file_ptr.
367 * configure: Re-generate.
368 * config.in: Re-generate.
370 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
372 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
373 * elf32-h8300.c: Likewise.
375 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
376 Nick Clifton <nickc@redhat.com>
378 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
379 GOT entries with no associated GOT subsection.
381 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
383 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
384 * elf.c (swap_out_syms): Use it to decide whether local section
385 symbols should be named.
386 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
387 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
388 (elf_backend_name_local_section_symbols): Define.
389 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
391 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
393 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
394 (elfNN_ia64_relax_section): Optimize brl to br during the relax
397 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
399 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
400 to bfd_link_hash_entry passed by reference to
401 _bfd_generic_link_add_one_symbol.
403 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
405 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
406 relocations against dynamic symbols.
408 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
410 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
413 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
415 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
416 * bfd-in2.h, libbfd.h: Rebuilt.
418 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
420 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
421 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
422 flag has been cleared.
424 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
426 * coff-h8300.c: Add and adjust comments about relaxation.
427 * elf32-h8300.c: Likewise.
429 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
431 * coff-h8300.c: Fix comment typos.
432 * elf32-h8300.c: Likewise.
434 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
436 * coff-h8300.c: Add comments about relaxation.
437 * elf32-h8300.c: Likewise.
439 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
441 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
443 * aclocal.m4: Regenerate.
444 * configure: Regenerate.
446 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
448 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
449 mips_elf64_rtype_to_howto instead of using howto_table.
451 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
453 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
455 (elf32_arm_check_relocs): Don't increment the PLT refcount for
456 relocs which would not use the PLT.
458 2004-01-13 Alan Modra <amodra@bigpond.net.au>
460 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
461 (ppc64_elf_gc_sweep_hook): Likewise.
462 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
464 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
466 Adds linker relaxation support for bit manipulation insns like
467 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
469 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
470 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
471 * coff-h8300.c: Opcode for bit manipulation insn is checked in
472 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
474 2004-01-12 Alan Modra <amodra@bigpond.net.au>
476 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
478 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
480 * elf32-h8300.c: Fix formatting.
482 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
484 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
485 dynamic object is present. Declare r_symndx and h in an inner
487 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
489 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
491 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
492 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
493 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
494 identically. Do not emit PC24 relocations for shared libraries.
495 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
496 identically. Don't adjust pc_count.
497 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
498 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
499 adjust count for branch relocations.
500 (allocate_dynrelocs): Correct typo in call to
501 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
502 PC24 or PLT32 relocs when linking.
504 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
506 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
507 relocation howto with ARM_26 one for consistency.
508 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
509 that will be converted to ARM_26D ones, since we always want 'done'
510 relocations to be reflected in section's data.
511 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
513 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
516 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
518 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
519 are not partial_inplace during a relocatable link.
521 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
523 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
524 if no dynamic object is present. Declare r_symndx and h in an
527 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
529 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
530 trampoline if it is known out of range.
532 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
534 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
535 * elf32-frv.c (_frv_osec_readonly_p): New.
536 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
538 (_frv_count_got_plt_entries): Adjust expected count accordingly.
539 (elf32_frv_relocate_section): Likewise. Error out if attempting
540 to emit rofixups or dynamic relocs in read-only segments. Use
541 _bfd_elf_section_offset to adjust r_offsets in rofixups and
543 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
544 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
545 relocations or fixups involving merged sections correctly. Avoid
546 crash when undefined symbol is referenced by R_FRV_32 or
547 R_FRV_FUNCDESC_VALUE.
548 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
549 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
550 input section holding local symbol to addend of R_FRV_32 or
551 R_FRV_FUNCDESC_VALUE dynamic relocation.
552 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
553 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
554 (elf32_frv_always_size_sections): Don't store pointer to
555 __stacksize symbol in sec_info.
556 (elf32_frv_modify_segment_map): Look it up here.
557 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
558 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
559 of the lazy PLT entry, not only its offset, as the low word of a
561 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
562 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
563 if a hash table entry already exists but is not a definition.
564 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
565 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
566 (_frv_add_rofixup): Don't inline.
567 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
568 for undefweak symbols.
569 (elf32_frv_relocate_section): Avoid crash while computing
570 relocation when linking with shared library. Only emit rofixups
571 and dynamic relocations for alloc&load sections. Mark binaries
572 with inter-segment relocations for relocation as a unit.
573 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
574 (DEFAULT_STACK_SIZE): New.
575 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
576 emit rofixups or dynamic relocs when linking dynamic non-PIE
578 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
579 shared libs too. Reserve the last entry for the GOT pointer.
580 (elf32_frv_finish_dynamic_sections): Emit it.
581 (elf32_frv_always_size_sections): New.
582 (elf32_frv_modify_segment_map): New.
583 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
585 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
586 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
587 (elf_backend_always_size_sections): New.
588 (elf_backend_modify_segment_map): New.
589 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
590 * config.bfd: Added frv-*-*linux*.
591 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
592 ABS section, instead of crashing.
593 (elf32_frv_relocate_section): Don't crash before warning about
594 different segments in non-PIC relocation.
595 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
596 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
597 relocs to undefweak symbols.
598 (elf32_frv_relocate_section): Ditto for undefined symbols.
599 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
600 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
601 gotfixup section was created.
602 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
603 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
604 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
605 complain_overflow_signed.
606 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
607 have not been allocated.
608 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
609 privfd only if dynamic sections were created.
610 (elf32_frv_relocate_section): Compute gprel_segment, and use it
611 for GPREL relocs. When linking relocatable FDPIC executables,
612 emit warnings for relocations that would be illegal on PIE or
613 shared libraries. Emit rofixup for R_FRV_32 only if input object
615 (_frv_create_got_section): Define _gp symbol in the rofixup
617 (elf32_frv_finish_dynamic_sections): If rofixups needed but
618 dynamic sections missing, error out requesting -melf32frvfd.
619 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
620 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
621 computation of addends from section and global or local symbol
622 value. Change return type to bfd_boolean, and return a failure if
623 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
624 nonzero addend is required.
625 (elf32_frv_relocate_section): Likewise. Print error for
626 unsupported nonzero addends.
627 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
628 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
629 force everything local.
630 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
631 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
632 (frv_gotfixup_section): New.
633 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
634 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
636 (_frv_add_rofixup): New.
637 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
638 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
639 improve some ugly conditions.
640 (elf32_frv_relocate_section): Likewise. Reject inter-segment
641 relocations in fdpic.
642 (_frv_create_got_section): Create .rofixup.got section.
643 (struct _frv_dynamic_got_info): Added fixups.
644 (_frv_count_got_plt_entries): Account in-GOT relocations into
645 relocs32, relocsfd and relocsfdv. Account them into relocs or
646 fixups, as appropriate.
647 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
649 (elf32_frv_finish_dynamic_sections): Verify that the right number
650 of relocations and fixups was generated.
651 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
653 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
654 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
655 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
656 descriptor of a (formerly-)global symbol is local.
657 (struct frv_pic_relocs_info): Adjust comments.
658 (_frv_emit_got_relocs_plt_entries): Adjust.
659 (elf32_frv_relocate_section): Likewise.
660 (_frv_count_got_plt_entries): Likewise.
661 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
662 symbol's value to addend in the common preamble. Decay dynamic
663 symbols to section+offset if they bind or call locally, for GOT
664 and FUNCDESC_VALUE, respectively.
665 (elf32_frv_relocate_section): Likewise.
666 (elf32_frv_check_relocs): Don't register as dynamic symbols of
667 internal or hidden visibility.
668 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
669 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
670 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
671 (elf32_frv_relocate_section): Pass relocation addend in. Use
672 original relocation addend to look up the got relocs/plt entries
673 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
674 processing relocations that reference .scommon symbols.
675 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
676 Introduce support for dynamic linking.
677 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
678 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
679 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
680 (frv_reloc_type_lookup): Return REL howtos for executables and
682 (frv_info_to_howto_rel): New.
683 (struct frv_elf_link_hash_table): New.
684 (frv_hash_table, frv_got_section, frv_gotrel_section,
685 frv_plt_section, frv_pltrel_section, frv_relocs_info,
686 frv_got_initial_offset, frv_plt_initial_offset): New macros.
687 (frv_elf_link_hash_table_create): New.
688 (struct frv_pic_relocs_info): New.
689 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
690 (frv_pic_relocs_info_find): New.
691 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
693 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
694 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
695 (_frv_emit_got_relocs_plt_entries): New.
696 (elf32_frv_relocate_section): Add support for dynamic linking.
697 Handle new relocations.
698 (_frv_create_got_section): New.
699 (elf32_frv_create_dynamic_sections): New.
700 (ELF_DYNAMIC_INTERPRETER): New.
701 (struct _frv_dynamic_got_info): New.
702 (_frv_count_got_plt_entries): New.
703 (struct _frv_dynamic_got_plt_info): New.
704 (_frv_compute_got_alloc_data): New.
705 (_frv_get_got_entry, _frv_get_fd_entry): New.
706 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
707 (_frv_resolve_final_relocs_info): New.
708 (elf32_frv_size_dynamic_sections): New.
709 (elf32_frv_finish_dynamic_sections): New.
710 (elf32_frv_adjust_dynamic_symbol): New.
711 (elf32_frv_finish_dynamic_symbol): New.
712 (elf32_frv_check_relocs): Handle new relocs. Explain how the
714 (elf_info_to_howto_rel): Define.
715 (bfd_elf32_bfd_link_hash_table_create): Define.
716 (elf_backend_create_dynamic_sections): Define.
717 (elf_backend_adjust_dynamic_symbol): Define.
718 (elf_backend_size_dynamic_sections): Define.
719 (elf_backend_finish_dynamic_symbol): Define.
720 (elf_backend_finish_dynamic_sections): Define.
721 (elf_backend_want_got_sym): Define.
722 (elf_backend_got_header_size): Define.
723 (elf_backend_want_got_plt): Define.
724 (elf_backend_plt_readonly): Define.
725 (elf_backend_want_plt_sym): Define.
726 (elf_backend_plt_header_size): Define.
727 (elf_backend_may_use_rel_p): Define.
728 (elf_backend_may_use_rela_p): Define.
729 (elf_backend_default_use_rela_p): Define.
730 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
731 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
732 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
733 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
734 (frv_reloc_map): Map the corresponding BFD relocs to them.
735 (frv_reloc_type_lookup): ... and back to BFD relocs.
736 * reloc.c: New relocs.
737 * bfd-in2.h, libbfd.h: Rebuilt.
738 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
739 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
740 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
741 R_FRV_FUNCDESC_GOTLO): New.
742 (frv_reloc_map): Map the corresponding BFD relocs to them.
743 (frv_reloc_type_lookup): ... and back to BFD relocs.
744 * reloc.c: New relocs.
745 * bfd-in2.h, libbfd.h: Rebuilt.
747 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
749 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
750 targets to support pages of up to 64kB.
751 (elf32_bed): Redefine to get a separate backend data structure for
753 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
754 targets to support pages of up to 64kB.
755 (elf64_bed): Redefine to get a separate backend data structure for
757 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
758 targets to support pages of up to 64kB.
759 (elf32_bed): Redefine to get a separate backend data structure for
762 2004-01-04 Mark Kettenis <kettenis@gnu.org>
764 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
766 2004-01-02 Mark Kettenis <kettenis@gnu.org>
768 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
769 (elf_i386_grok_psinfo): Likewise.
771 2004-01-02 Bernardo Innocenti <bernie@develer.com>
773 * config.bfd: Add m68k-uClinux target.
775 2004-01-01 Grant Edwards <grante@visi.com>
777 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
778 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
779 (elf32_h8_gc_sweep_hook): New function.
780 (elf_backend_gc_mark_hook): Define.
781 (elf_backend_gc_sweep_hook): Define.
782 (elf_backend_can_gc_sections): Define.
784 For older changes see ChangeLog-0203
790 version-control: never