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