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