]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
bfd/
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
84d1d650
L
12006-02-10 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/2258
4 * elf.c (copy_private_bfd_data): Renamed to ...
5 (rewrite_elf_program_header): This.
6 (copy_elf_program_header): New function.
7 (copy_private_bfd_data): Likewise.
8
92006-02-07 Nathan Sidwell <nathan@codesourcery.com>
266abb8f
NS
10
11 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
12 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
13 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
14 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
15 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
16 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
17 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
18 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
19 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
20 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
21 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
22 bfd_mach_mcf_isa_b_usp_float_emac): New.
23 (bfd_default_scan): Update coldfire mapping.
24 * bfd-in.h (bfd_m68k_mach_to_features,
25 bfd_m68k_features_to_mach): Declare.
26 * bfd-in2.h: Rebuilt.
27 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
28 adjust legacy names.
29 (m68k_arch_features): New.
30 (bfd_m68k_mach_to_features,
31 bfd_m68k_features_to_mach): Define.
32 * elf32-m68k.c (elf32_m68k_object_p): New.
33 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
34 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
35 (elf_backend_object_p): Define.
36 * ieee.c (ieee_write_processor): Update coldfire machines.
37 * libbfd.h: Rebuilt.
38
75eb734c
SE
392006-02-06 Steve Ellcey <sje@cup.hp.com>
40
41 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
42 if SHF_TLS is set.
43
134dcee5
AM
442006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
45
46 * coff-z80.c (r_imm24): New howto.
47 (rtype2howto): New case R_IMM24.
48 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
49 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
50
4005427f
RS
512006-02-04 Richard Sandiford <richard@codesourcery.com>
52
53 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
54 has already been assigned a GOT index, copy that index to the
55 current hash table entry.
56
bb29dfea
EB
572006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
58
59 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
60 for call-to-undefweak reloc overflow.
61
dc669dc8
EB
622006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
63
64 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
65 for 32-bit relocs overflow.
66
1a0eb693
PB
672006-01-27 Paul Brook <paul@codesourcery.com>
68
69 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
70 objects.
71
67a4f2b7
AO
722006-01-18 Alexandre Oliva <aoliva@redhat.com>
73
74 Introduce TLS descriptors for i386 and x86_64.
75 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
76 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
77 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
78 * libbfd.h, bfd-in2.h: Rebuilt.
79 * elf32-i386.c (elf_howto_table): New relocations.
80 (R_386_tls): Adjust.
81 (elf_i386_reloc_type_lookup): Map new relocations.
82 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
83 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
84 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
85 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
86 (elf_i386_local_tlsdesc_gotent): New macro.
87 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
88 (elf_i386_compute_jump_table_size): New macro.
89 (link_hash_newfunc): Initialize tlsdesc_got.
90 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
91 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
92 R_386_TLS_DESC_CALL.
93 (elf_i386_check_relocs): Likewise. Allocate space for
94 local_tlsdesc_gotent.
95 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
96 R_386_TLS_DESC_CALL.
97 (allocate_dynrelocs): Count function PLT relocations. Reserve
98 space for TLS descriptors and relocations.
99 (elf_i386_size_dynamic_sections): Reserve space for TLS
100 descriptors and relocations. Set up sgotplt_jump_table_size.
101 Don't zero reloc_count in srelplt.
102 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
103 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
104 R_386_TLS_DESC_CALL.
105 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
106 (elf_backend_always_size_sections): Define.
107 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
108 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
109 (R_X86_64_standard): Adjust.
110 (x86_64_reloc_map): Map new relocs.
111 (elf64_x86_64_rtype_to_howto): New, split out of...
112 (elf64_x86_64_info_to_howto): ... this function, and...
113 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
114 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
115 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
116 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
117 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
118 (elf64_x86_64_local_tlsdesc_gotent): New macro.
119 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
120 tlsdesc_got and sgotplt_jump_table_size fields.
121 (elf64_x86_64_compute_jump_table_size): New macro.
122 (link_hash_newfunc): Initialize tlsdesc_got.
123 (elf64_x86_64_link_hash_table_create): Initialize new fields.
124 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
125 R_X86_64_TLSDESC_CALL.
126 (elf64_x86_64_check_relocs): Likewise. Allocate space for
127 local_tlsdesc_gotent.
128 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
129 R_X86_64_TLSDESC_CALL.
130 (allocate_dynrelocs): Count function PLT relocations. Reserve
131 space for TLS descriptors and relocations.
132 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
133 descriptors and relocations. Set up sgotplt_jump_table_size,
134 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
135 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
136 and DT_TLSDESC_GOT.
137 (elf64_x86_64_always_size_sections): New. Set up
138 _TLS_MODULE_BASE_.
139 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
140 R_386_TLS_DESC_CALL.
141 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
142 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
143 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
144 (elf_backend_always_size_sections): Define.
145
6dd55cb7
L
1462006-01-17 H.J. Lu <hongjiu.lu@intel.com>
147
148 PR binutils/2096
149 * dwarf2.c (comp_unit_contains_address): Update comment.
150 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
151 lma. Return TRUE only if both comp_unit_contains_address and
152 comp_unit_find_nearest_line return TRUE.
153 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
154
64d03ab5
AM
1552006-01-18 Alan Modra <amodra@bigpond.net.au>
156
157 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
158 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
159 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
160 elf_gc_mark_dynamic_ref_symbol. Make global.
161 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
162 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
163 (elfNN_bed): Init new field.
164 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
165 (ppc64_elf_gc_mark_dynamic_ref): New function.
166
b56cbdb9
AM
1672006-01-17 Alan Modra <amodra@bigpond.net.au>
168
169 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
170
6c10990d
NC
1712006-01-17 Nick Clifton <nickc@redhat.com>
172
173 PR binutils/2159
174 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
175 parameters.
176
d7f735da
NC
1772006-01-11 Nick Clifton <nickc@redhat.com>
178
179 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
180 into the newly (re)allocated map array.
181
2bfd55ca
NC
1822006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
183
184 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
185
bce50a28
JJ
1862006-01-01 Jakub Jelinek <jakub@redhat.com>
187
188 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
189 for .toc1 section.
190
e88d958a 191For older changes see ChangeLog-2005
56882138
AM
192\f
193Local Variables:
194mode: change-log
195left-margin: 8
196fill-column: 74
197version-control: never
198End: