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