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