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