2012-01-19 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
100fc767
TG
12012-01-19 Tristan Gingold <gingold@adacore.com>
2
3 * pef.c: Add a comment.
4 * xsym.c: Likewise.
5
75cd47ed
AM
62012-01-17 Alan Modra <amodra@gmail.com>
7
8 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
9 trailing garbage in the note.
10 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
11
8a5dcf53
AM
122012-01-16 Daniel Green <venix1@gmail.com>
13
14 PR ld/13491
15 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
16 h->root.type not h->type.
17 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
18
bb76d940
IS
192012-01-13 Iain Sandoe <idsandoe@googlemail.com>
20
8a5dcf53
AM
21 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
22 indirect symbols.
687be931
IS
23
242012-01-13 Iain Sandoe <idsandoe@googlemail.com>
25
26 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
bb76d940
IS
27 position from here... to (bfd_mach_o_build_seg_command): Here.
28
50d10658
IS
292012-01-12 Iain Sandoe <idsandoe@googlemail.com>
30
31 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
32 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
33 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
34 file. (bfd_mach_o_section): Add indirect_syms field.
35
e5081f2f
IS
362012-01-11 Iain Sandoe <idsandoe@googlemail.com>
37
38 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
39 vmsize from filesize. Don't compute offsets or file sizes for
40 zerofill sections.
41
bbd56171
IS
422012-01-11 Iain Sandoe <idsandoe@googlemail.com>
43
44 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
45 command type independent.
46
794e51c0
AM
472012-01-11 Alan Modra <amodra@gmail.com>
48
49 * elf64-ppc.c: Define more insns used in plt call stubs.
50 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
51 (ppc64_elf_relocate_section): Likewise.
52 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
53 (struct ppc_link_hash_table): Increase size of stub_count array.
54 Add plt_stub_align and plt_thread_safe.
55 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
56 (plt_stub_size, plt_stub_pad): New functions.
57 (build_plt_stub): Emit barriers for power7 thread safety. Don't
58 emit needless save of r2.
59 (build_tls_get_addr_stub): Adjust params.
60 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
61 plt stubs. Adjust build_*plt_stub calls.
62 (ppc_size_one_stub): Similarly.
63 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
64 params. Choose default for plt_thread_safe based on existence of
65 calls to thread creation functions. Modify plt_call to
66 plt_call_r2save when no tocsave reloc found. Align tail of stub
67 sections.
68 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
69 output of stub statistics.
70 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
71 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
72
df4f9443
L
732012-01-10 H.J. Lu <hongjiu.lu@intel.com>
74
75 PR ld/13581
76 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
77 check on R_X86_64_PCXX.
78
2a65a88e
TG
792012-01-10 Tristan Gingold <gingold@adacore.com>
80
81 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
82 warning.
83
660722b0
TG
842012-01-10 Tristan Gingold <gingold@adacore.com>
85
86 * bfdio.c (bfd_tell): Handle nested archives.
87 (bfd_seek): Ditto.
88 * cache.c (bfd_cache_lookup_worker): Ditto.
89 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
90 nested archives.
91 (bfd_generic_openr_next_archived_file): Likewise.
92
b22161d6
IS
932012-01-09 Iain Sandoe <idsandoe@googlemail.com>
94
95 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
96 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
97 (bfd_mach_o_primary_symbol_sort_key): Likewise.
98 (bfd_mach_o_cf_symbols): Likewise.
99 (bfd_mach_o_sort_symbol_table): Remove.
100 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
101 for indirect and dysymtab counts. Do the symbol sorting here.
102 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
103 Make the indirect symbols a TODO.
104 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
105 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
106 a non-zero value.
107 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
108 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
109 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
110 (IS_MACHO_INDIRECT): Remove.
111 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
112
28a1b4f8
NC
1132012-01-06 Nick Clifton <nickc@redhat.com>
114
115 PR binutils/13121
116 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
117 'flaginfo' to avoid conflicts with AIX system headers.
118
36f0a48f
TG
1192012-01-06 Tristan Gingold <gingold@adacore.com>
120
121 * bfdio.c (bfd_bread): Use arelt_size macro.
122
76d4c1cb
TG
1232012-01-06 Tristan Gingold <gingold@adacore.com>
124
125 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
126
a1c7aafb
NC
1272012-01-05 Nick Clifton <nickc@redhat.com>
128
129 PR ld/12161
130 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
131 necessary.
132
e85c6a70
JK
1332012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
134
135 Fix zero registers core files when built by gcc-4.7.
136 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
137 size. Call elfcore_write_note for the local variables. Remove the
138 final elfcore_write_note call. Add NOTREACHED comments.
139
15bbba8d
TG
1402012-01-04 Tristan Gingold <gingold@adacore.com>
141
142 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
143 (bfd_mach_o_generic_stat_arch_elt): Adjust.
144
a4e241ca
TG
1452012-01-04 Tristan Gingold <gingold@adacore.com>
146
147 * mach-o.c (bfd_mach_o_fat_member_init): New function.
148 (bfd_mach_o_openr_next_archived_file): Reindent.
149 Adjust to call bfd_mach_o_fat_member_init.
150 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
151
71141310
TG
1522012-01-04 Tristan Gingold <gingold@adacore.com>
153
154 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
155 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
156 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
157 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
158 BFD_RELOC_MACH_O_X86_64_BRANCH32,
159 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
160 BFD_RELOC_MACH_O_X86_64_GOT.
161
9f4a5bd1
TG
1622012-01-04 Tristan Gingold <gingold@adacore.com>
163
164 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
165 (bfd_mach_o_load_command): Add fvmlib field.
166
167 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
168 (bfd_mach_o_read_command): Handle fvmlib.
169
0b2de107
TG
1702012-01-04 Tristan Gingold <gingold@adacore.com>
171
172 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
173 Decode msubtype for ARM.
174
aeefa1c9
TG
1752012-01-04 Tristan Gingold <gingold@adacore.com>
176
177 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
178
fc55a902
TG
1792012-01-04 Tristan Gingold <gingold@adacore.com>
180
181 * mach-o.h: Reindent header.
182 (bfd_mach_o_encryption_info_command): New structure.
183 (bfd_mach_o_load_command): Add encryption_info field.
184
185 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
186 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
187 (bfd_mach_o_read_command): Adjust error message.
188
2ca7691a
TG
1892012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
190
191 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
192 which reads DWARF2 and stores in stash from find_line.
193 (find_line) Call _bfd_dwarf2_slurp_debug_info.
194 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
195 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
196 * mach-o.c (dsym_subdir): The name of subdir where debug
197 information may be stored.
198 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
199 type is UUID.
200 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
201 corresponding to the executable.
202 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
203 specified binary file.
204 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
205 the original BFD.
206 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
207 executables, dylibs, and bundles.
208 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
209 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
210
68588f95
IS
2112012-01-03 Iain Sandoe <idsandoe@googlemail.com>
212
213 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
214 for stabd symbols.
215 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
216 (bfd_mach_o_cf_symbols): Likewise.
217
f2b324f1
IS
2182012-01-03 Iain Sandoe <idsandoe@googlemail.com>
219
220 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
221
7f307238
IS
2222012-01-03 Iain Sandoe <idsandoe@googlemail.com>
223
224 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
225 as the value of an indirect symbol. Keep the string table index in
226 non-indirect syms for reference.
227 (bfd_mach_o_write_dysymtab): New.
228 (bfd_mach_o_primary_symbol_sort_key): New.
229 (bfd_mach_o_cf_symbols): New.
230 (bfd_mach_o_sort_symbol_table): New.
231 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
232 If we are emitting a dysymtab, process indirect symbols and count the
233 number of each other kind.
234 (bfd_mach_o_mangle_sections): New.
235 (bfd_mach_o_write_contents): Split out some pre-requisite code into
236 the command builder. Write dysymtab if the command is present.
237 (bfd_mach_o_count_sections_for_seg): New.
238 (bfd_mach_o_build_seg_command): New.
239 (bfd_mach_o_build_dysymtab_command): New.
240 (bfd_mach_o_build_commands): Reorganize to support the fact that some
241 commands are optional and should not be emitted if there are no
242 sections or symbols.
243 (bfd_mach_o_set_section_contents): Amend comment.
23e1d329 244 * mach-o.h: Amend and add to comments.
7f307238
IS
245 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
246 pointer to the indirects, when present.
247 (bfd_mach_o_should_emit_dysymtab): New macro.
248 (IS_MACHO_INDIRECT): Likewise.
249
23e1d329 250For older changes see ChangeLog-2011
56882138
AM
251\f
252Local Variables:
253mode: change-log
254left-margin: 8
255fill-column: 74
256version-control: never
257End:
This page took 0.790988 seconds and 4 git commands to generate.