]> Git Repo - binutils.git/blame - bfd/ChangeLog
* bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
[binutils.git] / bfd / ChangeLog
CommitLineData
edeb6e24
AM
12004-03-15 Alan Modra <[email protected]>
2
3 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
4 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
5 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
6 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
7 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
8 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
9 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
10 * libbfd.c: Likewise in function definitions.
11 (bfd_put_8): Mask with 0xff rather than casting to char.
12 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
13 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
14 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
15 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
16 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
17 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
18 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
19 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
20 (H_GET_64, H_GET_32, H_GET_16): Likewise.
21 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
22 * archive.c (do_slurp_coff_armap): Update swap prototype.
23 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
24 (tic54x_getl_signed_32): Likewise.
25 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
26 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
27 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
28 (bfd_getp_signed_32, bfd_putp32): Likewise.
29 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
30 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
31 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
32 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
33 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
34 bfd_h_getx_signed_16, bfd_h_putx16.
35 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
36 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
37 * hpux-core.c: Likewise.
38 * irix-core.c: Likewise.
39 * netbsd-core.c: Likewise.
40 * osf-core.c: Likewise.
41 * ptrace-core.c: Likewise.
42 * sco5-core.c: Likewise.
43 * trad-core.c: Likewise.
44 * bfd-in2.h: Regenerate.
45
c1b954e2
AM
462004-03-15 Matt Thomas <[email protected]>
47
48 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
49 selected.
50
85cfd8d3
MK
512004-03-13 Mark Kettenis <[email protected]>
52
53 * config.bfd: Add x86_64-*-openbsd*.
54 * configure.in (x86_64-*-openbsd*): Set COREFILE to
55 netbsd-core.lo.
56 * configure: Regenerate.
57
d1f161ea
NC
582004-03-12 Nick Clifton <[email protected]>
59 Dave Murphy <[email protected]>
c1b954e2 60
d1f161ea
NC
61 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
62 if the input bfd does not contain any code.
63
8b6f2683
JW
642004-03-09 Steve Ellcey <[email protected]>
65
66 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
67
79cda7cf
FF
682004-03-05 Fred Fish <[email protected]>
69
70 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
71 mips16 symbols to be even rather than testing first for even/odd.
72 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
73
e5caec89
NS
742004-03-05 Nathan Sidwell <[email protected]>
75
76 * elf.c (map_sections_to_segments): Ignore .tbss sections for
77 layout purposes.
78
02bb6eae
AO
792004-03-03 Alexandre Oliva <[email protected]>
80
81 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
82 undefined symbols as hash_new.
83
ae51a426
JR
842003-03-03 Andrew Stubbs <[email protected]>
85
86 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
87 * cpu-sh.c: Ditto.
88 * elf32-sh.c: Ditto.
89 * bfd-in2.h: Regenerate.
90
3b712a1a
AO
912004-03-02 Alexandre Oliva <[email protected]>
92
93 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
94 dynrelocs.
95 (_frv_count_got_plt_entries): Initialize them.
96 (frv_pic_relocs_info_find): Add insert argument. Adjust all
97 callers.
98 (frv_pic_relocs_info_for_global): Likewise.
99 (frv_pic_relocs_info_for_local): Likewise.
100 (frv_pic_merge_early_relocs_info): New.
101 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
102 another.
103 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
104 Check that we don't exceed the allocated count for entry.
105 (_frv_add_rofixup): Likewise.
106 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
107 (elf32_frv_finish_dynamic_sections): Improve error message in case
108 we emit too few rofixup entries.
109
676a64f4
RS
1102004-03-01 Richard Sandiford <[email protected]>
111
112 * archures.c (bfd_mach_fr450): New.
113 * bfd-in2.h: Regenerate.
114 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
115 (arch_info_500): Link to it.
116 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
117 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
118 (frv_elf_arch_extension_p): New function.
119 (frv_elf_merge_private_bfd_data): Use it.
120
0ad989f9
L
1212004-02-28 H.J. Lu <[email protected]>
122
123 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
124
125 * elflink.h (is_global_data_symbol_definition): Moved to
126 elflink.c.
127 (elf_link_is_defined_archive_symbol): Likewise.
128 (elf_link_add_archive_symbols): Likewise. Renamed to
129 _bfd_elf_link_add_archive_symbols.
130
131 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
132 of ELF symbol table entry from backend.
133 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
134 instead of elf_link_add_object_symbols.
135
ec3391e7
AO
1362004-02-27 Alexandre Oliva <[email protected]>
137
138 * elf-bfd.h (struct elf_backend_data): Added
139 elf_backend_can_make_relative_eh_frame,
140 elf_backend_can_make_lsda_relative_eh_frame and
141 elf_backend_encode_eh_address.
142 (_bfd_elf_encode_eh_address): Declare.
143 (_bfd_elf_can_make_relative): Declare.
144 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
145 hooks to decide whether to attempt to make_relative and
146 make_lsda_relative.
147 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
148 (_bfd_elf_can_make_relative): New.
149 (_bfd_elf_encode_eh_address): New.
150 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
151 (frv_elf_encode_eh_address): New.
152 (elf_backend_can_make_relative_eh_frame): Define.
153 (elf_backend_can_make_lsda_relative_eh_frame): Define.
154 (elf_backend_encode_eh_address): Define.
155 * elfxx-target.h
156 (elf_backend_can_make_relative_eh_frame): Define.
157 (elf_backend_can_make_lsda_relative_eh_frame): Define.
158 (elf_backend_encode_eh_address): Define.
159 (elfNN_bed): Add them.
160
e6deed0a
AO
1612004-02-27 Alexandre Oliva <[email protected]>
162
163 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
164 complain_on_overflow to signed.
165
b60d7a1a
L
1662004-02-27 H.J. Lu <[email protected]>
167
168 * elflink.h (sort_symbol): New.
169 (elf_link_add_object_symbols): Use a sorted symbol array for
170 weakdef.
171
1c3ff0f2
MS
1722004-02-27 Jakub Jelinek <[email protected]>
173
174 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
175 for pc relative relocs.
176 (elf_s390_relocate_section): Likewise.
177 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
178 for pc relative relocs.
179 (elf_s390_relocate_section): Likewise.
180
de9811af
L
1812004-02-26 H.J. Lu <[email protected]>
182
183 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
184 count_dyn_reloc.
185
ac33696c
L
1862004-02-25 H.J. Lu <[email protected]>
187
188 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
189 field to track if a relocation is against readonly section.
190 (count_dyn_reloc): Take a new argument for rent->reltext.
191 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
192 (get_reloc_section): Don't set ia64_info->reltext here.
193 (allocate_dynrel_entries): Set ia64_info->reltext here.
194
072c8903
AO
1952004-02-24 Alexandre Oliva <[email protected]>
196
197 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
198 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
199 function's descriptor to symbol+offset, and map local undefweak
200 symbol to NULL function descriptor.
201 (elf32_frv_relocate_section): Likewise.
202
aca305d9
NC
2032004-02-23 Mark Kettenis <[email protected]>
204
205 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
206 M_X86_64_NETBSD.
207 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
208 (netbsd_core_file_p): Set architecture from machine ID for
209 selected machines.
210
646411fb
JJ
2112004-02-23 Jakub Jelinek <[email protected]>
212
213 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
214 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
215
1de1a317
L
2162004-02-21 H.J. Lu <[email protected]>
217
218 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
219 symbols with non-default visibility.
220
3c9d0484
DS
2212004-02-21 Danny Smith <[email protected]>
222
223 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
224 IMAGE_SCN_MEM_WRITE on known sections only.
225
a876ecf9
JJ
2262004-02-20 Jakub Jelinek <[email protected]>
227
228 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
229 symbols used in PIE relocs.
230
a8a6d7ce
JJ
2312004-02-19 Jakub Jelinek <[email protected]>
232
233 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
234 .plt sh_entsize.
235
d080fcd2
DJ
2362004-02-18 Daniel Jacobowitz <[email protected]>
237
238 * configure.in: Update version to 2.15.90.
239 * configure: Regenerate.
240
d25aed71 2412004-02-17 Daniel Jacobowitz <[email protected]>
c1b954e2 242 Richard Sandiford <[email protected]>
d25aed71
RS
243
244 * elfxx-mips.c (mips_elf_calculate_relocation): Use
245 _bfd_elf_symbol_refs_local_p to decide whether to decay
246 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
247 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
248 relocs if the symbol wasn't defined by a regular object file.
249 Don't check the symbol's dynindx.
250
d7ce59e3
AC
2512004-02-16 Andrew Cagney <[email protected]>
252
253 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
254 @bfd_file_ptr@.
255 * bfd-in2.h: Re-generate.
256
ca0b7686
AC
2572004-02-14 Andrew Cagney <[email protected]>
258
259 * configure.host (HDEFINES): When hppa*-*-hpux*, define
260 _LARGEFILE64_SOURCE.
261
340b6d91
AC
2622004-02-13 Andrew Cagney <[email protected]>
263
264 * elf.c (vma_page_aligned_bias): New function.
265 (assign_file_positions_except_relocs)
266 (assign_file_positions_for_segments): Replace broken modulo
267 arithmetic with call to vma_page_aligned_bias.
268
1012372a
AC
2692004-02-11 Andrew Cagney <[email protected]>
270
7c192733
AC
271 * bfd-in.h: Update copyright.
272 (bfd_tell): Change return type to file_ptr.
273 * bfd-in2.h: Re-generate.
274 * cache.c: Update copyright.
275 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
276 parameter.
277 (close_one): Use real_ftell.
278 * bfdio.c: Update copyright.
279 (real_ftell, real_fseek): New functions.
280 (bfd_tell): Use real_fseek and real_ftell, change return type to
281 file_ptr.
282 (bfd_seek): Use real_ftell and real_fseek, change type of
283 file_position to a file_ptr.
284 * libbfd-in.h: Update copyright.
285 (real_ftell, real_fseek): Declare.
286 * libbfd.h: Re-generate.
287
1012372a
AC
288 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
289 fseeko and fseeko64. Determine bfd_file_ptr.
290 * configure: Re-generate.
c1ea0c09 291 * config.in: Re-generate.
c1b954e2 292
3255318a
NC
2932004-02-09 Anil Paranjpe <[email protected]>
294
295 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
296 * elf32-h8300.c: Likewise.
297
0d5f9994
NC
2982004-02-09 Christian Vogel <[email protected]>
299 Nick Clifton <[email protected]>
300
301 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
302 GOT entries with no associated GOT subsection.
303
174fd7f9
RS
3042004-02-09 Richard Sandiford <[email protected]>
305
306 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
307 * elf.c (swap_out_syms): Use it to decide whether local section
308 symbols should be named.
309 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
310 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
311 (elf_backend_name_local_section_symbols): Define.
312 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
313
03609792
L
3142004-01-30 H.J. Lu <[email protected]>
315
316 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
317 (elfNN_ia64_relax_section): Optimize brl to br during the relax
318 finalize pass.
319
ea01195e
AO
3202004-01-30 Alexandre Oliva <[email protected]>
321
322 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
323 to bfd_link_hash_entry passed by reference to
324 _bfd_generic_link_add_one_symbol.
325
838e70c5
L
3262004-01-25 H.J. Lu <[email protected]>
327
328 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
329 relocations against dynamic symbols.
330
4f199be3
DJ
3312004-01-23 Daniel Jacobowitz <[email protected]>
332
333 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
334 change.
335
28d39d1a
NC
3362004-01-21 Tom Rix <[email protected]>
337
338 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
339 * bfd-in2.h, libbfd.h: Rebuilt.
340
66bed356
DS
3412004-01-20 Danny Smith <[email protected]>
342
343 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
344 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
345 flag has been cleared.
346
7e89635a
KH
3472004-01-19 Kazu Hirata <[email protected]>
348
349 * coff-h8300.c: Add and adjust comments about relaxation.
350 * elf32-h8300.c: Likewise.
351
e804e836
KH
3522004-01-16 Kazu Hirata <[email protected]>
353
354 * coff-h8300.c: Fix comment typos.
355 * elf32-h8300.c: Likewise.
356
630a7b0a
KH
3572004-01-16 Kazu Hirata <[email protected]>
358
359 * coff-h8300.c: Add comments about relaxation.
360 * elf32-h8300.c: Likewise.
361
f8b73030
MR
3622004-01-14 Maciej W. Rozycki <[email protected]>
363
364 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
365 throughout.
366 * aclocal.m4: Regenerate.
367 * configure: Regenerate.
368
32159579
ILT
3692004-01-13 Ian Lance Taylor <[email protected]>
370
371 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
372 mips_elf64_rtype_to_howto instead of using howto_table.
373
c84cd8ee
DJ
3742004-01-13 Daniel Jacobowitz <[email protected]>
375
376 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
377 the .plt section.
378 (elf32_arm_check_relocs): Don't increment the PLT refcount for
379 relocs which would not use the PLT.
380
680a3378
AM
3812004-01-13 Alan Modra <[email protected]>
382
383 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
384 (ppc64_elf_gc_sweep_hook): Likewise.
385 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
386
faca21e5
NC
3872004-01-12 Anil Paranjpe <[email protected]>
388
389 Adds linker relaxation support for bit manipulation insns like
680a3378 390 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
faca21e5 391 bst, btst, bxor.
680a3378 392 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5 393 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
680a3378 394 * coff-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5
NC
395 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
396
818a27ac
AM
3972004-01-12 Alan Modra <[email protected]>
398
399 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
400
96ef1419
KH
4012004-01-11 Kazu Hirata <[email protected]>
402
403 * elf32-h8300.c: Fix formatting.
404
babfd660
KH
4052004-01-11 Kazu Hirata <[email protected]>
406
407 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
408 dynamic object is present. Declare r_symndx and h in an inner
409 scope.
410 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
411
7359ea65
DJ
4122004-01-09 Daniel Jacobowitz <[email protected]>
413
414 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
415 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
416 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
417 identically. Do not emit PC24 relocations for shared libraries.
418 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
419 identically. Don't adjust pc_count.
420 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
421 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
422 adjust count for branch relocations.
423 (allocate_dynrelocs): Correct typo in call to
424 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
425 PC24 or PLT32 relocs when linking.
426
44e88952
NC
4272004-01-09 Dmitry Semyonov <[email protected]>
428
429 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
430 relocation howto with ARM_26 one for consistency.
431 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
432 that will be converted to ARM_26D ones, since we always want 'done'
433 relocations to be reflected in section's data.
434 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
435 offset.
436 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
437 requested.
438
1e7fef1d
NC
4392004-01-08 Dmitry Semyonov <[email protected]>
440
441 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
442 are not partial_inplace during a relocatable link.
443
4f075348
KH
4442004-01-08 Kazu Hirata <[email protected]>
445
babfd660 446 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
4f075348
KH
447 if no dynamic object is present. Declare r_symndx and h in an
448 inner scope.
449
de0d9f33
L
4502004-01-07 H.J. Lu <[email protected]>
451
452 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
453 trampoline if it is known out of range.
454
51532845
AO
4552004-01-06 Alexandre Oliva <[email protected]>
456
457 2003-12-17 Alexandre Oliva <[email protected]>
458 * elf32-frv.c (_frv_osec_readonly_p): New.
459 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
460 undefweak symbol.
461 (_frv_count_got_plt_entries): Adjust expected count accordingly.
462 (elf32_frv_relocate_section): Likewise. Error out if attempting
463 to emit rofixups or dynamic relocs in read-only segments. Use
464 _bfd_elf_section_offset to adjust r_offsets in rofixups and
465 dynamic relocations.
466 2003-12-12 Alexandre Oliva <[email protected]>
467 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
468 relocations or fixups involving merged sections correctly. Avoid
469 crash when undefined symbol is referenced by R_FRV_32 or
470 R_FRV_FUNCDESC_VALUE.
471 2003-12-02 Alexandre Oliva <[email protected]>
472 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
473 input section holding local symbol to addend of R_FRV_32 or
474 R_FRV_FUNCDESC_VALUE dynamic relocation.
475 2003-11-27 Alexandre Oliva <[email protected]>
476 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
477 (elf32_frv_always_size_sections): Don't store pointer to
478 __stacksize symbol in sec_info.
479 (elf32_frv_modify_segment_map): Look it up here.
480 2003-11-26 Alexandre Oliva <[email protected]>
481 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
482 of the lazy PLT entry, not only its offset, as the low word of a
483 function descriptor.
484 2003-11-10 Alexandre Oliva <[email protected]>
485 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
486 if a hash table entry already exists but is not a definition.
487 2003-11-05 Alexandre Oliva <[email protected]>
488 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
489 (_frv_add_rofixup): Don't inline.
490 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
491 for undefweak symbols.
492 (elf32_frv_relocate_section): Avoid crash while computing
493 relocation when linking with shared library. Only emit rofixups
494 and dynamic relocations for alloc&load sections. Mark binaries
495 with inter-segment relocations for relocation as a unit.
496 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
497 (DEFAULT_STACK_SIZE): New.
498 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
499 emit rofixups or dynamic relocs when linking dynamic non-PIE
500 executables.
501 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
502 shared libs too. Reserve the last entry for the GOT pointer.
503 (elf32_frv_finish_dynamic_sections): Emit it.
504 (elf32_frv_always_size_sections): New.
505 (elf32_frv_modify_segment_map): New.
506 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
507 sections.
508 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
509 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
510 (elf_backend_always_size_sections): New.
511 (elf_backend_modify_segment_map): New.
512 2003-10-31 Alexandre Oliva <[email protected]>
513 * config.bfd: Added frv-*-*linux*.
514 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
515 ABS section, instead of crashing.
516 (elf32_frv_relocate_section): Don't crash before warning about
517 different segments in non-PIC relocation.
518 2003-10-17 Alexandre Oliva <[email protected]>
519 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
520 relocs to undefweak symbols.
521 (elf32_frv_relocate_section): Ditto for undefined symbols.
522 2003-10-06 Alexandre Oliva <[email protected]>
523 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
524 gotfixup section was created.
525 2003-09-30 Alexandre Oliva <[email protected]>
526 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
527 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
528 complain_overflow_signed.
529 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
530 have not been allocated.
531 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
532 privfd only if dynamic sections were created.
533 (elf32_frv_relocate_section): Compute gprel_segment, and use it
534 for GPREL relocs. When linking relocatable FDPIC executables,
535 emit warnings for relocations that would be illegal on PIE or
536 shared libraries. Emit rofixup for R_FRV_32 only if input object
537 is not FDPIC.
538 (_frv_create_got_section): Define _gp symbol in the rofixup
539 section.
540 (elf32_frv_finish_dynamic_sections): If rofixups needed but
541 dynamic sections missing, error out requesting -melf32frvfd.
542 2003-09-19 Alexandre Oliva <[email protected]>
543 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
544 computation of addends from section and global or local symbol
545 value. Change return type to bfd_boolean, and return a failure if
546 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
547 nonzero addend is required.
548 (elf32_frv_relocate_section): Likewise. Print error for
549 unsupported nonzero addends.
550 2003-09-18 Alexandre Oliva <[email protected]>
551 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
552 force everything local.
553 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
554 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
555 (frv_gotfixup_section): New.
556 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
557 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
558 and relocsfdv.
559 (_frv_add_rofixup): New.
560 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
561 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
562 improve some ugly conditions.
563 (elf32_frv_relocate_section): Likewise. Reject inter-segment
564 relocations in fdpic.
565 (_frv_create_got_section): Create .rofixup.got section.
566 (struct _frv_dynamic_got_info): Added fixups.
567 (_frv_count_got_plt_entries): Account in-GOT relocations into
568 relocs32, relocsfd and relocsfdv. Account them into relocs or
569 fixups, as appropriate.
570 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
571 sizing of gotrel.
572 (elf32_frv_finish_dynamic_sections): Verify that the right number
573 of relocations and fixups was generated.
574 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
575 relocsfdv.
576 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
577 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
578 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
579 descriptor of a (formerly-)global symbol is local.
580 (struct frv_pic_relocs_info): Adjust comments.
581 (_frv_emit_got_relocs_plt_entries): Adjust.
582 (elf32_frv_relocate_section): Likewise.
583 (_frv_count_got_plt_entries): Likewise.
584 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
585 symbol's value to addend in the common preamble. Decay dynamic
586 symbols to section+offset if they bind or call locally, for GOT
587 and FUNCDESC_VALUE, respectively.
588 (elf32_frv_relocate_section): Likewise.
589 (elf32_frv_check_relocs): Don't register as dynamic symbols of
590 internal or hidden visibility.
591 2003-09-17 Alexandre Oliva <[email protected]>
592 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
593 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
594 (elf32_frv_relocate_section): Pass relocation addend in. Use
595 original relocation addend to look up the got relocs/plt entries
596 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
597 processing relocations that reference .scommon symbols.
598 2003-09-15 Alexandre Oliva <[email protected]>
599 Introduce support for dynamic linking.
600 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
601 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
602 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
603 (frv_reloc_type_lookup): Return REL howtos for executables and
604 dynamic libraries.
605 (frv_info_to_howto_rel): New.
606 (struct frv_elf_link_hash_table): New.
607 (frv_hash_table, frv_got_section, frv_gotrel_section,
608 frv_plt_section, frv_pltrel_section, frv_relocs_info,
609 frv_got_initial_offset, frv_plt_initial_offset): New macros.
610 (frv_elf_link_hash_table_create): New.
611 (struct frv_pic_relocs_info): New.
612 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
613 (frv_pic_relocs_info_find): New.
614 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
615 New.
616 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
617 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
618 (_frv_emit_got_relocs_plt_entries): New.
619 (elf32_frv_relocate_section): Add support for dynamic linking.
620 Handle new relocations.
621 (_frv_create_got_section): New.
622 (elf32_frv_create_dynamic_sections): New.
623 (ELF_DYNAMIC_INTERPRETER): New.
624 (struct _frv_dynamic_got_info): New.
625 (_frv_count_got_plt_entries): New.
626 (struct _frv_dynamic_got_plt_info): New.
627 (_frv_compute_got_alloc_data): New.
628 (_frv_get_got_entry, _frv_get_fd_entry): New.
629 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
630 (_frv_resolve_final_relocs_info): New.
631 (elf32_frv_size_dynamic_sections): New.
632 (elf32_frv_finish_dynamic_sections): New.
633 (elf32_frv_adjust_dynamic_symbol): New.
634 (elf32_frv_finish_dynamic_symbol): New.
635 (elf32_frv_check_relocs): Handle new relocs. Explain how the
636 whole thing works.
637 (elf_info_to_howto_rel): Define.
638 (bfd_elf32_bfd_link_hash_table_create): Define.
639 (elf_backend_create_dynamic_sections): Define.
640 (elf_backend_adjust_dynamic_symbol): Define.
641 (elf_backend_size_dynamic_sections): Define.
642 (elf_backend_finish_dynamic_symbol): Define.
643 (elf_backend_finish_dynamic_sections): Define.
644 (elf_backend_want_got_sym): Define.
645 (elf_backend_got_header_size): Define.
646 (elf_backend_want_got_plt): Define.
647 (elf_backend_plt_readonly): Define.
648 (elf_backend_want_plt_sym): Define.
649 (elf_backend_plt_header_size): Define.
650 (elf_backend_may_use_rel_p): Define.
651 (elf_backend_may_use_rela_p): Define.
652 (elf_backend_default_use_rela_p): Define.
653 2003-08-08 Alexandre Oliva <[email protected]>
654 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
655 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
656 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
657 (frv_reloc_map): Map the corresponding BFD relocs to them.
658 (frv_reloc_type_lookup): ... and back to BFD relocs.
659 * reloc.c: New relocs.
660 * bfd-in2.h, libbfd.h: Rebuilt.
661 2003-08-04 Alexandre Oliva <[email protected]>
662 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
663 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
664 R_FRV_FUNCDESC_GOTLO): New.
665 (frv_reloc_map): Map the corresponding BFD relocs to them.
666 (frv_reloc_type_lookup): ... and back to BFD relocs.
667 * reloc.c: New relocs.
668 * bfd-in2.h, libbfd.h: Rebuilt.
669
4301eeb1
MR
6702004-01-05 Maciej W. Rozycki <[email protected]>
671
672 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
673 targets to support pages of up to 64kB.
674 (elf32_bed): Redefine to get a separate backend data structure for
675 traditional targets.
676 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
677 targets to support pages of up to 64kB.
678 (elf64_bed): Redefine to get a separate backend data structure for
679 traditional targets.
680 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
681 targets to support pages of up to 64kB.
682 (elf32_bed): Redefine to get a separate backend data structure for
683 traditional targets.
684
0647ed71
MK
6852004-01-04 Mark Kettenis <[email protected]>
686
687 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
688
61adc1a4
NC
6892004-01-02 Mark Kettenis <[email protected]>
690
691 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
692 (elf_i386_grok_psinfo): Likewise.
693
b50c15dc
NC
6942004-01-02 Bernardo Innocenti <[email protected]>
695
696 * config.bfd: Add m68k-uClinux target.
697
2627de83
AM
6982004-01-01 Grant Edwards <[email protected]>
699
700 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
701 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
702 (elf32_h8_gc_sweep_hook): New function.
703 (elf_backend_gc_mark_hook): Define.
704 (elf_backend_gc_sweep_hook): Define.
705 (elf_backend_can_gc_sections): Define.
706
c9e214e5 707For older changes see ChangeLog-0203
56882138
AM
708\f
709Local Variables:
710mode: change-log
711left-margin: 8
712fill-column: 74
713version-control: never
714End:
This page took 0.527503 seconds and 4 git commands to generate.