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