Commit | Line | Data |
---|---|---|
56b8aada L |
1 | 2012-03-09 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | PR ld/13817 | |
4 | * bfd/elf32-i386.c (elf_i386_relocate_section): Restore | |
5 | R_386_IRELATIVE. | |
6 | ||
7 | * * elf64-x86-64.c (elf_x86_64_relocate_section): Restore | |
8 | R_X86_64_IRELATIVE. | |
9 | ||
460f1cdc TG |
10 | 2012-03-08 Tristan Gingold <gingold@adacore.com> |
11 | ||
12 | * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum | |
13 | keylen according to archive kind. Set nextvbn and nextrfa lhd | |
14 | fields. Add comments. | |
15 | ||
0a22ae8e NC |
16 | 2012-03-07 Nick Clifton <nickc@redhat.com> |
17 | ||
18 | * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type | |
19 | field. | |
20 | (elf32_mn10300_link_hash_table): Add tls_ldm_got entry; | |
21 | (elf_mn10300_tdata): Define. | |
22 | (elf_mn10300_local_got_tls_type): Define. | |
23 | (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD, | |
24 | R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE, | |
25 | R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD, | |
26 | R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs. | |
27 | (mn10300_reloc_map): Likewise. | |
28 | (elf_mn10300_tls_transition): New function. | |
29 | (dtpoff, tpoff, mn10300_do_tls_transition): New functions. | |
30 | (mn10300_elf_check_relocs): Add TLS support. | |
31 | (mn10300_elf_final_link_relocate): Likewise. | |
32 | (mn10300_elf_relocate_section): Likewise. | |
33 | (mn10300_elf_relax_section): Likewise. | |
34 | (elf32_mn10300_link_hash_newfunc): Initialise new field. | |
35 | (_bfd_mn10300_copy_indirect_symbol): New function. | |
36 | (elf32_mn10300_link_hash_table_create): Initialise new fields. | |
37 | (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support. | |
38 | (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise. | |
39 | (_bfd_mn10300_elf_reloc_type_class): Allocate an | |
40 | elf_mn10300_obj_tdata structure. | |
41 | (elf_backend_copy_indirect_symbol): Define. | |
42 | * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD, | |
43 | BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE, | |
44 | BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD, | |
45 | BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations. | |
46 | (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to | |
47 | alongside other MN10300 relocations. | |
48 | * bfd-in2.h: Regenerate. | |
49 | * libbfd.h: Regenerate. | |
50 | ||
3ce231f8 JJ |
51 | 2012-03-06 Jakub Jelinek <jakub@redhat.com> |
52 | ||
53 | * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE | |
54 | set relocate to TRUE. | |
55 | ||
0bef263a RO |
56 | 2012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
57 | ||
58 | PR ld/12152 | |
59 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore | |
60 | overflows for R_SPARC_UA32 in .stab sections. | |
61 | ||
84abc003 AM |
62 | 2012-03-01 Alan Modra <amodra@gmail.com> |
63 | ||
64 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning. | |
65 | ||
3d301fdc AM |
66 | 2012-02-27 Alan Modra <amodra@gmail.com> |
67 | ||
68 | * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd | |
69 | before calling elf specific function. | |
70 | (sh_elf_osec_readonly_p): Test for error return from above. | |
71 | ||
cb83c803 AM |
72 | 2012-02-27 Alan Modra <amodra@gmail.com> |
73 | ||
74 | * elf32-spu.c (build_stub): Fix malloc under-allocation. | |
75 | ||
6f7be959 WL |
76 | 2012-02-25 Walter Lee <walt@tilera.com> |
77 | * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL, | |
78 | BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD, | |
79 | BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD, | |
80 | BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD, | |
81 | BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD, | |
82 | BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE, | |
83 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE, | |
84 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO, | |
85 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO, | |
86 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI, | |
87 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI, | |
88 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA, | |
89 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA, | |
90 | BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE, | |
91 | BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE, | |
92 | BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE, | |
93 | BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE, | |
94 | BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE, | |
95 | BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE, | |
96 | BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD, | |
97 | BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD, | |
98 | BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD, | |
99 | BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD, | |
100 | BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD, | |
101 | BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD, | |
102 | BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD. | |
103 | Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT, | |
104 | BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT, | |
105 | BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT, | |
106 | BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT, | |
107 | BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT, | |
108 | BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT, | |
109 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT, | |
110 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT, | |
111 | BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD, | |
112 | BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD, | |
113 | BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD, | |
114 | BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD, | |
115 | BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD, | |
116 | BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD, | |
117 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD, | |
118 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD, | |
119 | BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE, | |
120 | BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE, | |
121 | BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE, | |
122 | BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE, | |
123 | BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE, | |
124 | BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE, | |
125 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE, | |
126 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE. | |
127 | * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro | |
128 | relocations. | |
129 | (tilepro_reloc_map): Ditto. | |
130 | (tilepro_info_to_howto_rela): Ditto. | |
131 | (reloc_to_create_func): Ditto. | |
132 | (tilepro_tls_translate_to_le): New. | |
133 | (tilepro_tls_translate_to_ie): New. | |
134 | (tilepro_elf_tls_transition): New. | |
135 | (tilepro_elf_check_relocs): Handle new tls relocations. | |
136 | (tilepro_elf_gc_sweep_hook): Ditto. | |
137 | (allocate_dynrelocs): Ditto. | |
138 | (tilepro_elf_relocate_section): Ditto. | |
139 | (tilepro_replace_insn): New. | |
140 | (insn_mask_X1): New. | |
141 | (insn_mask_X0_no_dest_no_srca): New | |
142 | (insn_mask_X1_no_dest_no_srca): New | |
143 | (insn_mask_Y0_no_dest_no_srca): New | |
144 | (insn_mask_Y1_no_dest_no_srca): New | |
145 | (srca_mask_X0): New | |
146 | (srca_mask_X1): New | |
147 | (insn_tls_le_move_X1): New | |
148 | (insn_tls_le_move_zero_X0X1): New | |
149 | (insn_tls_ie_lw_X1): New | |
150 | (insn_tls_ie_add_X0X1): New | |
151 | (insn_tls_ie_add_Y0Y1): New | |
152 | (insn_tls_gd_add_X0X1): New | |
153 | (insn_tls_gd_add_Y0Y1): New | |
154 | * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx | |
155 | relocations. | |
156 | (tilegx_reloc_map): Ditto. | |
157 | (tilegx_info_to_howto_rela): Ditto. | |
158 | (reloc_to_create_func): Ditto. | |
159 | (tilegx_elf_link_hash_table): New field disable_le_transition. | |
160 | (tilegx_tls_translate_to_le): New. | |
161 | (tilegx_tls_translate_to_ie): New. | |
162 | (tilegx_elf_tls_transition): New. | |
163 | (tilegx_elf_check_relocs): Handle new tls relocations. | |
164 | (tilegx_elf_gc_sweep_hook): Ditto. | |
165 | (allocate_dynrelocs): Ditto. | |
166 | (tilegx_elf_relocate_section): Ditto. | |
167 | (tilegx_copy_bits): New. | |
168 | (tilegx_replace_insn): New. | |
169 | (insn_mask_X1): New. | |
170 | (insn_mask_X0_no_dest_no_srca): New. | |
171 | (insn_mask_X1_no_dest_no_srca): New. | |
172 | (insn_mask_Y0_no_dest_no_srca): New. | |
173 | (insn_mask_Y1_no_dest_no_srca): New. | |
174 | (insn_mask_X0_no_operand): New. | |
175 | (insn_mask_X1_no_operand): New. | |
176 | (insn_mask_Y0_no_operand): New. | |
177 | (insn_mask_Y1_no_operand): New. | |
178 | (insn_tls_ie_ld_X1): New. | |
179 | (insn_tls_ie_ld4s_X1): New. | |
180 | (insn_tls_ie_add_X0X1): New. | |
181 | (insn_tls_ie_add_Y0Y1): New. | |
182 | (insn_tls_ie_addx_X0X1): New. | |
183 | (insn_tls_ie_addx_Y0Y1): New. | |
184 | (insn_tls_gd_add_X0X1): New. | |
185 | (insn_tls_gd_add_Y0Y1): New. | |
186 | (insn_move_X0X1): New. | |
187 | (insn_move_Y0Y1): New. | |
188 | (insn_add_X0X1): New. | |
189 | (insn_add_Y0Y1): New. | |
190 | (insn_addx_X0X1): New. | |
191 | (insn_addx_Y0Y1): New. | |
192 | * libbfd.h: Regenerate. | |
193 | * bfd-in2.h: Regenerate. | |
194 | ||
82590249 WL |
195 | 2012-02-25 Walter Lee <walt@tilera.com> |
196 | ||
fb6cedde WL |
197 | * config.bfd (tilegx-*-*): rename little endian vector; add big |
198 | endian vector. | |
199 | (tilegxbe-*-*): New case. | |
200 | * configure.in (bfd_elf32_tilegx_vec): Rename... | |
201 | (bfd_elf32_tilegx_le_vec): ... to this. | |
202 | (bfd_elf32_tilegx_be_vec): New vector. | |
203 | (bfd_elf64_tilegx_vec): Rename... | |
204 | (bfd_elf64_tilegx_le_vec): ... to this. | |
205 | (bfd_elf64_tilegx_be_vec): New vector. | |
206 | * configure: Regenerate. | |
207 | * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename. | |
208 | (TARGET_LITTLE_NAME): Ditto. | |
209 | (TARGET_BIG_SYM): Define. | |
210 | (TARGET_BIG_NAME): Define. | |
211 | * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename. | |
212 | (TARGET_LITTLE_NAME): Ditto. | |
213 | (TARGET_BIG_SYM): Define. | |
214 | (TARGET_BIG_NAME): Define. | |
215 | * targets.c (bfd_elf32_tilegx_vec): Rename... | |
216 | (bfd_elf32_tilegx_le_vec): ... to this. | |
217 | (bfd_elf32_tilegx_be_vec): Declare. | |
218 | (bfd_elf64_tilegx_vec): Rename... | |
219 | (bfd_elf64_tilegx_le_vec): ... to this. | |
220 | (bfd_elf64_tilegx_be_vec): Declare. | |
221 | (_bfd_target_vector): Add / rename above vectors. | |
82590249 WL |
222 | * arctures.c (bfd_architecture): Define bfd_mach_tilegx32. |
223 | * bfd-in2.h: Regenerate. | |
224 | * cpu-tilegx.c (bfd_tilegx32_arch): define. | |
fb6cedde | 225 | (bfd_tilegx_arch): link to bfd_tilegx32_arch. |
82590249 | 226 | |
4115917d NC |
227 | 2012-02-24 Nick Clifton <nickc@redhat.com> |
228 | ||
229 | PR ld/13730 | |
230 | * reloc.c (bfd_generic_get_relocated_section_contents): Issue an | |
231 | error message instead of aborting, when an outofrange reloc is | |
232 | encountered. | |
233 | ||
19765f52 IS |
234 | 2012-02-23 Iain Sandoe <idsandoe@googlemail.com> |
235 | ||
236 | * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New. | |
237 | (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc | |
238 | bit-fields when target and host differ in endian-ness. When | |
239 | PAIRs are non-scattered find the 'symbol' from the preceding | |
240 | reloc. Add FIXME re. reloc symbols on section boundaries. | |
241 | (bfd_mach_o_swap_out_non_scattered_reloc): New. | |
242 | (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc. | |
243 | ||
6639d37a IS |
244 | 2012-02-17 Iain Sandoe <idsandoe@googlemail.com> |
245 | ||
246 | * mach-o-i386.c (i386_howto_table): Add support for 16 bit | |
247 | sect-diffs. | |
248 | (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs. | |
249 | (bfd_mach_o_i386_swap_reloc_out): Likewise. | |
250 | ||
e1e81ed3 IS |
251 | 2012-02-17 Tristan Gingold <gingold@adacore.com> |
252 | ||
253 | * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF): | |
254 | * libbfd.h: Regenerated. | |
255 | * bfd-in2.h: Likewise. | |
256 | * mach-o-i386.c (i386_howto_table): Include local sectdiff. | |
257 | (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff. | |
258 | (bfd_mach_o_i386_swap_reloc_out): Likewise. | |
259 | ||
d0ddfe27 AK |
260 | 2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
261 | ||
262 | * elf32-s390.c (elf_s390_relocate_section): Support basr in the | |
263 | GD->LE and LD->LE optimizations. | |
264 | ||
eb8c5f3f AM |
265 | 2012-02-16 Alan Modra <amodra@gmail.com> |
266 | ||
267 | PR binutils/13355 | |
268 | * elf32-rx.c (elf32_rx_relax_section): Correct width check. | |
269 | ||
e1741a1e RH |
270 | 2012-02-13 Richard Henderson <rth@redhat.com> |
271 | ||
272 | PR ld/13621 | |
273 | * linker.c (fix_syms): Force symbols outside any section into | |
274 | bfd_abs_section_ptr. | |
275 | ||
5efbbc43 AM |
276 | 2012-02-13 Alan Modra <amodra@gmail.com> |
277 | ||
278 | * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function. | |
279 | * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare. | |
280 | * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define. | |
281 | * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define. | |
282 | ||
3e3c397d JK |
283 | 2012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
284 | Nick Clifton <nickc@redhat.com> | |
285 | ||
286 | * oasys.c (oasys_write_header): Fix compilation warning on zero-sized | |
287 | memset. | |
288 | ||
09903f4b IS |
289 | 2012-02-10 Iain Sandoe <idsandoe@googlemail.com> |
290 | ||
291 | * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section | |
292 | vma additions in their logical, rather than physical order. | |
293 | ||
632039e0 IS |
294 | 2012-02-10 Iain Sandoe <idsandoe@googlemail.com> |
295 | ||
296 | * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section | |
297 | parameters. | |
298 | * mach-o-x86-64.c (text_section_names_xlat): New. | |
299 | (mach_o_x86_64_segsec_names_xlat): New. | |
300 | (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat. | |
301 | * mach-o-i386.c (text_section_names_xlat): Correct section parameters. | |
302 | ||
565a6476 TG |
303 | 2012-02-10 Tristan Gingold <gingold@adacore.com> |
304 | ||
305 | * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator | |
306 | to avoid infinite loop. Add comments. | |
307 | ||
923f257f L |
308 | 2012-02-09 H.J. Lu <hongjiu.lu@intel.com> |
309 | ||
310 | PR ld/13675 | |
311 | * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte | |
312 | nop instructions. | |
313 | (bfd_arch_i386_short_nop_fill): New. | |
314 | (bfd_arch_i386_long_nop_fill): Likewise. | |
315 | Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info | |
316 | initializers. Use bfd_arch_i386_long_nop_fill on 64bit | |
317 | bfd_arch_info initializers. | |
318 | ||
319 | * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ... | |
320 | (bfd_arch_i386_short_nop_fill): This. | |
321 | Update bfd_arch_info initializers. | |
322 | * cpu-l1om.c: Likewise. | |
323 | ||
4e6b54a6 AM |
324 | 2012-02-08 Alan Modra <amodra@gmail.com> |
325 | ||
326 | * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too. | |
327 | (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear | |
328 | the correct h->u.weakdef. | |
329 | ||
ff9e0f5b AM |
330 | 2012-02-07 Alan Modra <amodra@gmail.com> |
331 | ||
332 | * elf.c (elf_find_function): Don't use internal_elf_sym. | |
333 | (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type | |
334 | parameter with asymbol. | |
335 | * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. | |
336 | * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype. | |
337 | (struct elf_backend_data <maybe_function_sym>): Likewise. | |
338 | ||
526f25b2 EW |
339 | 2012-02-02 Vidya Praveen (vidya.praveen@atmel.com) |
340 | ||
341 | PR bfd/13410 | |
ff9e0f5b | 342 | * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the |
526f25b2 EW |
343 | condition that qualifies the candidates for relaxation. |
344 | ||
7c4f9963 TG |
345 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
346 | ||
347 | * bfdio.c (real_fopen): Remove unused vms_modes variable. | |
348 | ||
facf03f2 TG |
349 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
350 | ||
351 | * mach-o.c (bfd_mach_o_read_header): Silent uninitialized | |
352 | variable warning. | |
353 | ||
cd99171c TG |
354 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
355 | ||
356 | * archive.c (bfd_slurp_armap): Fix thinko in cast. | |
357 | ||
b7761f11 L |
358 | 2012-01-31 H.J. Lu <hongjiu.lu@intel.com> |
359 | ||
360 | PR ld/13616 | |
361 | * archures.c (bfd_arch_info): Add fill. | |
362 | (bfd_default_arch_struct): Add bfd_arch_default_fill. | |
363 | (bfd_arch_default_fill): New. | |
364 | ||
365 | * configure.in: Set bfd version to 2.22.52. | |
366 | * configure: Regenerated. | |
367 | ||
368 | * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info | |
369 | initializer. | |
370 | * cpu-arc.c: Likewise. | |
371 | * cpu-arm.c: Likewise. | |
372 | * cpu-avr.c: Likewise. | |
373 | * cpu-bfin.c: Likewise. | |
374 | * cpu-cr16.c: Likewise. | |
375 | * cpu-cr16c.c: Likewise. | |
376 | * cpu-cris.c: Likewise. | |
377 | * cpu-crx.c: Likewise. | |
378 | * cpu-d10v.c: Likewise. | |
379 | * cpu-d30v.c: Likewise. | |
380 | * cpu-dlx.c: Likewise. | |
381 | * cpu-epiphany.c: Likewise. | |
382 | * cpu-fr30.c: Likewise. | |
383 | * cpu-frv.c: Likewise. | |
384 | * cpu-h8300.c: Likewise. | |
385 | * cpu-h8500.c: Likewise. | |
386 | * cpu-hppa.c: Likewise. | |
387 | * cpu-i370.c: Likewise. | |
388 | * cpu-i860.c: Likewise. | |
389 | * cpu-i960.c: Likewise. | |
390 | * cpu-ia64.c: Likewise. | |
391 | * cpu-ip2k.c: Likewise. | |
392 | * cpu-iq2000.c: Likewise. | |
393 | * cpu-lm32.c: Likewise. | |
394 | * cpu-m10200.c: Likewise. | |
395 | * cpu-m10300.c: Likewise. | |
396 | * cpu-m32c.c: Likewise. | |
397 | * cpu-m32r.c: Likewise. | |
398 | * cpu-m68hc11.c: Likewise. | |
399 | * cpu-m68hc12.c: Likewise. | |
400 | * cpu-m68k.c: Likewise. | |
401 | * cpu-m88k.c: Likewise. | |
402 | * cpu-mcore.c: Likewise. | |
403 | * cpu-mep.c: Likewise. | |
404 | * cpu-microblaze.c: Likewise. | |
405 | * cpu-mips.c: Likewise. | |
406 | * cpu-mmix.c: Likewise. | |
407 | * cpu-moxie.c: Likewise. | |
408 | * cpu-msp430.c: Likewise. | |
409 | * cpu-mt.c: Likewise. | |
410 | * cpu-ns32k.c: Likewise. | |
411 | * cpu-openrisc.c: Likewise. | |
412 | * cpu-or32.c: Likewise. | |
413 | * cpu-pdp11.c: Likewise. | |
414 | * cpu-pj.c: Likewise. | |
415 | * cpu-plugin.c: Likewise. | |
416 | * cpu-powerpc.c: Likewise. | |
417 | * cpu-rl78.c: Likewise. | |
418 | * cpu-rs6000.c: Likewise. | |
419 | * cpu-rx.c: Likewise. | |
420 | * cpu-s390.c: Likewise. | |
421 | * cpu-score.c: Likewise. | |
422 | * cpu-sh.c: Likewise. | |
423 | * cpu-sparc.c: Likewise. | |
424 | * cpu-spu.c: Likewise. | |
425 | * cpu-tic30.c: Likewise. | |
426 | * cpu-tic4x.c: Likewise. | |
427 | * cpu-tic54x.c: Likewise. | |
428 | * cpu-tic6x.c: Likewise. | |
429 | * cpu-tic80.c: Likewise. | |
430 | * cpu-tilegx.c: Likewise. | |
431 | * cpu-tilepro.c: Likewise. | |
432 | * cpu-v850.c: Likewise. | |
433 | * cpu-vax.c: Likewise. | |
434 | * cpu-w65.c: Likewise. | |
435 | * cpu-we32k.c: Likewise. | |
436 | * cpu-xc16x.c: Likewise. | |
437 | * cpu-xstormy16.c: Likewise. | |
438 | * cpu-xtensa.c: Likewise. | |
439 | * cpu-z80.c: Likewise. | |
440 | * cpu-z8k.c: Likewise. | |
441 | ||
442 | * cpu-i386.c: Include "libiberty.h". | |
ff9e0f5b | 443 | (bfd_arch_i386_fill): New. |
b7761f11 L |
444 | Add bfd_arch_i386_fill to bfd_arch_info initializer. |
445 | ||
446 | * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer. | |
447 | * cpu-l1om.c: Likewise. | |
448 | ||
ff9e0f5b | 449 | * linker.c (default_data_link_order): Call abfd->arch_info->fill |
b7761f11 L |
450 | if fill size is 0. |
451 | ||
452 | * bfd-in2.h: Regenerated. | |
453 | ||
0d048da3 ME |
454 | 2012-01-27 Michael Eager <eager@eagercon.com> |
455 | ||
456 | * bfd/elf32-microblaze.c (create_got_section): | |
457 | Reuse existing .rela.got section. | |
458 | ||
9f296da3 AM |
459 | 2012-01-23 Alan Modra <amodra@gmail.com> |
460 | ||
461 | * elf-bfd.h: Formatting. | |
462 | (struct elf_backend_data): Add "maybe_function_sym". | |
463 | (_bfd_elf_maybe_function_sym): Declare. | |
464 | * elfxx-target.h (elf_backend_maybe_function_sym): Define. | |
465 | (elfNN_bed): Init new field. | |
466 | * elf.c (elf_find_function): Use maybe_function_sym. | |
467 | (_bfd_elf_maybe_function_sym): New function. | |
468 | * elf64-ppc.c (elf_backend_maybe_function_sym): Define. | |
469 | (ppc64_elf_maybe_function_sym): New function. | |
470 | ||
f1bb16f8 NC |
471 | 2012-01-20 Francois Gouget <fgouget@codeweavers.com> |
472 | ||
473 | PR binutils/13534 | |
474 | * archive.c (_bfd_ar_sizepad): New function. Correctly install and | |
475 | pad the size field in an archive header. | |
476 | (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan | |
477 | function for the archive size field. | |
478 | (bfd_generic_openr_next_archived_file): Likewise. | |
479 | (do_slurp_coff_armap): Likewise. | |
480 | (_bfd_write_archive_contents): Likewise. | |
481 | (_bfd_bsd44_write_ar_hdr): Use the new function. | |
482 | (bfd_ar_hdr_from_filesystem): Likewise. | |
483 | (_bfd_write_archive_contents): Likewise. | |
484 | (bsd_write_armap): Likewise. | |
485 | (coff_write_armap): Likewise. | |
486 | * archive64.c (bfd_elf64_archive_write_armap): Likewise. | |
487 | * bfdio.c (bfd_bread): Use correct type for archive element | |
488 | sizes. | |
489 | * ar.c (open_inarch): Likewise. | |
490 | (extract_file): Likewise. | |
491 | * libbfd-in.h (struct areltdata): Use correct types for | |
492 | parsed_size and extra_size fields. | |
493 | Prototype _bfd_ar_sizepad function. | |
494 | * libbfd.h: Regenerate. | |
495 | ||
1f20dca5 UW |
496 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
497 | ||
498 | * elf.c (elfcore_write_prpsinfo): Provide unconditionally. | |
499 | Return NULL if core file generation is unsupported. | |
500 | (elfcore_write_prstatus): Likewise. | |
501 | * elf32-arm.c (elf32_arm_nabi_write_core_note): New function. | |
502 | (elf_backend_write_core_note): Define. | |
503 | ||
100fc767 TG |
504 | 2012-01-19 Tristan Gingold <gingold@adacore.com> |
505 | ||
506 | * pef.c: Add a comment. | |
507 | * xsym.c: Likewise. | |
508 | ||
75cd47ed AM |
509 | 2012-01-17 Alan Modra <amodra@gmail.com> |
510 | ||
511 | * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave | |
512 | trailing garbage in the note. | |
513 | * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise. | |
514 | ||
8a5dcf53 AM |
515 | 2012-01-16 Daniel Green <venix1@gmail.com> |
516 | ||
517 | PR ld/13491 | |
518 | * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test | |
519 | h->root.type not h->type. | |
520 | * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise. | |
521 | ||
bb76d940 IS |
522 | 2012-01-13 Iain Sandoe <idsandoe@googlemail.com> |
523 | ||
8a5dcf53 AM |
524 | * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute |
525 | indirect symbols. | |
687be931 IS |
526 | |
527 | 2012-01-13 Iain Sandoe <idsandoe@googlemail.com> | |
528 | ||
529 | * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file | |
bb76d940 IS |
530 | position from here... to (bfd_mach_o_build_seg_command): Here. |
531 | ||
50d10658 IS |
532 | 2012-01-12 Iain Sandoe <idsandoe@googlemail.com> |
533 | ||
534 | * mach-o.c (bfd_mach_o_count_indirect_symbols): New. | |
535 | (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table. | |
536 | * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the | |
537 | file. (bfd_mach_o_section): Add indirect_syms field. | |
538 | ||
e5081f2f IS |
539 | 2012-01-11 Iain Sandoe <idsandoe@googlemail.com> |
540 | ||
541 | * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of | |
542 | vmsize from filesize. Don't compute offsets or file sizes for | |
543 | zerofill sections. | |
544 | ||
bbd56171 IS |
545 | 2012-01-11 Iain Sandoe <idsandoe@googlemail.com> |
546 | ||
547 | * mach-o.c (bfd_mach_o_build_commands): Make the building of each | |
548 | command type independent. | |
549 | ||
794e51c0 AM |
550 | 2012-01-11 Alan Modra <amodra@gmail.com> |
551 | ||
552 | * elf64-ppc.c: Define more insns used in plt call stubs. | |
553 | (ppc64_elf_brtaken_reloc): Assume isa version 2 or above. | |
554 | (ppc64_elf_relocate_section): Likewise. | |
555 | (enum ppc_stub_type): Add ppc_stub_plt_call_r2save. | |
556 | (struct ppc_link_hash_table): Increase size of stub_count array. | |
557 | Add plt_stub_align and plt_thread_safe. | |
558 | (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define. | |
559 | (plt_stub_size, plt_stub_pad): New functions. | |
560 | (build_plt_stub): Emit barriers for power7 thread safety. Don't | |
561 | emit needless save of r2. | |
562 | (build_tls_get_addr_stub): Adjust params. | |
563 | (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning | |
564 | plt stubs. Adjust build_*plt_stub calls. | |
565 | (ppc_size_one_stub): Similarly. | |
566 | (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align | |
567 | params. Choose default for plt_thread_safe based on existence of | |
568 | calls to thread creation functions. Modify plt_call to | |
569 | plt_call_r2save when no tocsave reloc found. Align tail of stub | |
570 | sections. | |
571 | (ppc64_elf_build_stubs): Align tail of stub sections. Adjust | |
572 | output of stub statistics. | |
573 | (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save. | |
574 | * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype. | |
575 | ||
df4f9443 L |
576 | 2012-01-10 H.J. Lu <hongjiu.lu@intel.com> |
577 | ||
578 | PR ld/13581 | |
579 | * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P | |
580 | check on R_X86_64_PCXX. | |
581 | ||
2a65a88e TG |
582 | 2012-01-10 Tristan Gingold <gingold@adacore.com> |
583 | ||
584 | * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false | |
585 | warning. | |
586 | ||
660722b0 TG |
587 | 2012-01-10 Tristan Gingold <gingold@adacore.com> |
588 | ||
589 | * bfdio.c (bfd_tell): Handle nested archives. | |
590 | (bfd_seek): Ditto. | |
591 | * cache.c (bfd_cache_lookup_worker): Ditto. | |
592 | * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with | |
593 | nested archives. | |
594 | (bfd_generic_openr_next_archived_file): Likewise. | |
595 | ||
b22161d6 IS |
596 | 2012-01-09 Iain Sandoe <idsandoe@googlemail.com> |
597 | ||
598 | * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement. | |
599 | (bfd_mach_o_write_symtab): Remove handling for indirect syms. | |
600 | (bfd_mach_o_primary_symbol_sort_key): Likewise. | |
601 | (bfd_mach_o_cf_symbols): Likewise. | |
602 | (bfd_mach_o_sort_symbol_table): Remove. | |
603 | (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling | |
604 | for indirect and dysymtab counts. Do the symbol sorting here. | |
605 | (bfd_mach_o_build_dysymtab_command): Count the symbol types here. | |
606 | Make the indirect symbols a TODO. | |
607 | (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols. | |
608 | (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with | |
609 | a non-zero value. | |
610 | (bfd_mach_o_read_symtab_symbol): Record the symbol index. | |
611 | (bfd_mach_o_read_symtab_symbol): Adjust recording of global status. | |
612 | * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries. | |
613 | (IS_MACHO_INDIRECT): Remove. | |
614 | (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New. | |
615 | ||
28a1b4f8 NC |
616 | 2012-01-06 Nick Clifton <nickc@redhat.com> |
617 | ||
618 | PR binutils/13121 | |
619 | * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to | |
620 | 'flaginfo' to avoid conflicts with AIX system headers. | |
621 | ||
36f0a48f TG |
622 | 2012-01-06 Tristan Gingold <gingold@adacore.com> |
623 | ||
624 | * bfdio.c (bfd_bread): Use arelt_size macro. | |
625 | ||
76d4c1cb TG |
626 | 2012-01-06 Tristan Gingold <gingold@adacore.com> |
627 | ||
628 | * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs. | |
629 | ||
a1c7aafb NC |
630 | 2012-01-05 Nick Clifton <nickc@redhat.com> |
631 | ||
632 | PR ld/12161 | |
633 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if | |
634 | necessary. | |
635 | ||
e85c6a70 JK |
636 | 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
637 | ||
638 | Fix zero registers core files when built by gcc-4.7. | |
639 | * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and | |
640 | size. Call elfcore_write_note for the local variables. Remove the | |
641 | final elfcore_write_note call. Add NOTREACHED comments. | |
642 | ||
15bbba8d TG |
643 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
644 | ||
645 | * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function. | |
646 | (bfd_mach_o_generic_stat_arch_elt): Adjust. | |
647 | ||
a4e241ca TG |
648 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
649 | ||
650 | * mach-o.c (bfd_mach_o_fat_member_init): New function. | |
651 | (bfd_mach_o_openr_next_archived_file): Reindent. | |
652 | Adjust to call bfd_mach_o_fat_member_init. | |
653 | (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init. | |
654 | ||
71141310 TG |
655 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
656 | ||
657 | * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle | |
658 | BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1, | |
659 | BFD_RELOC_MACH_O_X86_64_PCREL32_2, | |
660 | BFD_RELOC_MACH_O_X86_64_PCREL32_4, | |
661 | BFD_RELOC_MACH_O_X86_64_BRANCH32, | |
662 | BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32, | |
663 | BFD_RELOC_MACH_O_X86_64_GOT. | |
664 | ||
9f4a5bd1 TG |
665 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
666 | ||
667 | * mach-o.h (bfd_mach_o_fvmlib_command): New structure. | |
668 | (bfd_mach_o_load_command): Add fvmlib field. | |
669 | ||
670 | * mach-o.c (bfd_mach_o_read_fvmlib): New function. | |
671 | (bfd_mach_o_read_command): Handle fvmlib. | |
672 | ||
0b2de107 TG |
673 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
674 | ||
675 | * mach-o.c (bfd_mach_o_convert_architecture): Reindent. | |
676 | Decode msubtype for ARM. | |
677 | ||
aeefa1c9 TG |
678 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
679 | ||
680 | * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments. | |
681 | ||
fc55a902 TG |
682 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
683 | ||
684 | * mach-o.h: Reindent header. | |
685 | (bfd_mach_o_encryption_info_command): New structure. | |
686 | (bfd_mach_o_load_command): Add encryption_info field. | |
687 | ||
688 | * mach-o.c (bfd_mach_o_read_encryption_info): New function. | |
689 | (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO. | |
690 | (bfd_mach_o_read_command): Adjust error message. | |
691 | ||
2ca7691a TG |
692 | 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com> |
693 | ||
694 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part | |
695 | which reads DWARF2 and stores in stash from find_line. | |
696 | (find_line) Call _bfd_dwarf2_slurp_debug_info. | |
697 | * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration. | |
698 | * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate. | |
699 | * mach-o.c (dsym_subdir): The name of subdir where debug | |
700 | information may be stored. | |
701 | (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose | |
702 | type is UUID. | |
703 | (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is | |
704 | corresponding to the executable. | |
705 | (bfd_mach_o_find_dsym): New. Find a debug information BFD in the | |
706 | specified binary file. | |
707 | (bfd_mach_o_follow_dsym): New. Find a debug information BFD for | |
708 | the original BFD. | |
709 | (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O | |
710 | executables, dylibs, and bundles. | |
711 | (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file. | |
712 | * mach-o.h (dsym_bfd): The BFD of the dSYM file. | |
713 | ||
68588f95 IS |
714 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
715 | ||
716 | * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index | |
717 | for stabd symbols. | |
718 | (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs. | |
719 | (bfd_mach_o_cf_symbols): Likewise. | |
720 | ||
f2b324f1 IS |
721 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
722 | ||
723 | * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo. | |
724 | ||
7f307238 IS |
725 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
726 | ||
727 | * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index | |
728 | as the value of an indirect symbol. Keep the string table index in | |
729 | non-indirect syms for reference. | |
730 | (bfd_mach_o_write_dysymtab): New. | |
731 | (bfd_mach_o_primary_symbol_sort_key): New. | |
732 | (bfd_mach_o_cf_symbols): New. | |
733 | (bfd_mach_o_sort_symbol_table): New. | |
734 | (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols. | |
735 | If we are emitting a dysymtab, process indirect symbols and count the | |
736 | number of each other kind. | |
737 | (bfd_mach_o_mangle_sections): New. | |
738 | (bfd_mach_o_write_contents): Split out some pre-requisite code into | |
739 | the command builder. Write dysymtab if the command is present. | |
740 | (bfd_mach_o_count_sections_for_seg): New. | |
741 | (bfd_mach_o_build_seg_command): New. | |
742 | (bfd_mach_o_build_dysymtab_command): New. | |
743 | (bfd_mach_o_build_commands): Reorganize to support the fact that some | |
744 | commands are optional and should not be emitted if there are no | |
745 | sections or symbols. | |
746 | (bfd_mach_o_set_section_contents): Amend comment. | |
23e1d329 | 747 | * mach-o.h: Amend and add to comments. |
7f307238 IS |
748 | (mach_o_data_struct): Add fields for dysymtab symbols counts and a |
749 | pointer to the indirects, when present. | |
750 | (bfd_mach_o_should_emit_dysymtab): New macro. | |
751 | (IS_MACHO_INDIRECT): Likewise. | |
752 | ||
23e1d329 | 753 | For older changes see ChangeLog-2011 |
56882138 AM |
754 | \f |
755 | Local Variables: | |
756 | mode: change-log | |
757 | left-margin: 8 | |
758 | fill-column: 74 | |
759 | version-control: never | |
760 | End: |