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