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