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