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