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