1 2004-03-26 Stan Shebs <shebs@apple.com>
3 Remove MPW support, no longer used.
4 * config.bfd (powerpc-*-mpw*): Remove configuration.
5 * mpw-config.in, mpw-make.sed: Remove files.
6 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
8 2004-03-26 Alan Modra <amodra@bigpond.net.au>
10 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
11 (ppc64_elf_add_symbol_hook): New function.
12 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
13 const from Elf_Internal_Sym param.
14 * elflink.c (elf_link_add_object_symbols): Adjust.
15 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
16 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
17 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
18 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
19 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
20 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
21 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
22 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
23 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
24 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
25 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
26 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
27 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
28 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
29 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
30 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
32 2004-03-26 Alan Modra <amodra@bigpond.net.au>
34 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
35 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
36 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
37 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
38 (bfd_elf64_bfd_link_add_symbols): Delete.
39 (bfd_elf_link_add_symbols): Declare.
40 * elfcode.h (elf_bfd_link_add_symbols): Delete.
41 * elflink.c: Include safe-ctype.h.
42 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
44 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
45 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
47 (elf_link_add_archive_symbols): Rename from
48 _bfd_elf_link_add_archive_symbols, make static.
49 (elf_link_add_object_symbols): New function. Corresponding
50 elflink.h function converted to use elf_size_info.
51 (bfd_elf_link_add_symbols): Likewise.
52 (bfd_elf_size_dynamic_sections): Adjust.
53 * elflink.h (elf_bfd_link_add_symbols): Delete.
54 (elf_link_add_object_symbols): Delete.
55 * elf32-gen.c (elf32_generic_link_add_symbols): Call
56 bfd_elf_link_add_symbols.
57 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
59 2004-03-25 Alan Modra <amodra@bigpond.net.au>
61 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
62 and chained shared libs only if dynsym. Clear dynsym on forced-local.
64 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
65 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
66 (_bfd_elf_add_dt_needed_tag): Declare.
67 (_bfd_elf_sort_symbol): Declare.
68 (_bfd_elf_finalize_dynstr): Declare.
69 (RELOC_FOR_GLOBAL_SYM): Formatting.
70 * elfcode.h (elf_add_dynamic_entry): Delete.
71 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
72 elflink.h function converted to use elf_size_info.
73 (_bfd_elf_add_dt_needed_tag): Likewise.
74 (_bfd_elf_sort_symbol): Likewise.
75 (_bfd_elf_finalize_dynstr): Likewise.
76 (compute_bucket_count): Likewise.
77 (bfd_elf_size_dynamic_sections): Likewise. Check result of
78 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
79 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
81 (sort_symbol, add_dt_needed_tag): Delete.
82 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
83 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
85 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
86 * elf32-cris.c (add_dynamic_entry): Likewise.
87 * elf32-hppa.c (add_dynamic_entry): Likewise.
88 * elf32-i370.c (add_dynamic_entry): Likewise.
89 * elf32-i386.c (add_dynamic_entry): Likewise.
90 * elf32-m32r.c (add_dynamic_entry): Likewise.
91 * elf32-m68k.c (add_dynamic_entry): Likewise.
92 * elf32-ppc.c (add_dynamic_entry): Likewise.
93 * elf32-s390.c (add_dynamic_entry): Likewise.
94 * elf32-sh.c (add_dynamic_entry): Likewise.
95 * elf32-sparc.c (add_dynamic_entry): Likewise.
96 * elf32-vax.c (add_dynamic_entry): Likewise.
97 * elf32-xtensa.c (add_dynamic_entry): Likewise.
98 * elf64-alpha.c (add_dynamic_entry): Likewise.
99 * elf64-hppa.c (add_dynamic_entry): Likewise.
100 * elf64-ppc.c (add_dynamic_entry): Likewise.
101 * elf64-s390.c (add_dynamic_entry): Likewise.
102 * elf64-sparc.c (add_dynamic_entry): Likewise.
103 * elf64-x86-64.c (add_dynamic_entry): Likewise.
104 * elfxx-ia64.c (add_dynamic_entry): Likewise.
105 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
106 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
107 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
108 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
110 2004-03-23 Paul Brook <paul@codesourcery.com>
112 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
114 2004-03-22 Bob Wilson <bob.wilson@acm.org>
116 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
117 literal tables and check for relocs outside of literal pools.
118 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
119 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
121 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
122 (elf_xtensa_relocate_section): Read literal tables and check for
123 dynamic relocations in read-only sections and not in literal pools.
125 2004-03-23 Alan Modra <amodra@bigpond.net.au>
128 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
130 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
132 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
133 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
134 not defined by the executable, or defined in a DSO.
135 <eliding run-time relocation of .got>: Initialize GOT entry for a
136 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
138 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
139 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
140 a PLT reloc to GOT for an executable.
141 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
142 .got for a DSO and explain why.
143 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
144 and unreferenced symbols for which a PLT is defined. Adjust
145 dynamic-symbol pruning correspondingly, to make sure we don't lose
146 a dynamic symbol also defined by a DSO.
148 2004-03-22 Alan Modra <amodra@bigpond.net.au>
150 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
151 and rel args. Group input and output args. Wrap to 80 columns.
152 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
153 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
154 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
155 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
156 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
157 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
158 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
159 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
160 RELOC_FOR_GLOBAL_SYMBOL invocation.
162 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
164 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
165 unresolved symbols in objects aren't allowed.
167 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
169 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
170 (elf_hppa_unmark_useless_dynamic_symbols):
171 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
172 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
173 (elf32_hppa_relocate_section): Likewise.
174 * elf32-i370.c (i370_elf_relocate_section): Likewise.
175 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
176 * elf32-sh.c (sh_elf_relocate_section): Likewise.
177 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
178 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
180 * elf-m10200.c (mn10200_elf_relocate_section): Use
181 RELOC_FOR_GLOBAL_SYMBOL.
182 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
183 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
184 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
185 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
186 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
187 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
188 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
189 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
190 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
191 * elf32-v850.c (v850_elf_relocate_section): Likewise.
192 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
193 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
195 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
197 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
198 (final_link_relocate): Likewise.
199 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
200 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
202 2004-03-19 Alan Modra <amodra@bigpond.net.au>
204 * Makefile.am: Run "make dep-am".
205 * Makefile.in: Regenerate.
206 * aclocal.m4: Regenerate.
207 * config.in: Regenerate.
208 * po/bfd.pot: Regenerate.
210 2004-03-19 Alan Modra <amodra@bigpond.net.au>
211 H.J. Lu <hongjiu.lu@intel.com>
213 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
214 type and size change code to where it was previously. Remove
215 dt_needed param. Treat old weak syms as strong if new sym is
216 from a shared lib, even when old sym is from another shared
217 lib. Remove unnecessary tests of oldweak and newweak. Correct
219 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
220 _bfd_elf_merge_symbol calls.
221 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
222 dt_needed local var. Update comments.
223 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
224 (_bfd_elf_add_default_symbol): Likewise.
226 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
227 strong syms in one shared object overriding weak syms in another.
229 2004-03-18 Alan Modra <amodra@bigpond.net.au>
231 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
232 dyn_lib_class field. Rearrange for better packing.
233 (elf_dt_soname): Delete.
234 (elf_dyn_lib_class): Define.
235 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
236 (bfd_elf_set_dt_needed_soname): Delete.
237 (bfd_elf_set_dyn_lib_class): New function.
238 * elflink.h (add_dt_needed_tag): New function. Split out from..
239 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
240 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
241 initialization of soname.
242 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
244 * bfd-in.h (enum dynamic_lib_link_class): New.
245 (bfd_elf_set_dt_needed_soname): Delete.
246 (bfd_elf_set_dyn_lib_class): Declare.
247 * bfd-in2.h: Regenerate.
249 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
250 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
251 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
252 symbol loop. Instead use add_needed to flag tag as written.
254 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
256 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
257 logic for null_input_bfd detection.
259 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
261 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
263 2004-03-16 Mark Kettenis <kettenis@gnu.org>
265 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
268 2004-03-16 Alan Modra <amodra@bigpond.net.au>
270 * elflink.c (elf_link_read_relocs_from_section): Don't use
271 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
272 (_bfd_elf_link_read_relocs): ..to here.
273 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
275 2004-03-16 Alan Modra <amodra@bigpond.net.au>
277 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
278 values selected in configure.host. Require both to be defined
279 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
280 corresponding BFD_HOST vars with quotes.
281 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
282 Always require BFD_HOST_64_BIT_DEFINED.
283 <file_ptr type>: Find off_t size before emitting message. Combine
284 off_t and ftello64 conditional.
285 * configure: Regenerate.
287 2004-03-16 Alan Modra <amodra@bigpond.net.au>
289 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
290 aliasing warning. Remove trailing whitespace throughout file.
292 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
294 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
295 input_section in calls to get_dyn_name.
296 * 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
298 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
300 2004-03-15 Alan Modra <amodra@bigpond.net.au>
302 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
303 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
304 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
305 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
306 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
307 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
308 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
310 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
311 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
312 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
313 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
314 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
315 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
316 (read_8_bytes, read_indirect_string, read_address): Likewise.
317 (read_abbrevs, parse_comp_unit): Likewise.
318 * targets.c (struct bfd_target): Likewise.
319 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
320 * hppabsd-core.c: Likewise. Formatting.
321 * hpux-core.c: Likewise.
322 * irix-core.c: Likewise.
323 * netbsd-core.c: Likewise.
324 * osf-core.c: Likewise.
325 * ptrace-core.c: Likewise.
326 * sco5-core.c: Likewise.
327 * trad-core.c: Likewise.
328 * configure: Regenerate.
329 * bfd-in2.h: Regenerate.
331 2004-03-15 Alan Modra <amodra@bigpond.net.au>
333 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
334 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
335 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
336 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
337 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
338 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
339 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
340 * libbfd.c: Likewise in function definitions.
341 (bfd_put_8): Mask with 0xff rather than casting to char.
342 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
343 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
344 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
345 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
346 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
347 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
348 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
349 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
350 (H_GET_64, H_GET_32, H_GET_16): Likewise.
351 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
352 * archive.c (do_slurp_coff_armap): Update swap prototype.
353 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
354 (tic54x_getl_signed_32): Likewise.
355 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
356 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
357 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
358 (bfd_getp_signed_32, bfd_putp32): Likewise.
359 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
360 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
361 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
362 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
363 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
364 bfd_h_getx_signed_16, bfd_h_putx16.
365 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
366 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
367 * hpux-core.c: Likewise.
368 * irix-core.c: Likewise.
369 * netbsd-core.c: Likewise.
370 * osf-core.c: Likewise.
371 * ptrace-core.c: Likewise.
372 * sco5-core.c: Likewise.
373 * trad-core.c: Likewise.
374 * bfd-in2.h: Regenerate.
376 2004-03-15 Matt Thomas <matt@3am-software.com>
378 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
381 2004-03-13 Mark Kettenis <kettenis@gnu.org>
383 * config.bfd: Add x86_64-*-openbsd*.
384 * configure.in (x86_64-*-openbsd*): Set COREFILE to
386 * configure: Regenerate.
388 2004-03-12 Nick Clifton <nickc@redhat.com>
389 Dave Murphy <wintermute2k4@ntlworld.com>
391 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
392 if the input bfd does not contain any code.
394 2004-03-09 Steve Ellcey <sje@cup.hp.com>
396 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
398 2004-03-05 Fred Fish <fnf@redhat.com>
400 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
401 mips16 symbols to be even rather than testing first for even/odd.
402 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
404 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
406 * elf.c (map_sections_to_segments): Ignore .tbss sections for
409 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
411 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
412 undefined symbols as hash_new.
414 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
416 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
419 * bfd-in2.h: Regenerate.
421 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
423 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
425 (_frv_count_got_plt_entries): Initialize them.
426 (frv_pic_relocs_info_find): Add insert argument. Adjust all
428 (frv_pic_relocs_info_for_global): Likewise.
429 (frv_pic_relocs_info_for_local): Likewise.
430 (frv_pic_merge_early_relocs_info): New.
431 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
433 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
434 Check that we don't exceed the allocated count for entry.
435 (_frv_add_rofixup): Likewise.
436 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
437 (elf32_frv_finish_dynamic_sections): Improve error message in case
438 we emit too few rofixup entries.
440 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
442 * archures.c (bfd_mach_fr450): New.
443 * bfd-in2.h: Regenerate.
444 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
445 (arch_info_500): Link to it.
446 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
447 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
448 (frv_elf_arch_extension_p): New function.
449 (frv_elf_merge_private_bfd_data): Use it.
451 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
453 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
455 * elflink.h (is_global_data_symbol_definition): Moved to
457 (elf_link_is_defined_archive_symbol): Likewise.
458 (elf_link_add_archive_symbols): Likewise. Renamed to
459 _bfd_elf_link_add_archive_symbols.
461 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
462 of ELF symbol table entry from backend.
463 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
464 instead of elf_link_add_object_symbols.
466 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
468 * elf-bfd.h (struct elf_backend_data): Added
469 elf_backend_can_make_relative_eh_frame,
470 elf_backend_can_make_lsda_relative_eh_frame and
471 elf_backend_encode_eh_address.
472 (_bfd_elf_encode_eh_address): Declare.
473 (_bfd_elf_can_make_relative): Declare.
474 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
475 hooks to decide whether to attempt to make_relative and
477 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
478 (_bfd_elf_can_make_relative): New.
479 (_bfd_elf_encode_eh_address): New.
480 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
481 (frv_elf_encode_eh_address): New.
482 (elf_backend_can_make_relative_eh_frame): Define.
483 (elf_backend_can_make_lsda_relative_eh_frame): Define.
484 (elf_backend_encode_eh_address): Define.
486 (elf_backend_can_make_relative_eh_frame): Define.
487 (elf_backend_can_make_lsda_relative_eh_frame): Define.
488 (elf_backend_encode_eh_address): Define.
489 (elfNN_bed): Add them.
491 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
493 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
494 complain_on_overflow to signed.
496 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
498 * elflink.h (sort_symbol): New.
499 (elf_link_add_object_symbols): Use a sorted symbol array for
502 2004-02-27 Jakub Jelinek <jakub@redhat.com>
504 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
505 for pc relative relocs.
506 (elf_s390_relocate_section): Likewise.
507 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
508 for pc relative relocs.
509 (elf_s390_relocate_section): Likewise.
511 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
513 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
516 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
518 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
519 field to track if a relocation is against readonly section.
520 (count_dyn_reloc): Take a new argument for rent->reltext.
521 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
522 (get_reloc_section): Don't set ia64_info->reltext here.
523 (allocate_dynrel_entries): Set ia64_info->reltext here.
525 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
527 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
528 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
529 function's descriptor to symbol+offset, and map local undefweak
530 symbol to NULL function descriptor.
531 (elf32_frv_relocate_section): Likewise.
533 2004-02-23 Mark Kettenis <kettenis@gnu.org>
535 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
537 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
538 (netbsd_core_file_p): Set architecture from machine ID for
541 2004-02-23 Jakub Jelinek <jakub@redhat.com>
543 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
544 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
546 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
548 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
549 symbols with non-default visibility.
551 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
553 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
554 IMAGE_SCN_MEM_WRITE on known sections only.
556 2004-02-20 Jakub Jelinek <jakub@redhat.com>
558 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
559 symbols used in PIE relocs.
561 2004-02-19 Jakub Jelinek <jakub@redhat.com>
563 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
566 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
568 * configure.in: Update version to 2.15.90.
569 * configure: Regenerate.
571 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
572 Richard Sandiford <rsandifo@redhat.com>
574 * elfxx-mips.c (mips_elf_calculate_relocation): Use
575 _bfd_elf_symbol_refs_local_p to decide whether to decay
576 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
577 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
578 relocs if the symbol wasn't defined by a regular object file.
579 Don't check the symbol's dynindx.
581 2004-02-16 Andrew Cagney <cagney@redhat.com>
583 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
585 * bfd-in2.h: Re-generate.
587 2004-02-14 Andrew Cagney <cagney@redhat.com>
589 * configure.host (HDEFINES): When hppa*-*-hpux*, define
592 2004-02-13 Andrew Cagney <cagney@redhat.com>
594 * elf.c (vma_page_aligned_bias): New function.
595 (assign_file_positions_except_relocs)
596 (assign_file_positions_for_segments): Replace broken modulo
597 arithmetic with call to vma_page_aligned_bias.
599 2004-02-11 Andrew Cagney <cagney@redhat.com>
601 * bfd-in.h: Update copyright.
602 (bfd_tell): Change return type to file_ptr.
603 * bfd-in2.h: Re-generate.
604 * cache.c: Update copyright.
605 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
607 (close_one): Use real_ftell.
608 * bfdio.c: Update copyright.
609 (real_ftell, real_fseek): New functions.
610 (bfd_tell): Use real_fseek and real_ftell, change return type to
612 (bfd_seek): Use real_ftell and real_fseek, change type of
613 file_position to a file_ptr.
614 * libbfd-in.h: Update copyright.
615 (real_ftell, real_fseek): Declare.
616 * libbfd.h: Re-generate.
618 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
619 fseeko and fseeko64. Determine bfd_file_ptr.
620 * configure: Re-generate.
621 * config.in: Re-generate.
623 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
625 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
626 * elf32-h8300.c: Likewise.
628 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
629 Nick Clifton <nickc@redhat.com>
631 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
632 GOT entries with no associated GOT subsection.
634 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
636 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
637 * elf.c (swap_out_syms): Use it to decide whether local section
638 symbols should be named.
639 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
640 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
641 (elf_backend_name_local_section_symbols): Define.
642 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
644 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
646 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
647 (elfNN_ia64_relax_section): Optimize brl to br during the relax
650 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
652 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
653 to bfd_link_hash_entry passed by reference to
654 _bfd_generic_link_add_one_symbol.
656 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
658 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
659 relocations against dynamic symbols.
661 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
663 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
666 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
668 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
669 * bfd-in2.h, libbfd.h: Rebuilt.
671 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
673 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
674 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
675 flag has been cleared.
677 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
679 * coff-h8300.c: Add and adjust comments about relaxation.
680 * elf32-h8300.c: Likewise.
682 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
684 * coff-h8300.c: Fix comment typos.
685 * elf32-h8300.c: Likewise.
687 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
689 * coff-h8300.c: Add comments about relaxation.
690 * elf32-h8300.c: Likewise.
692 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
694 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
696 * aclocal.m4: Regenerate.
697 * configure: Regenerate.
699 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
701 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
702 mips_elf64_rtype_to_howto instead of using howto_table.
704 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
706 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
708 (elf32_arm_check_relocs): Don't increment the PLT refcount for
709 relocs which would not use the PLT.
711 2004-01-13 Alan Modra <amodra@bigpond.net.au>
713 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
714 (ppc64_elf_gc_sweep_hook): Likewise.
715 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
717 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
719 Adds linker relaxation support for bit manipulation insns like
720 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
722 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
723 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
724 * coff-h8300.c: Opcode for bit manipulation insn is checked in
725 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
727 2004-01-12 Alan Modra <amodra@bigpond.net.au>
729 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
731 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
733 * elf32-h8300.c: Fix formatting.
735 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
737 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
738 dynamic object is present. Declare r_symndx and h in an inner
740 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
742 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
744 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
745 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
746 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
747 identically. Do not emit PC24 relocations for shared libraries.
748 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
749 identically. Don't adjust pc_count.
750 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
751 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
752 adjust count for branch relocations.
753 (allocate_dynrelocs): Correct typo in call to
754 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
755 PC24 or PLT32 relocs when linking.
757 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
759 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
760 relocation howto with ARM_26 one for consistency.
761 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
762 that will be converted to ARM_26D ones, since we always want 'done'
763 relocations to be reflected in section's data.
764 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
766 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
769 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
771 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
772 are not partial_inplace during a relocatable link.
774 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
776 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
777 if no dynamic object is present. Declare r_symndx and h in an
780 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
782 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
783 trampoline if it is known out of range.
785 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
787 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
788 * elf32-frv.c (_frv_osec_readonly_p): New.
789 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
791 (_frv_count_got_plt_entries): Adjust expected count accordingly.
792 (elf32_frv_relocate_section): Likewise. Error out if attempting
793 to emit rofixups or dynamic relocs in read-only segments. Use
794 _bfd_elf_section_offset to adjust r_offsets in rofixups and
796 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
797 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
798 relocations or fixups involving merged sections correctly. Avoid
799 crash when undefined symbol is referenced by R_FRV_32 or
800 R_FRV_FUNCDESC_VALUE.
801 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
802 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
803 input section holding local symbol to addend of R_FRV_32 or
804 R_FRV_FUNCDESC_VALUE dynamic relocation.
805 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
806 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
807 (elf32_frv_always_size_sections): Don't store pointer to
808 __stacksize symbol in sec_info.
809 (elf32_frv_modify_segment_map): Look it up here.
810 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
811 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
812 of the lazy PLT entry, not only its offset, as the low word of a
814 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
815 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
816 if a hash table entry already exists but is not a definition.
817 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
818 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
819 (_frv_add_rofixup): Don't inline.
820 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
821 for undefweak symbols.
822 (elf32_frv_relocate_section): Avoid crash while computing
823 relocation when linking with shared library. Only emit rofixups
824 and dynamic relocations for alloc&load sections. Mark binaries
825 with inter-segment relocations for relocation as a unit.
826 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
827 (DEFAULT_STACK_SIZE): New.
828 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
829 emit rofixups or dynamic relocs when linking dynamic non-PIE
831 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
832 shared libs too. Reserve the last entry for the GOT pointer.
833 (elf32_frv_finish_dynamic_sections): Emit it.
834 (elf32_frv_always_size_sections): New.
835 (elf32_frv_modify_segment_map): New.
836 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
838 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
839 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
840 (elf_backend_always_size_sections): New.
841 (elf_backend_modify_segment_map): New.
842 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
843 * config.bfd: Added frv-*-*linux*.
844 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
845 ABS section, instead of crashing.
846 (elf32_frv_relocate_section): Don't crash before warning about
847 different segments in non-PIC relocation.
848 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
849 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
850 relocs to undefweak symbols.
851 (elf32_frv_relocate_section): Ditto for undefined symbols.
852 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
853 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
854 gotfixup section was created.
855 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
856 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
857 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
858 complain_overflow_signed.
859 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
860 have not been allocated.
861 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
862 privfd only if dynamic sections were created.
863 (elf32_frv_relocate_section): Compute gprel_segment, and use it
864 for GPREL relocs. When linking relocatable FDPIC executables,
865 emit warnings for relocations that would be illegal on PIE or
866 shared libraries. Emit rofixup for R_FRV_32 only if input object
868 (_frv_create_got_section): Define _gp symbol in the rofixup
870 (elf32_frv_finish_dynamic_sections): If rofixups needed but
871 dynamic sections missing, error out requesting -melf32frvfd.
872 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
873 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
874 computation of addends from section and global or local symbol
875 value. Change return type to bfd_boolean, and return a failure if
876 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
877 nonzero addend is required.
878 (elf32_frv_relocate_section): Likewise. Print error for
879 unsupported nonzero addends.
880 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
881 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
882 force everything local.
883 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
884 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
885 (frv_gotfixup_section): New.
886 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
887 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
889 (_frv_add_rofixup): New.
890 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
891 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
892 improve some ugly conditions.
893 (elf32_frv_relocate_section): Likewise. Reject inter-segment
894 relocations in fdpic.
895 (_frv_create_got_section): Create .rofixup.got section.
896 (struct _frv_dynamic_got_info): Added fixups.
897 (_frv_count_got_plt_entries): Account in-GOT relocations into
898 relocs32, relocsfd and relocsfdv. Account them into relocs or
899 fixups, as appropriate.
900 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
902 (elf32_frv_finish_dynamic_sections): Verify that the right number
903 of relocations and fixups was generated.
904 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
906 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
907 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
908 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
909 descriptor of a (formerly-)global symbol is local.
910 (struct frv_pic_relocs_info): Adjust comments.
911 (_frv_emit_got_relocs_plt_entries): Adjust.
912 (elf32_frv_relocate_section): Likewise.
913 (_frv_count_got_plt_entries): Likewise.
914 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
915 symbol's value to addend in the common preamble. Decay dynamic
916 symbols to section+offset if they bind or call locally, for GOT
917 and FUNCDESC_VALUE, respectively.
918 (elf32_frv_relocate_section): Likewise.
919 (elf32_frv_check_relocs): Don't register as dynamic symbols of
920 internal or hidden visibility.
921 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
922 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
923 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
924 (elf32_frv_relocate_section): Pass relocation addend in. Use
925 original relocation addend to look up the got relocs/plt entries
926 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
927 processing relocations that reference .scommon symbols.
928 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
929 Introduce support for dynamic linking.
930 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
931 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
932 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
933 (frv_reloc_type_lookup): Return REL howtos for executables and
935 (frv_info_to_howto_rel): New.
936 (struct frv_elf_link_hash_table): New.
937 (frv_hash_table, frv_got_section, frv_gotrel_section,
938 frv_plt_section, frv_pltrel_section, frv_relocs_info,
939 frv_got_initial_offset, frv_plt_initial_offset): New macros.
940 (frv_elf_link_hash_table_create): New.
941 (struct frv_pic_relocs_info): New.
942 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
943 (frv_pic_relocs_info_find): New.
944 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
946 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
947 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
948 (_frv_emit_got_relocs_plt_entries): New.
949 (elf32_frv_relocate_section): Add support for dynamic linking.
950 Handle new relocations.
951 (_frv_create_got_section): New.
952 (elf32_frv_create_dynamic_sections): New.
953 (ELF_DYNAMIC_INTERPRETER): New.
954 (struct _frv_dynamic_got_info): New.
955 (_frv_count_got_plt_entries): New.
956 (struct _frv_dynamic_got_plt_info): New.
957 (_frv_compute_got_alloc_data): New.
958 (_frv_get_got_entry, _frv_get_fd_entry): New.
959 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
960 (_frv_resolve_final_relocs_info): New.
961 (elf32_frv_size_dynamic_sections): New.
962 (elf32_frv_finish_dynamic_sections): New.
963 (elf32_frv_adjust_dynamic_symbol): New.
964 (elf32_frv_finish_dynamic_symbol): New.
965 (elf32_frv_check_relocs): Handle new relocs. Explain how the
967 (elf_info_to_howto_rel): Define.
968 (bfd_elf32_bfd_link_hash_table_create): Define.
969 (elf_backend_create_dynamic_sections): Define.
970 (elf_backend_adjust_dynamic_symbol): Define.
971 (elf_backend_size_dynamic_sections): Define.
972 (elf_backend_finish_dynamic_symbol): Define.
973 (elf_backend_finish_dynamic_sections): Define.
974 (elf_backend_want_got_sym): Define.
975 (elf_backend_got_header_size): Define.
976 (elf_backend_want_got_plt): Define.
977 (elf_backend_plt_readonly): Define.
978 (elf_backend_want_plt_sym): Define.
979 (elf_backend_plt_header_size): Define.
980 (elf_backend_may_use_rel_p): Define.
981 (elf_backend_may_use_rela_p): Define.
982 (elf_backend_default_use_rela_p): Define.
983 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
984 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
985 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
986 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
987 (frv_reloc_map): Map the corresponding BFD relocs to them.
988 (frv_reloc_type_lookup): ... and back to BFD relocs.
989 * reloc.c: New relocs.
990 * bfd-in2.h, libbfd.h: Rebuilt.
991 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
992 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
993 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
994 R_FRV_FUNCDESC_GOTLO): New.
995 (frv_reloc_map): Map the corresponding BFD relocs to them.
996 (frv_reloc_type_lookup): ... and back to BFD relocs.
997 * reloc.c: New relocs.
998 * bfd-in2.h, libbfd.h: Rebuilt.
1000 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1002 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
1003 targets to support pages of up to 64kB.
1004 (elf32_bed): Redefine to get a separate backend data structure for
1005 traditional targets.
1006 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
1007 targets to support pages of up to 64kB.
1008 (elf64_bed): Redefine to get a separate backend data structure for
1009 traditional targets.
1010 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
1011 targets to support pages of up to 64kB.
1012 (elf32_bed): Redefine to get a separate backend data structure for
1013 traditional targets.
1015 2004-01-04 Mark Kettenis <kettenis@gnu.org>
1017 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
1019 2004-01-02 Mark Kettenis <kettenis@gnu.org>
1021 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
1022 (elf_i386_grok_psinfo): Likewise.
1024 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1026 * config.bfd: Add m68k-uClinux target.
1028 2004-01-01 Grant Edwards <grante@visi.com>
1030 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
1031 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
1032 (elf32_h8_gc_sweep_hook): New function.
1033 (elf_backend_gc_mark_hook): Define.
1034 (elf_backend_gc_sweep_hook): Define.
1035 (elf_backend_can_gc_sections): Define.
1037 For older changes see ChangeLog-0203
1043 version-control: never