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