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