Commit | Line | Data |
---|---|---|
0955507f TP |
1 | 2016-08-26 Thomas Preud'homme <thomas.preudhomme@arm.com> |
2 | ||
3 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add a new parameter for | |
4 | the input import library bfd. | |
5 | * bfd-in2.h: Regenerate. | |
6 | * elf32-arm.c (struct elf32_arm_link_hash_table): New in_implib_bfd | |
7 | and new_cmse_stub_offset fields. | |
8 | (stub_hash_newfunc): Initialize stub_offset and stub_template_size to | |
9 | -1. | |
10 | (elf32_arm_add_stub): Likewise for stub_offset. | |
11 | (arm_new_stubs_start_offset_ptr): New function. | |
12 | (arm_build_one_stub): Only allocate a stub_offset if it is -1. Allow | |
13 | empty SG veneers to have zero relocations. | |
14 | (arm_size_one_stub): Only initialize stub size and template | |
15 | information for non empty veneers. Do not update veneer section size | |
16 | if veneer already has an offset. | |
17 | (elf32_arm_create_stub): Return the stub entry pointer or NULL instead | |
18 | of a boolean indicating success or failure. | |
19 | (cmse_scan): Change stub_changed parameter into an integer pointer | |
20 | parameter cmse_stub_created to count the number of stub created and | |
21 | adapt to change of return value in elf32_arm_create_stub. | |
22 | (cmse_entry_fct_p): New function. | |
23 | (arm_list_new_cmse_stub): Likewise. | |
24 | (set_cmse_veneer_addr_from_implib): Likewise. | |
25 | (elf32_arm_size_stubs): Define cmse_stub_created, pass its address to | |
26 | cmse_scan instead of that of cmse_stub_changed to compute the number | |
27 | of stub created and use it to initialize stub_changed. Call | |
28 | set_cmse_veneer_addr_from_implib after all cmse_scan. Adapt to change | |
29 | of return value in elf32_arm_create_stub. Use | |
30 | arm_stub_section_start_offset () if not NULL to initialize size of | |
31 | secure gateway veneers section. Initialize stub_offset of Cortex-A8 | |
32 | erratum fix to -1. Use ret to hold return value. | |
33 | (elf32_arm_build_stubs): Use arm_stub_section_start_offset () if not | |
34 | NULL to initialize size of secure gateway veneers section. Adapt | |
35 | comment to stress the importance of zeroing veneer section content. | |
36 | (bfd_elf32_arm_set_target_relocs): Add new in_implib_bfd parameter to | |
37 | initialize eponymous field in struct elf32_arm_link_hash_table. | |
38 | ||
e3e9290d AA |
39 | 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
40 | ||
41 | * elf32-s390.c (stdarg.h): New include. | |
42 | (elf_s390_grok_psinfo): New function. | |
43 | (elf_s390_write_core_note): New function. | |
44 | (elf_backend_grok_psinfo): Declare backend hook. | |
45 | (elf_backend_write_core_note): Likewise. | |
46 | * elf64-s390.c (stdarg.h): New include. | |
47 | (elf_s390_grok_prstatus): New function. | |
48 | (elf_s390_grok_psinfo): New function. | |
49 | (elf_s390_write_core_note): New function. | |
50 | (elf_backend_grok_prstatus): Declare backend hook. | |
51 | (elf_backend_grok_psinfo): Likewise. | |
52 | (elf_backend_write_core_note): Likewise. | |
53 | ||
ceada896 AA |
54 | 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
55 | ||
56 | * elf32-s390.c (allocate_dynrelocs): Fix indentation. | |
57 | (elf_s390_finish_ifunc_symbol): Likewise. | |
58 | (elf_s390_finish_dynamic_symbol): Likewise. | |
59 | (elf_s390_finish_dynamic_sections): Likewise. | |
60 | (elf_s390_grok_prstatus): Likewise. | |
61 | * elf64-s390.c (elf_s390_hash_table): Fix indentation. | |
62 | (elf_s390_finish_dynamic_symbol): Likewise. | |
63 | ||
47f7f636 AK |
64 | 2016-08-24 Anton Kolesov <Anton.Kolesov@synopsys.com> |
65 | ||
66 | * elf32-arc.c (elf32_arc_grok_prstatus): New function. | |
67 | ||
6342be70 NC |
68 | 2016-08-23 Nick Clifton <nickc@redhat.com> |
69 | ||
70 | * elf32-arm.c (elf32_arm_count_additional_relocs): Return zero if | |
71 | there is no arm data associated with the section. | |
72 | ||
eacfca90 AM |
73 | 2016-08-23 Alan Modra <amodra@gmail.com> |
74 | ||
75 | PR 20475 | |
76 | * elf32-or1k.c (or1k_elf_relocate_section): Offset from | |
77 | _GLOBAL_OFFSET_TABLE_, not start of .got section. | |
78 | ||
5fbe0d87 NC |
79 | 2016-08-22 Nick Clifton <nickc@redhat.com> |
80 | ||
81 | * doc/chew.c (main): Free the string buffer used to files as they | |
82 | are parsed. | |
83 | ||
888a7fc3 AM |
84 | 2016-08-22 Alan Modra <amodra@gmail.com> |
85 | ||
86 | * elf32-ppc.c (ppc_elf_check_relocs): Move error for @local ifunc.. | |
87 | (ppc_elf_relocate_section): ..to here. Comment. Error on | |
88 | detecting -mbss-plt -fPIC local ifuncs too. | |
89 | (ppc_elf_size_dynamic_sections): Comment on unnecessary glink | |
90 | branch table entries. | |
91 | ||
dd905818 NC |
92 | 2016-08-19 Nick Clifton <nickc@redhat.com> |
93 | ||
94 | * elf.c (assign_section_numbers): Assign number for the .shstrtab | |
95 | section after the symbol table and string table sections. | |
96 | ||
d311bc8b AM |
97 | 2016-08-19 Alan Modra <amodra@gmail.com> |
98 | ||
99 | * elf64-ppc.c (struct ppc_link_hash_entry): Add weakref. | |
100 | (ppc64_elf_copy_indirect_symbol): Set weakref. Don't merge | |
101 | dyn_relocs for weakdefs. | |
102 | (alias_readonly_dynrelocs): New function. | |
103 | (ppc64_elf_adjust_dynamic_symbol): Use alias_readonly_dynrelocs. | |
104 | (ppc64_elf_relocate_section): Simplify condition under which | |
105 | dyn_relocs are emitted. | |
106 | ||
8a2058b5 AM |
107 | 2016-08-19 Alan Modra <amodra@gmail.com> |
108 | ||
109 | PR 20472 | |
110 | * elf64-ppc.c (ppc64_elf_before_check_relocs): Tweak abiversion test. | |
111 | (readonly_dynrelocs): Comment fix. | |
112 | (global_entry_stub): New function. | |
113 | (ppc64_elf_adjust_dynamic_symbol): Tweak abiversion test. Match | |
114 | ELFv2 code deciding on dynamic relocs vs. global entry stubs to | |
115 | that in size_global_entry_stubs, handling ifunc too. Delete dead | |
116 | weak sym code. | |
117 | (allocate_dynrelocs): Ensure dyn_relocs field is cleared when no | |
118 | dyn_relocs are needed. Correct handling of ifunc dyn_relocs. | |
119 | Tidy ELIMINATE_COPY_RELOCS code, only setting dynindx for | |
120 | undefweak syms. Expand and correct comments. | |
121 | (size_global_entry_stubs): Ensure symbol is defined. | |
122 | (ppc64_elf_relocate_section): Match condition under which | |
123 | dyn_relocs are emitted to that in allocate_dynrelocs. | |
124 | ||
90ac2420 AM |
125 | 2016-08-12 Alan Modra <amodra@gmail.com> |
126 | ||
127 | * elf-bfd.h (struct elf_link_hash_table): Add local_dynsymcount. | |
128 | * elflink.c (_bfd_elf_link_renumber_dynsyms): Set local_dynsymcount. | |
129 | (bfd_elf_final_link): Set .dynsym sh_info from local_dynsymcount. | |
130 | ||
d93d1c80 AM |
131 | 2016-08-11 Alan Modra <amodra@gmail.com> |
132 | ||
133 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't exit with | |
134 | non_got_ref true in any case where we could have generated dynbss | |
135 | copies but decide not to do so. | |
136 | ||
fe152e64 MR |
137 | 2016-08-10 Maciej W. Rozycki <macro@imgtec.com> |
138 | ||
139 | * elfxx-mips.c (mips_elf_add_la25_stub): Clear the ISA bit of | |
140 | the stub address retrieved if associated with a microMIPS | |
141 | function. | |
142 | ||
a848a227 MR |
143 | 2016-08-10 Maciej W. Rozycki <macro@imgtec.com> |
144 | ||
145 | * elfxx-mips.c (mips_elf_create_stub_symbol): For a microMIPS | |
146 | stub also add STO_MICROMIPS annotation. | |
147 | ||
c7318def MR |
148 | 2016-08-10 Maciej W. Rozycki <macro@imgtec.com> |
149 | ||
150 | * elfxx-mips.c (mips_elf_calculate_relocation): Set the ISA bit | |
151 | in microMIPS LA25 stub references. | |
152 | ||
68994ca2 JW |
153 | 2016-08-09 Jiaming Wei <jmwei@hxgpt.com> |
154 | ||
155 | * elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Fix thinko | |
156 | adjusting the use_count of merged .got entries. | |
157 | ||
8a286b63 NC |
158 | 2016-08-08 Nick Clifton <nickc@redhat.com> |
159 | ||
160 | * doc/chew.c (delete_string): Only free the string buffer if it is | |
161 | there. Mark the buffer as NULL after freeing. | |
162 | (drop): Free the dropped string. | |
163 | (free_words): New function: Frees the memory allocated to the | |
164 | dictionary. | |
165 | (add_instrinsic): Duplicate the name string, so that it can be | |
166 | freed later on. | |
167 | (compile): Free unused words. | |
168 | (main): Free the dictionary and top level string buffers at the | |
169 | end. | |
170 | ||
54ddd295 TP |
171 | 2016-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com> |
172 | ||
173 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add one parameter. | |
174 | * bfd-in2.h: Regenerate. | |
175 | * elf32-arm.c (struct elf32_arm_link_hash_table): Declare new | |
176 | cmse_implib field. | |
177 | (bfd_elf32_arm_set_target_relocs): Add new parameter to initialize | |
178 | cmse_implib field in struct elf32_arm_link_hash_table. | |
179 | (elf32_arm_filter_cmse_symbols): New function. | |
180 | (elf32_arm_filter_implib_symbols): Likewise. | |
181 | (elf_backend_filter_implib_symbols): Define to | |
182 | elf32_arm_filter_implib_symbols. | |
183 | ||
4ba2ef8f TP |
184 | 2016-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com> |
185 | ||
186 | * elf32-arm.c (CMSE_PREFIX): Define macro. | |
187 | (elf32_arm_stub_cmse_branch_thumb_only): Define stub sequence. | |
188 | (cmse_branch_thumb_only): Declare stub. | |
189 | (struct elf32_arm_link_hash_table): Define cmse_stub_sec field. | |
190 | (elf32_arm_get_plt_info): Add globals parameter. Use it to return | |
191 | FALSE if there is no PLT. | |
192 | (arm_type_of_stub): Adapt to new elf32_arm_get_plt_info signature. | |
193 | (elf32_arm_final_link_relocate): Likewise. | |
194 | (elf32_arm_gc_sweep_hook): Likewise. | |
195 | (elf32_arm_gc_mark_extra_sections): Mark sections holding ARMv8-M | |
196 | secure entry functions. | |
197 | (arm_stub_is_thumb): Add case for arm_stub_cmse_branch_thumb_only. | |
198 | (arm_dedicated_stub_output_section_required): Change to a switch case | |
199 | and add a case for arm_stub_cmse_branch_thumb_only. | |
200 | (arm_dedicated_stub_output_section_required_alignment): Likewise. | |
201 | (arm_stub_dedicated_output_section_name): Likewise. | |
202 | (arm_stub_dedicated_input_section_ptr): Likewise and remove | |
203 | ATTRIBUTE_UNUSED for htab parameter. | |
204 | (arm_stub_required_alignment): Likewise. | |
205 | (arm_stub_sym_claimed): Likewise. | |
206 | (arm_dedicated_stub_section_padding): Likewise. | |
207 | (cmse_scan): New function. | |
208 | (elf32_arm_size_stubs): Call cmse_scan for ARM M profile targets. | |
209 | Set stub_changed to TRUE if such veneers were created. | |
210 | (elf32_arm_swap_symbol_in): Add detection code for CMSE special | |
211 | symbols. | |
212 | ||
89d77b8a AM |
213 | 2016-08-02 Alan Modra <amodra@gmail.com> |
214 | ||
215 | PR ld/20428 | |
216 | * elf64-ppc.c (ppc_get_stub_entry): Don't segfault on NULL group. | |
217 | ||
a94d834c NC |
218 | 2016-08-02 Nick Clifton <nickc@redhat.com> |
219 | ||
220 | PR ld/17739 | |
221 | * elf32-sh.c (sh_elf_gc_sweep_hook): Delete. | |
222 | (elf_backend_sweep_hook): Delete. | |
223 | ||
dfdaec14 AJ |
224 | 2016-08-01 Andrew Jenner <andrew@codesourcery.com> |
225 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
226 | ||
227 | * elf32-ppc.c (is_branch_reloc): Recognise VLE branch relocations. | |
228 | (ppc_elf_howto_raw): Fix dst_mask of R_PPC_VLE_REL15. | |
229 | (ppc_elf_vle_split16): Clear field before inserting. | |
230 | ||
781bf64d NC |
231 | 2016-08-01 Nick Clifton <nickc@redhat.com> |
232 | ||
233 | * po/sv.po: Updated Swedish translation. | |
234 | ||
147d994b NC |
235 | 2016-07-27 Ozkan Sezer <sezeroz@gmail.com> |
236 | Nick Clifton <nickc@redhat.com> | |
237 | ||
238 | PR ld/20401 | |
239 | * coffgen.c (fini_reloc_cookie_rels): Check for the extistence | |
240 | of the coff_section_data before using it. | |
241 | ||
54806ffa MR |
242 | 2016-07-26 Maciej W. Rozycki <macro@imgtec.com> |
243 | ||
244 | * elfxx-mips.c (mips_elf_calculate_relocation): Handle branches | |
245 | in PLT compression selection. | |
246 | (_bfd_mips_elf_check_relocs): Likewise. | |
247 | ||
c02d11a5 CM |
248 | 2016-07-22 Cupertino Miranda <cmiranda@synopsys.com> |
249 | ||
250 | * arc-got.h (relocate_fix_got_relocs_for_got_info): Handle the | |
251 | case where there's no elf_link_hash_entry while processing | |
252 | GOT_NORMAL got entries. | |
253 | ||
fecd57f9 L |
254 | 2016-07-21 H.J. Lu <hongjiu.lu@intel.com> |
255 | ||
256 | * version.m4 (BFD_VERSION): Set to 2.27.51. | |
257 | * configure: Regenerated. | |
258 | ||
5df1bc57 AM |
259 | 2016-07-21 Nick Clifton <nickc@redhat.com> |
260 | ||
261 | * elf.c (_bfd_elf_filter_global_symbols): Skip local symbols. | |
262 | (swap_out_syms): Return an error when not finding ELF output | |
263 | section rather than asserting. | |
264 | ||
265 | 2016-07-21 Thomas Preud'homme <thomas.preudhomme@arm.com> | |
266 | ||
267 | * elflink.c (elf_output_implib): Call bfd_set_error on no symbols. | |
268 | ||
0064d223 JB |
269 | 2016-07-20 John Baldwin <jhb@FreeBSD.org> |
270 | ||
271 | * elf.c (elfcore_grok_freebsd_psinfo): Check for minimum note size | |
272 | and handle pr_pid if present. | |
273 | ||
89b829a8 L |
274 | 2016-07-20 H.J. Lu <hongjiu.lu@intel.com> |
275 | ||
276 | PR ld/20376 | |
277 | * elf.c (assign_file_positions_for_load_sections): Also check | |
278 | p_paddr for program header space. | |
279 | ||
3ce51288 AM |
280 | 2016-07-20 Alan Modra <amodra@gmail.com> |
281 | ||
282 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_PLTREL32>): Put | |
283 | ppc64_elf_unhandled_reloc for special_function. | |
284 | * elf32-ppc.c (ppc_elf_howto_raw): Similarly for lots of relocs. | |
285 | ||
a6ebf616 MR |
286 | 2016-07-19 Maciej W. Rozycki <macro@imgtec.com> |
287 | ||
288 | * elfxx-mips.c (mips_elf_perform_relocation): Convert cross-mode | |
289 | BAL to JALX. | |
290 | (_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Add a | |
291 | corresponding error message. | |
292 | ||
9d862524 MR |
293 | 2016-07-19 Maciej W. Rozycki <macro@imgtec.com> |
294 | ||
295 | * elfxx-mips.c (b_reloc_p): Add R_MICROMIPS_PC16_S1, | |
296 | R_MICROMIPS_PC10_S1 and R_MICROMIPS_PC7_S1. | |
297 | (branch_reloc_p): New function. | |
298 | (mips_elf_calculate_relocation): Handle ISA mode determination | |
299 | for relocations against section symbols, against absolute | |
300 | symbols and absolute relocations. Also set `*cross_mode_jump_p' | |
301 | for branches. | |
302 | <R_MIPS16_26, R_MIPS_26, R_MICROMIPS_26_S1>: Suppress alignment | |
303 | checks for weak undefined symbols. Also check target alignment | |
304 | within the same ISA mode. | |
305 | <R_MIPS_PC16, R_MIPS_GNU_REL16_S2>: Handle cross-mode branches | |
306 | in the alignment check. | |
307 | <R_MICROMIPS_PC7_S1>: Add an alignment check. | |
308 | <R_MICROMIPS_PC10_S1>: Likewise. | |
309 | <R_MICROMIPS_PC16_S1>: Likewise. | |
310 | (mips_elf_perform_relocation): Report a failure for unsupported | |
311 | same-mode JALX instructions and cross-mode branches. | |
312 | (_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Add | |
313 | error messages for jumps to misaligned addresses. | |
314 | ||
7d0b9ebc AM |
315 | 2016-07-16 Alan Modra <amodra@gmail.com> |
316 | ||
317 | * elflink.c: Include plugin-api.h. | |
318 | * plugin.c (bfd_plugin_open_input): New function, extracted from.. | |
319 | (try_claim): ..here. | |
320 | * plugin.h: Don't include bfd.h. | |
321 | (bfd_plugin_open_input): Declare. | |
322 | ||
4212b42d AM |
323 | 2016-07-16 Alan Modra <amodra@gmail.com> |
324 | ||
325 | * targets.c (bfd_seach_for_target): Rename to.. | |
326 | (bfd_iterate_over_targets): ..this. Rewrite doc. | |
327 | * bfd-in2.h: Regenerate. | |
328 | ||
00dad9a4 AM |
329 | 2016-07-16 Alan Modra <amodra@gmail.com> |
330 | ||
331 | * archures.c (bfd_default_set_arch_mach): Make available in bfd.h. | |
332 | * libbfd.h: Regenerate. | |
333 | * bfd-in2.h: Regenerate. | |
334 | ||
76e7a751 AM |
335 | 2016-07-16 Alan Modra <amodra@gmail.com> |
336 | ||
337 | * libbfd-in.h (BFD_ALIGN): Move to.. | |
338 | * bfd-in.h: ..here. | |
339 | * elf32-ppc.h (struct ppc_elf_params): Add pagesize. | |
340 | * elf32-ppc.c (default_params): Adjust init. | |
341 | (ppc_elf_link_params): Set pagesize_p2. | |
342 | * libbfd.h: Regenerate. | |
343 | * bfd-in2.h: Regenerate. | |
344 | ||
76359541 TP |
345 | 2016-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com> |
346 | ||
347 | * elf-bfd.h (elf_backend_filter_implib_symbols): Declare backend hook. | |
348 | (_bfd_elf_filter_global_symbols): Declare. | |
349 | * elf.c (_bfd_elf_filter_global_symbols): New function. | |
350 | * elflink.c (elf_filter_global_symbols): Likewise. | |
351 | (elf_output_implib): Likewise. | |
352 | (bfd_elf_final_link): Call above function, failing if it does. | |
353 | * elfxx-target.h (elf_backend_filter_implib_symbols): Define macro and | |
354 | default it to NULL. | |
355 | (elf_backend_copy_indirect_symbol): Fix spacing. | |
356 | (elf_backend_hide_symbol): Likewise. | |
357 | (elfNN_bed): Initialize elf_backend_filter_implib_symbols backend hook. | |
358 | ||
f7e8b360 NC |
359 | 2016-07-15 Andrew Burgess <andrew.burgess@embecosm.com> |
360 | Nick Clifton <nickc@redhat.com> | |
361 | ||
362 | * elf32-arc.c (PR_DEBUG): Delete. | |
363 | Fix printing of debug information. Fix formatting of debug | |
364 | statements. | |
365 | (debug_arc_reloc): Handle symbols that are not from an input file. | |
366 | (arc_do_relocation): Remove excessive exclamation points. | |
367 | ||
368 | * arc-got.h: Fix formatting. Fix printing of debug information. | |
369 | (new_got_entry_to_list): Use xmalloc. | |
370 | * config.bfd: use the big-endian arc vector as the default vector | |
371 | for big-endian arc targets. | |
372 | ||
06ab6faf AM |
373 | 2016-07-15 Alan Modra <amodra@gmail.com> |
374 | ||
375 | * cofflink.c (mark_relocs): Exclude relocs with -1 r_symndx | |
376 | from marking sym_indices. | |
377 | ||
0c117286 MR |
378 | 2016-07-14 Maciej W. Rozycki <macro@imgtec.com> |
379 | ||
380 | * reloc.c (bfd_perform_relocation): Try the `howto' handler | |
381 | first with relocations against absolute symbols. | |
382 | (bfd_install_relocation): Likewise. | |
383 | ||
37567a2c L |
384 | 2016-07-12 H.J. Lu <hongjiu.lu@intel.com> |
385 | ||
386 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
387 | .got/.got.plt sections to 8 bytes. | |
388 | ||
cf143069 NC |
389 | 2016-07-12 Nick Clifton <nickc@redhat.com> |
390 | ||
391 | * binary.c (binary_set_section_contents): Second grammar fix. | |
392 | ||
f231881e DR |
393 | 2016-07-12 Douglas B Rupp <rupp@adacore.com> |
394 | ||
395 | * binary.c (binary_set_section_contents): Fix grammar in warning | |
396 | message. | |
397 | ||
b9316f59 CM |
398 | 2016-07-11 Cupertino Miranda <cmiranda@synopsys.com> |
399 | ||
400 | * elf32-arc.c: made PR_DEBUG always defined. | |
401 | ||
08759e0f CM |
402 | 2016-07-11 Cupertino Miranda <cmiranda@synopsys.com> |
403 | ||
404 | * arc-got.h: Moved got related structures from elf32-arc.c to | |
405 | this file. More precisely, tls_type_e, tls_got_entries, got_entry. | |
406 | * (arc_get_local_got_ents, got_entry_for_type, new_got_entry_to_list, | |
407 | tls_type_for_reloc, symbol_has_entry_of_type, | |
408 | get_got_entry_list_for_symbol, arc_got_entry_type_for_reloc, | |
409 | ADD_SYMBOL_REF_SEC_AND_RELOC, rc_fill_got_info_for_reloc, | |
410 | relocate_fix_got_relocs_for_got_info, | |
411 | create_got_dynrelocs_for_single_entry, | |
412 | create_got_dynrelocs_for_got_info): Added to file. | |
413 | * elf32-arc.c: Removed GOT & TLS related structs and functions to | |
414 | arc-got.h. | |
415 | ||
458653a9 | 416 | 2016-07-08 James Bowman <james.bowman@ftdichip.com> |
417 | ||
418 | * elf32-ft32.c (ft32_reloc_map): Use R_FT32_32 for BFD_RELOC_32. | |
419 | ||
d5a67c02 AV |
420 | 2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com> |
421 | ||
422 | * elf32-arm.c (THUMB32_MOVT): New veneer macro. | |
423 | (THUMB32_MOVW): Likewise. | |
424 | (elf32_arm_stub_long_branch_thumb2_only_pure): New. | |
425 | (DEF_STUBS): Define long_branch_thumb2_only_pure. | |
426 | (arm_stub_is_thumb): Add new veneer stub. | |
427 | (arm_type_of_stub): Use new veneer. | |
428 | (arm_stub_required_alignment): Add new veneer. | |
429 | ||
f0728ee3 AV |
430 | 2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com> |
431 | ||
432 | * bfd-in2.h (SEC_ELF_NOREAD): Rename to ... | |
433 | (SEC_ELF_PURECODE): ... this. | |
434 | * elf32-arm.c (elf32_arm_post_process_headers): Rename SEC_ELF_NOREAD | |
435 | to SEC_ELF_NOREAD. | |
436 | (elf32_arm_fake_sections): Likewise. | |
437 | (elf_32_arm_section_flags): Likewise. | |
438 | (elf_32_arm_lookup_section_flags): Likewise. | |
439 | * section.c (SEC_ELF_NOREAD): Rename to ... | |
440 | (SEC_ELF_PURECODE): ... this. | |
441 | ||
5e866f5a TP |
442 | 2016-07-01 Thomas Preud'homme <thomas.preudhomme@arm.com> |
443 | ||
444 | * elf32-arm.c (using_thumb2_bl): New function. | |
445 | (arm_type_of_stub): Declare thumb2 variable together and change type | |
446 | to bfd_boolean. Use using_thumb2_bl () to determine whether | |
447 | THM_MAX_FWD_BRANCH_OFFSET or THM2_MAX_FWD_BRANCH_OFFSET should be | |
448 | checked for BL range. | |
449 | (elf32_arm_final_link_relocate): Use using_thumb2_bl () to determine | |
450 | the bit size of BL offset. | |
451 | ||
d691934d NC |
452 | 2016-06-29 Nick Clifton <nickc@redhat.com> |
453 | ||
454 | * elfnn-aarch64.c (is_aarch64_mapping_symbol): New function. | |
455 | Returns TRUE for AArch64 mapping symbols. | |
456 | (elfNN_aarch64_backend_symbol_processing): New function. Marks | |
457 | mapping symbols as precious in object files so that they will not | |
458 | be stripped. | |
459 | (elf_backend_symbol_processing): Define. | |
460 | ||
461 | * elf32-arm.c (is_arm_mapping_symbol): New function. Returns TRUE | |
462 | for ARM mapping symbols. | |
463 | (elf32_arm_backend_symbol_processing): Make use of the new function. | |
464 | ||
f4ab0e2d L |
465 | 2016-06-28 H.J. Lu <hongjiu.lu@intel.com> |
466 | ||
467 | PR ld/20306 | |
468 | * elflink.c (elf_link_check_versioned_symbol): Return false | |
469 | for unreferenced undefined symbol. | |
470 | ||
fca2a38f NC |
471 | 2016-06-28 Nick Clifton <nickc@redhat.com> |
472 | ||
1b857aee NC |
473 | * elf32-bfin.c (bfin_adjust_dynamic_symbol): Fail if a COPY reloc |
474 | is needed. | |
475 | ||
fca2a38f NC |
476 | * elf32-arm.c (elf32_arm_backend_symbol_processing): New |
477 | function. Marks mapping symbols in object files as precious, so | |
478 | that strip will not remove them. | |
479 | (elf_backend_symbol_processing): Define. | |
480 | ||
7160c10d JC |
481 | 2016-06-28 James Clarke <jrtc27@jrtc27.com> |
482 | ||
483 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Don't convert | |
484 | R_SPARC_32 to R_SPARC_RELATIVE if class is ELFCLASS64. | |
485 | ||
c9775dde MR |
486 | 2016-06-28 Maciej W. Rozycki <macro@imgtec.com> |
487 | ||
488 | * elf32-mips.c (elf_mips16_howto_table_rel): Add | |
489 | R_MIPS16_PC16_S1. | |
490 | (mips16_reloc_map): Likewise. | |
491 | * elf64-mips.c (mips16_elf64_howto_table_rel): Likewise. | |
492 | (mips16_elf64_howto_table_rela): Likewise. | |
493 | (mips16_reloc_map): Likewise. | |
494 | * elfn32-mips.c (elf_mips16_howto_table_rel): Likewise. | |
495 | (elf_mips16_howto_table_rela): Likewise. | |
496 | (mips16_reloc_map): Likewise. | |
497 | * elfxx-mips.c (mips16_branch_reloc_p): New function. | |
498 | (mips16_reloc_p): Handle R_MIPS16_PC16_S1. | |
499 | (b_reloc_p): Likewise. | |
500 | (mips_elf_calculate_relocation): Likewise. | |
501 | (_bfd_mips_elf_check_relocs): Likewise. | |
502 | * reloc.c (BFD_RELOC_MIPS16_16_PCREL_S1): New relocation. | |
503 | * bfd-in2.h: Regenerate. | |
504 | * libbfd.h: Regenerate. | |
505 | ||
c9301e31 AM |
506 | 2016-06-27 Alan Modra <amodra@gmail.com> |
507 | ||
508 | PR ld/19264 | |
509 | * elf64-ppc.c (STUB_SHRINK_ITER): Define. | |
510 | (ppc64_elf_size_stubs): Exit stub sizing loop past STUB_SHRINK_ITER | |
511 | if shrinking stubs. | |
512 | (ppc64_elf_size_stubs): Adjust to suit. | |
513 | ||
3cd72572 TS |
514 | 2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
515 | ||
516 | * elf32-dlx.h: New file. | |
517 | * elf32-dlx.c: Adjust. | |
518 | ||
7c2c4aa1 TS |
519 | 2016-06-25 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
520 | ||
521 | * elf32-xtensa.c (xtensa_make_property_section): Remove prototype. | |
522 | ||
3350c5f5 JB |
523 | 2016-06-24 John Baldwin <jhb@FreeBSD.org> |
524 | ||
525 | * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PROCSTAT_AUXV | |
526 | notes. | |
527 | ||
aa1ed4a9 JB |
528 | 2016-06-24 John Baldwin <jhb@FreeBSD.org> |
529 | ||
530 | * elf.c (elfcore_grok_note): Remove handling of NT_X86_XSTATE for | |
531 | FreeBSD. Remove case for NT_FREEBSD_THRMISC. | |
532 | (elfcore_grok_freebsd_psinfo): New function. | |
533 | (elfcore_grok_freebsd_prstatus): New function. | |
534 | (elfcore_grok_freebsd_note): New function. | |
535 | (elf_parse_notes): Use "elfcore_grok_freebsd_note" for "FreeBSD" | |
536 | notes. | |
537 | ||
6e321fa8 JB |
538 | 2016-06-24 Joel Brobecker <brobecker@adacore.com> |
539 | ||
540 | * elflink.c: Check the value of BFD_SUPPORTS_PLUGINS rather | |
541 | than its existance. | |
542 | ||
9cc0123f AM |
543 | 2016-06-24 Alan Modra <amodra@gmail.com> |
544 | ||
545 | * config.bfd: Delete mips vxworks patterns matched earlier. | |
546 | Combine mips*-*-none with mips*-*-elf*. | |
547 | ||
5f68df25 MR |
548 | 2016-06-21 Maciej W. Rozycki <macro@imgtec.com> |
549 | ||
550 | * elfxx-mips.c (mips_elf_perform_relocation): Call | |
551 | `info->callbacks->einfo' rather than `*_bfd_error_handler' and | |
552 | use the `%X%H' format for the cross-mode jump conversion error | |
553 | message. Remove the full stop from the end of the message. | |
554 | Continue processing rather than returning failure. | |
555 | ||
bdd582db GM |
556 | 2016-06-21 Graham Markall <graham.markall@embecosm.com> |
557 | ||
558 | * archures.c: Remove bfd_mach_arc_nps400. | |
559 | * bfd-in2.h: Likewise. | |
560 | * cpu-arc.c (arch_info_struct): Likewise. | |
561 | * elf32-arc.c (arc_elf_object_p, arc_elf_final_write_processing): | |
562 | Likewise. | |
563 | ||
7dc3990e L |
564 | 2016-06-20 H.J. Lu <hongjiu.lu@intel.com> |
565 | ||
566 | PR ld/18250 | |
567 | PR ld/20267 | |
568 | * elflink.c: Include plugin.h if BFD_SUPPORTS_PLUGINS is | |
569 | defined. | |
570 | (elf_link_is_defined_archive_symbol): Call | |
571 | bfd_link_plugin_object_p on unknown plugin object and use the | |
572 | IR symbol table if the input is an IR object. | |
573 | * plugin.c (bfd_link_plugin_object_p): New function. | |
574 | * plugin.h (bfd_link_plugin_object_p): New prototype. | |
575 | ||
0616a280 AM |
576 | 2016-06-20 H.J. Lu <hongjiu.lu@intel.com> |
577 | ||
578 | PR ld/20276 | |
579 | * elflink.c (elf_link_add_object_symbols): Don't check alignment | |
580 | on symbol from plugin dummy input. | |
581 | ||
49f30d83 L |
582 | 2016-06-18 H.J. Lu <hongjiu.lu@intel.com> |
583 | ||
584 | * bfd.c (bfd_plugin_format): Rename bfd_plugin_uknown to | |
585 | bfd_plugin_unknown. | |
586 | * bfd-in2.h: Regenerated. | |
587 | * plugin.c (bfd_plugin_object_p): Replace bfd_plugin_uknown | |
588 | with bfd_plugin_unknown. | |
589 | ||
233cc9c1 L |
590 | 2016-06-18 H.J. Lu <hongjiu.lu@intel.com> |
591 | ||
592 | PR ld/20253 | |
593 | * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add an | |
594 | bfd_boolean argument. | |
595 | * elf-ifunc.c (_bfd_elf_create_ifunc_sections): Replace | |
596 | "shared object" with "PIC object" in comments. | |
597 | (_bfd_elf_allocate_ifunc_dyn_relocs): Updated. Replace | |
598 | "shared object" with "PIC object" in comments. Avoid PLT if | |
599 | requested. Generate dynamic relocations for non-GOT references. | |
600 | Make room for the special first entry in PLT and allocate PLT | |
601 | entry only for PLT and PC-relative references. Store dynamic | |
602 | GOT relocations in .rel[a].iplt section for static executables. | |
603 | If PLT isn't used, always use GOT for symbol value. Don't | |
604 | allocate GOT entry if it isn't used. | |
605 | * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference | |
606 | count only in the code section. Allocate dynamic pointer | |
607 | relocation against STT_GNU_IFUNC symbol in the non-code section. | |
608 | (elf_i386_adjust_dynamic_symbol): Increment PLT reference count | |
609 | only for PC-relative references. | |
610 | (elf_i386_allocate_dynrelocs): Pass TRUE to | |
611 | _bfd_elf_allocate_ifunc_dyn_relocs. | |
612 | (elf_i386_relocate_section): Allow R_386_GOT32/R_386_GOT32X | |
613 | relocations against STT_GNU_IFUNC symbols without PLT. Generate | |
614 | dynamic pointer relocation against STT_GNU_IFUNC symbol in | |
615 | the non-code section and store it in the proper REL section. | |
616 | Don't allow non-pointer relocation against STT_GNU_IFUNC symbol | |
617 | without PLT. | |
618 | (elf_i386_finish_dynamic_symbol): Generate dynamic | |
619 | R_386_IRELATIVE and R_386_GLOB_DAT GOT relocations against | |
620 | STT_GNU_IFUNC symbols without PLT. | |
621 | (elf_i386_finish_dynamic_sections): Don't handle local | |
622 | STT_GNU_IFUNC symbols here. | |
623 | (elf_i386_output_arch_local_syms): Handle local STT_GNU_IFUNC | |
624 | symbols here. | |
625 | (elf_backend_output_arch_local_syms): New. | |
626 | * elf32-x86-64.c (elf_i386_check_relocs): Increment PLT reference | |
627 | count only in the code section. Allocate dynamic pointer | |
628 | relocation against STT_GNU_IFUNC symbol in the non-code section. | |
629 | (elf_x86_64_adjust_dynamic_symbol): Increment PLT reference | |
630 | count only for PC-relative references. | |
631 | (elf_x86_64_allocate_dynrelocs): Pass TRUE to | |
632 | _bfd_elf_allocate_ifunc_dyn_relocs. | |
633 | (elf_x86_64_relocate_section): Allow R_X86_64_GOTPCREL, | |
634 | R_X86_64_GOTPCRELX, R_X86_64_REX_GOTPCRELX and | |
635 | R_X86_64_GOTPCREL64 relocations against STT_GNU_IFUNC symbols | |
636 | without PLT. Generate dynamic pointer relocation against | |
637 | STT_GNU_IFUNC symbol in the non-code section and store it in | |
638 | the proper RELA section. Don't allow non-pointer relocation | |
639 | against STT_GNU_IFUNC symbol without PLT. | |
640 | (elf_x86_64_finish_dynamic_symbol): Generate dynamic | |
641 | R_X86_64_IRELATIVE and R_X86_64_GLOB_DAT GOT relocations against | |
642 | STT_GNU_IFUNC symbols without PLT. | |
643 | (elf_x86_64_finish_dynamic_sections): Don't handle local | |
644 | STT_GNU_IFUNC symbols here. | |
645 | (elf_x86_64_output_arch_local_syms): Handle local STT_GNU_IFUNC | |
646 | symbols here. | |
647 | (elf_backend_output_arch_local_syms): New. | |
648 | * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs): | |
649 | Pass FALSE to _bfd_elf_allocate_ifunc_dyn_relocs. | |
650 | ||
80c135e5 TP |
651 | 2016-06-17 Thomas Preud'homme <thomas.preudhomme@arm.com> |
652 | Tony Wang <tony.wang@arm.com> | |
653 | ||
654 | * elf32-arm.c (elf32_arm_stub_long_branch_thumb2_only): Define stub | |
655 | sequence. | |
656 | (stub_long_branch_thumb2_only): Define stub. | |
657 | (arm_stub_is_thumb): Add case for arm_stub_long_branch_thumb2_only. | |
658 | (arm_stub_long_branch_thumb2_only): Likewise. | |
659 | (arm_type_of_stub): Use arm_stub_long_branch_thumb2_only for Thumb-2 | |
660 | capable targets. | |
661 | ||
4f26fb3a JM |
662 | 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
663 | ||
664 | * archures.c (bfd_mach_sparc_v8plusc): Define. | |
665 | (bfd_mach_sparc_v9c): Likewise. | |
666 | (bfd_mach_sparc_v8plusd): Likewise. | |
667 | (bfd_mach_sparc_v9d): Likewise. | |
668 | (bfd_mach_sparc_v8pluse): Likewise. | |
669 | (bfd_mach_sparc_v9e): Likewise. | |
670 | (bfd_mach_sparc_v8plusv): Likewise | |
671 | (bfd_mach_sparc_v9v): Likewise. | |
672 | (bfd_mach_sparc_v8plusm): Likewise. | |
673 | (bfd_mach_sparc_v9m): Likewise. | |
674 | (bfd_mach_sparc_v9_p): Adapt to v8plusm and v9m. | |
675 | (bfd_mach_sparc_64bit_p): Likewise. | |
676 | * bfd-in2.h: Regenerate. | |
677 | * cpu-sparc.c (arch_info_struct): Add entries for | |
678 | bfd_mach_sparc_v8plus{c,d,e,v,m} and bfd_mach_sparc_v9{c,d,e,v,m}. | |
679 | * aoutx.h (machine_type): Handle bfd_mach_sparc_v8plus{c,d,e,v,m} | |
680 | and bfd_mach_sparc_v9{c,d,e,v,m}. | |
681 | * elf32-sparc.c (elf32_sparc_final_write_processing): Likewise. | |
682 | * elfxx-sparc.c (_bfd_sparc_elf_object_p): Likewise. | |
683 | ||
ca45f6e9 L |
684 | 2016-06-16 H.J. Lu <hongjiu.lu@intel.com> |
685 | ||
686 | * elf32-i386.c (elf_i386_check_relocs): Don't check undefined | |
687 | symbols for relocations against IFUNC symbols. | |
688 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
689 | ||
f92339b8 MK |
690 | 2016-06-16 Marcin Kościelnicki <koriakin@0x04.net> |
691 | ||
692 | * elf32-s390.c (elf_s390_finish_dynamic_sections): Include | |
693 | .rela.iplt in DT_PLTRELSZ. | |
694 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise, | |
695 | for DT_PLTRELSZ and DT_RELASZ as well. | |
696 | ||
081b1afe L |
697 | 2016-06-16 H.J. Lu <hongjiu.lu@intel.com> |
698 | ||
699 | * elf32-i386.c (elf_i386_check_relocs): Skip relocations in | |
700 | non-loaded, non-alloced sections. | |
701 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
702 | ||
4c23f2ff L |
703 | 2016-06-15 H.J. Lu <hongjiu.lu@intel.com> |
704 | ||
705 | * elf32-i386.c (elf_i386_check_relocs): Check SEC_ALLOC before | |
706 | allocating dynamic relocation. | |
707 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
708 | ||
31eef93e SKS |
709 | 2016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
710 | ||
711 | PR ld/20254 | |
712 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust reloc | |
713 | offsets until reloc_toaddr. | |
714 | ||
c428ce9d L |
715 | 2016-06-14 H.J. Lu <hongjiu.lu@intel.com> |
716 | ||
717 | * elf32-i386.c (elf_i386_reloc_type_class): Check R_386_IRELATIVE. | |
718 | Don't check symbol type for STN_UNDEF symbol index. | |
719 | * elf64-x86-64.c (elf_x86_64_reloc_type_class): Check | |
720 | R_X86_64_IRELATIVE. Don't check symbol type for STN_UNDEF symbol | |
721 | index. | |
722 | ||
60a019a0 TP |
723 | 2016-06-14 Thomas Preud'homme <thomas.preudhomme@arm.com> |
724 | ||
725 | * elf32-arm.c (using_thumb_only): Force review of arch check logic for | |
726 | new architecture. | |
727 | (using_thumb2): Try Tag_THUMB_ISA_use first and check | |
728 | for exact arch value then. Force review of arch check logic for new | |
729 | architecture. | |
730 | (arch_has_arm_nop): Update and fix arch check logic. Force review of | |
731 | that logic for new architecture. | |
732 | (arch_has_thumb2_nop): Remove. | |
733 | (elf32_arm_tls_relax): Use using_thumb2 instead of above function. | |
734 | (elf32_arm_final_link_relocate): Likewise but using thumb2. | |
735 | ||
3860d2b4 AM |
736 | 2016-06-14 Alan Modra <amodra@gmail.com> |
737 | ||
738 | * bfd-in.h (bfd_my_archive): Delete. | |
739 | * bfd-in2.h: Regenerate. | |
740 | ||
b0cffb47 AM |
741 | 2016-06-14 Alan Modra <amodra@gmail.com> |
742 | ||
743 | PR ld/20241 | |
744 | * archive.c (open_nested_file): Set my_archive. | |
745 | * bfd.c (_bfd_default_error_handler <%B>): Exclude archive file name | |
746 | for thin archives. | |
747 | * bfdio.c (bfd_tell): Don't adjust origin for thin archives. | |
748 | (bfd_seek): Likewise. | |
749 | * bfdwin.c (bfd_get_file_window): Likewise. | |
750 | * cache.c (cache_bmmap): Likewise. | |
751 | (bfd_cache_lookup_worker): Don't look in my_archive for thin archives. | |
752 | * mach-o.c (bfd_mach_o_follow_dsym): Don't open my_archive for | |
753 | thin archives. | |
754 | * plugin.c (try_claim): Likewise. | |
755 | * xcofflink.c (xcoff_link_add_dynamic_symbols): Use import path of | |
756 | file within thin archive, not the archive. | |
757 | ||
712ec279 L |
758 | 2016-06-13 H.J. Lu <hongjiu.lu@intel.com> |
759 | ||
760 | PR ld/20244 | |
761 | * elf32-i386.c (elf_i386_relocate_section): Add the .got.plt | |
762 | section address for R_386_GOT32/R_386_GOT32X relocations against | |
763 | IFUNC symbols if there is no base register and return error for | |
764 | PIC. | |
765 | ||
ca8c86ef L |
766 | 2016-06-13 H.J. Lu <hongjiu.lu@intel.com> |
767 | ||
768 | * elf32-i386.c (elf_i386_relocate_section): Simplify IFUNC | |
769 | GOT32 adjustment for static executables. | |
770 | ||
0c9663cb MR |
771 | 2016-06-13 Maciej W. Rozycki <macro@imgtec.com> |
772 | ||
773 | * elf32-mips.c (elf_mips_gnu_pcrel32): Update comment. | |
774 | ||
815dc1bc CZ |
775 | 2016-06-13 Cupertino Miranda <cmiranda@synospsy.com> |
776 | ||
777 | * elf32-arc.c (elf_arc_relocate_section): Fixed condition. | |
778 | ||
3b63d2ce CM |
779 | 2016-06-13 Cupertino Miranda <cmiranda@synospsy.com> |
780 | ||
781 | * elf32-arc.c (elf_arc_finish_dynamic_sections): Changed. | |
782 | ||
2ab2f40d CM |
783 | 2016-06-13 Cupertino Miranda <cmiranda@synospsy.com> |
784 | ||
785 | * elf32-arc.c (arc_local_data, arc_local_data): Removed. | |
786 | (SECTSTART): Changed. | |
787 | (elf_arc_relocate_section): Fixed mistake in PIE related | |
788 | condition. | |
789 | (elf_arc_size_dynamic_sections): Changed DT_RELENT to DT_RELAENT. | |
790 | ||
0f7f3789 CM |
791 | 2016-06-13 Cupertino Miranda <cmiranda@synospsy.com> |
792 | ||
793 | * elf32-arc.c (elf32_arc_reloc_type_class): Defined function to | |
794 | enable support for "-z combreloc" and DT_RELACOUNT. | |
795 | (elf_backend_reloc_type_class): Likewise | |
796 | ||
74d7f0aa L |
797 | 2016-06-11 H.J. Lu <hongjiu.lu@intel.com> |
798 | ||
799 | PR ld/20244 | |
800 | * elf32-i386.c (elf_i386_relocate_section): When relocating | |
801 | R_386_GOT32, return error without a base register for PIC and | |
802 | subtract the .got.plt section address only with a base register. | |
803 | ||
ef53be89 AM |
804 | 2016-06-10 Alan Modra <amodra@gmail.com> |
805 | ||
806 | * elf-strtab.c (struct strtab_save): Use size_t for "size". | |
807 | (struct elf_strtab_hash): Likewise for "size" and "alloced". | |
808 | (_bfd_elf_strtab_init): Formatting. | |
809 | (_bfd_elf_strtab_add): Return size_t rather than bfd_size_type. | |
810 | (_bfd_elf_strtab_addref): Take size_t idx param. | |
811 | (_bfd_elf_strtab_delref, _bfd_elf_strtab_refcount): Likewise. | |
812 | (_bfd_elf_strtab_offset): Likewise. | |
813 | (_bfd_elf_strtab_clear_all_refs): Use size_t idx. | |
814 | (_bfd_elf_strtab_save): Use size_t "idx" and "size" vars. | |
815 | (_bfd_elf_strtab_restore, _bfd_elf_strtab_emit): Similarly. | |
816 | (_bfd_elf_strtab_finalize): Similarly. | |
817 | * elf-bfd.h (_bfd_elf_strtab_add): Update prototypes. | |
818 | (_bfd_elf_strtab_addref, _bfd_elf_strtab_delref): Likewise. | |
819 | (_bfd_elf_strtab_refcount, _bfd_elf_strtab_offset): Likewise. | |
820 | * elf.c (bfd_elf_get_elf_syms): Calculate symbol buffer size | |
821 | using bfd_size_type. | |
822 | (bfd_section_from_shdr): Delete amt. | |
823 | (_bfd_elf_init_reloc_shdr): Likewise. | |
824 | (_bfd_elf_link_assign_sym_version): Likewise. | |
825 | (assign_section_numbers): Use size_t reloc_count. | |
826 | * elflink.c (struct elf_symbuf_head): Use size_t "count". | |
827 | (bfd_elf_link_record_dynamic_symbol): Use size_t for some vars. | |
828 | (elf_link_is_defined_archive_symbol): Likewise. | |
829 | (elf_add_dt_needed_tag): Likewise. | |
830 | (elf_finalize_dynstr): Likewise. | |
831 | (elf_link_add_object_symbols): Likewise. | |
832 | (bfd_elf_size_dynamic_sections): Likewise. | |
833 | (elf_create_symbuf): Similarly. | |
834 | (bfd_elf_match_symbols_in_sections): Likewise. | |
835 | (elf_link_swap_symbols_out): Likewise. | |
836 | (elf_link_check_versioned_symbol): Likewise. | |
837 | (bfd_elf_gc_record_vtinherit): Likewise. | |
838 | (bfd_elf_gc_common_finalize_got_offsets): Likewise. | |
839 | ||
5c41dbc3 DC |
840 | 2016-06-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
841 | ||
842 | PR ld/20221 | |
843 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust syms | |
844 | and relocs only if shrinking occurred. | |
845 | ||
6eaa7fb5 L |
846 | 2016-06-08 H.J. Lu <hongjiu.lu@intel.com> |
847 | ||
848 | * elf64-i386.c (elf_i386_link_hash_entry): Add tls_get_addr. | |
849 | (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 2. | |
850 | (elf_i386_check_tls_transition): Check indirect call and direct | |
851 | call with the addr32 prefix for general and local dynamic models. | |
852 | Set the tls_get_addr feild. | |
853 | (elf_i386_convert_load_reloc): Always use addr32 prefix for | |
854 | indirect ___tls_get_addr call via GOT. | |
855 | (elf_i386_relocate_section): Handle GD->LE, GD->IE and LD->LE | |
856 | transitions with indirect call and direct call with the addr32 | |
857 | prefix. | |
858 | ||
3b67f094 MK |
859 | 2016-06-07 Marcin Kościelnicki <koriakin@0x04.net> |
860 | ||
861 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Fix comment. | |
862 | * elf64-s390.c (elf_s390x_plt_entry): Fix comment. | |
863 | (elf_s390_relocate_section): Fix comment. | |
864 | (elf_s390_finish_dynamic_sections): Fix initialization of fixed | |
865 | .got.plt entries. | |
866 | ||
161db279 AK |
867 | 2016-06-07 Ulrich Weigand <ulrich.weigand@de.ibm.com> |
868 | ||
869 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Subtract plt | |
870 | section offset when calculation the larl operand in the first PLT | |
871 | entry. | |
872 | ||
14b57c7c AM |
873 | 2016-06-07 Alan Modra <amodra@gmail.com> |
874 | ||
875 | * cpu-powerpc.c (powerpc_compatible): Allow bfd_mach_ppc_vle entry | |
876 | to match other 32-bit archs. | |
877 | * elf32-ppc.c (_bfd_elf_ppc_set_arch): New function. | |
878 | (ppc_elf_object_p): Call it. | |
879 | (ppc_elf_special_sections): Use APUINFO_SECTION_NAME. Fix | |
880 | overlong line. | |
881 | (APUINFO_SECTION_NAME, APUINFO_LABEL): Don't define here. | |
882 | * elf64-ppc.c (ppc64_elf_object_p): Call _bfd_elf_ppc_set_arch. | |
883 | * bfd-in.h (_bfd_elf_ppc_at_tls_transform, | |
884 | _bfd_elf_ppc_at_tprel_transform): Move to.. | |
885 | * elf-bfd.h: ..here. | |
886 | (_bfd_elf_ppc_set_arch): Declare. | |
887 | * bfd-in2.h: Regenerate. | |
888 | ||
e2cbcd91 L |
889 | 2016-06-06 H.J. Lu <hongjiu.lu@intel.com> |
890 | ||
891 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add tls_get_addr. | |
892 | (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 2. | |
893 | (elf_x86_64_check_tls_transition): Check indirect call and | |
894 | direct call with the addr32 prefix for general and local dynamic | |
895 | models. Set the tls_get_addr feild. | |
896 | (elf_x86_64_convert_load_reloc): Always use addr32 prefix for | |
897 | indirect __tls_get_addr call via GOT. | |
898 | (elf_x86_64_relocate_section): Handle GD->LE, GD->IE and LD->LE | |
899 | transitions with indirect call and direct call with the addr32 | |
900 | prefix. | |
901 | ||
2ac27cd3 CG |
902 | 2016-06-04 Christian Groessler <chris@groessler.org> |
903 | ||
904 | * coff-z8k.c (extra_case): Fix range check for R_JR relocation. | |
905 | ||
99914dfd NC |
906 | 2016-06-02 Nick Clifton <nickc@redhat.com> |
907 | ||
908 | PR target/20088 | |
909 | * cpu-arm.c (processors): Add "arm_any" type to match any ARM | |
910 | architecture. | |
911 | (arch_info_struct): Likewise. | |
912 | (architectures): Likewise. | |
913 | ||
4ad0bb5f VG |
914 | 2016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com> |
915 | ||
916 | * config.bfd: Replace -uclibc with *. | |
917 | ||
3ddf1bdd L |
918 | 2016-06-02 H.J. Lu <hongjiu.lu@intel.com> |
919 | ||
920 | * elf64-x86-64.c: Replace data32 with data16 in comments. | |
921 | ||
5b677558 AM |
922 | 2016-05-31 Alan Modra <amodra@gmail.com> |
923 | ||
924 | PR ld/20159 | |
925 | PR ld/16467 | |
926 | * elflink.c (_bfd_elf_merge_symbol): Revert PR16467 change. | |
927 | (_bfd_elf_add_default_symbol): Don't indirect to/from defined | |
928 | symbol given a version by a script different to the version | |
929 | of the symbol being added. | |
930 | (elf_link_add_object_symbols): Use _bfd_elf_strtab_save and | |
931 | _bfd_elf_strtab_restore. Don't fudge dynstr references. | |
932 | * elf-strtab.c (_bfd_elf_strtab_restore_size): Delete. | |
933 | (struct strtab_save): New. | |
934 | (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): New functions. | |
935 | * elf-bfd.h (_bfd_elf_strtab_restore_size): Delete. | |
936 | (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): Declare. | |
937 | ||
1fe0971e TS |
938 | 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
939 | ||
940 | * elf32-hppa.h: Add extern "C". | |
941 | * elf32-nds32.h: Likewise. | |
942 | * elf32-tic6x.h: Likewise. | |
943 | ||
885a1087 NC |
944 | 2016-06-01 Nick Clifton <nickc@redhat.com> |
945 | ||
946 | * po/sr.po: New Serbian translation. | |
947 | * configure.ac (ALL_LINGUAS): Add sr. | |
948 | * configure: Regenerate. | |
949 | ||
99aefae6 MR |
950 | 2016-05-28 Maciej W. Rozycki <macro@imgtec.com> |
951 | ||
952 | * elfxx-mips.c (b_reloc_p): New function. | |
953 | (_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Handle | |
954 | branch relocations. | |
955 | ||
77434823 MR |
956 | 2016-05-28 Maciej W. Rozycki <macro@imgtec.com> |
957 | ||
958 | * elfxx-mips.c (mips_elf_calculate_relocation): <R_MIPS16_26> | |
959 | <R_MIPS_26, R_MICROMIPS_26_S1>: Drop the region bits of the | |
960 | reloc location from calculation, treat the addend as signed with | |
961 | local non-section symbols and enable overflow detection. | |
962 | ||
1a72702b AM |
963 | 2016-05-28 Alan Modra <amodra@gmail.com> |
964 | ||
965 | * aoutx.h: Adjust linker callback calls throughout file, | |
966 | removing dead code. | |
967 | * bout.c: Likewise. | |
968 | * coff-alpha.c: Likewise. | |
969 | * coff-arm.c: Likewise. | |
970 | * coff-h8300.c: Likewise. | |
971 | * coff-h8500.c: Likewise. | |
972 | * coff-i960.c: Likewise. | |
973 | * coff-mcore.c: Likewise. | |
974 | * coff-mips.c: Likewise. | |
975 | * coff-ppc.c: Likewise. | |
976 | * coff-rs6000.c: Likewise. | |
977 | * coff-sh.c: Likewise. | |
978 | * coff-tic80.c: Likewise. | |
979 | * coff-w65.c: Likewise. | |
980 | * coff-z80.c: Likewise. | |
981 | * coff-z8k.c: Likewise. | |
982 | * coff64-rs6000.c: Likewise. | |
983 | * cofflink.c: Likewise. | |
984 | * ecoff.c: Likewise. | |
985 | * elf-bfd.h: Likewise. | |
986 | * elf-m10200.c: Likewise. | |
987 | * elf-m10300.c: Likewise. | |
988 | * elf32-arc.c: Likewise. | |
989 | * elf32-arm.c: Likewise. | |
990 | * elf32-avr.c: Likewise. | |
991 | * elf32-bfin.c: Likewise. | |
992 | * elf32-cr16.c: Likewise. | |
993 | * elf32-cr16c.c: Likewise. | |
994 | * elf32-cris.c: Likewise. | |
995 | * elf32-crx.c: Likewise. | |
996 | * elf32-d10v.c: Likewise. | |
997 | * elf32-epiphany.c: Likewise. | |
998 | * elf32-fr30.c: Likewise. | |
999 | * elf32-frv.c: Likewise. | |
1000 | * elf32-ft32.c: Likewise. | |
1001 | * elf32-h8300.c: Likewise. | |
1002 | * elf32-hppa.c: Likewise. | |
1003 | * elf32-i370.c: Likewise. | |
1004 | * elf32-i386.c: Likewise. | |
1005 | * elf32-i860.c: Likewise. | |
1006 | * elf32-ip2k.c: Likewise. | |
1007 | * elf32-iq2000.c: Likewise. | |
1008 | * elf32-lm32.c: Likewise. | |
1009 | * elf32-m32c.c: Likewise. | |
1010 | * elf32-m32r.c: Likewise. | |
1011 | * elf32-m68hc1x.c: Likewise. | |
1012 | * elf32-m68k.c: Likewise. | |
1013 | * elf32-mep.c: Likewise. | |
1014 | * elf32-metag.c: Likewise. | |
1015 | * elf32-microblaze.c: Likewise. | |
1016 | * elf32-moxie.c: Likewise. | |
1017 | * elf32-msp430.c: Likewise. | |
1018 | * elf32-mt.c: Likewise. | |
1019 | * elf32-nds32.c: Likewise. | |
1020 | * elf32-nios2.c: Likewise. | |
1021 | * elf32-or1k.c: Likewise. | |
1022 | * elf32-ppc.c: Likewise. | |
1023 | * elf32-s390.c: Likewise. | |
1024 | * elf32-score.c: Likewise. | |
1025 | * elf32-score7.c: Likewise. | |
1026 | * elf32-sh.c: Likewise. | |
1027 | * elf32-sh64.c: Likewise. | |
1028 | * elf32-spu.c: Likewise. | |
1029 | * elf32-tic6x.c: Likewise. | |
1030 | * elf32-tilepro.c: Likewise. | |
1031 | * elf32-v850.c: Likewise. | |
1032 | * elf32-vax.c: Likewise. | |
1033 | * elf32-visium.c: Likewise. | |
1034 | * elf32-xstormy16.c: Likewise. | |
1035 | * elf32-xtensa.c: Likewise. | |
1036 | * elf64-alpha.c: Likewise. | |
1037 | * elf64-hppa.c: Likewise. | |
1038 | * elf64-ia64-vms.c: Likewise. | |
1039 | * elf64-mmix.c: Likewise. | |
1040 | * elf64-ppc.c: Likewise. | |
1041 | * elf64-s390.c: Likewise. | |
1042 | * elf64-sh64.c: Likewise. | |
1043 | * elf64-x86-64.c: Likewise. | |
1044 | * elflink.c: Likewise. | |
1045 | * elfnn-aarch64.c: Likewise. | |
1046 | * elfnn-ia64.c: Likewise. | |
1047 | * elfxx-mips.c: Likewise. | |
1048 | * elfxx-sparc.c: Likewise. | |
1049 | * elfxx-tilegx.c: Likewise. | |
1050 | * linker.c: Likewise. | |
1051 | * pdp11.c: Likewise. | |
1052 | * pe-mips.c: Likewise. | |
1053 | * reloc.c: Likewise. | |
1054 | * reloc16.c: Likewise. | |
1055 | * simple.c: Likewise. | |
1056 | * vms-alpha.c: Likewise. | |
1057 | * xcofflink.c: Likewise. | |
1058 | * elf32-rl78.c (get_symbol_value, get_romstart, get_ramstart): Delete | |
1059 | status param. Adjust calls to these and linker callbacks throughout. | |
1060 | * elf32-rx.c: (get_symbol_value, get_gp, get_romstart, | |
1061 | get_ramstart): Delete status param. Adjust calls to these and | |
1062 | linker callbacks throughout. | |
1063 | ||
bc27bb05 MR |
1064 | 2016-05-27 Maciej W. Rozycki <macro@imgtec.com> |
1065 | ||
1066 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS16_26> | |
1067 | <R_MIPS_26, R_MICROMIPS_26_S1>: Include the addend in JALX's | |
1068 | target alignment verification. | |
1069 | ||
ceab86af MR |
1070 | 2016-05-27 Maciej W. Rozycki <macro@imgtec.com> |
1071 | ||
1072 | * elfxx-mips.c (mips_elf_calculate_relocation): Also use the | |
1073 | section name if `bfd_elf_string_from_elf_section' returns an | |
1074 | empty string. | |
1075 | ||
ed53407e MR |
1076 | 2016-05-26 Maciej W. Rozycki <macro@imgtec.com> |
1077 | ||
1078 | * elfxx-mips.c (_bfd_mips_elf_relocate_section) | |
1079 | <bfd_reloc_outofrange>: Use the `%X%H' rather than `%C' format | |
1080 | for message. Continue processing rather than returning failure. | |
1081 | ||
de341542 | 1082 | 2016-05-25 Maciej W. Rozycki <macro@imgtec.com> |
ed53407e | 1083 | |
de341542 MR |
1084 | * elfxx-mips.c (_bfd_mips_elf_relocate_section) |
1085 | <bfd_reloc_outofrange>: Call `->einfo' rather than `->warning'. | |
1086 | Call `bfd_set_error'. | |
1087 | ||
e6cc316a L |
1088 | 2016-05-25 H.J. Lu <hongjiu.lu@intel.com> |
1089 | ||
1090 | PR binutils/14625 | |
1091 | * archive.c (bfd_slurp_armap): Replace | |
1092 | bfd_elf64_archive_slurp_armap with | |
1093 | _bfd_archive_64_bit_slurp_armap. | |
1094 | (bsd_write_armap): Call _bfd_archive_64_bit_write_armap if | |
1095 | BFD64 is defined and the archive is too big. | |
1096 | (coff_write_armap): Likewise. | |
1097 | * archive64.c (bfd_elf64_archive_slurp_armap): Renamed to ... | |
1098 | (_bfd_archive_64_bit_slurp_armap): This. | |
1099 | (bfd_elf64_archive_write_armap): Renamed to ... | |
1100 | (_bfd_archive_64_bit_write_armap): This. | |
1101 | * configure.ac: Add --enable-64-bit-archive. | |
1102 | (want_64_bit_archive): New. Set to true by default for 64-bit | |
1103 | MIPS and s390 ELF targets. | |
1104 | (USE_64_BIT_ARCHIVE): New AC_DEFINE. | |
1105 | * config.in: Regenerated. | |
1106 | * configure: Likewise. | |
1107 | * elf64-mips.c (bfd_elf64_archive_functions): Removed. | |
1108 | (bfd_elf64_archive_slurp_armap): Likewise. | |
1109 | (bfd_elf64_archive_write_armap): Likewise. | |
1110 | (bfd_elf64_archive_slurp_extended_name_table): Likewise. | |
1111 | (bfd_elf64_archive_construct_extended_name_table): Likewise. | |
1112 | (bfd_elf64_archive_truncate_arname): Likewise. | |
1113 | (bfd_elf64_archive_read_ar_hdr): Likewise. | |
1114 | (bfd_elf64_archive_write_ar_hdr): Likewise. | |
1115 | (bfd_elf64_archive_openr_next_archived_file): Likewise. | |
1116 | (bfd_elf64_archive_get_elt_at_index): Likewise. | |
1117 | (bfd_elf64_archive_generic_stat_arch_elt): Likewise. | |
1118 | (bfd_elf64_archive_update_armap_timestamp): Likewise. | |
1119 | * elf64-s390.c (bfd_elf64_archive_functions): Removed. | |
1120 | (bfd_elf64_archive_slurp_armap): Likewise. | |
1121 | (bfd_elf64_archive_write_armap): Likewise. | |
1122 | (bfd_elf64_archive_slurp_extended_name_table): Likewise. | |
1123 | (bfd_elf64_archive_construct_extended_name_table): Likewise. | |
1124 | (bfd_elf64_archive_truncate_arname): Likewise. | |
1125 | (bfd_elf64_archive_read_ar_hdr): Likewise. | |
1126 | (bfd_elf64_archive_write_ar_hdr): Likewise. | |
1127 | (bfd_elf64_archive_openr_next_archived_file): Likewise. | |
1128 | (bfd_elf64_archive_get_elt_at_index): Likewise. | |
1129 | (bfd_elf64_archive_generic_stat_arch_elt): Likewise. | |
1130 | (bfd_elf64_archive_update_armap_timestamp): Likewise. | |
1131 | * elfxx-target.h (TARGET_BIG_SYM): Use _bfd_archive_64_bit on | |
1132 | BFD_JUMP_TABLE_ARCHIVE if USE_64_BIT_ARCHIVE is defined and | |
1133 | bfd_elfNN_archive_functions isn't defined. | |
1134 | (TARGET_LITTLE_SYM): Likewise. | |
1135 | * libbfd-in.h (_bfd_archive_64_bit_slurp_armap): New prototype. | |
1136 | (_bfd_archive_64_bit_write_armap): Likewise. | |
1137 | (_bfd_archive_64_bit_slurp_extended_name_table): New macro. | |
1138 | (_bfd_archive_64_bit_construct_extended_name_table): Likewise. | |
1139 | (_bfd_archive_64_bit_truncate_arname): Likewise. | |
1140 | (_bfd_archive_64_bit_read_ar_hdr): Likewise. | |
1141 | (_bfd_archive_64_bit_write_ar_hdr): Likewise. | |
1142 | (_bfd_archive_64_bit_openr_next_archived_file): Likewise. | |
1143 | (_bfd_archive_64_bit_get_elt_at_index): Likewise. | |
1144 | (_bfd_archive_64_bit_generic_stat_arch_elt): Likewise. | |
1145 | (_bfd_archive_64_bit_update_armap_timestamp): Likewise. | |
1146 | * libbfd.h: Regenerated. | |
1147 | * plugin.c (plugin_vec): Use _bfd_archive_64_bit on | |
1148 | BFD_JUMP_TABLE_ARCHIVE if USE_64_BIT_ARCHIVE is defined. | |
1149 | ||
b95a0a31 L |
1150 | 2016-05-25 H.J. Lu <hongjiu.lu@intel.com> |
1151 | ||
1152 | PR ld/20103 | |
1153 | * cofflink.c (coff_link_check_archive_element): Return TRUE if | |
1154 | linker add_archive_element callback returns FALSE. | |
1155 | * ecoff.c (ecoff_link_check_archive_element): Likewise. | |
1156 | * elf64-ia64-vms.c (elf64_vms_link_add_archive_symbols): Skip | |
1157 | archive element if linker add_archive_element callback returns | |
1158 | FALSE. | |
1159 | * elflink.c (elf_link_add_archive_symbols): Likewise. | |
1160 | * pdp11.c (aout_link_check_ar_symbols): Likewise. | |
1161 | * vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise. | |
1162 | * xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Likewise. | |
1163 | (xcoff_link_check_ar_symbols): Likewise. | |
1164 | ||
7db9a74e MR |
1165 | 2016-05-24 Maciej W. Rozycki <macro@imgtec.com> |
1166 | ||
1167 | * elfxx-mips.c (_bfd_mips_elf_relocate_section) | |
1168 | <bfd_reloc_outofrange>: Unify error reporting code. | |
1169 | ||
b7f28d87 JW |
1170 | 2016-05-23 Jim Wilson <jim.wilson@linaro.org> |
1171 | ||
1172 | * elfnn-aarch64.c: Unconditionally enable R_AARCH64_NULL and | |
1173 | R_AARCH64_NONE. Use HOWTO64 for R_AARCH64_NULL. | |
1174 | * relocs.c: Add BFD_RELOC_AARCH64_NULL. | |
1175 | * bfd-in2.h: Regenerate. | |
1176 | * libbfd.h: Likewise. | |
1177 | ||
a2bea324 KS |
1178 | 2016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com> |
1179 | ||
1180 | * config.bfd: Add entry for arm-phoenix. | |
1181 | ||
d7c5bd02 TP |
1182 | 2016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1183 | ||
1184 | * elf32-arm.c (arm_dedicated_stub_section_padding): New function. | |
1185 | (elf32_arm_size_stubs): Declare stub_type in a more outer scope and | |
1186 | account for padding for stub section requiring one. | |
1187 | (elf32_arm_build_stubs): Add comment to stress the importance of | |
1188 | zeroing veneer section content. | |
1189 | ||
daa4adae TP |
1190 | 2016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1191 | ||
1192 | * bfd-in.h (bfd_elf32_arm_keep_private_stub_output_sections): Declare | |
1193 | bfd hook. | |
1194 | * bfd-in2.h: Regenerate. | |
1195 | * elf32-arm.c (arm_dedicated_stub_output_section_required): New | |
1196 | function. | |
1197 | (arm_dedicated_stub_output_section_required_alignment): Likewise. | |
1198 | (arm_dedicated_stub_output_section_name): Likewise. | |
1199 | (arm_dedicated_stub_input_section_ptr): Likewise. | |
1200 | (elf32_arm_create_or_find_stub_sec): Add stub type parameter and | |
1201 | function description comment. Add support for dedicated output stub | |
1202 | section to given stub types. | |
1203 | (elf32_arm_add_stub): Add a stub type parameter and pass it down to | |
1204 | elf32_arm_create_or_find_stub_sec. | |
1205 | (elf32_arm_create_stub): Pass stub type down to elf32_arm_add_stub. | |
1206 | (elf32_arm_size_stubs): Pass stub type when calling | |
1207 | elf32_arm_create_or_find_stub_sec for Cortex-A8 erratum veneers. | |
1208 | (bfd_elf32_arm_keep_private_stub_output_sections): New function. | |
1209 | ||
52bf37dd L |
1210 | 2016-05-20 H.J. Lu <hongjiu.lu@intel.com> |
1211 | ||
1212 | * elf32-i386.c (elf_i386_check_relocs): Don't check R_386_GOT32 | |
1213 | when setting need_convert_load. | |
1214 | ||
17c6c9d9 MR |
1215 | 2016-05-20 Maciej W. Rozycki <macro@imgtec.com> |
1216 | ||
1217 | * elfxx-mips.c (mips_elf_read_rel_addend): Adjust the addend for | |
1218 | microMIPS JALX. | |
1219 | ||
7d4d9709 L |
1220 | 2016-05-19 H.J. Lu <hongjiu.lu@intel.com> |
1221 | ||
1222 | PR ld/20117 | |
1223 | * elf32-i386.c (elf_i386_convert_load_reloc): Don't check | |
1224 | R_386_GOT32X. | |
1225 | (elf_i386_convert_load): Don't convert R_386_GOT32. | |
1226 | ||
606851fb AM |
1227 | 2016-05-20 Alan Modra <amodra@gmail.com> |
1228 | ||
1229 | PR gas/20118 | |
1230 | * elf.c (elf_fake_sections): Set sh_entsize for SHT_INIT_ARRAY, | |
1231 | SHT_FINI_ARRAY, and SHT_PREINIT_ARRAY. | |
1232 | ||
3c8adaca CZ |
1233 | 2016-05-19 Cupertino Miranda <cmiranda@synopsys.com> |
1234 | ||
1235 | * elf32-arc.c (arc_elf_final_write_processing): Changed. | |
1236 | (debug_arc_reloc): Likewise. | |
1237 | (elf_arc_relocate_section): Likewise. | |
1238 | (elf_arc_check_relocs): Likewise. | |
1239 | (elf_arc_adjust_dynamic_symbol): Likewise. | |
1240 | (elf_arc_add_symbol_hook): Likewise. | |
1241 | ||
6b200de0 MR |
1242 | 2016-05-19 Maciej W. Rozycki <macro@imgtec.com> |
1243 | ||
1244 | * config.bfd: Remove `am34-*-linux*' support. | |
1245 | ||
57e7d118 AM |
1246 | 2016-05-19 Alan Modra <amodra@gmail.com> |
1247 | ||
1248 | * elf64-ppc.c (allocate_dynrelocs): Allocate got and other dynamic | |
1249 | relocs before plt relocs. | |
1250 | ||
9f284bf9 AM |
1251 | 2016-05-19 Alan Modra <amodra@gmail.com> |
1252 | ||
1253 | * elf64-ppc.c (ppc64_elf_branch_reloc): Check for NULL owner | |
1254 | before dereferencing. | |
1255 | ||
50498060 NC |
1256 | 2016-05-18 Nick Clifton <nickc@redhat.com> |
1257 | ||
1258 | * po/sv.po: Updated Swedish translation. | |
1259 | ||
7f991970 AM |
1260 | 2016-05-18 Alan Modra <amodra@gmail.com> |
1261 | ||
1262 | * elf32-arm.c (elf32_arm_size_stubs): Free or cache local syms | |
1263 | for each BFD. Don't goto error_ret_free_local from outside loop. | |
1264 | ||
a43942db MR |
1265 | 2016-05-17 Maciej W. Rozycki <macro@imgtec.com> |
1266 | ||
1267 | * elf-s390-common.c (elf_s390_add_symbol_hook): Remove | |
1268 | STB_GNU_UNIQUE handling. | |
1269 | * elf32-arc.c (elf_arc_add_symbol_hook): Likewise. | |
1270 | * elf32-arm.c (elf32_arm_add_symbol_hook): Likewise. | |
1271 | * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise. | |
1272 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. | |
1273 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise. | |
1274 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise. | |
1275 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise. | |
1276 | * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise. | |
1277 | * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise. | |
1278 | * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise. | |
1279 | * elf32-i386.c (elf_i386_add_symbol_hook): Remove function. | |
1280 | (elf_backend_add_symbol_hook): Remove macro. | |
1281 | * elflink.c (elf_link_add_object_symbols): Set `has_gnu_symbols' | |
1282 | for STB_GNU_UNIQUE symbols. | |
1283 | ||
71de3413 MR |
1284 | 2016-05-16 Maciej W. Rozycki <macro@imgtec.com> |
1285 | ||
1286 | * elf32-v850.c (v850_elf_copy_notes): New function, factored out | |
1287 | from... | |
1288 | (v850_elf_copy_private_bfd_data): ... here. Call the new | |
1289 | function and `_bfd_elf_copy_private_bfd_data'. | |
1290 | ||
2168b268 L |
1291 | 2016-05-13 H.J. Lu <hongjiu.lu@intel.com> |
1292 | ||
1293 | PR ld/20093 | |
1294 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert | |
1295 | GOTPCREL relocation against large section. | |
1296 | ||
4ade44b7 AM |
1297 | 2016-05-13 Alan Modra <amodra@gmail.com> |
1298 | ||
1299 | * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_sections): Use | |
1300 | linker dynamic sections in calculating size and address of | |
2168b268 | 1301 | dynamic tags rather than using output sections. Remove asserts. |
4ade44b7 AM |
1302 | * elf32-arm.c (elf32_arm_finish_dynamic_sections): Likewise. |
1303 | * elf32-cr16.c (_bfd_cr16_elf_finish_dynamic_sections): Likewise. | |
1304 | * elf32-cris.c (elf_cris_finish_dynamic_sections): Likewise. | |
1305 | * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise. | |
1306 | * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise. | |
1307 | * elf32-m32r.c (m32r_elf_finish_dynamic_sections): Likewise. | |
1308 | * elf32-m68k.c (elf_m68k_finish_dynamic_sections): Likewise. | |
1309 | * elf32-metag.c (elf_metag_finish_dynamic_sections): Likewise. | |
1310 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Likewise. | |
1311 | * elf32-nds32.c (nds32_elf_finish_dynamic_sections): Likewise. | |
1312 | * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Likewise. | |
1313 | * elf32-or1k.c (or1k_elf_finish_dynamic_sections): Likewise. | |
1314 | * elf32-s390.c (elf_s390_finish_dynamic_sections): Likewise. | |
1315 | * elf32-score.c (s3_bfd_score_elf_finish_dynamic_sections): Likewise. | |
1316 | * elf32-score7.c (s7_bfd_score_elf_finish_dynamic_sections): Likewise. | |
1317 | * elf32-vax.c (elf_vax_finish_dynamic_sections): Likewise. | |
1318 | * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Likewise. | |
1319 | * elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Likewise. | |
1320 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise. | |
1321 | * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise. | |
1322 | * elflink.c (bfd_elf_final_link): Likewise. | |
1323 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise. | |
1324 | * elfxx-sparc.c (sparc_finish_dyn): Likewise. Adjust error message. | |
1325 | * elf32-arc.c (GET_SYMBOL_OR_SECTION): Remove ASSERT arg and | |
1326 | don't set doit. Look up dynobj section. | |
1327 | (elf_arc_finish_dynamic_sections): Adjust GET_SYMBOL_OR_SECTION | |
1328 | invocation and dynamic tag vma calculation. Don't test | |
1329 | boolean var == TRUE. | |
1330 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections): Fix | |
1331 | DT_JMPREL calc. | |
1332 | ||
c8e44c6d AM |
1333 | 2016-05-13 Alan Modra <amodra@gmail.com> |
1334 | ||
1335 | * elflink.c (elf_link_sort_relocs): Wrap overlong lines. Fix | |
1336 | octets_per_byte. Put dynamic .rela.plt last in link orders. | |
1337 | Assign output_offset for reloc sections rather than writing | |
1338 | sorted relocs from block corresponding to output_offset. | |
1339 | ||
1997c994 AM |
1340 | 2016-05-12 Alan Modra <amodra@gmail.com> |
1341 | ||
1342 | * elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last. | |
1343 | ||
8f4f9071 MF |
1344 | 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com> |
1345 | ||
1346 | * elfxx-mips.c (print_mips_ases): Add DSPR3. | |
1347 | ||
a464198b AM |
1348 | 2016-05-11 Alan Modra <amodra@gmail.com> |
1349 | ||
1350 | * elf32-hppa.c (elf32_hppa_init_stub_bfd): New function. | |
1351 | (elf32_hppa_check_relocs): Don't set dynobj. | |
1352 | (elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections. | |
1353 | (elf32_hppa_build_stubs): Likewise. | |
1354 | * elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare. | |
1355 | ||
3bd43ebc AM |
1356 | 2016-05-11 Alan Modra <amodra@gmail.com> |
1357 | ||
1358 | PR 20060 | |
1359 | * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local. | |
1360 | * elf32-ppc.c (ppc_elf_tls_setup): Likewise. | |
1361 | ||
4e7fbb34 JW |
1362 | 2016-05-10 Jiong Wang <jiong.wang@arm.com> |
1363 | ||
1364 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Remove redundant | |
1365 | aarch64_tls_transition check. | |
1366 | ||
4f4faa4d TP |
1367 | 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1368 | ||
1369 | * elf32-arm.c (enum elf32_arm_stub_type): New max_stub_type | |
1370 | enumerator. | |
1371 | (arm_stub_sym_claimed): New function. | |
1372 | (elf32_arm_create_stub): Use veneered symbol name and section if | |
1373 | veneer needs to claim its symbol, and keep logic unchanged otherwise. | |
1374 | (arm_stub_claim_sym): New function. | |
1375 | (arm_map_one_stub): Call arm_stub_claim_sym if veneer needs to claim | |
1376 | veneered symbol, otherwise create local symbol as before. | |
1377 | ||
39d911fc TP |
1378 | 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1379 | ||
1380 | * elf32-arm.c (elf32_arm_size_stubs): Use new macros | |
1381 | ARM_GET_SYM_BRANCH_TYPE and ARM_SET_SYM_BRANCH_TYPE to respectively get | |
1382 | and set branch type of a symbol. | |
1383 | (bfd_elf32_arm_process_before_allocation): Likewise. | |
1384 | (elf32_arm_relocate_section): Likewise and fix identation along the | |
1385 | way. | |
1386 | (allocate_dynrelocs_for_symbol): Likewise. | |
1387 | (elf32_arm_finish_dynamic_symbol): Likewise. | |
1388 | (elf32_arm_swap_symbol_in): Likewise. | |
1389 | (elf32_arm_swap_symbol_out): Likewise. | |
1390 | ||
6bde4c52 TP |
1391 | 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1392 | ||
1393 | * bfd-in.h (elf32_arm_size_stubs): Add an output section parameter. | |
1394 | * bfd-in2.h: Regenerated. | |
1395 | * elf32-arm.c (struct elf32_arm_link_hash_table): Add an output section | |
1396 | parameter to add_stub_section callback. | |
1397 | (elf32_arm_create_or_find_stub_sec): Get output section from link_sec | |
1398 | and pass it down to add_stub_section. | |
1399 | (elf32_arm_add_stub): Set section to stub_sec if NULL before using it | |
1400 | for error message. | |
1401 | (elf32_arm_size_stubs): Add output section parameter to | |
1402 | add_stub_section function pointer parameter. | |
1403 | ||
b715f643 TP |
1404 | 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1405 | ||
1406 | * elf32-arm.c (elf32_arm_create_stub): New function. | |
1407 | (elf32_arm_size_stubs): Use elf32_arm_create_stub for stub creation. | |
1408 | ||
8d9d9490 TP |
1409 | 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1410 | ||
1411 | * elf32-arm.c (enum elf32_arm_stub_type): Delete | |
1412 | arm_stub_a8_veneer_lwm enumerator. | |
1413 | (arm_stub_a8_veneer_lwm): New unsigned constant to replace | |
1414 | aforementioned enumerator. | |
1415 | (struct elf32_arm_stub_hash_entry): Delete target_addend | |
1416 | field and add source_value. | |
1417 | (struct a8_erratum_fix): Delete addend field and add target_offset. | |
1418 | (stub_hash_newfunc): Initialize source_value field amd remove | |
1419 | initialization for target_addend. | |
1420 | (arm_build_one_stub): Stop special casing Thumb relocations: promote | |
1421 | the else to being always executed, moving the | |
1422 | arm_stub_a8_veneer_b_cond specific code in it. Remove | |
1423 | stub_entry->target_addend from points_to computation. | |
1424 | (cortex_a8_erratum_scan): Store in a8_erratum_fix structure the offset | |
1425 | to target symbol from start of section rather than the offset from the | |
1426 | stub address. | |
1427 | (elf32_arm_size_stubs): Set stub_entry's source_value and target_value | |
1428 | fields from struct a8_erratum_fix's offset and target_offset | |
1429 | respectively. | |
1430 | (make_branch_to_a8_stub): Rename target variable to loc. Compute | |
1431 | veneered_insn_loc and loc using stub_entry's source_value. | |
1432 | ||
15afaa63 TP |
1433 | 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1434 | ||
1435 | (elf32_arm_merge_eabi_attributes): Add merging logic for | |
1436 | Tag_DSP_extension. | |
1437 | ||
66a36822 PC |
1438 | 2016-05-10 Pip Cet <pipcet@gmail.com> |
1439 | ||
1440 | PR ld/20059 | |
1441 | * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type): | |
1442 | Define as _bfd_generic_copy_link_hash_symbol_type when using | |
1443 | generic hash table. | |
1444 | ||
315350be NC |
1445 | 2016-05-09 Nick Clifton <nickc@redhat.com> |
1446 | ||
1447 | PR binutils/20063 | |
1448 | * elf.c (bfd_elf_get_elf_syms): Check for out of range sh_link | |
1449 | field before accessing sections array. | |
1450 | ||
9239bbd3 CM |
1451 | 2016-05-09 Christophe Monat <christophe.monat@st.com> |
1452 | ||
1453 | PR ld/20030 | |
1454 | * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding. | |
1455 | (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs | |
1456 | to nb_words. | |
1457 | (create_instruction_vldmia): Add is_dp to disambiguate SP/DP | |
1458 | encoding. | |
1459 | (create_instruction_vldmdb): Likewise. | |
1460 | (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding, | |
1461 | uses it to re-encode. | |
1462 | ||
73597c18 NC |
1463 | 2016-05-09 Nick Clifton <nickc@redhat.com> |
1464 | ||
1465 | PR 19938 | |
1466 | * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Revert accidental | |
1467 | commit. | |
1468 | ||
ae1bb197 AM |
1469 | 2016-05-09 Alan Modra <amodra@gmail.com> |
1470 | ||
1471 | * elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check. | |
1472 | ||
97196564 L |
1473 | 2016-05-06 H.J. Lu <hongjiu.lu@intel.com> |
1474 | ||
1475 | PR ld/17550 | |
1476 | * elf-bfd.h (elf_link_hash_entry): Update comments for indx, | |
1477 | documenting that indx == -3 if symbol is defined in a discarded | |
1478 | section. | |
1479 | * elflink.c (elf_link_add_object_symbols): Set indx to -3 if | |
1480 | symbol is defined in a discarded section. | |
1481 | (elf_link_output_extsym): Strip a global symbol defined in a | |
1482 | discarded section. | |
1483 | ||
030e823c L |
1484 | 2016-05-06 H.J. Lu <hongjiu.lu@intel.com> |
1485 | ||
1486 | * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel | |
1487 | MCU. | |
1488 | ||
c175a657 L |
1489 | 2016-05-05 H.J. Lu <hongjiu.lu@intel.com> |
1490 | ||
1491 | * elf32-i386.c (elf_i386_convert_load): Extract the GOT load | |
1492 | conversion to ... | |
1493 | (elf_i386_convert_load_reloc): This. New function. | |
1494 | * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load | |
1495 | conversion to ... | |
1496 | (elf_x86_64_convert_load_reloc): This. New function. | |
1497 | ||
bedfd056 L |
1498 | 2016-05-05 H.J. Lu <hongjiu.lu@intel.com> |
1499 | ||
1500 | * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd. | |
1501 | Don't check if contents == NULL. | |
1502 | (elf_i386_tls_transition): Add from_relocate_section. Check | |
1503 | from_relocate_section instead of contents != NULL. Update | |
1504 | elf_i386_check_tls_transition call. | |
1505 | (elf_i386_check_relocs): Cache the section contents if | |
1506 | keep_memory is FALSE. Pass FALSE as from_relocate_section to | |
1507 | elf_i386_tls_transition. | |
1508 | (elf_i386_relocate_section): Pass TRUE as from_relocate_section | |
1509 | to elf_i386_tls_transition. | |
1510 | (elf_backend_caches_rawsize): New. | |
1511 | * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check | |
1512 | if contents == NULL. | |
1513 | (elf_x86_64_tls_transition): Add from_relocate_section. Check | |
1514 | from_relocate_section instead of contents != NULL. | |
1515 | (elf_x86_64_check_relocs): Cache the section contents if | |
1516 | keep_memory is FALSE. Pass FALSE as from_relocate_section to | |
1517 | elf_x86_64_tls_transition. | |
1518 | (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section | |
1519 | to elf_x86_64_tls_transition. | |
1520 | (elf_backend_caches_rawsize): New. | |
1521 | ||
6d6a648c MR |
1522 | 2016-05-03 Maciej W. Rozycki <macro@imgtec.com> |
1523 | ||
1524 | PR 10549 | |
1525 | * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle | |
1526 | STB_GNU_UNIQUE. | |
1527 | ||
1f56df9d JW |
1528 | 2016-05-03 Jiong Wang <jiong.wang@arm.com> |
1529 | ||
1530 | * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype. | |
1531 | * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise. | |
1532 | * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize | |
1533 | no_apply_dynamic_relocs. | |
1534 | (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though | |
1535 | dynamic relocations generated. | |
1536 | ||
493f652c L |
1537 | 2016-04-29 H.J. Lu <hongjiu.lu@intel.com> |
1538 | ||
1539 | * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp | |
1540 | setting to ... | |
1541 | (elf_i386_create_dynamic_sections): Here. | |
1542 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move | |
1543 | interp setting to ... | |
1544 | (elf_x86_64_create_dynamic_sections): Here. | |
1545 | ||
e62b9723 L |
1546 | 2016-04-29 H.J. Lu <hongjiu.lu@intel.com> |
1547 | ||
1548 | * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC | |
1549 | and replace (EH)->has_got_reloc with GOT_RELOC. | |
1550 | (elf_i386_fixup_symbol): Pass has_got_reloc to | |
1551 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
1552 | (elf_i386_allocate_dynrelocs): Likewise. | |
1553 | (elf_i386_relocate_section): Likewise. | |
1554 | (elf_i386_finish_dynamic_symbol): Likewise. | |
1555 | (elf_i386_convert_load): Pass TRUE to | |
1556 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
1557 | * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take | |
1558 | GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC. | |
1559 | (elf_x86_64_fixup_symbol): Pass has_got_reloc to | |
1560 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
1561 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
1562 | (elf_x86_64_relocate_section): Likewise. | |
1563 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
1564 | (elf_x86_64_convert_load): Pass TRUE to | |
1565 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
1566 | ||
c337a162 L |
1567 | 2016-04-29 H.J. Lu <hongjiu.lu@intel.com> |
1568 | ||
1569 | * elf32-i386.c (check_relocs_failed): New. | |
1570 | (elf_i386_check_relocs): Set check_relocs_failed on error. | |
1571 | (elf_i386_relocate_section): Skip if check_relocs failed. | |
1572 | ||
afd9acee L |
1573 | 2016-04-29 H.J. Lu <hongjiu.lu@intel.com> |
1574 | ||
1575 | * elf64-x86-64.c (elf_x86_64_check_relocs): Set | |
1576 | check_relocs_failed on error. | |
1577 | ||
5522f910 NC |
1578 | 2016-04-29 Nick Clifton <nickc@redhat.com> |
1579 | ||
1580 | PR 19938 | |
1581 | * elf-bfd.h (struct elf_backend_data): Rename | |
1582 | elf_backend_set_special_section_info_and_link to | |
1583 | elf_backend_copy_special_section_fields. | |
1584 | * elfxx-target.h: Likewise. | |
1585 | * elf.c (section_match): Ignore the SHF_INFO_LINK flag when | |
1586 | comparing section flags. | |
1587 | (copy_special_section_fields): New function. | |
1588 | (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field. | |
1589 | Perform two scans over special sections. The first one looks for | |
1590 | a direct mapping between the output section and an input section. | |
1591 | The second scan looks for a possible match based upon section | |
1592 | characteristics. | |
1593 | * elf32-arm.c (elf32_arm_copy_special_section_fields): New | |
1594 | function. Handle setting the sh_link field of SHT_ARM_EXIDX | |
1595 | sections. | |
1596 | * elf32-i386.c (elf32_i386_set_special_info_link): Rename to | |
1597 | elf32_i386_copy_solaris_special_section_fields. | |
1598 | * elf32-sparc.c (elf32_sparc_set_special_section_info_link): | |
1599 | Rename to elf32_sparc_copy_solaris_special_section_fields. | |
1600 | * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to | |
1601 | elf64_x86_64_copy_solaris_special_section_fields. | |
1602 | ||
786a118c NC |
1603 | 2016-04-28 Nick Clifton <nickc@redhat.com> |
1604 | ||
1605 | * po/zh_CN.po: Updated Chinese (simplified) translation. | |
1606 | ||
91f8bf69 L |
1607 | 2016-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1608 | ||
1609 | PR ld/20006 | |
1610 | * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections | |
1611 | when estimating distances between output sections. | |
1612 | ||
a6a4679f AM |
1613 | 2016-04-27 Alan Modra <amodra@gmail.com> |
1614 | ||
1615 | * elflink.c (_bfd_elf_is_start_stop): New function. | |
1616 | (_bfd_elf_gc_mark_rsec): Use it. | |
1617 | * elf-bfd.h (_bfd_elf_is_start_stop): Declare. | |
1618 | ||
28cc9170 TS |
1619 | 2016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
1620 | ||
1621 | * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *. | |
1622 | * mmo.c (mmo_get_section_contents): Likewise. | |
1623 | (mmo_set_section_contents): Likewise. | |
1624 | ||
d5486c43 L |
1625 | 2016-04-26 H.J. Lu <hongjiu.lu@intel.com> |
1626 | ||
1627 | * elf-bfd.h (elf_link_hash_table): Update comments for | |
1628 | dynsymcount. | |
1629 | * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for | |
1630 | the unused NULL entry at the head of dynamic symbol table. | |
1631 | (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0 | |
1632 | checks. | |
1633 | ||
6645479e L |
1634 | 2016-04-21 H.J. Lu <hongjiu.lu@intel.com> |
1635 | ||
1636 | * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker | |
1637 | created file from dynobj. | |
1638 | ||
6cd255ca L |
1639 | 2016-04-21 H.J. Lu <hongjiu.lu@intel.com> |
1640 | ||
1641 | * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a | |
1642 | normal input file if possible. | |
1643 | ||
4f3b23b3 NC |
1644 | 2016-04-21 Nick Clifton <nickc@redhat.com> |
1645 | ||
1646 | * aout-adobe.c: Use _bfd_generic_link_check_relocs. | |
1647 | * aout-target.h: Likewise. | |
1648 | * aout-tic30.c: Likewise. | |
1649 | * binary.c: Likewise. | |
1650 | * bout.c: Likewise. | |
1651 | * coff-alpha.c: Likewise. | |
1652 | * coff-rs6000.c: Likewise. | |
1653 | * coff64-rs6000.c: Likewise. | |
1654 | * coffcode.h: Likewise. | |
1655 | * i386msdos.c: Likewise. | |
1656 | * i386os9k.c: Likewise. | |
1657 | * ieee.c: Likewise. | |
1658 | * ihex.c: Likewise. | |
1659 | * libbfd-in.h: Likewise. | |
1660 | * libecoff.h: Likewise. | |
1661 | * mach-o-target.c: Likewise. | |
1662 | * mmo.c: Likewise. | |
1663 | * nlm-target.h: Likewise. | |
1664 | * oasys.c: Likewise. | |
1665 | * pef.c: Likewise. | |
1666 | * plugin.c: Likewise. | |
1667 | * ppcboot.c: Likewise. | |
1668 | * som.c: Likewise. | |
1669 | * srec.c: Likewise. | |
1670 | * tekhex.c: Likewise. | |
1671 | * versados.c: Likewise. | |
1672 | * vms-alpha.c: Likewise. | |
1673 | * xsym.c: Likewise. | |
1674 | * elfxx-target.h: Use _bfd_elf_link_check_relocs. | |
1675 | * linker.c (bfd_link_check_relocs): New function. | |
1676 | (_bfd_generic_link_check_relocs): New function. | |
1677 | * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of | |
1678 | _bfd_link_check_relocs field. | |
1679 | (struct bfd_target)L Add _bfd_link_check_relocs field. | |
1680 | * bfd-in2.h: Regenerate. | |
1681 | * libbfd.h: Regenerate. | |
1682 | ||
e66cdd68 L |
1683 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
1684 | ||
1685 | * elf32-i386.c (elf_i386_gc_sweep_hook): Removed. | |
1686 | (elf_backend_gc_sweep_hook): Likewise. | |
1687 | * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise. | |
1688 | (elf_backend_gc_sweep_hook): Likewise. | |
1689 | ||
5ce03cea L |
1690 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
1691 | ||
1692 | * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations | |
1693 | in excluded sections | |
1694 | ||
338c190a L |
1695 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
1696 | ||
1697 | PR ld/19969 | |
1698 | * elf64-x86-64.c (check_relocs_failed): New. | |
1699 | (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs. | |
1700 | Support relocation agaist local symbol. Set check_relocs_failed. | |
1701 | (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check | |
1702 | R_X86_64_32 relocation overflow. | |
1703 | (elf_x86_64_relocate_section): Skip if check_relocs failed. | |
1704 | Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic. | |
1705 | ||
466ee2af L |
1706 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
1707 | ||
1708 | * elf32-i386.c (elf_i386_check_relocs): Call | |
1709 | _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol. | |
1710 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
1711 | ||
d9689752 L |
1712 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
1713 | ||
1714 | * elf-bfd.h (_bfd_elf_link_check_relocs): New. | |
1715 | * elflink.c (_bfd_elf_link_check_relocs): New function. | |
1716 | (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs | |
1717 | if check_relocs_after_open_input is FALSE. | |
1718 | ||
e6c7cdec TS |
1719 | 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
1720 | ||
1721 | * cache.c: Update old style function definitions. | |
1722 | * elf32-m68k.c: Likewise. | |
1723 | * elf64-mmix.c: Likewise. | |
1724 | * stab-syms.c: Likewise. | |
1725 | ||
b98e6871 TS |
1726 | 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
1727 | ||
1728 | * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *. | |
1729 | ||
6fd8e7c2 L |
1730 | 2016-04-15 H.J. Lu <hongjiu.lu@intel.com> |
1731 | ||
1732 | * Makefile.in: Regenerated with automake 1.11.6. | |
1733 | * aclocal.m4: Likewise. | |
1734 | * doc/Makefile.in: Likewise. | |
1735 | ||
4b0c052e AB |
1736 | 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com> |
1737 | ||
1738 | * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry. | |
1739 | * bfd-in2.h: Regenerate. | |
1740 | * libbfd.h: Regenerate. | |
1741 | * elf32-arc.c: Add 'opcode/arc.h' include. | |
1742 | (struct arc_relocation_data): Add symbol_name. | |
1743 | (arc_special_overflow_checks): New function. | |
1744 | (arc_do_relocation): Use arc_special_overflow_checks, reindent as | |
1745 | required, add an extra comment. | |
1746 | (elf_arc_relocate_section): Setup symbol_name in reloc_data. | |
1747 | ||
33cbe6c0 AB |
1748 | 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com> |
1749 | ||
1750 | * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all | |
1751 | entries. | |
1752 | (elf_arc_relocate_section): Update enum uses. | |
1753 | (elf_arc_check_relocs): Likewise. | |
1754 | (elf_arc_finish_dynamic_symbol): Likewise. | |
1755 | ||
7634c4e6 L |
1756 | 2016-04-14 H.J. Lu <hongjiu.lu@intel.com> |
1757 | ||
1758 | * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with | |
1759 | "sh_link". | |
1760 | ||
84865015 NC |
1761 | 2016-04-14 Nick Clifton <nickc@redhat.com> |
1762 | ||
1763 | PR target/19938 | |
1764 | * elf-bbfd.h (struct elf_backend_data): New field: | |
1765 | elf_strtab_flags. | |
1766 | New field: elf_backend_set_special_section_info_and_link | |
1767 | * elfxx-target.h (elf_backend_strtab_flags): Define if not already | |
1768 | defined. | |
1769 | (elf_backend_set_special_section_info_and_link): Define if not | |
1770 | already defined. | |
1771 | (elfNN_bed): Use elf_backend_set_special_section_info_and_link and | |
1772 | elf_backend_strtab_flags macros to initialise fields in structure. | |
1773 | * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS | |
1774 | being set even if SHF_MERGE is not set. | |
1775 | (elf_fake_sections): Likewise. | |
1776 | (section_match): New function. Matches two ELF sections based | |
1777 | upon fixed characteristics. | |
1778 | (find_link): New function. Locates a section in a BFD that | |
1779 | matches a section in a different BFD. | |
1780 | (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link | |
1781 | fields of reserved sections. | |
1782 | (bfd_elf_compute_section_file_positions): Set the flags for the | |
1783 | .shstrtab section based upon the elf_strtab_flags field in the | |
1784 | elf_backend_data structure. | |
1785 | (swap_out_syms): Likewise for the .strtab section. | |
1786 | * elflink.c (bfd_elf_final_link): Set the flags for the | |
1787 | .strtab section based upon the elf_strtab_flags field in the | |
1788 | elf_backend_data structure. | |
1789 | * elf32-i386.c (elf32_i386_set_special_info_link): New function. | |
1790 | (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris | |
1791 | targets. | |
1792 | (elf_backend_set_special_section_info_and_link): Define for | |
1793 | Solaris targets. | |
1794 | * elf32-sparc.c: Likewise. | |
1795 | * elf64-x86-64.c: Likewise. | |
1796 | ||
2df3368d L |
1797 | 2016-04-11 H.J. Lu <hongjiu.lu@intel.com> |
1798 | ||
1799 | PR ld/19939 | |
1800 | * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer | |
1801 | to bfd_boolean. | |
1802 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated. | |
1803 | Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc | |
1804 | applies to read-only section. | |
1805 | * elf32-i386.c (elf_i386_link_hash_table): Add | |
1806 | readonly_dynrelocs_against_ifunc. | |
1807 | (elf_i386_allocate_dynrelocs): Updated. | |
1808 | (elf_i386_size_dynamic_sections): Issue an error for read-only | |
1809 | segment with dynamic IFUNC relocations only if | |
1810 | readonly_dynrelocs_against_ifunc is TRUE. | |
1811 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
1812 | readonly_dynrelocs_against_ifunc. | |
1813 | (elf_x86_64_allocate_dynrelocs): Updated. | |
1814 | (elf_x86_64_size_dynamic_sections): Issue an error for read-only | |
1815 | segment with dynamic IFUNC relocations only if | |
1816 | readonly_dynrelocs_against_ifunc is TRUE. | |
1817 | * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs): | |
1818 | Updated. | |
1819 | ||
15dd01b1 TP |
1820 | 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1821 | ||
1822 | * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be | |
1823 | a fall through from error_ret_free_internal. Free local_syms in | |
1824 | error_ret_free_local if allocated from bfd_elf_get_elf_syms (). | |
1825 | ||
1e5885b7 CZ |
1826 | 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> |
1827 | ||
1828 | * elf32-arc.c (plt_do_relocs_for_symbol): Changed. | |
1829 | (relocate_plt_for_entry): Likewise. | |
1830 | ||
b3aee839 CZ |
1831 | 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> |
1832 | ||
1833 | * elf32-arc.c (elf_arc_check_relocs): Changed | |
1834 | ||
094fb063 CZ |
1835 | 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> |
1836 | ||
1837 | * elf32-arc.c (name_for_global_symbol): Changed assert. | |
1838 | (get_replace_function): Created.: | |
1839 | (struct arc_relocation_data): Changed to signed types. | |
1840 | (defines S, L, P, PDATA): Casted to signed type. | |
1841 | (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise. | |
1842 | (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed. | |
1843 | (arc_do_relocation): Changed. | |
1844 | ||
94e5c971 CZ |
1845 | 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> |
1846 | ||
1847 | * elf32-arc.c (name_for_global_symbol): Added assert to check for | |
1848 | symbol index. | |
1849 | (elf_arc_relocate_section): Added and changed asserts, validating | |
1850 | the synamic symbol index. | |
1851 | (elf_arc_finish_dynamic_symbol): Do not fill the dynamic | |
1852 | relocation if symbol has dynindx set to -1. | |
1853 | ||
1f599d0e MR |
1854 | 2016-04-05 Maciej W. Rozycki <macro@imgtec.com> |
1855 | ||
1856 | * elflink.c (elf_link_add_object_symbols): Always turn hidden | |
1857 | and internal symbols which have a dynamic index into local | |
1858 | ones. | |
1859 | ||
67f101ee NC |
1860 | 2016-04-04 Nick Clifton <nickc@redhat.com> |
1861 | ||
1862 | PR 19872 | |
1863 | * dwarf2.c (parse_comp_unit): Skip warning about unrecognised | |
1864 | version number if the version is zero. | |
1865 | ||
7b15fa7a AM |
1866 | 2016-04-01 Alan Modra <amodra@gmail.com> |
1867 | ||
1868 | PR 19886 | |
1869 | * elflink.c (on_needed_list): Recursively check needed status. | |
1870 | (elf_link_add_object_symbols): Adjust. | |
1871 | ||
024ea11b SKS |
1872 | 2016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
1873 | ||
1874 | * elf32-avr.c (avr_elf32_load_records_from_section): Free | |
1875 | internal_relocs only if they aren't cached. | |
1876 | ||
ed3056eb NC |
1877 | 2016-03-29 Nick Clifton <nickc@redhat.com> |
1878 | ||
1879 | PR 17334 | |
1880 | * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax | |
1881 | assertion on the size of the got section to allow it to be bigger | |
1882 | than the number of relocs. | |
1883 | ||
e2b4fc91 TS |
1884 | 2016-03-29 Toni Spets <toni.spets@iki.fi> |
1885 | ||
1886 | PR 19878 | |
1887 | * coffcode.h (coff_write_object_contents): Revert accidental | |
1888 | 2014-11-10 change. | |
1889 | ||
a97fbc7e AM |
1890 | 2016-03-22 Alan Modra <amodra@gmail.com> |
1891 | ||
1892 | PR 19850 | |
1893 | * dwarf2.c (read_attribute_value): Skip info_ptr check for | |
1894 | DW_FORM_flag_present. | |
1895 | ||
9780e045 NC |
1896 | 2016-03-22 Nick Clifton <nickc@redhat.com> |
1897 | ||
96254e5c NC |
1898 | * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an |
1899 | architecture name for backwards compatibility. | |
1900 | ||
7769fa97 NC |
1901 | * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible |
1902 | unbounded stack use. | |
1903 | ||
9780e045 NC |
1904 | * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a |
1905 | sufficiently recent version of GCC. | |
1906 | * configure: Regenerate. | |
1907 | ||
6f4c0a42 AM |
1908 | 2016-03-22 Alan Modra <amodra@gmail.com> |
1909 | ||
1910 | PR 19851 | |
1911 | * plugin.c (try_load_plugin): Avoid -Wstack-usage warning. | |
1912 | ||
8699fc3e AB |
1913 | 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1914 | ||
1915 | * archures.c (bfd_mach_arc_nps400): Define. | |
1916 | * bfd-in2.h: Regenerate. | |
1917 | * cpu-arc.c (arch_info_struct): New entry for nps400, renumber | |
1918 | some existing entries to make space. | |
1919 | * elf32-arc.c (arc_elf_object_p): Add nps400 case. | |
1920 | (arc_elf_final_write_processing): Likewise. | |
1921 | ||
a9522a21 AB |
1922 | 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1923 | ||
1924 | * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of | |
1925 | EF_ARC_CPU_GENERIC. | |
1926 | (arc_elf_final_write_processing): Don't bother setting cpu field | |
1927 | in e_flags, this will have been set elsewhere. | |
1928 | ||
c0334580 AB |
1929 | 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1930 | ||
1931 | * elf32-arc.c (arc_elf_final_write_processing): Switch to using | |
1932 | EF_ARC_MACH_MSK. | |
1933 | ||
e1fa0163 NC |
1934 | 2016-03-21 Nick Clifton <nickc@redhat.com> |
1935 | ||
1936 | * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144 | |
1937 | * configure: Regenerate. | |
1938 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of | |
1939 | alloca with call to xmalloc. | |
1940 | * elf32-nds32.c: Likewise. | |
1941 | * elf64-hppa.c: Likewise. | |
1942 | * elfxx-mips.c: Likewise. | |
1943 | * pef.c: Likewise. | |
1944 | * pei-x86_64.c: Likewise. | |
1945 | * som.c: Likewise. | |
1946 | * xsym.c: Likewise. | |
1947 | ||
4e0c91e4 L |
1948 | 2016-03-15 H.J. Lu <hongjiu.lu@intel.com> |
1949 | ||
1950 | PR ld/19827 | |
1951 | * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol | |
1952 | locally in PIE. | |
1953 | (elf_i386_relocate_section): Likewise. | |
1954 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
1955 | (elf_x86_64_relocate_section): Likewise. | |
1956 | ||
4c10bbaa L |
1957 | 2016-03-15 H.J. Lu <hongjiu.lu@intel.com> |
1958 | ||
1959 | PR ld/19807 | |
1960 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check | |
1961 | no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S | |
1962 | relocation overflow check. | |
1963 | ||
fbe48798 L |
1964 | 2016-03-14 H.J. Lu <hongjiu.lu@intel.com> |
1965 | ||
1966 | * bfd-in2.h: Regenerated. | |
1967 | ||
37b01f6a DG |
1968 | 2016-03-11 Dan Gissel <dgisselq@ieee.org> |
1969 | ||
1970 | PR 19713 | |
1971 | * elf.c (_bfd_elf_section_offset): Ensure that the returned offset | |
1972 | uses bytes not octets. | |
1973 | * elflink.c (resolve_section): Likewise. | |
1974 | Add a bfd parameter. | |
1975 | (eval_section): Pass the input_bfd to resolve_section. | |
1976 | (bfd_elf_perform_complex_relocation): Convert byte offset to | |
1977 | octets before read and writing values. | |
1978 | (elf_link_input_bfd): Add byte to octet conversions. | |
1979 | (elf_reloc_link_order): Likewise. | |
1980 | (elf_fixup_link_order): Likewise. | |
1981 | (bfd_elf_final_link): Likewise. | |
1982 | * reloc.c (_bfd_final_link_relocate): Likewise. | |
1983 | * syms.c (_bfd_stab_section_find_nearest_line): Likewise. | |
1984 | ||
3ed4ff97 NC |
1985 | 2016-03-10 Nick Clifton <nickc@redhat.com> |
1986 | ||
1987 | * config.bfd: Mark the i370 target as obsolete. | |
1988 | ||
4b05e0a7 PA |
1989 | 2016-03-09 Pedro Alves <palves@redhat.com> |
1990 | ||
1991 | * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old | |
1992 | gcc ABI)" to printable name. | |
1993 | * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead | |
1994 | of "v850-rh850" as printable name. | |
1995 | ||
26c62da0 LW |
1996 | 2016-03-09 Leon Winter <winter-gcc@bfw-online.de> |
1997 | ||
1998 | PR ld/19623 | |
1999 | * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply | |
2000 | relocations against absolute symbols. | |
2001 | ||
03ee8583 AM |
2002 | 2016-03-09 Alan Modra <amodra@gmail.com> |
2003 | ||
2004 | PR binutils/19775 | |
2005 | * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero | |
2006 | length elements in the archive. | |
2007 | ||
9c1d7a08 L |
2008 | 2016-03-08 H.J. Lu <hongjiu.lu@intel.com> |
2009 | ||
2010 | PR ld/19789 | |
2011 | * elflink.c (elf_link_add_object_symbols): Create dynamic sections | |
2012 | for -E/--dynamic-list only when not relocatable. | |
2013 | ||
d1ed1c7d L |
2014 | 2016-03-08 H.J. Lu <hongjiu.lu@intel.com> |
2015 | ||
2016 | PR ld/19784 | |
2017 | * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference | |
2018 | count for locally defined local IFUNC symbols in shared object. | |
2019 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
2020 | ||
202ac193 L |
2021 | 2016-03-08 H.J. Lu <hongjiu.lu@intel.com> |
2022 | ||
2023 | PR ld/19579 | |
2024 | * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking | |
2025 | together. | |
2026 | ||
72f3b6aa CZ |
2027 | 2016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com> |
2028 | Andrew Burgess <andrew.burgess@embecosm.com> | |
2029 | ||
2030 | * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32. | |
2031 | (arc_bfd_put_32): Becomes an alias for bfd_put_32. | |
2032 | (arc_elf_howto_init): Added assert to validate relocations. | |
2033 | (get_middle_endian_relocation): Delete. | |
2034 | (middle_endian_convert): New function. | |
2035 | (ME): Redefine, now does nothing. | |
2036 | (IS_ME): New define. | |
2037 | (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO' | |
2038 | definition to call middle_endian_convert. Add a new local | |
2039 | variable and make use of this throughout. Added call to | |
2040 | arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations. | |
2041 | ||
4fc87424 NC |
2042 | 2016-03-07 Nick Clifton <nickc@redhat.com> |
2043 | ||
2044 | PR binutils/19775 | |
2045 | * archive.c (bfd_generic_openr_next_archived_file): Allow zero | |
2046 | length elements in the archive. | |
2047 | ||
18f822a0 JW |
2048 | 2016-03-07 Jiong Wang <jiong.wang@arm.com> |
2049 | ||
2050 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got | |
2051 | section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced. | |
2052 | ||
07492f66 L |
2053 | 2016-03-04 H.J. Lu <hongjiu.lu@intel.com> |
2054 | ||
2055 | PR ld/19579 | |
2056 | * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in | |
2057 | executable as definition if the new definition comes from a | |
2058 | shared library. | |
2059 | ||
70a5df4f AM |
2060 | 2016-03-02 Alan Modra <amodra@gmail.com> |
2061 | ||
2062 | * Makefile.in: Regenerate. | |
2063 | * po/SRC-POTFILES.in: Regenerate. | |
2064 | ||
841fdfcd CZ |
2065 | 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com> |
2066 | ||
2067 | * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the | |
2068 | relocation addend when sections get merged. | |
2069 | ||
7e458899 CZ |
2070 | 2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com> |
2071 | ||
2072 | * elf32-arc.c (arc_elf_final_write_processing): Add condition to | |
2073 | the flag change. | |
2074 | (elf_arc_relocate_section): Fixes and conditions to support PIE. | |
2075 | Assert for code sections dynamic relocs. | |
2076 | ||
c5e3a364 RL |
2077 | 2016-02-26 Renlin Li <renlin.li@arm.com> |
2078 | ||
2079 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow | |
2080 | check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2. | |
2081 | ||
bae420ef L |
2082 | 2016-02-26 H.J. Lu <hongjiu.lu@intel.com> |
2083 | ||
2084 | PR ld/19609 | |
2085 | * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for | |
2086 | load with locally bound symbols if PIC is false or there is no | |
2087 | base register. Optimize branch to 0 if PIC is false. | |
2088 | (elf_i386_relocate_section): Don't generate dynamic relocations | |
2089 | against undefined weak symbols if PIC is false. | |
2090 | * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization | |
2091 | if we can't estimate relocation overflow with --no-relax. | |
2092 | Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound | |
2093 | symbols if PIC is false. Optimize branch to 0 if PIC is false. | |
2094 | (elf_x86_64_relocate_section): Don't generate dynamic relocations | |
2095 | against undefined weak symbols if PIC is false. | |
2096 | ||
11e5f1ec L |
2097 | 2016-02-26 H.J. Lu <hongjiu.lu@intel.com> |
2098 | ||
2099 | PR ld/19645 | |
2100 | * bfd.c (bfd): Change flags to 20 bits. | |
2101 | (BFD_CONVERT_ELF_COMMON): New. | |
2102 | (BFD_USE_ELF_STT_COMMON): Likewise. | |
2103 | (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and | |
2104 | BFD_USE_ELF_STT_COMMON. | |
2105 | (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise. | |
2106 | * configure.ac: Remove --enable-elf-stt-common. | |
2107 | * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for | |
2108 | common symbol depending on BFD_CONVERT_ELF_COMMON and | |
2109 | BFD_USE_ELF_STT_COMMON. | |
2110 | * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for | |
2111 | STT_COMMON. | |
2112 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check | |
2113 | STT_COMMON. | |
2114 | (elf_link_convert_common_type): New function. | |
2115 | (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for | |
2116 | common symbol depending on BFD_CONVERT_ELF_COMMON and | |
2117 | BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx. | |
2118 | * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON | |
2119 | and BFD_USE_ELF_STT_COMMON to object_flags. | |
2120 | (TARGET_LITTLE_SYM): Likewise. | |
2121 | * syms.c (BSF_KEEP_G): Renamed to ... | |
2122 | (BSF_ELF_COMMON): This. | |
2123 | * bfd-in2.h: Regenerated. | |
2124 | * config.in: Likewise. | |
2125 | * configure: Likewise. | |
2126 | ||
aec6b87e L |
2127 | 2016-02-26 H.J. Lu <hongjiu.lu@intel.com> |
2128 | ||
2129 | PR ld/19636 | |
2130 | PR ld/19704 | |
2131 | PR ld/19719 | |
2132 | * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
2133 | (elf_i386_link_hash_entry): Add has_got_reloc and | |
2134 | has_non_got_reloc. | |
2135 | (elf_i386_link_hash_table): Add interp. | |
2136 | (elf_i386_link_hash_newfunc): Initialize has_got_reloc and | |
2137 | has_non_got_reloc. | |
2138 | (elf_i386_copy_indirect_symbol): Copy has_got_reloc and | |
2139 | has_non_got_reloc. | |
2140 | (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc. | |
2141 | (elf_i386_fixup_symbol): New function. | |
2142 | (elf_i386_pie_finish_undefweak_symbol): Likewise. | |
2143 | (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic | |
2144 | relocations and discard relocations against resolved undefined | |
2145 | weak symbols in executable. Don't make resolved undefined weak | |
2146 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
2147 | relocation against undefined weak symbols in PIE. | |
2148 | (elf_i386_size_dynamic_sections): Set interp to .interp section. | |
2149 | (elf_i386_relocate_section): Don't generate dynamic relocations | |
2150 | against resolved undefined weak symbols in PIE, except for | |
2151 | R_386_PC32. | |
2152 | (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without | |
2153 | dynamic PLT/GOT relocations for resolved undefined weak symbols. | |
2154 | Don't generate dynamic relocation against resolved undefined weak | |
2155 | symbol in executable. | |
2156 | (elf_i386_finish_dynamic_sections): Call | |
2157 | elf_i386_pie_finish_undefweak_symbol on all symbols in PIE. | |
2158 | (elf_backend_fixup_symbol): New. | |
2159 | * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
2160 | (elf_x86_64_link_hash_entry): Add has_got_reloc and | |
2161 | has_non_got_reloc. | |
2162 | (elf_x86_64_link_hash_table): Add interp. | |
2163 | (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and | |
2164 | has_non_got_reloc. | |
2165 | (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and | |
2166 | has_non_got_reloc. | |
2167 | (elf_x86_64_check_relocs): Set has_got_reloc and | |
2168 | has_non_got_reloc. | |
2169 | (elf_x86_64_fixup_symbol): New function. | |
2170 | (elf_x86_64_pie_finish_undefweak_symbol): Likewise. | |
2171 | (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic | |
2172 | relocations and discard relocations against resolved undefined | |
2173 | weak symbols in executable. Don't make resolved undefined weak | |
2174 | symbols in executable dynamic. | |
2175 | (elf_x86_64_size_dynamic_sections): Set interp to .interp section. | |
2176 | (elf_x86_64_relocate_section): Check relocation overflow for | |
2177 | dynamic relocations against unresolved weak undefined symbols. | |
2178 | Don't generate dynamic relocations against resolved weak | |
2179 | undefined symbols in PIE. | |
2180 | (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without | |
2181 | dynamic PLT/GOT relocations for resolved undefined weak symbols. | |
2182 | Don't generate dynamic relocation against resolved undefined weak | |
2183 | symbol in executable. | |
2184 | (elf_x86_64_finish_dynamic_sections): Call | |
2185 | elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE. | |
2186 | (elf_backend_fixup_symbol): New. | |
2187 | ||
b32547cd AM |
2188 | 2016-02-26 Alan Modra <amodra@gmail.com> |
2189 | ||
2190 | * elf64-ppc.c (create_linkage_sections): Create sfpr when | |
2191 | save_restore_funcs, rest of sections when not relocatable. | |
2192 | (ppc64_elf_init_stub_bfd): Always call create_linkage_sections. | |
2193 | (sfpr_define): Define all symbols on emitted code. | |
2194 | (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created | |
2195 | when relocatable. Move sfpr_define loop earlier. | |
2196 | ||
ef77d6af L |
2197 | 2016-02-24 H.J. Lu <hongjiu.lu@intel.com> |
2198 | ||
2199 | * elf64-x86-64.c (elf_x86_64_need_pic): New function. | |
2200 | (elf_x86_64_relocate_section): Use it. Replace | |
2201 | x86_64_elf_howto_table[r_type] with howto. | |
2202 | ||
0f550b3d L |
2203 | 2016-02-24 H.J. Lu <hongjiu.lu@intel.com> |
2204 | ||
2205 | PR ld/19698 | |
2206 | * elflink.c (bfd_elf_record_link_assignment): Set versioned if | |
2207 | symbol version is unknown. | |
2208 | ||
13f42277 L |
2209 | 2016-02-24 H.J. Lu <hongjiu.lu@intel.com> |
2210 | ||
2211 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset | |
2212 | to (bfd_vma) -1 when setting needs_plt to 0. | |
2213 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
2214 | ||
6b3b0ab8 L |
2215 | 2016-02-23 H.J. Lu <hongjiu.lu@intel.com> |
2216 | ||
2217 | * elflink.c (bfd_elf_record_link_assignment): Check for shared | |
2218 | library, instead of PIC, and don't check PDE when making linker | |
2219 | assigned symbol dynamic. | |
2220 | ||
17733f5b FS |
2221 | 2016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com> |
2222 | ||
2223 | * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment | |
2224 | ABIVERSION for non-executable stack. | |
2225 | ||
47993b4a RF |
2226 | 2016-02-23 Rich Felker <bugdal@aerifal.cx> |
2227 | ||
2228 | PR target/19516 | |
2229 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): | |
2230 | Always produce a RELATIVE reloc for a local symbol. | |
2231 | ||
2d8dcb81 HPN |
2232 | 2016-02-23 Hans-Peter Nilsson <hp@axis.com> |
2233 | ||
2234 | Fix test-case ld-elf/pr19617b | |
2235 | * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't | |
2236 | discard unused non-function symbols when --dynamic-list-data. | |
2237 | ||
1a6e6083 L |
2238 | 2016-02-22 H.J. Lu <hongjiu.lu@intel.com> |
2239 | ||
2240 | * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the | |
2241 | dynsym section, even if it is empty, with dynamic sections. | |
2242 | ||
75c1920b L |
2243 | 2016-02-22 H.J. Lu <hongjiu.lu@intel.com> |
2244 | ||
2245 | * syms.c: Remove BSF_COMMON from comments. | |
2246 | * bfd-in2.h: Regenerated. | |
2247 | ||
9a228467 JW |
2248 | 2016-02-22 Jiong Wang <jiong.wang@arm.com> |
2249 | ||
2250 | * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation | |
2251 | for destination. Remove useless function parameters. | |
2252 | (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub. | |
2253 | ||
73768414 NC |
2254 | 2016-02-19 Nick Clifton <nickc@redhat.com> |
2255 | ||
e517df3d NC |
2256 | PR ld/19629 |
2257 | * aoutx.h (aout_link_add_symbols): Check for out of range string | |
2258 | table offsets. | |
2259 | ||
73768414 NC |
2260 | PR ld/19628 |
2261 | * reloc.c (bfd_generic_get_relocated_section_contents): Stop | |
2262 | processing if we encounter a reloc without an associated symbol. | |
2263 | ||
bf89386a L |
2264 | 2016-02-18 H.J. Lu <hongjiu.lu@intel.com> |
2265 | ||
2266 | PR ld/19617 | |
2267 | * elflink.c (elf_link_add_object_symbols): Always create dynamic | |
2268 | sections for -E/--dynamic-list. | |
2269 | ||
8f79b794 L |
2270 | 2016-02-17 H.J. Lu <hongjiu.lu@intel.com> |
2271 | ||
2272 | * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined | |
2273 | to bfd_true. | |
2274 | ||
64bfc258 JM |
2275 | 2016-02-16 Joseph Myers <joseph@codesourcery.com> |
2276 | ||
2277 | * plugin.c (plugin_vec): Set match priority to 255. | |
2278 | * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When | |
2279 | matching against the plugin vector, take priority from there not | |
2280 | from TEMP. | |
2281 | ||
9fb71ee4 NC |
2282 | 2016-02-15 Nick Clifton <nickc@redhat.com> |
2283 | ||
2284 | * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values | |
2285 | for length and type fields. Use a signed value for the | |
2286 | suffix_length field. | |
2287 | ||
32875eb1 L |
2288 | 2016-02-10 H.J. Lu <hongjiu.lu@intel.com> |
2289 | ||
2290 | PR ld/19601 | |
2291 | * elf32-i386.c (elf_i386_relocate_section): Mask off the least | |
2292 | significant bit in GOT offset for R_386_GOT32X. | |
2293 | ||
83da6e74 NC |
2294 | 2016-02-10 Nick Clifton <nickc@redhat.com> |
2295 | ||
2296 | PR 19405 | |
2297 | * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed | |
2298 | immediate values. | |
2299 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the | |
2300 | number of messages about FDE encoding preventing .eh_frame_hdr | |
2301 | generation. | |
2302 | ||
027e9c75 NC |
2303 | 2016-02-09 Nick Clifton <nickc@redhat.com> |
2304 | ||
609332f1 NC |
2305 | * oasys.c (oasys_archive_p): Fix indentation. |
2306 | * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned | |
2307 | constant for left shifting. | |
2308 | ||
027e9c75 NC |
2309 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more |
2310 | helpful warning message to explain why certain AArch64 relocs | |
2311 | might overflow. | |
2312 | ||
6f57d046 SM |
2313 | 2016-02-05 Simon Marchi <simon.marchi@ericsson.com> |
2314 | ||
2315 | * pe-mips.c (coff_mips_reloc): Fix formatting. | |
2316 | ||
bdbca4e6 CM |
2317 | 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com> |
2318 | ||
2319 | * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2 | |
2320 | to bfd_mach_arc_arc600. | |
2321 | ||
4f038ee5 AM |
2322 | 2016-02-04 Alan Modra <amodra@gmail.com> |
2323 | ||
2324 | * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch | |
2325 | for big-endian. | |
2326 | ||
4a539596 L |
2327 | 2016-02-02 H.J. Lu <hongjiu.lu@intel.com> |
2328 | ||
2329 | PR ld/19542 | |
2330 | * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated | |
fb06f1c0 | 2331 | distances in the compressed_size field of the output section. |
4a539596 | 2332 | |
85fabe71 AM |
2333 | 2016-02-02 Alan Modra <amodra@gmail.com> |
2334 | ||
2335 | * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict | |
2336 | ELFv2 entry optimization. | |
2337 | ||
14f2c699 L |
2338 | 2016-02-02 H.J. Lu <hongjiu.lu@intel.com> |
2339 | ||
2340 | PR binutils/19547 | |
2341 | * elf.c (assign_section_numbers): Clear HAS_RELOC if there are | |
2342 | no relocations in relocatable files. | |
2343 | ||
aef28989 L |
2344 | 2016-02-01 H.J. Lu <hongjiu.lu@intel.com> |
2345 | ||
2346 | PR ld/19553 | |
2347 | * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED | |
2348 | if a symbol from a library loaded via DT_NEEDED doesn't match | |
2349 | the symbol referenced by regular object. | |
2350 | ||
655ed9ea NS |
2351 | 2016-02-01 Nathaniel Smith <njs@pobox.com> |
2352 | ||
2353 | * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both | |
2354 | CODE and DATA. | |
2355 | ||
ec1f73bb AM |
2356 | 2016-02-01 Alan Modra <amodra@gmail.com> |
2357 | ||
2358 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on | |
2359 | an out of range reloc_index. | |
2360 | * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise. | |
2361 | ||
b6471e6e KR |
2362 | 2016-02-01 Kamil Rytarowski <n54@gmx.com> |
2363 | ||
2364 | * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo. | |
2365 | (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c. | |
2366 | * Makefile.in: Regenerated. | |
2367 | ||
0bc7245a JK |
2368 | 2016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2369 | ||
2370 | * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation. | |
2371 | ||
6d4b2867 JDA |
2372 | 2016-01-31 John David Anglin <danglin@gcc.gnu.org> |
2373 | ||
2374 | PR ld/19526 | |
2375 | * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output | |
2376 | files. | |
2377 | * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval. | |
2378 | ||
d9e3b590 L |
2379 | 2016-01-30 H.J. Lu <hongjiu.lu@intel.com> |
2380 | ||
2381 | PR ld/19539 | |
2382 | * elf32-i386.c (elf_i386_reloc_type_class): Check relocation | |
2383 | against STT_GNU_IFUNC symbol only with dynamic symbols. | |
2384 | * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise. | |
2385 | ||
bf150a0b L |
2386 | 2016-01-28 H.J. Lu <hongjiu.lu@intel.com> |
2387 | ||
2388 | PR binutils/19523 | |
2389 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to | |
2390 | decompress debug sections. | |
2391 | ||
840855c5 MR |
2392 | 2016-01-25 Maciej W. Rozycki <macro@imgtec.com> |
2393 | ||
2394 | * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to | |
2395 | `dynindx'. | |
2396 | ||
cf466c2a NC |
2397 | 2016-01-25 Nick Clifton <nickc@redhat.com> |
2398 | ||
2399 | PR target/19435 | |
2400 | * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free | |
2401 | dsym filename buffer. | |
2402 | ||
eb6b0cf4 MR |
2403 | 2016-01-24 Maciej W. Rozycki <macro@imgtec.com> |
2404 | ||
2405 | * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation. | |
2406 | ||
e67f83e5 MR |
2407 | 2016-01-24 Maciej W. Rozycki <macro@imgtec.com> |
2408 | ||
2409 | * elfxx-mips.c (BZ16_REG): Correct calculation. | |
2410 | ||
23a42089 NC |
2411 | 2016-01-21 Nick Clifton <nickc@redhat.com> |
2412 | ||
2413 | * elf32-arc.c (ADD_RELA): Fix compile time warning errors by | |
2414 | changing the type of _loc to be bfd_byte *. | |
2415 | (elf_arc_finish_dynamic_symbol): Likewise. | |
2416 | ||
aebf9be7 NC |
2417 | 2016-01-21 Nick Clifton <nickc@redhat.com> |
2418 | ||
2419 | PR ld/19455 | |
2420 | * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF | |
2421 | class of the linker stub bfd. | |
2422 | (elf32_arm_check_relocs): Skip check for pic format after | |
2423 | processing a vxWorks R_ARM_ABS12 reloc. | |
2424 | * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when | |
2425 | reporting a class mismatch. | |
2426 | ||
2f340668 JW |
2427 | 2016-01-21 Jiong Wang <jiong.wang@arm.com> |
2428 | ||
2429 | * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch | |
2430 | veneer for sym_sec != input_sec. | |
2431 | (elfNN_aarch64_size_stub): Support STT_SECTION symbol. | |
2432 | (elfNN_aarch64_final_link_relocate): Take rela addend into account when | |
2433 | calculation destination. | |
2434 | ||
aeb70569 AM |
2435 | 2016-01-21 Alan Modra <amodra@gmail.com> |
2436 | ||
2437 | * elf-linux-core.h (swap_linux_prpsinfo32_out): New function. | |
2438 | (swap_linux_prpsinfo64_out): New function. | |
2439 | (LINUX_PRPSINFO32_SWAP_FIELDS): Delete. | |
2440 | (LINUX_PRPSINFO64_SWAP_FIELDS): Delete. | |
2441 | * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset. | |
2442 | (elfcore_write_linux_prpsinfo64): Likewise. | |
2443 | * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function. | |
2444 | (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete. | |
2445 | (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset. | |
2446 | ||
de64ce13 AM |
2447 | 2016-01-21 Alan Modra <amodra@gmail.com> |
2448 | ||
2449 | * elf-linux-core.h: Rename from elf-linux-psinfo.h. | |
2450 | * elf.c: Adjust #include. | |
2451 | * elf32-ppc.c: Don't #include elf-linux-psinfo.h | |
2452 | * Makefile.am (SOURCE_HFILES): Update. | |
2453 | * Makefile.in: Regenerate. | |
2454 | * po/SRC-PORFILES.in: Regenerate. | |
2455 | ||
c603b11b AM |
2456 | 2016-01-21 Alan Modra <amodra@gmail.com> |
2457 | ||
2458 | * configure.ac: Move corefile selection later in file. Move | |
2459 | tdefaults code immediately after other target vector code. | |
2460 | * configure: Regenerate. | |
2461 | ||
91f68a68 MG |
2462 | 2016-01-20 Mickael Guene <mickael.guene@st.com> |
2463 | ||
2464 | * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread | |
2465 | section using '.text.noread' pattern. | |
2466 | ||
5b2c414d JB |
2467 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
2468 | ||
2469 | * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes. | |
2470 | ||
34e967a5 MC |
2471 | 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com> |
2472 | Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com> | |
2473 | ||
2474 | * arc-plt.def: New file. | |
2475 | * arc-plt.h: Likewise. | |
2476 | * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry, | |
2477 | elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry, | |
2478 | elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry, | |
2479 | elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove. | |
2480 | (name_for_global_symbol): Added. | |
2481 | (ADD_RELA): Helper to create dynamic relocs. | |
2482 | (new_got_entry_to_list): Create a new got entry in linked list. | |
2483 | (symbol_has_entry_of_type): Search for specific type of entry in | |
2484 | list. | |
2485 | (is_reloc_for_GOT): return FALSE for any TLS related relocs. | |
2486 | (is_reloc_for_TLS, arc_elf_set_private_flags) | |
2487 | (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data) | |
2488 | (arc_elf_merge_private_bfd_data): New functions. | |
2489 | (debug_arc_reloc): Cleaned debug info printing. | |
2490 | (PDATA reloc): Changed not to perform address alignment. | |
2491 | (reverse_me): Added. Fix for ARC_32 relocs. | |
2492 | (arc_do_relocation): Return bfd_reloc_of when no relocation should | |
2493 | occur. | |
2494 | (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets. | |
2495 | Changed function to access an array of list of GOT entries instead | |
2496 | of just an array of offsets. | |
2497 | (elf_arc_relocate_section): Added support for PIC and TLS related relocations. | |
2498 | (elf_arc_check_relocs): Likewise. | |
2499 | (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol, | |
2500 | (elf_arc_finish_dynamic_sections): Likewise | |
2501 | (arc_create_dynamic_sections): Modified conditions to create | |
2502 | dynamic sections. | |
2503 | (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro. | |
2504 | (plt_do_relocs_for_symbol, relocate_plt_for_symbol) | |
2505 | (relocate_plt_for_entry): Changed to support new way to define PLT | |
2506 | related code. | |
2507 | (add_symbol_to_plt): Likewise. | |
2508 | (arc_elf_link_hash_table_create): New function. | |
2509 | ||
9ae678af NC |
2510 | 2016-01-18 Nick Clifton <nickc@redhat.com> |
2511 | ||
2512 | PR ld/19440 | |
2513 | * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external | |
2514 | section number into internal section number. | |
2515 | * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise. | |
2516 | * coffswap.h (coff_swap_sym_in): Likewise. | |
2517 | * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise. | |
2518 | * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal | |
2519 | section number field is big enough to hold the external value. | |
2520 | ||
5c14705f AM |
2521 | 2016-01-17 Alan Modra <amodra@gmail.com> |
2522 | ||
2523 | * configure: Regenerate. | |
2524 | ||
ac06903d YU |
2525 | 2016-01-12 Yury Usishchev <y.usishchev@samsung.com> |
2526 | ||
2527 | * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind | |
2528 | when address in first unwind entry does not match start of | |
2529 | section. | |
2530 | ||
109575d7 JW |
2531 | 2016-01-08 Richard Sandiford <richard.sandiford@arm.com> |
2532 | Jiong Wang <jiong.wang@arm.com> | |
2533 | ||
2534 | PR ld/19368 | |
2535 | * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to | |
2536 | reloc_class_ifunc. | |
2537 | ||
b05a65d0 AB |
2538 | 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2539 | ||
2540 | * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to | |
2541 | place 'R_' before the reloc name returned. | |
2542 | (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before | |
2543 | the relocation string. | |
2544 | ||
a3dc0a7f MR |
2545 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
2546 | ||
2547 | * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function, | |
2548 | factored out from... | |
2549 | (_bfd_mips_elf_merge_private_bfd_data): ... here. | |
2550 | ||
d537eeb5 MR |
2551 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
2552 | ||
2553 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move | |
2554 | attribute check after ELF file header flag check. | |
2555 | ||
43d223b5 MR |
2556 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
2557 | ||
2558 | * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the | |
2559 | return status from `_bfd_elf_merge_object_attributes'. | |
2560 | ||
b2e9744f MR |
2561 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
2562 | ||
2563 | * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function, | |
2564 | factored out from... | |
2565 | (_bfd_mips_elf_merge_private_bfd_data): ... here. | |
2566 | ||
28d45e28 MR |
2567 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
2568 | ||
2569 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the | |
2570 | handling of input MIPS ABI flags together. | |
2571 | ||
23ba6f18 MR |
2572 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
2573 | ||
2574 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress | |
2575 | attribute checks for null input. | |
2576 | ||
cf8502c1 MR |
2577 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
2578 | ||
2579 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local | |
2580 | pointers to target data. | |
2581 | ||
dcb1c796 MR |
2582 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
2583 | ||
2584 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct | |
2585 | an FP ABI warning. | |
2586 | ||
6f2750fe AM |
2587 | 2016-01-01 Alan Modra <amodra@gmail.com> |
2588 | ||
2589 | Update year range in copyright notice of all files. | |
2590 | ||
3499769a AM |
2591 | For older changes see ChangeLog-2015 and doc/ChangeLog-0415 |
2592 | \f | |
2593 | Copyright (C) 2016 Free Software Foundation, Inc. | |
2594 | ||
2595 | Copying and distribution of this file, with or without modification, | |
2596 | are permitted in any medium without royalty provided the copyright | |
2597 | notice and this notice are preserved. | |
2598 | ||
2599 | Local Variables: | |
2600 | mode: change-log | |
2601 | left-margin: 8 | |
2602 | fill-column: 74 | |
2603 | version-control: never | |
2604 | End: |