* bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2004-03-15 Alan Modra <amodra@bigpond.net.au>
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
46 2004-03-15 Matt Thomas <matt@3am-software.com>
47
48 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
49 selected.
50
51 2004-03-13 Mark Kettenis <kettenis@gnu.org>
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
58 2004-03-12 Nick Clifton <nickc@redhat.com>
59 Dave Murphy <wintermute2k4@ntlworld.com>
60
61 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
62 if the input bfd does not contain any code.
63
64 2004-03-09 Steve Ellcey <sje@cup.hp.com>
65
66 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
67
68 2004-03-05 Fred Fish <fnf@redhat.com>
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
74 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
75
76 * elf.c (map_sections_to_segments): Ignore .tbss sections for
77 layout purposes.
78
79 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
80
81 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
82 undefined symbols as hash_new.
83
84 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
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
91 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
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
110 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
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
121 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
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
136 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
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
161 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
162
163 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
164 complain_on_overflow to signed.
165
166 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
167
168 * elflink.h (sort_symbol): New.
169 (elf_link_add_object_symbols): Use a sorted symbol array for
170 weakdef.
171
172 2004-02-27 Jakub Jelinek <jakub@redhat.com>
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
181 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
182
183 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
184 count_dyn_reloc.
185
186 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
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
195 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
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
203 2004-02-23 Mark Kettenis <kettenis@gnu.org>
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
211 2004-02-23 Jakub Jelinek <jakub@redhat.com>
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
216 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
217
218 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
219 symbols with non-default visibility.
220
221 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
222
223 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
224 IMAGE_SCN_MEM_WRITE on known sections only.
225
226 2004-02-20 Jakub Jelinek <jakub@redhat.com>
227
228 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
229 symbols used in PIE relocs.
230
231 2004-02-19 Jakub Jelinek <jakub@redhat.com>
232
233 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
234 .plt sh_entsize.
235
236 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
237
238 * configure.in: Update version to 2.15.90.
239 * configure: Regenerate.
240
241 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
242 Richard Sandiford <rsandifo@redhat.com>
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
251 2004-02-16 Andrew Cagney <cagney@redhat.com>
252
253 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
254 @bfd_file_ptr@.
255 * bfd-in2.h: Re-generate.
256
257 2004-02-14 Andrew Cagney <cagney@redhat.com>
258
259 * configure.host (HDEFINES): When hppa*-*-hpux*, define
260 _LARGEFILE64_SOURCE.
261
262 2004-02-13 Andrew Cagney <cagney@redhat.com>
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
269 2004-02-11 Andrew Cagney <cagney@redhat.com>
270
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
288 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
289 fseeko and fseeko64. Determine bfd_file_ptr.
290 * configure: Re-generate.
291 * config.in: Re-generate.
292
293 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
294
295 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
296 * elf32-h8300.c: Likewise.
297
298 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
299 Nick Clifton <nickc@redhat.com>
300
301 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
302 GOT entries with no associated GOT subsection.
303
304 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
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
314 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
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
320 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
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
326 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
327
328 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
329 relocations against dynamic symbols.
330
331 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
332
333 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
334 change.
335
336 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
337
338 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
339 * bfd-in2.h, libbfd.h: Rebuilt.
340
341 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
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
347 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
348
349 * coff-h8300.c: Add and adjust comments about relaxation.
350 * elf32-h8300.c: Likewise.
351
352 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
353
354 * coff-h8300.c: Fix comment typos.
355 * elf32-h8300.c: Likewise.
356
357 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
358
359 * coff-h8300.c: Add comments about relaxation.
360 * elf32-h8300.c: Likewise.
361
362 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
363
364 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
365 throughout.
366 * aclocal.m4: Regenerate.
367 * configure: Regenerate.
368
369 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
370
371 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
372 mips_elf64_rtype_to_howto instead of using howto_table.
373
374 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
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
381 2004-01-13 Alan Modra <amodra@bigpond.net.au>
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
387 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
388
389 Adds linker relaxation support for bit manipulation insns like
390 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
391 bst, btst, bxor.
392 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
393 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
394 * coff-h8300.c: Opcode for bit manipulation insn is checked in
395 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
396
397 2004-01-12 Alan Modra <amodra@bigpond.net.au>
398
399 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
400
401 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
402
403 * elf32-h8300.c: Fix formatting.
404
405 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
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
412 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
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
427 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
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
439 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
440
441 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
442 are not partial_inplace during a relocatable link.
443
444 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
445
446 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
447 if no dynamic object is present. Declare r_symndx and h in an
448 inner scope.
449
450 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
451
452 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
453 trampoline if it is known out of range.
454
455 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
456
457 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
523 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
524 gotfixup section was created.
525 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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 <aoliva@redhat.com>
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
670 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
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
685 2004-01-04 Mark Kettenis <kettenis@gnu.org>
686
687 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
688
689 2004-01-02 Mark Kettenis <kettenis@gnu.org>
690
691 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
692 (elf_i386_grok_psinfo): Likewise.
693
694 2004-01-02 Bernardo Innocenti <bernie@develer.com>
695
696 * config.bfd: Add m68k-uClinux target.
697
698 2004-01-01 Grant Edwards <grante@visi.com>
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
707 For older changes see ChangeLog-0203
708 \f
709 Local Variables:
710 mode: change-log
711 left-margin: 8
712 fill-column: 74
713 version-control: never
714 End:
This page took 0.044737 seconds and 4 git commands to generate.