bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * elfxx-mips.c (mips_got_info): Add relocs field.
4 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
5 with...
6 (mips_elf_traverse_got_arg): ...this new structure.
7 (mips_elf_count_local_tls_relocs): Delete.
8 (mips_elf_count_global_tls_relocs): Likewise.
9 (mips_elf_count_got_entry): New function.
10 (mips_elf_count_local_got_entries): Likewise.
11 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
12 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
13 (mips_elf_record_local_got_symbol): Don't count got entries here.
14 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
15 (mips_elf_set_global_got_offset): Split into...
16 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
17 new functions. Take a mips_elf_traverse_got_arg rather than a
18 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
19 Use g->relocs to record the number of relocs needed for global GOT
20 entries.
21 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
22 mips_elf_set_global_got_offset_arg. Use the relocs field to count
23 relocations. Update for above function split.
24 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
25 to count both the number of GOT entries and the number of TLS
26 relocs required by local entries. Likewise
27 mips_elf_count_global_tls_entries and global entries.
28 Remove uses of mips_elf_count_local_tls_relocs and
29 mips_elf_count_global_tls_relocs.
30
31 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
32
33 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
34 to say that each structure represents only one type of TLS reference.
35 (GOT_TLS_TYPE): New define.
36 (mips_elf_link_hash_entry): Temporarily split tls_type and
37 tls_got_offset into two variables each.
38 (mips_elf_link_hash_newfunc): Update accordingly.
39 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
40 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
41 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
42 (mips_tls_got_relocs): Use a switch statement.
43 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
44 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
45 local "offset" variable.
46 (mips_tls_got_index): Remove r_type argument and assert. Remove
47 code that handled entries with two TLS types; always use the
48 original got_index instead.
49 (mips_tls_single_got_index): New function.
50 (mips_elf_local_got_index): Use entry->tls_type to check for
51 TLS entries. Use mips_tls_single_got_index. Update call to
52 mips_tls_got_index.
53 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
54 Use p->tls_type to check for TLS entries. Update call to
55 mips_tls_got_index. Use mips_tls_single_got_index.
56 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
57 Use entry.tls_type to check for TLS entries.
58 (mips_elf_record_global_got_symbol): Replace tls_flag argument
59 with r_type argument. Use mips_elf_reloc_tls_type.
60 Set up the new hash entry fields.
61 (mips_elf_record_local_got_symbol): Replace tls_flag argument
62 with r_type argument. Use mips_elf_reloc_tls_type and
63 mips_tls_got_entries. Remove code that handled entries
64 with multiple TLS types.
65 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
66 (mips_elf_initialize_tls_index): Handle new hash entry fields.
67 Use equality rather than masks when checking for specific TLS types.
68 Use mips_tls_got_entries. Remove code that handled entries
69 with multiple TLS types.
70 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
71 testing the hash table entry.
72 (_bfd_mips_elf_check_relocs): Update calls to
73 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
74 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
75 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
76
77 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
78
79 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
80 (mips_elf_got_entry_hash): ...this, deleting the old version.
81 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
82 both types of GOT.
83
84 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
85
86 * elfxx-mips.c (mips_elf_create_got_info): New function.
87 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
88 (mips_elf_create_got_section): Likewise.
89
90 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
91
92 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
93 gotidx to -1.
94
95 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
96
97 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
98
99 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
100
101 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
102 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
103
104 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
105
106 * elfxx-mips.c (mips_elf_count_global_tls_entries)
107 (mips_elf_count_global_tls_relocs): Don't count indirect or
108 warning symbols.
109 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
110 number of TLS entries were allocated.
111
112 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
113
114 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
115
116 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
117
118 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
119 if there are TLS relocations.
120
121 2013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
122
123 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
124 (mips_elf_resolve_final_got_entries): Remove bogus comment.
125
126 2013-02-10 Alan Modra <amodra@gmail.com>
127
128 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
129 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
130 * m68klinux.c (linux_link_hash_table_create): Likewise.
131 * sparclinux.c (linux_link_hash_table_create): Likewise.
132 * sunos.c (sunos_link_hash_table_create): Likewise.
133 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
134 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
135 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
136 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
137 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
138 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
139 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
140 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
141 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
142 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
143 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
144 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
145 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
146 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
147 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
148 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
149 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
150 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
151 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
152 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
153 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
154 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
155 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
156 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
157 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
158 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
159 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
160 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
161
162 2013-02-10 Alan Modra <amodra@gmail.com>
163
164 * i386linux.c (linux_link_hash_table_create): Allocate table
165 with bfd_zmalloc, not bfd_alloc.
166 * pdp11.c (link_hash_table_create): Allocate table with
167 bfd_malloc, not bfd_alloc.
168 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
169 with bfd_zmalloc, not bfd_zalloc.
170 (bfin_link_hash_table_create): Likewise.
171 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
172 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
173
174 2013-02-10 Alan Modra <amodra@gmail.com>
175
176 PR ld/15113
177 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
178
179 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
180
181 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
182 sections.
183 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
184 symbol.
185
186 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
187
188 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
189 288 to 272.
190
191 2013-02-08 Alan Modra <amodra@gmail.com>
192
193 PR binutils/15106
194 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
195 * elf.c (elf_find_function): Revert last change. Use new
196 tdata field rather than static vars for cache.
197
198 2013-02-07 H.J. Lu <hongjiu.lu@intel.com>
199
200 PR ld/15107
201 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
202 symbol is defined in regular object.
203
204 2013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
205
206 PR binutils/15106
207 * elf.c (elf_find_function): Don't cache if symbols change.
208
209 2013-02-07 Alan Modra <amodra@gmail.com>
210
211 PR binutils/14873
212 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
213 copy attributes from or to non-ELF.
214
215 2013-02-06 H.J. Lu <hongjiu.lu@intel.com>
216
217 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
218 for non-zero TLS symbol.
219 (elf_i386_relocate_section): Don't resolve size relocation against
220 non-zero TLS symbol.
221 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
222 pc_count for non-zero TLS symbol.
223 (elf_x86_64_relocate_section): Don't resolve size relocation
224 against non-zero TLS symbol.
225
226 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
227 Andrew Jenner <andrew@codesourcery.com>
228
229 Based on patches from Altera Corporation.
230
231 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
232 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
233 (BFD_BACKENDS): Add elf32-nios2.lo.
234 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
235 * Makefile.in: Regenerated.
236 * configure.in: Add entries for bfd_elf32_bignios2_vec and
237 bfd_elf32_littlenios2_vec.
238 * configure: Regenerated.
239 * config.bfd: Add cases for nios2.
240 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
241 (bfd_mach_nios2): Define.
242 (bfd_nios2_arch): Declare.
243 (bfd_archures_list): Add bfd_nios2_arch.
244 * targets.c (bfd_elf32_bignios2_vec): Declare.
245 (bfd_elf32_littlenios2_vec): Declare.
246 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
247 bfd_elf32_littlenios2_vec.
248 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
249 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
250 * bfd-in2.h: Regenerated.
251 * libbfd.h: Regenerated.
252 * cpu-nios2.c: New file.
253 * elf32-nios2.c: New file.
254
255 2013-02-06 Alan Modra <amodra@gmail.com>
256
257 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
258 stubs in stub_bfd.
259
260 2013-02-06 Alan Modra <amodra@gmail.com>
261
262 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
263 * Makefile.in: Regenerate.
264
265 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
266 Pedro Alves <palves@redhat.com>
267
268 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
269 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
270 declaration.
271 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
272 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
273 * elf-linux-psinfo.h: New file.
274 * elf.c: Include elf-linux-psinfo.h.
275 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
276 New functions.
277 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
278 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
279 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
280 (elfcore_write_ppc_linux_prpsinfo32): New function.
281
282 2013-02-04 Tristan Gingold <gingold@adacore.com>
283
284 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
285 start address.
286
287 2013-02-04 Alan Modra <amodra@gmail.com>
288
289 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
290 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
291 * Makefile.in: Regenerate.
292 * po/SRC-POTFILES.in: Regenerate.
293
294 2013-02-04 Alan Modra <amodra@gmail.com>
295
296 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
297 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
298
299 2013-02-01 Alan Modra <amodra@gmail.com>
300
301 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
302 clears def_regular.
303
304 2013-01-31 Tristan Gingold <gingold@adacore.com>
305
306 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
307 earlier. Fix status checking of bfd_mach_o_scan_start_address.
308 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
309
310 2013-01-31 Alan Modra <amodra@gmail.com>
311 David S. Miller <davem@davemloft.net>
312
313 PR ld/15056
314 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
315 references to __tls_get_addr.
316 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
317 vtinherit and vtentry reloc handling too.
318 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
319
320 2013-01-31 Alan Modra <amodra@gmail.com>
321
322 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
323
324 2013-01-31 Alan Modra <amodra@gmail.com>
325
326 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
327
328 2013-01-28 Alan Modra <amodra@gmail.com>
329
330 * elf64-ppc.c: Use %T to print symbols names and remove redundant
331 "relocation" in error messages throughout file.
332 (ppc64_elf_relocate_section): Remove sibling call error message,
333 replace with "call lacks nop". Specially report errors for
334 branches to function entry points via OPD lookup and branches
335 to stubs. Remove NULL symbol handling now done by %T.
336
337 2013-01-28 Alan Modra <amodra@gmail.com>
338
339 * archive.c (bfd_generic_archive_p): Return target and keep
340 ardata on partial matches.
341 * format.c (bfd_check_format_matches): Adjust for above
342 change. Remove bfd_error_file_ambiguously_recognized dead
343 code.
344
345 2013-01-26 Alan Modra <amodra@gmail.com>
346
347 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
348 bfd_preserve_finish): Move to..
349 * format.c: ..here, splitting out..
350 (bfd_reinit): ..this. New function.
351 (bfd_check_format_matches): Use bfd_preserve_save/restore to
352 keep bfd state for a match.
353 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
354 * elfcore.h (elf_core_file_p): Likewise.
355 * mach-o.c (bfd_mach_o_header_p): Likewise.
356 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
357 * xsym.c (bfd_sym_object_p): Likewise.
358 * mmo.c (mmo_scan): Clear abfd->symcount.
359 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
360 * section.c (bfd_section_list_clear): Clear section_htab.count.
361 * bfd-in2.h: Regenerate.
362
363 2013-01-25 Michael Schewe <michael.schewe@gmx.net>
364
365 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
366 second reloc, make sure that the reloc potentially exists first.
367
368 2013-01-24 Nick Clifton <nickc@redhat.com>
369
370 * archures.c: Add bfd_mach_v850e3v5.
371 * bfd-in2.h: Regenerate.
372 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
373 * cpu-v850_rh850.c: Likewise.
374 * elf32-v850.c: Add support for v850e3v5 architecture.
375
376 2013-01-23 Markos Chandras <markos.chandras@imgtec.com>
377
378 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
379
380 2013-01-23 Leif Ekblad <leif@rdos.net>
381
382 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
383
384 2013-01-18 H.J. Lu <hongjiu.lu@intel.com>
385
386 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
387 non-zero TLS symbol.
388 (elf_i386_relocate_section): Resolve size relocation against
389 non-zero TLS symbol.
390 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
391 for non-zero TLS symbol.
392 (elf_x86_64_relocate_section): Resolve size relocation against
393 non-zero TLS symbol.
394
395 2013-01-18 Mike Frysinger <vapier@gentoo.org>
396
397 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
398 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
399 true.
400
401 2013-01-17 H.J. Lu <hongjiu.lu@intel.com>
402
403 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
404 PC-relative relocation.
405 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
406 as PC-relative relocation.
407
408 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
409
410 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
411 check.
412 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
413
414 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
415 and R_X86_64_SIZE64 check.
416 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
417 nor R_X86_64_SIZE64.
418
419 2013-01-16 H.J. Lu <hongjiu.lu@intel.com>
420
421 * bfd-in2.h: Regenerated.
422 * libbfd.h: Likewise.
423
424 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
425 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
426 (elf_i386_check_relocs): Handle R_386_SIZE32.
427 (elf_i386_gc_sweep_hook): Likewise.
428 (elf_i386_relocate_section): Likewise.
429
430 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
431 and R_X86_64_SIZE64 entries.
432 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
433 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
434 (elf_x86_64_reloc_name_lookup): Likewise.
435 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
436 R_X86_64_SIZE64.
437 (elf_x86_64_gc_sweep_hook): Likewise.
438 (elf_x86_64_relocate_section): Likewise.
439
440 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
441 BFD_RELOC_SIZE64.
442
443 2013-01-15 H.J. Lu <hongjiu.lu@intel.com>
444
445 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
446 with R_X86_64_RELATIVE64.
447
448 2013-01-15 Nick Clifton <nickc@redhat.com>
449
450 * elf32-msp430.c: Fix spelling typo.
451
452 2013-01-15 Alan Modra <amodra@gmail.com>
453
454 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
455 plt-thread-safe.
456
457 2013-01-14 Alan Modra <amodra@gmail.com>
458
459 PR binutils/14813
460 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
461 (memory_bclose): Likewise. Return 0 on success.
462 * cache.c (cache_bclose): Likewise.
463 * opncls.c (opncls_bclose, bfd_close): Likewise.
464 * vms-lib.c (vms_lib_bclose): Likewise.
465 * libbfd.h: Regenerate.
466
467 2013-01-13 Alan Modra <amodra@gmail.com>
468
469 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
470 Add ref_dynamic_nonweak.
471 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
472 (_bfd_elf_merge_symbol): Don't call above function. Move
473 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
474 clear dynamic_def.
475 (elf_link_add_object_symbols): Delete redundant "override" test.
476 Don't set dynamic_def here.
477 (elf_link_output_extsym): Update.
478
479 2013-01-12 H.J. Lu <hongjiu.lu@intel.com>
480
481 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
482 normal and TLS symbol access.
483 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
484
485 2013-01-12 Alan Modra <amodra@gmail.com>
486
487 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
488 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
489 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
490
491 2013-01-12 Alan Modra <amodra@gmail.com>
492
493 PR ld/12549
494 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
495 (_bfd_elf_strtab_clear_all_refs): Define.
496 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
497 (_bfd_elf_strtab_clear_all_refs): Delete.
498 * elflink.c (elf_link_add_object_symbols): Clear out added
499 strtab refs. Correct handling of warning common symbols.
500
501 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
502
503 * aout0.c: Remove trailing white spaces.
504 * archive.c: Likewise.
505 * archures.c: Likewise.
506 * bfd-in.h: Likewise.
507 * bfd-in2.h: Likewise.
508 * coff-alpha.c: Likewise.
509 * coff-i860.c: Likewise.
510 * coff-mips.c: Likewise.
511 * coff-ppc.c: Likewise.
512 * coff-tic80.c: Likewise.
513 * coff-x86_64.c: Likewise.
514 * coff-z80.c: Likewise.
515 * coffcode.h: Likewise.
516 * coffgen.c: Likewise.
517 * cofflink.c: Likewise.
518 * compress.c: Likewise.
519 * corefile.c: Likewise.
520 * cpu-arm.c: Likewise.
521 * cpu-avr.c: Likewise.
522 * cpu-bfin.c: Likewise.
523 * cpu-cr16.c: Likewise.
524 * cpu-cr16c.c: Likewise.
525 * cpu-crx.c: Likewise.
526 * cpu-h8300.c: Likewise.
527 * cpu-i386.c: Likewise.
528 * cpu-lm32.c: Likewise.
529 * cpu-m68k.c: Likewise.
530 * cpu-moxie.c: Likewise.
531 * cpu-msp430.c: Likewise.
532 * cpu-sh.c: Likewise.
533 * cpu-xc16x.c: Likewise.
534 * dwarf2.c: Likewise.
535 * ecofflink.c: Likewise.
536 * ecoffswap.h: Likewise.
537 * elf-ifunc.c: Likewise.
538 * elf-m10300.c: Likewise.
539 * elf-vxworks.c: Likewise.
540 * elf32-avr.c: Likewise.
541 * elf32-avr.h: Likewise.
542 * elf32-cr16.c: Likewise.
543 * elf32-cr16c.c: Likewise.
544 * elf32-cris.c: Likewise.
545 * elf32-crx.c: Likewise.
546 * elf32-frv.c: Likewise.
547 * elf32-hppa.c: Likewise.
548 * elf32-i860.c: Likewise.
549 * elf32-ip2k.c: Likewise.
550 * elf32-iq2000.c: Likewise.
551 * elf32-m32c.c: Likewise.
552 * elf32-m68hc1x.c: Likewise.
553 * elf32-msp430.c: Likewise.
554 * elf32-mt.c: Likewise.
555 * elf32-ppc.c: Likewise.
556 * elf32-rl78.c: Likewise.
557 * elf32-s390.c: Likewise.
558 * elf32-score.h: Likewise.
559 * elf32-sh-symbian.c: Likewise.
560 * elf32-sh.c: Likewise.
561 * elf32-spu.c: Likewise.
562 * elf32-tic6x.c: Likewise.
563 * elf32-v850.c: Likewise.
564 * elf32-xc16x.c: Likewise.
565 * elf32-xtensa.c: Likewise.
566 * elf64-alpha.c: Likewise.
567 * elf64-hppa.c: Likewise.
568 * elf64-ppc.c: Likewise.
569 * elf64-s390.c: Likewise.
570 * elfcore.h: Likewise.
571 * elflink.c: Likewise.
572 * elfxx-mips.c: Likewise.
573 * elfxx-sparc.c: Likewise.
574 * elfxx-tilegx.c: Likewise.
575 * ieee.c: Likewise.
576 * libcoff.h: Likewise.
577 * libpei.h: Likewise.
578 * libxcoff.h: Likewise.
579 * linker.c: Likewise.
580 * mach-o-i386.c: Likewise.
581 * mach-o-target.c: Likewise.
582 * mach-o.c: Likewise.
583 * mach-o.h: Likewise.
584 * mmo.c: Likewise.
585 * opncls.c: Likewise.
586 * pdp11.c: Likewise.
587 * pe-x86_64.c: Likewise.
588 * peXXigen.c: Likewise.
589 * pef-traceback.h: Likewise.
590 * pei-x86_64.c: Likewise.
591 * peicode.h: Likewise.
592 * plugin.c: Likewise.
593 * reloc.c: Likewise.
594 * riscix.c: Likewise.
595 * section.c: Likewise.
596 * som.c: Likewise.
597 * syms.c: Likewise.
598 * tekhex.c: Likewise.
599 * ticoff.h: Likewise.
600 * vaxbsd.c: Likewise.
601 * xcofflink.c: Likewise.
602 * xtensa-isa.c: Likewise.
603
604 2013-01-10 Will Newton <will.newton@imgtec.com>
605
606 * Makefile.am: Add Meta.
607 * Makefile.in: Regenerate.
608 * archures.c (bfd_mach_metag): New.
609 * bfd-in2.h: Regenerate.
610 * config.bfd: Add Meta.
611 * configure: Regenerate.
612 * configure.in: Add Meta.
613 * cpu-metag.c: New file.
614 * elf-bfd.h: Add Meta.
615 * elf32-metag.c: New file.
616 * elf32-metag.h: New file.
617 * libbfd.h: Regenerate.
618 * reloc.c: Add Meta relocations.
619 * targets.c: Add Meta.
620
621 2013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
622
623 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
624 (elfcore_write_aarch_hw_break): Likewise.
625 (elfcore_write_aarch_hw_watch): Likewise.
626 * elf.c (elfcore_grok_aarch_tls): New function.
627 (elfcore_grok_aarch_hw_break): Likewise.
628 (elfcore_grok_aarch_hw_watch): Likewise.
629 (elfcore_grok_note): Call the new functions to handle the
630 corresponding notes.
631 (elfcore_write_aarch_tls): New function.
632 (elfcore_write_aarch_hw_break): Likewise.
633 (elfcore_write_aarch_hw_watch): Likewise.
634 (elfcore_write_register_note): Call the new functions to handle the
635 corresponding pseudo sections.
636
637 2013-01-07 Tom Tromey <tromey@redhat.com>
638
639 * section.c (_bfd_std_section): Rename from std_section.
640 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
641 (STD_SECTION): Update.
642 * bfd-in2.h: Rebuild.
643
644 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
645
646 * archures.c (bfd_mach_mips5900): Define.
647 * bfd-in2.h: Regenerate.
648 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
649 * cpu-mips.c: Add support for MIPS r5900.
650 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
651
652 2013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
653 Nick Clifton <nickc@redhat.com>
654
655 * elflink.c (get_value): Prevent the use of an undefined shift
656 operation. Add sanity checks.
657
658 2013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
659
660 * config.bfd (cr16*-*-uclinux*): New target support.
661
662
663 For older changes see ChangeLog-2012
664 \f
665 Copyright (C) 2013 Free Software Foundation, Inc.
666
667 Copying and distribution of this file, with or without modification,
668 are permitted in any medium without royalty provided the copyright
669 notice and this notice are preserved.
670
671 Local Variables:
672 mode: change-log
673 left-margin: 8
674 fill-column: 74
675 version-control: never
676 End:
This page took 0.060842 seconds and 4 git commands to generate.