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