bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
9ab066b4
RS
12013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * elfxx-mips.c (mips_got_tls_type): New enum.
4 (mips_got_entry): Add tls_initialized.
5 (mips_elf_got_entry_hash, mips_elf_got_entry_eq, mips_tls_got_relocs)
6 (mips_elf_count_got_entry, mips_elf_initialize_tls_index): Remove
7 GOT_TLS_TYPE masks.
8 (mips_elf_reloc_tls_type, mips_tls_got_entries)
9 (mips_elf_record_global_got_symbol, mips_elf_initialize_tls_index)
10 (_bfd_mips_elf_finish_dynamic_symbol): Use GOT_TLS_NONE rather
11 than GOT_NORMAL.
12 (mips_elf_initialize_tls_slots): Replace got_offset and tls_type_p
13 arguments with a GOT entry. Remove GOT_TLS_TYPE masks. Use
14 tls_initialized rather than GOT_TLS_DONE.
15 (mips_tls_got_index): Delete.
16 (mips_elf_local_got_index, mips_elf_global_got_index): Use
17 mips_elf_initialize_tls_slots rather than mips_tls_got_index.
18 (mips_elf_record_got_entry): Initialize tls_initialized.
19
6c42ddb9
RS
202013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
21
22 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
23 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
24 tls_ie_got_offset and tls_gd_got_offset.
25 (mips_elf_link_hash_newfunc): Remove initialization.
26 (mips_elf_create_got_info): Likewise.
27 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
28 (mips_tls_single_got_index): Delete.
29 (mips_elf_local_got_index): Always use the GOT entry to track
30 GOT indices.
31 (mips_elf_global_got_index): Likewise.
32 (mips_elf_create_local_got_entry): Assert that TLS entries have
33 already been allocated.
34 (mips_elf_record_global_got_symbol): Don't initialize
35 tls_ie_type or tls_gd_type.
36 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
37 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
38 entry.
39 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
40 the GOT entries.
41 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
42 have been allocated.
43 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
44 tls_ie_type and tls_gd_type.
45
ebc53538
RS
462013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
47
48 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
49 aliasing violation. Check for htab allocation failures.
50
13fbec83
RS
512013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
52
53 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
54 split out from...
55 (mips_elf_global_got_index): ...here. Reorder arguments so that
56 the output bfd and info come first.
57 (mips_elf_calculate_relocation): Update the call to
58 mips_elf_global_got_index accordingly.
59 (_bfd_mips_elf_finish_dynamic_symbol): Use
60 mips_elf_primary_global_got_index rather than
61 mips_elf_global_got_index.
62 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
63
3dff0dd1
RS
642013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
65
66 * elfxx-mips.c (mips_got_entry): Update comments.
67 (mips_elf_multi_got_entry_eq): Rename to...
68 (mips_elf_got_entry_eq): ...this, deleting the old definition.
69 (mips_elf_create_got_info): Remove master_got_p argument.
70 Always use mips_elf_got_entry_eq.
71 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
72 Update calls accordingly.
73
d7206569
RS
742013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
75
76 * elfxx-mips.c (mips_got_info): Remove bfd2got.
77 (mips_elf_bfd2got_hash): Delete.
78 (mips_elf_got_per_bfd_arg): Remove bfd2got.
79 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
80 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
81 g->next to test for the multigot case. Use mips_elf_bfd_got rather
82 than mips_elf_got_for_ibfd.
83 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
84 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
85 (mips_elf_make_got_per_bfd): Replace with...
86 (mips_elf_add_got_entry): ...this new function.
87 (mips_elf_make_got_pages_per_bfd): Replace with...
88 (mips_elf_add_got_page_entry): ...this new function.
89 (mips_elf_merge_got_with): Replace bfd2got argument with separate
90 bfd and GOT arguments. Use mips_elf_add_got_entry and
91 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
92 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
93 to set the BFD's GOT and free the old table.
94 (mips_elf_merge_got): Replace bfd2got argument with separate
95 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
96 Use mips_elf_count_got_entries to count the number of entries in
97 each GOT. Update the calls to mips_elf_merge_got_with.
98 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
99 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
100 (mips_elf_multi_got): Don't create the bfd2got hash table.
101 Replace hash table traversal with a walk over the input bfds,
102 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
103 to set the output bfd's GOT.
104 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
105 bfds use the master GOT in the single-GOT case.
106 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
107 rather than mips_elf_got_for_ibfd.
108
ee227692
RS
1092013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
110
111 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
112 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
113 (mips_elf_record_global_got_symbol): Update the hash entry before
114 adding the mips_got_entry. Use mips_elf_record_got_entry to do
115 the latter.
116 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
117 (mips_elf_record_got_page_entry): Record the entry in both the
118 master and bfd GOTs.
119
72e7511a
RS
1202013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
121
122 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
123 create another one if necessary.
124 (mips_elf_set_gotidx): New function.
125 (mips_elf_set_global_gotidx): Use it.
126 (mips_elf_initialize_tls_index): Likewise. Take a
127 mips_elf_traverse_got_arg as argument.
128 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
129 (mips_elf_multi_got): Likewise. Cope with error returns from
130 mips_elf_set_global_gotidx.
131
ab361d49
RS
1322013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
133
134 * elfxx-mips.c (mips_got_info): Add relocs field.
135 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
136 with...
137 (mips_elf_traverse_got_arg): ...this new structure.
138 (mips_elf_count_local_tls_relocs): Delete.
139 (mips_elf_count_global_tls_relocs): Likewise.
140 (mips_elf_count_got_entry): New function.
141 (mips_elf_count_local_got_entries): Likewise.
142 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
143 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
144 (mips_elf_record_local_got_symbol): Don't count got entries here.
145 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
146 (mips_elf_set_global_got_offset): Split into...
147 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
148 new functions. Take a mips_elf_traverse_got_arg rather than a
149 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
150 Use g->relocs to record the number of relocs needed for global GOT
151 entries.
152 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
153 mips_elf_set_global_got_offset_arg. Use the relocs field to count
154 relocations. Update for above function split.
155 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
156 to count both the number of GOT entries and the number of TLS
157 relocs required by local entries. Likewise
158 mips_elf_count_global_tls_entries and global entries.
159 Remove uses of mips_elf_count_local_tls_relocs and
160 mips_elf_count_global_tls_relocs.
161
e641e783
RS
1622013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
163
164 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
165 to say that each structure represents only one type of TLS reference.
166 (GOT_TLS_TYPE): New define.
167 (mips_elf_link_hash_entry): Temporarily split tls_type and
168 tls_got_offset into two variables each.
169 (mips_elf_link_hash_newfunc): Update accordingly.
170 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
171 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
172 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
173 (mips_tls_got_relocs): Use a switch statement.
174 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
175 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
176 local "offset" variable.
177 (mips_tls_got_index): Remove r_type argument and assert. Remove
178 code that handled entries with two TLS types; always use the
179 original got_index instead.
180 (mips_tls_single_got_index): New function.
181 (mips_elf_local_got_index): Use entry->tls_type to check for
182 TLS entries. Use mips_tls_single_got_index. Update call to
183 mips_tls_got_index.
184 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
185 Use p->tls_type to check for TLS entries. Update call to
186 mips_tls_got_index. Use mips_tls_single_got_index.
187 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
188 Use entry.tls_type to check for TLS entries.
189 (mips_elf_record_global_got_symbol): Replace tls_flag argument
190 with r_type argument. Use mips_elf_reloc_tls_type.
191 Set up the new hash entry fields.
192 (mips_elf_record_local_got_symbol): Replace tls_flag argument
193 with r_type argument. Use mips_elf_reloc_tls_type and
194 mips_tls_got_entries. Remove code that handled entries
195 with multiple TLS types.
196 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
197 (mips_elf_initialize_tls_index): Handle new hash entry fields.
198 Use equality rather than masks when checking for specific TLS types.
199 Use mips_tls_got_entries. Remove code that handled entries
200 with multiple TLS types.
201 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
202 testing the hash table entry.
203 (_bfd_mips_elf_check_relocs): Update calls to
204 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
205 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
206 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
207
d9bf376d
RS
2082013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
209
210 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
211 (mips_elf_got_entry_hash): ...this, deleting the old version.
212 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
213 both types of GOT.
214
5334aa52
RS
2152013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
216
217 * elfxx-mips.c (mips_elf_create_got_info): New function.
218 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
219 (mips_elf_create_got_section): Likewise.
220
946c668d
RS
2212013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
222
223 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
224 gotidx to -1.
225
59b08994
RS
2262013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
227
228 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
229
d222d210
RS
2302013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
231
232 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
233 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
234
1fd20d70
RS
2352013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
236
237 * elfxx-mips.c (mips_elf_count_global_tls_entries)
238 (mips_elf_count_global_tls_relocs): Don't count indirect or
239 warning symbols.
240 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
241 number of TLS entries were allocated.
242
7d94b319
RS
2432013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
244
245 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
246
17214937
RS
2472013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
248
249 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
250 if there are TLS relocations.
251
9efeb38d
RS
2522013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
253
254 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
255 (mips_elf_resolve_final_got_entries): Remove bogus comment.
256
7bf52ea2
AM
2572013-02-10 Alan Modra <amodra@gmail.com>
258
259 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
260 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
261 * m68klinux.c (linux_link_hash_table_create): Likewise.
262 * sparclinux.c (linux_link_hash_table_create): Likewise.
263 * sunos.c (sunos_link_hash_table_create): Likewise.
264 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
265 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
266 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
267 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
268 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
269 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
270 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
271 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
272 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
273 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
274 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
275 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
276 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
277 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
278 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
279 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
280 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
281 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
282 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
283 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
284 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
285 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
286 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
287 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
288 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
289 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
290 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
291 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
292
22cdc249
AM
2932013-02-10 Alan Modra <amodra@gmail.com>
294
295 * i386linux.c (linux_link_hash_table_create): Allocate table
296 with bfd_zmalloc, not bfd_alloc.
297 * pdp11.c (link_hash_table_create): Allocate table with
298 bfd_malloc, not bfd_alloc.
299 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
300 with bfd_zmalloc, not bfd_zalloc.
301 (bfin_link_hash_table_create): Likewise.
302 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
303 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
304
0e5de31a
AM
3052013-02-10 Alan Modra <amodra@gmail.com>
306
307 PR ld/15113
308 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
309
ad1fc92a
NC
3102013-02-08 Markos Chandras <markos.chandras@imgtec.com>
311
312 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
313 sections.
34c67f14
NC
314 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
315 symbol.
ad1fc92a 316
170a8295
YZ
3172013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
318
319 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
320 288 to 272.
321
619a703e
AM
3222013-02-08 Alan Modra <amodra@gmail.com>
323
324 PR binutils/15106
325 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
326 * elf.c (elf_find_function): Revert last change. Use new
327 tdata field rather than static vars for cache.
328
02acbe22
L
3292013-02-07 H.J. Lu <hongjiu.lu@intel.com>
330
331 PR ld/15107
332 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
333 symbol is defined in regular object.
334
1965d5f2
AM
3352013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
336
337 PR binutils/15106
338 * elf.c (elf_find_function): Don't cache if symbols change.
339
dafbc74d
AM
3402013-02-07 Alan Modra <amodra@gmail.com>
341
342 PR binutils/14873
343 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
344 copy attributes from or to non-ELF.
345
20e52bd2
L
3462013-02-06 H.J. Lu <hongjiu.lu@intel.com>
347
348 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
349 for non-zero TLS symbol.
350 (elf_i386_relocate_section): Don't resolve size relocation against
351 non-zero TLS symbol.
352 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
353 pc_count for non-zero TLS symbol.
354 (elf_x86_64_relocate_section): Don't resolve size relocation
355 against non-zero TLS symbol.
356
36591ba1 3572013-02-06 Sandra Loosemore <sandra@codesourcery.com>
20e52bd2 358 Andrew Jenner <andrew@codesourcery.com>
36591ba1
SL
359
360 Based on patches from Altera Corporation.
361
362 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
363 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
364 (BFD_BACKENDS): Add elf32-nios2.lo.
365 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
366 * Makefile.in: Regenerated.
367 * configure.in: Add entries for bfd_elf32_bignios2_vec and
368 bfd_elf32_littlenios2_vec.
369 * configure: Regenerated.
370 * config.bfd: Add cases for nios2.
371 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
372 (bfd_mach_nios2): Define.
373 (bfd_nios2_arch): Declare.
374 (bfd_archures_list): Add bfd_nios2_arch.
375 * targets.c (bfd_elf32_bignios2_vec): Declare.
376 (bfd_elf32_littlenios2_vec): Declare.
377 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
378 bfd_elf32_littlenios2_vec.
379 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
380 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
381 * bfd-in2.h: Regenerated.
382 * libbfd.h: Regenerated.
383 * cpu-nios2.c: New file.
384 * elf32-nios2.c: New file.
385
ca6b5f82
AM
3862013-02-06 Alan Modra <amodra@gmail.com>
387
388 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
389 stubs in stub_bfd.
390
37ba9f93
AM
3912013-02-06 Alan Modra <amodra@gmail.com>
392
393 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
394 * Makefile.in: Regenerate.
395
70a38d42
SDJ
3962013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
397 Pedro Alves <palves@redhat.com>
398
399 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
400 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
401 declaration.
402 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
403 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
404 * elf-linux-psinfo.h: New file.
405 * elf.c: Include elf-linux-psinfo.h.
406 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
407 New functions.
408 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
409 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
410 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
411 (elfcore_write_ppc_linux_prpsinfo32): New function.
412
5ee43bc4
TG
4132013-02-04 Tristan Gingold <gingold@adacore.com>
414
415 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
416 start address.
417
0cadb185
AM
4182013-02-04 Alan Modra <amodra@gmail.com>
419
420 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
421 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
422 * Makefile.in: Regenerate.
423 * po/SRC-POTFILES.in: Regenerate.
424
5d42dfb5
AM
4252013-02-04 Alan Modra <amodra@gmail.com>
426
427 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
428 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
429
c57da1a7
AM
4302013-02-01 Alan Modra <amodra@gmail.com>
431
432 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
433 clears def_regular.
434
c0fd7846
TG
4352013-01-31 Tristan Gingold <gingold@adacore.com>
436
437 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
438 earlier. Fix status checking of bfd_mach_o_scan_start_address.
439 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
440
b45b6908
AM
4412013-01-31 Alan Modra <amodra@gmail.com>
442 David S. Miller <davem@davemloft.net>
443
444 PR ld/15056
445 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
446 references to __tls_get_addr.
447 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
448 vtinherit and vtentry reloc handling too.
449 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
450
bcaa2f82
AM
4512013-01-31 Alan Modra <amodra@gmail.com>
452
453 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
454
22aa0c7e
AM
4552013-01-31 Alan Modra <amodra@gmail.com>
456
457 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
458
bc30df16
AM
4592013-01-28 Alan Modra <amodra@gmail.com>
460
461 * elf64-ppc.c: Use %T to print symbols names and remove redundant
462 "relocation" in error messages throughout file.
463 (ppc64_elf_relocate_section): Remove sibling call error message,
464 replace with "call lacks nop". Specially report errors for
465 branches to function entry points via OPD lookup and branches
466 to stubs. Remove NULL symbol handling now done by %T.
467
89d7b8aa
AM
4682013-01-28 Alan Modra <amodra@gmail.com>
469
470 * archive.c (bfd_generic_archive_p): Return target and keep
471 ardata on partial matches.
472 * format.c (bfd_check_format_matches): Adjust for above
473 change. Remove bfd_error_file_ambiguously_recognized dead
474 code.
475
c9ba0c87
AM
4762013-01-26 Alan Modra <amodra@gmail.com>
477
478 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
479 bfd_preserve_finish): Move to..
480 * format.c: ..here, splitting out..
481 (bfd_reinit): ..this. New function.
482 (bfd_check_format_matches): Use bfd_preserve_save/restore to
483 keep bfd state for a match.
484 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
485 * elfcore.h (elf_core_file_p): Likewise.
486 * mach-o.c (bfd_mach_o_header_p): Likewise.
487 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
488 * xsym.c (bfd_sym_object_p): Likewise.
489 * mmo.c (mmo_scan): Clear abfd->symcount.
490 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
491 * section.c (bfd_section_list_clear): Clear section_htab.count.
492 * bfd-in2.h: Regenerate.
493
d79dcc73
NC
4942013-01-25 Michael Schewe <michael.schewe@gmx.net>
495
496 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
497 second reloc, make sure that the reloc potentially exists first.
498
78c8d46c
NC
4992013-01-24 Nick Clifton <nickc@redhat.com>
500
501 * archures.c: Add bfd_mach_v850e3v5.
502 * bfd-in2.h: Regenerate.
503 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
504 * cpu-v850_rh850.c: Likewise.
505 * elf32-v850.c: Add support for v850e3v5 architecture.
506
1a18f0ae
NC
5072013-01-23 Markos Chandras <markos.chandras@imgtec.com>
508
509 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
510
f65a9e53
AM
5112013-01-23 Leif Ekblad <leif@rdos.net>
512
513 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
514
3bea1fcb
L
5152013-01-18 H.J. Lu <hongjiu.lu@intel.com>
516
517 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
518 non-zero TLS symbol.
519 (elf_i386_relocate_section): Resolve size relocation against
520 non-zero TLS symbol.
521 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
522 for non-zero TLS symbol.
523 (elf_x86_64_relocate_section): Resolve size relocation against
524 non-zero TLS symbol.
525
b1b00fcc
MF
5262013-01-18 Mike Frysinger <vapier@gentoo.org>
527
528 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
529 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
530 true.
531
06a6a421
L
5322013-01-17 H.J. Lu <hongjiu.lu@intel.com>
533
534 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
535 PC-relative relocation.
536 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
537 as PC-relative relocation.
538
6a3e1bae
L
5392013-01-16 H.J. Lu <hongjiu.lu@intel.com>
540
541 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
542 check.
543 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
544
545 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
546 and R_X86_64_SIZE64 check.
547 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
548 nor R_X86_64_SIZE64.
549
1788fc08
L
5502013-01-16 H.J. Lu <hongjiu.lu@intel.com>
551
552 * bfd-in2.h: Regenerated.
553 * libbfd.h: Likewise.
554
555 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
556 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
557 (elf_i386_check_relocs): Handle R_386_SIZE32.
558 (elf_i386_gc_sweep_hook): Likewise.
559 (elf_i386_relocate_section): Likewise.
560
561 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
562 and R_X86_64_SIZE64 entries.
563 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
564 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
565 (elf_x86_64_reloc_name_lookup): Likewise.
566 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
567 R_X86_64_SIZE64.
568 (elf_x86_64_gc_sweep_hook): Likewise.
569 (elf_x86_64_relocate_section): Likewise.
570
571 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
572 BFD_RELOC_SIZE64.
573
1e536451
L
5742013-01-15 H.J. Lu <hongjiu.lu@intel.com>
575
576 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
577 with R_X86_64_RELATIVE64.
578
77bf820f
NC
5792013-01-15 Nick Clifton <nickc@redhat.com>
580
581 * elf32-msp430.c: Fix spelling typo.
582
e2458743
AM
5832013-01-15 Alan Modra <amodra@gmail.com>
584
585 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
586 plt-thread-safe.
587
405bf443
AM
5882013-01-14 Alan Modra <amodra@gmail.com>
589
590 PR binutils/14813
591 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
592 (memory_bclose): Likewise. Return 0 on success.
593 * cache.c (cache_bclose): Likewise.
594 * opncls.c (opncls_bclose, bfd_close): Likewise.
595 * vms-lib.c (vms_lib_bclose): Likewise.
596 * libbfd.h: Regenerate.
597
ee659f1f
AM
5982013-01-13 Alan Modra <amodra@gmail.com>
599
600 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
601 Add ref_dynamic_nonweak.
602 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
603 (_bfd_elf_merge_symbol): Don't call above function. Move
604 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
605 clear dynamic_def.
606 (elf_link_add_object_symbols): Delete redundant "override" test.
607 Don't set dynamic_def here.
608 (elf_link_output_extsym): Update.
609
68c4a57e
L
6102013-01-12 H.J. Lu <hongjiu.lu@intel.com>
611
612 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
613 normal and TLS symbol access.
614 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
615
02be4619
AM
6162013-01-12 Alan Modra <amodra@gmail.com>
617
618 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
619 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
620 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
621
a4542f1b
AM
6222013-01-12 Alan Modra <amodra@gmail.com>
623
624 PR ld/12549
625 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
626 (_bfd_elf_strtab_clear_all_refs): Define.
627 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
628 (_bfd_elf_strtab_clear_all_refs): Delete.
629 * elflink.c (elf_link_add_object_symbols): Clear out added
630 strtab refs. Correct handling of warning common symbols.
631
68ffbac6
L
6322013-01-10 H.J. Lu <hongjiu.lu@intel.com>
633
634 * aout0.c: Remove trailing white spaces.
635 * archive.c: Likewise.
636 * archures.c: Likewise.
637 * bfd-in.h: Likewise.
638 * bfd-in2.h: Likewise.
639 * coff-alpha.c: Likewise.
640 * coff-i860.c: Likewise.
641 * coff-mips.c: Likewise.
642 * coff-ppc.c: Likewise.
643 * coff-tic80.c: Likewise.
644 * coff-x86_64.c: Likewise.
645 * coff-z80.c: Likewise.
646 * coffcode.h: Likewise.
647 * coffgen.c: Likewise.
648 * cofflink.c: Likewise.
649 * compress.c: Likewise.
650 * corefile.c: Likewise.
651 * cpu-arm.c: Likewise.
652 * cpu-avr.c: Likewise.
653 * cpu-bfin.c: Likewise.
654 * cpu-cr16.c: Likewise.
655 * cpu-cr16c.c: Likewise.
656 * cpu-crx.c: Likewise.
657 * cpu-h8300.c: Likewise.
658 * cpu-i386.c: Likewise.
659 * cpu-lm32.c: Likewise.
660 * cpu-m68k.c: Likewise.
661 * cpu-moxie.c: Likewise.
662 * cpu-msp430.c: Likewise.
663 * cpu-sh.c: Likewise.
664 * cpu-xc16x.c: Likewise.
665 * dwarf2.c: Likewise.
666 * ecofflink.c: Likewise.
667 * ecoffswap.h: Likewise.
668 * elf-ifunc.c: Likewise.
669 * elf-m10300.c: Likewise.
670 * elf-vxworks.c: Likewise.
671 * elf32-avr.c: Likewise.
672 * elf32-avr.h: Likewise.
673 * elf32-cr16.c: Likewise.
674 * elf32-cr16c.c: Likewise.
675 * elf32-cris.c: Likewise.
676 * elf32-crx.c: Likewise.
677 * elf32-frv.c: Likewise.
678 * elf32-hppa.c: Likewise.
679 * elf32-i860.c: Likewise.
680 * elf32-ip2k.c: Likewise.
681 * elf32-iq2000.c: Likewise.
682 * elf32-m32c.c: Likewise.
683 * elf32-m68hc1x.c: Likewise.
684 * elf32-msp430.c: Likewise.
685 * elf32-mt.c: Likewise.
686 * elf32-ppc.c: Likewise.
687 * elf32-rl78.c: Likewise.
688 * elf32-s390.c: Likewise.
689 * elf32-score.h: Likewise.
690 * elf32-sh-symbian.c: Likewise.
691 * elf32-sh.c: Likewise.
692 * elf32-spu.c: Likewise.
693 * elf32-tic6x.c: Likewise.
694 * elf32-v850.c: Likewise.
695 * elf32-xc16x.c: Likewise.
696 * elf32-xtensa.c: Likewise.
697 * elf64-alpha.c: Likewise.
698 * elf64-hppa.c: Likewise.
699 * elf64-ppc.c: Likewise.
700 * elf64-s390.c: Likewise.
701 * elfcore.h: Likewise.
702 * elflink.c: Likewise.
703 * elfxx-mips.c: Likewise.
704 * elfxx-sparc.c: Likewise.
705 * elfxx-tilegx.c: Likewise.
706 * ieee.c: Likewise.
707 * libcoff.h: Likewise.
708 * libpei.h: Likewise.
709 * libxcoff.h: Likewise.
710 * linker.c: Likewise.
711 * mach-o-i386.c: Likewise.
712 * mach-o-target.c: Likewise.
713 * mach-o.c: Likewise.
714 * mach-o.h: Likewise.
715 * mmo.c: Likewise.
716 * opncls.c: Likewise.
717 * pdp11.c: Likewise.
718 * pe-x86_64.c: Likewise.
719 * peXXigen.c: Likewise.
720 * pef-traceback.h: Likewise.
721 * pei-x86_64.c: Likewise.
722 * peicode.h: Likewise.
723 * plugin.c: Likewise.
724 * reloc.c: Likewise.
725 * riscix.c: Likewise.
726 * section.c: Likewise.
727 * som.c: Likewise.
728 * syms.c: Likewise.
729 * tekhex.c: Likewise.
730 * ticoff.h: Likewise.
731 * vaxbsd.c: Likewise.
732 * xcofflink.c: Likewise.
733 * xtensa-isa.c: Likewise.
734
a3c62988
NC
7352013-01-10 Will Newton <will.newton@imgtec.com>
736
737 * Makefile.am: Add Meta.
738 * Makefile.in: Regenerate.
739 * archures.c (bfd_mach_metag): New.
740 * bfd-in2.h: Regenerate.
741 * config.bfd: Add Meta.
742 * configure: Regenerate.
743 * configure.in: Add Meta.
744 * cpu-metag.c: New file.
745 * elf-bfd.h: Add Meta.
746 * elf32-metag.c: New file.
747 * elf32-metag.h: New file.
748 * libbfd.h: Regenerate.
749 * reloc.c: Add Meta relocations.
750 * targets.c: Add Meta.
751
652451f8
YZ
7522013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
753
754 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
755 (elfcore_write_aarch_hw_break): Likewise.
756 (elfcore_write_aarch_hw_watch): Likewise.
757 * elf.c (elfcore_grok_aarch_tls): New function.
758 (elfcore_grok_aarch_hw_break): Likewise.
759 (elfcore_grok_aarch_hw_watch): Likewise.
760 (elfcore_grok_note): Call the new functions to handle the
761 corresponding notes.
762 (elfcore_write_aarch_tls): New function.
763 (elfcore_write_aarch_hw_break): Likewise.
764 (elfcore_write_aarch_hw_watch): Likewise.
765 (elfcore_write_register_note): Call the new functions to handle the
766 corresponding pseudo sections.
767
45a466b5
TT
7682013-01-07 Tom Tromey <tromey@redhat.com>
769
770 * section.c (_bfd_std_section): Rename from std_section.
771 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
772 (STD_SECTION): Update.
773 * bfd-in2.h: Rebuild.
774
e407c74b
NC
7752013-01-04 Juergen Urban <JuergenUrban@gmx.de>
776
777 * archures.c (bfd_mach_mips5900): Define.
778 * bfd-in2.h: Regenerate.
779 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
780 * cpu-mips.c: Add support for MIPS r5900.
781 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
782
9b239e0e
NC
7832013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
784 Nick Clifton <nickc@redhat.com>
785
786 * elflink.c (get_value): Prevent the use of an undefined shift
787 operation. Add sanity checks.
788
bab4becb 7892013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
884f2a8d 790
bab4becb 791 * config.bfd (cr16*-*-uclinux*): New target support.
884f2a8d 792
9911c0fc 793
bab4becb 794For older changes see ChangeLog-2012
56882138 795\f
bab4becb 796Copyright (C) 2013 Free Software Foundation, Inc.
752937aa
NC
797
798Copying and distribution of this file, with or without modification,
799are permitted in any medium without royalty provided the copyright
800notice and this notice are preserved.
801
56882138
AM
802Local Variables:
803mode: change-log
804left-margin: 8
805fill-column: 74
806version-control: never
807End:
This page took 0.836514 seconds and 4 git commands to generate.