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