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