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