* elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2013-04-29 Nick Clifton <nickc@redhat.com>
2
3 * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
4 fragmented .debug_line sections associated with unmarked code
5 sections.
6
7 2013-04-29 Will Newton <will.newton@linaro.org>
8
9 * elf32-arm.c (elf32_arm_populate_plt_entry): Call
10 elf32_arm_add_dynreloc when emitting R_ARM_IRELATIVE relocs.
11
12 2013-04-29 Will Newton <will.newton@linaro.org>
13
14 * elf64-aarch64.c (elf64_aarch64_check_relocs): Move relocation
15 error check up and add error message.
16
17 2013-04-26 Will Newton <will.newton@linaro.org>
18
19 * elf64-aarch64.c (elf64_aarch64_check_relocs): Remove dead code.
20
21 2013-04-25 Alan Modra <amodra@gmail.com>
22
23 * config.bfd: Add powerpc64le-linux.
24
25 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
26
27 * config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for
28 x86_64-*-elf*.
29
30 2013-04-24 Roland McGrath <mcgrathr@google.com>
31
32 * elf32-arm.c (elf32_arm_allocate_plt_entry): If HTAB->nacl_p,
33 allocate space for PLT header even if IS_IPLT_ENTRY.
34 (arm_nacl_put_plt0): New function, broken out of ...
35 (elf32_arm_finish_dynamic_sections): ... here. Call it.
36 If HTAB->nacl_p, set up the PLT header in .iplt too.
37 (elf32_arm_output_arch_local_syms): If HTAB->nacl_p, write
38 a mapping symbol for the start of .iplt too.
39
40 2013-04-19 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
41
42 * ecoff.c (_bfd_ecoff_sizeof_headers): Cast the return value of
43 BFD_ALIGN to int.
44 * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Remove unused
45 variables.
46 * elf32-v850.c (v850_elf_relax_section): Redefine the type of 'i'
47 to bfd_vma.
48 * vms-alpha.c (evax_bfd_print_etir): Initialize sec_len.
49
50 2013-04-22 Alan Modra <amodra@gmail.com>
51
52 PR ld/15382
53 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Don't multiply
54 sh_size or reloc_count adjustment by count.
55
56 2013-04-22 Alan Modra <amodra@gmail.com>
57
58 * elf64-ppc.c (ppc64_elf_check_relocs): Don't call
59 create_linkage_sections here..
60 (ppc64_elf_init_stub_bfd): ..do so here. Return status.
61 (create_linkage_sections): Move earlier in file.
62 (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test.
63 * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto.
64
65 2013-04-19 Nick Clifton <nickc@redhat.com>
66
67 PR binutils/15356
68 * compress.c (decompress_contents): Always call inflateEnd, even
69 when another inflation operation fails.
70
71 2013-04-17 H.J. Lu <hongjiu.lu@intel.com>
72
73 * elf-ifunc.c: Update copyright year.
74
75 2013-04-17 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
76
77 * coffcode.h: Added a cast to void when a bfd_set_section_*()
78 macro's return value is ignored.
79 * elf32-hppa.c: Likewise.
80 * elf32-tic6x.c: Likewise.
81 * mach-o.c: Likewise.
82 * mmo.c: Likewise.
83 * opncls.c: Likewise.
84 * peicode.h: Likewise.
85 * elf32-m32r.c: Check return value of bfd_set_section_*().
86 * elfnn-ia64.c: Likewise.
87 * elfxx-mips.c: Likewise.
88 * vms-alpha.c: Likewise.
89
90 2013-04-15 H.J. Lu <hongjiu.lu@intel.com>
91
92 PR ld/15371
93 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Check
94 regular reference without non-GOT reference when building
95 shared library.
96
97 2013-04-15 Alan Modra <amodra@gmail.com>
98
99 * archive.c (_bfd_archive_close_and_cleanup): Clear parent
100 cache slot for archives.
101
102 2013-04-14 Hans-Peter Nilsson <hp@bitrange.com>
103
104 * mmo.c (mmo_write_chunk): Break out abfd->tdata.mmo_data to new
105 local variable mmop.
106
107 2013-04-09 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
108
109 PR ld/12494
110 * bfd/elf32-avr.c: Consider all sections to determine if linker
111 relaxation can safely delete a ret after a call/jmp
112
113 2013-04-09 Mingjie Xing <mingjie.xing@gmail.com>
114
115 * bfd.c (typedef bfd, Error reporting, Miscellaneous): Add
116 INODEs.
117
118 2013-04-08 Tom Tromey <tromey@redhat.com>
119
120 * som.c (bfd_section_from_som_symbol): No longer static.
121 * som.h (bfd_section_from_som_symbol): Declare.
122
123 2013-04-06 Alan Modra <amodra@gmail.com>
124
125 * elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
126 * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.
127
128 2013-04-05 Nick Clifton <nickc@redhat.com>
129
130 * elflink.c (elf_link_add_object_symbols): Revert accidental commit.
131
132 2013-04-04 Alan Modra <amodra@gmail.com>
133
134 * bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.
135 * bfd-in2.h: Regenerate.
136 * elflink.c (elf_link_add_object_symbols): Use new error.
137
138 2013-04-03 Nick Clifton <nickc@redhat.com>
139
140 * elf32-v850.c (v850_elf_is_target_special_symbol): New function.
141 (bfd_elf32_bfd_is_target_special_symbol): Define.
142
143 2013-04-03 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
144
145 * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
146 elf64_aarch64_locals to get local GOT reference counts.
147
148 2013-04-02 DJ Delorie <dj@redhat.com>
149
150 * elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
151 (rl78_elf_relax_section): Only fetch the next reloc if there is
152 one expected.
153
154 2013-03-30 Alan Modra <amodra@gmail.com>
155
156 PR ld/15323
157 * elf-m10300.c (mn10300_elf_check_relocs): Set non_ir_ref for
158 global symbols referenced by relocs.
159 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
160 * elf32-bfin.c (bfin_check_relocs): Likewise.
161 * elf32-cr16.c (cr16_elf_check_relocs): Likewise.
162 * elf32-cris.c (cris_elf_check_relocs): Likewise.
163 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
164 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
165 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
166 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
167 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
168 * elf32-i370.c (i370_elf_check_relocs): Likewise.
169 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
170 * elf32-lm32.c (lm32_elf_check_relocs): Likewise.
171 * elf32-m32c.c (m32c_elf_check_relocs): Likewise.
172 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
173 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
174 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
175 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
176 * elf32-metag.c (elf_metag_check_relocs): Likewise.
177 * elf32-microblaze.c (microblaze_elf_check_relocs): Likewise.
178 * elf32-moxie.c (moxie_elf_check_relocs): Likewise.
179 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
180 * elf32-mt.c (mt_elf_check_relocs): Likewise.
181 * elf32-nios2.c (nios2_elf32_check_relocs): Likewise.
182 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
183 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
184 * elf32-rl78.c (rl78_elf_check_relocs): Likewise.
185 * elf32-s390.c (elf_s390_check_relocs): Likewise.
186 * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise.
187 * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise.
188 * elf32-sh.c (sh_elf_check_relocs): Likewise.
189 * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise.
190 * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise.
191 * elf32-v850.c (v850_elf_check_relocs): Likewise.
192 * elf32-vax.c (elf_vax_check_relocs): Likewise.
193 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
194 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
195 * elf64-aarch64.c (elf64_aarch64_check_relocs): Likewise.
196 * elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
197 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
198 * elf64-ia64-vms.c (elf64_ia64_check_relocs): Likewise.
199 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
200 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
201 * elf64-s390.c (elf_s390_check_relocs): Likewise.
202 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
203 * elfnn-ia64.c (elfNN_ia64_check_relocs): Likewise.
204 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
205 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
206 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. Don't
207 test indirect/warning links for NULL.
208
209 2013-03-29 H.J. Lu <hongjiu.lu@intel.com>
210
211 PR ld/15323
212 * elf32-i386.c (elf_i386_check_relocs): Set non_ir_ref if a
213 symbol is referenced by a non-shared object.
214 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
215
216 2013-03-28 Joe Seymour <jseymour@codesourcery.com>
217
218 * elf32-sh.c (sh_elf_relocate_section): Suppress warnings for
219 R_SH_REL32 relocations against undefined weak symbols.
220
221 2013-03-28 Alan Modra <amodra@gmail.com>
222
223 * elf64-ppc.c (struct ppc_dyn_relocs): New.
224 (ppc64_elf_check_relocs): Separate dynrel counts for local syms
225 into ifunc and non-ifunc.
226 (dec_dynrel_count): Pass in sym rather than sym_sec. Handle
227 separate ifunc/non-ifunc dynrel counts.
228 (allocate_got): Always use reliplt for ifunc.
229 (allocate_dynrelocs): Likewise.
230 (ppc64_elf_size_dynamic_sections): Likewise.
231 (ppc64_elf_layout_multitoc): Likewise.
232 (ppc64_elf_relocate_section): Likewise.
233
234 2013-03-28 Alan Modra <amodra@gmail.com>
235
236 * elf32-ppc.c (struct ppc_dyn_relocs): New.
237 (ppc_elf_check_relocs): Separate dynrel counts for local syms
238 into ifunc and non-ifunc.
239 (allocate_dynrelocs): Always put ifunc relocs into reliplt.
240 (ppc_elf_size_dynamic_sections): Likewise.
241 (ppc_elf_relocate_section): Likewise.
242
243 2013-03-28 Alan Modra <amodra@gmail.com>
244
245 * elf-bfd.h (enum elf_reloc_type_class): Add reloc_class_ifunc.
246 (struct elf_backend_data <elf_backed_reloc_type_class>): Add
247 bfd_link_info* and asection* params.
248 (_bfd_elf_reloc_type_class): Likewise.
249 * elf.c (_bfd_elf_reloc_type_class): Likewise.
250 * elflink.c (elf_link_sort_cmp2): Sort first on reloc class.
251 (elf_link_sort_relocs): Update elf_backed_reloc_type_class call.
252 * elf32-ppc.c (ppc_elf_reloc_type_class): Return reloc_class_ifunc
253 for any reliplt reloc. Don't return reloc_class_plt for
254 R_PPC_REL24 and R_PPC_ADDR24.
255 * elf64-ppc.c (allocate_got): Formatting.
256 (ppc64_elf_reloc_type_class): Return reloc_class_ifunc for any
257 reliplt reloc.
258 * elf-m10300.c, * elf32-arm.c, * elf32-bfin.c, * elf32-cr16.c,
259 * elf32-cris.c, * elf32-hppa.c, * elf32-i386.c, * elf32-lm32.c,
260 * elf32-m32r.c, * elf32-m68k.c, * elf32-metag.c, * elf32-nios2.c,
261 * elf32-s390.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilepro.c,
262 * elf32-vax.c, * elf32-xtensa.c, * elf64-aarch64.c, * elf64-alpha.c,
263 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-s390.c, * elf64-sparc.c,
264 * elf64-x86-64.c, * elfnn-ia64.c, * elfxx-tilegx.c, * elfxx-tilegx.h:
265 Add extra params to the various reloc_type_class functions.
266
267 2013-03-27 Alan Modra <amodra@gmail.com>
268
269 * elf32-ppc.c (ppc_elf_check_relocs): Set PLT_IFUNC in local got
270 masks for all local ifunc syms.
271 (allocate_dynrelocs): Don't use htab->relgot for ifunc.
272 (ppc_elf_size_dynamic_sections): Likewise.
273 (ppc_elf_relocate_section): Likewise.
274
275 2013-03-27 Will Newton <will.newton@linaro.org>
276
277 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
278 dynamic reloc for symbols with dynindx == -1.
279 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
280 dynamic reloc for symbols with dynindx == -1.
281
282 2013-03-27 Will Newton <will.newton@linaro.org>
283
284 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
285 dynamic reloc for non-default visibility undefined weaks.
286 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
287 dynamic reloc for non-default visibility undefined weaks.
288
289 2013-03-26 Alan Modra <amodra@gmail.com>
290
291 * elflink.c (_bfd_elf_add_default_symbol): Preserve section
292 over _bfd_elf_merge_symbol calls.
293
294 2013-03-26 Alan Modra <amodra@gmail.com>
295
296 * elflink.c (elf_link_add_object_symbols): Add assertion for
297 common override alignment check code. Formatting.
298
299 2013-03-25 Alan Modra <amodra@gmail.com>
300
301 * elflink.c (_bfd_elf_merge_symbol): Set old_alignment for
302 usual common symbols as well as for dynamic. Add poldbfd param.
303 Save old bfd. Adjust callers.
304 (_bfd_elf_add_default_symbol): Add poldbfd param. Pass "section"
305 and "value" by value, not pointer. Adjust caller.
306 (elf_link_add_object_symbols): Combine undef_bfd and old_bfd vars.
307 Delete code to set same. Use old_bfd and old_alignment from
308 _bfd_elf_merge_symbol instead. Add default symbol before
309 alignment and size checks. Wrap overlong lines.
310
311 2013-03-25 Alan Modra <amodra@gmail.com>
312
313 * elflink.c (_bfd_elf_add_default_symbol): Delete "override" param.
314 (elf_link_add_object_symbols): Don't call _bfd_elf_add_default_symbol
315 when override is true.
316
317 2013-03-25 Alan Modra <amodra@gmail.com>
318
319 * elflink.c (_bfd_elf_merge_symbol): Use local var holding value
320 of *sym_hash.
321
322 2013-03-25 Alan Modra <amodra@gmail.com>
323
324 * elflink.c (_bfd_elf_merge_symbol): Don't discard TLS symbols here.
325 Wrap long lines.
326 (elf_link_add_object_symbols): Discard TLS symbols for --just-syms
327 early in symbol loop.
328
329 2013-03-25 Alan Modra <amodra@gmail.com>
330
331 * elf-bfd.h (struct elf_backend_data <merge_symbol>): Update proto.
332 (_bfd_elf_init_reloc_shdr): Delete.
333 * elf.c (_bfd_elf_init_reloc_shdr): Make static.
334 * elf64-x86-64.c (elf_x86_64_merge_symbol): Trim parameters to
335 just what is needed.
336 * elflink.c (_bfd_elf_merge_symbol): Update bed->merge_symbol call.
337
338 2013-03-23 Alan Modra <amodra@gmail.com>
339
340 * elf-bfd.h (_bfd_elf_merge_symbol): Delete declaration.
341 * elflink.c (_bfd_elf_merge_symbol): Make static.
342 * elf32-sh-symbian.c (sh_symbian_relocate_section): Don't call
343 _bfd_elf_merge_symbol, call _bfd_generic_link_add_one_symbol.
344
345 2013-03-23 Alan Modra <amodra@gmail.com>
346
347 PR ld/15270
348 * elflink.c (elf_link_add_object_symbols): Don't set def_regular
349 or ref_regular for BFD_PLUGIN owned syms, or have them affect
350 def_dynamic/ref_dynamic.
351 (_bfd_elf_fix_symbol_flags): Don't set def_regular for BFD_PLUGIN
352 owned syms.
353
354 2013-03-22 David S. Miller <davem@davemloft.net>
355
356 * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Set type of
357 hwcaps attribute.
358
359 2013-03-22 Achille Fouilleul <achille.fouilleul+binutils@gadz.org>
360
361 PR ld/14902
362 * elf32-h8300.c (elf32_h8_relax_delete_bytes): Fix off by one
363 errors adjusting relocs and symbols.
364
365 2013-03-21 Michael Schewe <michael.schewe@gmx.net>
366
367 * elf32-h8300 (h8_relax_section): Add new relaxation of mov
368 @(disp:32,ERx) to mov @(disp:16,ERx).
369 (R_H8_DISP32A16): New reloc.
370 Comments added and corrected.
371 * reloc.c (BFD_RELOC_H8_DISP32A16): New reloc.
372 * bfd-in2.h: Regenerate.
373 * libbfd.h: Regenerate.
374
375 2013-03-21 Kai Tietz <ktietz@redhat.com>
376
377 * coffgen.c (coff_real_object_p): Make global.
378 * peicode.h (coff_real_object_p): Add prototype.
379 (FILHDR): Defined for COFF_IMAGE_WITH_PE as
380 external_PEI_IMAGE_hdr structure.
381 (coff_swap_filehdr_in): Handle variable header-size.
382 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Just handle amount
383 of directory-entiries as specified in pe-header.
384
385 2013-03-21 Nick Clifton <nickc@redhat.com>
386
387 PR sim/15286
388 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale,
389 iWMMXt and iWMMXt2 processors from attributes.
390
391 2013-03-20 Alan Modra <amodra@gmail.com>
392
393 * elflink.c (_bfd_elf_make_dynamic_reloc_section): Override
394 sh_type according to is_rela.
395
396 2013-03-18 Alan Modra <amodra@gmail.com>
397
398 PR ld/12549
399 * elflink.c (elf_link_add_object_symbols): Exclude weak refs when
400 considering whether an --as-needed library is needed.
401
402 2013-03-14 Tom Tromey <tromey@redhat.com>
403
404 * opncls.c (bfd_get_debug_link_info): Rename from
405 get_debug_link_info. Export. Update comment.
406 (find_separate_debug_file): Update.
407 * bfd-in2.h: Rebuild.
408
409 2013-03-08 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
410
411 * elf64-aarch64.c (elf_backend_can_gc_sections): Enable gc-section
412 support.
413 (elf64_aarch64_gc_sweep_hook): Handle GOT, TLS and PLT related
414 relocs.
415
416 2013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
417
418 * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
419 * elf.c (elfcore_write_s390_tdb): New function.
420 (elfcore_write_register_note): Call it.
421 (elfcore_grok_s390_tdb): New function.
422 (elfcore_grok_note): Call it.
423
424 2013-03-08 Maciej W. Rozycki <macro@codesourcery.com>
425
426 * elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.
427
428 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
429
430 * config.bfd: Add x86_64-*-cygwin to list of supported targets.
431
432 2013-03-04 Alan Modra <amodra@gmail.com>
433
434 * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): Adjust
435 non-zero addends when relocatable, rather than addends >= 32768.
436 Always zero "addend" before applying relocation.
437
438 2013-03-04 Nick Clifton <nickc@redhat.com>
439
440 * archive64.c (bfd_elf64_archive_write_armap): Fix calculation of
441 file pointer offsets for thin archives.
442
443 2013-02-28 Nathan Sidwell <nathan@codesourcery.com>
444
445 * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't call
446 elf32_arm_allocate_dynrelocs for source reloc for non-dynamic link.
447
448 2013-02-27 DJ Delorie <dj@redhat.com>
449
450 * reloc.c (BFD_RELOC_RL78_CODE): Add.
451 * libbfd.h: Regenerate.
452 * bfd-in2.h: Regenerate.
453 * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
454 references in compuated relocs.
455
456 2013-02-26 Anthony Green <green@moxielogic.com>
457
458 * config.bfd: Extend moxie-rtems target triplet name support.
459
460 2013-02-21 H.J. Lu <hongjiu.lu@intel.com>
461
462 PR ld/15167
463 * elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set
464 unique_global only for definition.
465 * elflink.c (_bfd_elf_merge_symbol): Don't set unique_global
466 here.
467 (elf_link_add_object_symbols): Set unique_global only
468 for definition.
469
470 2013-02-21 Alan Modra <amodra@gmail.com>
471
472 * elf-bfd.h (struct elf_build_id): Extracted from..
473 (struct elf_build_id_info): ..here. Delete.
474 (struct output_elf_obj_tdata): New, extracted from..
475 (struct elf_obj_tdata): ..here. Reorganize for better packing.
476 Add "o" field.
477 (elf_program_header_size): Reference tdata->o.
478 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
479 elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec,
480 elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise.
481 * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata
482 when opening bfd in any mode that might write.
483 (_bfd_elf_write_object_contents): Use build_id field in
484 output_elf_obj_tdata.
485 (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test.
486 (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes.
487
488 2013-02-21 Alan Modra <amodra@gmail.com>
489
490 * elf-bfd.h (struct core_elf_obj_tdata): New.
491 (struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid,
492 core_program, and core_command. Add "core".
493 * elf.c (bfd_elf_mkcorefile): Allocate "core" struct.
494 Update all refs to tdata core fields.
495 * elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c,
496 * elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c,
497 * elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c,
498 * elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c,
499 * elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c,
500 * elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c,
501 * elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs
502 to tdata core fields.
503
504 2013-02-21 Alan Modra <amodra@gmail.com>
505
506 * elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map.
507 Delete num_locals and num_globals.
508 (elf_num_locals, elf_num_globals): Don't define.
509 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
510 elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define.
511 * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c,
512 * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c,
513 * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c,
514 * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata
515 accessor macros.
516 * elf.c (elf_map_symbols): Add pnum_locals param. Return
517 number of locals syms via new param.
518 (swap_out_syms): Adjust to suit elf_map_symbols change.
519
520 2013-02-19 Maciej W. Rozycki <macro@codesourcery.com>
521
522 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clear
523 STO_MICROMIPS annotation.
524
525 2013-02-19 Alan Modra <amodra@gmail.com>
526
527 * configure.in: Bump version to 2.23.52.
528 * elf-bfd.h (struct elf_build_id_info): New.
529 (struct elf_obj_tdata): Delete after_write_object_contents,
530 after_write_object_contents_info and build_id_size. Make build_id
531 a pointer to struct elf_build_id_info.
532 * elf.c (_bfd_elf_write_object_contents): Style. Update
533 after_write_ibject_contents invocation.
534 (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't
535 allow zero size notes.
536 * configure: Regenerate.
537
538 2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
539
540 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
541 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
542 (micromips_elf64_howto_table_rela): Likewise.
543 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
544 * elfn32-mips.c (elf_micromips_howto_table_rel): Add
545 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
546 (elf_micromips_howto_table_rela): Likewise.
547 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
548
549 2013-02-18 Paul Brook <paul@codesourcery.com>
550
551 * elfxx-mips.c (MICROMIPS_P): New macro.
552 (_bfd_mips_elf_symbol_processing): Use it.
553
554 2013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
555
556 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
557 comment on _PROCEDURE_LINKAGE_TABLE_ creation.
558
559 2013-02-18 Alan Modra <amodra@gmail.com>
560
561 PR ld/12549
562 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete.
563 (_bfd_elf_strtab_clear_all_refs): Declare.
564 (_bfd_elf_strtab_resize): Declare.
565 * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete.
566 (_bfd_elf_strtab_clear_all_refs): New function.
567 (_bfd_elf_strtab_resize): Likewise.
568 * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
569
570 2013-02-18 Alan Modra <amodra@gmail.com>
571
572 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,
573 local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section,
574 and elf_text_section to..
575 * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs.
576 * elf64-alpha.c (struct mips_elf_find_line): Rename to..
577 (struct alpha_elf_find_line): ..this.
578 (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
579
580 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
581
582 PR ld/15146
583 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
584 for references from the dummy bfd.
585
586 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
587
588 PR ld/15149
589 * elflink.c (elf_link_add_object_symbols): Also track weak
590 references.
591
592 2013-02-15 H.J. Lu <hongjiu.lu@intel.com>
593
594 PR binutils/15151
595 * archive.c (_bfd_find_nested_archive): Don't allow a nested
596 archive pointing to itself.
597 (_bfd_get_elt_at_filepos): Revert the last 2 changes.
598
599 2013-02-15 Nick Clifton <nickc@redhat.com>
600
601 PR binutils/15140
602 * archive.c (_bfd_get_elt_at_filepos): Prevent an infinite loop
603 accessing a corrupt nested archive.
604
605 2013-02-13 Richard Sandiford <rdsandiford@googlemail.com>
606
607 * elfxx-mips.c (mips_got_page_ref): New structure.
608 (mips_got_page_entry): Use a section rather than a (bfd, symndx)
609 pair to represent the anchor point.
610 (mips_got_info): Add a got_page_refs field.
611 (mips_elf_link_hash_table): Add a sym_cache field.
612 (mips_got_page_ref_hash, mips_got_page_ref_eq): New functions.
613 (mips_got_page_entry_hash, mips_got_page_entry_eq): Update for
614 new anchor representation.
615 (mips_elf_create_got_info): Create got_page_refs rather than
616 got_page_entries.
617 (mips_elf_record_got_page_ref): New function.
618 (mips_elf_pages_for_range): Move further down file.
619 (mips_elf_record_got_page_entry): Likewise. Take a got as argument.
620 Use a section rather than a (bfd, symndx) pair to represent the
621 anchor point.
622 (mips_elf_resolve_got_page_ref): New function.
623 (mips_elf_resolve_final_got_entries): Use it to populate
624 got_page_entries.
625 (_bfd_mips_elf_check_relocs): Call mips_elf_record_got_page_ref
626 rather than mips_elf_record_got_page_entry. Only nullify h
627 afterwards.
628 (mips_elf_lay_out_got): Call mips_elf_resolve_final_got_entries
629 earlier.
630
631 2013-02-12 Richard Sandiford <rdsandiford@googlemail.com>
632
633 * elfxx-mips.c (mips_elf_lay_out_got): Count VxWorks GOT relocs
634 in g->relocs.
635
636 2013-02-12 Alan Modra <amodra@gmail.com>
637
638 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Provide
639 suitable definition when using generic linker hash table.
640
641 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
642
643 * elfxx-mips.c (mips_elf_count_got_entries): Delete.
644 (mips_elf_check_recreate_got, mips_elf_recreate_got): Take a
645 mips_elf_traverse_got_arg. Count GOT entries.
646 (mips_elf_resolve_final_got_entries): Take the bfd_link_info
647 as argument. Update after above changes.
648 (mips_elf_merge_got, mips_elf_lay_out_got): Don't call
649 mips_elf_count_got_entries. Update the calls to
650 mips_elf_resolve_final_got_entries.
651
652 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
653
654 * elfxx-mips.c (mips_got_tls_type): New enum.
655 (mips_got_entry): Add tls_initialized.
656 (mips_elf_got_entry_hash, mips_elf_got_entry_eq, mips_tls_got_relocs)
657 (mips_elf_count_got_entry, mips_elf_initialize_tls_index): Remove
658 GOT_TLS_TYPE masks.
659 (mips_elf_reloc_tls_type, mips_tls_got_entries)
660 (mips_elf_record_global_got_symbol, mips_elf_initialize_tls_index)
661 (_bfd_mips_elf_finish_dynamic_symbol): Use GOT_TLS_NONE rather
662 than GOT_NORMAL.
663 (mips_elf_initialize_tls_slots): Replace got_offset and tls_type_p
664 arguments with a GOT entry. Remove GOT_TLS_TYPE masks. Use
665 tls_initialized rather than GOT_TLS_DONE.
666 (mips_tls_got_index): Delete.
667 (mips_elf_local_got_index, mips_elf_global_got_index): Use
668 mips_elf_initialize_tls_slots rather than mips_tls_got_index.
669 (mips_elf_record_got_entry): Initialize tls_initialized.
670
671 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
672
673 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
674 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
675 tls_ie_got_offset and tls_gd_got_offset.
676 (mips_elf_link_hash_newfunc): Remove initialization.
677 (mips_elf_create_got_info): Likewise.
678 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
679 (mips_tls_single_got_index): Delete.
680 (mips_elf_local_got_index): Always use the GOT entry to track
681 GOT indices.
682 (mips_elf_global_got_index): Likewise.
683 (mips_elf_create_local_got_entry): Assert that TLS entries have
684 already been allocated.
685 (mips_elf_record_global_got_symbol): Don't initialize
686 tls_ie_type or tls_gd_type.
687 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
688 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
689 entry.
690 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
691 the GOT entries.
692 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
693 have been allocated.
694 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
695 tls_ie_type and tls_gd_type.
696
697 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
698
699 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
700 aliasing violation. Check for htab allocation failures.
701
702 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
703
704 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
705 split out from...
706 (mips_elf_global_got_index): ...here. Reorder arguments so that
707 the output bfd and info come first.
708 (mips_elf_calculate_relocation): Update the call to
709 mips_elf_global_got_index accordingly.
710 (_bfd_mips_elf_finish_dynamic_symbol): Use
711 mips_elf_primary_global_got_index rather than
712 mips_elf_global_got_index.
713 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
714
715 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
716
717 * elfxx-mips.c (mips_got_entry): Update comments.
718 (mips_elf_multi_got_entry_eq): Rename to...
719 (mips_elf_got_entry_eq): ...this, deleting the old definition.
720 (mips_elf_create_got_info): Remove master_got_p argument.
721 Always use mips_elf_got_entry_eq.
722 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
723 Update calls accordingly.
724
725 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
726
727 * elfxx-mips.c (mips_got_info): Remove bfd2got.
728 (mips_elf_bfd2got_hash): Delete.
729 (mips_elf_got_per_bfd_arg): Remove bfd2got.
730 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
731 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
732 g->next to test for the multigot case. Use mips_elf_bfd_got rather
733 than mips_elf_got_for_ibfd.
734 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
735 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
736 (mips_elf_make_got_per_bfd): Replace with...
737 (mips_elf_add_got_entry): ...this new function.
738 (mips_elf_make_got_pages_per_bfd): Replace with...
739 (mips_elf_add_got_page_entry): ...this new function.
740 (mips_elf_merge_got_with): Replace bfd2got argument with separate
741 bfd and GOT arguments. Use mips_elf_add_got_entry and
742 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
743 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
744 to set the BFD's GOT and free the old table.
745 (mips_elf_merge_got): Replace bfd2got argument with separate
746 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
747 Use mips_elf_count_got_entries to count the number of entries in
748 each GOT. Update the calls to mips_elf_merge_got_with.
749 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
750 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
751 (mips_elf_multi_got): Don't create the bfd2got hash table.
752 Replace hash table traversal with a walk over the input bfds,
753 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
754 to set the output bfd's GOT.
755 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
756 bfds use the master GOT in the single-GOT case.
757 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
758 rather than mips_elf_got_for_ibfd.
759
760 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
761
762 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
763 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
764 (mips_elf_record_global_got_symbol): Update the hash entry before
765 adding the mips_got_entry. Use mips_elf_record_got_entry to do
766 the latter.
767 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
768 (mips_elf_record_got_page_entry): Record the entry in both the
769 master and bfd GOTs.
770
771 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
772
773 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
774 create another one if necessary.
775 (mips_elf_set_gotidx): New function.
776 (mips_elf_set_global_gotidx): Use it.
777 (mips_elf_initialize_tls_index): Likewise. Take a
778 mips_elf_traverse_got_arg as argument.
779 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
780 (mips_elf_multi_got): Likewise. Cope with error returns from
781 mips_elf_set_global_gotidx.
782
783 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
784
785 * elfxx-mips.c (mips_got_info): Add relocs field.
786 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
787 with...
788 (mips_elf_traverse_got_arg): ...this new structure.
789 (mips_elf_count_local_tls_relocs): Delete.
790 (mips_elf_count_global_tls_relocs): Likewise.
791 (mips_elf_count_got_entry): New function.
792 (mips_elf_count_local_got_entries): Likewise.
793 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
794 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
795 (mips_elf_record_local_got_symbol): Don't count got entries here.
796 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
797 (mips_elf_set_global_got_offset): Split into...
798 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
799 new functions. Take a mips_elf_traverse_got_arg rather than a
800 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
801 Use g->relocs to record the number of relocs needed for global GOT
802 entries.
803 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
804 mips_elf_set_global_got_offset_arg. Use the relocs field to count
805 relocations. Update for above function split.
806 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
807 to count both the number of GOT entries and the number of TLS
808 relocs required by local entries. Likewise
809 mips_elf_count_global_tls_entries and global entries.
810 Remove uses of mips_elf_count_local_tls_relocs and
811 mips_elf_count_global_tls_relocs.
812
813 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
814
815 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
816 to say that each structure represents only one type of TLS reference.
817 (GOT_TLS_TYPE): New define.
818 (mips_elf_link_hash_entry): Temporarily split tls_type and
819 tls_got_offset into two variables each.
820 (mips_elf_link_hash_newfunc): Update accordingly.
821 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
822 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
823 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
824 (mips_tls_got_relocs): Use a switch statement.
825 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
826 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
827 local "offset" variable.
828 (mips_tls_got_index): Remove r_type argument and assert. Remove
829 code that handled entries with two TLS types; always use the
830 original got_index instead.
831 (mips_tls_single_got_index): New function.
832 (mips_elf_local_got_index): Use entry->tls_type to check for
833 TLS entries. Use mips_tls_single_got_index. Update call to
834 mips_tls_got_index.
835 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
836 Use p->tls_type to check for TLS entries. Update call to
837 mips_tls_got_index. Use mips_tls_single_got_index.
838 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
839 Use entry.tls_type to check for TLS entries.
840 (mips_elf_record_global_got_symbol): Replace tls_flag argument
841 with r_type argument. Use mips_elf_reloc_tls_type.
842 Set up the new hash entry fields.
843 (mips_elf_record_local_got_symbol): Replace tls_flag argument
844 with r_type argument. Use mips_elf_reloc_tls_type and
845 mips_tls_got_entries. Remove code that handled entries
846 with multiple TLS types.
847 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
848 (mips_elf_initialize_tls_index): Handle new hash entry fields.
849 Use equality rather than masks when checking for specific TLS types.
850 Use mips_tls_got_entries. Remove code that handled entries
851 with multiple TLS types.
852 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
853 testing the hash table entry.
854 (_bfd_mips_elf_check_relocs): Update calls to
855 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
856 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
857 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
858
859 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
860
861 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
862 (mips_elf_got_entry_hash): ...this, deleting the old version.
863 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
864 both types of GOT.
865
866 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
867
868 * elfxx-mips.c (mips_elf_create_got_info): New function.
869 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
870 (mips_elf_create_got_section): Likewise.
871
872 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
873
874 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
875 gotidx to -1.
876
877 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
878
879 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
880
881 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
882
883 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
884 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
885
886 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
887
888 * elfxx-mips.c (mips_elf_count_global_tls_entries)
889 (mips_elf_count_global_tls_relocs): Don't count indirect or
890 warning symbols.
891 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
892 number of TLS entries were allocated.
893
894 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
895
896 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
897
898 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
899
900 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
901 if there are TLS relocations.
902
903 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
904
905 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
906 (mips_elf_resolve_final_got_entries): Remove bogus comment.
907
908 2013-02-11 Alan Modra <amodra@gmail.com>
909
910 * elfcode.h (elf_checksum_contents): Free contents.
911 * elf-bfd.h (_bfd_elf_link_hash_table_free): Declare.
912 * elflink.c (_bfd_elf_link_hash_table_free): New function.
913 (elf_final_link_free): New function, extracted from..
914 (bfd_elf_final_link): ..here. Always call
915 _bfd_elf_write_section_eh_frame_hdr.
916 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Default to
917 _bfd_elf_link_hash_table_free.
918 * libbfd-in.h (_bfd_merge_sections_free): Declare.
919 * libbfd.h: Regenerate.
920 * merge.c (_bfd_merge_sections_free): New function.
921 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): Free
922 hdr_info->array.
923 * elf-m10300.c (elf32_mn10300_link_hash_table_free): Call
924 _bfd_elf_link_hash_table_free.
925 * elf32-arm.c (elf32_arm_link_hash_table_free): Likewise.
926 * elf32-avr.c (elf32_avr_link_hash_table_free): Likewise.
927 * elf32-hppa.c (elf32_hppa_link_hash_table_free): Likewise.
928 * elf32-i386.c (elf_i386_link_hash_table_free): Likewise.
929 * elf32-m68hc1x.c (m68hc11_elf_hash_table_free): Likewise.
930 * elf32-m68k.c (elf_m68k_link_hash_table_free): Likewise.
931 * elf32-metag.c (elf_metag_link_hash_table_free): Likewise.
932 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_free): Likewise.
933 * elf64-aarch64.c (elf64_aarch64_link_hash_table_free): Likewise.
934 * elf64-ia64-vms.c (elf64_ia64_hash_table_free): Likewise.
935 * elf64-ppc.c (ppc64_elf_link_hash_table_free): Likewise.
936 * elf64-x86-64.c (elf_x86_64_link_hash_table_free): Likewise.
937 * elfnn-ia64.c (elfNN_ia64_hash_table_free): Likewise.
938 * elf32-cr16.c (elf32_cr16_link_hash_table_free): Delete.
939 (bfd_elf32_bfd_link_hash_table_free): Don't define.
940 * elf32-tic6x.c (elf32_tic6x_link_hash_table_free): Delete.
941 (bfd_elf32_bfd_link_hash_table_free): Dont' define.
942
943 2013-02-10 Alan Modra <amodra@gmail.com>
944
945 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
946 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
947 * m68klinux.c (linux_link_hash_table_create): Likewise.
948 * sparclinux.c (linux_link_hash_table_create): Likewise.
949 * sunos.c (sunos_link_hash_table_create): Likewise.
950 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
951 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
952 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
953 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
954 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
955 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
956 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
957 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
958 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
959 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
960 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
961 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
962 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
963 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
964 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
965 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
966 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
967 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
968 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
969 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
970 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
971 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
972 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
973 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
974 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
975 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
976 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
977 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
978
979 2013-02-10 Alan Modra <amodra@gmail.com>
980
981 * i386linux.c (linux_link_hash_table_create): Allocate table
982 with bfd_zmalloc, not bfd_alloc.
983 * pdp11.c (link_hash_table_create): Allocate table with
984 bfd_malloc, not bfd_alloc.
985 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
986 with bfd_zmalloc, not bfd_zalloc.
987 (bfin_link_hash_table_create): Likewise.
988 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
989 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
990
991 2013-02-10 Alan Modra <amodra@gmail.com>
992
993 PR ld/15113
994 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
995
996 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
997
998 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
999 sections.
1000 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
1001 symbol.
1002
1003 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
1004
1005 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
1006 288 to 272.
1007
1008 2013-02-08 Alan Modra <amodra@gmail.com>
1009
1010 PR binutils/15106
1011 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
1012 * elf.c (elf_find_function): Revert last change. Use new
1013 tdata field rather than static vars for cache.
1014
1015 2013-02-07 H.J. Lu <hongjiu.lu@intel.com>
1016
1017 PR ld/15107
1018 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
1019 symbol is defined in regular object.
1020
1021 2013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
1022
1023 PR binutils/15106
1024 * elf.c (elf_find_function): Don't cache if symbols change.
1025
1026 2013-02-07 Alan Modra <amodra@gmail.com>
1027
1028 PR binutils/14873
1029 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
1030 copy attributes from or to non-ELF.
1031
1032 2013-02-06 H.J. Lu <hongjiu.lu@intel.com>
1033
1034 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
1035 for non-zero TLS symbol.
1036 (elf_i386_relocate_section): Don't resolve size relocation against
1037 non-zero TLS symbol.
1038 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
1039 pc_count for non-zero TLS symbol.
1040 (elf_x86_64_relocate_section): Don't resolve size relocation
1041 against non-zero TLS symbol.
1042
1043 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
1044 Andrew Jenner <andrew@codesourcery.com>
1045
1046 Based on patches from Altera Corporation.
1047
1048 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
1049 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
1050 (BFD_BACKENDS): Add elf32-nios2.lo.
1051 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
1052 * Makefile.in: Regenerated.
1053 * configure.in: Add entries for bfd_elf32_bignios2_vec and
1054 bfd_elf32_littlenios2_vec.
1055 * configure: Regenerated.
1056 * config.bfd: Add cases for nios2.
1057 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
1058 (bfd_mach_nios2): Define.
1059 (bfd_nios2_arch): Declare.
1060 (bfd_archures_list): Add bfd_nios2_arch.
1061 * targets.c (bfd_elf32_bignios2_vec): Declare.
1062 (bfd_elf32_littlenios2_vec): Declare.
1063 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
1064 bfd_elf32_littlenios2_vec.
1065 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
1066 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
1067 * bfd-in2.h: Regenerated.
1068 * libbfd.h: Regenerated.
1069 * cpu-nios2.c: New file.
1070 * elf32-nios2.c: New file.
1071
1072 2013-02-06 Alan Modra <amodra@gmail.com>
1073
1074 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
1075 stubs in stub_bfd.
1076
1077 2013-02-06 Alan Modra <amodra@gmail.com>
1078
1079 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
1080 * Makefile.in: Regenerate.
1081
1082 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
1083 Pedro Alves <palves@redhat.com>
1084
1085 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
1086 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
1087 declaration.
1088 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
1089 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
1090 * elf-linux-psinfo.h: New file.
1091 * elf.c: Include elf-linux-psinfo.h.
1092 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
1093 New functions.
1094 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
1095 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
1096 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
1097 (elfcore_write_ppc_linux_prpsinfo32): New function.
1098
1099 2013-02-04 Tristan Gingold <gingold@adacore.com>
1100
1101 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
1102 start address.
1103
1104 2013-02-04 Alan Modra <amodra@gmail.com>
1105
1106 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
1107 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
1108 * Makefile.in: Regenerate.
1109 * po/SRC-POTFILES.in: Regenerate.
1110
1111 2013-02-04 Alan Modra <amodra@gmail.com>
1112
1113 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
1114 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
1115
1116 2013-02-01 Alan Modra <amodra@gmail.com>
1117
1118 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
1119 clears def_regular.
1120
1121 2013-01-31 Tristan Gingold <gingold@adacore.com>
1122
1123 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
1124 earlier. Fix status checking of bfd_mach_o_scan_start_address.
1125 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
1126
1127 2013-01-31 Alan Modra <amodra@gmail.com>
1128 David S. Miller <davem@davemloft.net>
1129
1130 PR ld/15056
1131 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
1132 references to __tls_get_addr.
1133 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
1134 vtinherit and vtentry reloc handling too.
1135 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
1136
1137 2013-01-31 Alan Modra <amodra@gmail.com>
1138
1139 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
1140
1141 2013-01-31 Alan Modra <amodra@gmail.com>
1142
1143 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
1144
1145 2013-01-28 Alan Modra <amodra@gmail.com>
1146
1147 * elf64-ppc.c: Use %T to print symbols names and remove redundant
1148 "relocation" in error messages throughout file.
1149 (ppc64_elf_relocate_section): Remove sibling call error message,
1150 replace with "call lacks nop". Specially report errors for
1151 branches to function entry points via OPD lookup and branches
1152 to stubs. Remove NULL symbol handling now done by %T.
1153
1154 2013-01-28 Alan Modra <amodra@gmail.com>
1155
1156 * archive.c (bfd_generic_archive_p): Return target and keep
1157 ardata on partial matches.
1158 * format.c (bfd_check_format_matches): Adjust for above
1159 change. Remove bfd_error_file_ambiguously_recognized dead
1160 code.
1161
1162 2013-01-26 Alan Modra <amodra@gmail.com>
1163
1164 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
1165 bfd_preserve_finish): Move to..
1166 * format.c: ..here, splitting out..
1167 (bfd_reinit): ..this. New function.
1168 (bfd_check_format_matches): Use bfd_preserve_save/restore to
1169 keep bfd state for a match.
1170 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
1171 * elfcore.h (elf_core_file_p): Likewise.
1172 * mach-o.c (bfd_mach_o_header_p): Likewise.
1173 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
1174 * xsym.c (bfd_sym_object_p): Likewise.
1175 * mmo.c (mmo_scan): Clear abfd->symcount.
1176 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
1177 * section.c (bfd_section_list_clear): Clear section_htab.count.
1178 * bfd-in2.h: Regenerate.
1179
1180 2013-01-25 Michael Schewe <michael.schewe@gmx.net>
1181
1182 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
1183 second reloc, make sure that the reloc potentially exists first.
1184
1185 2013-01-24 Nick Clifton <nickc@redhat.com>
1186
1187 * archures.c: Add bfd_mach_v850e3v5.
1188 * bfd-in2.h: Regenerate.
1189 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
1190 * cpu-v850_rh850.c: Likewise.
1191 * elf32-v850.c: Add support for v850e3v5 architecture.
1192
1193 2013-01-23 Markos Chandras <markos.chandras@imgtec.com>
1194
1195 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
1196
1197 2013-01-23 Leif Ekblad <leif@rdos.net>
1198
1199 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
1200
1201 2013-01-18 H.J. Lu <hongjiu.lu@intel.com>
1202
1203 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
1204 non-zero TLS symbol.
1205 (elf_i386_relocate_section): Resolve size relocation against
1206 non-zero TLS symbol.
1207 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
1208 for non-zero TLS symbol.
1209 (elf_x86_64_relocate_section): Resolve size relocation against
1210 non-zero TLS symbol.
1211
1212 2013-01-18 Mike Frysinger <vapier@gentoo.org>
1213
1214 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
1215 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
1216 true.
1217
1218 2013-01-17 H.J. Lu <hongjiu.lu@intel.com>
1219
1220 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
1221 PC-relative relocation.
1222 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
1223 as PC-relative relocation.
1224
1225 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
1226
1227 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
1228 check.
1229 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
1230
1231 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
1232 and R_X86_64_SIZE64 check.
1233 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
1234 nor R_X86_64_SIZE64.
1235
1236 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
1237
1238 * bfd-in2.h: Regenerated.
1239 * libbfd.h: Likewise.
1240
1241 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
1242 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
1243 (elf_i386_check_relocs): Handle R_386_SIZE32.
1244 (elf_i386_gc_sweep_hook): Likewise.
1245 (elf_i386_relocate_section): Likewise.
1246
1247 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
1248 and R_X86_64_SIZE64 entries.
1249 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
1250 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
1251 (elf_x86_64_reloc_name_lookup): Likewise.
1252 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
1253 R_X86_64_SIZE64.
1254 (elf_x86_64_gc_sweep_hook): Likewise.
1255 (elf_x86_64_relocate_section): Likewise.
1256
1257 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
1258 BFD_RELOC_SIZE64.
1259
1260 2013-01-15 H.J. Lu <hongjiu.lu@intel.com>
1261
1262 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
1263 with R_X86_64_RELATIVE64.
1264
1265 2013-01-15 Nick Clifton <nickc@redhat.com>
1266
1267 * elf32-msp430.c: Fix spelling typo.
1268
1269 2013-01-15 Alan Modra <amodra@gmail.com>
1270
1271 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
1272 plt-thread-safe.
1273
1274 2013-01-14 Alan Modra <amodra@gmail.com>
1275
1276 PR binutils/14813
1277 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
1278 (memory_bclose): Likewise. Return 0 on success.
1279 * cache.c (cache_bclose): Likewise.
1280 * opncls.c (opncls_bclose, bfd_close): Likewise.
1281 * vms-lib.c (vms_lib_bclose): Likewise.
1282 * libbfd.h: Regenerate.
1283
1284 2013-01-13 Alan Modra <amodra@gmail.com>
1285
1286 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
1287 Add ref_dynamic_nonweak.
1288 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
1289 (_bfd_elf_merge_symbol): Don't call above function. Move
1290 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
1291 clear dynamic_def.
1292 (elf_link_add_object_symbols): Delete redundant "override" test.
1293 Don't set dynamic_def here.
1294 (elf_link_output_extsym): Update.
1295
1296 2013-01-12 H.J. Lu <hongjiu.lu@intel.com>
1297
1298 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
1299 normal and TLS symbol access.
1300 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1301
1302 2013-01-12 Alan Modra <amodra@gmail.com>
1303
1304 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
1305 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
1306 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
1307
1308 2013-01-12 Alan Modra <amodra@gmail.com>
1309
1310 PR ld/12549
1311 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
1312 (_bfd_elf_strtab_clear_all_refs): Define.
1313 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
1314 (_bfd_elf_strtab_clear_all_refs): Delete.
1315 * elflink.c (elf_link_add_object_symbols): Clear out added
1316 strtab refs. Correct handling of warning common symbols.
1317
1318 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
1319
1320 * aout0.c: Remove trailing white spaces.
1321 * archive.c: Likewise.
1322 * archures.c: Likewise.
1323 * bfd-in.h: Likewise.
1324 * bfd-in2.h: Likewise.
1325 * coff-alpha.c: Likewise.
1326 * coff-i860.c: Likewise.
1327 * coff-mips.c: Likewise.
1328 * coff-ppc.c: Likewise.
1329 * coff-tic80.c: Likewise.
1330 * coff-x86_64.c: Likewise.
1331 * coff-z80.c: Likewise.
1332 * coffcode.h: Likewise.
1333 * coffgen.c: Likewise.
1334 * cofflink.c: Likewise.
1335 * compress.c: Likewise.
1336 * corefile.c: Likewise.
1337 * cpu-arm.c: Likewise.
1338 * cpu-avr.c: Likewise.
1339 * cpu-bfin.c: Likewise.
1340 * cpu-cr16.c: Likewise.
1341 * cpu-cr16c.c: Likewise.
1342 * cpu-crx.c: Likewise.
1343 * cpu-h8300.c: Likewise.
1344 * cpu-i386.c: Likewise.
1345 * cpu-lm32.c: Likewise.
1346 * cpu-m68k.c: Likewise.
1347 * cpu-moxie.c: Likewise.
1348 * cpu-msp430.c: Likewise.
1349 * cpu-sh.c: Likewise.
1350 * cpu-xc16x.c: Likewise.
1351 * dwarf2.c: Likewise.
1352 * ecofflink.c: Likewise.
1353 * ecoffswap.h: Likewise.
1354 * elf-ifunc.c: Likewise.
1355 * elf-m10300.c: Likewise.
1356 * elf-vxworks.c: Likewise.
1357 * elf32-avr.c: Likewise.
1358 * elf32-avr.h: Likewise.
1359 * elf32-cr16.c: Likewise.
1360 * elf32-cr16c.c: Likewise.
1361 * elf32-cris.c: Likewise.
1362 * elf32-crx.c: Likewise.
1363 * elf32-frv.c: Likewise.
1364 * elf32-hppa.c: Likewise.
1365 * elf32-i860.c: Likewise.
1366 * elf32-ip2k.c: Likewise.
1367 * elf32-iq2000.c: Likewise.
1368 * elf32-m32c.c: Likewise.
1369 * elf32-m68hc1x.c: Likewise.
1370 * elf32-msp430.c: Likewise.
1371 * elf32-mt.c: Likewise.
1372 * elf32-ppc.c: Likewise.
1373 * elf32-rl78.c: Likewise.
1374 * elf32-s390.c: Likewise.
1375 * elf32-score.h: Likewise.
1376 * elf32-sh-symbian.c: Likewise.
1377 * elf32-sh.c: Likewise.
1378 * elf32-spu.c: Likewise.
1379 * elf32-tic6x.c: Likewise.
1380 * elf32-v850.c: Likewise.
1381 * elf32-xc16x.c: Likewise.
1382 * elf32-xtensa.c: Likewise.
1383 * elf64-alpha.c: Likewise.
1384 * elf64-hppa.c: Likewise.
1385 * elf64-ppc.c: Likewise.
1386 * elf64-s390.c: Likewise.
1387 * elfcore.h: Likewise.
1388 * elflink.c: Likewise.
1389 * elfxx-mips.c: Likewise.
1390 * elfxx-sparc.c: Likewise.
1391 * elfxx-tilegx.c: Likewise.
1392 * ieee.c: Likewise.
1393 * libcoff.h: Likewise.
1394 * libpei.h: Likewise.
1395 * libxcoff.h: Likewise.
1396 * linker.c: Likewise.
1397 * mach-o-i386.c: Likewise.
1398 * mach-o-target.c: Likewise.
1399 * mach-o.c: Likewise.
1400 * mach-o.h: Likewise.
1401 * mmo.c: Likewise.
1402 * opncls.c: Likewise.
1403 * pdp11.c: Likewise.
1404 * pe-x86_64.c: Likewise.
1405 * peXXigen.c: Likewise.
1406 * pef-traceback.h: Likewise.
1407 * pei-x86_64.c: Likewise.
1408 * peicode.h: Likewise.
1409 * plugin.c: Likewise.
1410 * reloc.c: Likewise.
1411 * riscix.c: Likewise.
1412 * section.c: Likewise.
1413 * som.c: Likewise.
1414 * syms.c: Likewise.
1415 * tekhex.c: Likewise.
1416 * ticoff.h: Likewise.
1417 * vaxbsd.c: Likewise.
1418 * xcofflink.c: Likewise.
1419 * xtensa-isa.c: Likewise.
1420
1421 2013-01-10 Will Newton <will.newton@imgtec.com>
1422
1423 * Makefile.am: Add Meta.
1424 * Makefile.in: Regenerate.
1425 * archures.c (bfd_mach_metag): New.
1426 * bfd-in2.h: Regenerate.
1427 * config.bfd: Add Meta.
1428 * configure: Regenerate.
1429 * configure.in: Add Meta.
1430 * cpu-metag.c: New file.
1431 * elf-bfd.h: Add Meta.
1432 * elf32-metag.c: New file.
1433 * elf32-metag.h: New file.
1434 * libbfd.h: Regenerate.
1435 * reloc.c: Add Meta relocations.
1436 * targets.c: Add Meta.
1437
1438 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
1439
1440 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
1441 (elfcore_write_aarch_hw_break): Likewise.
1442 (elfcore_write_aarch_hw_watch): Likewise.
1443 * elf.c (elfcore_grok_aarch_tls): New function.
1444 (elfcore_grok_aarch_hw_break): Likewise.
1445 (elfcore_grok_aarch_hw_watch): Likewise.
1446 (elfcore_grok_note): Call the new functions to handle the
1447 corresponding notes.
1448 (elfcore_write_aarch_tls): New function.
1449 (elfcore_write_aarch_hw_break): Likewise.
1450 (elfcore_write_aarch_hw_watch): Likewise.
1451 (elfcore_write_register_note): Call the new functions to handle the
1452 corresponding pseudo sections.
1453
1454 2013-01-07 Tom Tromey <tromey@redhat.com>
1455
1456 * section.c (_bfd_std_section): Rename from std_section.
1457 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
1458 (STD_SECTION): Update.
1459 * bfd-in2.h: Rebuild.
1460
1461 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
1462
1463 * archures.c (bfd_mach_mips5900): Define.
1464 * bfd-in2.h: Regenerate.
1465 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
1466 * cpu-mips.c: Add support for MIPS r5900.
1467 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
1468
1469 2013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
1470 Nick Clifton <nickc@redhat.com>
1471
1472 * elflink.c (get_value): Prevent the use of an undefined shift
1473 operation. Add sanity checks.
1474
1475 2013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1476
1477 * config.bfd (cr16*-*-uclinux*): New target support.
1478
1479
1480 For older changes see ChangeLog-2012
1481 \f
1482 Copyright (C) 2013 Free Software Foundation, Inc.
1483
1484 Copying and distribution of this file, with or without modification,
1485 are permitted in any medium without royalty provided the copyright
1486 notice and this notice are preserved.
1487
1488 Local Variables:
1489 mode: change-log
1490 left-margin: 8
1491 fill-column: 74
1492 version-control: never
1493 End:
This page took 0.060549 seconds and 4 git commands to generate.