2013-01-31 Tristan Gingold <gingold@adacore.com>
[platform/upstream/binutils.git] / bfd / ChangeLog
1 2013-01-31  Tristan Gingold  <gingold@adacore.com>
2
3         * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
4         earlier.  Fix status checking of bfd_mach_o_scan_start_address.
5         (bfd_mach_o_scan_start_address): Handle LC_MAIN.
6
7 2013-01-31  Alan Modra  <amodra@gmail.com>
8             David S. Miller  <davem@davemloft.net>
9
10         PR ld/15056
11         * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
12         references to __tls_get_addr.
13         * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise.  Correct
14         vtinherit and vtentry reloc handling too.
15         * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
16
17 2013-01-31  Alan Modra  <amodra@gmail.com>
18
19         * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
20
21 2013-01-31  Alan Modra  <amodra@gmail.com>
22
23         * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
24
25 2013-01-28  Alan Modra  <amodra@gmail.com>
26
27         * elf64-ppc.c: Use %T to print symbols names and remove redundant
28         "relocation" in error messages throughout file.
29         (ppc64_elf_relocate_section): Remove sibling call error message,
30         replace with "call lacks nop".  Specially report errors for
31         branches to function entry points via OPD lookup and branches
32         to stubs.  Remove NULL symbol handling now done by %T.
33
34 2013-01-28  Alan Modra  <amodra@gmail.com>
35
36         * archive.c (bfd_generic_archive_p): Return target and keep
37         ardata on partial matches.
38         * format.c (bfd_check_format_matches): Adjust for above
39         change.  Remove bfd_error_file_ambiguously_recognized dead
40         code.
41
42 2013-01-26  Alan Modra  <amodra@gmail.com>
43
44         * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
45         bfd_preserve_finish): Move to..
46         * format.c: ..here, splitting out..
47         (bfd_reinit): ..this.  New function.
48         (bfd_check_format_matches): Use bfd_preserve_save/restore to
49         keep bfd state for a match.
50         * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
51         * elfcore.h (elf_core_file_p): Likewise.
52         * mach-o.c (bfd_mach_o_header_p): Likewise.
53         * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
54         * xsym.c (bfd_sym_object_p): Likewise.
55         * mmo.c (mmo_scan): Clear abfd->symcount.
56         * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
57         * section.c (bfd_section_list_clear): Clear section_htab.count.
58         * bfd-in2.h: Regenerate.
59
60 2013-01-25  Michael Schewe  <michael.schewe@gmx.net>
61
62         * elf32-h8300.c (elf32_h8_relax_section): When checking for a
63         second reloc, make sure that the reloc potentially exists first.
64
65 2013-01-24  Nick Clifton  <nickc@redhat.com>
66
67         * archures.c: Add bfd_mach_v850e3v5.
68         * bfd-in2.h: Regenerate.
69         * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
70         * cpu-v850_rh850.c: Likewise.
71         * elf32-v850.c: Add support for v850e3v5 architecture.
72
73 2013-01-23  Markos Chandras  <markos.chandras@imgtec.com>
74
75         * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
76
77 2013-01-23  Leif Ekblad  <leif@rdos.net>
78
79         * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
80
81 2013-01-18  H.J. Lu  <hongjiu.lu@intel.com>
82
83         * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
84         non-zero TLS symbol.
85         (elf_i386_relocate_section): Resolve size relocation against
86         non-zero TLS symbol.
87         * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
88         for non-zero TLS symbol.
89         (elf_x86_64_relocate_section): Resolve size relocation against
90         non-zero TLS symbol.
91
92 2013-01-18  Mike Frysinger  <vapier@gentoo.org>
93
94         * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
95         when new_dtags is false.  Only add DT_RUNPATH when new_dtags is
96         true.
97
98 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
99
100         * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
101         PC-relative relocation.
102         * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
103         as PC-relative relocation.
104
105 2013-01-16  H.J. Lu  <hongjiu.lu@intel.com>
106
107         * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
108         check.
109         (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
110
111         * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
112         and R_X86_64_SIZE64 check.
113         (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
114         nor R_X86_64_SIZE64.
115
116 2013-01-16  H.J. Lu  <hongjiu.lu@intel.com>
117
118         * bfd-in2.h: Regenerated.
119         * libbfd.h: Likewise.
120
121         * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
122         (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
123         (elf_i386_check_relocs): Handle R_386_SIZE32.
124         (elf_i386_gc_sweep_hook): Likewise.
125         (elf_i386_relocate_section): Likewise.
126
127         * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
128         and R_X86_64_SIZE64 entries.
129         (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
130         (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
131         (elf_x86_64_reloc_name_lookup): Likewise.
132         (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
133         R_X86_64_SIZE64.
134         (elf_x86_64_gc_sweep_hook): Likewise.
135         (elf_x86_64_relocate_section): Likewise.
136
137         * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
138         BFD_RELOC_SIZE64.
139
140 2013-01-15  H.J. Lu  <hongjiu.lu@intel.com>
141
142         * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
143         with R_X86_64_RELATIVE64.
144
145 2013-01-15  Nick Clifton  <nickc@redhat.com>
146
147         * elf32-msp430.c: Fix spelling typo.
148
149 2013-01-15  Alan Modra  <amodra@gmail.com>
150
151         * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
152         plt-thread-safe.
153
154 2013-01-14  Alan Modra  <amodra@gmail.com>
155
156         PR binutils/14813
157         * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
158         (memory_bclose): Likewise.  Return 0 on success.
159         * cache.c (cache_bclose): Likewise.
160         * opncls.c (opncls_bclose, bfd_close): Likewise.
161         * vms-lib.c (vms_lib_bclose): Likewise.
162         * libbfd.h: Regenerate.
163
164 2013-01-13  Alan Modra  <amodra@gmail.com>
165
166         * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
167         Add ref_dynamic_nonweak.
168         * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
169         (_bfd_elf_merge_symbol): Don't call above function.  Move
170         setting of ref_dynamic_nonweak and dynamic_def earlier.  Don't
171         clear dynamic_def.
172         (elf_link_add_object_symbols): Delete redundant "override" test.
173         Don't set dynamic_def here.
174         (elf_link_output_extsym): Update.
175
176 2013-01-12  H.J. Lu  <hongjiu.lu@intel.com>
177
178         * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
179         normal and TLS symbol access.
180         * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
181
182 2013-01-12  Alan Modra  <amodra@gmail.com>
183
184         * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
185         * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
186         * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
187
188 2013-01-12  Alan Modra  <amodra@gmail.com>
189
190         PR ld/12549
191         * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
192         (_bfd_elf_strtab_clear_all_refs): Define.
193         * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
194         (_bfd_elf_strtab_clear_all_refs): Delete.
195         * elflink.c (elf_link_add_object_symbols): Clear out added
196         strtab refs.  Correct handling of warning common symbols.
197
198 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
199
200         * aout0.c: Remove trailing white spaces.
201         * archive.c: Likewise.
202         * archures.c: Likewise.
203         * bfd-in.h: Likewise.
204         * bfd-in2.h: Likewise.
205         * coff-alpha.c: Likewise.
206         * coff-i860.c: Likewise.
207         * coff-mips.c: Likewise.
208         * coff-ppc.c: Likewise.
209         * coff-tic80.c: Likewise.
210         * coff-x86_64.c: Likewise.
211         * coff-z80.c: Likewise.
212         * coffcode.h: Likewise.
213         * coffgen.c: Likewise.
214         * cofflink.c: Likewise.
215         * compress.c: Likewise.
216         * corefile.c: Likewise.
217         * cpu-arm.c: Likewise.
218         * cpu-avr.c: Likewise.
219         * cpu-bfin.c: Likewise.
220         * cpu-cr16.c: Likewise.
221         * cpu-cr16c.c: Likewise.
222         * cpu-crx.c: Likewise.
223         * cpu-h8300.c: Likewise.
224         * cpu-i386.c: Likewise.
225         * cpu-lm32.c: Likewise.
226         * cpu-m68k.c: Likewise.
227         * cpu-moxie.c: Likewise.
228         * cpu-msp430.c: Likewise.
229         * cpu-sh.c: Likewise.
230         * cpu-xc16x.c: Likewise.
231         * dwarf2.c: Likewise.
232         * ecofflink.c: Likewise.
233         * ecoffswap.h: Likewise.
234         * elf-ifunc.c: Likewise.
235         * elf-m10300.c: Likewise.
236         * elf-vxworks.c: Likewise.
237         * elf32-avr.c: Likewise.
238         * elf32-avr.h: Likewise.
239         * elf32-cr16.c: Likewise.
240         * elf32-cr16c.c: Likewise.
241         * elf32-cris.c: Likewise.
242         * elf32-crx.c: Likewise.
243         * elf32-frv.c: Likewise.
244         * elf32-hppa.c: Likewise.
245         * elf32-i860.c: Likewise.
246         * elf32-ip2k.c: Likewise.
247         * elf32-iq2000.c: Likewise.
248         * elf32-m32c.c: Likewise.
249         * elf32-m68hc1x.c: Likewise.
250         * elf32-msp430.c: Likewise.
251         * elf32-mt.c: Likewise.
252         * elf32-ppc.c: Likewise.
253         * elf32-rl78.c: Likewise.
254         * elf32-s390.c: Likewise.
255         * elf32-score.h: Likewise.
256         * elf32-sh-symbian.c: Likewise.
257         * elf32-sh.c: Likewise.
258         * elf32-spu.c: Likewise.
259         * elf32-tic6x.c: Likewise.
260         * elf32-v850.c: Likewise.
261         * elf32-xc16x.c: Likewise.
262         * elf32-xtensa.c: Likewise.
263         * elf64-alpha.c: Likewise.
264         * elf64-hppa.c: Likewise.
265         * elf64-ppc.c: Likewise.
266         * elf64-s390.c: Likewise.
267         * elfcore.h: Likewise.
268         * elflink.c: Likewise.
269         * elfxx-mips.c: Likewise.
270         * elfxx-sparc.c: Likewise.
271         * elfxx-tilegx.c: Likewise.
272         * ieee.c: Likewise.
273         * libcoff.h: Likewise.
274         * libpei.h: Likewise.
275         * libxcoff.h: Likewise.
276         * linker.c: Likewise.
277         * mach-o-i386.c: Likewise.
278         * mach-o-target.c: Likewise.
279         * mach-o.c: Likewise.
280         * mach-o.h: Likewise.
281         * mmo.c: Likewise.
282         * opncls.c: Likewise.
283         * pdp11.c: Likewise.
284         * pe-x86_64.c: Likewise.
285         * peXXigen.c: Likewise.
286         * pef-traceback.h: Likewise.
287         * pei-x86_64.c: Likewise.
288         * peicode.h: Likewise.
289         * plugin.c: Likewise.
290         * reloc.c: Likewise.
291         * riscix.c: Likewise.
292         * section.c: Likewise.
293         * som.c: Likewise.
294         * syms.c: Likewise.
295         * tekhex.c: Likewise.
296         * ticoff.h: Likewise.
297         * vaxbsd.c: Likewise.
298         * xcofflink.c: Likewise.
299         * xtensa-isa.c: Likewise.
300
301 2013-01-10  Will Newton <will.newton@imgtec.com>
302
303         * Makefile.am: Add Meta.
304         * Makefile.in: Regenerate.
305         * archures.c (bfd_mach_metag): New.
306         * bfd-in2.h: Regenerate.
307         * config.bfd: Add Meta.
308         * configure: Regenerate.
309         * configure.in: Add Meta.
310         * cpu-metag.c: New file.
311         * elf-bfd.h: Add Meta.
312         * elf32-metag.c: New file.
313         * elf32-metag.h: New file.
314         * libbfd.h: Regenerate.
315         * reloc.c: Add Meta relocations.
316         * targets.c: Add Meta.
317
318 2013-01-08  Yufeng Zhang  <yufeng.zhang@arm.com>
319
320         * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
321         (elfcore_write_aarch_hw_break): Likewise.
322         (elfcore_write_aarch_hw_watch): Likewise.
323         * elf.c (elfcore_grok_aarch_tls): New function.
324         (elfcore_grok_aarch_hw_break): Likewise.
325         (elfcore_grok_aarch_hw_watch): Likewise.
326         (elfcore_grok_note): Call the new functions to handle the
327         corresponding notes.
328         (elfcore_write_aarch_tls): New function.
329         (elfcore_write_aarch_hw_break): Likewise.
330         (elfcore_write_aarch_hw_watch): Likewise.
331         (elfcore_write_register_note): Call the new functions to handle the
332         corresponding pseudo sections.
333
334 2013-01-07  Tom Tromey  <tromey@redhat.com>
335
336         * section.c (_bfd_std_section): Rename from std_section.
337         (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
338         (STD_SECTION): Update.
339         * bfd-in2.h: Rebuild.
340
341 2013-01-04  Juergen Urban <JuergenUrban@gmx.de>
342
343         * archures.c (bfd_mach_mips5900): Define.
344         * bfd-in2.h: Regenerate.
345         * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
346         * cpu-mips.c: Add support for MIPS r5900.
347         * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
348
349 2013-01-03  Nickolai Zeldovich  <nickolai@csail.mit.edu>
350             Nick Clifton  <nickc@redhat.com>
351
352         * elflink.c (get_value): Prevent the use of an undefined shift
353         operation.  Add sanity checks.
354
355 2013-01-02  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
356
357         * config.bfd (cr16*-*-uclinux*): New target support.
358
359
360 For older changes see ChangeLog-2012
361 \f
362 Copyright (C) 2013 Free Software Foundation, Inc.
363
364 Copying and distribution of this file, with or without modification,
365 are permitted in any medium without royalty provided the copyright
366 notice and this notice are preserved.
367
368 Local Variables:
369 mode: change-log
370 left-margin: 8
371 fill-column: 74
372 version-control: never
373 End: