Commit | Line | Data |
---|---|---|
f461bbd8 NC |
1 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
2 | ||
3 | PR binutils/21578 | |
4 | * elf32-sh.c (sh_elf_set_mach_from_flags): Fix check for invalid | |
5 | flag value. | |
6 | ||
c53d2e6d NC |
7 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
8 | ||
9 | PR binutils/21589 | |
10 | * vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the | |
11 | maximum value for the ascic pointer. Check that name processing | |
12 | does not read beyond this value. | |
13 | (_bfd_vms_slurp_etir): Add checks for attempts to read beyond the | |
14 | end of etir record. | |
15 | ||
04f963fd NC |
16 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
17 | ||
18 | PR binutils/21591 | |
19 | * versados.c (versados_mkobject): Zero the allocated tdata structure. | |
20 | (process_otr): Check for an invalid offset in the otr structure. | |
21 | ||
319c2dbe SH |
22 | 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de> |
23 | ||
24 | * config.bfd (epiphany-*-elf): Accept epiphany-*-*. | |
25 | ||
cbd0eecf L |
26 | 2017-06-13 H.J. Lu <hongjiu.lu@intel.com> |
27 | ||
28 | PR ld/20022 | |
29 | PR ld/21557 | |
30 | PR ld/21562 | |
31 | PR ld/21571 | |
32 | * elf-bfd.h (elf_link_hash_entry): Add start_stop. Change the | |
33 | vtable field to a union. | |
34 | (_bfd_elf_is_start_stop): Removed. | |
35 | * elf32-i386.c (elf_i386_convert_load_reloc): Also check for | |
36 | __start_SECNAME and __stop_SECNAME symbols. | |
37 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise. | |
38 | * elflink.c (_bfd_elf_is_start_stop): Removed. | |
39 | (_bfd_elf_gc_mark_rsec): Check start_stop instead of calling | |
40 | _bfd_elf_is_start_stop. | |
41 | (elf_gc_propagate_vtable_entries_used): Skip __start_SECNAME and | |
42 | __stop_SECNAME symbols. Updated. | |
43 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
44 | (bfd_elf_gc_record_vtinherit): Likewise. | |
45 | (bfd_elf_gc_record_vtentry): Likewise. | |
46 | ||
10bbbc1d NC |
47 | 2017-06-13 Nick Clifton <nickc@redhat.com> |
48 | ||
49 | PR ld/21524 | |
50 | * elflink.c (elf_link_adjust_relocs): Generate an error when | |
51 | encountering a reloc against a symbol removed by garbage | |
52 | collection. | |
53 | ||
5c3ce2bc L |
54 | 2017-06-12 H.J. Lu <hongjiu.lu@intel.com> |
55 | ||
56 | * elf-bfd.h (elf_backend_data): Add struct bfd_link_info * | |
57 | to merge_gnu_properties. | |
58 | * elf-properties.c (elf_merge_gnu_properties): Add struct | |
59 | bfd_link_info * and pass it to merge_gnu_properties. | |
60 | (elf_merge_gnu_property_list): Add struct bfd_link_info * | |
61 | and pass it to elf_merge_gnu_properties. | |
62 | (_bfd_elf_link_setup_gnu_properties): Pass info to | |
63 | elf_merge_gnu_property_list. | |
64 | * elf32-i386.c (elf_i386_merge_gnu_properties): Add struct | |
65 | bfd_link_info *. | |
66 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise. | |
67 | ||
9b97dfbf AM |
68 | 2017-06-11 Joe Zbiciak <joe.zbiciak@leftturnonly.info> |
69 | ||
70 | PR 21564 | |
71 | * binary.c (binary_set_section_contents): Scale lma by octets | |
72 | per byte to set filepos. | |
73 | ||
e3d1d408 CM |
74 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
75 | ||
76 | * elf32-arc.c (elf_arc_check_relocs): Fixed conditions to generate | |
77 | dynamic sections. | |
78 | ||
64aa8e03 CM |
79 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
80 | ||
81 | * elf32-arc.c (elf_arc_size_dynamic_sections): Changed condition to | |
82 | require TEXTREL. | |
83 | ||
a0abe743 CM |
84 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
85 | ||
86 | * arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to | |
87 | patched section contents for TLS IE reloc. | |
88 | * elf32-arc.c: Remove TCB_SIZE preprocessor macro. | |
89 | ||
f4e6805f CM |
90 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
91 | ||
92 | * elf32-arc.c (elf_arc_relocate_section): Added "call" to | |
93 | RELOC_FOR_GLOBAL_SYMBOL macro. | |
94 | ||
cd640291 CM |
95 | 2018-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
96 | ||
97 | * elf32-arc.c (elf_arc_relocate_section): Small refactor and condition | |
98 | changes. | |
99 | ||
7ef0acc1 VG |
100 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
101 | ||
102 | * config/tc-arc.c (md_undefined_symbol): Changed. | |
103 | * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed. | |
104 | ||
cc89d0b3 CM |
105 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
106 | ||
107 | * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect | |
108 | symbols. | |
109 | ||
9d5c718b CM |
110 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
111 | ||
112 | * elf32-arc.c (elf_arc_check_relocs): Added condition to disable | |
113 | warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs. | |
114 | ||
be9e3704 CM |
115 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
116 | ||
117 | * elf32-arc.c (ADD_RELA): Changed to only work when dynamic | |
118 | object is created. | |
119 | ||
4ec192e6 RE |
120 | 2017-06-08 Richard Earnshaw <rearnsha@arm.com> |
121 | ||
122 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove assertion | |
123 | that the input bfd has Tag_FP_ARCH non-zero if Tag_ABI_HardFP_use | |
124 | is non-zero. Add clarifying comments. | |
125 | ||
51fa2693 L |
126 | 2017-06-08 H.J. Lu <hongjiu.lu@intel.com> |
127 | ||
128 | * elf32-i386.c (elf_i386_check_relocs): Set local IFUNC symbol | |
129 | name. Use local IFUNC symbol name string to report unsupported | |
130 | non-PIC call to IFUNC function. | |
131 | (elf_i386_relocate_section): Dump local IFUNC name with minfo | |
132 | when generating R_386_IRELATIVE relocation. | |
133 | (elf_i386_finish_dynamic_symbol): Likewise. | |
134 | * elf_x86_64_check_relocs (elf_x86_64_check_relocs): Set local | |
135 | IFUNC symbol name. | |
136 | (elf_x86_64_relocate_section): Dump local IFUNC name with minfo | |
137 | when generating R_X86_64_IRELATIVE relocation. | |
138 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
139 | ||
78e8a2ff JM |
140 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
141 | ||
142 | * elf.c (setup_group): Make sure BFD sections are created for all | |
143 | group sections in the input file when processing SHF_GROUP | |
144 | sections. | |
145 | (bfd_section_from_shdr): Avoid duplicating logic already | |
146 | implemented in `setup_group'. | |
147 | ||
9949827b DBR |
148 | 2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com> |
149 | ||
150 | PR binutils/21546 | |
151 | * peXXigen.c (pe_print_idata): Use the address of the first thunk | |
152 | if the hint address is zero. | |
153 | ||
0ee3a6db JC |
154 | 2017-06-06 James Clarke <jrtc27@jrtc27.com> |
155 | ||
156 | PR ld/19579 | |
157 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check | |
158 | ELF_COMMON_DEF_P for common symbols. | |
159 | ||
7bdf4127 AB |
160 | 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com> |
161 | ||
162 | * elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark | |
163 | SEC_GROUP sections as SEC_EXCLUDE. | |
164 | (bfd_elf_set_group_contents): Replace use of abort with an assert. | |
165 | (assign_section_numbers): Use resolve_section_groups flag instead | |
166 | of relocatable link type. | |
167 | (_bfd_elf_init_private_section_data): Use resolve_section_groups | |
168 | flag instead of checking the final_link flag for part of the | |
169 | checks in here. Fix white space as a result. | |
170 | * elflink.c (elf_link_input_bfd): Use resolve_section_groups flag | |
171 | instead of relocatable link type. | |
172 | (bfd_elf_final_link): Likewise. | |
173 | ||
458ad2b8 JM |
174 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
175 | ||
176 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused | |
177 | variable `bed'. | |
178 | * elf32-score.c (score_elf_final_link_relocate): Likewise. | |
179 | (s3_bfd_score_elf_check_relocs): Likewise. | |
180 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
181 | (score_elf_final_link_relocate): Likewise. | |
182 | (s7_bfd_score_elf_check_relocs): Likewise. | |
183 | ||
fbebaf4a JM |
184 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
185 | ||
186 | * elflink.c (init_reloc_cookie_rels): Remove unused variable | |
187 | `bed'. | |
188 | ||
056bafd4 MR |
189 | 2017-06-06 Maciej W. Rozycki <macro@imgtec.com> |
190 | ||
191 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count' | |
192 | from `reloc_count' rather than decrementing it. | |
193 | * elf.c (bfd_section_from_shdr): Multiply the adjustment to | |
194 | `reloc_count' by `int_rels_per_ext_rel'. | |
195 | * elf32-score.c (score_elf_final_link_relocate): Do not multiply | |
196 | `reloc_count' by `int_rels_per_ext_rel' for last relocation | |
197 | entry determination. | |
198 | (s3_bfd_score_elf_check_relocs): Likewise. | |
199 | * elf32-score7.c (score_elf_final_link_relocate): Likewise. | |
200 | (s7_bfd_score_elf_relocate_section): Likewise. | |
201 | (s7_bfd_score_elf_check_relocs): Likewise. | |
202 | * elf64-mips.c (mips_elf64_get_reloc_upper_bound): Remove | |
203 | prototype and function. | |
204 | (mips_elf64_slurp_one_reloc_table): Do not update `reloc_count'. | |
205 | (mips_elf64_slurp_reloc_table): Assert that `reloc_count' is | |
206 | triple rather than once the sum of REL and RELA relocation entry | |
207 | counts. | |
208 | (bfd_elf64_get_reloc_upper_bound): Remove macro. | |
209 | * elflink.c (_bfd_elf_link_read_relocs): Do not multiply | |
210 | `reloc_count' by `int_rels_per_ext_rel' for internal relocation | |
211 | storage allocation size determination. | |
212 | (elf_link_input_bfd): Multiply `.ctors' and `.dtors' section's | |
213 | size by `int_rels_per_ext_rel'. Do not multiply `reloc_count' | |
214 | by `int_rels_per_ext_rel' for last relocation entry | |
215 | determination. | |
216 | (bfd_elf_final_link): Do not multiply `reloc_count' by | |
217 | `int_rels_per_ext_rel' for internal relocation storage | |
218 | allocation size determination. | |
219 | (init_reloc_cookie_rels): Do not multiply `reloc_count' by | |
220 | `int_rels_per_ext_rel' for last relocation entry determination. | |
221 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
222 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
223 | (_bfd_mips_elf_relocate_section): Likewise. | |
224 | ||
af54f0eb AM |
225 | 2017-06-05 Alan Modra <amodra@gmail.com> |
226 | ||
227 | PR 21529 | |
228 | * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE. | |
229 | ||
6cf3bf88 | 230 | 2017-06-01 John Baldwin <jhb@FreeBSD.org> |
b5430a3c JB |
231 | |
232 | * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to | |
233 | determine structure sizes. | |
234 | (elfcore_grok_freebsd_prstatus): Likewise. | |
235 | ||
f378ab09 AM |
236 | 2017-06-01 Alan Modra <amodra@gmail.com> |
237 | ||
238 | * elf64-ppc.c (struct ppc_link_hash_table): Add has_plt_localentry0. | |
239 | (ppc64_elf_merge_symbol_attribute): Merge localentry bits from | |
240 | dynamic objects. | |
241 | (is_elfv2_localentry0): New function. | |
242 | (ppc64_elf_tls_setup): Default params->plt_localentry0. | |
243 | (plt_stub_size): Adjust size for tls_get_addr_opt stub. | |
244 | (build_tls_get_addr_stub): Use a simpler stub when r2 is not saved. | |
245 | (ppc64_elf_size_stubs): Leave stub_type as ppc_stub_plt_call for | |
246 | optimized localentry:0 stubs. | |
247 | (ppc64_elf_build_stubs): Save r2 in ELFv2 __glink_PLTresolve. | |
248 | (ppc64_elf_relocate_section): Leave nop unchanged for optimized | |
249 | localentry:0 stubs. | |
250 | (ppc64_elf_finish_dynamic_sections): Set PPC64_OPT_LOCALENTRY in | |
251 | DT_PPC64_OPT. | |
252 | * elf64-ppc.h (struct ppc64_elf_params): Add plt_localentry0. | |
253 | ||
8c65b54f CS |
254 | 2017-05-30 Casey Smith <clegg89@gmail.com> |
255 | ||
256 | PR ld/21523 | |
257 | * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute | |
258 | value when processing the R_ARM_THM_ALU_PREL_11_0 reloc. | |
259 | ||
64984c22 AK |
260 | 2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com |
261 | ||
262 | * cpu-arc.c (arc_compatible): New function. | |
263 | ||
37cd3877 AK |
264 | 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com> |
265 | ||
266 | * cpu-arc.c (arch_info_struct): Remove duplicate ARC600 entry. | |
267 | ||
8e2f54bc L |
268 | 2017-05-30 H.J. Lu <hongjiu.lu@intel.com> |
269 | ||
270 | PR binutils/21519 | |
271 | * bfdio.c (bfd_get_file_size): New function. | |
272 | * bfd-in2.h: Regenerated. | |
273 | ||
8e7f04f1 | 274 | 2017-05-23 Dilian Palauzov <git-dpa@aegee.org> |
275 | ||
276 | * elf32-arc.c (arc_elf_merge_attributes): Add fall through | |
277 | comments. | |
278 | ||
25f94347 L |
279 | 2017-05-22 H.J. Lu <hongjiu.lu@intel.com> |
280 | ||
281 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use | |
282 | dynobj instead of htab->elf.dynobj. | |
283 | ||
e5713223 MR |
284 | 2017-05-19 Maciej W. Rozycki <macro@imgtec.com> |
285 | ||
286 | * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype | |
287 | and function. | |
288 | (mips_elf64_canonicalize_dynamic_reloc): Likewise. | |
289 | (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the | |
290 | actual number of internal relocations retrieved. Adjust | |
291 | function description. | |
292 | (bfd_elf64_canonicalize_reloc): Remove macro. | |
293 | (bfd_elf64_canonicalize_dynamic_reloc): Likewise. | |
294 | ||
64517994 JM |
295 | 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com> |
296 | ||
297 | * archures.c (bfd_mach_sparc_v9m8): Define. | |
298 | (bfd_mach_sparc_v8plusm8): Likewise. | |
299 | (bfd_mach_sparc_v9_p): Adjust to M8. | |
300 | (bfd_mach_sparc_64bit_p): Likewise. | |
301 | * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and | |
302 | bfd_mach_sparc_v8plusm8. | |
303 | * bfd-in2.h: Regenerated. | |
304 | * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and | |
305 | sparc:v8plusm8. | |
306 | * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle | |
307 | bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw | |
308 | capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and | |
309 | SHA3. | |
310 | * elf32-sparc.c (elf32_sparc_final_write_processing): Handle | |
311 | bfd_mach_sparc_v8plusm8. | |
312 | ||
eb026f09 AM |
313 | 2017-05-19 Alan Modra <amodra@gmail.com> |
314 | ||
315 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep | |
316 | debug and special sections when no non-note alloc sections in an | |
317 | object are kept. | |
318 | ||
535b785f AM |
319 | 2017-05-18 Alan Modra <amodra@gmail.com> |
320 | ||
321 | * arc-got.h: Don't compare boolean values against TRUE or FALSE. | |
322 | * elf-m10300.c: Likewise. | |
323 | * elf.c: Likewise. | |
324 | * elf32-arc.c: Likewise. | |
325 | * elf32-bfin.c: Likewise. | |
326 | * elf32-m68k.c: Likewise. | |
327 | * elf32-nds32.c: Likewise. | |
328 | * elf32-tilepro.c: Likewise. | |
329 | * elflink.c: Likewise. | |
330 | * elfnn-aarch64.c: Likewise. | |
331 | * elfnn-riscv.c: Likewise. | |
332 | * elfxx-tilegx.c: Likewise. | |
333 | * mach-o.c: Likewise. | |
334 | * peXXigen.c: Likewise. | |
335 | * vms-alpha.c: Likewise. | |
336 | * vms-lib.c: Likewise. | |
337 | ||
b7c871ed L |
338 | 2017-05-17 H.J. Lu <hongjiu.lu@intel.com> |
339 | ||
340 | PR ld/20882 | |
341 | * elflink.c (elf_gc_mark_debug_section): New function. | |
342 | (_bfd_elf_gc_mark_extra_sections): Mark any debug sections | |
343 | referenced by kept debug sections. | |
344 | ||
bc4e12de AM |
345 | 2017-05-16 Alan Modra <amodra@gmail.com> |
346 | ||
347 | * elf-m10300.c: Rename occurrences of non_ir_ref. | |
348 | * elf32-arm.c: Likewise. | |
349 | * elf32-bfin.c: Likewise. | |
350 | * elf32-cr16.c: Likewise. | |
351 | * elf32-cris.c: Likewise. | |
352 | * elf32-d10v.c: Likewise. | |
353 | * elf32-dlx.c: Likewise. | |
354 | * elf32-fr30.c: Likewise. | |
355 | * elf32-frv.c: Likewise. | |
356 | * elf32-hppa.c: Likewise. | |
357 | * elf32-i370.c: Likewise. | |
358 | * elf32-i386.c: Likewise. | |
359 | * elf32-iq2000.c: Likewise. | |
360 | * elf32-lm32.c: Likewise. | |
361 | * elf32-m32c.c: Likewise. | |
362 | * elf32-m32r.c: Likewise. | |
363 | * elf32-m68hc1x.c: Likewise. | |
364 | * elf32-m68k.c: Likewise. | |
365 | * elf32-mcore.c: Likewise. | |
366 | * elf32-metag.c: Likewise. | |
367 | * elf32-microblaze.c: Likewise. | |
368 | * elf32-moxie.c: Likewise. | |
369 | * elf32-msp430.c: Likewise. | |
370 | * elf32-mt.c: Likewise. | |
371 | * elf32-nios2.c: Likewise. | |
372 | * elf32-or1k.c: Likewise. | |
373 | * elf32-ppc.c: Likewise. | |
374 | * elf32-rl78.c: Likewise. | |
375 | * elf32-s390.c: Likewise. | |
376 | * elf32-score.c: Likewise. | |
377 | * elf32-score7.c: Likewise. | |
378 | * elf32-sh.c: Likewise. | |
379 | * elf32-tic6x.c: Likewise. | |
380 | * elf32-tilepro.c: Likewise. | |
381 | * elf32-v850.c: Likewise. | |
382 | * elf32-vax.c: Likewise. | |
383 | * elf32-xstormy16.c: Likewise. | |
384 | * elf32-xtensa.c: Likewise. | |
385 | * elf64-alpha.c: Likewise. | |
386 | * elf64-hppa.c: Likewise. | |
387 | * elf64-ia64-vms.c: Likewise. | |
388 | * elf64-mmix.c: Likewise. | |
389 | * elf64-ppc.c: Likewise. | |
390 | * elf64-s390.c: Likewise. | |
391 | * elf64-sh64.c: Likewise. | |
392 | * elf64-x86-64.c: Likewise. | |
393 | * elflink.c: Likewise. | |
394 | * elfnn-aarch64.c: Likewise. | |
395 | * elfnn-ia64.c: Likewise. | |
396 | * elfnn-riscv.c: Likewise. | |
397 | * elfxx-mips.c: Likewise. | |
398 | * elfxx-sparc.c: Likewise. | |
399 | * elfxx-tilegx.c: Likewise. | |
400 | * linker.c: Likewise. | |
401 | ||
4070765b AM |
402 | 2017-05-16 Alan Modra <amodra@gmail.com> |
403 | ||
404 | * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic. | |
405 | * elflink.c (elf_link_add_object_symbols): Update to use | |
406 | non_ir_ref_dynamic. | |
407 | (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to | |
408 | non_ir_ref. | |
409 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. | |
410 | ||
25499ac7 MR |
411 | 2017-05-15 Maciej W. Rozycki <macro@imgtec.com> |
412 | ||
413 | * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE. | |
414 | ||
73caa85d L |
415 | 2017-05-12 H.J. Lu <hongjiu.lu@intel.com> |
416 | ||
417 | * elf32-i386.c (elf_i386_parse_gnu_properties): Merge | |
418 | GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED | |
419 | properties. | |
420 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
421 | ||
f2c29a16 L |
422 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
423 | ||
424 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd | |
425 | to plt_second. | |
426 | (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame | |
427 | to plt_second/plt_second_eh_frame. | |
428 | (elf_x86_64_link_hash_newfunc): Updated. | |
429 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
430 | (elf_x86_64_size_dynamic_sections): Likewise. | |
431 | (elf_x86_64_relocate_section): Likewise. | |
432 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
433 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
434 | (elf_x86_64_plt_type): Rename plt_bnd to plt_second. | |
435 | (elf_x86_64_get_synthetic_symtab): Updated. Also scan the | |
436 | .plt.sec section. | |
437 | (elf_backend_setup_gnu_properties): Updated. Create the | |
438 | .plt.sec section instead of the .plt.sec section. | |
439 | ||
dc2be3d2 L |
440 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
441 | ||
442 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert | |
443 | commit 25070364b0ce33eed46aa5d78ebebbec6accec7e. | |
444 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse. | |
445 | ||
db84b98a JM |
446 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
447 | ||
448 | * elf64-sparc.c (elf64_sparc_set_reloc): New function. | |
449 | (bfd_elf64_set_reloc): Define. | |
450 | (elf64_sparc_write_relocs): Use `canon_reloc_count'. | |
451 | ||
23186865 JM |
452 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
453 | ||
454 | * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc. | |
455 | (struct bfd_target): New field _bfd_set_reloc. | |
456 | * bfd.c (bfd_set_reloc): Call backend _set_bfd. | |
457 | * reloc.c (_bfd_generic_set_reloc): New function. | |
458 | * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc. | |
459 | * nlm-target.h (nlm_set_reloc): Likewise. | |
460 | * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise. | |
461 | * aout-tic30.c (MY_set_reloc): Likewise. | |
462 | * aout-target.h (MY_set_reloc): Likewise. | |
463 | * elfxx-target.h (bfd_elfNN_set_reloc): Likewise. | |
464 | * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise. | |
465 | * mach-o-target.c (bfd_mach_o_set_reloc): Likewise. | |
466 | * vms-alpha.c (alpha_vms_set_reloc): Likewise. | |
467 | * aout-adobe.c (aout_32_set_reloc): Likewise. | |
468 | * bout.c (b_out_set_reloc): Likewise. | |
469 | * coff-mips.c (_bfd_ecoff_set_reloc): Likewise. | |
470 | * i386os9k.c (aout_32_set_reloc): Likewise. | |
471 | * ieee.c (ieee_set_reloc): Likewise. | |
472 | * oasys.c (oasys_set_reloc): Likewise. | |
473 | * som.c (som_set_reloc): Likewise. | |
474 | * versados.c (versados_set_reloc): Likewise. | |
475 | * coff64-rs6000.c (rs6000_xcoff64_vec): Add | |
476 | _bfd_generic_set_reloc. | |
477 | (rs6000_xcoff64_aix_vec): LIkewise. | |
478 | * libbfd.c (_bfd_norelocs_set_reloc): New function. | |
479 | * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc. | |
480 | * i386msdos.c (msdos_set_reloc): Define to | |
481 | _bfd_norelocs_set_reloc. | |
482 | * elfcode.h (elf_set_reloc): Define. | |
483 | * bfd-in2.h: Regenerated. | |
484 | ||
aab82f4c L |
485 | 2017-05-10 H.J. Lu <hongjiu.lu@intel.com> |
486 | ||
487 | PR ld/21481 | |
488 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd | |
489 | for IFUNC function address. | |
490 | ||
53a346d8 CZ |
491 | 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com> |
492 | ||
493 | * elf32-arc.c (FEATURE_LIST_NAME): Define. | |
494 | (CONFLICT_LIST): Likewise. | |
495 | (opcode/arc-attrs.h): Include. | |
496 | (arc_elf_print_private_bfd_data): Print OSABI v4 flag. | |
497 | (arc_extract_features): New file. | |
498 | (arc_stralloc): Likewise. | |
499 | (arc_elf_merge_attributes): Likewise. | |
500 | (arc_elf_merge_private_bfd_data): Use object attributes. | |
501 | (bfd_arc_get_mach_from_attributes): New function. | |
502 | (arc_elf_object_p): Use object attributes. | |
503 | (arc_elf_final_write_processing): Likewise. | |
504 | (elf32_arc_obj_attrs_arg_type): New function. | |
505 | (elf32_arc_obj_attrs_handle_unknown): Likewise. | |
506 | (elf32_arc_section_from_shdr): Likewise. | |
507 | (elf_backend_obj_attrs_vendor): Define. | |
508 | (elf_backend_obj_attrs_section): Likewise. | |
509 | (elf_backend_obj_attrs_arg_type): Likewise. | |
510 | (elf_backend_obj_attrs_section_type): Likewise. | |
511 | (elf_backend_obj_attrs_handle_unknown): Likewise. | |
512 | (elf_backend_section_from_shdr): Likewise. | |
513 | ||
e645cf40 AG |
514 | 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za> |
515 | ||
516 | PR ld/21458 | |
517 | * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit | |
518 | of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation | |
519 | and the destination is a Thumb symbol. | |
520 | ||
dd9e66ee L |
521 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
522 | ||
523 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing | |
524 | initializer to silence GCC 4.2. | |
525 | * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
526 | ||
38b12349 L |
527 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
528 | ||
529 | * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ... | |
530 | (LAZY_PLT_ENTRY_SIZE): This. | |
531 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
532 | (elf_x86_64_plt0_entry): Renamed to ... | |
533 | (elf_x86_64_lazy_plt0_entry): This. | |
534 | (elf_x86_64_plt_entry): Renamed to ... | |
535 | (elf_x86_64_lazy_plt_entry): This. | |
536 | (elf_x86_64_bnd_plt0_entry): Renamed to ... | |
537 | (elf_x86_64_lazy_bnd_plt0_entry): This. | |
538 | (elf_x86_64_legacy_plt_entry): Removed. | |
539 | (elf_x86_64_bnd_plt_entry): Renamed to ... | |
540 | (elf_x86_64_lazy_bnd_plt_entry): This. | |
541 | (elf_x86_64_legacy_plt2_entry): Renamed to ... | |
542 | (elf_x86_64_non_lazy_plt_entry): This. | |
543 | (elf_x86_64_bnd_plt2_entry): Renamed to ... | |
544 | (elf_x86_64_non_lazy_bnd_plt_entry): This. | |
545 | (elf_x86_64_eh_frame_plt): Renamed to ... | |
546 | (elf_x86_64_eh_frame_lazy_plt): This. | |
547 | (elf_x86_64_eh_frame_bnd_plt): Renamed to ... | |
548 | (elf_x86_64_eh_frame_lazy_bnd_plt): This. | |
549 | (elf_x86_64_eh_frame_plt_got): Renamed to ... | |
550 | (elf_x86_64_eh_frame_non_lazy_plt): This. | |
551 | (elf_x86_64_lazy_plt_layout): New. | |
552 | (elf_x86_64_non_lazy_plt_layout): Likewise. | |
553 | (elf_x86_64_plt_layout): Likewise. | |
554 | (elf_x86_64_backend_data): Remove PLT layout information. Add | |
555 | os for target system. | |
556 | (GET_PLT_ENTRY_SIZE): Removed. | |
557 | (elf_x86_64_lazy_plt): New. | |
558 | (elf_x86_64_non_lazy_plt): Likewise. | |
559 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
560 | (elf_x86_64_non_lazy_bnd_plt): Likewise. | |
561 | (elf_x86-64_arch_bed): Updated. | |
562 | (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
563 | (elf_x86_64_create_dynamic_sections): Removed. | |
564 | (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call | |
565 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
566 | (elf_x86-64_adjust_dynamic_symbol): Updated. | |
567 | (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
568 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
569 | size for PLT0 if there is no PLT0. Get plt_entry_size from | |
570 | non_lazy_plt for non-lazy PLT entries. | |
571 | (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size | |
572 | from non_lazy_plt for non-lazy PLT entries. | |
573 | (elf_x86-64_relocate_section): Updated. Properly get PLT index | |
574 | if there is no PLT0. | |
575 | (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot | |
576 | in the PLT entry with generic PLT layout. Fill the non-lazy PLT | |
577 | entries with non-lazy PLT layout. Don't fill the second and third | |
578 | slots in the PLT entry if there is no PLT0. | |
579 | (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0 | |
580 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
581 | (compare_relocs): New. | |
582 | (elf_x86_64_plt_type): Likewise. | |
583 | (elf_x86_64_plt): Likewise. | |
584 | (elf_x86_64_nacl_plt): New. Forward declaration. | |
585 | (elf_x86_64_get_plt_sym_val): Removed. | |
586 | (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections | |
587 | against all dynamic relocations. | |
588 | (elf_x86_64_link_setup_gnu_properties): New function. | |
589 | (elf_backend_create_dynamic_sections): Updated. | |
590 | (elf_backend_setup_gnu_properties): New. | |
591 | (elf_x86_64_nacl_plt): New. | |
592 | (elf_x86_64_nacl_arch_bed): Updated. | |
593 | ||
f604c2a2 L |
594 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
595 | ||
596 | * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ... | |
597 | (LAZY_PLT_ENTRY_SIZE): This. | |
598 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
599 | (elf_i386_plt0_entry): Renamed to ... | |
600 | (elf_i386_lazy_plt0_entry): This. | |
601 | (elf_i386_plt_entry): Renamed to ... | |
602 | (elf_i386_lazy_plt_entry): This. | |
603 | (elf_i386_pic_plt0_entry): Renamed to ... | |
604 | (elf_i386_pic_lazy_plt0_entry): This. | |
605 | (elf_i386_pic_plt_entry): Renamed to ... | |
606 | (elf_i386_pic_lazy_plt_entry): This. | |
607 | (elf_i386_got_plt_entry): Renamed to ... | |
608 | (elf_i386_non_lazy_plt_entry): This. | |
609 | (elf_i386_pic_got_plt_entry): Renamed to ... | |
610 | (elf_i386_pic_non_lazy_plt_entry): This. | |
611 | (elf_i386_eh_frame_plt): Renamed to ... | |
612 | (elf_i386_eh_frame_lazy_plt): This. | |
613 | (elf_i386_eh_frame_plt_got): Renamed to ... | |
614 | (elf_i386_eh_frame_non_lazy_plt): This. | |
615 | (elf_i386_plt_layout): Renamed to ... | |
616 | (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and | |
617 | eh_frame_plt_got_size. | |
618 | (elf_i386_non_lazy_plt_layout): New. | |
619 | (elf_i386_plt_layout): Likewise. | |
620 | (elf_i386_non_lazy_plt): Likewise. | |
621 | (GET_PLT_ENTRY_SIZE): Removed. | |
622 | (elf_i386_plt): Renamed to ... | |
623 | (elf_i386_lazy_plt): This. | |
624 | (elf_i386_backend_data): Remove plt. Rename is_vxworks to os. | |
625 | (elf_i386_arch_bed): Updated. | |
626 | (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
627 | (elf_i386_create_dynamic_sections): Removed. | |
628 | (elf_i386_check_relocs): Don't check elf.dynobj. Don't call | |
629 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
630 | (elf_i386_adjust_dynamic_symbol): Updated. | |
631 | (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
632 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
633 | size for PLT0 if there is no PLT0. | |
634 | (elf_i386_size_dynamic_sections): Updated. Check whether GOT | |
635 | output section is discarded only if GOT isn't empty. | |
636 | (elf_i386_relocate_section): Updated. Properly get PLT index | |
637 | if there is no PLT0. | |
638 | (elf_i386_finish_dynamic_symbol): Updated. Don't fill the | |
639 | second and third slots in the PLT entry if there is no PLT0. | |
640 | (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0 | |
641 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
642 | (elf_i386_nacl_plt): Forward declaration. | |
643 | (elf_i386_get_plt_sym_val): Removed. | |
644 | (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections | |
645 | against all dynamic relocations. | |
646 | (elf_i386_link_setup_gnu_properties): New function. | |
647 | (elf_backend_create_dynamic_sections): Updated. | |
648 | (elf_backend_setup_gnu_properties): New. | |
649 | (elf_i386_nacl_plt): Updated. | |
650 | (elf_i386_nacl_arch_bed): Likewise. | |
651 | (elf_i386_vxworks_arch_bed): Likewise. | |
652 | ||
046734ff TP |
653 | 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com> |
654 | ||
655 | * elflink.c (elf_output_implib): Remove executable flag from import | |
656 | library bfd. | |
657 | * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import | |
658 | library is a relocatable object file. | |
659 | ||
b660e9eb SKS |
660 | 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
661 | ||
662 | PR ld/21404 | |
663 | * elf32-avr.c (avr_should_move_sym): New function. | |
664 | (avr_should_reduce_sym_size): Likewise. | |
665 | (avr_should_increase_sym_size): Likewise. | |
666 | (elf32_avr_relax_delete_bytes): Adjust symbol values | |
667 | and sizes by calling new functions. | |
668 | ||
763a5fa4 PD |
669 | 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com> |
670 | ||
671 | * config.bfd (riscv32-*): Enable rv64. | |
672 | ||
73ec947d AM |
673 | 2017-05-02 Alan Modra <amodra@gmail.com> |
674 | ||
675 | PR 21384 | |
676 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf | |
677 | rather than h->root.type == bfd_link_hash_new. | |
678 | (bfd_elf_record_link_assignment): Similarly, call | |
679 | bfd_elf_link_mark_dynamic_symbol when h->non_elf. | |
680 | ||
a941291c AM |
681 | 2017-04-29 Alan Modra <amodra@gmail.com> |
682 | ||
683 | PR 21432 | |
684 | * reloc.c (reloc_offset_in_range): New function. | |
685 | (bfd_perform_relocation, bfd_install_relocation): Use it. | |
686 | (_bfd_final_link_relocate): Likewise. | |
687 | ||
750eaa47 L |
688 | 2017-04-28 H.J. Lu <hongjiu.lu@intel.com> |
689 | ||
690 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got | |
691 | before using .plt.got. | |
692 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
693 | ||
5b66fac4 L |
694 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
695 | ||
696 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "=" | |
697 | instead of "+=" to update 0. | |
698 | ||
de9a3c42 L |
699 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
700 | ||
701 | * elf32-i386.c (elf_i386_create_dynamic_sections): Create the | |
702 | .plt.got section here. | |
703 | (elf_i386_check_relocs): Don't create the .plt.got section. | |
704 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create | |
705 | the .plt.got and .plt.bnd sections here. | |
706 | (elf_x86_64_check_relocs): Don't create the .plt.got nor | |
707 | .plt.bnd sections. | |
708 | ||
da3d25af L |
709 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
710 | ||
711 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove | |
712 | has_bnd_reloc. | |
713 | (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc. | |
714 | (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc. | |
715 | (elf_x86_64_check_relocs): Don't set has_bnd_reloc. | |
716 | (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of | |
717 | has_bnd_reloc. | |
718 | ||
fba37edd L |
719 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
720 | ||
721 | * elf-bfd.h (elf_backend_data): Change setup_gnu_properties | |
722 | to return bfd *. | |
723 | (_bfd_elf_link_setup_gnu_properties): Return bfd *. | |
724 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return | |
725 | the first relocatable ELF input with GNU properties. | |
726 | ||
1f78f649 L |
727 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
728 | ||
729 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify | |
730 | VxWorks for non-PIC. | |
731 | ||
76c20d54 AM |
732 | 2017-04-27 Alan Modra <amodra@gmail.com> |
733 | ||
734 | * elf-bfd.h (struct elf_backend_data): Make asection param of | |
735 | elf_backend_eh_frame_address_size const. | |
736 | (_bfd_elf_eh_frame_address_size): Likewise. | |
737 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise. | |
738 | * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise. | |
739 | * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
740 | * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
741 | * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise. | |
742 | (next_cie_fde_offset): Constify params. | |
743 | (offset_adjust, adjust_eh_frame_local_symbols): Likewise. | |
744 | ||
d7153c4a AM |
745 | 2017-04-27 Alan Modra <amodra@gmail.com> |
746 | ||
747 | * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len. | |
748 | (_bfd_elf_adjust_eh_frame_global_symbol): Declare. | |
749 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and | |
750 | aug_data_len. | |
751 | (offset_adjust): New function. | |
752 | (_bfd_elf_adjust_eh_frame_global_symbol): Likewise. | |
753 | (adjust_eh_frame_local_symbols): Likewise. | |
754 | (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols | |
755 | after changing anything. Return true if anything changed. | |
756 | * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call | |
757 | _bfd_elf_adjust_eh_frame_global_symbol for globals. | |
758 | ||
641338d8 AM |
759 | 2017-04-27 Alan Modra <amodra@gmail.com> |
760 | ||
761 | * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index | |
762 | when force_local. | |
763 | ||
21d68fcd AM |
764 | 2017-04-27 Alan Modra <amodra@gmail.com> |
765 | ||
766 | * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
767 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it. | |
768 | (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise. | |
769 | (ppc_elf_relocate_section): Likewise. Delete silly optimisation | |
770 | for undef and undefweak dyn_relocs. | |
771 | * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
772 | (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it. | |
773 | (allocate_got, allocate_dynrelocs): Likewise. | |
774 | (ppc64_elf_relocate_section): Likewise. | |
775 | ||
97d343d4 L |
776 | 2017-04-26 H.J. Lu <hongjiu.lu@intel.com> |
777 | ||
778 | * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add | |
779 | DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section. | |
780 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys | |
781 | add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section. | |
782 | ||
04b31182 NC |
783 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
784 | ||
785 | PR binutils/21434 | |
786 | * reloc.c (bfd_perform_relocation): Check for a negative address | |
787 | in the reloc. | |
788 | ||
23ec1e32 MR |
789 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
790 | ||
791 | PR ld/21334 | |
792 | * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms' | |
793 | member. | |
794 | * elfxx-target.h [!elf_backend_always_renumber_dynsyms] | |
795 | (elf_backend_always_renumber_dynsyms): Define. | |
796 | (elfNN_bed): Initialize `always_renumber_dynsyms' member. | |
797 | * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define. | |
798 | * elflink.c (bfd_elf_size_dynamic_sections): Also call | |
799 | `_bfd_elf_link_renumber_dynsyms' if the backend has requested | |
800 | it. | |
801 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
802 | ||
c46cec3a MR |
803 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
804 | ||
805 | * elflink.c (bfd_elf_size_dynamic_sections): Only call | |
806 | `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic | |
807 | sections have been created. | |
808 | ||
e63d1232 NC |
809 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
810 | ||
811 | PR binutils/21431 | |
812 | * compress.c (bfd_init_section_compress_status): Check the return | |
813 | value from bfd_malloc. | |
814 | ||
9e9821dd L |
815 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
816 | ||
817 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add | |
818 | no_finish_dynamic_symbol. | |
819 | (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to | |
820 | 0. | |
821 | (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined | |
822 | weak symbol, don't make it dynamic. | |
823 | (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC, | |
824 | set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE | |
825 | relocation for GOT reference. | |
826 | (elf_x86_64_finish_dynamic_symbol): Abort if | |
827 | no_finish_dynamic_symbol isn't 0. | |
828 | ||
0dc9a308 L |
829 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
830 | ||
831 | PR ld/21402 | |
832 | * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't | |
833 | undefined weak symbol, don't make it dynamic. | |
834 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIC, | |
835 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
836 | relocation for R_386_GOT32. | |
837 | ||
1587442d L |
838 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
839 | ||
840 | PR ld/21425 | |
841 | * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks. | |
842 | ||
7eacd66b AM |
843 | 2017-04-23 Alan Modra <amodra@gmail.com> |
844 | ||
845 | PR 21414 | |
846 | * section.c (GLOBAL_SYM_INIT): Make available in bfd.h. | |
847 | * elf.c (lcomm_sym): New. | |
848 | (_bfd_elf_large_com_section): Use lcomm_sym section symbol. | |
849 | * bfd-in2.h: Regenerate. | |
850 | ||
bce964aa AM |
851 | 2017-04-23 Alan Modra <amodra@gmail.com> |
852 | ||
853 | PR 21412 | |
854 | * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change | |
855 | parameters and comment. | |
856 | (_bfd_elf_get_reloc_section): Delete. | |
857 | (_bfd_elf_plt_get_reloc_section): Declare. | |
858 | * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section): | |
859 | New functions. Don't blindly skip over assumed .rel/.rela prefix. | |
860 | Extracted from.. | |
861 | (_bfd_elf_get_reloc_section): ..here. Delete. | |
862 | (assign_section_numbers): Call elf_get_reloc_section. | |
863 | * elf64-ppc.c (elf_backend_get_reloc_section): Define. | |
864 | * elfxx-target.h (elf_backend_get_reloc_section): Update. | |
865 | ||
97e83a10 AM |
866 | 2017-04-23 Alan Modra <amodra@gmail.com> |
867 | ||
868 | PR 21409 | |
869 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when | |
870 | no symbols. | |
871 | ||
e133d005 L |
872 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
873 | ||
874 | PR ld/21402 | |
875 | * elf32-i386.c (elf_i386_link_hash_entry): Add | |
876 | no_finish_dynamic_symbol. | |
877 | (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0. | |
878 | (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak | |
879 | symbol, don't make it dynamic in PIE. | |
880 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIE, | |
881 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
882 | relocation for R_386_GOT32 | |
883 | (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol | |
884 | isn't 0. | |
885 | ||
3c5fce9b L |
886 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
887 | ||
888 | PR ld/19617 | |
889 | PR ld/21086 | |
890 | * elflink.c (elf_link_add_object_symbols): Require | |
891 | --no-dynamic-linker with -E/--dynamic-list when creating | |
892 | dynamic sections. | |
893 | ||
0fad2956 MR |
894 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
895 | ||
896 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE | |
897 | if forced local. | |
898 | ||
64575f78 MR |
899 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
900 | ||
901 | * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about | |
902 | dynamic symbol sorting. | |
903 | ||
59fa66c5 L |
904 | 2017-04-20 H.J. Lu <hongjiu.lu@intel.com> |
905 | ||
906 | PR ld/21382 | |
907 | * elflink.c (elf_link_add_object_symbols): Preserve | |
908 | dynamic_ref_after_ir_def when restoring the symbol table for | |
909 | unneeded dynamic object. | |
910 | ||
e492d2f8 L |
911 | 2017-04-19 H.J. Lu <hongjiu.lu@intel.com> |
912 | ||
913 | PR ld/21401 | |
914 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort | |
915 | on on undefined IFUNC symbol in the second PLT. | |
916 | ||
10169134 WAF |
917 | 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com> |
918 | ||
919 | * peXXigen.c (pe_print_reloc): Correct chunk_end. | |
920 | ||
954b63d4 AM |
921 | 2017-04-19 Alan Modra <amodra@gmail.com> |
922 | ||
923 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak | |
924 | or make dynamic for info->dynamic_undefined_weak 0 and 1. | |
925 | * elf32-ppc.c:Formatting. | |
926 | (ensure_undefweak_dynamic): Don't make dynamic when | |
927 | info->dynamic_undefined_weak is zero. | |
928 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
929 | info->dynamic_undefined_weak. Discard undef dyn_relocs when | |
930 | not default visibility. Discard undef and undefweak | |
931 | dyn_relocs earlier. | |
932 | (ppc_elf_relocate_section): Adjust to suit. | |
933 | * elf64-ppc.c: Formatting. | |
934 | (ensure_undefweak_dynamic): Don't make dynamic when | |
935 | info->dynamic_undefined_weak is zero. | |
936 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
937 | info->dynamic_undefined_weak. Discard them earlier. | |
938 | ||
e6699019 L |
939 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
940 | ||
941 | PR ld/21389 | |
942 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index | |
943 | before generating the version definition section. | |
944 | ||
c5d37467 AM |
945 | 2017-04-17 Alan Modra <amodra@gmail.com> |
946 | ||
947 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking | |
948 | state when a regular object file defines a symbol with | |
949 | incompatible type to that defined by an earlier shared lib. | |
950 | ||
63a5468a AM |
951 | 2017-04-13 Alan Modra <amodra@gmail.com> |
952 | ||
953 | * coffcode.h: Wrap some overly long _bfd_error_handler args. | |
954 | * elf.c: Likewise. | |
955 | * elf32-arm.c: Likewise. | |
956 | * elf32-i386.c: Likewise. | |
957 | * elf32-mep.c: Likewise. | |
958 | * elf64-ia64-vms.c: Likewise. | |
959 | * elf64-x86-64.c: Likewise. | |
960 | * elflink.c: Likewise. | |
961 | * elfnn-ia64.c: Likewise. | |
962 | * elfxx-mips.c: Likewise. | |
963 | ||
dae82561 AM |
964 | 2017-04-13 Alan Modra <amodra@gmail.com> |
965 | ||
966 | * aoutx.h: Use %B and %A in error messages throughout file. | |
967 | * aout-cris.c: Likewise. | |
968 | * archive.c: Likewise. | |
969 | * binary.c: Likewise. | |
970 | * coff-rs6000.c: Likewise. | |
971 | * coff-tic4x.c: Likewise. | |
972 | * coffcode.h: Likewise. | |
973 | * coffgen.c: Likewise. | |
974 | * cofflink.c: Likewise. | |
975 | * coffswap.h: Likewise. | |
976 | * cpu-arm.c: Likewise. | |
977 | * elf-eh-frame.c: Likewise. | |
978 | * elf-m10300.c: Likewise. | |
979 | * elf.c: Likewise. | |
980 | * elf32-arc.c: Likewise. | |
981 | * elf32-arm.c: Likewise. | |
982 | * elf32-bfin.c: Likewise. | |
983 | * elf32-frv.c: Likewise. | |
984 | * elf32-iq2000.c: Likewise. | |
985 | * elf32-m32c.c: Likewise. | |
986 | * elf32-microblaze.c: Likewise. | |
987 | * elf32-nds32.c: Likewise. | |
988 | * elf32-rl78.c: Likewise. | |
989 | * elf32-rx.c: Likewise. | |
990 | * elf32-score.c: Likewise. | |
991 | * elf32-score7.c: Likewise. | |
992 | * elf32-sh64.c: Likewise. | |
993 | * elf32-v850.c: Likewise. | |
994 | * elf32-vax.c: Likewise. | |
995 | * elf32-visium.c: Likewise. | |
996 | * elf64-ia64-vms.c: Likewise. | |
997 | * elf64-mmix.c: Likewise. | |
998 | * elf64-sh64.c: Likewise. | |
999 | * elfcode.h: Likewise. | |
1000 | * elfnn-aarch64.c: Likewise. | |
1001 | * elfnn-ia64.c: Likewise. | |
1002 | * elfxx-mips.c: Likewise. | |
1003 | * hpux-core.c: Likewise. | |
1004 | * ieee.c: Likewise. | |
1005 | * ihex.c: Likewise. | |
1006 | * linker.c: Likewise. | |
1007 | * merge.c: Likewise. | |
1008 | * mmo.c: Likewise. | |
1009 | * oasys.c: Likewise. | |
1010 | * pdp11.c: Likewise. | |
1011 | * peXXigen.c: Likewise. | |
1012 | * rs6000-core.c: Likewise. | |
1013 | * vms-alpha.c: Likewise. | |
1014 | * xcofflink.c: Likewise. | |
1015 | ||
c08bb8dd AM |
1016 | 2017-04-13 Alan Modra <amodra@gmail.com> |
1017 | ||
1018 | * bfd.c (PRINT_TYPE): Define. | |
1019 | (_doprnt): New function. | |
1020 | (error_handler_internal): Use _doprnt. | |
1021 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler | |
1022 | calls in their natural order, throughout file. | |
1023 | * coff-mcore.c: Likewise. | |
1024 | * coff-ppc.c: Likewise. | |
1025 | * coff-tic80.c: Likewise. | |
1026 | * cofflink.c: Likewise. | |
1027 | * elf-s390-common.c: Likewise. | |
1028 | * elf.c: Likewise. | |
1029 | * elf32-arm.c: Likewise. | |
1030 | * elf32-i386.c: Likewise. | |
1031 | * elf32-m32r.c: Likewise. | |
1032 | * elf32-msp430.c: Likewise. | |
1033 | * elf32-spu.c: Likewise. | |
1034 | * elf64-ia64-vms.c: Likewise. | |
1035 | * elf64-sparc.c: Likewise. | |
1036 | * elf64-x86-64.c: Likewise. | |
1037 | * elflink.c: Likewise. | |
1038 | * elfnn-aarch64.c: Likewise. | |
1039 | * elfnn-ia64.c: Likewise. | |
1040 | * elfxx-mips.c: Likewise. | |
1041 | ||
10463f39 AM |
1042 | 2017-04-13 Alan Modra <amodra@gmail.com> |
1043 | ||
1044 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long | |
1045 | branch veneers" error. Fix double space and format message. | |
1046 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. | |
1047 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. | |
1048 | ||
4af8774e AM |
1049 | 2017-04-13 Alan Modra <amodra@gmail.com> |
1050 | ||
1051 | * bfd-in2.h: Regenerate. | |
1052 | ||
e4097f5e L |
1053 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
1054 | ||
1055 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the | |
1056 | extra `\n' in warning/error messages. | |
1057 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. | |
1058 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
1059 | ||
537616aa L |
1060 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
1061 | ||
1062 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore | |
1063 | processor-specific properties with generic ELF target vector. | |
1064 | ||
bb1dd176 QZ |
1065 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
1066 | ||
1067 | * elf32-sparc.c (elf_backend_fixup_symbol): New. | |
1068 | * elf64-sparc.c (elf_backend_fixup_symbol): New. | |
1069 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
1070 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and | |
1071 | has_non_got_reloc. | |
1072 | (link_hash_newfunc): Initialize has_got_reloc and | |
1073 | has_non_got_reloc. | |
1074 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp | |
1075 | section. | |
1076 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and | |
1077 | has_non_got_reloc. | |
1078 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and | |
1079 | has_non_got_reloc. | |
1080 | (_bfd_sparc_elf_fixup_symbol): New function. | |
1081 | (allocate_dynrelocs): Don't allocate space for dynamic | |
1082 | relocations and discard relocations against resolved undefined | |
1083 | weak symbols in executable. Don't make resolved undefined weak | |
1084 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
1085 | relocation against undefined weak symbols in PIE. | |
1086 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic | |
1087 | relocations against resolved undefined weak symbols in PIE | |
1088 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries | |
1089 | without ynamic PLT/GOT relocations for resolved undefined weak | |
1090 | symbols. | |
1091 | Don't generate dynamic relocation against resolved undefined | |
1092 | weak symbol in executable. | |
1093 | (pie_finish_undefweak_symbol): New function. | |
1094 | (_bfd_sparc_elf_finish_dynamic_sections): Call | |
1095 | pie_finish_undefweak_symbol on all symbols in PIE. | |
1096 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. | |
1097 | (_bfd_sparc_elf_fixup_symbol): New function. | |
1098 | ||
d236cfd4 NC |
1099 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
1100 | ||
1101 | * config.bfd: Remove ns32k from obsolete list. | |
1102 | ||
6f9dbcd4 AM |
1103 | 2017-04-10 Alan Modra <amodra@gmail.com> |
1104 | ||
1105 | PR 21287 | |
1106 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. | |
1107 | (special_sections_i): Likewise for .init_array. | |
1108 | (special_sections_p): Likewise for .preinit_array. | |
1109 | ||
8170f769 L |
1110 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
1111 | ||
1112 | PR ld/19579 | |
1113 | PR ld/21306 | |
1114 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check | |
1115 | ELF_COMMON_DEF_P for common symbols. | |
1116 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1117 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
1118 | * elflink.c (_bfd_elf_merge_symbol): Revert commits | |
1119 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and | |
1120 | 07492f668d2173da7a2bda3707ff0985e0f460b6. | |
1121 | ||
49f4617b PA |
1122 | 2017-04-07 Pedro Alves <palves@redhat.com> |
1123 | ||
1124 | * opncls.c (bfd_get_debug_link_info): Rename to... | |
1125 | (bfd_get_debug_link_info_1): ... this. Change type of second | |
1126 | parameter to void pointer. Adjust. | |
1127 | (bfd_get_debug_link_info): Reimplement on top of | |
1128 | bfd_get_debug_link_info_1. | |
1129 | (separate_debug_file_exists, separate_alt_debug_file_exists): | |
1130 | Change type of second parameter to void pointer. Adjust. | |
1131 | (get_func_type, check_func_type): Change type of second parameter | |
1132 | to void pointer. | |
1133 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to | |
1134 | the callback functions instead of passing the address of a local. | |
1135 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to | |
1136 | find_separate_debug_file. | |
1137 | (get_alt_debug_link_info_shim): Change type of second parameter to | |
1138 | void pointer. Adjust. | |
1139 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to | |
1140 | find_separate_debug_file. | |
1141 | (get_build_id_name, bfd_boolean check_build_id_file): Change type | |
1142 | of second parameter to void pointer. Adjust. | |
1143 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id | |
1144 | pointer local to find_separate_debug_file. | |
1145 | ||
1146 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> | |
1fd6d111 TG |
1147 | |
1148 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak | |
1149 | external symbols with a definition. | |
1150 | (_bfd_coff_gc_mark_extra_sections): Fix typo. | |
1151 | ||
86abf93a AM |
1152 | 2017-04-07 Alan Modra <amodra@gmail.com> |
1153 | ||
1154 | * po/SRC-POTFILES.in: Regenerate. | |
1155 | ||
8dea77f0 AM |
1156 | 2017-04-05 Alan Modra <amodra@gmail.com> |
1157 | ||
1158 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT | |
1159 | reference counting. | |
1160 | ||
477bdd39 JT |
1161 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
1162 | ||
1163 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than | |
1164 | numbers for DataDirectory entry indicies passed to | |
1165 | add_data_entry(). | |
1166 | ||
a91e1603 L |
1167 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
1168 | ||
1169 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for | |
1170 | each GNU_MBIND section and align GNU_MBIND section to page size. | |
1171 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND | |
1172 | segment for each GNU_MBIND section. | |
1173 | (_bfd_elf_init_private_section_data): Copy sh_info from input | |
1174 | for GNU_MBIND section. | |
1175 | ||
b5292032 PD |
1176 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
1177 | ||
1178 | * elfnn-riscv.c (GP_NAME): Delete. | |
1179 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. | |
1180 | (_bfd_riscv_relax_lui): Likewise. | |
1181 | ||
ad32986f NC |
1182 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
1183 | ||
1184 | PR binutils/21342 | |
1185 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer | |
1186 | dereference. | |
1187 | (bfd_elf_final_link): Only initialize the extended symbol index | |
1188 | section if there are extended symbol tables to list. | |
1189 | ||
46bed679 L |
1190 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
1191 | ||
1192 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. | |
1193 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. | |
1194 | * configure.ac (elf): Add elf-properties.lo. | |
1195 | * Makefile.in: Regenerated. | |
1196 | * configure: Likewise. | |
1197 | * elf-bfd.h (elf_property_kind): New. | |
1198 | (elf_property): Likewise. | |
1199 | (elf_property_list): Likewise. | |
1200 | (elf_properties): Likewise. | |
1201 | (_bfd_elf_parse_gnu_properties): Likewise. | |
1202 | (_bfd_elf_get_property): Likewise. | |
1203 | (_bfd_elf_link_setup_gnu_properties): Likewise. | |
1204 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties | |
1205 | and setup_gnu_properties. | |
1206 | (elf_obj_tdata): Add properties. | |
1207 | * elf-properties.c: New file. | |
1208 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. | |
1209 | (elf_i386_merge_gnu_properties): Likewise. | |
1210 | (elf_backend_parse_gnu_properties): Likewise. | |
1211 | (elf_backend_merge_gnu_properties): Likewise. | |
1212 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
1213 | (elf_x86_64_merge_gnu_properties): Likewise. | |
1214 | (elf_backend_parse_gnu_properties): Likewise. | |
1215 | (elf_backend_merge_gnu_properties): Likewise. | |
1216 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. | |
1217 | (elf_backend_parse_gnu_properties): Likewise. | |
1218 | (elf_backend_setup_gnu_properties): Likewise. | |
1219 | (elfNN_bed): Add elf_backend_parse_gnu_properties, | |
1220 | elf_backend_merge_gnu_properties and | |
1221 | elf_backend_setup_gnu_properties. | |
1222 | ||
f96bd6c2 PC |
1223 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
1224 | ||
1225 | * elf32-wasm32.c: Add relocation code, two relocs. | |
1226 | * reloc.c: Add wasm32 relocations. | |
1227 | * libbfd.h: Regenerate. | |
1228 | * bfd-in2.h: Regenerate. | |
1229 | * bfd/po/bfd.pot: Regenerate. | |
1230 | ||
e643cb45 NC |
1231 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
1232 | ||
1233 | PR binutils/18025 | |
1234 | * coff-bfd.h (struct coff_section_data): Add new fields: | |
1235 | saved_bias and bias. | |
1236 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias | |
1237 | computed for PE binaries. | |
1238 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each | |
1239 | missing abbrev. | |
1240 | ||
086554e8 HPN |
1241 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
1242 | ||
1243 | PR ld/16044 | |
1244 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT | |
1245 | to handle a local symbol with a hash-symbol-entry; without PLT. | |
1246 | Add BFD_ASSERT for an incidental case with GOT entry present. | |
1247 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol | |
1248 | isn't forced-or-set local. | |
1249 | ||
a6be0538 PC |
1250 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
1251 | ||
1252 | * wasm-module.c: New file to support WebAssembly modules. | |
1253 | * wasm-module.h: New file to support WebAssembly modules. | |
1254 | * doc/webassembly.texi: Start documenting wasm-module.c. | |
1255 | * config.bfd: Add wasm_vec. | |
1256 | * targets.c: Likewise. | |
1257 | * configure.ac: Likewise. | |
1258 | * Makefile.am: Add entries for wasm-module.c. | |
1259 | * Makefile.in: Regenerate. | |
1260 | * configure: Regenerate. | |
1261 | * po/SRC-POTFILES.in: Regenerate. | |
1262 | ||
79b1d3cb PC |
1263 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
1264 | ||
1265 | * cpu-wasm32.c: New file to support wasm32 architecture. | |
1266 | * elf32-wasm32.c: New file to support wasm32 architecture. | |
1267 | * Makefile.am: Add wasm32 architecture. | |
1268 | * archures.c: Likewise. | |
1269 | * config.bfd: Likewise. | |
1270 | * configure.ac: Likewise. | |
1271 | * targets.c: Likewise. | |
1272 | * Makefile.in: Regenerate. | |
1273 | * bfd-in2.h: Regenerate. | |
1274 | * configure: Regenerate. | |
1275 | * po/SRC-POTFILES.in: Regenerate. | |
1276 | ||
aaed6f5b AM |
1277 | 2017-03-20 Alan Modra <amodra@gmail.com> |
1278 | ||
1279 | PR 21266 | |
1280 | * elf64-ppc.c (compare_symbols): Stabilize sort. | |
1281 | ||
82e66161 AM |
1282 | 2017-03-18 Alan Modra <amodra@gmail.com> |
1283 | ||
1284 | * elf64-ppc.c (struct ppc_link_hash_table): Add | |
1285 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
1286 | (ppc_build_one_stub): Set flags on emitting dynamic | |
1287 | relocation to ifunc. | |
1288 | (ppc64_elf_relocate_section): Likewise. | |
1289 | (ppc64_elf_finish_dynamic_symbol): Likewise. | |
1290 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with | |
1291 | local dynamic relocs to ifuncs. | |
1292 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add | |
1293 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
1294 | (ppc_elf_relocate_section): Set flag on emitting dynamic | |
1295 | relocation to ifuncs. | |
1296 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1297 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local | |
1298 | dynamic relocs to ifuncs. | |
1299 | ||
f955cccf NC |
1300 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
1301 | ||
1302 | PR binutils/21202 | |
1303 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to | |
1304 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. | |
1305 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to | |
1306 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. | |
1307 | * bfd-in2.h: Regenerate. | |
1308 | * libbfd.h: Regenerate. | |
1309 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc | |
1310 | names. | |
1311 | (IS_AARCH64_TLSDESC_RELOC): Likewise. | |
1312 | (elfNN_aarch64_howto_table): Likewise. | |
1313 | (aarch64_tls_transition_without_check): Likewise. | |
1314 | (aarch64_reloc_got_type): Likewise. | |
1315 | (elfNN_aarch64_final_link_relocate): Likewise. | |
1316 | (elfNN_aarch64_tls_relax): Likewise. | |
1317 | (elfNN_aarch64_relocate_section): Likewise. | |
1318 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
1319 | (elfNN_aarch64_check_relocs): Likewise. | |
1320 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
1321 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1322 | ||
4aef7643 AM |
1323 | 2017-03-11 Alan Modra <amodra@gmail.com> |
1324 | ||
1325 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function | |
1326 | parameter is in fact used. Whitespace fixes. | |
1327 | * elf64-ppc.c: Likewise. | |
1328 | ||
f03265d9 ST |
1329 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
1330 | ||
1331 | * rs6000-core.c (CORE_NEW): Simplify macro when | |
1332 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. | |
1333 | ||
b1b07054 AM |
1334 | 2017-03-07 Alan Modra <amodra@gmail.com> |
1335 | ||
1336 | PR 21224 | |
1337 | PR 20519 | |
1338 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing | |
1339 | dyn_relocs check. | |
1340 | ||
2e0ce1c8 AM |
1341 | 2017-03-05 Alan Modra <amodra@gmail.com> |
1342 | ||
1343 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. | |
1344 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. | |
1345 | (next_cie_fde_offset): New function. | |
1346 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. | |
1347 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to | |
1348 | four bytes. Align CIEs to four or eight bytes depending on | |
1349 | per_encoding_aligned8. Align FDEs according to their encoding. | |
1350 | Pad last FDE to output section alignment. | |
1351 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove | |
1352 | assertion. | |
1353 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. | |
1354 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. | |
1355 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. | |
1356 | ||
f98450c6 NC |
1357 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
1358 | ||
1359 | PR ld/21212 | |
1360 | * elf.c (rewrite_elf_program_header): Do not issue a warning for | |
d20928fa | 1361 | empty segments which have a zero filesz, but a non-zero memsz. |
f98450c6 | 1362 | |
673cff9b AM |
1363 | 2017-03-02 Alan Modra <amodra@gmail.com> |
1364 | ||
1365 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. | |
1366 | ||
3de43e7b AM |
1367 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1368 | ||
1369 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. | |
1370 | (ppc64_elf_relocate_section): Likewise. | |
1371 | ||
4ef97a1b AM |
1372 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1373 | ||
1374 | PR 20995 | |
1375 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab | |
1376 | rather than elf32_nios2_hash_table or elf_hash_table. | |
1377 | (create_got_section): Likewise. | |
1378 | (nios2_elf32_finish_dynamic_symbol): Likewise. | |
1379 | (nios2_elf32_adjust_dynamic_symbol): Likewise. | |
1380 | (nios2_elf32_size_dynamic_sections): Likewise. | |
1381 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot | |
1382 | vars. Use htab equivalents directly instead. Don't create | |
1383 | all dynamic sections on needing just the GOT. Use a goto | |
1384 | rather than a fall-through with reloc test. Ensure | |
1385 | htab->dynobj is set when making dynamic sreloc section. | |
1386 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab | |
1387 | equivalent directly instead. Don't segfault on looking for | |
1388 | .dynamic when dynamic sections have not been created. Don't | |
1389 | segfault on .got.plt being discarded. | |
1390 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. | |
1391 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete | |
1392 | fixme and another not so relevant comment. | |
1393 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not | |
1394 | already set, set hash table dynobj on creating .sbss. | |
1395 | ||
7ba71655 AM |
1396 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1397 | ||
1398 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. | |
1399 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. | |
1400 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. | |
1401 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. | |
1402 | (ppc64_elf_relocate_section): Likewise. | |
1403 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. | |
1404 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. | |
1405 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. | |
1406 | * libbfd.h: Regenerate. | |
1407 | * bfd-in2.h: Regenerate. | |
1408 | ||
afbf7e8e AM |
1409 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1410 | ||
1411 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make | |
1412 | dynamic .data.rel.ro read-only. | |
1413 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section | |
1414 | rather than section flags when deciding where copy reloc goes. | |
1415 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
1416 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
1417 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
1418 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. | |
1419 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. | |
1420 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. | |
1421 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. | |
1422 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. | |
1423 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1424 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. | |
1425 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. | |
1426 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. | |
1427 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1428 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
1429 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. | |
1430 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. | |
1431 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
1432 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
1433 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. | |
1434 | ||
0e392101 MR |
1435 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
1436 | ||
1437 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the | |
1438 | `jalr $0, $25' instruction encoding. | |
1439 | ||
bd757ca7 NC |
1440 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
1441 | ||
1442 | PR ld/21180 | |
1443 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid | |
1444 | generating a seg-fault when encountering a symbol that has been | |
1445 | deleted by garbage collection. | |
1446 | ||
034fed0b AM |
1447 | 2017-02-25 Alan Modra <amodra@gmail.com> |
1448 | ||
1449 | * elf32-arc.c (struct dynamic_sections): Delete. | |
1450 | (enum dyn_section_types): Delete. | |
1451 | (dyn_section_names): Delete. | |
1452 | (arc_create_dynamic_sections): Delete. | |
1453 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't | |
1454 | segfault on discarded .rela.plt section. | |
1455 | (elf_arc_size_dynamic_sections): Formatting. Don't call | |
1456 | arc_create_dynamic_sections. Don't allocate memory for sections | |
1457 | handled by the generic linker. Correct code finding relocs in | |
1458 | read-only sections. Set SEC_EXCLUDE on zero size .got, | |
1459 | .got.plt, and .dynbss sections. Do set .interp for pies. | |
1460 | ||
d0f744f9 AW |
1461 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
1462 | ||
1463 | * elfnn-riscv.c (GP_NAME): New macro. | |
1464 | (riscv_global_pointer_value): Use it. | |
1465 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same | |
1466 | output section, consider only that section's alignment. | |
1467 | ||
5d58c733 MR |
1468 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
1469 | ||
1470 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. | |
1471 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. | |
1472 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. | |
1473 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. | |
1474 | ||
c1556ecd MR |
1475 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
1476 | ||
1477 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> | |
1478 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' | |
1479 | or misaligned. | |
1480 | ||
5499c7c7 AM |
1481 | 2017-02-23 Alan Modra <amodra@gmail.com> |
1482 | ||
1483 | PR 20744 | |
1484 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE | |
1485 | 16D relocations. | |
1486 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. | |
1487 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL | |
1488 | relocs. | |
1489 | ||
902e9fc7 MR |
1490 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
1491 | ||
1492 | PR ld/20828 | |
1493 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version | |
1494 | processing ahead of the call to `elf_gc_sweep_symbol'. | |
1495 | ||
758d96d8 NC |
1496 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
1497 | ||
1498 | PR binutils/21193 | |
1499 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly | |
1500 | created section 4-byte alignment. | |
1501 | ||
6528b6eb AM |
1502 | 2017-02-22 Alan Modra <amodra@gmail.com> |
1503 | ||
1504 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault | |
1505 | on .got or .plt output section being discarded by script. | |
1506 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move | |
1507 | vxworks splt temp. | |
1508 | ||
24f1a751 AM |
1509 | 2017-02-21 Alan Modra <amodra@gmail.com> |
1510 | ||
1511 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit | |
1512 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. | |
1513 | ||
64487780 AM |
1514 | 2017-02-20 Alan Modra <amodra@gmail.com> |
1515 | ||
1516 | PR 21181 | |
1517 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero | |
1518 | if DT_RELSZ/DT_RELASZ is zero. | |
1519 | ||
6438d1be NC |
1520 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
1521 | ||
1522 | * compress.c (bfd_get_full_section_contents): Remember to reduce | |
1523 | compressed size by the sizeof the compression header when | |
1524 | decompressing the contents. | |
1525 | ||
4bc26c69 PA |
1526 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1527 | ||
1528 | * srec.c (Chunk): Rename to ... | |
1529 | (_bfd_srec_len): ... this. | |
1530 | (S3Forced): Rename to ... | |
1531 | (_bfd_srec_forceS3): ... this. | |
1532 | * objcopy.c: Adjust all references. | |
1533 | ||
7ec22e0f PA |
1534 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1535 | ||
1536 | * archive.c (bsd_write_armap): Rename to ... | |
1537 | (_bfd_bsd_write_armap): ... this. | |
1538 | (coff_write_armap): Rename to ... | |
1539 | (_bfd_coff_write_armap): ... this. | |
1540 | * libbfd-in.h (bsd_write_armap): Rename to ... | |
1541 | (_bfd_bsd_write_armap): ... this. | |
1542 | (coff_write_armap): Rename to ... | |
1543 | (_bfd_coff_write_armap): ... this. | |
1544 | * aout-target.h, aout-tic30.c: Adjust all users. | |
1545 | * libbfd.h: Regenerate. | |
1546 | ||
8c8402cc PA |
1547 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1548 | ||
1549 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. | |
1550 | (warn_deprecated): Rename to ... | |
1551 | (_bfd_warn_deprecated): ... this. | |
1552 | * libbfd.c (warn_deprecated): Rename to ... | |
1553 | (_bfd_warn_deprecated): ... this. | |
1554 | * bfd-in2.h: Regenerate. | |
1555 | ||
c7c3d11b PA |
1556 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1557 | ||
1558 | * bfdio.c (real_ftell): Rename to ... | |
1559 | (_bfd_real_ftell): ... this. | |
1560 | (real_fseek): Rename to ... | |
1561 | (_bfd_real_fseek): ... this. | |
1562 | (real_fopen): Rename to ... | |
1563 | (_bfd_real_fopen): ... this. | |
1564 | * libbfd-in.h (real_ftell): Rename to ... | |
1565 | (_bfd_real_ftell): ... this. | |
1566 | (real_fseek): Rename to ... | |
1567 | (_bfd_real_fseek): ... this. | |
1568 | (real_fopen): Rename to ... | |
1569 | (_bfd_real_fopen): ... this. | |
1570 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. | |
1571 | * libbfd.h: Regenerate. | |
1572 | ||
4265548c PA |
1573 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1574 | ||
1575 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. | |
1576 | * libbfd.c (read_unsigned_leb128): Rename to ... | |
1577 | (_bfd_read_unsigned_leb128): ... this. | |
1578 | (read_signed_leb128): Rename to ... | |
1579 | (_bfd_read_signed_leb128): ... this. | |
1580 | (safe_read_leb128): Rename to ... | |
1581 | (_bfd_safe_read_leb128): ... this. | |
1582 | * libbfd-in.h (read_unsigned_leb128): Rename to ... | |
1583 | (_bfd_read_unsigned_leb128): ... this. | |
1584 | (read_signed_leb128): Rename to ... | |
1585 | (_bfd_read_signed_leb128): ... this. | |
1586 | (safe_read_leb128): Rename to ... | |
1587 | (_bfd_safe_read_leb128): ... this. | |
1588 | * libbfd.h: Renegerate. | |
1589 | ||
3239a423 AB |
1590 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
1591 | ||
1592 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup | |
1593 | before trying to fine matching file and line information. | |
1594 | ||
90ed9b8b AB |
1595 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
1596 | ||
1597 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. | |
1598 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does | |
1599 | not match current bfd, then reload debug information. Record bfd | |
1600 | we're loading debug info for in the stash. If we have debug | |
1601 | informatin in the cache then perform section placement before | |
1602 | returning. | |
1603 | ||
a8c75b76 AM |
1604 | 2017-02-16 Alan Modra <amodra@gmail.com> |
1605 | ||
1606 | PR 21000 | |
1607 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. | |
1608 | * elfxx-target.h (elf_backend_no_page_alias): Define. | |
1609 | (elfNN_bed): Init new field. | |
1610 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias | |
1611 | ensure PT_LOAD segment starts on a new page. | |
1612 | * elf32-hppa.c (elf_backend_no_page_alias): Define. | |
1613 | ||
247d6c4c AM |
1614 | 2017-02-16 Alan Modra <amodra@gmail.com> |
1615 | ||
1616 | PR 21132 | |
1617 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs | |
1618 | if pic. | |
1619 | ||
90571206 JW |
1620 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
1621 | ||
1622 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. | |
1623 | * bfd-in2.h: Regenerated. | |
1624 | ||
2a568401 L |
1625 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1626 | ||
1627 | PR ld/21168 | |
1628 | * elf32-i386.c (elf_i386_relocate_section): Allow | |
1629 | "lea foo@GOT, %reg" in PIC. | |
1630 | ||
a5def14f L |
1631 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1632 | ||
1633 | PR ld/20244 | |
1634 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC | |
1635 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation | |
1636 | error against local IFUNC symbol without a base register for | |
1637 | PIC. | |
1638 | ||
174d0a74 MR |
1639 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
1640 | ||
1641 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than | |
1642 | `%P: %H:' with `info->callbacks->einfo'. | |
1643 | (ppc_elf_relocate_section): Likewise. | |
1644 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
1645 | (ppc64_elf_edit_toc): Likewise. | |
1646 | (ppc64_elf_relocate_section): Likewise. | |
1647 | ||
e278ae05 AM |
1648 | 2017-02-14 Alan Modra <amodra@gmail.com> |
1649 | ||
1650 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
1651 | --gc-keep-exported, and test versioned field of sym rather than | |
1652 | looking for @ in name. | |
1653 | ||
10ddfe62 PD |
1654 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
1655 | ||
1656 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to | |
1657 | __global_pointer$. | |
1658 | ||
d11135f5 NC |
1659 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
1660 | ||
1661 | PR binutils/21151 | |
1662 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid | |
1663 | unit length field. | |
1664 | ||
cc162427 AW |
1665 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
1666 | ||
1667 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT | |
1668 | entry size if PLT header is written. | |
1669 | ||
3d044c0c SL |
1670 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
1671 | ||
1672 | Fix sparc64 dynamic relocation processing to use the dynamic | |
1673 | symbol count. | |
1674 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' | |
1675 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() | |
1676 | should be used. | |
1677 | ||
1b7e3d2f NC |
1678 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
1679 | ||
1680 | PR 21096 | |
1681 | * coffcode.h (coff_write_object_contents): Enlarge size of | |
1682 | s_name_buf in order to avoid compile time warning about possible | |
1683 | integer truncation. | |
1684 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower | |
1685 | 32-bits of insn value before printing into buffer. | |
1686 | ||
e17b0c35 MR |
1687 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1688 | ||
1689 | * elfxx-mips.c (mips_elf_hash_sort_data): Add | |
1690 | `max_local_dynindx'. | |
1691 | (mips_elf_sort_hash_table): Handle it. | |
1692 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local | |
1693 | symbols bump up `max_local_dynindx' rather than | |
1694 | `max_non_got_dynindx'. | |
1695 | ||
55f8b9d2 MR |
1696 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1697 | ||
1698 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the | |
1699 | `min_got_dynindx', `max_unref_got_dynindx' and | |
1700 | `max_non_got_dynindx' members to the `bfd_size_type' data type. | |
1701 | (mips_elf_sort_hash_table): Adjust accordingly. | |
1702 | ||
0f8c4b60 MR |
1703 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1704 | ||
1705 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout | |
1706 | to access the hash table. | |
1707 | ||
17a80fa8 MR |
1708 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1709 | ||
1710 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on | |
1711 | non-NULL `htab' to the beginning. | |
1712 | ||
8f56d4fd MR |
1713 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1714 | ||
1715 | * elflink.c (elf_gc_sweep): Wrap overlong line. | |
1716 | ||
8b10b0b3 MR |
1717 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
1718 | ||
1719 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... | |
1720 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. | |
1721 | * elfxx-mips.c (mips_elf_link_hash_table): Add | |
1722 | `ignore_branch_isa' member. | |
1723 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch | |
1724 | in branch relocation calculation as an error if | |
1725 | `ignore_branch_isa' has been set. | |
1726 | (_bfd_mips_elf_insn32): Rename to... | |
1727 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' | |
1728 | parameter to `insn32' and add an `ignore_branch_isa' parameter. | |
1729 | Handle the new parameter. | |
1730 | ||
1fbd05e1 HPN |
1731 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
1732 | ||
22d9a0de HPN |
1733 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
1734 | local variable dynobj. | |
1735 | ||
1fbd05e1 HPN |
1736 | PR ld/20995 |
1737 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. | |
1738 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the | |
1739 | executable from read-only sections into sdynrelro. | |
1740 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for | |
1741 | dynamic relocs in sdynrelro. | |
1742 | (elf_backend_want_dynrelro): Define. | |
1743 | ||
4a7324e1 SH |
1744 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1745 | ||
1746 | * config.bfd (*-*-rtemsaout*): Mark as removed. | |
1747 | ||
c75b4ebd SH |
1748 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1749 | ||
1750 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. | |
1751 | (arm-*-rtems*): Move to (arm*-*-eabi*). | |
1752 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). | |
1753 | (m68-*-rtems*): Move to (m68*-*-elf*). | |
1754 | ||
850d84f6 SH |
1755 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1756 | ||
1757 | * config.bfd (*-*-rtemscoff*): Mark as removed. | |
1758 | ||
b531344c MR |
1759 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
1760 | ||
1761 | PR ld/20828 | |
1762 | * elflink.c (bfd_elf_record_link_assignment): Revert last | |
1763 | change and don't ever clear `forced_local'. Set `mark' | |
1764 | unconditionally. | |
1765 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within | |
1766 | file. | |
1767 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... | |
1768 | (bfd_elf_size_dynamic_sections): ... here. | |
1769 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' | |
1770 | and set `mark' instead in `__tls_get_addr_opt' processing. | |
1771 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. | |
1772 | ||
f0158f44 AM |
1773 | 2017-01-24 Alan Modra <amodra@gmail.com> |
1774 | ||
1775 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases | |
1776 | where dynamic relocs are preferable. Allow ifunc too. | |
1777 | (ensure_undefweak_dynamic): New function. | |
1778 | (allocate_dynrelocs): Use it here. Move plt handling last and | |
1779 | don't make symbols dynamic, simplifying loop. Only make undef | |
1780 | weak symbols with GOT entries dynamic. Correct condition | |
1781 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct | |
1782 | comments. Remove goto. | |
1783 | (ppc_elf_relocate_section): Correct test for using dynamic | |
1784 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
1785 | to suit. Set up explicit tls_index entries and implicit GOT | |
1786 | tls_index entries resolvable at link time for | |
1787 | __tls_get_addr_opt. Simplify test to clear mem for prelink. | |
1788 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. | |
1789 | (ensure_undefweak_dynamic): New function. | |
1790 | (allocate_dynrelocs): Use it here. Only make undef weak symbols | |
1791 | with GOT entries dynamic. Remove unnecessary test of | |
1792 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. | |
1793 | (ppc64_elf_relocate_section): Correct test for using dynamic | |
1794 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
1795 | to suit. Set up explicit tls_index entries and implicit GOT | |
1796 | tls_index entries resolvable at link time for __tls_get_addr_opt. | |
1797 | Simplify expression to clear mem for prelink. | |
1798 | ||
2d0ca824 YN |
1799 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
1800 | ||
1801 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. | |
1802 | ||
7f784814 JW |
1803 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
1804 | ||
1805 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. | |
1806 | (elf_backend_hash_symbol): Define. | |
1807 | ||
81ff47b3 MR |
1808 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
1809 | ||
1810 | PR ld/20828 | |
1811 | * elflink.c (bfd_elf_record_link_assignment): Clear any | |
1812 | `forced_local' marking for DSO symbols that are not being | |
1813 | provided. | |
1814 | ||
640d6bfd KLC |
1815 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
1816 | ||
1817 | * elfnn-riscv.c (riscv_elf_object_p): New function. | |
1818 | ||
8361ed4d L |
1819 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
1820 | ||
1821 | PR ld/21038 | |
1822 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
1823 | plt_bnd_eh_frame. | |
1824 | (elf_x86_64_check_relocs): Create .eh_frame section for the | |
1825 | .plt.bnd section. | |
1826 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
1827 | .eh_frame section for the .plt.bnd section. | |
1828 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
1829 | for the .plt.bnd section. | |
1830 | ||
2425a30e NC |
1831 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
1832 | ||
1833 | PR binutils/20876 | |
1834 | * opncls.c (find_separate_debug_file): Add include_dirs | |
1835 | parameter. Only include the directory part of the bfd's filename | |
1836 | in search paths if include_dirs is true. Add a couple of extra | |
1837 | locations for looking for debug files. | |
1838 | ( bfd_follow_gnu_debuglink): Update invocation of | |
1839 | find_separate_debug_file. | |
1840 | (bfd_follow_gnu_debugaltlink): Likewise. | |
1841 | (get_build_id): New function: Finds the build-id of the given bfd. | |
1842 | (get_build_id_name): New function: Computes the name of the | |
1843 | separate debug info file for a bfd, based upon its build-id. | |
1844 | (check_build_id_file): New function: Checks to see if a separate | |
1845 | debug info file exists at the given location, and that its | |
1846 | build-id matches that of the original bfd. | |
1847 | (bfd_follow_build_id_debuglink): New function: Finds a separate | |
1848 | debug info file for a given bfd by using the build-id method. | |
1849 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id | |
1850 | method of locating a separate debug info file before using the | |
1851 | debuglink method. | |
1852 | * bfd-in2.h: Regenerate. | |
1853 | ||
9e659176 L |
1854 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1855 | ||
1856 | PR ld/21038 | |
1857 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. | |
1858 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and | |
1859 | elf_x86_64_eh_frame_plt_got. | |
1860 | (elf_x86_64_size_dynamic_sections): Get unwind info from | |
1861 | elf_x86_64_bnd_arch_bed for the BND PLT. | |
1862 | ||
f2e2d2f5 JS |
1863 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
1864 | ||
1865 | * config.bfd: Add entries for i686-redox and x86_64-redox. | |
1866 | ||
52b232b3 L |
1867 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1868 | ||
1869 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section | |
1870 | to 4 bytes. | |
1871 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
1872 | .eh_frame section to 4 bytes for x32. | |
1873 | (elf_x86_64_check_relocs): Likewise. | |
1874 | ||
fff53dae L |
1875 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1876 | ||
1877 | PR ld/20830 | |
1878 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. | |
1879 | (PLT_GOT_FDE_LENGTH): Likewise. | |
1880 | (elf_i386_plt_layout): Add eh_frame_plt_got and | |
1881 | eh_frame_plt_got_size. | |
1882 | (elf_i386_plt): Updated. | |
1883 | (elf_i386_link_hash_table): Add plt_got_eh_frame. | |
1884 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. | |
1885 | (elf_i386_size_dynamic_sections): Allocate and initialize | |
1886 | .eh_frame section for .plt.got. | |
1887 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for | |
1888 | .plt.got. | |
1889 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and | |
1890 | eh_frame_plt_got_size. | |
1891 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. | |
1892 | (PLT_GOT_FDE_LENGTH): Likewise. | |
1893 | (elf_x86_64_backend_data): Add eh_frame_plt_got and | |
1894 | eh_frame_plt_got_size. | |
1895 | (elf_x86_64_arch_bed): Updated. | |
1896 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and | |
1897 | eh_frame_plt_got_size. | |
1898 | (elf_x86_64_nacl_arch_bed): Likewise. | |
1899 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. | |
1900 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. | |
1901 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
1902 | .eh_frame section for .plt.got. | |
1903 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
1904 | for .plt.got. | |
1905 | ||
f129e49f L |
1906 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1907 | ||
1908 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
1909 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. | |
1910 | ||
cd6581da NC |
1911 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
1912 | ||
1913 | * dwarf2.c (lookup_address_in_function_table): Return early if | |
1914 | there are no functions in the given comp unit, or if the high | |
1915 | address of the last function in the comp unit is less than the | |
1916 | desired address. | |
1917 | ||
98f02962 NC |
1918 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
1919 | ||
1920 | PR binutils/21013 | |
1921 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error | |
1922 | message if there are too many symbols to load. | |
1923 | ||
ae4fda66 JC |
1924 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
1925 | ||
1926 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free | |
1927 | if relocs are cached. | |
1928 | ||
de1010f4 RF |
1929 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
1930 | ||
1931 | PR ld/21017 | |
1932 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry | |
1933 | for R_MICROBLAZE_GOTOFF_64. | |
1934 | ||
09fe2662 NC |
1935 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
1936 | ||
1937 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time | |
1938 | warning about using a possibly uninitialised variable. | |
1939 | ||
595e0a47 AM |
1940 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1941 | ||
1942 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. | |
1943 | (allocate_plt_static, allocate_dynrelocs): Use it. | |
1944 | ||
7bd9df3b AM |
1945 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1946 | ||
1947 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for | |
1948 | .PARISC.unwind section. | |
1949 | ||
5b86074c AM |
1950 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1951 | ||
1952 | PR ld/20989 | |
1953 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. | |
1954 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT | |
1955 | indirect to GOT pointer relative code edit. | |
1956 | ||
2571583a AM |
1957 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1958 | ||
1959 | Update year range in copyright notice of all files. | |
1960 | ||
5c1ad6b5 | 1961 | For older changes see ChangeLog-2016 |
3499769a | 1962 | \f |
5c1ad6b5 | 1963 | Copyright (C) 2017 Free Software Foundation, Inc. |
3499769a AM |
1964 | |
1965 | Copying and distribution of this file, with or without modification, | |
1966 | are permitted in any medium without royalty provided the copyright | |
1967 | notice and this notice are preserved. | |
1968 | ||
1969 | Local Variables: | |
1970 | mode: change-log | |
1971 | left-margin: 8 | |
1972 | fill-column: 74 | |
1973 | version-control: never | |
1974 | End: |