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