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