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