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