Properly create and use a bfd_arch_info_type for 32-bit tilegx.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2012-02-25 Walter Lee <walt@tilera.com>
2
3 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
4 * bfd-in2.h: Regenerate.
5 * cpu-tilegx.c (bfd_tilegx32_arch): define.
6 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
7
8 2012-02-24 Nick Clifton <nickc@redhat.com>
9
10 PR ld/13730
11 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
12 error message instead of aborting, when an outofrange reloc is
13 encountered.
14
15 2012-02-23 Iain Sandoe <idsandoe@googlemail.com>
16
17 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
18 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
19 bit-fields when target and host differ in endian-ness. When
20 PAIRs are non-scattered find the 'symbol' from the preceding
21 reloc. Add FIXME re. reloc symbols on section boundaries.
22 (bfd_mach_o_swap_out_non_scattered_reloc): New.
23 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
24
25 2012-02-17 Iain Sandoe <idsandoe@googlemail.com>
26
27 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
28 sect-diffs.
29 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
30 (bfd_mach_o_i386_swap_reloc_out): Likewise.
31
32 2012-02-17 Tristan Gingold <gingold@adacore.com>
33
34 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
35 * libbfd.h: Regenerated.
36 * bfd-in2.h: Likewise.
37 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
38 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
39 (bfd_mach_o_i386_swap_reloc_out): Likewise.
40
41 2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
42
43 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
44 GD->LE and LD->LE optimizations.
45
46 2012-02-16 Alan Modra <amodra@gmail.com>
47
48 PR binutils/13355
49 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
50
51 2012-02-13 Richard Henderson <rth@redhat.com>
52
53 PR ld/13621
54 * linker.c (fix_syms): Force symbols outside any section into
55 bfd_abs_section_ptr.
56
57 2012-02-13 Alan Modra <amodra@gmail.com>
58
59 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
60 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
61 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
62 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
63
64 2012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
65 Nick Clifton <nickc@redhat.com>
66
67 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
68 memset.
69
70 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
71
72 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
73 vma additions in their logical, rather than physical order.
74
75 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
76
77 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
78 parameters.
79 * mach-o-x86-64.c (text_section_names_xlat): New.
80 (mach_o_x86_64_segsec_names_xlat): New.
81 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
82 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
83
84 2012-02-10 Tristan Gingold <gingold@adacore.com>
85
86 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
87 to avoid infinite loop. Add comments.
88
89 2012-02-09 H.J. Lu <hongjiu.lu@intel.com>
90
91 PR ld/13675
92 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
93 nop instructions.
94 (bfd_arch_i386_short_nop_fill): New.
95 (bfd_arch_i386_long_nop_fill): Likewise.
96 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
97 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
98 bfd_arch_info initializers.
99
100 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
101 (bfd_arch_i386_short_nop_fill): This.
102 Update bfd_arch_info initializers.
103 * cpu-l1om.c: Likewise.
104
105 2012-02-08 Alan Modra <amodra@gmail.com>
106
107 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
108 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
109 the correct h->u.weakdef.
110
111 2012-02-07 Alan Modra <amodra@gmail.com>
112
113 * elf.c (elf_find_function): Don't use internal_elf_sym.
114 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
115 parameter with asymbol.
116 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
117 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
118 (struct elf_backend_data <maybe_function_sym>): Likewise.
119
120 2012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
121
122 PR bfd/13410
123 * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the
124 condition that qualifies the candidates for relaxation.
125
126 2012-02-02 Tristan Gingold <gingold@adacore.com>
127
128 * bfdio.c (real_fopen): Remove unused vms_modes variable.
129
130 2012-02-02 Tristan Gingold <gingold@adacore.com>
131
132 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
133 variable warning.
134
135 2012-02-02 Tristan Gingold <gingold@adacore.com>
136
137 * archive.c (bfd_slurp_armap): Fix thinko in cast.
138
139 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
140
141 PR ld/13616
142 * archures.c (bfd_arch_info): Add fill.
143 (bfd_default_arch_struct): Add bfd_arch_default_fill.
144 (bfd_arch_default_fill): New.
145
146 * configure.in: Set bfd version to 2.22.52.
147 * configure: Regenerated.
148
149 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
150 initializer.
151 * cpu-arc.c: Likewise.
152 * cpu-arm.c: Likewise.
153 * cpu-avr.c: Likewise.
154 * cpu-bfin.c: Likewise.
155 * cpu-cr16.c: Likewise.
156 * cpu-cr16c.c: Likewise.
157 * cpu-cris.c: Likewise.
158 * cpu-crx.c: Likewise.
159 * cpu-d10v.c: Likewise.
160 * cpu-d30v.c: Likewise.
161 * cpu-dlx.c: Likewise.
162 * cpu-epiphany.c: Likewise.
163 * cpu-fr30.c: Likewise.
164 * cpu-frv.c: Likewise.
165 * cpu-h8300.c: Likewise.
166 * cpu-h8500.c: Likewise.
167 * cpu-hppa.c: Likewise.
168 * cpu-i370.c: Likewise.
169 * cpu-i860.c: Likewise.
170 * cpu-i960.c: Likewise.
171 * cpu-ia64.c: Likewise.
172 * cpu-ip2k.c: Likewise.
173 * cpu-iq2000.c: Likewise.
174 * cpu-lm32.c: Likewise.
175 * cpu-m10200.c: Likewise.
176 * cpu-m10300.c: Likewise.
177 * cpu-m32c.c: Likewise.
178 * cpu-m32r.c: Likewise.
179 * cpu-m68hc11.c: Likewise.
180 * cpu-m68hc12.c: Likewise.
181 * cpu-m68k.c: Likewise.
182 * cpu-m88k.c: Likewise.
183 * cpu-mcore.c: Likewise.
184 * cpu-mep.c: Likewise.
185 * cpu-microblaze.c: Likewise.
186 * cpu-mips.c: Likewise.
187 * cpu-mmix.c: Likewise.
188 * cpu-moxie.c: Likewise.
189 * cpu-msp430.c: Likewise.
190 * cpu-mt.c: Likewise.
191 * cpu-ns32k.c: Likewise.
192 * cpu-openrisc.c: Likewise.
193 * cpu-or32.c: Likewise.
194 * cpu-pdp11.c: Likewise.
195 * cpu-pj.c: Likewise.
196 * cpu-plugin.c: Likewise.
197 * cpu-powerpc.c: Likewise.
198 * cpu-rl78.c: Likewise.
199 * cpu-rs6000.c: Likewise.
200 * cpu-rx.c: Likewise.
201 * cpu-s390.c: Likewise.
202 * cpu-score.c: Likewise.
203 * cpu-sh.c: Likewise.
204 * cpu-sparc.c: Likewise.
205 * cpu-spu.c: Likewise.
206 * cpu-tic30.c: Likewise.
207 * cpu-tic4x.c: Likewise.
208 * cpu-tic54x.c: Likewise.
209 * cpu-tic6x.c: Likewise.
210 * cpu-tic80.c: Likewise.
211 * cpu-tilegx.c: Likewise.
212 * cpu-tilepro.c: Likewise.
213 * cpu-v850.c: Likewise.
214 * cpu-vax.c: Likewise.
215 * cpu-w65.c: Likewise.
216 * cpu-we32k.c: Likewise.
217 * cpu-xc16x.c: Likewise.
218 * cpu-xstormy16.c: Likewise.
219 * cpu-xtensa.c: Likewise.
220 * cpu-z80.c: Likewise.
221 * cpu-z8k.c: Likewise.
222
223 * cpu-i386.c: Include "libiberty.h".
224 (bfd_arch_i386_fill): New.
225 Add bfd_arch_i386_fill to bfd_arch_info initializer.
226
227 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
228 * cpu-l1om.c: Likewise.
229
230 * linker.c (default_data_link_order): Call abfd->arch_info->fill
231 if fill size is 0.
232
233 * bfd-in2.h: Regenerated.
234
235 2012-01-27 Michael Eager <eager@eagercon.com>
236
237 * bfd/elf32-microblaze.c (create_got_section):
238 Reuse existing .rela.got section.
239
240 2012-01-23 Alan Modra <amodra@gmail.com>
241
242 * elf-bfd.h: Formatting.
243 (struct elf_backend_data): Add "maybe_function_sym".
244 (_bfd_elf_maybe_function_sym): Declare.
245 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
246 (elfNN_bed): Init new field.
247 * elf.c (elf_find_function): Use maybe_function_sym.
248 (_bfd_elf_maybe_function_sym): New function.
249 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
250 (ppc64_elf_maybe_function_sym): New function.
251
252 2012-01-20 Francois Gouget <fgouget@codeweavers.com>
253
254 PR binutils/13534
255 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
256 pad the size field in an archive header.
257 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
258 function for the archive size field.
259 (bfd_generic_openr_next_archived_file): Likewise.
260 (do_slurp_coff_armap): Likewise.
261 (_bfd_write_archive_contents): Likewise.
262 (_bfd_bsd44_write_ar_hdr): Use the new function.
263 (bfd_ar_hdr_from_filesystem): Likewise.
264 (_bfd_write_archive_contents): Likewise.
265 (bsd_write_armap): Likewise.
266 (coff_write_armap): Likewise.
267 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
268 * bfdio.c (bfd_bread): Use correct type for archive element
269 sizes.
270 * ar.c (open_inarch): Likewise.
271 (extract_file): Likewise.
272 * libbfd-in.h (struct areltdata): Use correct types for
273 parsed_size and extra_size fields.
274 Prototype _bfd_ar_sizepad function.
275 * libbfd.h: Regenerate.
276
277 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
278
279 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
280 Return NULL if core file generation is unsupported.
281 (elfcore_write_prstatus): Likewise.
282 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
283 (elf_backend_write_core_note): Define.
284
285 2012-01-19 Tristan Gingold <gingold@adacore.com>
286
287 * pef.c: Add a comment.
288 * xsym.c: Likewise.
289
290 2012-01-17 Alan Modra <amodra@gmail.com>
291
292 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
293 trailing garbage in the note.
294 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
295
296 2012-01-16 Daniel Green <venix1@gmail.com>
297
298 PR ld/13491
299 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
300 h->root.type not h->type.
301 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
302
303 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
304
305 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
306 indirect symbols.
307
308 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
309
310 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
311 position from here... to (bfd_mach_o_build_seg_command): Here.
312
313 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
314
315 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
316 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
317 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
318 file. (bfd_mach_o_section): Add indirect_syms field.
319
320 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
321
322 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
323 vmsize from filesize. Don't compute offsets or file sizes for
324 zerofill sections.
325
326 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
327
328 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
329 command type independent.
330
331 2012-01-11 Alan Modra <amodra@gmail.com>
332
333 * elf64-ppc.c: Define more insns used in plt call stubs.
334 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
335 (ppc64_elf_relocate_section): Likewise.
336 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
337 (struct ppc_link_hash_table): Increase size of stub_count array.
338 Add plt_stub_align and plt_thread_safe.
339 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
340 (plt_stub_size, plt_stub_pad): New functions.
341 (build_plt_stub): Emit barriers for power7 thread safety. Don't
342 emit needless save of r2.
343 (build_tls_get_addr_stub): Adjust params.
344 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
345 plt stubs. Adjust build_*plt_stub calls.
346 (ppc_size_one_stub): Similarly.
347 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
348 params. Choose default for plt_thread_safe based on existence of
349 calls to thread creation functions. Modify plt_call to
350 plt_call_r2save when no tocsave reloc found. Align tail of stub
351 sections.
352 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
353 output of stub statistics.
354 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
355 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
356
357 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
358
359 PR ld/13581
360 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
361 check on R_X86_64_PCXX.
362
363 2012-01-10 Tristan Gingold <gingold@adacore.com>
364
365 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
366 warning.
367
368 2012-01-10 Tristan Gingold <gingold@adacore.com>
369
370 * bfdio.c (bfd_tell): Handle nested archives.
371 (bfd_seek): Ditto.
372 * cache.c (bfd_cache_lookup_worker): Ditto.
373 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
374 nested archives.
375 (bfd_generic_openr_next_archived_file): Likewise.
376
377 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
378
379 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
380 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
381 (bfd_mach_o_primary_symbol_sort_key): Likewise.
382 (bfd_mach_o_cf_symbols): Likewise.
383 (bfd_mach_o_sort_symbol_table): Remove.
384 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
385 for indirect and dysymtab counts. Do the symbol sorting here.
386 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
387 Make the indirect symbols a TODO.
388 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
389 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
390 a non-zero value.
391 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
392 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
393 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
394 (IS_MACHO_INDIRECT): Remove.
395 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
396
397 2012-01-06 Nick Clifton <nickc@redhat.com>
398
399 PR binutils/13121
400 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
401 'flaginfo' to avoid conflicts with AIX system headers.
402
403 2012-01-06 Tristan Gingold <gingold@adacore.com>
404
405 * bfdio.c (bfd_bread): Use arelt_size macro.
406
407 2012-01-06 Tristan Gingold <gingold@adacore.com>
408
409 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
410
411 2012-01-05 Nick Clifton <nickc@redhat.com>
412
413 PR ld/12161
414 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
415 necessary.
416
417 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
418
419 Fix zero registers core files when built by gcc-4.7.
420 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
421 size. Call elfcore_write_note for the local variables. Remove the
422 final elfcore_write_note call. Add NOTREACHED comments.
423
424 2012-01-04 Tristan Gingold <gingold@adacore.com>
425
426 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
427 (bfd_mach_o_generic_stat_arch_elt): Adjust.
428
429 2012-01-04 Tristan Gingold <gingold@adacore.com>
430
431 * mach-o.c (bfd_mach_o_fat_member_init): New function.
432 (bfd_mach_o_openr_next_archived_file): Reindent.
433 Adjust to call bfd_mach_o_fat_member_init.
434 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
435
436 2012-01-04 Tristan Gingold <gingold@adacore.com>
437
438 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
439 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
440 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
441 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
442 BFD_RELOC_MACH_O_X86_64_BRANCH32,
443 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
444 BFD_RELOC_MACH_O_X86_64_GOT.
445
446 2012-01-04 Tristan Gingold <gingold@adacore.com>
447
448 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
449 (bfd_mach_o_load_command): Add fvmlib field.
450
451 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
452 (bfd_mach_o_read_command): Handle fvmlib.
453
454 2012-01-04 Tristan Gingold <gingold@adacore.com>
455
456 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
457 Decode msubtype for ARM.
458
459 2012-01-04 Tristan Gingold <gingold@adacore.com>
460
461 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
462
463 2012-01-04 Tristan Gingold <gingold@adacore.com>
464
465 * mach-o.h: Reindent header.
466 (bfd_mach_o_encryption_info_command): New structure.
467 (bfd_mach_o_load_command): Add encryption_info field.
468
469 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
470 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
471 (bfd_mach_o_read_command): Adjust error message.
472
473 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
474
475 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
476 which reads DWARF2 and stores in stash from find_line.
477 (find_line) Call _bfd_dwarf2_slurp_debug_info.
478 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
479 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
480 * mach-o.c (dsym_subdir): The name of subdir where debug
481 information may be stored.
482 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
483 type is UUID.
484 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
485 corresponding to the executable.
486 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
487 specified binary file.
488 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
489 the original BFD.
490 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
491 executables, dylibs, and bundles.
492 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
493 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
494
495 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
496
497 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
498 for stabd symbols.
499 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
500 (bfd_mach_o_cf_symbols): Likewise.
501
502 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
503
504 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
505
506 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
507
508 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
509 as the value of an indirect symbol. Keep the string table index in
510 non-indirect syms for reference.
511 (bfd_mach_o_write_dysymtab): New.
512 (bfd_mach_o_primary_symbol_sort_key): New.
513 (bfd_mach_o_cf_symbols): New.
514 (bfd_mach_o_sort_symbol_table): New.
515 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
516 If we are emitting a dysymtab, process indirect symbols and count the
517 number of each other kind.
518 (bfd_mach_o_mangle_sections): New.
519 (bfd_mach_o_write_contents): Split out some pre-requisite code into
520 the command builder. Write dysymtab if the command is present.
521 (bfd_mach_o_count_sections_for_seg): New.
522 (bfd_mach_o_build_seg_command): New.
523 (bfd_mach_o_build_dysymtab_command): New.
524 (bfd_mach_o_build_commands): Reorganize to support the fact that some
525 commands are optional and should not be emitted if there are no
526 sections or symbols.
527 (bfd_mach_o_set_section_contents): Amend comment.
528 * mach-o.h: Amend and add to comments.
529 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
530 pointer to the indirects, when present.
531 (bfd_mach_o_should_emit_dysymtab): New macro.
532 (IS_MACHO_INDIRECT): Likewise.
533
534 For older changes see ChangeLog-2011
535 \f
536 Local Variables:
537 mode: change-log
538 left-margin: 8
539 fill-column: 74
540 version-control: never
541 End:
This page took 0.042126 seconds and 5 git commands to generate.