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