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