bfd:
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2
3 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
4 command type independent.
5
6 2012-01-11 Alan Modra <amodra@gmail.com>
7
8 * elf64-ppc.c: Define more insns used in plt call stubs.
9 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
10 (ppc64_elf_relocate_section): Likewise.
11 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
12 (struct ppc_link_hash_table): Increase size of stub_count array.
13 Add plt_stub_align and plt_thread_safe.
14 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
15 (plt_stub_size, plt_stub_pad): New functions.
16 (build_plt_stub): Emit barriers for power7 thread safety. Don't
17 emit needless save of r2.
18 (build_tls_get_addr_stub): Adjust params.
19 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
20 plt stubs. Adjust build_*plt_stub calls.
21 (ppc_size_one_stub): Similarly.
22 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
23 params. Choose default for plt_thread_safe based on existence of
24 calls to thread creation functions. Modify plt_call to
25 plt_call_r2save when no tocsave reloc found. Align tail of stub
26 sections.
27 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
28 output of stub statistics.
29 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
30 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
31
32 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
33
34 PR ld/13581
35 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
36 check on R_X86_64_PCXX.
37
38 2012-01-10 Tristan Gingold <gingold@adacore.com>
39
40 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
41 warning.
42
43 2012-01-10 Tristan Gingold <gingold@adacore.com>
44
45 * bfdio.c (bfd_tell): Handle nested archives.
46 (bfd_seek): Ditto.
47 * cache.c (bfd_cache_lookup_worker): Ditto.
48 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
49 nested archives.
50 (bfd_generic_openr_next_archived_file): Likewise.
51
52 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
53
54 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
55 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
56 (bfd_mach_o_primary_symbol_sort_key): Likewise.
57 (bfd_mach_o_cf_symbols): Likewise.
58 (bfd_mach_o_sort_symbol_table): Remove.
59 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
60 for indirect and dysymtab counts. Do the symbol sorting here.
61 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
62 Make the indirect symbols a TODO.
63 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
64 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
65 a non-zero value.
66 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
67 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
68 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
69 (IS_MACHO_INDIRECT): Remove.
70 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
71
72 2012-01-06 Nick Clifton <nickc@redhat.com>
73
74 PR binutils/13121
75 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
76 'flaginfo' to avoid conflicts with AIX system headers.
77
78 2012-01-06 Tristan Gingold <gingold@adacore.com>
79
80 * bfdio.c (bfd_bread): Use arelt_size macro.
81
82 2012-01-06 Tristan Gingold <gingold@adacore.com>
83
84 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
85
86 2012-01-05 Nick Clifton <nickc@redhat.com>
87
88 PR ld/12161
89 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
90 necessary.
91
92 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
93
94 Fix zero registers core files when built by gcc-4.7.
95 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
96 size. Call elfcore_write_note for the local variables. Remove the
97 final elfcore_write_note call. Add NOTREACHED comments.
98
99 2012-01-04 Tristan Gingold <gingold@adacore.com>
100
101 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
102 (bfd_mach_o_generic_stat_arch_elt): Adjust.
103
104 2012-01-04 Tristan Gingold <gingold@adacore.com>
105
106 * mach-o.c (bfd_mach_o_fat_member_init): New function.
107 (bfd_mach_o_openr_next_archived_file): Reindent.
108 Adjust to call bfd_mach_o_fat_member_init.
109 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
110
111 2012-01-04 Tristan Gingold <gingold@adacore.com>
112
113 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
114 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
115 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
116 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
117 BFD_RELOC_MACH_O_X86_64_BRANCH32,
118 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
119 BFD_RELOC_MACH_O_X86_64_GOT.
120
121 2012-01-04 Tristan Gingold <gingold@adacore.com>
122
123 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
124 (bfd_mach_o_load_command): Add fvmlib field.
125
126 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
127 (bfd_mach_o_read_command): Handle fvmlib.
128
129 2012-01-04 Tristan Gingold <gingold@adacore.com>
130
131 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
132 Decode msubtype for ARM.
133
134 2012-01-04 Tristan Gingold <gingold@adacore.com>
135
136 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
137
138 2012-01-04 Tristan Gingold <gingold@adacore.com>
139
140 * mach-o.h: Reindent header.
141 (bfd_mach_o_encryption_info_command): New structure.
142 (bfd_mach_o_load_command): Add encryption_info field.
143
144 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
145 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
146 (bfd_mach_o_read_command): Adjust error message.
147
148 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
149
150 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
151 which reads DWARF2 and stores in stash from find_line.
152 (find_line) Call _bfd_dwarf2_slurp_debug_info.
153 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
154 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
155 * mach-o.c (dsym_subdir): The name of subdir where debug
156 information may be stored.
157 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
158 type is UUID.
159 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
160 corresponding to the executable.
161 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
162 specified binary file.
163 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
164 the original BFD.
165 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
166 executables, dylibs, and bundles.
167 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
168 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
169
170 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
171
172 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
173 for stabd symbols.
174 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
175 (bfd_mach_o_cf_symbols): Likewise.
176
177 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
178
179 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
180
181 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
182
183 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
184 as the value of an indirect symbol. Keep the string table index in
185 non-indirect syms for reference.
186 (bfd_mach_o_write_dysymtab): New.
187 (bfd_mach_o_primary_symbol_sort_key): New.
188 (bfd_mach_o_cf_symbols): New.
189 (bfd_mach_o_sort_symbol_table): New.
190 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
191 If we are emitting a dysymtab, process indirect symbols and count the
192 number of each other kind.
193 (bfd_mach_o_mangle_sections): New.
194 (bfd_mach_o_write_contents): Split out some pre-requisite code into
195 the command builder. Write dysymtab if the command is present.
196 (bfd_mach_o_count_sections_for_seg): New.
197 (bfd_mach_o_build_seg_command): New.
198 (bfd_mach_o_build_dysymtab_command): New.
199 (bfd_mach_o_build_commands): Reorganize to support the fact that some
200 commands are optional and should not be emitted if there are no
201 sections or symbols.
202 (bfd_mach_o_set_section_contents): Amend comment.
203 * mach-o.h: Amend and add to comments.
204 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
205 pointer to the indirects, when present.
206 (bfd_mach_o_should_emit_dysymtab): New macro.
207 (IS_MACHO_INDIRECT): Likewise.
208
209 For older changes see ChangeLog-2011
210 \f
211 Local Variables:
212 mode: change-log
213 left-margin: 8
214 fill-column: 74
215 version-control: never
216 End:
This page took 0.034764 seconds and 5 git commands to generate.