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