* elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-03-16 Alan Modra <amodra@bigpond.net.au>
2
3 * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
4 against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak
5 last change to REL32 relocs so that they are counted as
6 possibly dynamic as per REL24 and REL14.
7
8 2006-03-16 Alan Modra <amodra@bigpond.net.au>
9
10 * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
11 checks from REL32.
12
13 2006-03-15 Ben Elliston <bje@au.ibm.com>
14
15 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
16 in_list elements, not just the first.
17
18 2006-03-14 Richard Sandiford <richard@codesourcery.com>
19
20 * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
21 out from...
22 (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend
23 for final links too.
24
25 2006-03-13 Richard Sandiford <richard@codesourcery.com>
26
27 * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
28
29 2006-03-11 H.J. Lu <hongjiu.lu@intel.com>
30
31 PR ld/2443
32 * dwarf2.c (concat_filename): Don't issue an error if file is
33 0.
34
35 2006-03-10 Paul Brook <paul@codesourcery.com>
36
37 * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
38 (elf32_arm_print_private_bfd_data): Ditto.
39
40 2006-03-09 Paul Brook <paul@codesourcery.com>
41
42 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
43 mapping symbols.
44
45 2006-03-09 Khem Raj <khem@mvista.com>
46
47 * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned
48 char type.
49
50 2006-03-08 H.J. Lu <hongjiu.lu@intel.com>
51
52 * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp.
53
54 2006-03-07 Richard Sandiford <richard@codesourcery.com>
55 Daniel Jacobowitz <dan@codesourcery.com>
56 Zack Weinberg <zack@codesourcery.com>
57 Nathan Sidwell <nathan@codesourcery.com>
58 Paul Brook <paul@codesourcery.com>
59 Ricardo Anguiano <anguiano@codesourcery.com>
60 Phil Edwards <phil@codesourcery.com>
61
62 * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
63 (bfd_elf32_bigarm_symbian_vec): Likewise.
64 (bfd_elf32_bigarm_vxworks_vec): Likewise.
65 (bfd_elf32_littlearm_vec): Likewise.
66 (bfd_elf32_littlearm_symbian_vec): Likewise.
67 (bfd_elf32_littlearm_vxworks_vec): Likewise.
68 * configure: Regenerate.
69 * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
70 (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
71 (elf32_arm_vxworks_bed): Add forward declaration.
72 (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
73 (elf32_arm_vxworks_exec_plt0_entry): New table.
74 (elf32_arm_vxworks_exec_plt_entry): Likewise.
75 (elf32_arm_vxworks_shared_plt_entry): Likewise.
76 (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
77 (reloc_section_p): New function.
78 (create_got_section): Use RELOC_SECTION.
79 (elf32_arm_create_dynamic_sections): Likewise. Call
80 elf_vxworks_create_dynamic_sections for VxWorks targets.
81 Choose between the two possible values of plt_header_size
82 and plt_entry_size.
83 (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
84 (elf32_arm_abs12_reloc): New function.
85 (elf32_arm_final_link_relocate): Call it. Allow the creation of
86 dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p,
87 RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the
88 r_addend fields of relocs. On rela targets, skip any code that
89 adjusts in-place addends. When using _bfd_link_final_relocate
90 to perform a final relocation, pass rel->r_addend as the addend
91 argument.
92 (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
93 object, ignore flags that are not standard on VxWorks.
94 (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
95 relocs on VxWorks. Use reloc_section_p.
96 (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
97 (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of
98 .rela.plt.unloaded relocs on VxWorks targets.
99 (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for
100 .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags
101 instead of DT_REL* tags on RELA targets.
102 (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
103 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks
104 PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
105 (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
106 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ
107 like DT_RELSZ. Handle the VxWorks form of initial PLT entry.
108 Correct the .rela.plt.unreloaded symbol indexes.
109 (elf32_arm_output_symbol_hook): Call the VxWorks version of this
110 hook on VxWorks targets.
111 (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
112 Minor formatting tweak.
113 (elf32_arm_vxworks_final_write_processing): New function.
114 (elf_backend_add_symbol_hook): Override for VxWorks and reset
115 for Symbian.
116 (elf_backend_final_write_processing): Likewise.
117 (elf_backend_emit_relocs): Likewise.
118 (elf_backend_want_plt_sym): Likewise.
119 (ELF_MAXPAGESIZE): Likewise.
120 (elf_backend_may_use_rel_p): Minor formatting tweak.
121 (elf_backend_may_use_rela_p): Likewise.
122 (elf_backend_default_use_rela_p): Likewise.
123 (elf_backend_rela_normal): Likewise.
124 * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
125
126 2006-03-06 Nathan Sidwell <nathan@codesourcery.com>
127
128 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
129 New. Adjust other variants.
130 (bfd_default_scan): Update.
131 * bfd-in2.h: Rebuilt.
132 * cpu-m68k.c: Adjust.
133 (bfd_m68k_compatible): New. Use it for architectures.
134 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
135 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
136 mismatch.
137 (elf32_m68k_print_private_bfd_data): Adjust.
138 * ieee.c (ieee_write_processor): Adjust.
139
140 2006-03-06 Alan Modra <amodra@bigpond.net.au>
141
142 * dwarf2.c: Formatting.
143 (add_line_info): Remove outer loop.
144
145 2006-03-05 H.J. Lu <hongjiu.lu@intel.com>
146 Alan Modra <amodra@bigpond.net.au>
147
148 PR binutils/2338
149 * dwarf2.c (loadable_section): New struct.
150 (dwarf2_debug): Add loadable_section_count and
151 loadable_sections.
152 (new_line_sorts_after): New.
153 (add_line_info): Use new_line_sorts_after to compare line
154 addresses.
155 (check_function_name): Removed.
156 (unset_sections): New.
157 (place_sections): New.
158 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
159 and unset_sections on relocatable files.
160 (_bfd_dwarf2_find_line): Likewise.
161
162 2006-03-03 Nick Clifton <nickc@redhat.com>
163
164 * cpu-avr.c: Update to ISO-C90 formatting.
165 * elf32-avr.c: Likewise.
166
167 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
168
169 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
170 and R_AVR_MS8_LDI
171 (bfd_elf_avr_final_write_processing): Set
172 EF_AVR_LINKRELAX_PREPARED in e_flags field.
173 (elf32_avr_relax_section): New function.
174 (elf32_avr_relax_delete_bytes): New function.
175 (elf32_avr_get_relocated_section_contents): New function.
176 (avr_pc_wrap_around): New function.
177 (avr_relative_distance_considering_wrap_around): New function.
178 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
179 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
180 * libbfd.h: Regenerate.
181 * bfd-in2.h: Regenerate.
182
183 2006-03-02 DJ Delorie <dj@redhat.com>
184
185 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
186 calculations.
187
188 2006-03-02 Richard Sandiford <richard@codesourcery.com>
189
190 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
191 bfd_elf32_powerpc_vxworks_vec.
192
193 2006-03-02 Nick Clifton <nickc@redhat.com>
194
195 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
196
197 2006-03-02 Richard Sandiford <richard@codesourcery.com>
198
199 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
200 elf_vxworks_create_dynamic_sections.
201 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
202 symbol handling.
203 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
204 elf_vxworks_create_dynamic_sections.
205 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
206 symbol handling.
207 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
208 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
209
210 2006-03-02 Richard Sandiford <richard@codesourcery.com>
211
212 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
213 (elf_backend_link_output_symbol_hook): Use
214 elf_vxworks_link_output_symbol_hook instead.
215 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
216 (elf_backend_link_output_symbol_hook): Use
217 elf_vxworks_link_output_symbol_hook instead.
218 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
219 same interface as elf_backend_link_output_symbol_hook.
220 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
221 prototype accordingly.
222
223 2006-03-02 Richard Sandiford <richard@codesourcery.com>
224
225 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
226 (ppc_elf_link_hash_table): Replace old_got and new_got with
227 plt_type and can_use_new_plt.
228 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
229 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
230 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
231 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
232 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
233 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
234 this function should not be called for VxWorks targets.
235 (ppc_elf_tls_setup): Use plt_type instead of old_got.
236 (allocate_got): Likewise. Rearrange so that max_before_header
237 is only used for PLT_OLD and PLT_NEW.
238 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
239 (ppc_elf_size_dynamic_sections): Likewise.
240 (ppc_elf_relax_section): Likewise.
241 (ppc_elf_relocate_section): Likewise.
242 (ppc_elf_finish_dynamic_symbol): Likewise.
243 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
244
245 2006-02-28 Richard Sandiford <richard@codesourcery.com>
246
247 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
248 (elf_i386_link_hash_table_create): Initialize it.
249 (elf_i386_compute_jump_table_size): Use it instead of
250 srelplt->reloc_count.
251 (allocate_dynrelocs): Likewise.
252 (elf_i386_size_dynamic_sections): Likewise.
253 (elf_i386_relocate_section): Likewise.
254
255 2006-02-27 Jakub Jelinek <jakub@redhat.com>
256
257 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
258 (_bfd_elf_write_section_eh_frame): Likewise.
259
260 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
261
262 * po/Make-in: Add html target.
263
264 2006-02-27 Richard Sandiford <richard@codesourcery.com>
265
266 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
267 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
268 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
269 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
270 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
271 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
272 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
273 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
274 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
275 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
276 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
277 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
278 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
279 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
280 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
281 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
282 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
283 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
284 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
285 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
286 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
287
288 2006-02-25 Richard Sandiford <richard@codesourcery.com>
289
290 * elf-bfd.h (elf_link_hash_table): Add hplt field.
291 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
292 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
293 * elf32-frv.c (_frv_create_got_section): Likewise.
294 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
295 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
296 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
297 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
298 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
299 (elf_i386_link_hash_table_create): Don't initialize them.
300 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
301 hgot fields.
302 (elf_i386_finish_dynamic_symbol): Likewise.
303 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
304 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
305 (ppc_elf_finish_dynamic_symbol): Likewise.
306
307 2006-02-24 DJ Delorie <dj@redhat.com>
308
309 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
310 (m32c_elf_relocate_section): Don't relocate them.
311 (compare_reloc): New.
312 (relax_reloc): Remove.
313 (m32c_offset_for_reloc): New.
314 (m16c_addr_encodings): New.
315 (m16c_jmpaddr_encodings): New.
316 (m32c_addr_encodings): New.
317 (m32c_elf_relax_section): Relax jumps and address displacements.
318 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
319 short jumps.
320
321 * reloc.c: Add m32c relax relocs.
322 * libbfd.h: Regenerate.
323 * bfd-in2.h: Regenerate.
324
325 2006-02-24 H.J. Lu <hongjiu.lu@intel.com>
326
327 PR ld/2218
328 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
329 (_bfd_elf_link_hash_fixup_symbol): New.
330
331 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
332 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
333 it isn't NULL.
334
335 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
336
337 * elfxx-target.h (elf_backend_fixup_symbol): New.
338 (elfNN_bed): Initialize elf_backend_fixup_symbol.
339
340 2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
341
342 * cpu-ia64-opc.c (ins_immu5b): New.
343 (ext_immu5b): Likewise.
344 (elf64_ia64_operands): Add IMMU5b.
345
346 2006-02-21 Alan Modra <amodra@bigpond.net.au>
347
348 PR ld/2218
349 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
350 is dynamic.
351 * elf32-hppa.c (allocate_dynrelocs): Likewise.
352 * elf32-i386.c (allocate_dynrelocs): Likewise.
353 * elf32-s390.c (allocate_dynrelocs): Likewise.
354 * elf32-sh.c (allocate_dynrelocs): Likewise.
355 * elf64-s390.c (allocate_dynrelocs): Likewise.
356 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
357 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
358 on undef weak with non-default visibility too.
359 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
360
361 2006-02-21 Alan Modra <amodra@bigpond.net.au>
362
363 * bfd.c: (_bfd_default_error_handler): Don't call abort on
364 error, instead call _exit.
365 (_bfd_abort): Call _exit not xexit.
366
367 2006-02-17 Kevin Buettner <kevinb@redhat.com>
368
369 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
370 New functions.
371 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
372
373 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
374 Anil Paranjape <anilp1@kpitcummins.com>
375 Shilin Shakti <shilins@kpitcummins.com>
376
377 * Makefile.am: Add xc16x related entry
378 * Makefile.in: Regenerate
379 * archures.c: Add bfd_xc16x_arch
380 * bfd-in2.h: Regenerate
381 * config.bfd: Add xc16x-*-elf
382 * configure.in: Add bfd_elf32_xc16x_vec
383 * configure: Regenerate.
384 * targets.c: Added xc16x related information
385 * cpu-xc16x.c: New file
386 * reloc.c: Add new relocations specific to xc16x:
387 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
388 BFD_RELOC_XC16X_SOF
389 * elf32-xc16x.c: New file.
390
391 2006-02-17 Alan Modra <amodra@bigpond.net.au>
392
393 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
394 * elf64-ppc.c (allocate_dynrelocs): Likewise.
395
396 2006-02-17 Alan Modra <amodra@bigpond.net.au>
397
398 PR ld/2218
399 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
400 dynamic.
401 (ppc64_elf_relocate_section): Check output reloc section size.
402 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
403
404 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
405
406 PR ld/2322
407 * elf.c (get_segment_type): New function.
408 (_bfd_elf_print_private_bfd_data): Use it.
409 (print_segment_map): New function.
410 (assign_file_positions_for_segments): Call print_segment_map
411 when there are not enough room for program headers.
412
413 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
414
415 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
416 traditional MIPS ELF targets.
417
418 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
419
420 PR binutils/2338
421 * dwarf2.c (check_function_name): New function.
422 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
423 check if function is correct.
424
425 2006-02-16 Alan Modra <amodra@bigpond.net.au>
426
427 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
428 debug sections.
429 (elf_link_input_bfd): Adjust comments.
430
431 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
432
433 * elf.c (copy_private_bfd_data): Minor update.
434
435 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
436
437 PR binutils/2258
438 * elf.c (copy_private_bfd_data): Renamed to ...
439 (rewrite_elf_program_header): This.
440 (copy_elf_program_header): New function.
441 (copy_private_bfd_data): Likewise.
442
443 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
444
445 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
446 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
447 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
448 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
449 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
450 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
451 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
452 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
453 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
454 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
455 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
456 bfd_mach_mcf_isa_b_usp_float_emac): New.
457 (bfd_default_scan): Update coldfire mapping.
458 * bfd-in.h (bfd_m68k_mach_to_features,
459 bfd_m68k_features_to_mach): Declare.
460 * bfd-in2.h: Rebuilt.
461 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
462 adjust legacy names.
463 (m68k_arch_features): New.
464 (bfd_m68k_mach_to_features,
465 bfd_m68k_features_to_mach): Define.
466 * elf32-m68k.c (elf32_m68k_object_p): New.
467 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
468 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
469 (elf_backend_object_p): Define.
470 * ieee.c (ieee_write_processor): Update coldfire machines.
471 * libbfd.h: Rebuilt.
472
473 2006-02-06 Steve Ellcey <sje@cup.hp.com>
474
475 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
476 if SHF_TLS is set.
477
478 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
479
480 * coff-z80.c (r_imm24): New howto.
481 (rtype2howto): New case R_IMM24.
482 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
483 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
484
485 2006-02-04 Richard Sandiford <richard@codesourcery.com>
486
487 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
488 has already been assigned a GOT index, copy that index to the
489 current hash table entry.
490
491 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
492
493 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
494 for call-to-undefweak reloc overflow.
495
496 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
497
498 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
499 for 32-bit relocs overflow.
500
501 2006-01-27 Paul Brook <paul@codesourcery.com>
502
503 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
504 objects.
505
506 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
507
508 Introduce TLS descriptors for i386 and x86_64.
509 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
510 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
511 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
512 * libbfd.h, bfd-in2.h: Rebuilt.
513 * elf32-i386.c (elf_howto_table): New relocations.
514 (R_386_tls): Adjust.
515 (elf_i386_reloc_type_lookup): Map new relocations.
516 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
517 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
518 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
519 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
520 (elf_i386_local_tlsdesc_gotent): New macro.
521 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
522 (elf_i386_compute_jump_table_size): New macro.
523 (link_hash_newfunc): Initialize tlsdesc_got.
524 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
525 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
526 R_386_TLS_DESC_CALL.
527 (elf_i386_check_relocs): Likewise. Allocate space for
528 local_tlsdesc_gotent.
529 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
530 R_386_TLS_DESC_CALL.
531 (allocate_dynrelocs): Count function PLT relocations. Reserve
532 space for TLS descriptors and relocations.
533 (elf_i386_size_dynamic_sections): Reserve space for TLS
534 descriptors and relocations. Set up sgotplt_jump_table_size.
535 Don't zero reloc_count in srelplt.
536 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
537 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
538 R_386_TLS_DESC_CALL.
539 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
540 (elf_backend_always_size_sections): Define.
541 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
542 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
543 (R_X86_64_standard): Adjust.
544 (x86_64_reloc_map): Map new relocs.
545 (elf64_x86_64_rtype_to_howto): New, split out of...
546 (elf64_x86_64_info_to_howto): ... this function, and...
547 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
548 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
549 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
550 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
551 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
552 (elf64_x86_64_local_tlsdesc_gotent): New macro.
553 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
554 tlsdesc_got and sgotplt_jump_table_size fields.
555 (elf64_x86_64_compute_jump_table_size): New macro.
556 (link_hash_newfunc): Initialize tlsdesc_got.
557 (elf64_x86_64_link_hash_table_create): Initialize new fields.
558 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
559 R_X86_64_TLSDESC_CALL.
560 (elf64_x86_64_check_relocs): Likewise. Allocate space for
561 local_tlsdesc_gotent.
562 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
563 R_X86_64_TLSDESC_CALL.
564 (allocate_dynrelocs): Count function PLT relocations. Reserve
565 space for TLS descriptors and relocations.
566 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
567 descriptors and relocations. Set up sgotplt_jump_table_size,
568 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
569 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
570 and DT_TLSDESC_GOT.
571 (elf64_x86_64_always_size_sections): New. Set up
572 _TLS_MODULE_BASE_.
573 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
574 R_386_TLS_DESC_CALL.
575 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
576 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
577 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
578 (elf_backend_always_size_sections): Define.
579
580 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
581
582 PR binutils/2096
583 * dwarf2.c (comp_unit_contains_address): Update comment.
584 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
585 lma. Return TRUE only if both comp_unit_contains_address and
586 comp_unit_find_nearest_line return TRUE.
587 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
588
589 2006-01-18 Alan Modra <amodra@bigpond.net.au>
590
591 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
592 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
593 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
594 elf_gc_mark_dynamic_ref_symbol. Make global.
595 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
596 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
597 (elfNN_bed): Init new field.
598 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
599 (ppc64_elf_gc_mark_dynamic_ref): New function.
600
601 2006-01-17 Alan Modra <amodra@bigpond.net.au>
602
603 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
604
605 2006-01-17 Nick Clifton <nickc@redhat.com>
606
607 PR binutils/2159
608 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
609 parameters.
610
611 2006-01-11 Nick Clifton <nickc@redhat.com>
612
613 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
614 into the newly (re)allocated map array.
615
616 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
617
618 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
619
620 2006-01-01 Jakub Jelinek <jakub@redhat.com>
621
622 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
623 for .toc1 section.
624
625 For older changes see ChangeLog-2005
626 \f
627 Local Variables:
628 mode: change-log
629 left-margin: 8
630 fill-column: 74
631 version-control: never
632 End:
This page took 0.043881 seconds and 5 git commands to generate.