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