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