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