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