Commit | Line | Data |
---|---|---|
c175a657 L |
1 | 2016-05-05 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | * elf32-i386.c (elf_i386_convert_load): Extract the GOT load | |
4 | conversion to ... | |
5 | (elf_i386_convert_load_reloc): This. New function. | |
6 | * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load | |
7 | conversion to ... | |
8 | (elf_x86_64_convert_load_reloc): This. New function. | |
9 | ||
bedfd056 L |
10 | 2016-05-05 H.J. Lu <hongjiu.lu@intel.com> |
11 | ||
12 | * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd. | |
13 | Don't check if contents == NULL. | |
14 | (elf_i386_tls_transition): Add from_relocate_section. Check | |
15 | from_relocate_section instead of contents != NULL. Update | |
16 | elf_i386_check_tls_transition call. | |
17 | (elf_i386_check_relocs): Cache the section contents if | |
18 | keep_memory is FALSE. Pass FALSE as from_relocate_section to | |
19 | elf_i386_tls_transition. | |
20 | (elf_i386_relocate_section): Pass TRUE as from_relocate_section | |
21 | to elf_i386_tls_transition. | |
22 | (elf_backend_caches_rawsize): New. | |
23 | * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check | |
24 | if contents == NULL. | |
25 | (elf_x86_64_tls_transition): Add from_relocate_section. Check | |
26 | from_relocate_section instead of contents != NULL. | |
27 | (elf_x86_64_check_relocs): Cache the section contents if | |
28 | keep_memory is FALSE. Pass FALSE as from_relocate_section to | |
29 | elf_x86_64_tls_transition. | |
30 | (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section | |
31 | to elf_x86_64_tls_transition. | |
32 | (elf_backend_caches_rawsize): New. | |
33 | ||
6d6a648c MR |
34 | 2016-05-03 Maciej W. Rozycki <macro@imgtec.com> |
35 | ||
36 | PR 10549 | |
37 | * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle | |
38 | STB_GNU_UNIQUE. | |
39 | ||
1f56df9d JW |
40 | 2016-05-03 Jiong Wang <jiong.wang@arm.com> |
41 | ||
42 | * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype. | |
43 | * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise. | |
44 | * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize | |
45 | no_apply_dynamic_relocs. | |
46 | (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though | |
47 | dynamic relocations generated. | |
48 | ||
493f652c L |
49 | 2016-04-29 H.J. Lu <hongjiu.lu@intel.com> |
50 | ||
51 | * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp | |
52 | setting to ... | |
53 | (elf_i386_create_dynamic_sections): Here. | |
54 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move | |
55 | interp setting to ... | |
56 | (elf_x86_64_create_dynamic_sections): Here. | |
57 | ||
e62b9723 L |
58 | 2016-04-29 H.J. Lu <hongjiu.lu@intel.com> |
59 | ||
60 | * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC | |
61 | and replace (EH)->has_got_reloc with GOT_RELOC. | |
62 | (elf_i386_fixup_symbol): Pass has_got_reloc to | |
63 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
64 | (elf_i386_allocate_dynrelocs): Likewise. | |
65 | (elf_i386_relocate_section): Likewise. | |
66 | (elf_i386_finish_dynamic_symbol): Likewise. | |
67 | (elf_i386_convert_load): Pass TRUE to | |
68 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
69 | * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take | |
70 | GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC. | |
71 | (elf_x86_64_fixup_symbol): Pass has_got_reloc to | |
72 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
73 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
74 | (elf_x86_64_relocate_section): Likewise. | |
75 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
76 | (elf_x86_64_convert_load): Pass TRUE to | |
77 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
78 | ||
c337a162 L |
79 | 2016-04-29 H.J. Lu <hongjiu.lu@intel.com> |
80 | ||
81 | * elf32-i386.c (check_relocs_failed): New. | |
82 | (elf_i386_check_relocs): Set check_relocs_failed on error. | |
83 | (elf_i386_relocate_section): Skip if check_relocs failed. | |
84 | ||
afd9acee L |
85 | 2016-04-29 H.J. Lu <hongjiu.lu@intel.com> |
86 | ||
87 | * elf64-x86-64.c (elf_x86_64_check_relocs): Set | |
88 | check_relocs_failed on error. | |
89 | ||
5522f910 NC |
90 | 2016-04-29 Nick Clifton <nickc@redhat.com> |
91 | ||
92 | PR 19938 | |
93 | * elf-bfd.h (struct elf_backend_data): Rename | |
94 | elf_backend_set_special_section_info_and_link to | |
95 | elf_backend_copy_special_section_fields. | |
96 | * elfxx-target.h: Likewise. | |
97 | * elf.c (section_match): Ignore the SHF_INFO_LINK flag when | |
98 | comparing section flags. | |
99 | (copy_special_section_fields): New function. | |
100 | (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field. | |
101 | Perform two scans over special sections. The first one looks for | |
102 | a direct mapping between the output section and an input section. | |
103 | The second scan looks for a possible match based upon section | |
104 | characteristics. | |
105 | * elf32-arm.c (elf32_arm_copy_special_section_fields): New | |
106 | function. Handle setting the sh_link field of SHT_ARM_EXIDX | |
107 | sections. | |
108 | * elf32-i386.c (elf32_i386_set_special_info_link): Rename to | |
109 | elf32_i386_copy_solaris_special_section_fields. | |
110 | * elf32-sparc.c (elf32_sparc_set_special_section_info_link): | |
111 | Rename to elf32_sparc_copy_solaris_special_section_fields. | |
112 | * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to | |
113 | elf64_x86_64_copy_solaris_special_section_fields. | |
114 | ||
786a118c NC |
115 | 2016-04-28 Nick Clifton <nickc@redhat.com> |
116 | ||
117 | * po/zh_CN.po: Updated Chinese (simplified) translation. | |
118 | ||
91f8bf69 L |
119 | 2016-04-27 H.J. Lu <hongjiu.lu@intel.com> |
120 | ||
121 | PR ld/20006 | |
122 | * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections | |
123 | when estimating distances between output sections. | |
124 | ||
a6a4679f AM |
125 | 2016-04-27 Alan Modra <amodra@gmail.com> |
126 | ||
127 | * elflink.c (_bfd_elf_is_start_stop): New function. | |
128 | (_bfd_elf_gc_mark_rsec): Use it. | |
129 | * elf-bfd.h (_bfd_elf_is_start_stop): Declare. | |
130 | ||
28cc9170 TS |
131 | 2016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
132 | ||
133 | * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *. | |
134 | * mmo.c (mmo_get_section_contents): Likewise. | |
135 | (mmo_set_section_contents): Likewise. | |
136 | ||
d5486c43 L |
137 | 2016-04-26 H.J. Lu <hongjiu.lu@intel.com> |
138 | ||
139 | * elf-bfd.h (elf_link_hash_table): Update comments for | |
140 | dynsymcount. | |
141 | * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for | |
142 | the unused NULL entry at the head of dynamic symbol table. | |
143 | (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0 | |
144 | checks. | |
145 | ||
6645479e L |
146 | 2016-04-21 H.J. Lu <hongjiu.lu@intel.com> |
147 | ||
148 | * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker | |
149 | created file from dynobj. | |
150 | ||
6cd255ca L |
151 | 2016-04-21 H.J. Lu <hongjiu.lu@intel.com> |
152 | ||
153 | * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a | |
154 | normal input file if possible. | |
155 | ||
4f3b23b3 NC |
156 | 2016-04-21 Nick Clifton <nickc@redhat.com> |
157 | ||
158 | * aout-adobe.c: Use _bfd_generic_link_check_relocs. | |
159 | * aout-target.h: Likewise. | |
160 | * aout-tic30.c: Likewise. | |
161 | * binary.c: Likewise. | |
162 | * bout.c: Likewise. | |
163 | * coff-alpha.c: Likewise. | |
164 | * coff-rs6000.c: Likewise. | |
165 | * coff64-rs6000.c: Likewise. | |
166 | * coffcode.h: Likewise. | |
167 | * i386msdos.c: Likewise. | |
168 | * i386os9k.c: Likewise. | |
169 | * ieee.c: Likewise. | |
170 | * ihex.c: Likewise. | |
171 | * libbfd-in.h: Likewise. | |
172 | * libecoff.h: Likewise. | |
173 | * mach-o-target.c: Likewise. | |
174 | * mmo.c: Likewise. | |
175 | * nlm-target.h: Likewise. | |
176 | * oasys.c: Likewise. | |
177 | * pef.c: Likewise. | |
178 | * plugin.c: Likewise. | |
179 | * ppcboot.c: Likewise. | |
180 | * som.c: Likewise. | |
181 | * srec.c: Likewise. | |
182 | * tekhex.c: Likewise. | |
183 | * versados.c: Likewise. | |
184 | * vms-alpha.c: Likewise. | |
185 | * xsym.c: Likewise. | |
186 | * elfxx-target.h: Use _bfd_elf_link_check_relocs. | |
187 | * linker.c (bfd_link_check_relocs): New function. | |
188 | (_bfd_generic_link_check_relocs): New function. | |
189 | * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of | |
190 | _bfd_link_check_relocs field. | |
191 | (struct bfd_target)L Add _bfd_link_check_relocs field. | |
192 | * bfd-in2.h: Regenerate. | |
193 | * libbfd.h: Regenerate. | |
194 | ||
e66cdd68 L |
195 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
196 | ||
197 | * elf32-i386.c (elf_i386_gc_sweep_hook): Removed. | |
198 | (elf_backend_gc_sweep_hook): Likewise. | |
199 | * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise. | |
200 | (elf_backend_gc_sweep_hook): Likewise. | |
201 | ||
5ce03cea L |
202 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
203 | ||
204 | * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations | |
205 | in excluded sections | |
206 | ||
338c190a L |
207 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
208 | ||
209 | PR ld/19969 | |
210 | * elf64-x86-64.c (check_relocs_failed): New. | |
211 | (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs. | |
212 | Support relocation agaist local symbol. Set check_relocs_failed. | |
213 | (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check | |
214 | R_X86_64_32 relocation overflow. | |
215 | (elf_x86_64_relocate_section): Skip if check_relocs failed. | |
216 | Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic. | |
217 | ||
466ee2af L |
218 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
219 | ||
220 | * elf32-i386.c (elf_i386_check_relocs): Call | |
221 | _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol. | |
222 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
223 | ||
d9689752 L |
224 | 2016-04-20 H.J. Lu <hongjiu.lu@intel.com> |
225 | ||
226 | * elf-bfd.h (_bfd_elf_link_check_relocs): New. | |
227 | * elflink.c (_bfd_elf_link_check_relocs): New function. | |
228 | (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs | |
229 | if check_relocs_after_open_input is FALSE. | |
230 | ||
e6c7cdec TS |
231 | 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
232 | ||
233 | * cache.c: Update old style function definitions. | |
234 | * elf32-m68k.c: Likewise. | |
235 | * elf64-mmix.c: Likewise. | |
236 | * stab-syms.c: Likewise. | |
237 | ||
b98e6871 TS |
238 | 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> |
239 | ||
240 | * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *. | |
241 | ||
6fd8e7c2 L |
242 | 2016-04-15 H.J. Lu <hongjiu.lu@intel.com> |
243 | ||
244 | * Makefile.in: Regenerated with automake 1.11.6. | |
245 | * aclocal.m4: Likewise. | |
246 | * doc/Makefile.in: Likewise. | |
247 | ||
4b0c052e AB |
248 | 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com> |
249 | ||
250 | * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry. | |
251 | * bfd-in2.h: Regenerate. | |
252 | * libbfd.h: Regenerate. | |
253 | * elf32-arc.c: Add 'opcode/arc.h' include. | |
254 | (struct arc_relocation_data): Add symbol_name. | |
255 | (arc_special_overflow_checks): New function. | |
256 | (arc_do_relocation): Use arc_special_overflow_checks, reindent as | |
257 | required, add an extra comment. | |
258 | (elf_arc_relocate_section): Setup symbol_name in reloc_data. | |
259 | ||
33cbe6c0 AB |
260 | 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com> |
261 | ||
262 | * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all | |
263 | entries. | |
264 | (elf_arc_relocate_section): Update enum uses. | |
265 | (elf_arc_check_relocs): Likewise. | |
266 | (elf_arc_finish_dynamic_symbol): Likewise. | |
267 | ||
7634c4e6 L |
268 | 2016-04-14 H.J. Lu <hongjiu.lu@intel.com> |
269 | ||
270 | * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with | |
271 | "sh_link". | |
272 | ||
84865015 NC |
273 | 2016-04-14 Nick Clifton <nickc@redhat.com> |
274 | ||
275 | PR target/19938 | |
276 | * elf-bbfd.h (struct elf_backend_data): New field: | |
277 | elf_strtab_flags. | |
278 | New field: elf_backend_set_special_section_info_and_link | |
279 | * elfxx-target.h (elf_backend_strtab_flags): Define if not already | |
280 | defined. | |
281 | (elf_backend_set_special_section_info_and_link): Define if not | |
282 | already defined. | |
283 | (elfNN_bed): Use elf_backend_set_special_section_info_and_link and | |
284 | elf_backend_strtab_flags macros to initialise fields in structure. | |
285 | * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS | |
286 | being set even if SHF_MERGE is not set. | |
287 | (elf_fake_sections): Likewise. | |
288 | (section_match): New function. Matches two ELF sections based | |
289 | upon fixed characteristics. | |
290 | (find_link): New function. Locates a section in a BFD that | |
291 | matches a section in a different BFD. | |
292 | (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link | |
293 | fields of reserved sections. | |
294 | (bfd_elf_compute_section_file_positions): Set the flags for the | |
295 | .shstrtab section based upon the elf_strtab_flags field in the | |
296 | elf_backend_data structure. | |
297 | (swap_out_syms): Likewise for the .strtab section. | |
298 | * elflink.c (bfd_elf_final_link): Set the flags for the | |
299 | .strtab section based upon the elf_strtab_flags field in the | |
300 | elf_backend_data structure. | |
301 | * elf32-i386.c (elf32_i386_set_special_info_link): New function. | |
302 | (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris | |
303 | targets. | |
304 | (elf_backend_set_special_section_info_and_link): Define for | |
305 | Solaris targets. | |
306 | * elf32-sparc.c: Likewise. | |
307 | * elf64-x86-64.c: Likewise. | |
308 | ||
2df3368d L |
309 | 2016-04-11 H.J. Lu <hongjiu.lu@intel.com> |
310 | ||
311 | PR ld/19939 | |
312 | * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer | |
313 | to bfd_boolean. | |
314 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated. | |
315 | Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc | |
316 | applies to read-only section. | |
317 | * elf32-i386.c (elf_i386_link_hash_table): Add | |
318 | readonly_dynrelocs_against_ifunc. | |
319 | (elf_i386_allocate_dynrelocs): Updated. | |
320 | (elf_i386_size_dynamic_sections): Issue an error for read-only | |
321 | segment with dynamic IFUNC relocations only if | |
322 | readonly_dynrelocs_against_ifunc is TRUE. | |
323 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
324 | readonly_dynrelocs_against_ifunc. | |
325 | (elf_x86_64_allocate_dynrelocs): Updated. | |
326 | (elf_x86_64_size_dynamic_sections): Issue an error for read-only | |
327 | segment with dynamic IFUNC relocations only if | |
328 | readonly_dynrelocs_against_ifunc is TRUE. | |
329 | * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs): | |
330 | Updated. | |
331 | ||
15dd01b1 TP |
332 | 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
333 | ||
334 | * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be | |
335 | a fall through from error_ret_free_internal. Free local_syms in | |
336 | error_ret_free_local if allocated from bfd_elf_get_elf_syms (). | |
337 | ||
1e5885b7 CZ |
338 | 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> |
339 | ||
340 | * elf32-arc.c (plt_do_relocs_for_symbol): Changed. | |
341 | (relocate_plt_for_entry): Likewise. | |
342 | ||
b3aee839 CZ |
343 | 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> |
344 | ||
345 | * elf32-arc.c (elf_arc_check_relocs): Changed | |
346 | ||
094fb063 CZ |
347 | 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> |
348 | ||
349 | * elf32-arc.c (name_for_global_symbol): Changed assert. | |
350 | (get_replace_function): Created.: | |
351 | (struct arc_relocation_data): Changed to signed types. | |
352 | (defines S, L, P, PDATA): Casted to signed type. | |
353 | (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise. | |
354 | (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed. | |
355 | (arc_do_relocation): Changed. | |
356 | ||
94e5c971 CZ |
357 | 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> |
358 | ||
359 | * elf32-arc.c (name_for_global_symbol): Added assert to check for | |
360 | symbol index. | |
361 | (elf_arc_relocate_section): Added and changed asserts, validating | |
362 | the synamic symbol index. | |
363 | (elf_arc_finish_dynamic_symbol): Do not fill the dynamic | |
364 | relocation if symbol has dynindx set to -1. | |
365 | ||
1f599d0e MR |
366 | 2016-04-05 Maciej W. Rozycki <macro@imgtec.com> |
367 | ||
368 | * elflink.c (elf_link_add_object_symbols): Always turn hidden | |
369 | and internal symbols which have a dynamic index into local | |
370 | ones. | |
371 | ||
67f101ee NC |
372 | 2016-04-04 Nick Clifton <nickc@redhat.com> |
373 | ||
374 | PR 19872 | |
375 | * dwarf2.c (parse_comp_unit): Skip warning about unrecognised | |
376 | version number if the version is zero. | |
377 | ||
7b15fa7a AM |
378 | 2016-04-01 Alan Modra <amodra@gmail.com> |
379 | ||
380 | PR 19886 | |
381 | * elflink.c (on_needed_list): Recursively check needed status. | |
382 | (elf_link_add_object_symbols): Adjust. | |
383 | ||
024ea11b SKS |
384 | 2016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
385 | ||
386 | * elf32-avr.c (avr_elf32_load_records_from_section): Free | |
387 | internal_relocs only if they aren't cached. | |
388 | ||
ed3056eb NC |
389 | 2016-03-29 Nick Clifton <nickc@redhat.com> |
390 | ||
391 | PR 17334 | |
392 | * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax | |
393 | assertion on the size of the got section to allow it to be bigger | |
394 | than the number of relocs. | |
395 | ||
e2b4fc91 TS |
396 | 2016-03-29 Toni Spets <toni.spets@iki.fi> |
397 | ||
398 | PR 19878 | |
399 | * coffcode.h (coff_write_object_contents): Revert accidental | |
400 | 2014-11-10 change. | |
401 | ||
a97fbc7e AM |
402 | 2016-03-22 Alan Modra <amodra@gmail.com> |
403 | ||
404 | PR 19850 | |
405 | * dwarf2.c (read_attribute_value): Skip info_ptr check for | |
406 | DW_FORM_flag_present. | |
407 | ||
9780e045 NC |
408 | 2016-03-22 Nick Clifton <nickc@redhat.com> |
409 | ||
96254e5c NC |
410 | * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an |
411 | architecture name for backwards compatibility. | |
412 | ||
7769fa97 NC |
413 | * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible |
414 | unbounded stack use. | |
415 | ||
9780e045 NC |
416 | * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a |
417 | sufficiently recent version of GCC. | |
418 | * configure: Regenerate. | |
419 | ||
6f4c0a42 AM |
420 | 2016-03-22 Alan Modra <amodra@gmail.com> |
421 | ||
422 | PR 19851 | |
423 | * plugin.c (try_load_plugin): Avoid -Wstack-usage warning. | |
424 | ||
8699fc3e AB |
425 | 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com> |
426 | ||
427 | * archures.c (bfd_mach_arc_nps400): Define. | |
428 | * bfd-in2.h: Regenerate. | |
429 | * cpu-arc.c (arch_info_struct): New entry for nps400, renumber | |
430 | some existing entries to make space. | |
431 | * elf32-arc.c (arc_elf_object_p): Add nps400 case. | |
432 | (arc_elf_final_write_processing): Likewise. | |
433 | ||
a9522a21 AB |
434 | 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com> |
435 | ||
436 | * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of | |
437 | EF_ARC_CPU_GENERIC. | |
438 | (arc_elf_final_write_processing): Don't bother setting cpu field | |
439 | in e_flags, this will have been set elsewhere. | |
440 | ||
c0334580 AB |
441 | 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com> |
442 | ||
443 | * elf32-arc.c (arc_elf_final_write_processing): Switch to using | |
444 | EF_ARC_MACH_MSK. | |
445 | ||
e1fa0163 NC |
446 | 2016-03-21 Nick Clifton <nickc@redhat.com> |
447 | ||
448 | * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144 | |
449 | * configure: Regenerate. | |
450 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of | |
451 | alloca with call to xmalloc. | |
452 | * elf32-nds32.c: Likewise. | |
453 | * elf64-hppa.c: Likewise. | |
454 | * elfxx-mips.c: Likewise. | |
455 | * pef.c: Likewise. | |
456 | * pei-x86_64.c: Likewise. | |
457 | * som.c: Likewise. | |
458 | * xsym.c: Likewise. | |
459 | ||
4e0c91e4 L |
460 | 2016-03-15 H.J. Lu <hongjiu.lu@intel.com> |
461 | ||
462 | PR ld/19827 | |
463 | * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol | |
464 | locally in PIE. | |
465 | (elf_i386_relocate_section): Likewise. | |
466 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
467 | (elf_x86_64_relocate_section): Likewise. | |
468 | ||
4c10bbaa L |
469 | 2016-03-15 H.J. Lu <hongjiu.lu@intel.com> |
470 | ||
471 | PR ld/19807 | |
472 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check | |
473 | no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S | |
474 | relocation overflow check. | |
475 | ||
fbe48798 L |
476 | 2016-03-14 H.J. Lu <hongjiu.lu@intel.com> |
477 | ||
478 | * bfd-in2.h: Regenerated. | |
479 | ||
37b01f6a DG |
480 | 2016-03-11 Dan Gissel <dgisselq@ieee.org> |
481 | ||
482 | PR 19713 | |
483 | * elf.c (_bfd_elf_section_offset): Ensure that the returned offset | |
484 | uses bytes not octets. | |
485 | * elflink.c (resolve_section): Likewise. | |
486 | Add a bfd parameter. | |
487 | (eval_section): Pass the input_bfd to resolve_section. | |
488 | (bfd_elf_perform_complex_relocation): Convert byte offset to | |
489 | octets before read and writing values. | |
490 | (elf_link_input_bfd): Add byte to octet conversions. | |
491 | (elf_reloc_link_order): Likewise. | |
492 | (elf_fixup_link_order): Likewise. | |
493 | (bfd_elf_final_link): Likewise. | |
494 | * reloc.c (_bfd_final_link_relocate): Likewise. | |
495 | * syms.c (_bfd_stab_section_find_nearest_line): Likewise. | |
496 | ||
3ed4ff97 NC |
497 | 2016-03-10 Nick Clifton <nickc@redhat.com> |
498 | ||
499 | * config.bfd: Mark the i370 target as obsolete. | |
500 | ||
4b05e0a7 PA |
501 | 2016-03-09 Pedro Alves <palves@redhat.com> |
502 | ||
503 | * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old | |
504 | gcc ABI)" to printable name. | |
505 | * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead | |
506 | of "v850-rh850" as printable name. | |
507 | ||
26c62da0 LW |
508 | 2016-03-09 Leon Winter <winter-gcc@bfw-online.de> |
509 | ||
510 | PR ld/19623 | |
511 | * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply | |
512 | relocations against absolute symbols. | |
513 | ||
03ee8583 AM |
514 | 2016-03-09 Alan Modra <amodra@gmail.com> |
515 | ||
516 | PR binutils/19775 | |
517 | * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero | |
518 | length elements in the archive. | |
519 | ||
9c1d7a08 L |
520 | 2016-03-08 H.J. Lu <hongjiu.lu@intel.com> |
521 | ||
522 | PR ld/19789 | |
523 | * elflink.c (elf_link_add_object_symbols): Create dynamic sections | |
524 | for -E/--dynamic-list only when not relocatable. | |
525 | ||
d1ed1c7d L |
526 | 2016-03-08 H.J. Lu <hongjiu.lu@intel.com> |
527 | ||
528 | PR ld/19784 | |
529 | * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference | |
530 | count for locally defined local IFUNC symbols in shared object. | |
531 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
532 | ||
202ac193 L |
533 | 2016-03-08 H.J. Lu <hongjiu.lu@intel.com> |
534 | ||
535 | PR ld/19579 | |
536 | * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking | |
537 | together. | |
538 | ||
72f3b6aa CZ |
539 | 2016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com> |
540 | Andrew Burgess <andrew.burgess@embecosm.com> | |
541 | ||
542 | * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32. | |
543 | (arc_bfd_put_32): Becomes an alias for bfd_put_32. | |
544 | (arc_elf_howto_init): Added assert to validate relocations. | |
545 | (get_middle_endian_relocation): Delete. | |
546 | (middle_endian_convert): New function. | |
547 | (ME): Redefine, now does nothing. | |
548 | (IS_ME): New define. | |
549 | (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO' | |
550 | definition to call middle_endian_convert. Add a new local | |
551 | variable and make use of this throughout. Added call to | |
552 | arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations. | |
553 | ||
4fc87424 NC |
554 | 2016-03-07 Nick Clifton <nickc@redhat.com> |
555 | ||
556 | PR binutils/19775 | |
557 | * archive.c (bfd_generic_openr_next_archived_file): Allow zero | |
558 | length elements in the archive. | |
559 | ||
18f822a0 JW |
560 | 2016-03-07 Jiong Wang <jiong.wang@arm.com> |
561 | ||
562 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got | |
563 | section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced. | |
564 | ||
07492f66 L |
565 | 2016-03-04 H.J. Lu <hongjiu.lu@intel.com> |
566 | ||
567 | PR ld/19579 | |
568 | * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in | |
569 | executable as definition if the new definition comes from a | |
570 | shared library. | |
571 | ||
70a5df4f AM |
572 | 2016-03-02 Alan Modra <amodra@gmail.com> |
573 | ||
574 | * Makefile.in: Regenerate. | |
575 | * po/SRC-POTFILES.in: Regenerate. | |
576 | ||
841fdfcd CZ |
577 | 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com> |
578 | ||
579 | * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the | |
580 | relocation addend when sections get merged. | |
581 | ||
7e458899 CZ |
582 | 2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com> |
583 | ||
584 | * elf32-arc.c (arc_elf_final_write_processing): Add condition to | |
585 | the flag change. | |
586 | (elf_arc_relocate_section): Fixes and conditions to support PIE. | |
587 | Assert for code sections dynamic relocs. | |
588 | ||
c5e3a364 RL |
589 | 2016-02-26 Renlin Li <renlin.li@arm.com> |
590 | ||
591 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow | |
592 | check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2. | |
593 | ||
bae420ef L |
594 | 2016-02-26 H.J. Lu <hongjiu.lu@intel.com> |
595 | ||
596 | PR ld/19609 | |
597 | * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for | |
598 | load with locally bound symbols if PIC is false or there is no | |
599 | base register. Optimize branch to 0 if PIC is false. | |
600 | (elf_i386_relocate_section): Don't generate dynamic relocations | |
601 | against undefined weak symbols if PIC is false. | |
602 | * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization | |
603 | if we can't estimate relocation overflow with --no-relax. | |
604 | Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound | |
605 | symbols if PIC is false. Optimize branch to 0 if PIC is false. | |
606 | (elf_x86_64_relocate_section): Don't generate dynamic relocations | |
607 | against undefined weak symbols if PIC is false. | |
608 | ||
11e5f1ec L |
609 | 2016-02-26 H.J. Lu <hongjiu.lu@intel.com> |
610 | ||
611 | PR ld/19645 | |
612 | * bfd.c (bfd): Change flags to 20 bits. | |
613 | (BFD_CONVERT_ELF_COMMON): New. | |
614 | (BFD_USE_ELF_STT_COMMON): Likewise. | |
615 | (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and | |
616 | BFD_USE_ELF_STT_COMMON. | |
617 | (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise. | |
618 | * configure.ac: Remove --enable-elf-stt-common. | |
619 | * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for | |
620 | common symbol depending on BFD_CONVERT_ELF_COMMON and | |
621 | BFD_USE_ELF_STT_COMMON. | |
622 | * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for | |
623 | STT_COMMON. | |
624 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check | |
625 | STT_COMMON. | |
626 | (elf_link_convert_common_type): New function. | |
627 | (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for | |
628 | common symbol depending on BFD_CONVERT_ELF_COMMON and | |
629 | BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx. | |
630 | * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON | |
631 | and BFD_USE_ELF_STT_COMMON to object_flags. | |
632 | (TARGET_LITTLE_SYM): Likewise. | |
633 | * syms.c (BSF_KEEP_G): Renamed to ... | |
634 | (BSF_ELF_COMMON): This. | |
635 | * bfd-in2.h: Regenerated. | |
636 | * config.in: Likewise. | |
637 | * configure: Likewise. | |
638 | ||
aec6b87e L |
639 | 2016-02-26 H.J. Lu <hongjiu.lu@intel.com> |
640 | ||
641 | PR ld/19636 | |
642 | PR ld/19704 | |
643 | PR ld/19719 | |
644 | * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
645 | (elf_i386_link_hash_entry): Add has_got_reloc and | |
646 | has_non_got_reloc. | |
647 | (elf_i386_link_hash_table): Add interp. | |
648 | (elf_i386_link_hash_newfunc): Initialize has_got_reloc and | |
649 | has_non_got_reloc. | |
650 | (elf_i386_copy_indirect_symbol): Copy has_got_reloc and | |
651 | has_non_got_reloc. | |
652 | (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc. | |
653 | (elf_i386_fixup_symbol): New function. | |
654 | (elf_i386_pie_finish_undefweak_symbol): Likewise. | |
655 | (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic | |
656 | relocations and discard relocations against resolved undefined | |
657 | weak symbols in executable. Don't make resolved undefined weak | |
658 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
659 | relocation against undefined weak symbols in PIE. | |
660 | (elf_i386_size_dynamic_sections): Set interp to .interp section. | |
661 | (elf_i386_relocate_section): Don't generate dynamic relocations | |
662 | against resolved undefined weak symbols in PIE, except for | |
663 | R_386_PC32. | |
664 | (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without | |
665 | dynamic PLT/GOT relocations for resolved undefined weak symbols. | |
666 | Don't generate dynamic relocation against resolved undefined weak | |
667 | symbol in executable. | |
668 | (elf_i386_finish_dynamic_sections): Call | |
669 | elf_i386_pie_finish_undefweak_symbol on all symbols in PIE. | |
670 | (elf_backend_fixup_symbol): New. | |
671 | * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
672 | (elf_x86_64_link_hash_entry): Add has_got_reloc and | |
673 | has_non_got_reloc. | |
674 | (elf_x86_64_link_hash_table): Add interp. | |
675 | (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and | |
676 | has_non_got_reloc. | |
677 | (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and | |
678 | has_non_got_reloc. | |
679 | (elf_x86_64_check_relocs): Set has_got_reloc and | |
680 | has_non_got_reloc. | |
681 | (elf_x86_64_fixup_symbol): New function. | |
682 | (elf_x86_64_pie_finish_undefweak_symbol): Likewise. | |
683 | (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic | |
684 | relocations and discard relocations against resolved undefined | |
685 | weak symbols in executable. Don't make resolved undefined weak | |
686 | symbols in executable dynamic. | |
687 | (elf_x86_64_size_dynamic_sections): Set interp to .interp section. | |
688 | (elf_x86_64_relocate_section): Check relocation overflow for | |
689 | dynamic relocations against unresolved weak undefined symbols. | |
690 | Don't generate dynamic relocations against resolved weak | |
691 | undefined symbols in PIE. | |
692 | (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without | |
693 | dynamic PLT/GOT relocations for resolved undefined weak symbols. | |
694 | Don't generate dynamic relocation against resolved undefined weak | |
695 | symbol in executable. | |
696 | (elf_x86_64_finish_dynamic_sections): Call | |
697 | elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE. | |
698 | (elf_backend_fixup_symbol): New. | |
699 | ||
b32547cd AM |
700 | 2016-02-26 Alan Modra <amodra@gmail.com> |
701 | ||
702 | * elf64-ppc.c (create_linkage_sections): Create sfpr when | |
703 | save_restore_funcs, rest of sections when not relocatable. | |
704 | (ppc64_elf_init_stub_bfd): Always call create_linkage_sections. | |
705 | (sfpr_define): Define all symbols on emitted code. | |
706 | (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created | |
707 | when relocatable. Move sfpr_define loop earlier. | |
708 | ||
ef77d6af L |
709 | 2016-02-24 H.J. Lu <hongjiu.lu@intel.com> |
710 | ||
711 | * elf64-x86-64.c (elf_x86_64_need_pic): New function. | |
712 | (elf_x86_64_relocate_section): Use it. Replace | |
713 | x86_64_elf_howto_table[r_type] with howto. | |
714 | ||
0f550b3d L |
715 | 2016-02-24 H.J. Lu <hongjiu.lu@intel.com> |
716 | ||
717 | PR ld/19698 | |
718 | * elflink.c (bfd_elf_record_link_assignment): Set versioned if | |
719 | symbol version is unknown. | |
720 | ||
13f42277 L |
721 | 2016-02-24 H.J. Lu <hongjiu.lu@intel.com> |
722 | ||
723 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset | |
724 | to (bfd_vma) -1 when setting needs_plt to 0. | |
725 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
726 | ||
6b3b0ab8 L |
727 | 2016-02-23 H.J. Lu <hongjiu.lu@intel.com> |
728 | ||
729 | * elflink.c (bfd_elf_record_link_assignment): Check for shared | |
730 | library, instead of PIC, and don't check PDE when making linker | |
731 | assigned symbol dynamic. | |
732 | ||
17733f5b FS |
733 | 2016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com> |
734 | ||
735 | * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment | |
736 | ABIVERSION for non-executable stack. | |
737 | ||
47993b4a RF |
738 | 2016-02-23 Rich Felker <bugdal@aerifal.cx> |
739 | ||
740 | PR target/19516 | |
741 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): | |
742 | Always produce a RELATIVE reloc for a local symbol. | |
743 | ||
2d8dcb81 HPN |
744 | 2016-02-23 Hans-Peter Nilsson <hp@axis.com> |
745 | ||
746 | Fix test-case ld-elf/pr19617b | |
747 | * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't | |
748 | discard unused non-function symbols when --dynamic-list-data. | |
749 | ||
1a6e6083 L |
750 | 2016-02-22 H.J. Lu <hongjiu.lu@intel.com> |
751 | ||
752 | * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the | |
753 | dynsym section, even if it is empty, with dynamic sections. | |
754 | ||
75c1920b L |
755 | 2016-02-22 H.J. Lu <hongjiu.lu@intel.com> |
756 | ||
757 | * syms.c: Remove BSF_COMMON from comments. | |
758 | * bfd-in2.h: Regenerated. | |
759 | ||
9a228467 JW |
760 | 2016-02-22 Jiong Wang <jiong.wang@arm.com> |
761 | ||
762 | * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation | |
763 | for destination. Remove useless function parameters. | |
764 | (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub. | |
765 | ||
73768414 NC |
766 | 2016-02-19 Nick Clifton <nickc@redhat.com> |
767 | ||
e517df3d NC |
768 | PR ld/19629 |
769 | * aoutx.h (aout_link_add_symbols): Check for out of range string | |
770 | table offsets. | |
771 | ||
73768414 NC |
772 | PR ld/19628 |
773 | * reloc.c (bfd_generic_get_relocated_section_contents): Stop | |
774 | processing if we encounter a reloc without an associated symbol. | |
775 | ||
bf89386a L |
776 | 2016-02-18 H.J. Lu <hongjiu.lu@intel.com> |
777 | ||
778 | PR ld/19617 | |
779 | * elflink.c (elf_link_add_object_symbols): Always create dynamic | |
780 | sections for -E/--dynamic-list. | |
781 | ||
8f79b794 L |
782 | 2016-02-17 H.J. Lu <hongjiu.lu@intel.com> |
783 | ||
784 | * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined | |
785 | to bfd_true. | |
786 | ||
64bfc258 JM |
787 | 2016-02-16 Joseph Myers <joseph@codesourcery.com> |
788 | ||
789 | * plugin.c (plugin_vec): Set match priority to 255. | |
790 | * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When | |
791 | matching against the plugin vector, take priority from there not | |
792 | from TEMP. | |
793 | ||
9fb71ee4 NC |
794 | 2016-02-15 Nick Clifton <nickc@redhat.com> |
795 | ||
796 | * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values | |
797 | for length and type fields. Use a signed value for the | |
798 | suffix_length field. | |
799 | ||
32875eb1 L |
800 | 2016-02-10 H.J. Lu <hongjiu.lu@intel.com> |
801 | ||
802 | PR ld/19601 | |
803 | * elf32-i386.c (elf_i386_relocate_section): Mask off the least | |
804 | significant bit in GOT offset for R_386_GOT32X. | |
805 | ||
83da6e74 NC |
806 | 2016-02-10 Nick Clifton <nickc@redhat.com> |
807 | ||
808 | PR 19405 | |
809 | * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed | |
810 | immediate values. | |
811 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the | |
812 | number of messages about FDE encoding preventing .eh_frame_hdr | |
813 | generation. | |
814 | ||
027e9c75 NC |
815 | 2016-02-09 Nick Clifton <nickc@redhat.com> |
816 | ||
609332f1 NC |
817 | * oasys.c (oasys_archive_p): Fix indentation. |
818 | * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned | |
819 | constant for left shifting. | |
820 | ||
027e9c75 NC |
821 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more |
822 | helpful warning message to explain why certain AArch64 relocs | |
823 | might overflow. | |
824 | ||
6f57d046 SM |
825 | 2016-02-05 Simon Marchi <simon.marchi@ericsson.com> |
826 | ||
827 | * pe-mips.c (coff_mips_reloc): Fix formatting. | |
828 | ||
bdbca4e6 CM |
829 | 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com> |
830 | ||
831 | * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2 | |
832 | to bfd_mach_arc_arc600. | |
833 | ||
4f038ee5 AM |
834 | 2016-02-04 Alan Modra <amodra@gmail.com> |
835 | ||
836 | * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch | |
837 | for big-endian. | |
838 | ||
4a539596 L |
839 | 2016-02-02 H.J. Lu <hongjiu.lu@intel.com> |
840 | ||
841 | PR ld/19542 | |
842 | * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated | |
fb06f1c0 | 843 | distances in the compressed_size field of the output section. |
4a539596 | 844 | |
85fabe71 AM |
845 | 2016-02-02 Alan Modra <amodra@gmail.com> |
846 | ||
847 | * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict | |
848 | ELFv2 entry optimization. | |
849 | ||
14f2c699 L |
850 | 2016-02-02 H.J. Lu <hongjiu.lu@intel.com> |
851 | ||
852 | PR binutils/19547 | |
853 | * elf.c (assign_section_numbers): Clear HAS_RELOC if there are | |
854 | no relocations in relocatable files. | |
855 | ||
aef28989 L |
856 | 2016-02-01 H.J. Lu <hongjiu.lu@intel.com> |
857 | ||
858 | PR ld/19553 | |
859 | * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED | |
860 | if a symbol from a library loaded via DT_NEEDED doesn't match | |
861 | the symbol referenced by regular object. | |
862 | ||
655ed9ea NS |
863 | 2016-02-01 Nathaniel Smith <njs@pobox.com> |
864 | ||
865 | * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both | |
866 | CODE and DATA. | |
867 | ||
ec1f73bb AM |
868 | 2016-02-01 Alan Modra <amodra@gmail.com> |
869 | ||
870 | * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on | |
871 | an out of range reloc_index. | |
872 | * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise. | |
873 | ||
b6471e6e KR |
874 | 2016-02-01 Kamil Rytarowski <n54@gmx.com> |
875 | ||
876 | * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo. | |
877 | (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c. | |
878 | * Makefile.in: Regenerated. | |
879 | ||
0bc7245a JK |
880 | 2016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
881 | ||
882 | * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation. | |
883 | ||
6d4b2867 JDA |
884 | 2016-01-31 John David Anglin <danglin@gcc.gnu.org> |
885 | ||
886 | PR ld/19526 | |
887 | * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output | |
888 | files. | |
889 | * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval. | |
890 | ||
d9e3b590 L |
891 | 2016-01-30 H.J. Lu <hongjiu.lu@intel.com> |
892 | ||
893 | PR ld/19539 | |
894 | * elf32-i386.c (elf_i386_reloc_type_class): Check relocation | |
895 | against STT_GNU_IFUNC symbol only with dynamic symbols. | |
896 | * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise. | |
897 | ||
bf150a0b L |
898 | 2016-01-28 H.J. Lu <hongjiu.lu@intel.com> |
899 | ||
900 | PR binutils/19523 | |
901 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to | |
902 | decompress debug sections. | |
903 | ||
840855c5 MR |
904 | 2016-01-25 Maciej W. Rozycki <macro@imgtec.com> |
905 | ||
906 | * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to | |
907 | `dynindx'. | |
908 | ||
cf466c2a NC |
909 | 2016-01-25 Nick Clifton <nickc@redhat.com> |
910 | ||
911 | PR target/19435 | |
912 | * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free | |
913 | dsym filename buffer. | |
914 | ||
eb6b0cf4 MR |
915 | 2016-01-24 Maciej W. Rozycki <macro@imgtec.com> |
916 | ||
917 | * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation. | |
918 | ||
e67f83e5 MR |
919 | 2016-01-24 Maciej W. Rozycki <macro@imgtec.com> |
920 | ||
921 | * elfxx-mips.c (BZ16_REG): Correct calculation. | |
922 | ||
23a42089 NC |
923 | 2016-01-21 Nick Clifton <nickc@redhat.com> |
924 | ||
925 | * elf32-arc.c (ADD_RELA): Fix compile time warning errors by | |
926 | changing the type of _loc to be bfd_byte *. | |
927 | (elf_arc_finish_dynamic_symbol): Likewise. | |
928 | ||
aebf9be7 NC |
929 | 2016-01-21 Nick Clifton <nickc@redhat.com> |
930 | ||
931 | PR ld/19455 | |
932 | * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF | |
933 | class of the linker stub bfd. | |
934 | (elf32_arm_check_relocs): Skip check for pic format after | |
935 | processing a vxWorks R_ARM_ABS12 reloc. | |
936 | * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when | |
937 | reporting a class mismatch. | |
938 | ||
2f340668 JW |
939 | 2016-01-21 Jiong Wang <jiong.wang@arm.com> |
940 | ||
941 | * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch | |
942 | veneer for sym_sec != input_sec. | |
943 | (elfNN_aarch64_size_stub): Support STT_SECTION symbol. | |
944 | (elfNN_aarch64_final_link_relocate): Take rela addend into account when | |
945 | calculation destination. | |
946 | ||
aeb70569 AM |
947 | 2016-01-21 Alan Modra <amodra@gmail.com> |
948 | ||
949 | * elf-linux-core.h (swap_linux_prpsinfo32_out): New function. | |
950 | (swap_linux_prpsinfo64_out): New function. | |
951 | (LINUX_PRPSINFO32_SWAP_FIELDS): Delete. | |
952 | (LINUX_PRPSINFO64_SWAP_FIELDS): Delete. | |
953 | * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset. | |
954 | (elfcore_write_linux_prpsinfo64): Likewise. | |
955 | * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function. | |
956 | (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete. | |
957 | (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset. | |
958 | ||
de64ce13 AM |
959 | 2016-01-21 Alan Modra <amodra@gmail.com> |
960 | ||
961 | * elf-linux-core.h: Rename from elf-linux-psinfo.h. | |
962 | * elf.c: Adjust #include. | |
963 | * elf32-ppc.c: Don't #include elf-linux-psinfo.h | |
964 | * Makefile.am (SOURCE_HFILES): Update. | |
965 | * Makefile.in: Regenerate. | |
966 | * po/SRC-PORFILES.in: Regenerate. | |
967 | ||
c603b11b AM |
968 | 2016-01-21 Alan Modra <amodra@gmail.com> |
969 | ||
970 | * configure.ac: Move corefile selection later in file. Move | |
971 | tdefaults code immediately after other target vector code. | |
972 | * configure: Regenerate. | |
973 | ||
91f68a68 MG |
974 | 2016-01-20 Mickael Guene <mickael.guene@st.com> |
975 | ||
976 | * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread | |
977 | section using '.text.noread' pattern. | |
978 | ||
5b2c414d JB |
979 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
980 | ||
981 | * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes. | |
982 | ||
34e967a5 MC |
983 | 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com> |
984 | Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com> | |
985 | ||
986 | * arc-plt.def: New file. | |
987 | * arc-plt.h: Likewise. | |
988 | * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry, | |
989 | elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry, | |
990 | elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry, | |
991 | elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove. | |
992 | (name_for_global_symbol): Added. | |
993 | (ADD_RELA): Helper to create dynamic relocs. | |
994 | (new_got_entry_to_list): Create a new got entry in linked list. | |
995 | (symbol_has_entry_of_type): Search for specific type of entry in | |
996 | list. | |
997 | (is_reloc_for_GOT): return FALSE for any TLS related relocs. | |
998 | (is_reloc_for_TLS, arc_elf_set_private_flags) | |
999 | (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data) | |
1000 | (arc_elf_merge_private_bfd_data): New functions. | |
1001 | (debug_arc_reloc): Cleaned debug info printing. | |
1002 | (PDATA reloc): Changed not to perform address alignment. | |
1003 | (reverse_me): Added. Fix for ARC_32 relocs. | |
1004 | (arc_do_relocation): Return bfd_reloc_of when no relocation should | |
1005 | occur. | |
1006 | (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets. | |
1007 | Changed function to access an array of list of GOT entries instead | |
1008 | of just an array of offsets. | |
1009 | (elf_arc_relocate_section): Added support for PIC and TLS related relocations. | |
1010 | (elf_arc_check_relocs): Likewise. | |
1011 | (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol, | |
1012 | (elf_arc_finish_dynamic_sections): Likewise | |
1013 | (arc_create_dynamic_sections): Modified conditions to create | |
1014 | dynamic sections. | |
1015 | (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro. | |
1016 | (plt_do_relocs_for_symbol, relocate_plt_for_symbol) | |
1017 | (relocate_plt_for_entry): Changed to support new way to define PLT | |
1018 | related code. | |
1019 | (add_symbol_to_plt): Likewise. | |
1020 | (arc_elf_link_hash_table_create): New function. | |
1021 | ||
9ae678af NC |
1022 | 2016-01-18 Nick Clifton <nickc@redhat.com> |
1023 | ||
1024 | PR ld/19440 | |
1025 | * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external | |
1026 | section number into internal section number. | |
1027 | * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise. | |
1028 | * coffswap.h (coff_swap_sym_in): Likewise. | |
1029 | * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise. | |
1030 | * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal | |
1031 | section number field is big enough to hold the external value. | |
1032 | ||
5c14705f AM |
1033 | 2016-01-17 Alan Modra <amodra@gmail.com> |
1034 | ||
1035 | * configure: Regenerate. | |
1036 | ||
ac06903d YU |
1037 | 2016-01-12 Yury Usishchev <y.usishchev@samsung.com> |
1038 | ||
1039 | * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind | |
1040 | when address in first unwind entry does not match start of | |
1041 | section. | |
1042 | ||
109575d7 JW |
1043 | 2016-01-08 Richard Sandiford <richard.sandiford@arm.com> |
1044 | Jiong Wang <jiong.wang@arm.com> | |
1045 | ||
1046 | PR ld/19368 | |
1047 | * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to | |
1048 | reloc_class_ifunc. | |
1049 | ||
b05a65d0 AB |
1050 | 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1051 | ||
1052 | * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to | |
1053 | place 'R_' before the reloc name returned. | |
1054 | (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before | |
1055 | the relocation string. | |
1056 | ||
a3dc0a7f MR |
1057 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
1058 | ||
1059 | * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function, | |
1060 | factored out from... | |
1061 | (_bfd_mips_elf_merge_private_bfd_data): ... here. | |
1062 | ||
d537eeb5 MR |
1063 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
1064 | ||
1065 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move | |
1066 | attribute check after ELF file header flag check. | |
1067 | ||
43d223b5 MR |
1068 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
1069 | ||
1070 | * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the | |
1071 | return status from `_bfd_elf_merge_object_attributes'. | |
1072 | ||
b2e9744f MR |
1073 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
1074 | ||
1075 | * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function, | |
1076 | factored out from... | |
1077 | (_bfd_mips_elf_merge_private_bfd_data): ... here. | |
1078 | ||
28d45e28 MR |
1079 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
1080 | ||
1081 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the | |
1082 | handling of input MIPS ABI flags together. | |
1083 | ||
23ba6f18 MR |
1084 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
1085 | ||
1086 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress | |
1087 | attribute checks for null input. | |
1088 | ||
cf8502c1 MR |
1089 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
1090 | ||
1091 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local | |
1092 | pointers to target data. | |
1093 | ||
dcb1c796 MR |
1094 | 2016-01-04 Maciej W. Rozycki <macro@imgtec.com> |
1095 | ||
1096 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct | |
1097 | an FP ABI warning. | |
1098 | ||
6f2750fe AM |
1099 | 2016-01-01 Alan Modra <amodra@gmail.com> |
1100 | ||
1101 | Update year range in copyright notice of all files. | |
1102 | ||
3499769a AM |
1103 | For older changes see ChangeLog-2015 and doc/ChangeLog-0415 |
1104 | \f | |
1105 | Copyright (C) 2016 Free Software Foundation, Inc. | |
1106 | ||
1107 | Copying and distribution of this file, with or without modification, | |
1108 | are permitted in any medium without royalty provided the copyright | |
1109 | notice and this notice are preserved. | |
1110 | ||
1111 | Local Variables: | |
1112 | mode: change-log | |
1113 | left-margin: 8 | |
1114 | fill-column: 74 | |
1115 | version-control: never | |
1116 | End: |