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