* elflink.c (_bfd_elf_default_action_discarded): Return 0 for
[binutils-gdb.git] / bfd / ChangeLog
1 2006-02-16 Alan Modra <amodra@bigpond.net.au>
2
3 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
4 debug sections.
5 (elf_link_input_bfd): Adjust comments.
6
7 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
8
9 * elf.c (copy_private_bfd_data): Minor update.
10
11 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR binutils/2258
14 * elf.c (copy_private_bfd_data): Renamed to ...
15 (rewrite_elf_program_header): This.
16 (copy_elf_program_header): New function.
17 (copy_private_bfd_data): Likewise.
18
19 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
20
21 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
22 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
23 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
24 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
25 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
26 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
27 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
28 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
29 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
30 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
31 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
32 bfd_mach_mcf_isa_b_usp_float_emac): New.
33 (bfd_default_scan): Update coldfire mapping.
34 * bfd-in.h (bfd_m68k_mach_to_features,
35 bfd_m68k_features_to_mach): Declare.
36 * bfd-in2.h: Rebuilt.
37 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
38 adjust legacy names.
39 (m68k_arch_features): New.
40 (bfd_m68k_mach_to_features,
41 bfd_m68k_features_to_mach): Define.
42 * elf32-m68k.c (elf32_m68k_object_p): New.
43 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
44 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
45 (elf_backend_object_p): Define.
46 * ieee.c (ieee_write_processor): Update coldfire machines.
47 * libbfd.h: Rebuilt.
48
49 2006-02-06 Steve Ellcey <sje@cup.hp.com>
50
51 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
52 if SHF_TLS is set.
53
54 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
55
56 * coff-z80.c (r_imm24): New howto.
57 (rtype2howto): New case R_IMM24.
58 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
59 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
60
61 2006-02-04 Richard Sandiford <richard@codesourcery.com>
62
63 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
64 has already been assigned a GOT index, copy that index to the
65 current hash table entry.
66
67 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
68
69 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
70 for call-to-undefweak reloc overflow.
71
72 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
73
74 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
75 for 32-bit relocs overflow.
76
77 2006-01-27 Paul Brook <paul@codesourcery.com>
78
79 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
80 objects.
81
82 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
83
84 Introduce TLS descriptors for i386 and x86_64.
85 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
86 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
87 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
88 * libbfd.h, bfd-in2.h: Rebuilt.
89 * elf32-i386.c (elf_howto_table): New relocations.
90 (R_386_tls): Adjust.
91 (elf_i386_reloc_type_lookup): Map new relocations.
92 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
93 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
94 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
95 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
96 (elf_i386_local_tlsdesc_gotent): New macro.
97 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
98 (elf_i386_compute_jump_table_size): New macro.
99 (link_hash_newfunc): Initialize tlsdesc_got.
100 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
101 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
102 R_386_TLS_DESC_CALL.
103 (elf_i386_check_relocs): Likewise. Allocate space for
104 local_tlsdesc_gotent.
105 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
106 R_386_TLS_DESC_CALL.
107 (allocate_dynrelocs): Count function PLT relocations. Reserve
108 space for TLS descriptors and relocations.
109 (elf_i386_size_dynamic_sections): Reserve space for TLS
110 descriptors and relocations. Set up sgotplt_jump_table_size.
111 Don't zero reloc_count in srelplt.
112 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
113 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
114 R_386_TLS_DESC_CALL.
115 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
116 (elf_backend_always_size_sections): Define.
117 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
118 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
119 (R_X86_64_standard): Adjust.
120 (x86_64_reloc_map): Map new relocs.
121 (elf64_x86_64_rtype_to_howto): New, split out of...
122 (elf64_x86_64_info_to_howto): ... this function, and...
123 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
124 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
125 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
126 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
127 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
128 (elf64_x86_64_local_tlsdesc_gotent): New macro.
129 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
130 tlsdesc_got and sgotplt_jump_table_size fields.
131 (elf64_x86_64_compute_jump_table_size): New macro.
132 (link_hash_newfunc): Initialize tlsdesc_got.
133 (elf64_x86_64_link_hash_table_create): Initialize new fields.
134 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
135 R_X86_64_TLSDESC_CALL.
136 (elf64_x86_64_check_relocs): Likewise. Allocate space for
137 local_tlsdesc_gotent.
138 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
139 R_X86_64_TLSDESC_CALL.
140 (allocate_dynrelocs): Count function PLT relocations. Reserve
141 space for TLS descriptors and relocations.
142 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
143 descriptors and relocations. Set up sgotplt_jump_table_size,
144 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
145 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
146 and DT_TLSDESC_GOT.
147 (elf64_x86_64_always_size_sections): New. Set up
148 _TLS_MODULE_BASE_.
149 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
150 R_386_TLS_DESC_CALL.
151 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
152 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
153 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
154 (elf_backend_always_size_sections): Define.
155
156 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
157
158 PR binutils/2096
159 * dwarf2.c (comp_unit_contains_address): Update comment.
160 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
161 lma. Return TRUE only if both comp_unit_contains_address and
162 comp_unit_find_nearest_line return TRUE.
163 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
164
165 2006-01-18 Alan Modra <amodra@bigpond.net.au>
166
167 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
168 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
169 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
170 elf_gc_mark_dynamic_ref_symbol. Make global.
171 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
172 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
173 (elfNN_bed): Init new field.
174 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
175 (ppc64_elf_gc_mark_dynamic_ref): New function.
176
177 2006-01-17 Alan Modra <amodra@bigpond.net.au>
178
179 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
180
181 2006-01-17 Nick Clifton <nickc@redhat.com>
182
183 PR binutils/2159
184 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
185 parameters.
186
187 2006-01-11 Nick Clifton <nickc@redhat.com>
188
189 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
190 into the newly (re)allocated map array.
191
192 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
193
194 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
195
196 2006-01-01 Jakub Jelinek <jakub@redhat.com>
197
198 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
199 for .toc1 section.
200
201 For older changes see ChangeLog-2005
202 \f
203 Local Variables:
204 mode: change-log
205 left-margin: 8
206 fill-column: 74
207 version-control: never
208 End: