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