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