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