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