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