bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
81d43bff
RS
12006-03-14 Richard Sandiford <richard@codesourcery.com>
2
3 * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
4 out from...
5 (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend
6 for final links too.
7
d329bcd1
RS
82006-03-13 Richard Sandiford <richard@codesourcery.com>
9
10 * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
11
75a657ba
L
122006-03-11 H.J. Lu <hongjiu.lu@intel.com>
13
14 PR ld/2443
15 * dwarf2.c (concat_filename): Don't issue an error if file is
16 0.
17
3a4a14e9
PB
182006-03-10 Paul Brook <paul@codesourcery.com>
19
20 * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
21 (elf32_arm_print_private_bfd_data): Ditto.
22
38406048
PB
232006-03-09 Paul Brook <paul@codesourcery.com>
24
25 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
26 mapping symbols.
27
eed62c48
NC
282006-03-09 Khem Raj <khem@mvista.com>
29
30 * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned
31 char type.
32
6d2cf7d8
L
332006-03-08 H.J. Lu <hongjiu.lu@intel.com>
34
35 * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp.
36
00a97672
RS
372006-03-07 Richard Sandiford <richard@codesourcery.com>
38 Daniel Jacobowitz <dan@codesourcery.com>
39 Zack Weinberg <zack@codesourcery.com>
40 Nathan Sidwell <nathan@codesourcery.com>
41 Paul Brook <paul@codesourcery.com>
42 Ricardo Anguiano <anguiano@codesourcery.com>
43 Phil Edwards <phil@codesourcery.com>
44
45 * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
46 (bfd_elf32_bigarm_symbian_vec): Likewise.
47 (bfd_elf32_bigarm_vxworks_vec): Likewise.
48 (bfd_elf32_littlearm_vec): Likewise.
49 (bfd_elf32_littlearm_symbian_vec): Likewise.
50 (bfd_elf32_littlearm_vxworks_vec): Likewise.
51 * configure: Regenerate.
52 * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
53 (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
54 (elf32_arm_vxworks_bed): Add forward declaration.
55 (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
56 (elf32_arm_vxworks_exec_plt0_entry): New table.
57 (elf32_arm_vxworks_exec_plt_entry): Likewise.
58 (elf32_arm_vxworks_shared_plt_entry): Likewise.
59 (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
60 (reloc_section_p): New function.
61 (create_got_section): Use RELOC_SECTION.
62 (elf32_arm_create_dynamic_sections): Likewise. Call
63 elf_vxworks_create_dynamic_sections for VxWorks targets.
64 Choose between the two possible values of plt_header_size
65 and plt_entry_size.
66 (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
67 (elf32_arm_abs12_reloc): New function.
68 (elf32_arm_final_link_relocate): Call it. Allow the creation of
69 dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p,
70 RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the
71 r_addend fields of relocs. On rela targets, skip any code that
72 adjusts in-place addends. When using _bfd_link_final_relocate
73 to perform a final relocation, pass rel->r_addend as the addend
74 argument.
75 (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
76 object, ignore flags that are not standard on VxWorks.
77 (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
78 relocs on VxWorks. Use reloc_section_p.
79 (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
80 (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of
81 .rela.plt.unloaded relocs on VxWorks targets.
82 (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for
83 .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags
84 instead of DT_REL* tags on RELA targets.
85 (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
86 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks
87 PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
88 (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
89 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ
90 like DT_RELSZ. Handle the VxWorks form of initial PLT entry.
91 Correct the .rela.plt.unreloaded symbol indexes.
92 (elf32_arm_output_symbol_hook): Call the VxWorks version of this
93 hook on VxWorks targets.
94 (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
95 Minor formatting tweak.
96 (elf32_arm_vxworks_final_write_processing): New function.
97 (elf_backend_add_symbol_hook): Override for VxWorks and reset
98 for Symbian.
99 (elf_backend_final_write_processing): Likewise.
100 (elf_backend_emit_relocs): Likewise.
101 (elf_backend_want_plt_sym): Likewise.
102 (ELF_MAXPAGESIZE): Likewise.
103 (elf_backend_may_use_rel_p): Minor formatting tweak.
104 (elf_backend_may_use_rela_p): Likewise.
105 (elf_backend_default_use_rela_p): Likewise.
106 (elf_backend_rela_normal): Likewise.
107 * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
108
0b2e31dc
NS
1092006-03-06 Nathan Sidwell <nathan@codesourcery.com>
110
111 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
112 New. Adjust other variants.
113 (bfd_default_scan): Update.
114 * bfd-in2.h: Rebuilt.
115 * cpu-m68k.c: Adjust.
116 (bfd_m68k_compatible): New. Use it for architectures.
117 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
118 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
119 mismatch.
120 (elf32_m68k_print_private_bfd_data): Adjust.
121 * ieee.c (ieee_write_processor): Adjust.
122
d8d1c398
AM
1232006-03-06 Alan Modra <amodra@bigpond.net.au>
124
125 * dwarf2.c: Formatting.
126 (add_line_info): Remove outer loop.
127
d4c32a81
L
1282006-03-05 H.J. Lu <hongjiu.lu@intel.com>
129 Alan Modra <amodra@bigpond.net.au>
130
131 PR binutils/2338
132 * dwarf2.c (loadable_section): New struct.
133 (dwarf2_debug): Add loadable_section_count and
134 loadable_sections.
135 (new_line_sorts_after): New.
136 (add_line_info): Use new_line_sorts_after to compare line
137 addresses.
138 (check_function_name): Removed.
139 (unset_sections): New.
140 (place_sections): New.
141 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
142 and unset_sections on relocatable files.
143 (_bfd_dwarf2_find_line): Likewise.
144
4cdc7696
NC
1452006-03-03 Nick Clifton <nickc@redhat.com>
146
147 * cpu-avr.c: Update to ISO-C90 formatting.
148 * elf32-avr.c: Likewise.
149
df406460
NC
1502006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
151
152 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
153 and R_AVR_MS8_LDI
154 (bfd_elf_avr_final_write_processing): Set
155 EF_AVR_LINKRELAX_PREPARED in e_flags field.
156 (elf32_avr_relax_section): New function.
157 (elf32_avr_relax_delete_bytes): New function.
158 (elf32_avr_get_relocated_section_contents): New function.
159 (avr_pc_wrap_around): New function.
160 (avr_relative_distance_considering_wrap_around): New function.
161 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
162 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
163 * libbfd.h: Regenerate.
164 * bfd-in2.h: Regenerate.
165
a1013894
DD
1662006-03-02 DJ Delorie <dj@redhat.com>
167
168 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
169 calculations.
170
7c492719
RS
1712006-03-02 Richard Sandiford <richard@codesourcery.com>
172
173 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
174 bfd_elf32_powerpc_vxworks_vec.
175
e970df31
NC
1762006-03-02 Nick Clifton <nickc@redhat.com>
177
178 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
179
711de32c
RS
1802006-03-02 Richard Sandiford <richard@codesourcery.com>
181
182 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
183 elf_vxworks_create_dynamic_sections.
184 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
185 symbol handling.
186 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
187 elf_vxworks_create_dynamic_sections.
188 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
189 symbol handling.
190 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
191 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
192
9c72ff84
RS
1932006-03-02 Richard Sandiford <richard@codesourcery.com>
194
195 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
196 (elf_backend_link_output_symbol_hook): Use
197 elf_vxworks_link_output_symbol_hook instead.
198 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
199 (elf_backend_link_output_symbol_hook): Use
200 elf_vxworks_link_output_symbol_hook instead.
201 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
202 same interface as elf_backend_link_output_symbol_hook.
203 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
204 prototype accordingly.
205
4a3dc543
RS
2062006-03-02 Richard Sandiford <richard@codesourcery.com>
207
208 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
209 (ppc_elf_link_hash_table): Replace old_got and new_got with
210 plt_type and can_use_new_plt.
211 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
212 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
213 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
214 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
215 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
216 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
217 this function should not be called for VxWorks targets.
218 (ppc_elf_tls_setup): Use plt_type instead of old_got.
219 (allocate_got): Likewise. Rearrange so that max_before_header
220 is only used for PLT_OLD and PLT_NEW.
221 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
222 (ppc_elf_size_dynamic_sections): Likewise.
223 (ppc_elf_relax_section): Likewise.
224 (ppc_elf_relocate_section): Likewise.
225 (ppc_elf_finish_dynamic_symbol): Likewise.
226 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
227
5ae0bfb6
RS
2282006-02-28 Richard Sandiford <richard@codesourcery.com>
229
230 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
231 (elf_i386_link_hash_table_create): Initialize it.
232 (elf_i386_compute_jump_table_size): Use it instead of
233 srelplt->reloc_count.
234 (allocate_dynrelocs): Likewise.
235 (elf_i386_size_dynamic_sections): Likewise.
236 (elf_i386_relocate_section): Likewise.
237
63752a75
JJ
2382006-02-27 Jakub Jelinek <jakub@redhat.com>
239
240 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
241 (_bfd_elf_write_section_eh_frame): Likewise.
242
f7d9e5c3
CD
2432006-02-27 Carlos O'Donell <carlos@codesourcery.com>
244
245 * po/Make-in: Add html target.
246
22edb2f1
RS
2472006-02-27 Richard Sandiford <richard@codesourcery.com>
248
249 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
250 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
251 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
252 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
253 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
254 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
255 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
256 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
257 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
258 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
259 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
260 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
261 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
262 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
263 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
264 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
265 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
266 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
267 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
268 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
269 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
270
7325306f
RS
2712006-02-25 Richard Sandiford <richard@codesourcery.com>
272
273 * elf-bfd.h (elf_link_hash_table): Add hplt field.
274 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
275 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
276 * elf32-frv.c (_frv_create_got_section): Likewise.
277 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
278 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
279 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
280 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
281 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
282 (elf_i386_link_hash_table_create): Don't initialize them.
283 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
284 hgot fields.
285 (elf_i386_finish_dynamic_symbol): Likewise.
286 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
287 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
288 (ppc_elf_finish_dynamic_symbol): Likewise.
289
6772dd07
DD
2902006-02-24 DJ Delorie <dj@redhat.com>
291
292 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
293 (m32c_elf_relocate_section): Don't relocate them.
294 (compare_reloc): New.
295 (relax_reloc): Remove.
296 (m32c_offset_for_reloc): New.
297 (m16c_addr_encodings): New.
298 (m16c_jmpaddr_encodings): New.
299 (m32c_addr_encodings): New.
300 (m32c_elf_relax_section): Relax jumps and address displacements.
301 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
302 short jumps.
303
304 * reloc.c: Add m32c relax relocs.
305 * libbfd.h: Regenerate.
306 * bfd-in2.h: Regenerate.
307
508c3946
L
3082006-02-24 H.J. Lu <hongjiu.lu@intel.com>
309
310 PR ld/2218
311 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
312 (_bfd_elf_link_hash_fixup_symbol): New.
313
314 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
315 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
316 it isn't NULL.
317
318 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
319
320 * elfxx-target.h (elf_backend_fixup_symbol): New.
321 (elfNN_bed): Initialize elf_backend_fixup_symbol.
322
59cf82fe
L
3232006-02-23 H.J. Lu <hongjiu.lu@intel.com>
324
325 * cpu-ia64-opc.c (ins_immu5b): New.
326 (ext_immu5b): Likewise.
327 (elf64_ia64_operands): Add IMMU5b.
328
22d606e9
AM
3292006-02-21 Alan Modra <amodra@bigpond.net.au>
330
331 PR ld/2218
332 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
333 is dynamic.
334 * elf32-hppa.c (allocate_dynrelocs): Likewise.
335 * elf32-i386.c (allocate_dynrelocs): Likewise.
336 * elf32-s390.c (allocate_dynrelocs): Likewise.
337 * elf32-sh.c (allocate_dynrelocs): Likewise.
338 * elf64-s390.c (allocate_dynrelocs): Likewise.
339 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
340 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
341 on undef weak with non-default visibility too.
342 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
343
3168356f
AM
3442006-02-21 Alan Modra <amodra@bigpond.net.au>
345
346 * bfd.c: (_bfd_default_error_handler): Don't call abort on
347 error, instead call _exit.
348 (_bfd_abort): Call _exit not xexit.
349
888b45b8
KB
3502006-02-17 Kevin Buettner <kevinb@redhat.com>
351
352 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
353 New functions.
354 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
355
d70c5fc7
NC
3562006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
357 Anil Paranjape <anilp1@kpitcummins.com>
358 Shilin Shakti <shilins@kpitcummins.com>
359
360 * Makefile.am: Add xc16x related entry
361 * Makefile.in: Regenerate
362 * archures.c: Add bfd_xc16x_arch
363 * bfd-in2.h: Regenerate
364 * config.bfd: Add xc16x-*-elf
365 * configure.in: Add bfd_elf32_xc16x_vec
366 * configure: Regenerate.
367 * targets.c: Added xc16x related information
368 * cpu-xc16x.c: New file
369 * reloc.c: Add new relocations specific to xc16x:
370 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
371 BFD_RELOC_XC16X_SOF
372 * elf32-xc16x.c: New file.
373
cab87ef9
AM
3742006-02-17 Alan Modra <amodra@bigpond.net.au>
375
376 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
377 * elf64-ppc.c (allocate_dynrelocs): Likewise.
378
dfbb6ac9
AM
3792006-02-17 Alan Modra <amodra@bigpond.net.au>
380
381 PR ld/2218
382 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
383 dynamic.
384 (ppc64_elf_relocate_section): Check output reloc section size.
385 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
386
cedc298e
L
3872006-02-16 H.J. Lu <hongjiu.lu@intel.com>
388
389 PR ld/2322
390 * elf.c (get_segment_type): New function.
391 (_bfd_elf_print_private_bfd_data): Use it.
392 (print_segment_map): New function.
393 (assign_file_positions_for_segments): Call print_segment_map
394 when there are not enough room for program headers.
395
aaa2ab3d
NH
3962006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
397
398 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
399 traditional MIPS ELF targets.
400
35ccda9e
L
4012006-02-15 H.J. Lu <hongjiu.lu@intel.com>
402
403 PR binutils/2338
404 * dwarf2.c (check_function_name): New function.
405 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
406 check if function is correct.
407
e0ae6d6f
AM
4082006-02-16 Alan Modra <amodra@bigpond.net.au>
409
410 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
411 debug sections.
412 (elf_link_input_bfd): Adjust comments.
413
d55ce4e2
L
4142006-02-10 H.J. Lu <hongjiu.lu@intel.com>
415
416 * elf.c (copy_private_bfd_data): Minor update.
417
84d1d650
L
4182006-02-10 H.J. Lu <hongjiu.lu@intel.com>
419
420 PR binutils/2258
421 * elf.c (copy_private_bfd_data): Renamed to ...
422 (rewrite_elf_program_header): This.
423 (copy_elf_program_header): New function.
424 (copy_private_bfd_data): Likewise.
425
4262006-02-07 Nathan Sidwell <nathan@codesourcery.com>
266abb8f
NS
427
428 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
429 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
430 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
431 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
432 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
433 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
434 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
435 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
436 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
437 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
438 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
439 bfd_mach_mcf_isa_b_usp_float_emac): New.
440 (bfd_default_scan): Update coldfire mapping.
441 * bfd-in.h (bfd_m68k_mach_to_features,
442 bfd_m68k_features_to_mach): Declare.
443 * bfd-in2.h: Rebuilt.
444 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
445 adjust legacy names.
446 (m68k_arch_features): New.
447 (bfd_m68k_mach_to_features,
448 bfd_m68k_features_to_mach): Define.
449 * elf32-m68k.c (elf32_m68k_object_p): New.
450 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
451 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
452 (elf_backend_object_p): Define.
453 * ieee.c (ieee_write_processor): Update coldfire machines.
454 * libbfd.h: Rebuilt.
455
75eb734c
SE
4562006-02-06 Steve Ellcey <sje@cup.hp.com>
457
458 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
459 if SHF_TLS is set.
460
134dcee5
AM
4612006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
462
463 * coff-z80.c (r_imm24): New howto.
464 (rtype2howto): New case R_IMM24.
465 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
466 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
467
4005427f
RS
4682006-02-04 Richard Sandiford <richard@codesourcery.com>
469
470 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
471 has already been assigned a GOT index, copy that index to the
472 current hash table entry.
473
bb29dfea
EB
4742006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
475
476 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
477 for call-to-undefweak reloc overflow.
478
dc669dc8
EB
4792006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
480
481 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
482 for 32-bit relocs overflow.
483
1a0eb693
PB
4842006-01-27 Paul Brook <paul@codesourcery.com>
485
486 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
487 objects.
488
67a4f2b7
AO
4892006-01-18 Alexandre Oliva <aoliva@redhat.com>
490
491 Introduce TLS descriptors for i386 and x86_64.
492 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
493 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
494 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
495 * libbfd.h, bfd-in2.h: Rebuilt.
496 * elf32-i386.c (elf_howto_table): New relocations.
497 (R_386_tls): Adjust.
498 (elf_i386_reloc_type_lookup): Map new relocations.
499 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
500 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
501 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
502 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
503 (elf_i386_local_tlsdesc_gotent): New macro.
504 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
505 (elf_i386_compute_jump_table_size): New macro.
506 (link_hash_newfunc): Initialize tlsdesc_got.
507 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
508 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
509 R_386_TLS_DESC_CALL.
510 (elf_i386_check_relocs): Likewise. Allocate space for
511 local_tlsdesc_gotent.
512 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
513 R_386_TLS_DESC_CALL.
514 (allocate_dynrelocs): Count function PLT relocations. Reserve
515 space for TLS descriptors and relocations.
516 (elf_i386_size_dynamic_sections): Reserve space for TLS
517 descriptors and relocations. Set up sgotplt_jump_table_size.
518 Don't zero reloc_count in srelplt.
519 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
520 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
521 R_386_TLS_DESC_CALL.
522 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
523 (elf_backend_always_size_sections): Define.
524 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
525 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
526 (R_X86_64_standard): Adjust.
527 (x86_64_reloc_map): Map new relocs.
528 (elf64_x86_64_rtype_to_howto): New, split out of...
529 (elf64_x86_64_info_to_howto): ... this function, and...
530 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
531 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
532 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
533 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
534 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
535 (elf64_x86_64_local_tlsdesc_gotent): New macro.
536 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
537 tlsdesc_got and sgotplt_jump_table_size fields.
538 (elf64_x86_64_compute_jump_table_size): New macro.
539 (link_hash_newfunc): Initialize tlsdesc_got.
540 (elf64_x86_64_link_hash_table_create): Initialize new fields.
541 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
542 R_X86_64_TLSDESC_CALL.
543 (elf64_x86_64_check_relocs): Likewise. Allocate space for
544 local_tlsdesc_gotent.
545 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
546 R_X86_64_TLSDESC_CALL.
547 (allocate_dynrelocs): Count function PLT relocations. Reserve
548 space for TLS descriptors and relocations.
549 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
550 descriptors and relocations. Set up sgotplt_jump_table_size,
551 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
552 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
553 and DT_TLSDESC_GOT.
554 (elf64_x86_64_always_size_sections): New. Set up
555 _TLS_MODULE_BASE_.
556 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
557 R_386_TLS_DESC_CALL.
558 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
559 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
560 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
561 (elf_backend_always_size_sections): Define.
562
6dd55cb7
L
5632006-01-17 H.J. Lu <hongjiu.lu@intel.com>
564
565 PR binutils/2096
566 * dwarf2.c (comp_unit_contains_address): Update comment.
567 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
568 lma. Return TRUE only if both comp_unit_contains_address and
569 comp_unit_find_nearest_line return TRUE.
570 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
571
64d03ab5
AM
5722006-01-18 Alan Modra <amodra@bigpond.net.au>
573
574 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
575 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
576 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
577 elf_gc_mark_dynamic_ref_symbol. Make global.
578 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
579 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
580 (elfNN_bed): Init new field.
581 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
582 (ppc64_elf_gc_mark_dynamic_ref): New function.
583
b56cbdb9
AM
5842006-01-17 Alan Modra <amodra@bigpond.net.au>
585
586 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
587
6c10990d
NC
5882006-01-17 Nick Clifton <nickc@redhat.com>
589
590 PR binutils/2159
591 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
592 parameters.
593
d7f735da
NC
5942006-01-11 Nick Clifton <nickc@redhat.com>
595
596 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
597 into the newly (re)allocated map array.
598
2bfd55ca
NC
5992006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
600
601 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
602
bce50a28
JJ
6032006-01-01 Jakub Jelinek <jakub@redhat.com>
604
605 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
606 for .toc1 section.
607
e88d958a 608For older changes see ChangeLog-2005
56882138
AM
609\f
610Local Variables:
611mode: change-log
612left-margin: 8
613fill-column: 74
614version-control: never
615End:
This page took 0.432781 seconds and 4 git commands to generate.