add symbol qualifiers for mach-o to bfd/gas
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
2
3 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
4 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
5 (bfd_mach_o_primary_symbol_sort_key): Likewise.
6 (bfd_mach_o_cf_symbols): Likewise.
7 (bfd_mach_o_sort_symbol_table): Remove.
8 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
9 for indirect and dysymtab counts. Do the symbol sorting here.
10 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
11 Make the indirect symbols a TODO.
12 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
13 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
14 a non-zero value.
15 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
16 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
17 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
18 (IS_MACHO_INDIRECT): Remove.
19 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
20
21 2012-01-06 Nick Clifton <nickc@redhat.com>
22
23 PR binutils/13121
24 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
25 'flaginfo' to avoid conflicts with AIX system headers.
26
27 2012-01-06 Tristan Gingold <gingold@adacore.com>
28
29 * bfdio.c (bfd_bread): Use arelt_size macro.
30
31 2012-01-06 Tristan Gingold <gingold@adacore.com>
32
33 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
34
35 2012-01-05 Nick Clifton <nickc@redhat.com>
36
37 PR ld/12161
38 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
39 necessary.
40
41 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
42
43 Fix zero registers core files when built by gcc-4.7.
44 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
45 size. Call elfcore_write_note for the local variables. Remove the
46 final elfcore_write_note call. Add NOTREACHED comments.
47
48 2012-01-04 Tristan Gingold <gingold@adacore.com>
49
50 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
51 (bfd_mach_o_generic_stat_arch_elt): Adjust.
52
53 2012-01-04 Tristan Gingold <gingold@adacore.com>
54
55 * mach-o.c (bfd_mach_o_fat_member_init): New function.
56 (bfd_mach_o_openr_next_archived_file): Reindent.
57 Adjust to call bfd_mach_o_fat_member_init.
58 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
59
60 2012-01-04 Tristan Gingold <gingold@adacore.com>
61
62 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
63 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
64 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
65 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
66 BFD_RELOC_MACH_O_X86_64_BRANCH32,
67 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
68 BFD_RELOC_MACH_O_X86_64_GOT.
69
70 2012-01-04 Tristan Gingold <gingold@adacore.com>
71
72 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
73 (bfd_mach_o_load_command): Add fvmlib field.
74
75 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
76 (bfd_mach_o_read_command): Handle fvmlib.
77
78 2012-01-04 Tristan Gingold <gingold@adacore.com>
79
80 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
81 Decode msubtype for ARM.
82
83 2012-01-04 Tristan Gingold <gingold@adacore.com>
84
85 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
86
87 2012-01-04 Tristan Gingold <gingold@adacore.com>
88
89 * mach-o.h: Reindent header.
90 (bfd_mach_o_encryption_info_command): New structure.
91 (bfd_mach_o_load_command): Add encryption_info field.
92
93 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
94 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
95 (bfd_mach_o_read_command): Adjust error message.
96
97 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
98
99 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
100 which reads DWARF2 and stores in stash from find_line.
101 (find_line) Call _bfd_dwarf2_slurp_debug_info.
102 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
103 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
104 * mach-o.c (dsym_subdir): The name of subdir where debug
105 information may be stored.
106 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
107 type is UUID.
108 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
109 corresponding to the executable.
110 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
111 specified binary file.
112 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
113 the original BFD.
114 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
115 executables, dylibs, and bundles.
116 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
117 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
118
119 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
120
121 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
122 for stabd symbols.
123 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
124 (bfd_mach_o_cf_symbols): Likewise.
125
126 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
127
128 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
129
130 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
131
132 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
133 as the value of an indirect symbol. Keep the string table index in
134 non-indirect syms for reference.
135 (bfd_mach_o_write_dysymtab): New.
136 (bfd_mach_o_primary_symbol_sort_key): New.
137 (bfd_mach_o_cf_symbols): New.
138 (bfd_mach_o_sort_symbol_table): New.
139 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
140 If we are emitting a dysymtab, process indirect symbols and count the
141 number of each other kind.
142 (bfd_mach_o_mangle_sections): New.
143 (bfd_mach_o_write_contents): Split out some pre-requisite code into
144 the command builder. Write dysymtab if the command is present.
145 (bfd_mach_o_count_sections_for_seg): New.
146 (bfd_mach_o_build_seg_command): New.
147 (bfd_mach_o_build_dysymtab_command): New.
148 (bfd_mach_o_build_commands): Reorganize to support the fact that some
149 commands are optional and should not be emitted if there are no
150 sections or symbols.
151 (bfd_mach_o_set_section_contents): Amend comment.
152 * mach-o.h: Amend and add to comments.
153 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
154 pointer to the indirects, when present.
155 (bfd_mach_o_should_emit_dysymtab): New macro.
156 (IS_MACHO_INDIRECT): Likewise.
157
158 For older changes see ChangeLog-2011
159 \f
160 Local Variables:
161 mode: change-log
162 left-margin: 8
163 fill-column: 74
164 version-control: never
165 End:
This page took 0.038959 seconds and 5 git commands to generate.