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