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