bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-05-03 Alan Modra <amodra@bigpond.net.au>
2
3 * libbfd-in.h (_bfd_generic_new_section_hook): Declare.
4 * section.c (bfd_abs_symbol, bfd_com_symbol): Delete.
5 (bfd_und_symbol, bfd_ind_symbol): Delete.
6 (BFD_FAKE_SECTION): Remove SYM_PTR param, set symbol_ptr_ptr to
7 &SEC.symbol.
8 (STD_SECTION): Adjust.
9 (_bfd_generic_new_section_hook): New function, extracted from..
10 (bfd_section_init): ..here.
11 (bfd_make_section_old_way): Call new_section_hook for abs, com,
12 und and ind sections.
13 * elf.c (_bfd_elf_large_com_section): Adjust.
14 * aoutx.h (new_section_hook): Call _bfd_generic_new_section_hook.
15 * pdp11.c (new_section_hook): Likewise.
16 * coffcode.h (coff_new_section_hook): Likewise.
17 * ecoff.c (_bfd_ecoff_new_section_hook): Likewise.
18 * elf.c (_bfd_elf_new_section_hook): Likewise.
19 * vms.c (vms_new_section_hook): Likwise.
20 * elf32-arm.c (elf32_arm_new_section_hook): Check used_by_bfd isn't
21 already set.
22 * elf32-sh64.c (sh64_elf_new_section_hook): Likewise.
23 * elf32-xtensa.c (elf_xtensa_new_section_hook): Likewise.
24 * elf64-mmix.c (mmix_elf_new_section_hook): Likewise.
25 * elf64-ppc.c (ppc64_elf_new_section_hook): Likewise.
26 * elfxx-mips.c (_bfd_mips_elf_new_section_hook): Likewise.
27 * elfxx-sparc.c (_bfd_sparc_elf_new_section_hook): Likewise.
28 * ieee.c (ieee_new_section_hook): Likewise. Call
29 _bfd_generic_new_section_hook too.
30 * mmo.c (mmo_new_section_hook): Likewise.
31 * oasys.c (oasys_new_section_hook): Likewise.
32 * som.c (som_new_section_hook): Likewise.
33 * coff-w65.c (reloc_processing): Don't use bfd_abs_symbol.
34 * bfd-in2.h: Regenerate.
35 * libbfd.h: Regenerate.
36
37 2006-05-03 Alan Modra <amodra@bigpond.net.au>
38
39 * hash.c (DEFAULT_SIZE): Revert last change.
40 (higher_prime_number): Correct test for no larger prime. Don't
41 abort on error, instead return 0. Depopulate primes[].
42 (bfd_hash_lookup): If we overflow size, refuse to grow table.
43
44 2006-05-02 Paul Brook <paul@codesourcery.com>
45
46 * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit
47 for R_ARM_REL32.
48
49 2006-05-02 Ben Elliston <bje@au.ibm.com>
50
51 * archive.c (bfd_generic_archive_p): Remove unused local variable
52 `fail'.
53 * dwarf2.c (decode_line_info): Remove unused local variable
54 `basic_block'.
55 * elfcode.h (elf_slurp_reloc_table_from_section): Remove unsed
56 local varibale `s'.
57 * tekhex.c (tekhex_write_object_contents): Remove unused local
58 variable `bytes_written'.
59 * aout-ns32k.c (MY_swap_std_reloc_out): Remove unused local
60 variable `r_addend'.
61 * elf32-dlx.c (dlx_rtype_to_howto): Remove breaks after returns.
62 * elfxx-mips.c (_bfd_elf_mips_mach): Remove breaks after returns.
63 (_bfd_ns32k_relocate_contents): Remove break after return.
64 * elf.c (bfd_section_from_shdr): Remove breaks after returns.
65
66 2006-05-02 Nick Clifton <nickc@redhat.com>
67
68 * elf32-sh-symbian.c: Rename local define DEBUG to SYMBIAN_DEBUG
69 in order to avoid conflicts with the global DEBUG define.
70
71 2006-05-02 Alan Modra <amodra@bigpond.net.au>
72
73 * dwarf2.c: Formatting.
74 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Simplify
75 output section check.
76 * elf32-i370.c: Warning fixes inside #ifdef DEBUG.
77 * elf32-m32c.c: Similarly.
78 * elf32-ppc.c: Similarly.
79 * elf32-v850.c: Similarly.
80 * nlm32-sparc.c: Similarly.
81 * elfcode.h: Similarly.
82 (elf_symbol_flags): Delete.
83 * elflink.c (elf_link_input_bfd): Comment typo.
84
85 2006-05-01 DJ Delorie <dj@redhat.com>
86
87 * bfd-in.h (bfd_hash_table): Add count field.
88 * bfd-in2.h: Regenerate.
89 * hash.c (higher_prime_number): New.
90 (bfd_hash_table_inint_n): Init count field.
91 (bfd_hash_lookup): Grow table as needed.
92
93 2006-04-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
94
95 PR binutils/2584
96 * tekhex.c (getvalue): Change return type to bfd_boolean and
97 add the new parameter. Return false if the unexpected character
98 is found.
99 (getsym): Likewise.
100 (first_phase): Change return type to bfd_boolean and return
101 false if the unexpected character is found. Replace abort
102 with returning false.
103 (pass_over): Change return type to bfd_boolean and the type of
104 the second argument to bfd_boolean (*) (bfd *, int, char *).
105 Return false if FUNC returns false.
106 (tekhex_object_p): Return NULL if pass_over fails.
107
108 2006-04-27 Alan Modra <amodra@bigpond.net.au>
109
110 * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix.
111
112 2006-04-26 H.J. Lu <hongjiu.lu@intel.com>
113
114 PR binutils/2593
115 * elf.c (_bfd_elf_new_section_hook): Don't set section ELF type
116 and flags if its BFD flags have been set.
117 (_bfd_elf_init_private_section_data): Don't copy the output ELF
118 section type from input if it has been set to something
119 different.
120
121 2006-04-25 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR binutils/2467
124 * elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd)
125 is NULL first.
126
127 * elf32-arm.c (elf32_arm_close_and_cleanup): Check if
128 abfd->sections is NULL.
129 (elf32_arm_bfd_free_cached_info): New.
130 (bfd_elf32_bfd_free_cached_info): Defined.
131
132 * elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it
133 to _bfd_free_cached_info.
134
135 * libbfd-in.h (_bfd_free_cached_info): New.
136 * libbfd: Regenerated.
137
138 * opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL.
139 (_bfd_free_cached_info): New.
140
141 2006-04-21 Alan Modra <amodra@bigpond.net.au>
142
143 * elf.c (assign_file_positions_except_relocs): Move code setting
144 file position of non-loaded sections..
145 (assign_file_positions_for_segments): ..to here.
146
147 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
148
149 PR ld/2537
150 * elf.c (bfd_section_from_shdr): Allow sections reserved for
151 applications. Issue an error on sections we don't know how
152 to handle.
153
154 2006-04-19 Alan Modra <amodra@bigpond.net.au>
155
156 * Makefile.am: Run "make dep-am".
157 * Makefile.in: Regenerate.
158
159 2006-04-19 Alan Modra <amodra@bigpond.net.au>
160
161 * warning.m4 (--enable-werror): Format help message.
162 (--enable-build-warnings): Likewise.
163 * configure: Regenerate.
164
165 2006-04-18 Nick Clifton <nickc@redhat.com>
166
167 PR 2257
168 * elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx
169 fields to still be handled as ELF files.
170
171 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
172
173 * po/SRC-POTFILES.in: Regenerated.
174
175 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com>
176
177 * configure.in: Update version to 2.17.50.
178 * configure: Regenerated.
179
180 2006-04-14 David Heine <dlheine@tensilica.com>
181
182 * elf32-xtensa.c (build_reloc_opcodes): New.
183 (compute_text_actions): Use it to decode opcodes outside inner loop.
184 (check_section_ebb_pcrels_fit): Add "reloc_opcodes" argument, and if
185 it is set, use it to get the opcodes for relocations.
186 (move_shared_literal): Adjust call to check_section_ebb_pcrels_fit.
187
188 2006-04-08 H.J. Lu <hongjiu.lu@intel.com>
189
190 PR ld/2513
191 * elf32-i386.c (GOT_TLS_MASK): New macro for tls_type.
192 (GOT_TLS_IE_IE): Likewise.
193 (GOT_TLS_IE_GD): Likewise.
194 (GOT_TLS_IE_MASK): Likewise.
195 (elf_i386_check_relocs): For global symbols, set GOT_TLS_IE_GD
196 and GOT_TLS_IE_IE for R_386_TLS_GD and R_386_TLS_IE
197 respectively.
198 (allocate_dynrelocs): If both GOT_TLS_IE_IE and GOT_TLS_IE_GD
199 are set, treat tls_type as GOT_TLS_IE_BOTH.
200 (elf_i386_relocate_section): Likewise.
201
202 2006-04-07 Randolph Chung <tausq@debian.org>
203
204 * elf64-hppa.c (elf64_hppa_grok_prstatus): New function.
205 (elf64_hppa_grok_psinfo): Likewise.
206 (elf_backend_grok_pstatus, elf_backend_grok_psinfo): Define.
207
208 2006-04-06 DJ Delorie <dj@redhat.com>
209
210 * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for
211 each plt entry we create.
212
213 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
214
215 * po/Make-in: Add install-html target.
216 * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
217 htmldir. Add install-html and install-html-recursive targets.
218 * Makefile.in: Regenerate.
219 * configure.in: AC_SUBST for datarootdir, docdir and htmldir.
220 * configure: Regenerate.
221
222 2006-04-06 H.J. Lu <hongjiu.lu@intel.com>
223
224 * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes
225 with the skip_relax_pass_0 and skip_relax_pass_1 bits in the
226 section structure.
227
228 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
229
230 * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to
231 eliminate warnings.
232
233 2006-04-05 H.J. Lu <hongjiu.lu@intel.com>
234 James E Wilson <wilson@specifixinc.com>
235
236 PR ld/2442
237 * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next.
238 (elfNN_ia64_local_hash_entry): Add count, sorted_count and
239 size.
240 (elfNN_ia64_link_hash_entry): Likewise.
241 (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count
242 and size.
243 (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info
244 processing.
245 (elfNN_ia64_hash_hide_symbol): Likewise.
246 (elfNN_ia64_global_dyn_sym_thunk): Likewise.
247 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
248 (elfNN_ia64_global_dyn_info_free): New function.
249 (elfNN_ia64_local_dyn_info_free): Likewise.
250 (elfNN_ia64_hash_table_free): Free local and global
251 elfNN_ia64_dyn_sym_info.
252 (addend_compare): New function.
253 (sort_dyn_sym_info): Likewise.
254 (get_dyn_sym_info): Updated to use binary search for addend.
255 (elfNN_ia64_check_relocs): Scan relocations to create dynamic
256 relocation arrays first.
257
258 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
259
260 * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp
261 symbol.
262
263 2006-04-05 H.J. Lu <hongjiu.lu@intel.com>
264
265 PR ld/2411
266 * elflink.c (check_dynsym): New.
267 (elf_link_output_extsym): Use it.
268 (bfd_elf_final_link): Likewise.
269
270 2006-04-05 H.J. Lu <hongjiu.lu@intel.com>
271
272 PR ld/2404
273 * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect
274 symbol from the dynamic definition with the default version if
275 its type and the type of existing regular definition mismatch.
276
277 2006-04-05 Richard Sandiford <richard@codesourcery.com>
278 Daniel Jacobowitz <dan@codesourcery.com>
279
280 * config.bfd (sparc-*-vxworks*): New stanza.
281 * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza.
282 (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo.
283 * configure: Regenerate.
284 * elf32-sparc.c: Include elf-vxworks.h.
285 (elf32_sparc_vxworks_link_hash_table_create: New.
286 (elf32_sparc_vxworks_final_write_processing): New.
287 (TARGET_BIG_SYM): Override for VxWorks.
288 (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise.
289 (bfd_elf32_bfd_link_hash_table_create): Likewise.
290 (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise.
291 (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise.
292 (elf_backend_link_output_symbol_hook): Likewise.
293 (elf_backend_emit_relocs): Likewise.
294 (elf_backend_final_write_processing, elf32_bed): Likewise.
295 * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h.
296 (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New.
297 (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New.
298 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
299 build_plt_entry here.
300 (create_got_section): Initialize sgotplt for VxWorks.
301 (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry,
302 plt_header_size and plt_entry_size, with new VxWorks-specific settings.
303 Call elf_vxworks_create_dynamic_sections for VxWorks.
304 (allocate_dynrelocs): Use plt_header_size and plt_entry_size.
305 Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks.
306 (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt
307 for VxWorks. Check for the .got.plt section.
308 (sparc_vxworks_build_plt_entry): New function.
309 (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs.
310 Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_
311 absolute on VxWorks.
312 (sparc32_finish_dyn): Add special handling for DT_RELASZ
313 and DT_PLTGOT on VxWorks.
314 (sparc_vxworks_finish_exec_plt): New.
315 (sparc_vxworks_finish_shared_plt): New.
316 (_bfd_sparc_elf_finish_dynamic_sections): Call them.
317 Use plt_header_size and plt_entry_size.
318 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks,
319 srelplt2, sgotplt, plt_header_size and plt_entry_size fields.
320 * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h.
321 (elf32-sparc.lo): Likewise.
322 * Makefile.in: Regenerate.
323 * targets.c (bfd_elf32_sparc_vxworks_vec): Declare.
324 (_bfd_target_vector): Add a pointer to it.
325
326 2006-03-30 Ben Elliston <bje@au.ibm.com>
327
328 PR ld/2267
329 * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a
330 special section number that exceeds the number of ELF sections
331 (eg. SHN_MIPS_SCOMMON).
332
333 2006-03-27 Richard Sandiford <richard@codesourcery.com>
334
335 * elfxx-mips.c (mips_got_entry): Add more commentary.
336 (mips_elf_local_got_index): Use the hash table entry to record
337 the GOT index of forced-local symbols.
338 (mips_elf_initialize_tls_index): Rearrange code. Store the index
339 in either the hash table entry or the mips_got_entry, not both.
340 Add more commentary.
341 (mips_elf_multi_got): Make sure the g->next is nonnull when calling
342 mips_elf_initialize_tls_index.
343
344 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
345
346 * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc,
347 RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty,
348 reloc_stack_push, reloc_stack_pop, reloc_stack_operate,
349 bfin_areloc_howto_table): Delete. All
350 uses deleted as well.
351 (bfin_reloc_map): Delete all stack relocs.
352 (bfin_info_to_howto, bfin_bfd_reloc_type_lookup,
353 bfin_reloc_type_lookup): Don't support them.
354 (bfin_relocate_section): Don't try to handle them.
355
356 * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec.
357 * configure.in: Likewise.
358 * configure: Regenerate.
359 * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h".
360 (BFIN_RELOC_MAX): Now 0x21.
361 (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs.
362 (bfd_elf32_bfinfdpic_vec): Declare.
363 (IS_FDPIC): New macro.
364 (struct bfinfdpic_elf_link_hash_table): New struct.
365 (bfinfdpic_hash_table, bfinfdpic_got_section,
366 bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section,
367 bfinfdpic_plt_setion, bfinfdpic_pltrel_section,
368 bfinfdpic_relocs_info, bfinfdpic_got_initial_offset,
369 bfinfdpic_plt_initial_offset): Accessor macros for it.
370 (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros.
371 (struct bfinfdpic_relocs_info): New struct.
372 (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES,
373 BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC,
374 DEFAULT_STACK_SIZE): New macros.
375 (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash,
376 bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find,
377 bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local,
378 bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc,
379 _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment,
380 _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section,
381 bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook,
382 _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section,
383 elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry,
384 _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry,
385 _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries,
386 _bfinfdpic_resolve_final_relocs_info,
387 elf32_bfinfdpic_size_dynamic_sections,
388 elf32_bfinfdpic_always_size_sections,
389 elf32_bfinfdpic_modify_segment_map,
390 _bfinfdpic_count_got_plt_entries,
391 elf32_bfinfdpic_finish_dynamic_sections,
392 elf32_bfinfdpic_adjust_dynamic_symbol,
393 elf32_bfinfdpic_finish_dynamic_symbol,
394 elf32_bfinfdpic_elf_use_relative_eh_frame,
395 elf32_bfinfdpic_elf_encode_eh_address,
396 elf32_bfin_object_p, bfin_elf_copy_private_bfd_data,
397 elf32_bfinfdpic_copy_private_bfd_data,
398 (struct _bfinfdpic_dynamic_got_info,
399 struct _bfinfdpic_dynamic_got_plt_info): New structs.
400 (elf32_bfin_print_private_bfd_data): Print PIC flags.
401 (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC.
402 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed,
403 elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create,
404 elf_backend_always_size_sectinos, elf_backend_modify_segment_map,
405 bfd_elf32_bfd_copy_private_bfd_data,
406 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
407 elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol,
408 elf_backend_finish_dynamic_sections, elf_backend_relocate_section,
409 elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs,
410 elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p,
411 elf_backend_may_use_rela_p, elf_backend_default_use_rela_p,
412 elf_backend_omit_section_dynsym): Redefine these macros and include
413 "elf32-target.h" again to create the elf32-bfinfdpic target.
414 * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI,
415 BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC,
416 BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI,
417 BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE,
418 BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI,
419 BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI,
420 BFD_RELOC_BFIN_GOTOFFLO): New.
421 * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target.
422 (_bfd_target_vector): Add it.
423 * bfd-in2.h: Regenerate.
424 * libbfd.h: Regenerate.
425
426 2006-03-25 Richard Sandiford <richard@codesourcery.com>
427
428 * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as
429 incompatible. Likewise MAC and EMAC code.
430 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use
431 bfd_get_compatible to set the new bfd architecture. Rely on it
432 to detect incompatibilities.
433
434 2006-03-23 Michael Matz <matz@suse.de>
435
436 * reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64,
437 BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64,
438 BFD_RELOC_X86_64_PLTOFF64.
439 * bfd-in2.h: Regenerated.
440 * libbfd.h: Regenerated.
441 * elf64-x86-64.c (x86_64_elf_howto_table): Correct comment.
442 Add howtos for above relocs.
443 (x86_64_reloc_map): Add mappings for new relocs.
444 (elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64,
445 R_X86_64_GOTPLT64 need a got entry. R_X86_64_GOTPLT64 also a PLT
446 entry. R_X86_64_GOTPC64 needs a .got section. R_X86_64_PLTOFF64
447 needs a PLT entry.
448 (elf64_x86_64_gc_sweep_hook): Reflect changes from
449 elf64_x86_64_check_relocs for the new relocs.
450 (elf64_x86_64_relocate_section): Handle new relocs.
451
452 2006-03-22 Bob Wilson <bob.wilson@acm.org>
453
454 * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that
455 rel->r_addend is zero.
456
457 2006-03-22 Richard Sandiford <richard@codesourcery.com>
458
459 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type
460 of "loc".
461
462 2006-03-22 Richard Sandiford <richard@codesourcery.com>
463 Daniel Jacobowitz <dan@codesourcery.com>
464 Phil Edwards <phil@codesourcery.com>
465 Zack Weinberg <zack@codesourcery.com>
466 Mark Mitchell <mark@codesourcery.com>
467 Nathan Sidwell <nathan@codesourcery.com>
468
469 * bfd-in2.h: Regenerate.
470 * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas.
471 * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza.
472 (bfd_elf32_littlemips_vxworks_vec): Likewise.
473 (bfd_elf32_bigmips_vec): Add elf-vxworks.lo.
474 (bfd_elf32_littlemips_vec): Likewise.
475 (bfd_elf32_nbigmips_vec): Likewise.
476 (bfd_elf32_nlittlemips_vec): Likewise.
477 (bfd_elf32_ntradbigmips_vec): Likewise.
478 (bfd_elf32_ntradlittlemips_vec): Likewise.
479 (bfd_elf32_tradbigmips_vec): Likewise.
480 (bfd_elf32_tradlittlemips_vec): Likewise.
481 (bfd_elf64_bigmips_vec): Likewise.
482 (bfd_elf64_littlemips_vec): Likewise.
483 (bfd_elf64_tradbigmips_vec): Likewise.
484 (bfd_elf64_tradlittlemips_vec): Likewise.
485 * elf32-mips.c: Include elf-vxworks.h.
486 (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto
487 instead of calling mips_elf32_rtype_to_howto directly.
488 (mips_vxworks_copy_howto_rela): New reloc howto.
489 (mips_vxworks_jump_slot_howto_rela): Likewise.
490 (mips_vxworks_bfd_reloc_type_lookup): New function.
491 (mips_vxworks_rtype_to_howto): Likewise.
492 (mips_vxworks_final_write_processing): Likewise.
493 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks.
494 (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise.
495 (elf_backend_want_got_plt): Likewise.
496 (elf_backend_want_plt_sym): Likewise.
497 (elf_backend_got_symbol_offset): Likewise.
498 (elf_backend_want_dynbss): Likewise.
499 (elf_backend_may_use_rel_p): Likewise.
500 (elf_backend_may_use_rela_p): Likewise.
501 (elf_backend_default_use_rela_p): Likewise.
502 (elf_backend_got_header_size: Likewise.
503 (elf_backend_plt_readonly): Likewise.
504 (bfd_elf32_bfd_reloc_type_lookup): Likewise.
505 (elf_backend_mips_rtype_to_howto): Likewise.
506 (elf_backend_adjust_dynamic_symbol): Likewise.
507 (elf_backend_finish_dynamic_symbol): Likewise.
508 (bfd_elf32_bfd_link_hash_table_create): Likewise.
509 (elf_backend_add_symbol_hook): Likewise.
510 (elf_backend_link_output_symbol_hook): Likewise.
511 (elf_backend_emit_relocs): Likewise.
512 (elf_backend_final_write_processing: Likewise.
513 (elf_backend_additional_program_headers): Likewise.
514 (elf_backend_modify_segment_map): Likewise.
515 (elf_backend_symbol_processing): Likewise.
516 * elfxx-mips.c: Include elf-vxworks.h.
517 (mips_elf_link_hash_entry): Add is_relocation_target and
518 is_branch_target fields.
519 (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt,
520 srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields.
521 (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros.
522 (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument.
523 Return 3 for VxWorks.
524 (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a
525 mips_elf_link_hash_table. Return 0 for VxWorks.
526 (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a
527 mips_elf_link_hash_table. Update the call to ELF_MIPS_GP_OFFSET.
528 (mips_vxworks_exec_plt0_entry): New variable.
529 (mips_vxworks_exec_plt_entry): Likewise.
530 (mips_vxworks_shared_plt0_entry): Likewise.
531 (mips_vxworks_shared_plt_entry): Likewise.
532 (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields.
533 (mips_elf_rel_dyn_section): Change the bfd argument to a
534 mips_elf_link_hash_table. Use MIPS_ELF_REL_DYN_NAME to get
535 the name of the section.
536 (mips_elf_initialize_tls_slots): Update the call to
537 mips_elf_rel_dyn_section.
538 (mips_elf_gotplt_index): New function.
539 (mips_elf_local_got_index): Add an input_section argument.
540 Update the call to mips_elf_create_local_got_entry.
541 (mips_elf_got_page): Likewise.
542 (mips_elf_got16_entry): Likewise.
543 (mips_elf_create_local_got_entry): Add bfd_link_info and input_section
544 arguments. Create dynamic relocations for each entry on VxWorks.
545 (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE.
546 (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE
547 and MIPS_RESERVED_GOTNO.
548 (mips_elf_create_got_section): Update the uses of
549 MIPS_ELF_GOT_MAX_SIZE. Create .got.plt on VxWorks.
550 (is_gott_symbol): New function.
551 (mips_elf_calculate_relocation): Use a dynobj local variable.
552 Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and
553 mips_elf_got_page_entry. Set G to the .got.plt entry when calculating
554 VxWorks R_MIPS_CALL* relocations. Calculate and use G for all GOT
555 relocations on VxWorks. Add dynamic relocations for references
556 to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Don't
557 create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64
558 in VxWorks executables.
559 (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument.
560 Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry.
561 Don't allocate a null entry on VxWorks.
562 (mips_elf_create_dynamic_relocation): Update the call to
563 mips_elf_rel_dyn_section. Use absolute rather than relative
564 relocations for VxWorks, and make them RELA rather than REL.
565 (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic
566 read-only on VxWorks. Update the call to mips_elf_rel_dyn_section.
567 Create the .plt, .rela.plt, .dynbss and .rela.bss sections on
568 VxWorks. Likewise create the _PROCEDURE_LINKAGE_TABLE symbol.
569 Call elf_vxworks_create_dynamic_sections for VxWorks and
570 initialize the plt_header_size and plt_entry_size fields.
571 (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be
572 used in VxWorks executables. Don't allocate dynamic relocations
573 for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables.
574 Set is_relocation_target for each symbol referenced by a relocation.
575 Allocate .rela.dyn entries for relocations against the special
576 VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Create GOT
577 entries for all VxWorks R_MIPS_GOT16 relocations. Don't allocate
578 a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*,
579 R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations. Update the calls
580 to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations.
581 Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26
582 relocations. Don't set no_fn_stub on VxWorks.
583 (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to
584 mips_elf_allocate_dynamic_relocations.
585 (_bfd_mips_vxworks_adjust_dynamic_symbol): New function.
586 (_bfd_mips_elf_always_size_sections): Do not allocate GOT page
587 entries for VxWorks, and do not create multiple GOTs.
588 (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME.
589 Handle .got specially for VxWorks. Update the uses of
590 MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations.
591 Check for sgotplt and splt. Allocate the .rel(a).dyn contents last,
592 once its final size is known. Set DF_TEXTREL for VxWorks. Add
593 DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL
594 tags on VxWorks. Do not add the MIPS-specific tags for VxWorks.
595 (_bfd_mips_vxworks_finish_dynamic_symbol): New function.
596 (mips_vxworks_finish_exec_plt): Likewise.
597 (mips_vxworks_finish_shared_plt): Likewise.
598 (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call
599 to mips_elf_rel_dyn_section. Use a VxWorks-specific value of
600 DT_PLTGOT. Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL,
601 DT_PLTRELSZ and DT_JMPREL. Update the uses of MIPS_RESERVED_GOTNO
602 and mips_elf_rel_dyn_section. Use a different GOT header for
603 VxWorks. Don't sort .rela.dyn on VxWorks. Finish the PLT on VxWorks.
604 (_bfd_mips_elf_link_hash_table_create): Initialize the new
605 mips_elf_link_hash_table fields.
606 (_bfd_mips_vxworks_link_hash_table_create): New function.
607 (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_
608 on VxWorks. Update the call to ELF_MIPS_GP_OFFSET.
609 * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare.
610 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
611 (_bfd_mips_vxworks_link_hash_table_create): Likewise.
612 * libbfd.h: Regenerate.
613 * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h.
614 (elf32-mips.lo): Likewise.
615 * Makefile.in: Regenerate.
616 * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare.
617 * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare.
618 (bfd_elf32_littlemips_vxworks_vec): Likewise.
619 (_bfd_target_vector): Add entries for them.
620
621 2006-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
622
623 * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss
624 section from SHF_PARISC_WEAKORDER to SHF_HP_TLS.
625 (elf_backend_special_sections): Remove #undef.
626
627 2006-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
628
629 * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
630 for undefined weak symbols.
631
632 2006-03-17 Daniel Jacobowitz <dan@codesourcery.com>
633
634 PR ld/2462
635 * elflink.c (bfd_elf_final_link): Remove
636 bed->elf_backend_emit_relocs from emit_relocs.
637
638 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
639
640 * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from
641 first relocation to the second when relaxing TLS GD to LE;
642 zero it out when relaxing to IE.
643
644 2006-03-17 Alan Modra <amodra@bigpond.net.au>
645
646 PR 2434
647 * elflink.c (elf_link_add_object_symbols): Save and restore
648 warning sym's linked sym.
649
650 2006-03-16 Alan Modra <amodra@bigpond.net.au>
651
652 PR 2434
653 * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete.
654 (elf_link_add_object_symbols): Delete unnecessary locals. Rename
655 hash_table -> htab. Formatting. Save entire symbol table
656 before loading as-needed syms, and restore afterwards if lib not
657 needed. Use bfd_hash_allocate rather than bfd_alloc for sym
658 name. Free some buffers earlier.
659 * bfd-in.h (struct bfd_hash_table): Add entsize.
660 (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype.
661 * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise
662 * hash.c (bfd_hash_table_init_n): Add entsize param, save to
663 hash table.
664 (bfd_hash_table_init): Add param, adjust calls.
665 * aoutx.h: Adjust all hash_table_init functions and calls.
666 * bfd.c: Likewise.
667 * coff-arm.c: Likewise.
668 * coff-h8300.c: Likewise.
669 * coff-ppc.c: Likewise.
670 * cofflink.c: Likewise.
671 * ecoff.c: Likewise.
672 * ecofflink.c: Likewise.
673 * elf-m10300.c: Likewise.
674 * elf-strtab.c: Likewise.
675 * elf.c: Likewise.
676 * elf32-arm.c: Likewise.
677 * elf32-bfin.c: Likewise.
678 * elf32-cris.c: Likewise.
679 * elf32-frv.c: Likewise.
680 * elf32-hppa.c: Likewise.
681 * elf32-i386.c: Likewise.
682 * elf32-m32r.c: Likewise.
683 * elf32-m68hc1x.c: Likewise.
684 * elf32-m68k.c: Likewise.
685 * elf32-ppc.c: Likewise.
686 * elf32-s390.c: Likewise.
687 * elf32-sh.c: Likewise.
688 * elf32-vax.c: Likewise.
689 * elf64-alpha.c: Likewise.
690 * elf64-hppa.c: Likewise.
691 * elf64-ppc.c: Likewise.
692 * elf64-s390.c: Likewise.
693 * elf64-sh64.c: Likewise.
694 * elf64-x86-64.c: Likewise.
695 * elfxx-ia64.c: Likewise.
696 * elfxx-mips.c: Likewise.
697 * elfxx-sparc.c: Likewise.
698 * i386linux.c: Likewise.
699 * libaout.h: Likewise.
700 * libbfd-in.h: Likewise.
701 * libcoff-in.h: Likewise.
702 * linker.c: Likewise.
703 * m68klinux.c: Likewise.
704 * merge.c: Likewise.
705 * opncls.c: Likewise.
706 * pdp11.c: Likewise.
707 * sparclinux.c: Likewise.
708 * stabs.c: Likewise.
709 * sunos.c: Likewise.
710 * vms.c: Likewise.
711 * xcofflink.c: Likewise.
712 * section.c (struct section_hash_entry): Move to..
713 * libbfd-in.h: ..here.
714 * Makefile.am: Run "make dep-am"
715 * Makefile.in: Regenerate.
716 * bfd-in2.h: Regenerate.
717 * libbfd.h: Regenerate.
718 * libcoff.h: Regenerate.
719
720 2006-03-16 Alan Modra <amodra@bigpond.net.au>
721
722 * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
723 against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak
724 last change to REL32 relocs so that they are counted as
725 possibly dynamic as per REL24 and REL14.
726
727 2006-03-16 Alan Modra <amodra@bigpond.net.au>
728
729 * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
730 checks from REL32.
731
732 2006-03-15 Ben Elliston <bje@au.ibm.com>
733
734 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
735 in_list elements, not just the first.
736
737 2006-03-14 Richard Sandiford <richard@codesourcery.com>
738
739 * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
740 out from...
741 (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend
742 for final links too.
743
744 2006-03-13 Richard Sandiford <richard@codesourcery.com>
745
746 * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
747
748 2006-03-11 H.J. Lu <hongjiu.lu@intel.com>
749
750 PR ld/2443
751 * dwarf2.c (concat_filename): Don't issue an error if file is 0.
752
753 2006-03-10 Paul Brook <paul@codesourcery.com>
754
755 * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
756 (elf32_arm_print_private_bfd_data): Ditto.
757
758 2006-03-09 Paul Brook <paul@codesourcery.com>
759
760 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
761 mapping symbols.
762
763 2006-03-09 Khem Raj <khem@mvista.com>
764
765 * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned
766 char type.
767
768 2006-03-08 H.J. Lu <hongjiu.lu@intel.com>
769
770 * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp.
771
772 2006-03-07 Richard Sandiford <richard@codesourcery.com>
773 Daniel Jacobowitz <dan@codesourcery.com>
774 Zack Weinberg <zack@codesourcery.com>
775 Nathan Sidwell <nathan@codesourcery.com>
776 Paul Brook <paul@codesourcery.com>
777 Ricardo Anguiano <anguiano@codesourcery.com>
778 Phil Edwards <phil@codesourcery.com>
779
780 * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
781 (bfd_elf32_bigarm_symbian_vec): Likewise.
782 (bfd_elf32_bigarm_vxworks_vec): Likewise.
783 (bfd_elf32_littlearm_vec): Likewise.
784 (bfd_elf32_littlearm_symbian_vec): Likewise.
785 (bfd_elf32_littlearm_vxworks_vec): Likewise.
786 * configure: Regenerate.
787 * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
788 (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
789 (elf32_arm_vxworks_bed): Add forward declaration.
790 (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
791 (elf32_arm_vxworks_exec_plt0_entry): New table.
792 (elf32_arm_vxworks_exec_plt_entry): Likewise.
793 (elf32_arm_vxworks_shared_plt_entry): Likewise.
794 (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
795 (reloc_section_p): New function.
796 (create_got_section): Use RELOC_SECTION.
797 (elf32_arm_create_dynamic_sections): Likewise. Call
798 elf_vxworks_create_dynamic_sections for VxWorks targets.
799 Choose between the two possible values of plt_header_size
800 and plt_entry_size.
801 (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
802 (elf32_arm_abs12_reloc): New function.
803 (elf32_arm_final_link_relocate): Call it. Allow the creation of
804 dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p,
805 RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the
806 r_addend fields of relocs. On rela targets, skip any code that
807 adjusts in-place addends. When using _bfd_link_final_relocate
808 to perform a final relocation, pass rel->r_addend as the addend
809 argument.
810 (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
811 object, ignore flags that are not standard on VxWorks.
812 (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
813 relocs on VxWorks. Use reloc_section_p.
814 (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
815 (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of
816 .rela.plt.unloaded relocs on VxWorks targets.
817 (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for
818 .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags
819 instead of DT_REL* tags on RELA targets.
820 (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
821 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks
822 PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
823 (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
824 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ
825 like DT_RELSZ. Handle the VxWorks form of initial PLT entry.
826 Correct the .rela.plt.unreloaded symbol indexes.
827 (elf32_arm_output_symbol_hook): Call the VxWorks version of this
828 hook on VxWorks targets.
829 (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
830 Minor formatting tweak.
831 (elf32_arm_vxworks_final_write_processing): New function.
832 (elf_backend_add_symbol_hook): Override for VxWorks and reset
833 for Symbian.
834 (elf_backend_final_write_processing): Likewise.
835 (elf_backend_emit_relocs): Likewise.
836 (elf_backend_want_plt_sym): Likewise.
837 (ELF_MAXPAGESIZE): Likewise.
838 (elf_backend_may_use_rel_p): Minor formatting tweak.
839 (elf_backend_may_use_rela_p): Likewise.
840 (elf_backend_default_use_rela_p): Likewise.
841 (elf_backend_rela_normal): Likewise.
842 * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
843
844 2006-03-06 Nathan Sidwell <nathan@codesourcery.com>
845
846 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
847 New. Adjust other variants.
848 (bfd_default_scan): Update.
849 * bfd-in2.h: Rebuilt.
850 * cpu-m68k.c: Adjust.
851 (bfd_m68k_compatible): New. Use it for architectures.
852 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
853 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
854 mismatch.
855 (elf32_m68k_print_private_bfd_data): Adjust.
856 * ieee.c (ieee_write_processor): Adjust.
857
858 2006-03-06 Alan Modra <amodra@bigpond.net.au>
859
860 * dwarf2.c: Formatting.
861 (add_line_info): Remove outer loop.
862
863 2006-03-05 H.J. Lu <hongjiu.lu@intel.com>
864 Alan Modra <amodra@bigpond.net.au>
865
866 PR binutils/2338
867 * dwarf2.c (loadable_section): New struct.
868 (dwarf2_debug): Add loadable_section_count and
869 loadable_sections.
870 (new_line_sorts_after): New.
871 (add_line_info): Use new_line_sorts_after to compare line
872 addresses.
873 (check_function_name): Removed.
874 (unset_sections): New.
875 (place_sections): New.
876 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
877 and unset_sections on relocatable files.
878 (_bfd_dwarf2_find_line): Likewise.
879
880 2006-03-03 Nick Clifton <nickc@redhat.com>
881
882 * cpu-avr.c: Update to ISO-C90 formatting.
883 * elf32-avr.c: Likewise.
884
885 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
886
887 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
888 and R_AVR_MS8_LDI
889 (bfd_elf_avr_final_write_processing): Set
890 EF_AVR_LINKRELAX_PREPARED in e_flags field.
891 (elf32_avr_relax_section): New function.
892 (elf32_avr_relax_delete_bytes): New function.
893 (elf32_avr_get_relocated_section_contents): New function.
894 (avr_pc_wrap_around): New function.
895 (avr_relative_distance_considering_wrap_around): New function.
896 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
897 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
898 * libbfd.h: Regenerate.
899 * bfd-in2.h: Regenerate.
900
901 2006-03-02 DJ Delorie <dj@redhat.com>
902
903 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
904 calculations.
905
906 2006-03-02 Richard Sandiford <richard@codesourcery.com>
907
908 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
909 bfd_elf32_powerpc_vxworks_vec.
910
911 2006-03-02 Nick Clifton <nickc@redhat.com>
912
913 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
914
915 2006-03-02 Richard Sandiford <richard@codesourcery.com>
916
917 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
918 elf_vxworks_create_dynamic_sections.
919 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
920 symbol handling.
921 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
922 elf_vxworks_create_dynamic_sections.
923 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
924 symbol handling.
925 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
926 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
927
928 2006-03-02 Richard Sandiford <richard@codesourcery.com>
929
930 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
931 (elf_backend_link_output_symbol_hook): Use
932 elf_vxworks_link_output_symbol_hook instead.
933 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
934 (elf_backend_link_output_symbol_hook): Use
935 elf_vxworks_link_output_symbol_hook instead.
936 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
937 same interface as elf_backend_link_output_symbol_hook.
938 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
939 prototype accordingly.
940
941 2006-03-02 Richard Sandiford <richard@codesourcery.com>
942
943 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
944 (ppc_elf_link_hash_table): Replace old_got and new_got with
945 plt_type and can_use_new_plt.
946 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
947 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
948 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
949 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
950 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
951 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
952 this function should not be called for VxWorks targets.
953 (ppc_elf_tls_setup): Use plt_type instead of old_got.
954 (allocate_got): Likewise. Rearrange so that max_before_header
955 is only used for PLT_OLD and PLT_NEW.
956 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
957 (ppc_elf_size_dynamic_sections): Likewise.
958 (ppc_elf_relax_section): Likewise.
959 (ppc_elf_relocate_section): Likewise.
960 (ppc_elf_finish_dynamic_symbol): Likewise.
961 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
962
963 2006-02-28 Richard Sandiford <richard@codesourcery.com>
964
965 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
966 (elf_i386_link_hash_table_create): Initialize it.
967 (elf_i386_compute_jump_table_size): Use it instead of
968 srelplt->reloc_count.
969 (allocate_dynrelocs): Likewise.
970 (elf_i386_size_dynamic_sections): Likewise.
971 (elf_i386_relocate_section): Likewise.
972
973 2006-02-27 Jakub Jelinek <jakub@redhat.com>
974
975 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
976 (_bfd_elf_write_section_eh_frame): Likewise.
977
978 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
979
980 * po/Make-in: Add html target.
981
982 2006-02-27 Richard Sandiford <richard@codesourcery.com>
983
984 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
985 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
986 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
987 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
988 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
989 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
990 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
991 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
992 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
993 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
994 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
995 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
996 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
997 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
998 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
999 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
1000 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
1001 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
1002 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
1003 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
1004 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1005
1006 2006-02-25 Richard Sandiford <richard@codesourcery.com>
1007
1008 * elf-bfd.h (elf_link_hash_table): Add hplt field.
1009 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
1010 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
1011 * elf32-frv.c (_frv_create_got_section): Likewise.
1012 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
1013 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
1014 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
1015 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
1016 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
1017 (elf_i386_link_hash_table_create): Don't initialize them.
1018 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
1019 hgot fields.
1020 (elf_i386_finish_dynamic_symbol): Likewise.
1021 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
1022 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
1023 (ppc_elf_finish_dynamic_symbol): Likewise.
1024
1025 2006-02-24 DJ Delorie <dj@redhat.com>
1026
1027 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
1028 (m32c_elf_relocate_section): Don't relocate them.
1029 (compare_reloc): New.
1030 (relax_reloc): Remove.
1031 (m32c_offset_for_reloc): New.
1032 (m16c_addr_encodings): New.
1033 (m16c_jmpaddr_encodings): New.
1034 (m32c_addr_encodings): New.
1035 (m32c_elf_relax_section): Relax jumps and address displacements.
1036 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
1037 short jumps.
1038
1039 * reloc.c: Add m32c relax relocs.
1040 * libbfd.h: Regenerate.
1041 * bfd-in2.h: Regenerate.
1042
1043 2006-02-24 H.J. Lu <hongjiu.lu@intel.com>
1044
1045 PR ld/2218
1046 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
1047 (_bfd_elf_link_hash_fixup_symbol): New.
1048
1049 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
1050 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
1051 it isn't NULL.
1052
1053 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
1054
1055 * elfxx-target.h (elf_backend_fixup_symbol): New.
1056 (elfNN_bed): Initialize elf_backend_fixup_symbol.
1057
1058 2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
1059
1060 * cpu-ia64-opc.c (ins_immu5b): New.
1061 (ext_immu5b): Likewise.
1062 (elf64_ia64_operands): Add IMMU5b.
1063
1064 2006-02-21 Alan Modra <amodra@bigpond.net.au>
1065
1066 PR ld/2218
1067 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
1068 is dynamic.
1069 * elf32-hppa.c (allocate_dynrelocs): Likewise.
1070 * elf32-i386.c (allocate_dynrelocs): Likewise.
1071 * elf32-s390.c (allocate_dynrelocs): Likewise.
1072 * elf32-sh.c (allocate_dynrelocs): Likewise.
1073 * elf64-s390.c (allocate_dynrelocs): Likewise.
1074 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1075 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
1076 on undef weak with non-default visibility too.
1077 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
1078
1079 2006-02-21 Alan Modra <amodra@bigpond.net.au>
1080
1081 * bfd.c: (_bfd_default_error_handler): Don't call abort on
1082 error, instead call _exit.
1083 (_bfd_abort): Call _exit not xexit.
1084
1085 2006-02-17 Kevin Buettner <kevinb@redhat.com>
1086
1087 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
1088 New functions.
1089 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
1090
1091 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
1092 Anil Paranjape <anilp1@kpitcummins.com>
1093 Shilin Shakti <shilins@kpitcummins.com>
1094
1095 * Makefile.am: Add xc16x related entry
1096 * Makefile.in: Regenerate
1097 * archures.c: Add bfd_xc16x_arch
1098 * bfd-in2.h: Regenerate
1099 * config.bfd: Add xc16x-*-elf
1100 * configure.in: Add bfd_elf32_xc16x_vec
1101 * configure: Regenerate.
1102 * targets.c: Added xc16x related information
1103 * cpu-xc16x.c: New file
1104 * reloc.c: Add new relocations specific to xc16x:
1105 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
1106 BFD_RELOC_XC16X_SOF
1107 * elf32-xc16x.c: New file.
1108
1109 2006-02-17 Alan Modra <amodra@bigpond.net.au>
1110
1111 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
1112 * elf64-ppc.c (allocate_dynrelocs): Likewise.
1113
1114 2006-02-17 Alan Modra <amodra@bigpond.net.au>
1115
1116 PR ld/2218
1117 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
1118 dynamic.
1119 (ppc64_elf_relocate_section): Check output reloc section size.
1120 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
1121
1122 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
1123
1124 PR ld/2322
1125 * elf.c (get_segment_type): New function.
1126 (_bfd_elf_print_private_bfd_data): Use it.
1127 (print_segment_map): New function.
1128 (assign_file_positions_for_segments): Call print_segment_map
1129 when there are not enough room for program headers.
1130
1131 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1132
1133 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
1134 traditional MIPS ELF targets.
1135
1136 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
1137
1138 PR binutils/2338
1139 * dwarf2.c (check_function_name): New function.
1140 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
1141 check if function is correct.
1142
1143 2006-02-16 Alan Modra <amodra@bigpond.net.au>
1144
1145 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
1146 debug sections.
1147 (elf_link_input_bfd): Adjust comments.
1148
1149 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
1150
1151 * elf.c (copy_private_bfd_data): Minor update.
1152
1153 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 PR binutils/2258
1156 * elf.c (copy_private_bfd_data): Renamed to ...
1157 (rewrite_elf_program_header): This.
1158 (copy_elf_program_header): New function.
1159 (copy_private_bfd_data): Likewise.
1160
1161 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
1162
1163 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
1164 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
1165 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
1166 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
1167 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
1168 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
1169 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
1170 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
1171 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
1172 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
1173 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
1174 bfd_mach_mcf_isa_b_usp_float_emac): New.
1175 (bfd_default_scan): Update coldfire mapping.
1176 * bfd-in.h (bfd_m68k_mach_to_features,
1177 bfd_m68k_features_to_mach): Declare.
1178 * bfd-in2.h: Rebuilt.
1179 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
1180 adjust legacy names.
1181 (m68k_arch_features): New.
1182 (bfd_m68k_mach_to_features,
1183 bfd_m68k_features_to_mach): Define.
1184 * elf32-m68k.c (elf32_m68k_object_p): New.
1185 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
1186 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
1187 (elf_backend_object_p): Define.
1188 * ieee.c (ieee_write_processor): Update coldfire machines.
1189 * libbfd.h: Rebuilt.
1190
1191 2006-02-06 Steve Ellcey <sje@cup.hp.com>
1192
1193 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
1194 if SHF_TLS is set.
1195
1196 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
1197
1198 * coff-z80.c (r_imm24): New howto.
1199 (rtype2howto): New case R_IMM24.
1200 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
1201 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
1202
1203 2006-02-04 Richard Sandiford <richard@codesourcery.com>
1204
1205 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
1206 has already been assigned a GOT index, copy that index to the
1207 current hash table entry.
1208
1209 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1210
1211 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
1212 for call-to-undefweak reloc overflow.
1213
1214 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
1215
1216 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
1217 for 32-bit relocs overflow.
1218
1219 2006-01-27 Paul Brook <paul@codesourcery.com>
1220
1221 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
1222 objects.
1223
1224 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
1225
1226 Introduce TLS descriptors for i386 and x86_64.
1227 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
1228 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
1229 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
1230 * libbfd.h, bfd-in2.h: Rebuilt.
1231 * elf32-i386.c (elf_howto_table): New relocations.
1232 (R_386_tls): Adjust.
1233 (elf_i386_reloc_type_lookup): Map new relocations.
1234 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
1235 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
1236 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
1237 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
1238 (elf_i386_local_tlsdesc_gotent): New macro.
1239 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
1240 (elf_i386_compute_jump_table_size): New macro.
1241 (link_hash_newfunc): Initialize tlsdesc_got.
1242 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
1243 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
1244 R_386_TLS_DESC_CALL.
1245 (elf_i386_check_relocs): Likewise. Allocate space for
1246 local_tlsdesc_gotent.
1247 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
1248 R_386_TLS_DESC_CALL.
1249 (allocate_dynrelocs): Count function PLT relocations. Reserve
1250 space for TLS descriptors and relocations.
1251 (elf_i386_size_dynamic_sections): Reserve space for TLS
1252 descriptors and relocations. Set up sgotplt_jump_table_size.
1253 Don't zero reloc_count in srelplt.
1254 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
1255 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
1256 R_386_TLS_DESC_CALL.
1257 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
1258 (elf_backend_always_size_sections): Define.
1259 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
1260 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
1261 (R_X86_64_standard): Adjust.
1262 (x86_64_reloc_map): Map new relocs.
1263 (elf64_x86_64_rtype_to_howto): New, split out of...
1264 (elf64_x86_64_info_to_howto): ... this function, and...
1265 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
1266 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
1267 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
1268 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
1269 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
1270 (elf64_x86_64_local_tlsdesc_gotent): New macro.
1271 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
1272 tlsdesc_got and sgotplt_jump_table_size fields.
1273 (elf64_x86_64_compute_jump_table_size): New macro.
1274 (link_hash_newfunc): Initialize tlsdesc_got.
1275 (elf64_x86_64_link_hash_table_create): Initialize new fields.
1276 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
1277 R_X86_64_TLSDESC_CALL.
1278 (elf64_x86_64_check_relocs): Likewise. Allocate space for
1279 local_tlsdesc_gotent.
1280 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
1281 R_X86_64_TLSDESC_CALL.
1282 (allocate_dynrelocs): Count function PLT relocations. Reserve
1283 space for TLS descriptors and relocations.
1284 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
1285 descriptors and relocations. Set up sgotplt_jump_table_size,
1286 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
1287 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
1288 and DT_TLSDESC_GOT.
1289 (elf64_x86_64_always_size_sections): New. Set up
1290 _TLS_MODULE_BASE_.
1291 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
1292 R_386_TLS_DESC_CALL.
1293 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
1294 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
1295 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
1296 (elf_backend_always_size_sections): Define.
1297
1298 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
1299
1300 PR binutils/2096
1301 * dwarf2.c (comp_unit_contains_address): Update comment.
1302 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
1303 lma. Return TRUE only if both comp_unit_contains_address and
1304 comp_unit_find_nearest_line return TRUE.
1305 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
1306
1307 2006-01-18 Alan Modra <amodra@bigpond.net.au>
1308
1309 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
1310 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
1311 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
1312 elf_gc_mark_dynamic_ref_symbol. Make global.
1313 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
1314 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
1315 (elfNN_bed): Init new field.
1316 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
1317 (ppc64_elf_gc_mark_dynamic_ref): New function.
1318
1319 2006-01-17 Alan Modra <amodra@bigpond.net.au>
1320
1321 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
1322
1323 2006-01-17 Nick Clifton <nickc@redhat.com>
1324
1325 PR binutils/2159
1326 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
1327 parameters.
1328
1329 2006-01-11 Nick Clifton <nickc@redhat.com>
1330
1331 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
1332 into the newly (re)allocated map array.
1333
1334 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
1335
1336 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
1337
1338 2006-01-01 Jakub Jelinek <jakub@redhat.com>
1339
1340 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
1341 for .toc1 section.
1342
1343 For older changes see ChangeLog-2005
1344 \f
1345 Local Variables:
1346 mode: change-log
1347 left-margin: 8
1348 fill-column: 74
1349 version-control: never
1350 End:
This page took 0.055705 seconds and 4 git commands to generate.