2012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
2
3 PR bfd/13410
4 * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the
5 condition that qualifies the candidates for relaxation.
6
7 2012-02-02 Tristan Gingold <gingold@adacore.com>
8
9 * bfdio.c (real_fopen): Remove unused vms_modes variable.
10
11 2012-02-02 Tristan Gingold <gingold@adacore.com>
12
13 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
14 variable warning.
15
16 2012-02-02 Tristan Gingold <gingold@adacore.com>
17
18 * archive.c (bfd_slurp_armap): Fix thinko in cast.
19
20 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
21
22 PR ld/13616
23 * archures.c (bfd_arch_info): Add fill.
24 (bfd_default_arch_struct): Add bfd_arch_default_fill.
25 (bfd_arch_default_fill): New.
26
27 * configure.in: Set bfd version to 2.22.52.
28 * configure: Regenerated.
29
30 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
31 initializer.
32 * cpu-arc.c: Likewise.
33 * cpu-arm.c: Likewise.
34 * cpu-avr.c: Likewise.
35 * cpu-bfin.c: Likewise.
36 * cpu-cr16.c: Likewise.
37 * cpu-cr16c.c: Likewise.
38 * cpu-cris.c: Likewise.
39 * cpu-crx.c: Likewise.
40 * cpu-d10v.c: Likewise.
41 * cpu-d30v.c: Likewise.
42 * cpu-dlx.c: Likewise.
43 * cpu-epiphany.c: Likewise.
44 * cpu-fr30.c: Likewise.
45 * cpu-frv.c: Likewise.
46 * cpu-h8300.c: Likewise.
47 * cpu-h8500.c: Likewise.
48 * cpu-hppa.c: Likewise.
49 * cpu-i370.c: Likewise.
50 * cpu-i860.c: Likewise.
51 * cpu-i960.c: Likewise.
52 * cpu-ia64.c: Likewise.
53 * cpu-ip2k.c: Likewise.
54 * cpu-iq2000.c: Likewise.
55 * cpu-lm32.c: Likewise.
56 * cpu-m10200.c: Likewise.
57 * cpu-m10300.c: Likewise.
58 * cpu-m32c.c: Likewise.
59 * cpu-m32r.c: Likewise.
60 * cpu-m68hc11.c: Likewise.
61 * cpu-m68hc12.c: Likewise.
62 * cpu-m68k.c: Likewise.
63 * cpu-m88k.c: Likewise.
64 * cpu-mcore.c: Likewise.
65 * cpu-mep.c: Likewise.
66 * cpu-microblaze.c: Likewise.
67 * cpu-mips.c: Likewise.
68 * cpu-mmix.c: Likewise.
69 * cpu-moxie.c: Likewise.
70 * cpu-msp430.c: Likewise.
71 * cpu-mt.c: Likewise.
72 * cpu-ns32k.c: Likewise.
73 * cpu-openrisc.c: Likewise.
74 * cpu-or32.c: Likewise.
75 * cpu-pdp11.c: Likewise.
76 * cpu-pj.c: Likewise.
77 * cpu-plugin.c: Likewise.
78 * cpu-powerpc.c: Likewise.
79 * cpu-rl78.c: Likewise.
80 * cpu-rs6000.c: Likewise.
81 * cpu-rx.c: Likewise.
82 * cpu-s390.c: Likewise.
83 * cpu-score.c: Likewise.
84 * cpu-sh.c: Likewise.
85 * cpu-sparc.c: Likewise.
86 * cpu-spu.c: Likewise.
87 * cpu-tic30.c: Likewise.
88 * cpu-tic4x.c: Likewise.
89 * cpu-tic54x.c: Likewise.
90 * cpu-tic6x.c: Likewise.
91 * cpu-tic80.c: Likewise.
92 * cpu-tilegx.c: Likewise.
93 * cpu-tilepro.c: Likewise.
94 * cpu-v850.c: Likewise.
95 * cpu-vax.c: Likewise.
96 * cpu-w65.c: Likewise.
97 * cpu-we32k.c: Likewise.
98 * cpu-xc16x.c: Likewise.
99 * cpu-xstormy16.c: Likewise.
100 * cpu-xtensa.c: Likewise.
101 * cpu-z80.c: Likewise.
102 * cpu-z8k.c: Likewise.
103
104 * cpu-i386.c: Include "libiberty.h".
105 (bfd_arch_i386_fill): New.
106 Add bfd_arch_i386_fill to bfd_arch_info initializer.
107
108 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
109 * cpu-l1om.c: Likewise.
110
111 * linker.c (default_data_link_order): Call abfd->arch_info->fill
112 if fill size is 0.
113
114 * bfd-in2.h: Regenerated.
115
116 2012-01-27 Michael Eager <eager@eagercon.com>
117
118 * bfd/elf32-microblaze.c (create_got_section):
119 Reuse existing .rela.got section.
120
121 2012-01-23 Alan Modra <amodra@gmail.com>
122
123 * elf-bfd.h: Formatting.
124 (struct elf_backend_data): Add "maybe_function_sym".
125 (_bfd_elf_maybe_function_sym): Declare.
126 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
127 (elfNN_bed): Init new field.
128 * elf.c (elf_find_function): Use maybe_function_sym.
129 (_bfd_elf_maybe_function_sym): New function.
130 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
131 (ppc64_elf_maybe_function_sym): New function.
132
133 2012-01-20 Francois Gouget <fgouget@codeweavers.com>
134
135 PR binutils/13534
136 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
137 pad the size field in an archive header.
138 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
139 function for the archive size field.
140 (bfd_generic_openr_next_archived_file): Likewise.
141 (do_slurp_coff_armap): Likewise.
142 (_bfd_write_archive_contents): Likewise.
143 (_bfd_bsd44_write_ar_hdr): Use the new function.
144 (bfd_ar_hdr_from_filesystem): Likewise.
145 (_bfd_write_archive_contents): Likewise.
146 (bsd_write_armap): Likewise.
147 (coff_write_armap): Likewise.
148 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
149 * bfdio.c (bfd_bread): Use correct type for archive element
150 sizes.
151 * ar.c (open_inarch): Likewise.
152 (extract_file): Likewise.
153 * libbfd-in.h (struct areltdata): Use correct types for
154 parsed_size and extra_size fields.
155 Prototype _bfd_ar_sizepad function.
156 * libbfd.h: Regenerate.
157
158 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
159
160 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
161 Return NULL if core file generation is unsupported.
162 (elfcore_write_prstatus): Likewise.
163 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
164 (elf_backend_write_core_note): Define.
165
166 2012-01-19 Tristan Gingold <gingold@adacore.com>
167
168 * pef.c: Add a comment.
169 * xsym.c: Likewise.
170
171 2012-01-17 Alan Modra <amodra@gmail.com>
172
173 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
174 trailing garbage in the note.
175 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
176
177 2012-01-16 Daniel Green <venix1@gmail.com>
178
179 PR ld/13491
180 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
181 h->root.type not h->type.
182 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
183
184 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
185
186 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
187 indirect symbols.
188
189 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
190
191 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
192 position from here... to (bfd_mach_o_build_seg_command): Here.
193
194 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
195
196 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
197 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
198 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
199 file. (bfd_mach_o_section): Add indirect_syms field.
200
201 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
202
203 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
204 vmsize from filesize. Don't compute offsets or file sizes for
205 zerofill sections.
206
207 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
208
209 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
210 command type independent.
211
212 2012-01-11 Alan Modra <amodra@gmail.com>
213
214 * elf64-ppc.c: Define more insns used in plt call stubs.
215 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
216 (ppc64_elf_relocate_section): Likewise.
217 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
218 (struct ppc_link_hash_table): Increase size of stub_count array.
219 Add plt_stub_align and plt_thread_safe.
220 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
221 (plt_stub_size, plt_stub_pad): New functions.
222 (build_plt_stub): Emit barriers for power7 thread safety. Don't
223 emit needless save of r2.
224 (build_tls_get_addr_stub): Adjust params.
225 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
226 plt stubs. Adjust build_*plt_stub calls.
227 (ppc_size_one_stub): Similarly.
228 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
229 params. Choose default for plt_thread_safe based on existence of
230 calls to thread creation functions. Modify plt_call to
231 plt_call_r2save when no tocsave reloc found. Align tail of stub
232 sections.
233 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
234 output of stub statistics.
235 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
236 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
237
238 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
239
240 PR ld/13581
241 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
242 check on R_X86_64_PCXX.
243
244 2012-01-10 Tristan Gingold <gingold@adacore.com>
245
246 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
247 warning.
248
249 2012-01-10 Tristan Gingold <gingold@adacore.com>
250
251 * bfdio.c (bfd_tell): Handle nested archives.
252 (bfd_seek): Ditto.
253 * cache.c (bfd_cache_lookup_worker): Ditto.
254 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
255 nested archives.
256 (bfd_generic_openr_next_archived_file): Likewise.
257
258 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
259
260 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
261 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
262 (bfd_mach_o_primary_symbol_sort_key): Likewise.
263 (bfd_mach_o_cf_symbols): Likewise.
264 (bfd_mach_o_sort_symbol_table): Remove.
265 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
266 for indirect and dysymtab counts. Do the symbol sorting here.
267 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
268 Make the indirect symbols a TODO.
269 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
270 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
271 a non-zero value.
272 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
273 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
274 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
275 (IS_MACHO_INDIRECT): Remove.
276 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
277
278 2012-01-06 Nick Clifton <nickc@redhat.com>
279
280 PR binutils/13121
281 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
282 'flaginfo' to avoid conflicts with AIX system headers.
283
284 2012-01-06 Tristan Gingold <gingold@adacore.com>
285
286 * bfdio.c (bfd_bread): Use arelt_size macro.
287
288 2012-01-06 Tristan Gingold <gingold@adacore.com>
289
290 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
291
292 2012-01-05 Nick Clifton <nickc@redhat.com>
293
294 PR ld/12161
295 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
296 necessary.
297
298 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
299
300 Fix zero registers core files when built by gcc-4.7.
301 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
302 size. Call elfcore_write_note for the local variables. Remove the
303 final elfcore_write_note call. Add NOTREACHED comments.
304
305 2012-01-04 Tristan Gingold <gingold@adacore.com>
306
307 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
308 (bfd_mach_o_generic_stat_arch_elt): Adjust.
309
310 2012-01-04 Tristan Gingold <gingold@adacore.com>
311
312 * mach-o.c (bfd_mach_o_fat_member_init): New function.
313 (bfd_mach_o_openr_next_archived_file): Reindent.
314 Adjust to call bfd_mach_o_fat_member_init.
315 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
316
317 2012-01-04 Tristan Gingold <gingold@adacore.com>
318
319 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
320 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
321 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
322 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
323 BFD_RELOC_MACH_O_X86_64_BRANCH32,
324 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
325 BFD_RELOC_MACH_O_X86_64_GOT.
326
327 2012-01-04 Tristan Gingold <gingold@adacore.com>
328
329 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
330 (bfd_mach_o_load_command): Add fvmlib field.
331
332 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
333 (bfd_mach_o_read_command): Handle fvmlib.
334
335 2012-01-04 Tristan Gingold <gingold@adacore.com>
336
337 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
338 Decode msubtype for ARM.
339
340 2012-01-04 Tristan Gingold <gingold@adacore.com>
341
342 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
343
344 2012-01-04 Tristan Gingold <gingold@adacore.com>
345
346 * mach-o.h: Reindent header.
347 (bfd_mach_o_encryption_info_command): New structure.
348 (bfd_mach_o_load_command): Add encryption_info field.
349
350 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
351 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
352 (bfd_mach_o_read_command): Adjust error message.
353
354 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
355
356 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
357 which reads DWARF2 and stores in stash from find_line.
358 (find_line) Call _bfd_dwarf2_slurp_debug_info.
359 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
360 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
361 * mach-o.c (dsym_subdir): The name of subdir where debug
362 information may be stored.
363 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
364 type is UUID.
365 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
366 corresponding to the executable.
367 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
368 specified binary file.
369 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
370 the original BFD.
371 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
372 executables, dylibs, and bundles.
373 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
374 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
375
376 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
377
378 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
379 for stabd symbols.
380 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
381 (bfd_mach_o_cf_symbols): Likewise.
382
383 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
384
385 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
386
387 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
388
389 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
390 as the value of an indirect symbol. Keep the string table index in
391 non-indirect syms for reference.
392 (bfd_mach_o_write_dysymtab): New.
393 (bfd_mach_o_primary_symbol_sort_key): New.
394 (bfd_mach_o_cf_symbols): New.
395 (bfd_mach_o_sort_symbol_table): New.
396 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
397 If we are emitting a dysymtab, process indirect symbols and count the
398 number of each other kind.
399 (bfd_mach_o_mangle_sections): New.
400 (bfd_mach_o_write_contents): Split out some pre-requisite code into
401 the command builder. Write dysymtab if the command is present.
402 (bfd_mach_o_count_sections_for_seg): New.
403 (bfd_mach_o_build_seg_command): New.
404 (bfd_mach_o_build_dysymtab_command): New.
405 (bfd_mach_o_build_commands): Reorganize to support the fact that some
406 commands are optional and should not be emitted if there are no
407 sections or symbols.
408 (bfd_mach_o_set_section_contents): Amend comment.
409 * mach-o.h: Amend and add to comments.
410 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
411 pointer to the indirects, when present.
412 (bfd_mach_o_should_emit_dysymtab): New macro.
413 (IS_MACHO_INDIRECT): Likewise.
414
415 For older changes see ChangeLog-2011
416 \f
417 Local Variables:
418 mode: change-log
419 left-margin: 8
420 fill-column: 74
421 version-control: never
422 End:
This page took 0.039002 seconds and 5 git commands to generate.