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