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