Commit | Line | Data |
---|---|---|
d8d1c398 AM |
1 | 2006-03-06 Alan Modra <amodra@bigpond.net.au> |
2 | ||
3 | * dwarf2.c: Formatting. | |
4 | (add_line_info): Remove outer loop. | |
5 | ||
d4c32a81 L |
6 | 2006-03-05 H.J. Lu <hongjiu.lu@intel.com> |
7 | Alan Modra <amodra@bigpond.net.au> | |
8 | ||
9 | PR binutils/2338 | |
10 | * dwarf2.c (loadable_section): New struct. | |
11 | (dwarf2_debug): Add loadable_section_count and | |
12 | loadable_sections. | |
13 | (new_line_sorts_after): New. | |
14 | (add_line_info): Use new_line_sorts_after to compare line | |
15 | addresses. | |
16 | (check_function_name): Removed. | |
17 | (unset_sections): New. | |
18 | (place_sections): New. | |
19 | (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections | |
20 | and unset_sections on relocatable files. | |
21 | (_bfd_dwarf2_find_line): Likewise. | |
22 | ||
4cdc7696 NC |
23 | 2006-03-03 Nick Clifton <nickc@redhat.com> |
24 | ||
25 | * cpu-avr.c: Update to ISO-C90 formatting. | |
26 | * elf32-avr.c: Likewise. | |
27 | ||
df406460 NC |
28 | 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de> |
29 | ||
30 | * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI | |
31 | and R_AVR_MS8_LDI | |
32 | (bfd_elf_avr_final_write_processing): Set | |
33 | EF_AVR_LINKRELAX_PREPARED in e_flags field. | |
34 | (elf32_avr_relax_section): New function. | |
35 | (elf32_avr_relax_delete_bytes): New function. | |
36 | (elf32_avr_get_relocated_section_contents): New function. | |
37 | (avr_pc_wrap_around): New function. | |
38 | (avr_relative_distance_considering_wrap_around): New function. | |
39 | (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI. | |
40 | * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG | |
41 | * libbfd.h: Regenerate. | |
42 | * bfd-in2.h: Regenerate. | |
43 | ||
a1013894 DD |
44 | 2006-03-02 DJ Delorie <dj@redhat.com> |
45 | ||
46 | * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol | |
47 | calculations. | |
48 | ||
7c492719 RS |
49 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
50 | ||
51 | * elf32-ppc.c (is_ppc_elf_target): Return true if the target is | |
52 | bfd_elf32_powerpc_vxworks_vec. | |
53 | ||
e970df31 NC |
54 | 2006-03-02 Nick Clifton <nickc@redhat.com> |
55 | ||
56 | * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'. | |
57 | ||
711de32c RS |
58 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
59 | ||
60 | * elf32-i386.c (elf_i386_create_dynamic_sections): Use | |
61 | elf_vxworks_create_dynamic_sections. | |
62 | (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT | |
63 | symbol handling. | |
64 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use | |
65 | elf_vxworks_create_dynamic_sections. | |
66 | (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT | |
67 | symbol handling. | |
68 | * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function. | |
69 | * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare. | |
70 | ||
9c72ff84 RS |
71 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
72 | ||
73 | * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
74 | (elf_backend_link_output_symbol_hook): Use | |
75 | elf_vxworks_link_output_symbol_hook instead. | |
76 | * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
77 | (elf_backend_link_output_symbol_hook): Use | |
78 | elf_vxworks_link_output_symbol_hook instead. | |
79 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the | |
80 | same interface as elf_backend_link_output_symbol_hook. | |
81 | * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update | |
82 | prototype accordingly. | |
83 | ||
4a3dc543 RS |
84 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
85 | ||
86 | * elf32-ppc.c (ppc_elf_plt_type): New enumeration. | |
87 | (ppc_elf_link_hash_table): Replace old_got and new_got with | |
88 | plt_type and can_use_new_plt. | |
89 | (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS, | |
90 | SEC_LOAD and SEC_READONLY to the VxWorks .plt flags. | |
91 | (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt. | |
92 | Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt. | |
93 | (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to | |
94 | either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that | |
95 | this function should not be called for VxWorks targets. | |
96 | (ppc_elf_tls_setup): Use plt_type instead of old_got. | |
97 | (allocate_got): Likewise. Rearrange so that max_before_header | |
98 | is only used for PLT_OLD and PLT_NEW. | |
99 | (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks. | |
100 | (ppc_elf_size_dynamic_sections): Likewise. | |
101 | (ppc_elf_relax_section): Likewise. | |
102 | (ppc_elf_relocate_section): Likewise. | |
103 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
104 | (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type. | |
105 | ||
5ae0bfb6 RS |
106 | 2006-02-28 Richard Sandiford <richard@codesourcery.com> |
107 | ||
108 | * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index. | |
109 | (elf_i386_link_hash_table_create): Initialize it. | |
110 | (elf_i386_compute_jump_table_size): Use it instead of | |
111 | srelplt->reloc_count. | |
112 | (allocate_dynrelocs): Likewise. | |
113 | (elf_i386_size_dynamic_sections): Likewise. | |
114 | (elf_i386_relocate_section): Likewise. | |
115 | ||
63752a75 JJ |
116 | 2006-02-27 Jakub Jelinek <jakub@redhat.com> |
117 | ||
118 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag. | |
119 | (_bfd_elf_write_section_eh_frame): Likewise. | |
120 | ||
f7d9e5c3 CD |
121 | 2006-02-27 Carlos O'Donell <carlos@codesourcery.com> |
122 | ||
123 | * po/Make-in: Add html target. | |
124 | ||
22edb2f1 RS |
125 | 2006-02-27 Richard Sandiford <richard@codesourcery.com> |
126 | ||
127 | * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the | |
128 | cached hgot entry to check for _GLOBAL_OFFSET_TABLE_. | |
129 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise. | |
130 | * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise. | |
131 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
132 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
133 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
134 | * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise. | |
135 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise. | |
136 | * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise. | |
137 | * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise. | |
138 | * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise. | |
139 | * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise. | |
140 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
141 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
142 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use | |
143 | the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_. | |
144 | * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise. | |
145 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
146 | * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise. | |
147 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
148 | ||
7325306f RS |
149 | 2006-02-25 Richard Sandiford <richard@codesourcery.com> |
150 | ||
151 | * elf-bfd.h (elf_link_hash_table): Add hplt field. | |
152 | * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it. | |
153 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise. | |
154 | * elf32-frv.c (_frv_create_got_section): Likewise. | |
155 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. | |
156 | * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise. | |
157 | * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. | |
158 | * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise. | |
159 | * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt. | |
160 | (elf_i386_link_hash_table_create): Don't initialize them. | |
161 | (elf_i386_size_dynamic_sections): Use the generic ELF hplt and | |
162 | hgot fields. | |
163 | (elf_i386_finish_dynamic_symbol): Likewise. | |
164 | * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt. | |
165 | (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields. | |
166 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
167 | ||
6772dd07 DD |
168 | 2006-02-24 DJ Delorie <dj@redhat.com> |
169 | ||
170 | * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs. | |
171 | (m32c_elf_relocate_section): Don't relocate them. | |
172 | (compare_reloc): New. | |
173 | (relax_reloc): Remove. | |
174 | (m32c_offset_for_reloc): New. | |
175 | (m16c_addr_encodings): New. | |
176 | (m16c_jmpaddr_encodings): New. | |
177 | (m32c_addr_encodings): New. | |
178 | (m32c_elf_relax_section): Relax jumps and address displacements. | |
179 | (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up | |
180 | short jumps. | |
181 | ||
182 | * reloc.c: Add m32c relax relocs. | |
183 | * libbfd.h: Regenerate. | |
184 | * bfd-in2.h: Regenerate. | |
185 | ||
508c3946 L |
186 | 2006-02-24 H.J. Lu <hongjiu.lu@intel.com> |
187 | ||
188 | PR ld/2218 | |
189 | * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol. | |
190 | (_bfd_elf_link_hash_fixup_symbol): New. | |
191 | ||
192 | * elflink.c (_bfd_elf_link_hash_fixup_symbol): New. | |
193 | (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if | |
194 | it isn't NULL. | |
195 | ||
196 | * elfxx-ia64.c (elf_backend_fixup_symbol): Defined. | |
197 | ||
198 | * elfxx-target.h (elf_backend_fixup_symbol): New. | |
199 | (elfNN_bed): Initialize elf_backend_fixup_symbol. | |
200 | ||
59cf82fe L |
201 | 2006-02-23 H.J. Lu <hongjiu.lu@intel.com> |
202 | ||
203 | * cpu-ia64-opc.c (ins_immu5b): New. | |
204 | (ext_immu5b): Likewise. | |
205 | (elf64_ia64_operands): Add IMMU5b. | |
206 | ||
22d606e9 AM |
207 | 2006-02-21 Alan Modra <amodra@bigpond.net.au> |
208 | ||
209 | PR ld/2218 | |
210 | * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie | |
211 | is dynamic. | |
212 | * elf32-hppa.c (allocate_dynrelocs): Likewise. | |
213 | * elf32-i386.c (allocate_dynrelocs): Likewise. | |
214 | * elf32-s390.c (allocate_dynrelocs): Likewise. | |
215 | * elf32-sh.c (allocate_dynrelocs): Likewise. | |
216 | * elf64-s390.c (allocate_dynrelocs): Likewise. | |
217 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
218 | * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs | |
219 | on undef weak with non-default visibility too. | |
220 | * elfxx-sparc.c (allocate_dynrelocs): Ditto. | |
221 | ||
3168356f AM |
222 | 2006-02-21 Alan Modra <amodra@bigpond.net.au> |
223 | ||
224 | * bfd.c: (_bfd_default_error_handler): Don't call abort on | |
225 | error, instead call _exit. | |
226 | (_bfd_abort): Call _exit not xexit. | |
227 | ||
888b45b8 KB |
228 | 2006-02-17 Kevin Buettner <kevinb@redhat.com> |
229 | ||
230 | * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo): | |
231 | New functions. | |
232 | * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. | |
233 | ||
d70c5fc7 NC |
234 | 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com> |
235 | Anil Paranjape <anilp1@kpitcummins.com> | |
236 | Shilin Shakti <shilins@kpitcummins.com> | |
237 | ||
238 | * Makefile.am: Add xc16x related entry | |
239 | * Makefile.in: Regenerate | |
240 | * archures.c: Add bfd_xc16x_arch | |
241 | * bfd-in2.h: Regenerate | |
242 | * config.bfd: Add xc16x-*-elf | |
243 | * configure.in: Add bfd_elf32_xc16x_vec | |
244 | * configure: Regenerate. | |
245 | * targets.c: Added xc16x related information | |
246 | * cpu-xc16x.c: New file | |
247 | * reloc.c: Add new relocations specific to xc16x: | |
248 | BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG, | |
249 | BFD_RELOC_XC16X_SOF | |
250 | * elf32-xc16x.c: New file. | |
251 | ||
cab87ef9 AM |
252 | 2006-02-17 Alan Modra <amodra@bigpond.net.au> |
253 | ||
254 | * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling. | |
255 | * elf64-ppc.c (allocate_dynrelocs): Likewise. | |
256 | ||
dfbb6ac9 AM |
257 | 2006-02-17 Alan Modra <amodra@bigpond.net.au> |
258 | ||
259 | PR ld/2218 | |
260 | * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is | |
261 | dynamic. | |
262 | (ppc64_elf_relocate_section): Check output reloc section size. | |
263 | * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test. | |
264 | ||
cedc298e L |
265 | 2006-02-16 H.J. Lu <hongjiu.lu@intel.com> |
266 | ||
267 | PR ld/2322 | |
268 | * elf.c (get_segment_type): New function. | |
269 | (_bfd_elf_print_private_bfd_data): Use it. | |
270 | (print_segment_map): New function. | |
271 | (assign_file_positions_for_segments): Call print_segment_map | |
272 | when there are not enough room for program headers. | |
273 | ||
aaa2ab3d NH |
274 | 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com> |
275 | ||
276 | * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use | |
277 | traditional MIPS ELF targets. | |
278 | ||
35ccda9e L |
279 | 2006-02-15 H.J. Lu <hongjiu.lu@intel.com> |
280 | ||
281 | PR binutils/2338 | |
282 | * dwarf2.c (check_function_name): New function. | |
283 | (_bfd_dwarf2_find_nearest_line): Use check_function_name to | |
284 | check if function is correct. | |
285 | ||
e0ae6d6f AM |
286 | 2006-02-16 Alan Modra <amodra@bigpond.net.au> |
287 | ||
288 | * elflink.c (_bfd_elf_default_action_discarded): Return 0 for | |
289 | debug sections. | |
290 | (elf_link_input_bfd): Adjust comments. | |
291 | ||
d55ce4e2 L |
292 | 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> |
293 | ||
294 | * elf.c (copy_private_bfd_data): Minor update. | |
295 | ||
84d1d650 L |
296 | 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> |
297 | ||
298 | PR binutils/2258 | |
299 | * elf.c (copy_private_bfd_data): Renamed to ... | |
300 | (rewrite_elf_program_header): This. | |
301 | (copy_elf_program_header): New function. | |
302 | (copy_private_bfd_data): Likewise. | |
303 | ||
304 | 2006-02-07 Nathan Sidwell <nathan@codesourcery.com> | |
266abb8f NS |
305 | |
306 | * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e, | |
307 | bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x, | |
308 | bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249, | |
309 | bfd_mach_mcf547x, bfd_mach_mcf548x): Remove. | |
310 | (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div, | |
311 | bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac, | |
312 | bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac, | |
313 | bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp, | |
314 | bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac, | |
315 | bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac, | |
316 | bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac, | |
317 | bfd_mach_mcf_isa_b_usp_float_emac): New. | |
318 | (bfd_default_scan): Update coldfire mapping. | |
319 | * bfd-in.h (bfd_m68k_mach_to_features, | |
320 | bfd_m68k_features_to_mach): Declare. | |
321 | * bfd-in2.h: Rebuilt. | |
322 | * cpu-m68k.c (arch_info_struct): Add new coldfire machines, | |
323 | adjust legacy names. | |
324 | (m68k_arch_features): New. | |
325 | (bfd_m68k_mach_to_features, | |
326 | bfd_m68k_features_to_mach): Define. | |
327 | * elf32-m68k.c (elf32_m68k_object_p): New. | |
328 | (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags. | |
329 | (elf32_m68k_print_private_bfd_data): Print the CF EF flags. | |
330 | (elf_backend_object_p): Define. | |
331 | * ieee.c (ieee_write_processor): Update coldfire machines. | |
332 | * libbfd.h: Rebuilt. | |
333 | ||
75eb734c SE |
334 | 2006-02-06 Steve Ellcey <sje@cup.hp.com> |
335 | ||
336 | * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS | |
337 | if SHF_TLS is set. | |
338 | ||
134dcee5 AM |
339 | 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl> |
340 | ||
341 | * coff-z80.c (r_imm24): New howto. | |
342 | (rtype2howto): New case R_IMM24. | |
343 | (coff_z80_reloc_type_lookup): New case BFD_RELOC_24. | |
344 | (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24. | |
345 | ||
4005427f RS |
346 | 2006-02-04 Richard Sandiford <richard@codesourcery.com> |
347 | ||
348 | * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol | |
349 | has already been assigned a GOT index, copy that index to the | |
350 | current hash table entry. | |
351 | ||
bb29dfea EB |
352 | 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr> |
353 | ||
354 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
355 | for call-to-undefweak reloc overflow. | |
356 | ||
dc669dc8 EB |
357 | 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr> |
358 | ||
359 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
360 | for 32-bit relocs overflow. | |
361 | ||
1a0eb693 PB |
362 | 2006-01-27 Paul Brook <paul@codesourcery.com> |
363 | ||
364 | * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb | |
365 | objects. | |
366 | ||
67a4f2b7 AO |
367 | 2006-01-18 Alexandre Oliva <aoliva@redhat.com> |
368 | ||
369 | Introduce TLS descriptors for i386 and x86_64. | |
370 | * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC, | |
371 | BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC, | |
372 | BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New. | |
373 | * libbfd.h, bfd-in2.h: Rebuilt. | |
374 | * elf32-i386.c (elf_howto_table): New relocations. | |
375 | (R_386_tls): Adjust. | |
376 | (elf_i386_reloc_type_lookup): Map new relocations. | |
377 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
378 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
379 | (struct elf_i386_link_hash_entry): Add tlsdesc_got field. | |
380 | (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field. | |
381 | (elf_i386_local_tlsdesc_gotent): New macro. | |
382 | (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size. | |
383 | (elf_i386_compute_jump_table_size): New macro. | |
384 | (link_hash_newfunc): Initialize tlsdesc_got. | |
385 | (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size. | |
386 | (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and | |
387 | R_386_TLS_DESC_CALL. | |
388 | (elf_i386_check_relocs): Likewise. Allocate space for | |
389 | local_tlsdesc_gotent. | |
390 | (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and | |
391 | R_386_TLS_DESC_CALL. | |
392 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
393 | space for TLS descriptors and relocations. | |
394 | (elf_i386_size_dynamic_sections): Reserve space for TLS | |
395 | descriptors and relocations. Set up sgotplt_jump_table_size. | |
396 | Don't zero reloc_count in srelplt. | |
397 | (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_. | |
398 | (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and | |
399 | R_386_TLS_DESC_CALL. | |
400 | (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
401 | (elf_backend_always_size_sections): Define. | |
402 | * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC, | |
403 | R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL. | |
404 | (R_X86_64_standard): Adjust. | |
405 | (x86_64_reloc_map): Map new relocs. | |
406 | (elf64_x86_64_rtype_to_howto): New, split out of... | |
407 | (elf64_x86_64_info_to_howto): ... this function, and... | |
408 | (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val. | |
409 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
410 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
411 | (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field. | |
412 | (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field. | |
413 | (elf64_x86_64_local_tlsdesc_gotent): New macro. | |
414 | (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt, | |
415 | tlsdesc_got and sgotplt_jump_table_size fields. | |
416 | (elf64_x86_64_compute_jump_table_size): New macro. | |
417 | (link_hash_newfunc): Initialize tlsdesc_got. | |
418 | (elf64_x86_64_link_hash_table_create): Initialize new fields. | |
419 | (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and | |
420 | R_X86_64_TLSDESC_CALL. | |
421 | (elf64_x86_64_check_relocs): Likewise. Allocate space for | |
422 | local_tlsdesc_gotent. | |
423 | (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and | |
424 | R_X86_64_TLSDESC_CALL. | |
425 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
426 | space for TLS descriptors and relocations. | |
427 | (elf64_x86_64_size_dynamic_sections): Reserve space for TLS | |
428 | descriptors and relocations. Set up sgotplt_jump_table_size, | |
429 | tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero | |
430 | reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT | |
431 | and DT_TLSDESC_GOT. | |
432 | (elf64_x86_64_always_size_sections): New. Set up | |
433 | _TLS_MODULE_BASE_. | |
434 | (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and | |
435 | R_386_TLS_DESC_CALL. | |
436 | (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
437 | (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and | |
438 | DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry. | |
439 | (elf_backend_always_size_sections): Define. | |
440 | ||
6dd55cb7 L |
441 | 2006-01-17 H.J. Lu <hongjiu.lu@intel.com> |
442 | ||
443 | PR binutils/2096 | |
444 | * dwarf2.c (comp_unit_contains_address): Update comment. | |
445 | (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of | |
446 | lma. Return TRUE only if both comp_unit_contains_address and | |
447 | comp_unit_find_nearest_line return TRUE. | |
448 | (_bfd_dwarf2_find_line): Use section's vma, instead of lma. | |
449 | ||
64d03ab5 AM |
450 | 2006-01-18 Alan Modra <amodra@bigpond.net.au> |
451 | ||
452 | * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref. | |
453 | (bfd_elf_gc_mark_dynamic_ref_symbol): Declare. | |
454 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from | |
455 | elf_gc_mark_dynamic_ref_symbol. Make global. | |
456 | (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref. | |
457 | * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define. | |
458 | (elfNN_bed): Init new field. | |
459 | * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define. | |
460 | (ppc64_elf_gc_mark_dynamic_ref): New function. | |
461 | ||
b56cbdb9 AM |
462 | 2006-01-17 Alan Modra <amodra@bigpond.net.au> |
463 | ||
464 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop. | |
465 | ||
6c10990d NC |
466 | 2006-01-17 Nick Clifton <nickc@redhat.com> |
467 | ||
468 | PR binutils/2159 | |
469 | * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused | |
470 | parameters. | |
471 | ||
d7f735da NC |
472 | 2006-01-11 Nick Clifton <nickc@redhat.com> |
473 | ||
474 | * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry | |
475 | into the newly (re)allocated map array. | |
476 | ||
2bfd55ca NC |
477 | 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com> |
478 | ||
479 | * peXXigen.c (tbl): Add comma after "HIGH3ADJ". | |
480 | ||
bce50a28 JJ |
481 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
482 | ||
483 | * elf64-ppc.c (ppc64_elf_action_discarded): Return 0 | |
484 | for .toc1 section. | |
485 | ||
e88d958a | 486 | For older changes see ChangeLog-2005 |
56882138 AM |
487 | \f |
488 | Local Variables: | |
489 | mode: change-log | |
490 | left-margin: 8 | |
491 | fill-column: 74 | |
492 | version-control: never | |
493 | End: |