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