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