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