daily update
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
888b45b8
KB
12006-02-17 Kevin Buettner <kevinb@redhat.com>
2
3 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
4 New functions.
5 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
6
d70c5fc7
NC
72006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
8 Anil Paranjape <anilp1@kpitcummins.com>
9 Shilin Shakti <shilins@kpitcummins.com>
10
11 * Makefile.am: Add xc16x related entry
12 * Makefile.in: Regenerate
13 * archures.c: Add bfd_xc16x_arch
14 * bfd-in2.h: Regenerate
15 * config.bfd: Add xc16x-*-elf
16 * configure.in: Add bfd_elf32_xc16x_vec
17 * configure: Regenerate.
18 * targets.c: Added xc16x related information
19 * cpu-xc16x.c: New file
20 * reloc.c: Add new relocations specific to xc16x:
21 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
22 BFD_RELOC_XC16X_SOF
23 * elf32-xc16x.c: New file.
24
cab87ef9
AM
252006-02-17 Alan Modra <amodra@bigpond.net.au>
26
27 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
28 * elf64-ppc.c (allocate_dynrelocs): Likewise.
29
dfbb6ac9
AM
302006-02-17 Alan Modra <amodra@bigpond.net.au>
31
32 PR ld/2218
33 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
34 dynamic.
35 (ppc64_elf_relocate_section): Check output reloc section size.
36 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
37
cedc298e
L
382006-02-16 H.J. Lu <hongjiu.lu@intel.com>
39
40 PR ld/2322
41 * elf.c (get_segment_type): New function.
42 (_bfd_elf_print_private_bfd_data): Use it.
43 (print_segment_map): New function.
44 (assign_file_positions_for_segments): Call print_segment_map
45 when there are not enough room for program headers.
46
aaa2ab3d
NH
472006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
48
49 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
50 traditional MIPS ELF targets.
51
35ccda9e
L
522006-02-15 H.J. Lu <hongjiu.lu@intel.com>
53
54 PR binutils/2338
55 * dwarf2.c (check_function_name): New function.
56 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
57 check if function is correct.
58
e0ae6d6f
AM
592006-02-16 Alan Modra <amodra@bigpond.net.au>
60
61 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
62 debug sections.
63 (elf_link_input_bfd): Adjust comments.
64
d55ce4e2
L
652006-02-10 H.J. Lu <hongjiu.lu@intel.com>
66
67 * elf.c (copy_private_bfd_data): Minor update.
68
84d1d650
L
692006-02-10 H.J. Lu <hongjiu.lu@intel.com>
70
71 PR binutils/2258
72 * elf.c (copy_private_bfd_data): Renamed to ...
73 (rewrite_elf_program_header): This.
74 (copy_elf_program_header): New function.
75 (copy_private_bfd_data): Likewise.
76
772006-02-07 Nathan Sidwell <nathan@codesourcery.com>
266abb8f
NS
78
79 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
80 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
81 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
82 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
83 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
84 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
85 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
86 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
87 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
88 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
89 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
90 bfd_mach_mcf_isa_b_usp_float_emac): New.
91 (bfd_default_scan): Update coldfire mapping.
92 * bfd-in.h (bfd_m68k_mach_to_features,
93 bfd_m68k_features_to_mach): Declare.
94 * bfd-in2.h: Rebuilt.
95 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
96 adjust legacy names.
97 (m68k_arch_features): New.
98 (bfd_m68k_mach_to_features,
99 bfd_m68k_features_to_mach): Define.
100 * elf32-m68k.c (elf32_m68k_object_p): New.
101 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
102 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
103 (elf_backend_object_p): Define.
104 * ieee.c (ieee_write_processor): Update coldfire machines.
105 * libbfd.h: Rebuilt.
106
75eb734c
SE
1072006-02-06 Steve Ellcey <sje@cup.hp.com>
108
109 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
110 if SHF_TLS is set.
111
134dcee5
AM
1122006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
113
114 * coff-z80.c (r_imm24): New howto.
115 (rtype2howto): New case R_IMM24.
116 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
117 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
118
4005427f
RS
1192006-02-04 Richard Sandiford <richard@codesourcery.com>
120
121 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
122 has already been assigned a GOT index, copy that index to the
123 current hash table entry.
124
bb29dfea
EB
1252006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
126
127 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
128 for call-to-undefweak reloc overflow.
129
dc669dc8
EB
1302006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
131
132 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
133 for 32-bit relocs overflow.
134
1a0eb693
PB
1352006-01-27 Paul Brook <paul@codesourcery.com>
136
137 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
138 objects.
139
67a4f2b7
AO
1402006-01-18 Alexandre Oliva <aoliva@redhat.com>
141
142 Introduce TLS descriptors for i386 and x86_64.
143 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
144 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
145 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
146 * libbfd.h, bfd-in2.h: Rebuilt.
147 * elf32-i386.c (elf_howto_table): New relocations.
148 (R_386_tls): Adjust.
149 (elf_i386_reloc_type_lookup): Map new relocations.
150 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
151 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
152 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
153 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
154 (elf_i386_local_tlsdesc_gotent): New macro.
155 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
156 (elf_i386_compute_jump_table_size): New macro.
157 (link_hash_newfunc): Initialize tlsdesc_got.
158 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
159 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
160 R_386_TLS_DESC_CALL.
161 (elf_i386_check_relocs): Likewise. Allocate space for
162 local_tlsdesc_gotent.
163 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
164 R_386_TLS_DESC_CALL.
165 (allocate_dynrelocs): Count function PLT relocations. Reserve
166 space for TLS descriptors and relocations.
167 (elf_i386_size_dynamic_sections): Reserve space for TLS
168 descriptors and relocations. Set up sgotplt_jump_table_size.
169 Don't zero reloc_count in srelplt.
170 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
171 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
172 R_386_TLS_DESC_CALL.
173 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
174 (elf_backend_always_size_sections): Define.
175 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
176 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
177 (R_X86_64_standard): Adjust.
178 (x86_64_reloc_map): Map new relocs.
179 (elf64_x86_64_rtype_to_howto): New, split out of...
180 (elf64_x86_64_info_to_howto): ... this function, and...
181 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
182 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
183 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
184 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
185 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
186 (elf64_x86_64_local_tlsdesc_gotent): New macro.
187 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
188 tlsdesc_got and sgotplt_jump_table_size fields.
189 (elf64_x86_64_compute_jump_table_size): New macro.
190 (link_hash_newfunc): Initialize tlsdesc_got.
191 (elf64_x86_64_link_hash_table_create): Initialize new fields.
192 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
193 R_X86_64_TLSDESC_CALL.
194 (elf64_x86_64_check_relocs): Likewise. Allocate space for
195 local_tlsdesc_gotent.
196 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
197 R_X86_64_TLSDESC_CALL.
198 (allocate_dynrelocs): Count function PLT relocations. Reserve
199 space for TLS descriptors and relocations.
200 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
201 descriptors and relocations. Set up sgotplt_jump_table_size,
202 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
203 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
204 and DT_TLSDESC_GOT.
205 (elf64_x86_64_always_size_sections): New. Set up
206 _TLS_MODULE_BASE_.
207 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
208 R_386_TLS_DESC_CALL.
209 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
210 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
211 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
212 (elf_backend_always_size_sections): Define.
213
6dd55cb7
L
2142006-01-17 H.J. Lu <hongjiu.lu@intel.com>
215
216 PR binutils/2096
217 * dwarf2.c (comp_unit_contains_address): Update comment.
218 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
219 lma. Return TRUE only if both comp_unit_contains_address and
220 comp_unit_find_nearest_line return TRUE.
221 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
222
64d03ab5
AM
2232006-01-18 Alan Modra <amodra@bigpond.net.au>
224
225 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
226 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
227 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
228 elf_gc_mark_dynamic_ref_symbol. Make global.
229 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
230 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
231 (elfNN_bed): Init new field.
232 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
233 (ppc64_elf_gc_mark_dynamic_ref): New function.
234
b56cbdb9
AM
2352006-01-17 Alan Modra <amodra@bigpond.net.au>
236
237 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
238
6c10990d
NC
2392006-01-17 Nick Clifton <nickc@redhat.com>
240
241 PR binutils/2159
242 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
243 parameters.
244
d7f735da
NC
2452006-01-11 Nick Clifton <nickc@redhat.com>
246
247 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
248 into the newly (re)allocated map array.
249
2bfd55ca
NC
2502006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
251
252 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
253
bce50a28
JJ
2542006-01-01 Jakub Jelinek <jakub@redhat.com>
255
256 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
257 for .toc1 section.
258
e88d958a 259For older changes see ChangeLog-2005
56882138
AM
260\f
261Local Variables:
262mode: change-log
263left-margin: 8
264fill-column: 74
265version-control: never
266End:
This page took 0.346349 seconds and 4 git commands to generate.