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