Commit | Line | Data |
---|---|---|
aab921ad L |
1 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | * elf64-x86-64.c (elf_x86_64_need_pic): Add an argument for | |
4 | bfd_link_info. Report shared, PIE or PDE object based on | |
5 | bfd_link_info. | |
6 | (elf_x86_64_check_relocs): Update elf_x86_64_need_pic call. | |
7 | (elf_x86_64_relocate_section): Likewise. | |
8 | ||
b1bb697e L |
9 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
10 | ||
11 | * elf32-i386.c (elf_i386_check_relocs): Increment PLT count only | |
12 | for function symbols. | |
13 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
14 | ||
73784fa5 L |
15 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
16 | ||
17 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Set | |
18 | extern_protected_data to FALSE if GNU_PROPERTY_NO_COPY_ON_PROTECTED | |
19 | is set on any input relocatable file. | |
20 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Likewise. | |
21 | ||
46434633 AM |
22 | 2017-08-23 Alan Modra <amodra@gmail.com> |
23 | ||
24 | PR 21988 | |
25 | * elf64-ppc.c (ensure_undef_dynamic): Rename from | |
26 | ensure_undefweak_dynamic. Handle undefined too. | |
27 | * elf32-ppc.c (ensure_undef_dynamic): Likewise. | |
28 | * elf32-hppa.c (ensure_undef_dynamic): Likewise. | |
29 | (allocate_dynrelocs): Discard undefined non-default visibility | |
30 | relocs first. Make undefined syms dynamic. Tidy goto. | |
31 | ||
487b6440 AM |
32 | 2017-08-21 Alan Modra <amodra@gmail.com> |
33 | H.J. Lu <hongjiu.lu@intel.com> | |
34 | ||
35 | PR ld/21964 | |
36 | * elf-bfd.h (SYMBOLIC_BIND): Return TRUE for __start/__stop symbols. | |
37 | * elflink.c (bfd_elf_define_start_stop): Rewrite. | |
38 | ||
284d826d HPN |
39 | 2017-08-21 Hans-Peter Nilsson <hp@bitrange.com> |
40 | ||
41 | PR ld/20125 | |
42 | * elf64-mmix.c (mmix_elf_relax_section): Correct handling of | |
43 | undefined weak symbols. | |
44 | ||
de259397 NC |
45 | 2017-08-18 Nick Clifton <nickc@redhat.com> |
46 | ||
47 | PR binutils/21962 | |
48 | * tekhex.c (getsym): Fix check for source pointer walking off the | |
49 | end of the input buffer. | |
50 | ||
545bc2b3 SN |
51 | 2017-08-17 Szabolcs Nagy <szabolcs.nagy@arm.com> |
52 | ||
53 | PR ld/18808 | |
54 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Skip IFUNC | |
55 | relocations in debug sections, change abort to _bfd_error_handler. | |
56 | ||
0c54f692 NC |
57 | 2017-08-14 Nick Clifton <nickc@redhat.com> |
58 | ||
59 | PR 21957 | |
60 | * elf.c (setup_group): Check for an empty or very small group | |
61 | section. | |
62 | * po/bfd.pot: Regenerate. | |
63 | ||
79a94a2a AM |
64 | 2017-08-14 Alan Modra <amodra@gmail.com> |
65 | ||
66 | PR 21441 | |
67 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't add | |
68 | alignment padding here. | |
69 | * elflink.c (bfd_elf_discard_info): Add .eh_frame padding here | |
70 | in a reverse pass over sections. | |
71 | ||
98c5dfc9 L |
72 | 2017-08-11 H.J. Lu <hongjiu.lu@intel.com> |
73 | ||
74 | PR binutils/21943 | |
75 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Allocate space | |
76 | for @plt suffixes first. | |
77 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
78 | ||
24d3e51b NC |
79 | 2017-08-08 Nick Clifton <nickc@redhat.com> |
80 | ||
81 | PR 21916 | |
82 | * elf-attrs.c (_bfd_elf_parse_attributes): Complain about very | |
83 | small section lengths. | |
84 | * elf.c (_bfd_elf_setup_sections): Skip empty entries in the group | |
85 | table. | |
86 | (elfcore_grok_freebsd_prstatus): Add checks to make sure that | |
87 | there is enough data present in the note. | |
88 | ||
206c9c79 AM |
89 | 2017-08-08 Alan Modra <amodra@gmail.com> |
90 | ||
91 | PR 21017 | |
92 | * elf32-microblaze.c (microblaze_elf_check_relocs): Don't bump | |
93 | got.refcount for GOTOFF relocs, just create .got section. | |
94 | ||
2980ccad L |
95 | 2017-08-07 H.J. Lu <hongjiu.lu@intel.com> |
96 | ||
97 | * elflink.c (elf_link_add_object_symbols): Move common symbol | |
98 | check after bed->common_definition. | |
99 | ||
b3293efa AM |
100 | 2017-08-07 Alan Modra <amodra@gmail.com> |
101 | ||
102 | PR 21910 | |
103 | * elflink.c (bfd_elf_final_link): Don't segfault when sections | |
104 | needed to define various dynamic tags have been discarded. | |
105 | ||
b7a18930 NC |
106 | 2017-08-07 Nick Clifton <nickc@redhat.com> |
107 | ||
108 | PR 21884 | |
109 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): If the dynobj | |
110 | has not been set then use the bfd returned by | |
111 | _bfd_elf_link_setup_gnu_properties. If that is null then search | |
112 | through all the input bfds selecting the first normal, ELF format | |
113 | one. | |
114 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Likewise. | |
115 | ||
1d4af308 L |
116 | 2017-08-06 H.J. Lu <hongjiu.lu@intel.com> |
117 | ||
118 | * elf32-i386.c (elf_i386_link_hash_entry): Change tls_get_addr | |
119 | to 1 bit. | |
120 | (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 0. | |
121 | (elf_i386_check_tls_transition): Check tls_get_addr directly. | |
122 | (elf_i386_convert_load_reloc): Update tls_get_addr check. | |
123 | (elf_i386_link_check_relocs): New function. | |
124 | (bfd_elf32_bfd_link_check_relocs): New. | |
125 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Change tls_get_addr | |
126 | to 1 bit. | |
127 | (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 0. | |
128 | (elf_x86_64_check_tls_transition): Check tls_get_addr directly. | |
129 | (elf_x86_64_convert_load_reloc): Update tls_get_addr check. | |
130 | (elf_x86_64_link_check_relocs): New function. | |
131 | (bfd_elf64_bfd_link_check_relocs): New. | |
132 | (bfd_elf32_bfd_link_check_relocs): Likewise. | |
133 | ||
a4819f54 L |
134 | 2017-08-06 H.J. Lu <hongjiu.lu@intel.com> |
135 | ||
136 | PR ld/21903: | |
137 | * elflink.c (elf_link_add_object_symbols): Treat common symbol | |
138 | as undefined for --no-define-common. | |
139 | ||
55ef6584 AM |
140 | 2017-08-05 Alan Modra <amodra@gmail.com> |
141 | ||
142 | * elf32-hppa.c (elf32_hppa_set_gp): Don't require an | |
143 | hppa_link_hash_table. | |
144 | ||
d84ed528 MF |
145 | 2017-08-02 Max Filippov <jcmvbkbc@gmail.com> |
146 | ||
147 | * xtensa-isa.c (xtensa_isa_init): Don't update lookup table | |
148 | entries for sysregs with negative indices. | |
149 | ||
1ef692ea AK |
150 | 2017-08-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
151 | ||
152 | * elf32-s390.c (elf_s390_finish_dynamic_sections): Skip if it | |
153 | isn't the S/390 specific elf data. | |
154 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise. | |
155 | ||
57593436 KLC |
156 | 2017-07-31 Kuan-Lin Chen <rufus@andestech.com> |
157 | ||
158 | * elfxx-riscv.c (riscv_elf_add_sub_reloc): New function. | |
159 | * (howto_table) [R_RISCV_ADD8]: Use riscv_elf_add_sub_reloc. | |
160 | [R_RISCV_ADD16]: Likewise. | |
161 | [R_RISCV_ADD32]: Likewise. | |
162 | [R_RISCV_ADD64]: Likewise. | |
163 | [R_RISCV_SUB6]: Likewise. | |
164 | [R_RISCV_SUB8]: Likewise. | |
165 | [R_RISCV_SUB16]: Likewise. | |
166 | [R_RISCV_SUB32]: Likewise. | |
167 | [R_RISCV_SUB64]: Likewise. | |
168 | ||
d44c746a AM |
169 | 2017-07-31 Alan Modra <amodra@gmail.com> |
170 | ||
171 | * elf64-ppc.c (ppc64_elf_tls_setup): Warn on --plt-localentry | |
172 | without ld.so checks. | |
173 | ||
8b5f1ed8 AM |
174 | 2017-07-29 Alan Modra <amodra@gmail.com> |
175 | ||
176 | PR 21847 | |
177 | * elf64-ppc.c (struct ppc_link_hash_entry): Add non_zero_localentry. | |
178 | (ppc64_elf_merge_symbol): Set non_zero_localentry. | |
179 | (is_elfv2_localentry0): Test non_zero_localentry. | |
180 | (ppc64_elf_tls_setup): Default to --no-plt-localentry. | |
181 | ||
894dde0b AK |
182 | 2017-07-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
183 | ||
184 | * elf32-s390.c (elf_s390_finish_dynamic_sections): Add NULL | |
185 | pointer check for htab->elf.irelplt. | |
186 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise. | |
187 | ||
8bdf0be1 NC |
188 | 2017-07-27 Nick Clifton <nickc@redhat.com> |
189 | ||
190 | PR 21840 | |
191 | * mach-o.c (bfd_mach_o_read_symtab_strtab): Fail if the symtab | |
192 | size is -1. | |
193 | * nlmcode.h (nlm_swap_auxiliary_headers_in): Replace assertion | |
194 | with error return. | |
195 | * section.c (bfd_make_section_with_flags): Fail if the name or bfd | |
196 | are NULL. | |
197 | * vms-alpha.c (bfd_make_section_with_flags): Correct computation | |
198 | of end pointer. | |
199 | (evax_bfd_print_emh): Check for invalid string lengths. | |
200 | ||
c26bb067 NC |
201 | 2017-07-25 Nick Clifton <nickc@redhat.com> |
202 | ||
203 | * po/fr.po: Updated French translation. | |
204 | ||
cfe7b9bd BG |
205 | 2017-07-25 Benjamin Green <bengreen5mx@gmail.com> |
206 | ||
207 | PR 21824 | |
208 | * elf32-msp430.c (msp430_elf_relax_section): Allow conversion of | |
209 | 16-bit absolute branches into 10-bit pc-relative branches on the | |
210 | MSP430 as well as the MSP430X. | |
211 | ||
d4aaa2a0 AM |
212 | 2017-07-25 Alan Modra <amodra@gmail.com> |
213 | ||
214 | * elf64-ppc.c (struct map_stub): Add tls_get_addr_opt_bctrl. | |
215 | (stub_eh_frame_size): New function. | |
216 | (ppc_size_one_stub): Set group tls_get_addr_opt_bctrl. | |
217 | (group_sections): Init group tls_get_addr_opt_bctrl. | |
218 | (ppc64_elf_size_stubs): Update sizing and initialization of | |
219 | .eh_frame. Iteration over stubs via group list. | |
220 | (ppc64_elf_build_stubs): Iterate over stubs via group list. | |
221 | (ppc64_elf_finish_dynamic_sections): Update finalization of | |
222 | .eh_frame. | |
223 | ||
ca4cf9b9 NC |
224 | 2017-07-24 Nick Clifton <nickc@redhat.com> |
225 | ||
226 | PR 21813 | |
227 | * mach-o.c (bfd_mach_o_canonicalize_relocs): Pass the base address | |
228 | of the relocs to the canonicalize_one_reloc routine. | |
229 | * mach-o.h (struct bfd_mach_o_backend_data): Update the prototype | |
230 | for the _bfd_mach_o_canonicalize_one_reloc field. | |
231 | * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add | |
232 | res_base parameter. Use to check for corrupt pair relocs. | |
233 | * mach-o-aarch64.c (bfd_mach_o_arm64_canonicalize_one_reloc): | |
234 | Likewise. | |
235 | * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): | |
236 | Likewise. | |
237 | * mach-o-x86-64.c (bfd_mach_o_x86_64_canonicalize_one_reloc): | |
238 | Likewise. | |
239 | ||
240 | * vms-alpha.c (_bfd_vms_slurp_eihd): Make sure that there is | |
241 | enough data in the record before attempting to parse it. | |
242 | (_bfd_vms_slurp_eeom): Likewise. | |
243 | ||
244 | (_bfd_vms_slurp_egsd): Check for an invalid section index. | |
245 | (image_set_ptr): Likewise. | |
246 | (alpha_vms_slurp_relocs): Likewise. | |
247 | ||
8a2df5e2 NC |
248 | (alpha_vms_object_p): Check for a truncated record. |
249 | ||
47aeb64c NC |
250 | 2017-07-24 Nick Clifton <nickc@redhat.com> |
251 | ||
252 | PR 21803 | |
253 | * reloc.c (_bfd_unrecognized_reloc): New function. Reports | |
254 | an unrecognized reloc and sets the bfd_error value. | |
255 | * libbfd.h: Regenerate. | |
256 | * elf32-arm.c (elf32_arm_final_link_relocate): Use the new | |
257 | function. | |
258 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
259 | * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. | |
260 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
261 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise. | |
262 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. | |
263 | ||
15a3a14f AM |
264 | 2017-07-23 Alan Modra <amodra@gmail.com> |
265 | ||
266 | * elf64-ppc.c (ppc64_elf_size_stubs): Correct advance to | |
267 | restore of LR. | |
268 | ||
f2e6a843 SN |
269 | 2017-07-19 Szabolcs Nagy <szabolcs.nagy@arm.com> |
270 | ||
271 | PR ld/18841 | |
272 | * elfnn-aarch64.c (elfNN_aarch64_reloc_type_class): Return | |
273 | reloc_class_ifunc for ifunc symbols. | |
274 | ||
909e4e71 NC |
275 | 2017-07-19 Nick Clifton <nickc@redhat.com> |
276 | ||
277 | PR 21787 | |
278 | * archive.c (bfd_generic_archive_p): If the bfd does not have the | |
279 | correct magic bytes at the start, set the error to wrong format | |
280 | and clear the format selector before returning NULL. | |
281 | ||
29866fa1 NC |
282 | 2017-07-19 Nick Clifton <nickc@redhat.com> |
283 | ||
284 | PR 21786 | |
285 | * coff-rs6000.c (_bfd_strntol): New function. | |
286 | (_bfd_strntoll): New function. | |
287 | (GET_VALUE_IN_FIELD): New macro. | |
288 | (EQ_VALUE_IN_FIELD): new macro. | |
289 | (_bfd_xcoff_slurp_armap): Use new macros. | |
290 | (_bfd_xcoff_archive_p): Likewise. | |
291 | (_bfd_xcoff_read_ar_hdr): Likewise. | |
292 | (_bfd_xcoff_openr_next_archived_file): Likewise. | |
293 | (_bfd_xcoff_stat_arch_elt): Likewise. | |
6c4e7b6b NC |
294 | * coff64-rs6000.c (_bfd_strntol): New function. |
295 | (_bfd_strntoll): New function. | |
296 | (GET_VALUE_IN_FIELD): New macro. | |
297 | (xcoff64_slurp_armap): Use new macros. | |
29866fa1 | 298 | |
684d5a10 JEM |
299 | 2017-07-19 Claudiu Zissulescu <claziss@synopsys.com> |
300 | John Eric Martin <John.Martin@emmicro-us.com> | |
301 | ||
302 | * bfd-in2.h: Regenerate. | |
303 | * libbfd.h: Regenerate. | |
304 | * elf32-arc.c (JLI): Define. | |
305 | * reloc.c: Add JLI relocations. | |
306 | ||
de194d85 YC |
307 | 2017-07-18 Nick Clifton <nickc@redhat.com> |
308 | ||
309 | PR 21775 | |
310 | * coff-sh.c: Fix spelling typos. | |
311 | * compress.c: Likewise. | |
312 | * cpu-pdp11.c: Likewise. | |
313 | * ecofflink.c: Likewise. | |
314 | * elf-m10300.c: Likewise. | |
315 | * elf.c: Likewise. | |
316 | * elf32-arm.c: Likewise. | |
317 | * elf32-m68k.c: Likewise. | |
318 | * elf32-nds32.c: Likewise. | |
319 | * elf32-ppc.c: Likewise. | |
320 | * elf32-sh.c: Likewise. | |
321 | * elf32-v850.c: Likewise. | |
322 | * elf64-ppc.c: Likewise. | |
323 | * elf64-x86-64.c: Likewise. | |
324 | * elflink.c: Likewise. | |
325 | * elfnn-aarch64.c: Likewise. | |
326 | * elfxx-mips.c: Likewise. | |
327 | * som.c: Likewise. | |
328 | * sunos.c: Likewise. | |
329 | * vms-alpha.c: Likewise. | |
330 | * xcofflink.c: Likewise. | |
331 | ||
e4e21d9e NC |
332 | 2017-07-18 Nick Clifton <nickc@redhat.com> |
333 | ||
334 | PR binutils/21781 | |
335 | * coffcode.h (handle_COMDAT): Replace abort with an error message | |
336 | and return. | |
337 | ||
8e85f840 L |
338 | 2017-07-17 H.J. Lu <hongjiu.lu@intel.com> |
339 | ||
340 | PR ld/21782 | |
341 | * elf64-x86-64.c (elf_x86_64_relocate_section): Limit PIC check | |
342 | to shared library. | |
343 | ||
dd57c19c L |
344 | 2017-07-17 H.J. Lu <hongjiu.lu@intel.com> |
345 | ||
346 | * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent. | |
347 | ||
676ee2b5 AM |
348 | 2017-07-16 Alan Modra <amodra@gmail.com> |
349 | ||
350 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimize | |
351 | __tls_index GOT entries when using __tls_get_addr_opt stub. | |
352 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
353 | ||
429d795d AM |
354 | 2017-07-12 Alan Modra <amodra@gmail.com> |
355 | ||
356 | * po/es.po: Update from translationproject.org/latest/bfd/. | |
357 | * po/fi.po: Likewise. | |
358 | * po/fr.po: Likewise. | |
359 | * po/id.po: Likewise. | |
360 | * po/ja.po: Likewise. | |
361 | * po/ro.po: Likewise. | |
362 | * po/ru.po: Likewise. | |
363 | * po/sr.po: Likewise. | |
364 | * po/sv.po: Likewise. | |
365 | * po/tr.po: Likewise. | |
366 | * po/uk.po: Likewise. | |
367 | * po/vi.po: Likewise. | |
368 | * po/zh_CN.po: Likewise. | |
369 | * po/hr.po: New file from translationproject.org. | |
370 | * configure.ac (ALL_LINGUAS): Add hr. Sort. | |
371 | * configure: Regenerate. | |
372 | ||
0bae9e9e NC |
373 | 2017-07-12 Nick Clifton <nickc@redhat.com> |
374 | ||
375 | Fix compile time warnings using gcc 7.1.1. | |
376 | * elf32-xtensa.c (elf_xtensa_get_plt_section): Increase length of | |
377 | plt_name buffer. | |
378 | (elf_xtensa_get_gotplt_section): Increase length of got_name | |
379 | buffer. | |
380 | * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add a | |
381 | default return of FALSE. | |
382 | * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): Add a | |
383 | default return of FALSE. | |
384 | ||
d42c267e AM |
385 | 2017-07-12 Alan Modra <amodra@gmail.com> |
386 | ||
387 | * binary.c (binary_set_section_contents): Don't print filepos in | |
388 | error message. | |
389 | (coff_write_object_contents): Cast size_t for error message. | |
390 | (coff_slurp_line_table): Don't use bfd_vma symndx. | |
391 | (coff_slurp_reloc_table): Remove unneeded cast. | |
392 | * dwarf2.c (read_section): Cast bfd_int64_t to long long for | |
393 | error message. | |
394 | (find_abstract_instance_name): Likewise. | |
395 | * elf32-arm.c (arm_type_of_stub): Correct error arg order. | |
396 | (bfd_elf32_arm_stm32l4xx_erratum_scan): Don't cast error arg. | |
397 | (elf32_arm_check_relocs): Make r_symndx an int. | |
398 | * elf32-cris.c (cris_elf_check_relocs): Delete extraneous %s in | |
399 | format string. | |
400 | * elf32-metag.c (elf_metag_relocate_section): Delete extra error | |
401 | message arg. | |
402 | * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Rewrite bogus | |
403 | error message. | |
404 | * elf32-i386.c (elf_i386_check_relocs): Make r_symndx an int. | |
405 | * elf32-s390.c (elf_s390_check_relocs): Likewise. | |
406 | * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise. | |
407 | * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise. | |
408 | * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise. | |
409 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
410 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
411 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Likewise. | |
412 | * elfnn-riscv.c (riscv_elf_check_relocs): Likewise. | |
413 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
414 | * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise. | |
415 | * elf64-mmix.c (_bfd_mmix_after_linker_allocation): Cast size_t args | |
416 | and use %lu for error message. | |
417 | * elflink.c (elf_link_adjust_relocs): Delete extra error message arg. | |
418 | * mmo.c (mmo_scan): Make stab_loc a file_ptr. Cast expression for | |
419 | error message. | |
420 | ||
421 | * elf32-arm.c (elf32_arm_tls_relax): Correct format string and args | |
422 | in error message. | |
423 | (elf32_arm_final_link_relocate): Likewise. | |
424 | * coff-arm.c (bfd_arm_process_before_allocation): Likewise. | |
425 | * coffcode.h (styp_to_sec_flags): Likewise. | |
426 | * cofflink.c (_bfd_coff_write_global_sym): Likewise. | |
427 | * ecoff.c (_bfd_ecoff_slurp_symbol_table): Likewise. | |
428 | * elf32-arc.c (arc_elf_merge_private_bfd_data): Likewise. | |
429 | * elf32-bfin.c (bfinfdpic_check_relocs): Likewise. | |
430 | (elf32_bfin_merge_private_bfd_data): Likewise. | |
431 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
432 | * elf32-frv.c (frv_elf_merge_private_bfd_data): Likewise. | |
433 | * elf32-i370.c (i370_elf_merge_private_bfd_data): Likewise. | |
434 | (i370_elf_relocate_section): Likewise. | |
435 | * elf32-iq2000.c (iq2000_elf_merge_private_bfd_data): Likewise. | |
436 | * elf32-m32c.c (m32c_elf_merge_private_bfd_data): Likewise. | |
437 | * elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Likewise. | |
438 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
439 | * elf32-mep.c (mep_elf_merge_private_bfd_data): Likewise. | |
440 | * elf32-mt.c (mt_elf_merge_private_bfd_data): Likewise. | |
441 | * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise. | |
442 | * elfxx-mips.c (mips_elf_merge_obj_e_flags): Likewise. | |
443 | (_bfd_mips_elf_merge_private_bfd_data): Likewise. | |
444 | * ieee.c (ieee_write_id, read_id): Likewise. | |
445 | * mach-o.c (bfd_mach_o_write_contents): Likewise. | |
446 | (bfd_mach_o_layout_commands, bfd_mach_o_read_section_32): Likewise. | |
447 | (bfd_mach_o_read_section_64, bfd_mach_o_read_symtab_symbol): Likewise. | |
448 | (bfd_mach_o_read_command, bfd_mach_o_header_p): Likewise. | |
449 | * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Likewise. | |
450 | * stabs.c (_bfd_link_section_stabs): Likewise. | |
451 | ||
452 | * coff-arm.c (coff_arm_relocate_section): Use L modifier in error | |
453 | format. | |
454 | * coff-mcore.c (coff_mcore_relocate_section): Likewise. | |
455 | * coff-ppc.c (coff_ppc_relocate_section): Likewise. | |
456 | * coff-rs6000.c (xcoff_reloc_type_toc): Likewise. | |
457 | * coff-sh.c (sh_relax_section): Likewise. | |
458 | (sh_relax_delete_bytes, sh_swap_insns): Likewise. | |
459 | * coff-tic80.c (coff_tic80_relocate_section): Likewise. | |
460 | * coffcode.h (coff_slurp_reloc_table): Likewise. | |
461 | * coffgen.c (_bfd_coff_get_external_symbols): Likewise. | |
462 | (_bfd_coff_read_string_table): Likewise. | |
463 | * cofflink.c (_bfd_coff_generic_relocate_section): Likewise. | |
464 | * compress.c (bfd_get_full_section_contents): Likewise. | |
465 | * dwarf2.c (read_formatted_entries, decode_line_info): Likewise. | |
466 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
467 | * elf.c (bfd_elf_string_from_elf_section): Likewise. | |
468 | * elf32-arc.c (arc_special_overflow_checks): Likewise. | |
469 | * elf32-arm.c (elf32_arm_tls_relax): Likewise. | |
470 | (elf32_arm_final_link_relocate, elf32_arm_relocate_section): Likewise. | |
471 | (elf32_arm_write_section): Likewise. | |
472 | * elf32-bfin.c (bfin_relocate_section): Likewise. | |
473 | (bfinfdpic_relocate_section): Likewise. | |
474 | * elf32-hppa.c (hppa_build_one_stub): Likewise. | |
475 | (final_link_relocate, elf32_hppa_relocate_section): Likewise. | |
476 | * elf32-i386.c (elf_i386_tls_transition): Likewise. | |
477 | (elf_i386_relocate_section): Likewise. | |
478 | * elf32-ip2k.c (ip2k_final_link_relocate): Likewise. | |
479 | * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise. | |
480 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
481 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
482 | * elf32-metag.c (elf_metag_relocate_section): Likewise. | |
483 | * elf32-nds32.c (unrecognized_reloc_msg): Likewise. | |
484 | (nds32_elf_relax_longcall1, nds32_elf_relax_longcall2): Likewise. | |
485 | (nds32_elf_relax_longcall3, nds32_elf_relax_longjump1): Likewise. | |
486 | (nds32_elf_relax_longjump2, nds32_elf_relax_longjump3): Likewise. | |
487 | (nds32_elf_relax_longcall4, nds32_elf_relax_longcall5): Likewise. | |
488 | (nds32_elf_relax_longcall6, nds32_elf_relax_longjump4): Likewise. | |
489 | (nds32_elf_relax_longjump5, nds32_elf_relax_longjump6): Likewise. | |
490 | (nds32_elf_relax_longjump7, nds32_elf_relax_loadstore): Likewise. | |
491 | (nds32_elf_relax_ptr, nds32_elf_ex9_build_hash_table): Likewise. | |
492 | * elf32-nios2.c (nios2_elf32_relocate_section): Likewise. | |
493 | * elf32-rx.c (UNSAFE_FOR_PID): Likewise. | |
494 | * elf32-s390.c (invalid_tls_insn, elf_s390_relocate_section): Likewise. | |
495 | * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise. | |
496 | * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise. | |
497 | * elf32-sh.c (sh_elf_relax_section): Likewise. | |
498 | (sh_elf_relax_delete_bytes, sh_elf_swap_insns): Likewise. | |
499 | (sh_elf_relocate_section): Likewise. | |
500 | * elf32-sh64.c (shmedia_prepare_reloc): Likewise. | |
501 | * elf32-spu.c (spu_elf_relocate_section): Likewise. | |
502 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. | |
503 | * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. | |
504 | * elf32-v850.c (v850_elf_relax_section): Likewise. | |
505 | * elf32-vax.c (elf_vax_check_relocs): Likewise. | |
506 | (elf_vax_relocate_section): Likewise. | |
507 | * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. | |
508 | (extend_ebb_bounds_forward, extend_ebb_bounds_backward): Likewise. | |
509 | (compute_text_actions, compute_ebb_proposed_actions): Likewise. | |
510 | (do_fix_for_relocatable_link): Likewise. | |
511 | * elf64-alpha.c (elf64_alpha_relax_got_load): Likewise. | |
512 | (elf64_alpha_relax_with_lituse): Likewise. | |
513 | * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Likewise. | |
514 | (elf_hppa_final_link_relocate): Likewise. | |
515 | * elf64-ia64-vms.c (elf64_ia64_relax_section): Likewise. | |
516 | (elf64_ia64_choose_gp, elf64_ia64_relocate_section): Likewise. | |
517 | (elf64_vms_link_add_object_symbols): Likewise. | |
518 | * elf64-mmix.c (mmix_elf_perform_relocation): Likewise. | |
519 | (mmix_final_link_relocate): Likewise. | |
520 | * elf64-s390.c (invalid_tls_insn): Likewise. | |
521 | (elf_s390_relocate_section): Likewise. | |
522 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
523 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. | |
524 | (elf_x86_64_relocate_section): Likewise. | |
525 | * elfcode.h (elf_slurp_symbol_table): Likewise. | |
526 | * elfcore.h (elf_core_file_p): Likewise. | |
527 | * elflink.c (elf_link_read_relocs_from_section): Likewise. | |
528 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise. | |
529 | (elfNN_aarch64_relocate_section): Likewise. | |
530 | * elfnn-ia64.c (elfNN_ia64_relax_section): Likewise. | |
531 | (elfNN_ia64_choose_gp, elfNN_ia64_relocate_section): Likewise. | |
532 | * elfnn-riscv.c (riscv_elf_relocate_section): Likewise. | |
533 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
534 | (_bfd_mips_elf_relocate_section): Likewise. | |
535 | (_bfd_mips_elf_finish_dynamic_symbol, mips_finish_exec_plt): Likewise. | |
536 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
537 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. | |
538 | * ieee.c (ieee_slurp_external_symbols): Likewise. | |
539 | * ihex.c (ihex_write_object_content): Likewise. | |
540 | * mach-o.c (bfd_mach_o_build_exec_seg_command): Likewise. | |
541 | * merge.c (_bfd_merged_section_offset): Likewise. | |
542 | * mmo.c (mmo_write_loc_chunk): Likewise. | |
543 | (mmo_write_object_contents): Likewise. | |
544 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Likewise. | |
545 | * stabs.c (_bfd_link_section_stabs): Likewise. | |
546 | * xcofflink.c (xcoff_link_add_symbols, xcoff_find_tc0): Likewise. | |
547 | ||
e3fbc3da AM |
548 | 2017-07-11 Alan Modra <amodra@gmail.com> |
549 | ||
550 | * elf32-ppc.c (ppc_elf_relocate_section): Fix typo. | |
551 | ||
2c4d9cbe AM |
552 | 2017-07-11 Alan Modra <amodra@gmail.com> |
553 | ||
554 | * elf32-ppc.c (ppc_elf_relocate_section): Emit "unexpected | |
555 | instruction" error using _bfd_error_handler, not einfo. | |
556 | ||
adce5b39 NC |
557 | 2017-07-10 Nick Clifton <nickc@redhat.com> |
558 | ||
559 | * coffcode.h (coff_slurp_symbol_table): Do not include an entry | |
560 | for C_AIX_WEAKEXT if it has the same value as C_WEAKEXT. | |
561 | ||
e6f3b9c3 JB |
562 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
563 | ||
564 | * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO. | |
565 | ||
532cc313 AM |
566 | 2017-07-07 Alan Modra <amodra@gmail.com> |
567 | ||
568 | * coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT. | |
569 | ||
1cf9552b AM |
570 | 2017-07-07 Alan Modra <amodra@gmail.com> |
571 | ||
572 | * bfd.c (_doprnt): Replace "L" with "ll" when printing bfd_vma | |
573 | as long long. Move code replacing "ll" with "I64", and simplify. | |
574 | ||
a0b7b105 L |
575 | 2017-07-06 H.J. Lu <hongjiu.lu@intel.com> |
576 | ||
577 | * bfd.c (_doprnt): Convert 'L' to 'l' when setting wide_width | |
578 | to 1. | |
579 | ||
1d827a72 L |
580 | 2017-07-05 H.J. Lu <hongjiu.lu@intel.com> |
581 | ||
582 | * dwarf2.c (line_info_add_include_dir_stub): Replace time with | |
583 | xtime. | |
584 | (line_info_add_file_name): Likewise. | |
585 | (decode_line_info): Likewise. | |
586 | ||
0d702cfe TG |
587 | 2017-07-04 Tristan Gingold <gingold@adacore.com> |
588 | ||
589 | * version.m4: Bump version to 2.29.51 | |
590 | * configure: Regenerate. | |
591 | ||
564e46b7 JW |
592 | 2017-07-04 Jiong Wang <jiong.wang@arm.com> |
593 | ||
594 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Remove the | |
595 | sanity check at the head of this function. | |
596 | ||
0041f7df JK |
597 | 2017-07-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
598 | ||
599 | * dwarf2.c (struct dwarf2_debug): Add fields dwarf_line_str_buffer and | |
600 | dwarf_line_str_size. | |
601 | (struct attr_abbrev): Add field implicit_const. | |
602 | (dwarf_debug_sections): Add .debug_line_str. | |
603 | (enum dwarf_debug_section_enum): Add debug_line_str and debug_max. | |
604 | (dwarf_debug_section_assert): Add static assertion. | |
605 | (read_indirect_line_string): New. | |
606 | (read_abbrevs): Support DW_FORM_implicit_const. | |
607 | (is_str_attr): Support DW_FORM_line_strp. | |
608 | (read_attribute_value): Support DW_FORM_line_strp and | |
609 | DW_FORM_implicit_const. | |
610 | (read_attribute): Support DW_FORM_implicit_const. | |
611 | (line_info_add_include_dir, line_info_add_include_dir_stub): | |
612 | (line_info_add_file_name, read_formatted_entries): New. | |
613 | (decode_line_info, parse_comp_unit): Support DWARF 5. | |
614 | (_bfd_dwarf2_cleanup_debug_info): Free dwarf_line_str_buffer. | |
615 | ||
d8cd8c1f EB |
616 | 2017-07-03 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
617 | ||
618 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove the | |
619 | abort statement that was put for symbols that are not dynamic. | |
620 | ||
15e6ed8c TG |
621 | 2017-07-03 Tristan Gingold <gingold@adacore.com> |
622 | ||
623 | * po/bfd.pot: Regenerate | |
624 | ||
76cfced5 AM |
625 | 2017-07-03 Alan Modra <amodra@gmail.com> |
626 | ||
627 | * bfd.c (_doprnt): Rewrite "ll" and "L" modifiers to "I64" for | |
628 | __MSVCRT__. Support "L" modifier for bfd_vma. Formatting. | |
629 | * elf.c (setup_group): Use "Lx" to print sh_size. | |
630 | (_bfd_elf_setup_sections): Remove unnecessary cast and print | |
631 | unknown section type in hex. | |
632 | (copy_special_section_fields): Style fix. | |
633 | (bfd_section_from_shdr): Correct format for sh_link. Use a | |
634 | common error message for all the variants of unrecognized | |
635 | section types. | |
636 | (assign_file_positions_for_load_sections): Use "Lx" for lma | |
637 | adjust error message. | |
638 | (assign_file_positions_for_non_load_sections): Formatting. | |
639 | (rewrite_elf_program_header): Formatting. Use "Lx" for | |
640 | bfd_vma values in error messages. | |
641 | * elfcode.h (elf_slurp_reloc_table_from_section): Cast | |
642 | ELF_R_SYM value to type expected by format. | |
643 | * elflink.c (elf_link_read_relocs_from_section): Use "Lx" | |
644 | in error messages. | |
645 | (elf_link_add_object_symbols): Use "Lu" for symbol sizes. | |
646 | (elf_link_input_bfd): Use "Lx" for r_info. | |
647 | (bfd_elf_gc_record_vtinherit): Use "Lx" for offset. | |
648 | ||
ce9116fd AM |
649 | 2017-07-03 Alan Modra <amodra@gmail.com> |
650 | ||
651 | * bfd.c (bfd_scan_vma): Don't use long long unless HAVE_LONG_LONG. | |
652 | * coff-rs6000.c (FMT20): Handle hosts with 64-bit long and | |
653 | Microsoft C library variant of long long format specifier. | |
654 | (PRINT20): Cast value to bfd_uint64_t not long long. | |
655 | * coffcode.h (coff_print_aux): Use BFD_VMA_FMT. | |
656 | * coff-x86_64.c (coff_amd64_reloc): Use bfd_uint64_t rather than | |
657 | long long. Don't cast to bfd_vma. | |
658 | * elf32-score.c (score3_bfd_getl48): Likewise. | |
659 | * vms-alpha.c (_bfd_vms_slurp_eisd): Likewise. | |
660 | ||
cd9af601 AM |
661 | 2017-07-03 Alan Modra <amodra@gmail.com> |
662 | ||
663 | * elf.c (_bfd_elf_print_private_bfd_data): Use BFD_VMA_FMT to | |
664 | print d_tag. | |
665 | (bfd_elf_print_symbol): Don't cast symbol->flags. | |
666 | (_bfd_elf_symbol_from_bfd_symbol): Likewise. | |
667 | * elf32-ppc.c (ppc_elf_begin_write_processing): Correct | |
668 | _bfd_error_handler argument order. | |
669 | (ppc_elf_merge_private_bfd_data): Don't cast flags. | |
670 | ||
33c734b2 AM |
671 | 2017-07-03 Alan Modra <amodra@gmail.com> |
672 | ||
673 | * configure.ac: Invoke AC_CHECK_TYPES for long long. Invoke | |
674 | AC_TYPE_LONG_DOUBLE. | |
675 | * configure: Regenerate. | |
676 | * config.in: Regenerate. | |
677 | ||
3df5cd13 AW |
678 | 2017-06-29 Andrew Waterman <andrew@sifive.com> |
679 | ||
680 | * elfnn-riscv.c (riscv_elf_adjust_dynamic_symbol): Fix TLS copy | |
681 | relocs. | |
682 | ||
ec1acaba EB |
683 | 2017-06-29 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
684 | ||
685 | * elfxx-sparc.c (allocate_dynrelocs): Don't make a symbol dynamic | |
686 | unless it is undefined weak. | |
687 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Set the flag | |
688 | relative_reloc to direct non-dynamic symbols to R_SPARC_RELATIVE | |
689 | relocation. | |
690 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): If symbol | |
691 | is not dynamic in PIC, abort. | |
692 | ||
ff07562f JW |
693 | 2017-06-29 Jiong Wang <jiong.wang@arm.com> |
694 | ||
695 | PR ld/21402 | |
696 | * elfnn-aarch64.c (elfNN_aarch64_allocate_dynrelocs): Only make | |
697 | undefined weak symbols into dynamic. | |
698 | (elfNN_aarch64_final_link_relocate): Generate runtime RELATIVE | |
699 | relocation for non-dynamic symbols. | |
700 | (elfNN_aarch64_finish_dynamic_symbol): Add sanity check. | |
701 | ||
2aff25ba JW |
702 | 2017-06-29 Jiong Wang <jiong.wang@arm.com> |
703 | ||
704 | * elfnn-aarch64.c (aarch64_relocation_aginst_gp_p): New function. | |
705 | (elfNN_aarch64_final_link_relocate): Delete duplicated code for | |
706 | BFD_RELOC_AARCH64_LD64_GOTOFF_LO15, BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC, | |
707 | BFD_RELOC_AARCH64_MOVW_GOTOFF_G1. | |
708 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Optimize the | |
709 | support for them. | |
710 | ||
88ab90e8 AA |
711 | 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com> |
712 | ||
713 | * elf-bfd.h (elfcore_write_s390_gs_cb): Add prototype. | |
714 | (elfcore_write_s390_gs_bc): Likewise. | |
715 | * elf.c (elfcore_grok_s390_gs_cb): New function. | |
716 | (elfcore_grok_s390_gs_bc): New function. | |
717 | (elfcore_grok_note): Call them. | |
718 | (elfcore_write_s390_gs_cb): New function. | |
719 | (elfcore_write_s390_gs_bc): New function. | |
720 | (elfcore_write_register_note): Call them. | |
721 | ||
328ce951 L |
722 | 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> |
723 | ||
724 | * libbfd.c (_bfd_generic_get_section_contents): Don't call | |
725 | bfd_get_file_size. Check archive element size. | |
726 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
727 | ||
47fdcf63 L |
728 | 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> |
729 | ||
730 | * bfd-in2.h: Regenerated. | |
731 | * bfdio.c (bfd_get_size): Change return type to ufile_ptr. | |
732 | (bfd_get_file_size): Likewise. | |
733 | ||
38bf472a MR |
734 | 2017-06-28 Maciej W. Rozycki <macro@imgtec.com> |
735 | Matthew Fortune <matthew.fortune@imgtec.com> | |
736 | ||
737 | * archures.c (bfd_mach_mips_interaptiv_mr2): New macro. | |
738 | * cpu-mips.c (I_interaptiv_mr2): New enum value. | |
739 | (arch_info_struct): Add "mips:interaptiv-mr2" entry. | |
740 | * elfxx-mips.c (_bfd_elf_mips_mach) <E_MIPS_MACH_IAMR2>: New | |
741 | case. | |
742 | (mips_set_isa_flags) <bfd_mach_mips_interaptiv_mr2>: Likewise. | |
743 | (bfd_mips_isa_ext) <bfd_mach_mips_interaptiv_mr2>: Likewise. | |
744 | (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise. | |
745 | (mips_mach_extensions): Add `bfd_mach_mipsisa32r3' and | |
746 | `bfd_mach_mips_interaptiv_mr2' entries. | |
747 | * bfd-in2.h: Regenerate. | |
748 | ||
2d68166e NC |
749 | 2017-06-27 Nick Clifton <nickc@redhat.com> |
750 | ||
751 | * tekhex.c (pass_over): Revert accidental conversion of a local | |
752 | array to a static array. | |
753 | ||
68063779 SKS |
754 | 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
755 | ||
756 | PR ld/13402 | |
757 | * elf32-avr.c (elf32_avr_adjust_diff_reloc_value): Adjust | |
758 | reloc addend if necessary. Adjust diff only if | |
759 | shrinked_insn_address < end_address. | |
760 | ||
ea9aafc4 AM |
761 | 2017-06-27 Alan Modra <amodra@gmail.com> |
762 | ||
763 | PR binutils/21665 | |
764 | * libbfd.c (_bfd_generic_get_section_contents): Warning fix. | |
765 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
766 | ||
a6cbf936 KLC |
767 | 2017-06-26 Kuan-Lin Chen <rufus@andestech.com> |
768 | ||
769 | * elfnn-riscv.c (perform_relocation): Support the new | |
770 | R_RISCV_32_PCREL relocation. | |
771 | (riscv_elf_relocate_section): Likewise. | |
772 | * elfxx-riscv.c (howto_table): Likewise. | |
773 | (riscv_reloc_map): Likewise. | |
774 | * bfd-in2.h (BFD_RELOC_RISCV_32_PCREL): New relocation. | |
775 | * libbfd.h: Regenerate. | |
776 | ||
7211ae50 AM |
777 | 2017-06-27 Alan Modra <amodra@gmail.com> |
778 | ||
779 | PR binutils/21665 | |
780 | * libbfd.c (_bfd_generic_get_section_contents): Delete abort. | |
781 | Use unsigned file pointer type, and remove cast. | |
782 | * libbfd.c (_bfd_generic_get_section_contents_in_window): Likewise. | |
783 | Add "count", not "sz". | |
784 | ||
ab27f80c PA |
785 | 2017-06-26 Pedro Alves <palves@redhat.com> |
786 | ||
787 | PR binutils/21665 | |
788 | * libbfd.c (_bfd_generic_get_section_contents): Add "count", not | |
789 | "sz". | |
790 | ||
1f473e3d L |
791 | 2017-06-26 H.J. Lu <hongjiu.lu@intel.com> |
792 | ||
793 | PR binutils/21665 | |
794 | * libbfd.c (_bfd_generic_get_section_contents_in_window): Add | |
795 | a missing line. | |
796 | ||
b417536f MR |
797 | 2017-06-26 Maciej W. Rozycki <macro@imgtec.com> |
798 | ||
799 | * cpu-mips.c (arch_info_struct): Mark the 4010 32-bit. | |
800 | * elfxx-mips.c (mips_set_isa_flags) <bfd_mach_mips4010>: Set | |
801 | E_MIPS_ARCH_2 rather than E_MIPS_ARCH_3 in `e_flags'. | |
802 | (mips_mach_extensions): Mark `bfd_mach_mips4010' as extending | |
803 | `bfd_mach_mips6000' rather than `bfd_mach_mips4000'. | |
804 | ||
0630b49c L |
805 | 2017-06-26 H.J. Lu <hongjiu.lu@intel.com> |
806 | ||
807 | PR binutils/21665 | |
808 | * compress.c (bfd_get_full_section_contents): Don't check the | |
809 | file size here. | |
810 | * libbfd.c (_bfd_generic_get_section_contents): Check for and | |
ea9aafc4 | 811 | reject a section whose size + offset is greater than the size |
0630b49c L |
812 | of the entire file. |
813 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
515a4464 | 814 | |
04e15b4a NC |
815 | 2017-06-26 Nick Clifton <nickc@redhat.com> |
816 | ||
817 | PR binutils/21670 | |
818 | * tekhex.c (getvalue): Check for the source pointer exceeding the | |
819 | end pointer before the first byte is read. | |
820 | ||
cfd14a50 NC |
821 | 2017-06-26 Nick Clifton <nickc@redhat.com> |
822 | ||
823 | PR binutils/21665 | |
ea9aafc4 | 824 | * opncls.c (get_build_id): Check that the section is big enough |
cfd14a50 NC |
825 | to contain the whole note. |
826 | * compress.c (bfd_get_full_section_contents): Check for and reject | |
ea9aafc4 | 827 | a section whose size is greater than the size of the entire file. |
cfd14a50 NC |
828 | * elf32-v850.c (v850_elf_copy_notes): Allow for the ouput to not |
829 | contain a notes section. | |
830 | ||
93ec5e23 AK |
831 | 2017-06-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
832 | ||
833 | * elf64-s390.c (elf_s390_additional_program_headers): Add NULL | |
834 | pointer checks. | |
835 | (elf_s390_modify_segment_map): Likewise. | |
836 | (bfd_elf_s390_set_options): Lisewise. | |
837 | ||
57963c05 AM |
838 | 2017-06-26 Alan Modra <amodra@gmail.com> |
839 | ||
840 | * elflink.c (_bfd_elf_link_create_dynstrtab): Don't make dynobj | |
841 | a --just-syms bfd. | |
842 | (_bfd_elf_size_group_sections): Skip --just-syms bfds. | |
843 | (bfd_elf_size_dynamic_sections): Ignore .note.GNU-stack and | |
844 | .preinit_array on --just-syms bfds. | |
845 | (_bfd_elf_gc_mark_extra_sections): Skip --just-syms bfds. | |
846 | (elf_gc_sweep, bfd_elf_parse_eh_frame_entries): Likewise. | |
847 | (bfd_elf_gc_sections, bfd_elf_discard_info): Likewise. | |
848 | ||
5cc4ca83 ST |
849 | 2017-06-25 Sergei Trofimovich <slyfox@gentoo.org> |
850 | ||
851 | * elf.c (find_link): Bounds check "hint". | |
852 | ||
bff0500d TP |
853 | 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com> |
854 | ||
855 | * elf32-arm.c (using_thumb_only): Update list of architectures in | |
856 | BFD_ASSERT for which the logic is valid. | |
857 | (using_thumb2_bl): Likewise. | |
858 | (using_thumb2): Likewise and return true for ARMv8-R. | |
859 | (arch_has_arm_nop): Likewise. | |
860 | (tag_cpu_arch_combine): New v8r table for ARMv8-R Tag_CPU_arch | |
861 | merging logic. Update commentis for value 15 of v8m_baseline, | |
862 | v8m_mainline and v4t_plus_v6_m arrays. Use v8r array to decide | |
863 | merging of value 15 of Tag_CPU_arch. | |
864 | ||
4aa57d6a JW |
865 | 2017-06-23 Jiong Wang <jiong.wang@arm.com> |
866 | ||
867 | * reloc.c (BFD_RELOC_AARCH64_ADR_GOTPAGE): Rename to | |
868 | BFD_RELOC_AARCH64_ADR_GOT_PAGE | |
869 | * bfd-in2.h: Regenerate. | |
870 | ||
5d8763a3 L |
871 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
872 | ||
873 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Move | |
874 | the error_alignment label forward. Properly align program | |
875 | property note section. | |
876 | ||
e652757b EC |
877 | 2017-06-22 Eric Christopher <echristo@gmail.com> |
878 | ||
879 | * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than | |
880 | abs to fix a truncation warning. | |
881 | ||
84da4cf8 L |
882 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
883 | ||
884 | * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Resolve | |
885 | local undefined weak symbol to 0. | |
886 | * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Likewise. | |
887 | ||
48580982 L |
888 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
889 | ||
890 | * elf32-i386.c (elf_i386_merge_gnu_properties): If info->shstk | |
891 | is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK. | |
892 | (elf_i386_link_setup_gnu_properties): If info->shstk is set, | |
893 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. | |
894 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): If | |
895 | info->shstk is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK. | |
896 | (elf_x86_64_link_setup_gnu_properties): If info->shstk is set, | |
897 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. | |
898 | ||
ee2fdd6f L |
899 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
900 | ||
901 | * elf32-i386.c (elf_i386_lazy_ibt_plt0_entry): New. | |
902 | (elf_i386_lazy_ibt_plt_entry): Likewise. | |
903 | (elf_i386_pic_lazy_ibt_plt0_entry): Likewise. | |
904 | (elf_i386_non_lazy_ibt_plt_entry): Likewise. | |
905 | (elf_i386_pic_non_lazy_ibt_plt_entry): Likewise. | |
906 | (elf_i386_eh_frame_lazy_ibt_plt): Likewise. | |
907 | (elf_i386_lazy_plt_layout): Likewise. | |
908 | (elf_i386_non_lazy_plt_layout): Likewise. | |
909 | (elf_i386_link_hash_entry): Add plt_second. | |
910 | (elf_i386_link_hash_table): Add plt_second and | |
911 | plt_second_eh_frame. | |
912 | (elf_i386_allocate_dynrelocs): Use the second PLT if needed. | |
913 | (elf_i386_size_dynamic_sections): Use .plt.got unwind info for | |
914 | the second PLT. Check the second PLT. | |
915 | (elf_i386_relocate_section): Use the second PLT to resolve | |
916 | PLT reference if needed. | |
917 | (elf_i386_finish_dynamic_symbol): Fill and use the second PLT if | |
918 | needed. | |
919 | (elf_i386_finish_dynamic_sections): Set sh_entsize on the | |
920 | second PLT. Generate unwind info for the second PLT. | |
921 | (elf_i386_plt_type): Add plt_second. | |
922 | (elf_i386_get_synthetic_symtab): Support the second PLT. | |
923 | (elf_i386_parse_gnu_properties): Support | |
924 | GNU_PROPERTY_X86_FEATURE_1_AND. | |
925 | (elf_i386_merge_gnu_properties): Support | |
926 | GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn | |
927 | on GNU_PROPERTY_X86_FEATURE_1_IBT | |
928 | (elf_i386_link_setup_gnu_properties): If info->ibt is set, | |
929 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT | |
930 | for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT | |
931 | is set on all relocatable inputs. | |
932 | * elf64-x86-64.c (elf_x86_64_lazy_ibt_plt_entry): New. | |
933 | (elf_x32_lazy_ibt_plt_entry): Likewise. | |
934 | (elf_x86_64_non_lazy_ibt_plt_entry): Likewise. | |
935 | (elf_x32_non_lazy_ibt_plt_entry): Likewise. | |
936 | (elf_x86_64_eh_frame_lazy_ibt_plt): Likewise. | |
937 | (elf_x32_eh_frame_lazy_ibt_plt): Likewise. | |
938 | (elf_x86_64_lazy_ibt_plt): Likewise. | |
939 | (elf_x32_lazy_ibt_plt): Likewise. | |
940 | (elf_x86_64_non_lazy_ibt_plt): Likewise. | |
941 | (elf_x32_non_lazy_ibt_plt): Likewise. | |
942 | (elf_x86_64_get_synthetic_symtab): Support the second PLT. | |
943 | (elf_x86_64_parse_gnu_properties): Support | |
944 | GNU_PROPERTY_X86_FEATURE_1_AND. | |
945 | (elf_x86_64_merge_gnu_properties): Support | |
946 | GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn | |
947 | on GNU_PROPERTY_X86_FEATURE_1_IBT | |
948 | (elf_x86_64_link_setup_gnu_properties): If info->ibt is set, | |
949 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT | |
950 | for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT | |
951 | is set on all relocatable inputs. | |
952 | ||
d19237d9 NC |
953 | 2017-06-22 Nick Clifton <nickc@redhat.com> |
954 | ||
955 | PR binutils/21649 | |
956 | * som.c (setup_sections): NUL terminate the space_strings buffer. | |
957 | Check that the space.name field does not index beyond the end of | |
958 | the space_strings buffer. | |
959 | ||
6879f5a9 NC |
960 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
961 | ||
962 | PR binutils/21646 | |
963 | * coff-sh.c (sh_reloc): Check for an out of range reloc. | |
964 | ||
7adc0a81 NC |
965 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
966 | ||
967 | PR binutils/21639 | |
968 | * vms-misc.c (_bfd_vms_save_sized_string): Use unsigned int as | |
969 | type of the size parameter. | |
970 | (_bfd_vms_save_counted_string): Add second parameter - the maximum | |
971 | length of the counted string. | |
972 | * vms.h (_bfd_vms_save_sized_string): Update prototype. | |
973 | (_bfd_vms_save_counted_string): Likewise. | |
974 | * vms-alpha.c (_bfd_vms_slurp_eisd): Update calls to | |
975 | _bfd_vms_save_counted_string. | |
976 | (_bfd_vms_slurp_ehdr): Likewise. | |
977 | (_bfd_vms_slurp_egsd): Likewise. | |
978 | (Parse_module): Likewise. | |
979 | ||
6e1816be AM |
980 | 2017-06-21 Alan Modra <amodra@gmail.com> |
981 | ||
982 | * elf64-ppc.c (ppc64_elf_size_stubs): Test for localentry:0 plt | |
983 | calls before tocsave calls. | |
984 | (ppc64_elf_relocate_section): Allow localentry:0 plt calls without | |
985 | following nop. | |
986 | ||
20bd1b6b NC |
987 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
988 | ||
989 | PR binutils/21645 | |
990 | * reloc.c (bfd_generic_get_relocated_section_contents): Fail if | |
991 | bfd_get_full_section_contents returns no contents. | |
992 | ||
3de58d95 NC |
993 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
994 | ||
995 | PR binutils/21638 | |
996 | * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an undersized | |
997 | record. | |
998 | ||
cb06d03a NC |
999 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
1000 | ||
1001 | PR binutils/21637 | |
1002 | * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an empty section | |
1003 | list. | |
1004 | (image_set_ptr): Likewise. | |
1005 | (alpha_vms_fix_sec_rel): Likewise. | |
1006 | (alpha_vms_slurp_relocs): Likewise. | |
1007 | ||
c458d007 NC |
1008 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
1009 | ||
1010 | PR binutils/21633 | |
1011 | * ieee.c (ieee_slurp_sections): Check for a NULL return from | |
1012 | read_id. | |
1013 | (ieee_archive_p): Likewise. | |
1014 | (ieee_object_p): Likewise. | |
1015 | ||
ce497010 NC |
1016 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
1017 | ||
1018 | PR binutils/21640 | |
1019 | * elf.c (setup_group): Zero the group section pointer list after | |
1020 | allocation so that loops can be caught. Check for NULL pointers | |
1021 | when processing a group list. | |
1022 | ||
fd52715c AK |
1023 | 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
1024 | ||
1025 | * elf-s390.h: New file. | |
1026 | * elf64-s390.c (struct elf_s390_link_hash_table): Add params | |
1027 | field. | |
1028 | (elf_s390_additional_program_headers): New function. | |
1029 | (elf_s390_modify_segment_map): New function. | |
1030 | (bfd_elf_s390_set_options): New function. | |
1031 | (elf_backend_additional_program_headers) | |
1032 | (elf_backend_modify_segment_map): Add macro definitions. | |
1033 | ||
abfa390d L |
1034 | 2017-06-19 H.J. Lu <hongjiu.lu@intel.com> |
1035 | ||
1036 | PR ld/21626 | |
1037 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Check | |
1038 | the DYNAMIC bit instead of bfd_count_sections. | |
1039 | ||
bc21b167 NC |
1040 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
1041 | ||
1042 | PR binutils/21618 | |
1043 | * vms-alpha.c (evax_bfd_print_emh): Check for insufficient record | |
1044 | length. | |
1045 | (evax_bfd_print_eeom): Likewise. | |
1046 | (evax_bfd_print_egsd): Check for an overlarge record length. | |
1047 | (evax_bfd_print_etir): Likewise. | |
1048 | ||
acb56a83 NC |
1049 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
1050 | ||
1051 | PR binutils/21612 | |
1052 | * libieee.h (struct common_header_type): Add end_p field. | |
1053 | * ieee.c (this_byte_and_next): Do not advance input_p beyond | |
1054 | end_p. | |
1055 | (read_id): Check for a length that exceeds the remaining bytes in | |
1056 | the input buffer. | |
1057 | (ieee_seek): Initialise end_p. | |
1058 | (ieee_archive_p): Likewise. | |
1059 | (ieee_object_p): Likewise. | |
1060 | ||
72e84f96 NC |
1061 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
1062 | ||
80053e46 NC |
1063 | PR binutils/21611 |
1064 | * vms-alpha.c (_bfd_vms_slurp_eihs): Check for invalid offset | |
1065 | before reading the EIHS structure entries. | |
1066 | ||
1067 | 2017-06-19 Nick Clifton <nickc@redhat.com> | |
1068 | ||
1069 | PR binutils/21615 | |
72e84f96 NC |
1070 | * vms-alpha.c (_bfd_vms_slurp_egsd): Use unsigned int for |
1071 | gsd_size. Check that there are enough bytes remaining to read the | |
1072 | type and size of the next egsd. Check that the size of the egsd | |
1073 | does not exceed the size of the record. | |
1074 | ||
875ffa3e AM |
1075 | 2017-06-19 Alan Modra <amodra@gmail.com> |
1076 | ||
1077 | * config.bfd: Correct targ_underscore for cris. | |
1078 | ||
bdd32e03 AM |
1079 | 2017-06-18 Alan Modra <amodra@gmail.com> |
1080 | ||
1081 | * config.bfd: Correct targ_underscore for epiphany, ip2k, | |
1082 | m32c, mn10200, pru, rl78, rx, crisv32 and v850. | |
1083 | ||
4b48e2f6 NC |
1084 | 2017-06-16 Nick Clifton <nickc@redhat.com> |
1085 | ||
1086 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Do not fail if the | |
1087 | bucketlist is empty because there are no symbols to add to the | |
1088 | list. | |
1089 | ||
7dba9362 AM |
1090 | 2017-06-16 Alan Modra <amodra@gmail.com> |
1091 | ||
1092 | PR ld/20022 | |
1093 | PR ld/21557 | |
1094 | PR ld/21562 | |
1095 | PR ld/21571 | |
1096 | * targets.c (struct bfd_target): Add _bfd_define_start_stop. | |
1097 | (BFD_JUMP_TABLE_LINK): Likewise. | |
1098 | * elf-bfd.h (bfd_elf_define_start_stop): Declare. | |
1099 | * elflink.c (_bfd_elf_gc_mark_rsec): Update comment. | |
1100 | (bfd_elf_define_start_stop): New function. | |
1101 | * linker.c (bfd_generic_define_start_stop): New function. | |
1102 | * coff64-rs6000.c (rs6000_xcoff64_vec, rs6000_xcoff64_aix_vec): Init | |
1103 | new field. | |
1104 | * aout-adobe.c (aout_32_bfd_define_start_stop): Define. | |
1105 | * aout-target.h (MY_bfd_define_start_stop): Define. | |
1106 | * aout-tic30.c (MY_bfd_define_start_stop): Define. | |
1107 | * binary.c (binary_bfd_define_start_stop): Define. | |
1108 | * bout.c (b_out_bfd_define_start_stop): Define. | |
1109 | * coff-alpha.c (_bfd_ecoff_bfd_define_start_stop): Define. | |
1110 | * coff-mips.c (_bfd_ecoff_bfd_define_start_stop): Define. | |
1111 | * coff-rs6000.c (_bfd_xcoff_bfd_define_start_stop): Define. | |
1112 | * coffcode.h (coff_bfd_define_start_stop): Define. | |
1113 | * elfxx-target.h (bfd_elfNN_bfd_define_start_stop): Define. | |
1114 | * i386msdos.c (msdos_bfd_define_start_stop): Define. | |
1115 | * i386os9k.c (os9k_bfd_define_start_stop): Define. | |
1116 | * ieee.c (ieee_bfd_define_start_stop): Define. | |
1117 | * ihex.c (ihex_bfd_define_start_stop): Define. | |
1118 | * libbfd-in.h (_bfd_nolink_bfd_define_start_stop): Define. | |
1119 | * mach-o-target.c (bfd_mach_o_bfd_define_start_stop): Define. | |
1120 | * mmo.c (mmo_bfd_define_start_stop): Define. | |
1121 | * nlm-target.h (nlm_bfd_define_start_stop): Define. | |
1122 | * oasys.c (oasys_bfd_define_start_stop): Define. | |
1123 | * pef.c (bfd_pef_bfd_define_start_stop): Define. | |
1124 | * plugin.c (bfd_plugin_bfd_define_start_stop): Define. | |
1125 | * ppcboot.c (ppcboot_bfd_define_start_stop): Define. | |
1126 | * som.c (som_bfd_define_start_stop): Define. | |
1127 | * srec.c (srec_bfd_define_start_stop): Define. | |
1128 | * tekhex.c (tekhex_bfd_define_start_stop): Define. | |
1129 | * versados.c (versados_bfd_define_start_stop): Define. | |
1130 | * vms-alpha.c (vms_bfd_define_start_stop): Define. | |
1131 | (alpha_vms_bfd_define_start_stop): Define. | |
1132 | * xsym.c (bfd_sym_bfd_define_start_stop): Define. | |
1133 | * bfd-in2.h: Regenerate. | |
1134 | * libbfd.h: Regenerate. | |
1135 | ||
d68f1976 JW |
1136 | 2017-06-16 Jiong Wang <jiong.wang@arm.com> |
1137 | ||
1138 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use | |
1139 | SYMBOL_REFERENCES_LOCAL. | |
1140 | ||
6353d82b JW |
1141 | 2017-06-15 Jiong Wang <jiong.wang@arm.com> |
1142 | ||
1143 | PR ld/21532 | |
1144 | * elfnn-aarch64.c (ELIMINATE_COPY_RELOCS): Set to 1. | |
1145 | (elfNN_aarch64_final_link_relocate): Also propagate relocations to | |
1146 | runtime for if there needs copy relocation elimination. | |
1147 | (need_copy_relocation_p): New function. Return true for symbol with | |
1148 | pc-relative references and if it's against read-only sections. | |
1149 | (elfNN_aarch64_adjust_dynamic_symbol): Use need_copy_relocation_p. | |
1150 | (elfNN_aarch64_check_relocs): Allocate dynrelocs for relocation types | |
1151 | that are related with accessing external objects. | |
1152 | (elfNN_aarch64_gc_sweep_hook): Sync the relocation types with the change | |
1153 | in elfNN_aarch64_check_relocs. | |
1154 | ||
63634bb4 NC |
1155 | 2017-06-15 Nick Clifton <nickc@redhat.com> |
1156 | ||
1157 | PR binutils/21582 | |
1158 | * ieee.c (ieee_object_p): Use a static buffer to avoid compiler | |
1159 | bugs. | |
62b76e4b NC |
1160 | PR binutils/21581 |
1161 | (ieee_archive_p): Likewise. | |
63634bb4 | 1162 | |
76800cba NC |
1163 | 2017-06-15 Nick Clifton <nickc@redhat.com> |
1164 | ||
1165 | PR binutils/21579 | |
1166 | * vms-alpha.c (_bfd_vms_slurp_etir): Extend check of cmd_length. | |
1167 | ||
f7e16c2a MF |
1168 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
1169 | ||
1170 | * elf32-xtensa.c (elf_xtensa_be_plt_entry, | |
1171 | elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays, | |
1172 | keep both windowed and call0 ABI PLT definitions. | |
1173 | (elf_xtensa_create_plt_entry): Use selected ABI to choose upper | |
1174 | elf_xtensa_*_plt_entry endex. | |
1175 | (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size. | |
1176 | ||
f461bbd8 NC |
1177 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
1178 | ||
1179 | PR binutils/21578 | |
1180 | * elf32-sh.c (sh_elf_set_mach_from_flags): Fix check for invalid | |
1181 | flag value. | |
1182 | ||
c53d2e6d NC |
1183 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
1184 | ||
1185 | PR binutils/21589 | |
1186 | * vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the | |
1187 | maximum value for the ascic pointer. Check that name processing | |
1188 | does not read beyond this value. | |
1189 | (_bfd_vms_slurp_etir): Add checks for attempts to read beyond the | |
1190 | end of etir record. | |
1191 | ||
04f963fd NC |
1192 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
1193 | ||
1194 | PR binutils/21591 | |
1195 | * versados.c (versados_mkobject): Zero the allocated tdata structure. | |
1196 | (process_otr): Check for an invalid offset in the otr structure. | |
1197 | ||
319c2dbe SH |
1198 | 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1199 | ||
1200 | * config.bfd (epiphany-*-elf): Accept epiphany-*-*. | |
1201 | ||
cbd0eecf L |
1202 | 2017-06-13 H.J. Lu <hongjiu.lu@intel.com> |
1203 | ||
1204 | PR ld/20022 | |
1205 | PR ld/21557 | |
1206 | PR ld/21562 | |
1207 | PR ld/21571 | |
1208 | * elf-bfd.h (elf_link_hash_entry): Add start_stop. Change the | |
1209 | vtable field to a union. | |
1210 | (_bfd_elf_is_start_stop): Removed. | |
1211 | * elf32-i386.c (elf_i386_convert_load_reloc): Also check for | |
1212 | __start_SECNAME and __stop_SECNAME symbols. | |
1213 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise. | |
1214 | * elflink.c (_bfd_elf_is_start_stop): Removed. | |
1215 | (_bfd_elf_gc_mark_rsec): Check start_stop instead of calling | |
1216 | _bfd_elf_is_start_stop. | |
1217 | (elf_gc_propagate_vtable_entries_used): Skip __start_SECNAME and | |
1218 | __stop_SECNAME symbols. Updated. | |
1219 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
1220 | (bfd_elf_gc_record_vtinherit): Likewise. | |
1221 | (bfd_elf_gc_record_vtentry): Likewise. | |
1222 | ||
10bbbc1d NC |
1223 | 2017-06-13 Nick Clifton <nickc@redhat.com> |
1224 | ||
1225 | PR ld/21524 | |
1226 | * elflink.c (elf_link_adjust_relocs): Generate an error when | |
1227 | encountering a reloc against a symbol removed by garbage | |
1228 | collection. | |
1229 | ||
5c3ce2bc L |
1230 | 2017-06-12 H.J. Lu <hongjiu.lu@intel.com> |
1231 | ||
1232 | * elf-bfd.h (elf_backend_data): Add struct bfd_link_info * | |
1233 | to merge_gnu_properties. | |
1234 | * elf-properties.c (elf_merge_gnu_properties): Add struct | |
1235 | bfd_link_info * and pass it to merge_gnu_properties. | |
1236 | (elf_merge_gnu_property_list): Add struct bfd_link_info * | |
1237 | and pass it to elf_merge_gnu_properties. | |
1238 | (_bfd_elf_link_setup_gnu_properties): Pass info to | |
1239 | elf_merge_gnu_property_list. | |
1240 | * elf32-i386.c (elf_i386_merge_gnu_properties): Add struct | |
1241 | bfd_link_info *. | |
1242 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise. | |
1243 | ||
9b97dfbf AM |
1244 | 2017-06-11 Joe Zbiciak <joe.zbiciak@leftturnonly.info> |
1245 | ||
1246 | PR 21564 | |
1247 | * binary.c (binary_set_section_contents): Scale lma by octets | |
1248 | per byte to set filepos. | |
1249 | ||
e3d1d408 CM |
1250 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1251 | ||
1252 | * elf32-arc.c (elf_arc_check_relocs): Fixed conditions to generate | |
1253 | dynamic sections. | |
1254 | ||
64aa8e03 CM |
1255 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1256 | ||
1257 | * elf32-arc.c (elf_arc_size_dynamic_sections): Changed condition to | |
1258 | require TEXTREL. | |
1259 | ||
a0abe743 CM |
1260 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1261 | ||
1262 | * arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to | |
1263 | patched section contents for TLS IE reloc. | |
1264 | * elf32-arc.c: Remove TCB_SIZE preprocessor macro. | |
1265 | ||
f4e6805f CM |
1266 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1267 | ||
1268 | * elf32-arc.c (elf_arc_relocate_section): Added "call" to | |
1269 | RELOC_FOR_GLOBAL_SYMBOL macro. | |
1270 | ||
cd640291 CM |
1271 | 2018-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1272 | ||
1273 | * elf32-arc.c (elf_arc_relocate_section): Small refactor and condition | |
1274 | changes. | |
1275 | ||
7ef0acc1 VG |
1276 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1277 | ||
1278 | * config/tc-arc.c (md_undefined_symbol): Changed. | |
1279 | * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed. | |
1280 | ||
cc89d0b3 CM |
1281 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1282 | ||
1283 | * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect | |
1284 | symbols. | |
1285 | ||
9d5c718b CM |
1286 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1287 | ||
1288 | * elf32-arc.c (elf_arc_check_relocs): Added condition to disable | |
1289 | warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs. | |
1290 | ||
be9e3704 CM |
1291 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
1292 | ||
1293 | * elf32-arc.c (ADD_RELA): Changed to only work when dynamic | |
1294 | object is created. | |
1295 | ||
4ec192e6 RE |
1296 | 2017-06-08 Richard Earnshaw <rearnsha@arm.com> |
1297 | ||
1298 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove assertion | |
1299 | that the input bfd has Tag_FP_ARCH non-zero if Tag_ABI_HardFP_use | |
1300 | is non-zero. Add clarifying comments. | |
1301 | ||
51fa2693 L |
1302 | 2017-06-08 H.J. Lu <hongjiu.lu@intel.com> |
1303 | ||
1304 | * elf32-i386.c (elf_i386_check_relocs): Set local IFUNC symbol | |
1305 | name. Use local IFUNC symbol name string to report unsupported | |
1306 | non-PIC call to IFUNC function. | |
1307 | (elf_i386_relocate_section): Dump local IFUNC name with minfo | |
1308 | when generating R_386_IRELATIVE relocation. | |
1309 | (elf_i386_finish_dynamic_symbol): Likewise. | |
1310 | * elf_x86_64_check_relocs (elf_x86_64_check_relocs): Set local | |
1311 | IFUNC symbol name. | |
1312 | (elf_x86_64_relocate_section): Dump local IFUNC name with minfo | |
1313 | when generating R_X86_64_IRELATIVE relocation. | |
1314 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
1315 | ||
78e8a2ff JM |
1316 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
1317 | ||
1318 | * elf.c (setup_group): Make sure BFD sections are created for all | |
1319 | group sections in the input file when processing SHF_GROUP | |
1320 | sections. | |
1321 | (bfd_section_from_shdr): Avoid duplicating logic already | |
1322 | implemented in `setup_group'. | |
1323 | ||
9949827b DBR |
1324 | 2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com> |
1325 | ||
1326 | PR binutils/21546 | |
1327 | * peXXigen.c (pe_print_idata): Use the address of the first thunk | |
1328 | if the hint address is zero. | |
1329 | ||
0ee3a6db JC |
1330 | 2017-06-06 James Clarke <jrtc27@jrtc27.com> |
1331 | ||
1332 | PR ld/19579 | |
1333 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check | |
1334 | ELF_COMMON_DEF_P for common symbols. | |
1335 | ||
7bdf4127 AB |
1336 | 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com> |
1337 | ||
1338 | * elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark | |
1339 | SEC_GROUP sections as SEC_EXCLUDE. | |
1340 | (bfd_elf_set_group_contents): Replace use of abort with an assert. | |
1341 | (assign_section_numbers): Use resolve_section_groups flag instead | |
1342 | of relocatable link type. | |
1343 | (_bfd_elf_init_private_section_data): Use resolve_section_groups | |
1344 | flag instead of checking the final_link flag for part of the | |
1345 | checks in here. Fix white space as a result. | |
1346 | * elflink.c (elf_link_input_bfd): Use resolve_section_groups flag | |
1347 | instead of relocatable link type. | |
1348 | (bfd_elf_final_link): Likewise. | |
1349 | ||
458ad2b8 JM |
1350 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
1351 | ||
1352 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused | |
1353 | variable `bed'. | |
1354 | * elf32-score.c (score_elf_final_link_relocate): Likewise. | |
1355 | (s3_bfd_score_elf_check_relocs): Likewise. | |
1356 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
1357 | (score_elf_final_link_relocate): Likewise. | |
1358 | (s7_bfd_score_elf_check_relocs): Likewise. | |
1359 | ||
fbebaf4a JM |
1360 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
1361 | ||
1362 | * elflink.c (init_reloc_cookie_rels): Remove unused variable | |
1363 | `bed'. | |
1364 | ||
056bafd4 MR |
1365 | 2017-06-06 Maciej W. Rozycki <macro@imgtec.com> |
1366 | ||
1367 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count' | |
1368 | from `reloc_count' rather than decrementing it. | |
1369 | * elf.c (bfd_section_from_shdr): Multiply the adjustment to | |
1370 | `reloc_count' by `int_rels_per_ext_rel'. | |
1371 | * elf32-score.c (score_elf_final_link_relocate): Do not multiply | |
1372 | `reloc_count' by `int_rels_per_ext_rel' for last relocation | |
1373 | entry determination. | |
1374 | (s3_bfd_score_elf_check_relocs): Likewise. | |
1375 | * elf32-score7.c (score_elf_final_link_relocate): Likewise. | |
1376 | (s7_bfd_score_elf_relocate_section): Likewise. | |
1377 | (s7_bfd_score_elf_check_relocs): Likewise. | |
1378 | * elf64-mips.c (mips_elf64_get_reloc_upper_bound): Remove | |
1379 | prototype and function. | |
1380 | (mips_elf64_slurp_one_reloc_table): Do not update `reloc_count'. | |
1381 | (mips_elf64_slurp_reloc_table): Assert that `reloc_count' is | |
1382 | triple rather than once the sum of REL and RELA relocation entry | |
1383 | counts. | |
1384 | (bfd_elf64_get_reloc_upper_bound): Remove macro. | |
1385 | * elflink.c (_bfd_elf_link_read_relocs): Do not multiply | |
1386 | `reloc_count' by `int_rels_per_ext_rel' for internal relocation | |
1387 | storage allocation size determination. | |
1388 | (elf_link_input_bfd): Multiply `.ctors' and `.dtors' section's | |
1389 | size by `int_rels_per_ext_rel'. Do not multiply `reloc_count' | |
1390 | by `int_rels_per_ext_rel' for last relocation entry | |
1391 | determination. | |
1392 | (bfd_elf_final_link): Do not multiply `reloc_count' by | |
1393 | `int_rels_per_ext_rel' for internal relocation storage | |
1394 | allocation size determination. | |
1395 | (init_reloc_cookie_rels): Do not multiply `reloc_count' by | |
1396 | `int_rels_per_ext_rel' for last relocation entry determination. | |
1397 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
1398 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
1399 | (_bfd_mips_elf_relocate_section): Likewise. | |
1400 | ||
af54f0eb AM |
1401 | 2017-06-05 Alan Modra <amodra@gmail.com> |
1402 | ||
1403 | PR 21529 | |
1404 | * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE. | |
1405 | ||
6cf3bf88 | 1406 | 2017-06-01 John Baldwin <jhb@FreeBSD.org> |
b5430a3c JB |
1407 | |
1408 | * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to | |
1409 | determine structure sizes. | |
1410 | (elfcore_grok_freebsd_prstatus): Likewise. | |
1411 | ||
f378ab09 AM |
1412 | 2017-06-01 Alan Modra <amodra@gmail.com> |
1413 | ||
1414 | * elf64-ppc.c (struct ppc_link_hash_table): Add has_plt_localentry0. | |
1415 | (ppc64_elf_merge_symbol_attribute): Merge localentry bits from | |
1416 | dynamic objects. | |
1417 | (is_elfv2_localentry0): New function. | |
1418 | (ppc64_elf_tls_setup): Default params->plt_localentry0. | |
1419 | (plt_stub_size): Adjust size for tls_get_addr_opt stub. | |
1420 | (build_tls_get_addr_stub): Use a simpler stub when r2 is not saved. | |
1421 | (ppc64_elf_size_stubs): Leave stub_type as ppc_stub_plt_call for | |
1422 | optimized localentry:0 stubs. | |
1423 | (ppc64_elf_build_stubs): Save r2 in ELFv2 __glink_PLTresolve. | |
1424 | (ppc64_elf_relocate_section): Leave nop unchanged for optimized | |
1425 | localentry:0 stubs. | |
1426 | (ppc64_elf_finish_dynamic_sections): Set PPC64_OPT_LOCALENTRY in | |
1427 | DT_PPC64_OPT. | |
1428 | * elf64-ppc.h (struct ppc64_elf_params): Add plt_localentry0. | |
1429 | ||
8c65b54f CS |
1430 | 2017-05-30 Casey Smith <clegg89@gmail.com> |
1431 | ||
1432 | PR ld/21523 | |
1433 | * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute | |
1434 | value when processing the R_ARM_THM_ALU_PREL_11_0 reloc. | |
1435 | ||
64984c22 AK |
1436 | 2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com |
1437 | ||
1438 | * cpu-arc.c (arc_compatible): New function. | |
1439 | ||
37cd3877 AK |
1440 | 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com> |
1441 | ||
1442 | * cpu-arc.c (arch_info_struct): Remove duplicate ARC600 entry. | |
1443 | ||
8e2f54bc L |
1444 | 2017-05-30 H.J. Lu <hongjiu.lu@intel.com> |
1445 | ||
1446 | PR binutils/21519 | |
1447 | * bfdio.c (bfd_get_file_size): New function. | |
1448 | * bfd-in2.h: Regenerated. | |
1449 | ||
8e7f04f1 | 1450 | 2017-05-23 Dilian Palauzov <git-dpa@aegee.org> |
1451 | ||
1452 | * elf32-arc.c (arc_elf_merge_attributes): Add fall through | |
1453 | comments. | |
1454 | ||
25f94347 L |
1455 | 2017-05-22 H.J. Lu <hongjiu.lu@intel.com> |
1456 | ||
1457 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use | |
1458 | dynobj instead of htab->elf.dynobj. | |
1459 | ||
e5713223 MR |
1460 | 2017-05-19 Maciej W. Rozycki <macro@imgtec.com> |
1461 | ||
1462 | * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype | |
1463 | and function. | |
1464 | (mips_elf64_canonicalize_dynamic_reloc): Likewise. | |
1465 | (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the | |
1466 | actual number of internal relocations retrieved. Adjust | |
1467 | function description. | |
1468 | (bfd_elf64_canonicalize_reloc): Remove macro. | |
1469 | (bfd_elf64_canonicalize_dynamic_reloc): Likewise. | |
1470 | ||
64517994 JM |
1471 | 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com> |
1472 | ||
1473 | * archures.c (bfd_mach_sparc_v9m8): Define. | |
1474 | (bfd_mach_sparc_v8plusm8): Likewise. | |
1475 | (bfd_mach_sparc_v9_p): Adjust to M8. | |
1476 | (bfd_mach_sparc_64bit_p): Likewise. | |
1477 | * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and | |
1478 | bfd_mach_sparc_v8plusm8. | |
1479 | * bfd-in2.h: Regenerated. | |
1480 | * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and | |
1481 | sparc:v8plusm8. | |
1482 | * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle | |
1483 | bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw | |
1484 | capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and | |
1485 | SHA3. | |
1486 | * elf32-sparc.c (elf32_sparc_final_write_processing): Handle | |
1487 | bfd_mach_sparc_v8plusm8. | |
1488 | ||
eb026f09 AM |
1489 | 2017-05-19 Alan Modra <amodra@gmail.com> |
1490 | ||
1491 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep | |
1492 | debug and special sections when no non-note alloc sections in an | |
1493 | object are kept. | |
1494 | ||
535b785f AM |
1495 | 2017-05-18 Alan Modra <amodra@gmail.com> |
1496 | ||
1497 | * arc-got.h: Don't compare boolean values against TRUE or FALSE. | |
1498 | * elf-m10300.c: Likewise. | |
1499 | * elf.c: Likewise. | |
1500 | * elf32-arc.c: Likewise. | |
1501 | * elf32-bfin.c: Likewise. | |
1502 | * elf32-m68k.c: Likewise. | |
1503 | * elf32-nds32.c: Likewise. | |
1504 | * elf32-tilepro.c: Likewise. | |
1505 | * elflink.c: Likewise. | |
1506 | * elfnn-aarch64.c: Likewise. | |
1507 | * elfnn-riscv.c: Likewise. | |
1508 | * elfxx-tilegx.c: Likewise. | |
1509 | * mach-o.c: Likewise. | |
1510 | * peXXigen.c: Likewise. | |
1511 | * vms-alpha.c: Likewise. | |
1512 | * vms-lib.c: Likewise. | |
1513 | ||
b7c871ed L |
1514 | 2017-05-17 H.J. Lu <hongjiu.lu@intel.com> |
1515 | ||
1516 | PR ld/20882 | |
1517 | * elflink.c (elf_gc_mark_debug_section): New function. | |
1518 | (_bfd_elf_gc_mark_extra_sections): Mark any debug sections | |
1519 | referenced by kept debug sections. | |
1520 | ||
bc4e12de AM |
1521 | 2017-05-16 Alan Modra <amodra@gmail.com> |
1522 | ||
1523 | * elf-m10300.c: Rename occurrences of non_ir_ref. | |
1524 | * elf32-arm.c: Likewise. | |
1525 | * elf32-bfin.c: Likewise. | |
1526 | * elf32-cr16.c: Likewise. | |
1527 | * elf32-cris.c: Likewise. | |
1528 | * elf32-d10v.c: Likewise. | |
1529 | * elf32-dlx.c: Likewise. | |
1530 | * elf32-fr30.c: Likewise. | |
1531 | * elf32-frv.c: Likewise. | |
1532 | * elf32-hppa.c: Likewise. | |
1533 | * elf32-i370.c: Likewise. | |
1534 | * elf32-i386.c: Likewise. | |
1535 | * elf32-iq2000.c: Likewise. | |
1536 | * elf32-lm32.c: Likewise. | |
1537 | * elf32-m32c.c: Likewise. | |
1538 | * elf32-m32r.c: Likewise. | |
1539 | * elf32-m68hc1x.c: Likewise. | |
1540 | * elf32-m68k.c: Likewise. | |
1541 | * elf32-mcore.c: Likewise. | |
1542 | * elf32-metag.c: Likewise. | |
1543 | * elf32-microblaze.c: Likewise. | |
1544 | * elf32-moxie.c: Likewise. | |
1545 | * elf32-msp430.c: Likewise. | |
1546 | * elf32-mt.c: Likewise. | |
1547 | * elf32-nios2.c: Likewise. | |
1548 | * elf32-or1k.c: Likewise. | |
1549 | * elf32-ppc.c: Likewise. | |
1550 | * elf32-rl78.c: Likewise. | |
1551 | * elf32-s390.c: Likewise. | |
1552 | * elf32-score.c: Likewise. | |
1553 | * elf32-score7.c: Likewise. | |
1554 | * elf32-sh.c: Likewise. | |
1555 | * elf32-tic6x.c: Likewise. | |
1556 | * elf32-tilepro.c: Likewise. | |
1557 | * elf32-v850.c: Likewise. | |
1558 | * elf32-vax.c: Likewise. | |
1559 | * elf32-xstormy16.c: Likewise. | |
1560 | * elf32-xtensa.c: Likewise. | |
1561 | * elf64-alpha.c: Likewise. | |
1562 | * elf64-hppa.c: Likewise. | |
1563 | * elf64-ia64-vms.c: Likewise. | |
1564 | * elf64-mmix.c: Likewise. | |
1565 | * elf64-ppc.c: Likewise. | |
1566 | * elf64-s390.c: Likewise. | |
1567 | * elf64-sh64.c: Likewise. | |
1568 | * elf64-x86-64.c: Likewise. | |
1569 | * elflink.c: Likewise. | |
1570 | * elfnn-aarch64.c: Likewise. | |
1571 | * elfnn-ia64.c: Likewise. | |
1572 | * elfnn-riscv.c: Likewise. | |
1573 | * elfxx-mips.c: Likewise. | |
1574 | * elfxx-sparc.c: Likewise. | |
1575 | * elfxx-tilegx.c: Likewise. | |
1576 | * linker.c: Likewise. | |
1577 | ||
4070765b AM |
1578 | 2017-05-16 Alan Modra <amodra@gmail.com> |
1579 | ||
1580 | * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic. | |
1581 | * elflink.c (elf_link_add_object_symbols): Update to use | |
1582 | non_ir_ref_dynamic. | |
1583 | (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to | |
1584 | non_ir_ref. | |
1585 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. | |
1586 | ||
25499ac7 MR |
1587 | 2017-05-15 Maciej W. Rozycki <macro@imgtec.com> |
1588 | ||
1589 | * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE. | |
1590 | ||
73caa85d L |
1591 | 2017-05-12 H.J. Lu <hongjiu.lu@intel.com> |
1592 | ||
1593 | * elf32-i386.c (elf_i386_parse_gnu_properties): Merge | |
1594 | GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED | |
1595 | properties. | |
1596 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
1597 | ||
f2c29a16 L |
1598 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
1599 | ||
1600 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd | |
1601 | to plt_second. | |
1602 | (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame | |
1603 | to plt_second/plt_second_eh_frame. | |
1604 | (elf_x86_64_link_hash_newfunc): Updated. | |
1605 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
1606 | (elf_x86_64_size_dynamic_sections): Likewise. | |
1607 | (elf_x86_64_relocate_section): Likewise. | |
1608 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
1609 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
1610 | (elf_x86_64_plt_type): Rename plt_bnd to plt_second. | |
1611 | (elf_x86_64_get_synthetic_symtab): Updated. Also scan the | |
1612 | .plt.sec section. | |
1613 | (elf_backend_setup_gnu_properties): Updated. Create the | |
1614 | .plt.sec section instead of the .plt.sec section. | |
1615 | ||
dc2be3d2 L |
1616 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
1617 | ||
1618 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert | |
1619 | commit 25070364b0ce33eed46aa5d78ebebbec6accec7e. | |
1620 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse. | |
1621 | ||
db84b98a JM |
1622 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
1623 | ||
1624 | * elf64-sparc.c (elf64_sparc_set_reloc): New function. | |
1625 | (bfd_elf64_set_reloc): Define. | |
1626 | (elf64_sparc_write_relocs): Use `canon_reloc_count'. | |
1627 | ||
23186865 JM |
1628 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
1629 | ||
1630 | * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc. | |
1631 | (struct bfd_target): New field _bfd_set_reloc. | |
1632 | * bfd.c (bfd_set_reloc): Call backend _set_bfd. | |
1633 | * reloc.c (_bfd_generic_set_reloc): New function. | |
1634 | * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc. | |
1635 | * nlm-target.h (nlm_set_reloc): Likewise. | |
1636 | * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise. | |
1637 | * aout-tic30.c (MY_set_reloc): Likewise. | |
1638 | * aout-target.h (MY_set_reloc): Likewise. | |
1639 | * elfxx-target.h (bfd_elfNN_set_reloc): Likewise. | |
1640 | * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise. | |
1641 | * mach-o-target.c (bfd_mach_o_set_reloc): Likewise. | |
1642 | * vms-alpha.c (alpha_vms_set_reloc): Likewise. | |
1643 | * aout-adobe.c (aout_32_set_reloc): Likewise. | |
1644 | * bout.c (b_out_set_reloc): Likewise. | |
1645 | * coff-mips.c (_bfd_ecoff_set_reloc): Likewise. | |
1646 | * i386os9k.c (aout_32_set_reloc): Likewise. | |
1647 | * ieee.c (ieee_set_reloc): Likewise. | |
1648 | * oasys.c (oasys_set_reloc): Likewise. | |
1649 | * som.c (som_set_reloc): Likewise. | |
1650 | * versados.c (versados_set_reloc): Likewise. | |
1651 | * coff64-rs6000.c (rs6000_xcoff64_vec): Add | |
1652 | _bfd_generic_set_reloc. | |
1653 | (rs6000_xcoff64_aix_vec): LIkewise. | |
1654 | * libbfd.c (_bfd_norelocs_set_reloc): New function. | |
1655 | * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc. | |
1656 | * i386msdos.c (msdos_set_reloc): Define to | |
1657 | _bfd_norelocs_set_reloc. | |
1658 | * elfcode.h (elf_set_reloc): Define. | |
1659 | * bfd-in2.h: Regenerated. | |
1660 | ||
aab82f4c L |
1661 | 2017-05-10 H.J. Lu <hongjiu.lu@intel.com> |
1662 | ||
1663 | PR ld/21481 | |
1664 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd | |
1665 | for IFUNC function address. | |
1666 | ||
53a346d8 CZ |
1667 | 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com> |
1668 | ||
1669 | * elf32-arc.c (FEATURE_LIST_NAME): Define. | |
1670 | (CONFLICT_LIST): Likewise. | |
1671 | (opcode/arc-attrs.h): Include. | |
1672 | (arc_elf_print_private_bfd_data): Print OSABI v4 flag. | |
1673 | (arc_extract_features): New file. | |
1674 | (arc_stralloc): Likewise. | |
1675 | (arc_elf_merge_attributes): Likewise. | |
1676 | (arc_elf_merge_private_bfd_data): Use object attributes. | |
1677 | (bfd_arc_get_mach_from_attributes): New function. | |
1678 | (arc_elf_object_p): Use object attributes. | |
1679 | (arc_elf_final_write_processing): Likewise. | |
1680 | (elf32_arc_obj_attrs_arg_type): New function. | |
1681 | (elf32_arc_obj_attrs_handle_unknown): Likewise. | |
1682 | (elf32_arc_section_from_shdr): Likewise. | |
1683 | (elf_backend_obj_attrs_vendor): Define. | |
1684 | (elf_backend_obj_attrs_section): Likewise. | |
1685 | (elf_backend_obj_attrs_arg_type): Likewise. | |
1686 | (elf_backend_obj_attrs_section_type): Likewise. | |
1687 | (elf_backend_obj_attrs_handle_unknown): Likewise. | |
1688 | (elf_backend_section_from_shdr): Likewise. | |
1689 | ||
e645cf40 AG |
1690 | 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za> |
1691 | ||
1692 | PR ld/21458 | |
1693 | * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit | |
1694 | of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation | |
1695 | and the destination is a Thumb symbol. | |
1696 | ||
dd9e66ee L |
1697 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
1698 | ||
1699 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing | |
1700 | initializer to silence GCC 4.2. | |
1701 | * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
1702 | ||
38b12349 L |
1703 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
1704 | ||
1705 | * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ... | |
1706 | (LAZY_PLT_ENTRY_SIZE): This. | |
1707 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
1708 | (elf_x86_64_plt0_entry): Renamed to ... | |
1709 | (elf_x86_64_lazy_plt0_entry): This. | |
1710 | (elf_x86_64_plt_entry): Renamed to ... | |
1711 | (elf_x86_64_lazy_plt_entry): This. | |
1712 | (elf_x86_64_bnd_plt0_entry): Renamed to ... | |
1713 | (elf_x86_64_lazy_bnd_plt0_entry): This. | |
1714 | (elf_x86_64_legacy_plt_entry): Removed. | |
1715 | (elf_x86_64_bnd_plt_entry): Renamed to ... | |
1716 | (elf_x86_64_lazy_bnd_plt_entry): This. | |
1717 | (elf_x86_64_legacy_plt2_entry): Renamed to ... | |
1718 | (elf_x86_64_non_lazy_plt_entry): This. | |
1719 | (elf_x86_64_bnd_plt2_entry): Renamed to ... | |
1720 | (elf_x86_64_non_lazy_bnd_plt_entry): This. | |
1721 | (elf_x86_64_eh_frame_plt): Renamed to ... | |
1722 | (elf_x86_64_eh_frame_lazy_plt): This. | |
1723 | (elf_x86_64_eh_frame_bnd_plt): Renamed to ... | |
1724 | (elf_x86_64_eh_frame_lazy_bnd_plt): This. | |
1725 | (elf_x86_64_eh_frame_plt_got): Renamed to ... | |
1726 | (elf_x86_64_eh_frame_non_lazy_plt): This. | |
1727 | (elf_x86_64_lazy_plt_layout): New. | |
1728 | (elf_x86_64_non_lazy_plt_layout): Likewise. | |
1729 | (elf_x86_64_plt_layout): Likewise. | |
1730 | (elf_x86_64_backend_data): Remove PLT layout information. Add | |
1731 | os for target system. | |
1732 | (GET_PLT_ENTRY_SIZE): Removed. | |
1733 | (elf_x86_64_lazy_plt): New. | |
1734 | (elf_x86_64_non_lazy_plt): Likewise. | |
1735 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
1736 | (elf_x86_64_non_lazy_bnd_plt): Likewise. | |
1737 | (elf_x86-64_arch_bed): Updated. | |
1738 | (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
1739 | (elf_x86_64_create_dynamic_sections): Removed. | |
1740 | (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call | |
1741 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
1742 | (elf_x86-64_adjust_dynamic_symbol): Updated. | |
1743 | (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
1744 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
1745 | size for PLT0 if there is no PLT0. Get plt_entry_size from | |
1746 | non_lazy_plt for non-lazy PLT entries. | |
1747 | (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size | |
1748 | from non_lazy_plt for non-lazy PLT entries. | |
1749 | (elf_x86-64_relocate_section): Updated. Properly get PLT index | |
1750 | if there is no PLT0. | |
1751 | (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot | |
1752 | in the PLT entry with generic PLT layout. Fill the non-lazy PLT | |
1753 | entries with non-lazy PLT layout. Don't fill the second and third | |
1754 | slots in the PLT entry if there is no PLT0. | |
1755 | (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0 | |
1756 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
1757 | (compare_relocs): New. | |
1758 | (elf_x86_64_plt_type): Likewise. | |
1759 | (elf_x86_64_plt): Likewise. | |
1760 | (elf_x86_64_nacl_plt): New. Forward declaration. | |
1761 | (elf_x86_64_get_plt_sym_val): Removed. | |
1762 | (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections | |
1763 | against all dynamic relocations. | |
1764 | (elf_x86_64_link_setup_gnu_properties): New function. | |
1765 | (elf_backend_create_dynamic_sections): Updated. | |
1766 | (elf_backend_setup_gnu_properties): New. | |
1767 | (elf_x86_64_nacl_plt): New. | |
1768 | (elf_x86_64_nacl_arch_bed): Updated. | |
1769 | ||
f604c2a2 L |
1770 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
1771 | ||
1772 | * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ... | |
1773 | (LAZY_PLT_ENTRY_SIZE): This. | |
1774 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
1775 | (elf_i386_plt0_entry): Renamed to ... | |
1776 | (elf_i386_lazy_plt0_entry): This. | |
1777 | (elf_i386_plt_entry): Renamed to ... | |
1778 | (elf_i386_lazy_plt_entry): This. | |
1779 | (elf_i386_pic_plt0_entry): Renamed to ... | |
1780 | (elf_i386_pic_lazy_plt0_entry): This. | |
1781 | (elf_i386_pic_plt_entry): Renamed to ... | |
1782 | (elf_i386_pic_lazy_plt_entry): This. | |
1783 | (elf_i386_got_plt_entry): Renamed to ... | |
1784 | (elf_i386_non_lazy_plt_entry): This. | |
1785 | (elf_i386_pic_got_plt_entry): Renamed to ... | |
1786 | (elf_i386_pic_non_lazy_plt_entry): This. | |
1787 | (elf_i386_eh_frame_plt): Renamed to ... | |
1788 | (elf_i386_eh_frame_lazy_plt): This. | |
1789 | (elf_i386_eh_frame_plt_got): Renamed to ... | |
1790 | (elf_i386_eh_frame_non_lazy_plt): This. | |
1791 | (elf_i386_plt_layout): Renamed to ... | |
1792 | (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and | |
1793 | eh_frame_plt_got_size. | |
1794 | (elf_i386_non_lazy_plt_layout): New. | |
1795 | (elf_i386_plt_layout): Likewise. | |
1796 | (elf_i386_non_lazy_plt): Likewise. | |
1797 | (GET_PLT_ENTRY_SIZE): Removed. | |
1798 | (elf_i386_plt): Renamed to ... | |
1799 | (elf_i386_lazy_plt): This. | |
1800 | (elf_i386_backend_data): Remove plt. Rename is_vxworks to os. | |
1801 | (elf_i386_arch_bed): Updated. | |
1802 | (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
1803 | (elf_i386_create_dynamic_sections): Removed. | |
1804 | (elf_i386_check_relocs): Don't check elf.dynobj. Don't call | |
1805 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
1806 | (elf_i386_adjust_dynamic_symbol): Updated. | |
1807 | (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
1808 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
1809 | size for PLT0 if there is no PLT0. | |
1810 | (elf_i386_size_dynamic_sections): Updated. Check whether GOT | |
1811 | output section is discarded only if GOT isn't empty. | |
1812 | (elf_i386_relocate_section): Updated. Properly get PLT index | |
1813 | if there is no PLT0. | |
1814 | (elf_i386_finish_dynamic_symbol): Updated. Don't fill the | |
1815 | second and third slots in the PLT entry if there is no PLT0. | |
1816 | (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0 | |
1817 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
1818 | (elf_i386_nacl_plt): Forward declaration. | |
1819 | (elf_i386_get_plt_sym_val): Removed. | |
1820 | (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections | |
1821 | against all dynamic relocations. | |
1822 | (elf_i386_link_setup_gnu_properties): New function. | |
1823 | (elf_backend_create_dynamic_sections): Updated. | |
1824 | (elf_backend_setup_gnu_properties): New. | |
1825 | (elf_i386_nacl_plt): Updated. | |
1826 | (elf_i386_nacl_arch_bed): Likewise. | |
1827 | (elf_i386_vxworks_arch_bed): Likewise. | |
1828 | ||
046734ff TP |
1829 | 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1830 | ||
1831 | * elflink.c (elf_output_implib): Remove executable flag from import | |
1832 | library bfd. | |
1833 | * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import | |
1834 | library is a relocatable object file. | |
1835 | ||
b660e9eb SKS |
1836 | 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
1837 | ||
1838 | PR ld/21404 | |
1839 | * elf32-avr.c (avr_should_move_sym): New function. | |
1840 | (avr_should_reduce_sym_size): Likewise. | |
1841 | (avr_should_increase_sym_size): Likewise. | |
1842 | (elf32_avr_relax_delete_bytes): Adjust symbol values | |
1843 | and sizes by calling new functions. | |
1844 | ||
763a5fa4 PD |
1845 | 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com> |
1846 | ||
1847 | * config.bfd (riscv32-*): Enable rv64. | |
1848 | ||
73ec947d AM |
1849 | 2017-05-02 Alan Modra <amodra@gmail.com> |
1850 | ||
1851 | PR 21384 | |
1852 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf | |
1853 | rather than h->root.type == bfd_link_hash_new. | |
1854 | (bfd_elf_record_link_assignment): Similarly, call | |
1855 | bfd_elf_link_mark_dynamic_symbol when h->non_elf. | |
1856 | ||
a941291c AM |
1857 | 2017-04-29 Alan Modra <amodra@gmail.com> |
1858 | ||
1859 | PR 21432 | |
1860 | * reloc.c (reloc_offset_in_range): New function. | |
1861 | (bfd_perform_relocation, bfd_install_relocation): Use it. | |
1862 | (_bfd_final_link_relocate): Likewise. | |
1863 | ||
750eaa47 L |
1864 | 2017-04-28 H.J. Lu <hongjiu.lu@intel.com> |
1865 | ||
1866 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got | |
1867 | before using .plt.got. | |
1868 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
1869 | ||
5b66fac4 L |
1870 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1871 | ||
1872 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "=" | |
1873 | instead of "+=" to update 0. | |
1874 | ||
de9a3c42 L |
1875 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1876 | ||
1877 | * elf32-i386.c (elf_i386_create_dynamic_sections): Create the | |
1878 | .plt.got section here. | |
1879 | (elf_i386_check_relocs): Don't create the .plt.got section. | |
1880 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create | |
1881 | the .plt.got and .plt.bnd sections here. | |
1882 | (elf_x86_64_check_relocs): Don't create the .plt.got nor | |
1883 | .plt.bnd sections. | |
1884 | ||
da3d25af L |
1885 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1886 | ||
1887 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove | |
1888 | has_bnd_reloc. | |
1889 | (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc. | |
1890 | (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc. | |
1891 | (elf_x86_64_check_relocs): Don't set has_bnd_reloc. | |
1892 | (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of | |
1893 | has_bnd_reloc. | |
1894 | ||
fba37edd L |
1895 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1896 | ||
1897 | * elf-bfd.h (elf_backend_data): Change setup_gnu_properties | |
1898 | to return bfd *. | |
1899 | (_bfd_elf_link_setup_gnu_properties): Return bfd *. | |
1900 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return | |
1901 | the first relocatable ELF input with GNU properties. | |
1902 | ||
1f78f649 L |
1903 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1904 | ||
1905 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify | |
1906 | VxWorks for non-PIC. | |
1907 | ||
76c20d54 AM |
1908 | 2017-04-27 Alan Modra <amodra@gmail.com> |
1909 | ||
1910 | * elf-bfd.h (struct elf_backend_data): Make asection param of | |
1911 | elf_backend_eh_frame_address_size const. | |
1912 | (_bfd_elf_eh_frame_address_size): Likewise. | |
1913 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise. | |
1914 | * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise. | |
1915 | * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
1916 | * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
1917 | * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise. | |
1918 | (next_cie_fde_offset): Constify params. | |
1919 | (offset_adjust, adjust_eh_frame_local_symbols): Likewise. | |
1920 | ||
d7153c4a AM |
1921 | 2017-04-27 Alan Modra <amodra@gmail.com> |
1922 | ||
1923 | * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len. | |
1924 | (_bfd_elf_adjust_eh_frame_global_symbol): Declare. | |
1925 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and | |
1926 | aug_data_len. | |
1927 | (offset_adjust): New function. | |
1928 | (_bfd_elf_adjust_eh_frame_global_symbol): Likewise. | |
1929 | (adjust_eh_frame_local_symbols): Likewise. | |
1930 | (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols | |
1931 | after changing anything. Return true if anything changed. | |
1932 | * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call | |
1933 | _bfd_elf_adjust_eh_frame_global_symbol for globals. | |
1934 | ||
641338d8 AM |
1935 | 2017-04-27 Alan Modra <amodra@gmail.com> |
1936 | ||
1937 | * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index | |
1938 | when force_local. | |
1939 | ||
21d68fcd AM |
1940 | 2017-04-27 Alan Modra <amodra@gmail.com> |
1941 | ||
1942 | * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
1943 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it. | |
1944 | (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise. | |
1945 | (ppc_elf_relocate_section): Likewise. Delete silly optimisation | |
1946 | for undef and undefweak dyn_relocs. | |
1947 | * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
1948 | (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it. | |
1949 | (allocate_got, allocate_dynrelocs): Likewise. | |
1950 | (ppc64_elf_relocate_section): Likewise. | |
1951 | ||
97d343d4 L |
1952 | 2017-04-26 H.J. Lu <hongjiu.lu@intel.com> |
1953 | ||
1954 | * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add | |
1955 | DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section. | |
1956 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys | |
1957 | add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section. | |
1958 | ||
04b31182 NC |
1959 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
1960 | ||
1961 | PR binutils/21434 | |
1962 | * reloc.c (bfd_perform_relocation): Check for a negative address | |
1963 | in the reloc. | |
1964 | ||
23ec1e32 MR |
1965 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
1966 | ||
1967 | PR ld/21334 | |
1968 | * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms' | |
1969 | member. | |
1970 | * elfxx-target.h [!elf_backend_always_renumber_dynsyms] | |
1971 | (elf_backend_always_renumber_dynsyms): Define. | |
1972 | (elfNN_bed): Initialize `always_renumber_dynsyms' member. | |
1973 | * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define. | |
1974 | * elflink.c (bfd_elf_size_dynamic_sections): Also call | |
1975 | `_bfd_elf_link_renumber_dynsyms' if the backend has requested | |
1976 | it. | |
1977 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
1978 | ||
c46cec3a MR |
1979 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
1980 | ||
1981 | * elflink.c (bfd_elf_size_dynamic_sections): Only call | |
1982 | `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic | |
1983 | sections have been created. | |
1984 | ||
e63d1232 NC |
1985 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
1986 | ||
1987 | PR binutils/21431 | |
1988 | * compress.c (bfd_init_section_compress_status): Check the return | |
1989 | value from bfd_malloc. | |
1990 | ||
9e9821dd L |
1991 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
1992 | ||
1993 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add | |
1994 | no_finish_dynamic_symbol. | |
1995 | (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to | |
1996 | 0. | |
1997 | (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined | |
1998 | weak symbol, don't make it dynamic. | |
1999 | (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC, | |
2000 | set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE | |
2001 | relocation for GOT reference. | |
2002 | (elf_x86_64_finish_dynamic_symbol): Abort if | |
2003 | no_finish_dynamic_symbol isn't 0. | |
2004 | ||
0dc9a308 L |
2005 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
2006 | ||
2007 | PR ld/21402 | |
2008 | * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't | |
2009 | undefined weak symbol, don't make it dynamic. | |
2010 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIC, | |
2011 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
2012 | relocation for R_386_GOT32. | |
2013 | ||
1587442d L |
2014 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
2015 | ||
2016 | PR ld/21425 | |
2017 | * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks. | |
2018 | ||
7eacd66b AM |
2019 | 2017-04-23 Alan Modra <amodra@gmail.com> |
2020 | ||
2021 | PR 21414 | |
2022 | * section.c (GLOBAL_SYM_INIT): Make available in bfd.h. | |
2023 | * elf.c (lcomm_sym): New. | |
2024 | (_bfd_elf_large_com_section): Use lcomm_sym section symbol. | |
2025 | * bfd-in2.h: Regenerate. | |
2026 | ||
bce964aa AM |
2027 | 2017-04-23 Alan Modra <amodra@gmail.com> |
2028 | ||
2029 | PR 21412 | |
2030 | * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change | |
2031 | parameters and comment. | |
2032 | (_bfd_elf_get_reloc_section): Delete. | |
2033 | (_bfd_elf_plt_get_reloc_section): Declare. | |
2034 | * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section): | |
2035 | New functions. Don't blindly skip over assumed .rel/.rela prefix. | |
2036 | Extracted from.. | |
2037 | (_bfd_elf_get_reloc_section): ..here. Delete. | |
2038 | (assign_section_numbers): Call elf_get_reloc_section. | |
2039 | * elf64-ppc.c (elf_backend_get_reloc_section): Define. | |
2040 | * elfxx-target.h (elf_backend_get_reloc_section): Update. | |
2041 | ||
97e83a10 AM |
2042 | 2017-04-23 Alan Modra <amodra@gmail.com> |
2043 | ||
2044 | PR 21409 | |
2045 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when | |
2046 | no symbols. | |
2047 | ||
e133d005 L |
2048 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
2049 | ||
2050 | PR ld/21402 | |
2051 | * elf32-i386.c (elf_i386_link_hash_entry): Add | |
2052 | no_finish_dynamic_symbol. | |
2053 | (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0. | |
2054 | (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak | |
2055 | symbol, don't make it dynamic in PIE. | |
2056 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIE, | |
2057 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
2058 | relocation for R_386_GOT32 | |
2059 | (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol | |
2060 | isn't 0. | |
2061 | ||
3c5fce9b L |
2062 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
2063 | ||
2064 | PR ld/19617 | |
2065 | PR ld/21086 | |
2066 | * elflink.c (elf_link_add_object_symbols): Require | |
2067 | --no-dynamic-linker with -E/--dynamic-list when creating | |
2068 | dynamic sections. | |
2069 | ||
0fad2956 MR |
2070 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
2071 | ||
2072 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE | |
2073 | if forced local. | |
2074 | ||
64575f78 MR |
2075 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
2076 | ||
2077 | * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about | |
2078 | dynamic symbol sorting. | |
2079 | ||
59fa66c5 L |
2080 | 2017-04-20 H.J. Lu <hongjiu.lu@intel.com> |
2081 | ||
2082 | PR ld/21382 | |
2083 | * elflink.c (elf_link_add_object_symbols): Preserve | |
2084 | dynamic_ref_after_ir_def when restoring the symbol table for | |
2085 | unneeded dynamic object. | |
2086 | ||
e492d2f8 L |
2087 | 2017-04-19 H.J. Lu <hongjiu.lu@intel.com> |
2088 | ||
2089 | PR ld/21401 | |
2090 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort | |
2091 | on on undefined IFUNC symbol in the second PLT. | |
2092 | ||
10169134 WAF |
2093 | 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com> |
2094 | ||
2095 | * peXXigen.c (pe_print_reloc): Correct chunk_end. | |
2096 | ||
954b63d4 AM |
2097 | 2017-04-19 Alan Modra <amodra@gmail.com> |
2098 | ||
2099 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak | |
2100 | or make dynamic for info->dynamic_undefined_weak 0 and 1. | |
2101 | * elf32-ppc.c:Formatting. | |
2102 | (ensure_undefweak_dynamic): Don't make dynamic when | |
2103 | info->dynamic_undefined_weak is zero. | |
2104 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
2105 | info->dynamic_undefined_weak. Discard undef dyn_relocs when | |
2106 | not default visibility. Discard undef and undefweak | |
2107 | dyn_relocs earlier. | |
2108 | (ppc_elf_relocate_section): Adjust to suit. | |
2109 | * elf64-ppc.c: Formatting. | |
2110 | (ensure_undefweak_dynamic): Don't make dynamic when | |
2111 | info->dynamic_undefined_weak is zero. | |
2112 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
2113 | info->dynamic_undefined_weak. Discard them earlier. | |
2114 | ||
e6699019 L |
2115 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
2116 | ||
2117 | PR ld/21389 | |
2118 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index | |
2119 | before generating the version definition section. | |
2120 | ||
c5d37467 AM |
2121 | 2017-04-17 Alan Modra <amodra@gmail.com> |
2122 | ||
2123 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking | |
2124 | state when a regular object file defines a symbol with | |
2125 | incompatible type to that defined by an earlier shared lib. | |
2126 | ||
63a5468a AM |
2127 | 2017-04-13 Alan Modra <amodra@gmail.com> |
2128 | ||
2129 | * coffcode.h: Wrap some overly long _bfd_error_handler args. | |
2130 | * elf.c: Likewise. | |
2131 | * elf32-arm.c: Likewise. | |
2132 | * elf32-i386.c: Likewise. | |
2133 | * elf32-mep.c: Likewise. | |
2134 | * elf64-ia64-vms.c: Likewise. | |
2135 | * elf64-x86-64.c: Likewise. | |
2136 | * elflink.c: Likewise. | |
2137 | * elfnn-ia64.c: Likewise. | |
2138 | * elfxx-mips.c: Likewise. | |
2139 | ||
dae82561 AM |
2140 | 2017-04-13 Alan Modra <amodra@gmail.com> |
2141 | ||
2142 | * aoutx.h: Use %B and %A in error messages throughout file. | |
2143 | * aout-cris.c: Likewise. | |
2144 | * archive.c: Likewise. | |
2145 | * binary.c: Likewise. | |
2146 | * coff-rs6000.c: Likewise. | |
2147 | * coff-tic4x.c: Likewise. | |
2148 | * coffcode.h: Likewise. | |
2149 | * coffgen.c: Likewise. | |
2150 | * cofflink.c: Likewise. | |
2151 | * coffswap.h: Likewise. | |
2152 | * cpu-arm.c: Likewise. | |
2153 | * elf-eh-frame.c: Likewise. | |
2154 | * elf-m10300.c: Likewise. | |
2155 | * elf.c: Likewise. | |
2156 | * elf32-arc.c: Likewise. | |
2157 | * elf32-arm.c: Likewise. | |
2158 | * elf32-bfin.c: Likewise. | |
2159 | * elf32-frv.c: Likewise. | |
2160 | * elf32-iq2000.c: Likewise. | |
2161 | * elf32-m32c.c: Likewise. | |
2162 | * elf32-microblaze.c: Likewise. | |
2163 | * elf32-nds32.c: Likewise. | |
2164 | * elf32-rl78.c: Likewise. | |
2165 | * elf32-rx.c: Likewise. | |
2166 | * elf32-score.c: Likewise. | |
2167 | * elf32-score7.c: Likewise. | |
2168 | * elf32-sh64.c: Likewise. | |
2169 | * elf32-v850.c: Likewise. | |
2170 | * elf32-vax.c: Likewise. | |
2171 | * elf32-visium.c: Likewise. | |
2172 | * elf64-ia64-vms.c: Likewise. | |
2173 | * elf64-mmix.c: Likewise. | |
2174 | * elf64-sh64.c: Likewise. | |
2175 | * elfcode.h: Likewise. | |
2176 | * elfnn-aarch64.c: Likewise. | |
2177 | * elfnn-ia64.c: Likewise. | |
2178 | * elfxx-mips.c: Likewise. | |
2179 | * hpux-core.c: Likewise. | |
2180 | * ieee.c: Likewise. | |
2181 | * ihex.c: Likewise. | |
2182 | * linker.c: Likewise. | |
2183 | * merge.c: Likewise. | |
2184 | * mmo.c: Likewise. | |
2185 | * oasys.c: Likewise. | |
2186 | * pdp11.c: Likewise. | |
2187 | * peXXigen.c: Likewise. | |
2188 | * rs6000-core.c: Likewise. | |
2189 | * vms-alpha.c: Likewise. | |
2190 | * xcofflink.c: Likewise. | |
2191 | ||
c08bb8dd AM |
2192 | 2017-04-13 Alan Modra <amodra@gmail.com> |
2193 | ||
2194 | * bfd.c (PRINT_TYPE): Define. | |
2195 | (_doprnt): New function. | |
2196 | (error_handler_internal): Use _doprnt. | |
2197 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler | |
2198 | calls in their natural order, throughout file. | |
2199 | * coff-mcore.c: Likewise. | |
2200 | * coff-ppc.c: Likewise. | |
2201 | * coff-tic80.c: Likewise. | |
2202 | * cofflink.c: Likewise. | |
2203 | * elf-s390-common.c: Likewise. | |
2204 | * elf.c: Likewise. | |
2205 | * elf32-arm.c: Likewise. | |
2206 | * elf32-i386.c: Likewise. | |
2207 | * elf32-m32r.c: Likewise. | |
2208 | * elf32-msp430.c: Likewise. | |
2209 | * elf32-spu.c: Likewise. | |
2210 | * elf64-ia64-vms.c: Likewise. | |
2211 | * elf64-sparc.c: Likewise. | |
2212 | * elf64-x86-64.c: Likewise. | |
2213 | * elflink.c: Likewise. | |
2214 | * elfnn-aarch64.c: Likewise. | |
2215 | * elfnn-ia64.c: Likewise. | |
2216 | * elfxx-mips.c: Likewise. | |
2217 | ||
10463f39 AM |
2218 | 2017-04-13 Alan Modra <amodra@gmail.com> |
2219 | ||
2220 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long | |
2221 | branch veneers" error. Fix double space and format message. | |
2222 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. | |
2223 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. | |
2224 | ||
4af8774e AM |
2225 | 2017-04-13 Alan Modra <amodra@gmail.com> |
2226 | ||
2227 | * bfd-in2.h: Regenerate. | |
2228 | ||
e4097f5e L |
2229 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
2230 | ||
2231 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the | |
2232 | extra `\n' in warning/error messages. | |
2233 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. | |
2234 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
2235 | ||
537616aa L |
2236 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
2237 | ||
2238 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore | |
2239 | processor-specific properties with generic ELF target vector. | |
2240 | ||
bb1dd176 QZ |
2241 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
2242 | ||
2243 | * elf32-sparc.c (elf_backend_fixup_symbol): New. | |
2244 | * elf64-sparc.c (elf_backend_fixup_symbol): New. | |
2245 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
2246 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and | |
2247 | has_non_got_reloc. | |
2248 | (link_hash_newfunc): Initialize has_got_reloc and | |
2249 | has_non_got_reloc. | |
2250 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp | |
2251 | section. | |
2252 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and | |
2253 | has_non_got_reloc. | |
2254 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and | |
2255 | has_non_got_reloc. | |
2256 | (_bfd_sparc_elf_fixup_symbol): New function. | |
2257 | (allocate_dynrelocs): Don't allocate space for dynamic | |
2258 | relocations and discard relocations against resolved undefined | |
2259 | weak symbols in executable. Don't make resolved undefined weak | |
2260 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
2261 | relocation against undefined weak symbols in PIE. | |
2262 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic | |
2263 | relocations against resolved undefined weak symbols in PIE | |
2264 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries | |
2265 | without ynamic PLT/GOT relocations for resolved undefined weak | |
2266 | symbols. | |
2267 | Don't generate dynamic relocation against resolved undefined | |
2268 | weak symbol in executable. | |
2269 | (pie_finish_undefweak_symbol): New function. | |
2270 | (_bfd_sparc_elf_finish_dynamic_sections): Call | |
2271 | pie_finish_undefweak_symbol on all symbols in PIE. | |
2272 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. | |
2273 | (_bfd_sparc_elf_fixup_symbol): New function. | |
2274 | ||
d236cfd4 NC |
2275 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
2276 | ||
2277 | * config.bfd: Remove ns32k from obsolete list. | |
2278 | ||
6f9dbcd4 AM |
2279 | 2017-04-10 Alan Modra <amodra@gmail.com> |
2280 | ||
2281 | PR 21287 | |
2282 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. | |
2283 | (special_sections_i): Likewise for .init_array. | |
2284 | (special_sections_p): Likewise for .preinit_array. | |
2285 | ||
8170f769 L |
2286 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
2287 | ||
2288 | PR ld/19579 | |
2289 | PR ld/21306 | |
2290 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check | |
2291 | ELF_COMMON_DEF_P for common symbols. | |
2292 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
2293 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
2294 | * elflink.c (_bfd_elf_merge_symbol): Revert commits | |
2295 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and | |
2296 | 07492f668d2173da7a2bda3707ff0985e0f460b6. | |
2297 | ||
49f4617b PA |
2298 | 2017-04-07 Pedro Alves <palves@redhat.com> |
2299 | ||
2300 | * opncls.c (bfd_get_debug_link_info): Rename to... | |
2301 | (bfd_get_debug_link_info_1): ... this. Change type of second | |
2302 | parameter to void pointer. Adjust. | |
2303 | (bfd_get_debug_link_info): Reimplement on top of | |
2304 | bfd_get_debug_link_info_1. | |
2305 | (separate_debug_file_exists, separate_alt_debug_file_exists): | |
2306 | Change type of second parameter to void pointer. Adjust. | |
2307 | (get_func_type, check_func_type): Change type of second parameter | |
2308 | to void pointer. | |
2309 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to | |
2310 | the callback functions instead of passing the address of a local. | |
2311 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to | |
2312 | find_separate_debug_file. | |
2313 | (get_alt_debug_link_info_shim): Change type of second parameter to | |
2314 | void pointer. Adjust. | |
2315 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to | |
2316 | find_separate_debug_file. | |
2317 | (get_build_id_name, bfd_boolean check_build_id_file): Change type | |
2318 | of second parameter to void pointer. Adjust. | |
2319 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id | |
2320 | pointer local to find_separate_debug_file. | |
2321 | ||
2322 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> | |
1fd6d111 TG |
2323 | |
2324 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak | |
2325 | external symbols with a definition. | |
2326 | (_bfd_coff_gc_mark_extra_sections): Fix typo. | |
2327 | ||
86abf93a AM |
2328 | 2017-04-07 Alan Modra <amodra@gmail.com> |
2329 | ||
2330 | * po/SRC-POTFILES.in: Regenerate. | |
2331 | ||
8dea77f0 AM |
2332 | 2017-04-05 Alan Modra <amodra@gmail.com> |
2333 | ||
2334 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT | |
2335 | reference counting. | |
2336 | ||
477bdd39 JT |
2337 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
2338 | ||
2339 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than | |
2340 | numbers for DataDirectory entry indicies passed to | |
2341 | add_data_entry(). | |
2342 | ||
a91e1603 L |
2343 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
2344 | ||
2345 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for | |
2346 | each GNU_MBIND section and align GNU_MBIND section to page size. | |
2347 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND | |
2348 | segment for each GNU_MBIND section. | |
2349 | (_bfd_elf_init_private_section_data): Copy sh_info from input | |
2350 | for GNU_MBIND section. | |
2351 | ||
b5292032 PD |
2352 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
2353 | ||
2354 | * elfnn-riscv.c (GP_NAME): Delete. | |
2355 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. | |
2356 | (_bfd_riscv_relax_lui): Likewise. | |
2357 | ||
ad32986f NC |
2358 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
2359 | ||
2360 | PR binutils/21342 | |
2361 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer | |
2362 | dereference. | |
2363 | (bfd_elf_final_link): Only initialize the extended symbol index | |
2364 | section if there are extended symbol tables to list. | |
2365 | ||
46bed679 L |
2366 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
2367 | ||
2368 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. | |
2369 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. | |
2370 | * configure.ac (elf): Add elf-properties.lo. | |
2371 | * Makefile.in: Regenerated. | |
2372 | * configure: Likewise. | |
2373 | * elf-bfd.h (elf_property_kind): New. | |
2374 | (elf_property): Likewise. | |
2375 | (elf_property_list): Likewise. | |
2376 | (elf_properties): Likewise. | |
2377 | (_bfd_elf_parse_gnu_properties): Likewise. | |
2378 | (_bfd_elf_get_property): Likewise. | |
2379 | (_bfd_elf_link_setup_gnu_properties): Likewise. | |
2380 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties | |
2381 | and setup_gnu_properties. | |
2382 | (elf_obj_tdata): Add properties. | |
2383 | * elf-properties.c: New file. | |
2384 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. | |
2385 | (elf_i386_merge_gnu_properties): Likewise. | |
2386 | (elf_backend_parse_gnu_properties): Likewise. | |
2387 | (elf_backend_merge_gnu_properties): Likewise. | |
2388 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
2389 | (elf_x86_64_merge_gnu_properties): Likewise. | |
2390 | (elf_backend_parse_gnu_properties): Likewise. | |
2391 | (elf_backend_merge_gnu_properties): Likewise. | |
2392 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. | |
2393 | (elf_backend_parse_gnu_properties): Likewise. | |
2394 | (elf_backend_setup_gnu_properties): Likewise. | |
2395 | (elfNN_bed): Add elf_backend_parse_gnu_properties, | |
2396 | elf_backend_merge_gnu_properties and | |
2397 | elf_backend_setup_gnu_properties. | |
2398 | ||
f96bd6c2 PC |
2399 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
2400 | ||
2401 | * elf32-wasm32.c: Add relocation code, two relocs. | |
2402 | * reloc.c: Add wasm32 relocations. | |
2403 | * libbfd.h: Regenerate. | |
2404 | * bfd-in2.h: Regenerate. | |
2405 | * bfd/po/bfd.pot: Regenerate. | |
2406 | ||
e643cb45 NC |
2407 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
2408 | ||
2409 | PR binutils/18025 | |
2410 | * coff-bfd.h (struct coff_section_data): Add new fields: | |
2411 | saved_bias and bias. | |
2412 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias | |
2413 | computed for PE binaries. | |
2414 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each | |
2415 | missing abbrev. | |
2416 | ||
086554e8 HPN |
2417 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
2418 | ||
2419 | PR ld/16044 | |
2420 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT | |
2421 | to handle a local symbol with a hash-symbol-entry; without PLT. | |
2422 | Add BFD_ASSERT for an incidental case with GOT entry present. | |
2423 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol | |
2424 | isn't forced-or-set local. | |
2425 | ||
a6be0538 PC |
2426 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
2427 | ||
2428 | * wasm-module.c: New file to support WebAssembly modules. | |
2429 | * wasm-module.h: New file to support WebAssembly modules. | |
2430 | * doc/webassembly.texi: Start documenting wasm-module.c. | |
2431 | * config.bfd: Add wasm_vec. | |
2432 | * targets.c: Likewise. | |
2433 | * configure.ac: Likewise. | |
2434 | * Makefile.am: Add entries for wasm-module.c. | |
2435 | * Makefile.in: Regenerate. | |
2436 | * configure: Regenerate. | |
2437 | * po/SRC-POTFILES.in: Regenerate. | |
2438 | ||
79b1d3cb PC |
2439 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
2440 | ||
2441 | * cpu-wasm32.c: New file to support wasm32 architecture. | |
2442 | * elf32-wasm32.c: New file to support wasm32 architecture. | |
2443 | * Makefile.am: Add wasm32 architecture. | |
2444 | * archures.c: Likewise. | |
2445 | * config.bfd: Likewise. | |
2446 | * configure.ac: Likewise. | |
2447 | * targets.c: Likewise. | |
2448 | * Makefile.in: Regenerate. | |
2449 | * bfd-in2.h: Regenerate. | |
2450 | * configure: Regenerate. | |
2451 | * po/SRC-POTFILES.in: Regenerate. | |
2452 | ||
aaed6f5b AM |
2453 | 2017-03-20 Alan Modra <amodra@gmail.com> |
2454 | ||
2455 | PR 21266 | |
2456 | * elf64-ppc.c (compare_symbols): Stabilize sort. | |
2457 | ||
82e66161 AM |
2458 | 2017-03-18 Alan Modra <amodra@gmail.com> |
2459 | ||
2460 | * elf64-ppc.c (struct ppc_link_hash_table): Add | |
2461 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
2462 | (ppc_build_one_stub): Set flags on emitting dynamic | |
2463 | relocation to ifunc. | |
2464 | (ppc64_elf_relocate_section): Likewise. | |
2465 | (ppc64_elf_finish_dynamic_symbol): Likewise. | |
2466 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with | |
2467 | local dynamic relocs to ifuncs. | |
2468 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add | |
2469 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
2470 | (ppc_elf_relocate_section): Set flag on emitting dynamic | |
2471 | relocation to ifuncs. | |
2472 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
2473 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local | |
2474 | dynamic relocs to ifuncs. | |
2475 | ||
f955cccf NC |
2476 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
2477 | ||
2478 | PR binutils/21202 | |
2479 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to | |
2480 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. | |
2481 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to | |
2482 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. | |
2483 | * bfd-in2.h: Regenerate. | |
2484 | * libbfd.h: Regenerate. | |
2485 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc | |
2486 | names. | |
2487 | (IS_AARCH64_TLSDESC_RELOC): Likewise. | |
2488 | (elfNN_aarch64_howto_table): Likewise. | |
2489 | (aarch64_tls_transition_without_check): Likewise. | |
2490 | (aarch64_reloc_got_type): Likewise. | |
2491 | (elfNN_aarch64_final_link_relocate): Likewise. | |
2492 | (elfNN_aarch64_tls_relax): Likewise. | |
2493 | (elfNN_aarch64_relocate_section): Likewise. | |
2494 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
2495 | (elfNN_aarch64_check_relocs): Likewise. | |
2496 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
2497 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
2498 | ||
4aef7643 AM |
2499 | 2017-03-11 Alan Modra <amodra@gmail.com> |
2500 | ||
2501 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function | |
2502 | parameter is in fact used. Whitespace fixes. | |
2503 | * elf64-ppc.c: Likewise. | |
2504 | ||
f03265d9 ST |
2505 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
2506 | ||
2507 | * rs6000-core.c (CORE_NEW): Simplify macro when | |
2508 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. | |
2509 | ||
b1b07054 AM |
2510 | 2017-03-07 Alan Modra <amodra@gmail.com> |
2511 | ||
2512 | PR 21224 | |
2513 | PR 20519 | |
2514 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing | |
2515 | dyn_relocs check. | |
2516 | ||
2e0ce1c8 AM |
2517 | 2017-03-05 Alan Modra <amodra@gmail.com> |
2518 | ||
2519 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. | |
2520 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. | |
2521 | (next_cie_fde_offset): New function. | |
2522 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. | |
2523 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to | |
2524 | four bytes. Align CIEs to four or eight bytes depending on | |
2525 | per_encoding_aligned8. Align FDEs according to their encoding. | |
2526 | Pad last FDE to output section alignment. | |
2527 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove | |
2528 | assertion. | |
2529 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. | |
2530 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. | |
2531 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. | |
2532 | ||
f98450c6 NC |
2533 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
2534 | ||
2535 | PR ld/21212 | |
2536 | * elf.c (rewrite_elf_program_header): Do not issue a warning for | |
d20928fa | 2537 | empty segments which have a zero filesz, but a non-zero memsz. |
f98450c6 | 2538 | |
673cff9b AM |
2539 | 2017-03-02 Alan Modra <amodra@gmail.com> |
2540 | ||
2541 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. | |
2542 | ||
3de43e7b AM |
2543 | 2017-02-28 Alan Modra <amodra@gmail.com> |
2544 | ||
2545 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. | |
2546 | (ppc64_elf_relocate_section): Likewise. | |
2547 | ||
4ef97a1b AM |
2548 | 2017-02-28 Alan Modra <amodra@gmail.com> |
2549 | ||
2550 | PR 20995 | |
2551 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab | |
2552 | rather than elf32_nios2_hash_table or elf_hash_table. | |
2553 | (create_got_section): Likewise. | |
2554 | (nios2_elf32_finish_dynamic_symbol): Likewise. | |
2555 | (nios2_elf32_adjust_dynamic_symbol): Likewise. | |
2556 | (nios2_elf32_size_dynamic_sections): Likewise. | |
2557 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot | |
2558 | vars. Use htab equivalents directly instead. Don't create | |
2559 | all dynamic sections on needing just the GOT. Use a goto | |
2560 | rather than a fall-through with reloc test. Ensure | |
2561 | htab->dynobj is set when making dynamic sreloc section. | |
2562 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab | |
2563 | equivalent directly instead. Don't segfault on looking for | |
2564 | .dynamic when dynamic sections have not been created. Don't | |
2565 | segfault on .got.plt being discarded. | |
2566 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. | |
2567 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete | |
2568 | fixme and another not so relevant comment. | |
2569 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not | |
2570 | already set, set hash table dynobj on creating .sbss. | |
2571 | ||
7ba71655 AM |
2572 | 2017-02-28 Alan Modra <amodra@gmail.com> |
2573 | ||
2574 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. | |
2575 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. | |
2576 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. | |
2577 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. | |
2578 | (ppc64_elf_relocate_section): Likewise. | |
2579 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. | |
2580 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. | |
2581 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. | |
2582 | * libbfd.h: Regenerate. | |
2583 | * bfd-in2.h: Regenerate. | |
2584 | ||
afbf7e8e AM |
2585 | 2017-02-28 Alan Modra <amodra@gmail.com> |
2586 | ||
2587 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make | |
2588 | dynamic .data.rel.ro read-only. | |
2589 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section | |
2590 | rather than section flags when deciding where copy reloc goes. | |
2591 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
2592 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
2593 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
2594 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. | |
2595 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. | |
2596 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. | |
2597 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. | |
2598 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. | |
2599 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
2600 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. | |
2601 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. | |
2602 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. | |
2603 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
2604 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
2605 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. | |
2606 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. | |
2607 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
2608 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
2609 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. | |
2610 | ||
0e392101 MR |
2611 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
2612 | ||
2613 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the | |
2614 | `jalr $0, $25' instruction encoding. | |
2615 | ||
bd757ca7 NC |
2616 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
2617 | ||
2618 | PR ld/21180 | |
2619 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid | |
2620 | generating a seg-fault when encountering a symbol that has been | |
2621 | deleted by garbage collection. | |
2622 | ||
034fed0b AM |
2623 | 2017-02-25 Alan Modra <amodra@gmail.com> |
2624 | ||
2625 | * elf32-arc.c (struct dynamic_sections): Delete. | |
2626 | (enum dyn_section_types): Delete. | |
2627 | (dyn_section_names): Delete. | |
2628 | (arc_create_dynamic_sections): Delete. | |
2629 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't | |
2630 | segfault on discarded .rela.plt section. | |
2631 | (elf_arc_size_dynamic_sections): Formatting. Don't call | |
2632 | arc_create_dynamic_sections. Don't allocate memory for sections | |
2633 | handled by the generic linker. Correct code finding relocs in | |
2634 | read-only sections. Set SEC_EXCLUDE on zero size .got, | |
2635 | .got.plt, and .dynbss sections. Do set .interp for pies. | |
2636 | ||
d0f744f9 AW |
2637 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
2638 | ||
2639 | * elfnn-riscv.c (GP_NAME): New macro. | |
2640 | (riscv_global_pointer_value): Use it. | |
2641 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same | |
2642 | output section, consider only that section's alignment. | |
2643 | ||
5d58c733 MR |
2644 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
2645 | ||
2646 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. | |
2647 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. | |
2648 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. | |
2649 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. | |
2650 | ||
c1556ecd MR |
2651 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
2652 | ||
2653 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> | |
2654 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' | |
2655 | or misaligned. | |
2656 | ||
5499c7c7 AM |
2657 | 2017-02-23 Alan Modra <amodra@gmail.com> |
2658 | ||
2659 | PR 20744 | |
2660 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE | |
2661 | 16D relocations. | |
2662 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. | |
2663 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL | |
2664 | relocs. | |
2665 | ||
902e9fc7 MR |
2666 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
2667 | ||
2668 | PR ld/20828 | |
2669 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version | |
2670 | processing ahead of the call to `elf_gc_sweep_symbol'. | |
2671 | ||
758d96d8 NC |
2672 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
2673 | ||
2674 | PR binutils/21193 | |
2675 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly | |
2676 | created section 4-byte alignment. | |
2677 | ||
6528b6eb AM |
2678 | 2017-02-22 Alan Modra <amodra@gmail.com> |
2679 | ||
2680 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault | |
2681 | on .got or .plt output section being discarded by script. | |
2682 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move | |
2683 | vxworks splt temp. | |
2684 | ||
24f1a751 AM |
2685 | 2017-02-21 Alan Modra <amodra@gmail.com> |
2686 | ||
2687 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit | |
2688 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. | |
2689 | ||
64487780 AM |
2690 | 2017-02-20 Alan Modra <amodra@gmail.com> |
2691 | ||
2692 | PR 21181 | |
2693 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero | |
2694 | if DT_RELSZ/DT_RELASZ is zero. | |
2695 | ||
6438d1be NC |
2696 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
2697 | ||
2698 | * compress.c (bfd_get_full_section_contents): Remember to reduce | |
2699 | compressed size by the sizeof the compression header when | |
2700 | decompressing the contents. | |
2701 | ||
4bc26c69 PA |
2702 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2703 | ||
2704 | * srec.c (Chunk): Rename to ... | |
2705 | (_bfd_srec_len): ... this. | |
2706 | (S3Forced): Rename to ... | |
2707 | (_bfd_srec_forceS3): ... this. | |
2708 | * objcopy.c: Adjust all references. | |
2709 | ||
7ec22e0f PA |
2710 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2711 | ||
2712 | * archive.c (bsd_write_armap): Rename to ... | |
2713 | (_bfd_bsd_write_armap): ... this. | |
2714 | (coff_write_armap): Rename to ... | |
2715 | (_bfd_coff_write_armap): ... this. | |
2716 | * libbfd-in.h (bsd_write_armap): Rename to ... | |
2717 | (_bfd_bsd_write_armap): ... this. | |
2718 | (coff_write_armap): Rename to ... | |
2719 | (_bfd_coff_write_armap): ... this. | |
2720 | * aout-target.h, aout-tic30.c: Adjust all users. | |
2721 | * libbfd.h: Regenerate. | |
2722 | ||
8c8402cc PA |
2723 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2724 | ||
2725 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. | |
2726 | (warn_deprecated): Rename to ... | |
2727 | (_bfd_warn_deprecated): ... this. | |
2728 | * libbfd.c (warn_deprecated): Rename to ... | |
2729 | (_bfd_warn_deprecated): ... this. | |
2730 | * bfd-in2.h: Regenerate. | |
2731 | ||
c7c3d11b PA |
2732 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2733 | ||
2734 | * bfdio.c (real_ftell): Rename to ... | |
2735 | (_bfd_real_ftell): ... this. | |
2736 | (real_fseek): Rename to ... | |
2737 | (_bfd_real_fseek): ... this. | |
2738 | (real_fopen): Rename to ... | |
2739 | (_bfd_real_fopen): ... this. | |
2740 | * libbfd-in.h (real_ftell): Rename to ... | |
2741 | (_bfd_real_ftell): ... this. | |
2742 | (real_fseek): Rename to ... | |
2743 | (_bfd_real_fseek): ... this. | |
2744 | (real_fopen): Rename to ... | |
2745 | (_bfd_real_fopen): ... this. | |
2746 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. | |
2747 | * libbfd.h: Regenerate. | |
2748 | ||
4265548c PA |
2749 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2750 | ||
2751 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. | |
2752 | * libbfd.c (read_unsigned_leb128): Rename to ... | |
2753 | (_bfd_read_unsigned_leb128): ... this. | |
2754 | (read_signed_leb128): Rename to ... | |
2755 | (_bfd_read_signed_leb128): ... this. | |
2756 | (safe_read_leb128): Rename to ... | |
2757 | (_bfd_safe_read_leb128): ... this. | |
2758 | * libbfd-in.h (read_unsigned_leb128): Rename to ... | |
2759 | (_bfd_read_unsigned_leb128): ... this. | |
2760 | (read_signed_leb128): Rename to ... | |
2761 | (_bfd_read_signed_leb128): ... this. | |
2762 | (safe_read_leb128): Rename to ... | |
2763 | (_bfd_safe_read_leb128): ... this. | |
2764 | * libbfd.h: Renegerate. | |
2765 | ||
3239a423 AB |
2766 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2767 | ||
2768 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup | |
2769 | before trying to fine matching file and line information. | |
2770 | ||
90ed9b8b AB |
2771 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2772 | ||
2773 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. | |
2774 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does | |
2775 | not match current bfd, then reload debug information. Record bfd | |
2776 | we're loading debug info for in the stash. If we have debug | |
2777 | informatin in the cache then perform section placement before | |
2778 | returning. | |
2779 | ||
a8c75b76 AM |
2780 | 2017-02-16 Alan Modra <amodra@gmail.com> |
2781 | ||
2782 | PR 21000 | |
2783 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. | |
2784 | * elfxx-target.h (elf_backend_no_page_alias): Define. | |
2785 | (elfNN_bed): Init new field. | |
2786 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias | |
2787 | ensure PT_LOAD segment starts on a new page. | |
2788 | * elf32-hppa.c (elf_backend_no_page_alias): Define. | |
2789 | ||
247d6c4c AM |
2790 | 2017-02-16 Alan Modra <amodra@gmail.com> |
2791 | ||
2792 | PR 21132 | |
2793 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs | |
2794 | if pic. | |
2795 | ||
90571206 JW |
2796 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
2797 | ||
2798 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. | |
2799 | * bfd-in2.h: Regenerated. | |
2800 | ||
2a568401 L |
2801 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
2802 | ||
2803 | PR ld/21168 | |
2804 | * elf32-i386.c (elf_i386_relocate_section): Allow | |
2805 | "lea foo@GOT, %reg" in PIC. | |
2806 | ||
a5def14f L |
2807 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
2808 | ||
2809 | PR ld/20244 | |
2810 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC | |
2811 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation | |
2812 | error against local IFUNC symbol without a base register for | |
2813 | PIC. | |
2814 | ||
174d0a74 MR |
2815 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
2816 | ||
2817 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than | |
2818 | `%P: %H:' with `info->callbacks->einfo'. | |
2819 | (ppc_elf_relocate_section): Likewise. | |
2820 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
2821 | (ppc64_elf_edit_toc): Likewise. | |
2822 | (ppc64_elf_relocate_section): Likewise. | |
2823 | ||
e278ae05 AM |
2824 | 2017-02-14 Alan Modra <amodra@gmail.com> |
2825 | ||
2826 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
2827 | --gc-keep-exported, and test versioned field of sym rather than | |
2828 | looking for @ in name. | |
2829 | ||
10ddfe62 PD |
2830 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
2831 | ||
2832 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to | |
2833 | __global_pointer$. | |
2834 | ||
d11135f5 NC |
2835 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
2836 | ||
2837 | PR binutils/21151 | |
2838 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid | |
2839 | unit length field. | |
2840 | ||
cc162427 AW |
2841 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
2842 | ||
2843 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT | |
2844 | entry size if PLT header is written. | |
2845 | ||
3d044c0c SL |
2846 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
2847 | ||
2848 | Fix sparc64 dynamic relocation processing to use the dynamic | |
2849 | symbol count. | |
2850 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' | |
2851 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() | |
2852 | should be used. | |
2853 | ||
1b7e3d2f NC |
2854 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
2855 | ||
2856 | PR 21096 | |
2857 | * coffcode.h (coff_write_object_contents): Enlarge size of | |
2858 | s_name_buf in order to avoid compile time warning about possible | |
2859 | integer truncation. | |
2860 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower | |
2861 | 32-bits of insn value before printing into buffer. | |
2862 | ||
e17b0c35 MR |
2863 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2864 | ||
2865 | * elfxx-mips.c (mips_elf_hash_sort_data): Add | |
2866 | `max_local_dynindx'. | |
2867 | (mips_elf_sort_hash_table): Handle it. | |
2868 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local | |
2869 | symbols bump up `max_local_dynindx' rather than | |
2870 | `max_non_got_dynindx'. | |
2871 | ||
55f8b9d2 MR |
2872 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2873 | ||
2874 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the | |
2875 | `min_got_dynindx', `max_unref_got_dynindx' and | |
2876 | `max_non_got_dynindx' members to the `bfd_size_type' data type. | |
2877 | (mips_elf_sort_hash_table): Adjust accordingly. | |
2878 | ||
0f8c4b60 MR |
2879 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2880 | ||
2881 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout | |
2882 | to access the hash table. | |
2883 | ||
17a80fa8 MR |
2884 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2885 | ||
2886 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on | |
2887 | non-NULL `htab' to the beginning. | |
2888 | ||
8f56d4fd MR |
2889 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2890 | ||
2891 | * elflink.c (elf_gc_sweep): Wrap overlong line. | |
2892 | ||
8b10b0b3 MR |
2893 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
2894 | ||
2895 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... | |
2896 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. | |
2897 | * elfxx-mips.c (mips_elf_link_hash_table): Add | |
2898 | `ignore_branch_isa' member. | |
2899 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch | |
2900 | in branch relocation calculation as an error if | |
2901 | `ignore_branch_isa' has been set. | |
2902 | (_bfd_mips_elf_insn32): Rename to... | |
2903 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' | |
2904 | parameter to `insn32' and add an `ignore_branch_isa' parameter. | |
2905 | Handle the new parameter. | |
2906 | ||
1fbd05e1 HPN |
2907 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
2908 | ||
22d9a0de HPN |
2909 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
2910 | local variable dynobj. | |
2911 | ||
1fbd05e1 HPN |
2912 | PR ld/20995 |
2913 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. | |
2914 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the | |
2915 | executable from read-only sections into sdynrelro. | |
2916 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for | |
2917 | dynamic relocs in sdynrelro. | |
2918 | (elf_backend_want_dynrelro): Define. | |
2919 | ||
4a7324e1 SH |
2920 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2921 | ||
2922 | * config.bfd (*-*-rtemsaout*): Mark as removed. | |
2923 | ||
c75b4ebd SH |
2924 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2925 | ||
2926 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. | |
2927 | (arm-*-rtems*): Move to (arm*-*-eabi*). | |
2928 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). | |
2929 | (m68-*-rtems*): Move to (m68*-*-elf*). | |
2930 | ||
850d84f6 SH |
2931 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2932 | ||
2933 | * config.bfd (*-*-rtemscoff*): Mark as removed. | |
2934 | ||
b531344c MR |
2935 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
2936 | ||
2937 | PR ld/20828 | |
2938 | * elflink.c (bfd_elf_record_link_assignment): Revert last | |
2939 | change and don't ever clear `forced_local'. Set `mark' | |
2940 | unconditionally. | |
2941 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within | |
2942 | file. | |
2943 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... | |
2944 | (bfd_elf_size_dynamic_sections): ... here. | |
2945 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' | |
2946 | and set `mark' instead in `__tls_get_addr_opt' processing. | |
2947 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. | |
2948 | ||
f0158f44 AM |
2949 | 2017-01-24 Alan Modra <amodra@gmail.com> |
2950 | ||
2951 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases | |
2952 | where dynamic relocs are preferable. Allow ifunc too. | |
2953 | (ensure_undefweak_dynamic): New function. | |
2954 | (allocate_dynrelocs): Use it here. Move plt handling last and | |
2955 | don't make symbols dynamic, simplifying loop. Only make undef | |
2956 | weak symbols with GOT entries dynamic. Correct condition | |
2957 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct | |
2958 | comments. Remove goto. | |
2959 | (ppc_elf_relocate_section): Correct test for using dynamic | |
2960 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
2961 | to suit. Set up explicit tls_index entries and implicit GOT | |
2962 | tls_index entries resolvable at link time for | |
2963 | __tls_get_addr_opt. Simplify test to clear mem for prelink. | |
2964 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. | |
2965 | (ensure_undefweak_dynamic): New function. | |
2966 | (allocate_dynrelocs): Use it here. Only make undef weak symbols | |
2967 | with GOT entries dynamic. Remove unnecessary test of | |
2968 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. | |
2969 | (ppc64_elf_relocate_section): Correct test for using dynamic | |
2970 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
2971 | to suit. Set up explicit tls_index entries and implicit GOT | |
2972 | tls_index entries resolvable at link time for __tls_get_addr_opt. | |
2973 | Simplify expression to clear mem for prelink. | |
2974 | ||
2d0ca824 YN |
2975 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
2976 | ||
2977 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. | |
2978 | ||
7f784814 JW |
2979 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
2980 | ||
2981 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. | |
2982 | (elf_backend_hash_symbol): Define. | |
2983 | ||
81ff47b3 MR |
2984 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
2985 | ||
2986 | PR ld/20828 | |
2987 | * elflink.c (bfd_elf_record_link_assignment): Clear any | |
2988 | `forced_local' marking for DSO symbols that are not being | |
2989 | provided. | |
2990 | ||
640d6bfd KLC |
2991 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
2992 | ||
2993 | * elfnn-riscv.c (riscv_elf_object_p): New function. | |
2994 | ||
8361ed4d L |
2995 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
2996 | ||
2997 | PR ld/21038 | |
2998 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
2999 | plt_bnd_eh_frame. | |
3000 | (elf_x86_64_check_relocs): Create .eh_frame section for the | |
3001 | .plt.bnd section. | |
3002 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
3003 | .eh_frame section for the .plt.bnd section. | |
3004 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
3005 | for the .plt.bnd section. | |
3006 | ||
2425a30e NC |
3007 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
3008 | ||
3009 | PR binutils/20876 | |
3010 | * opncls.c (find_separate_debug_file): Add include_dirs | |
3011 | parameter. Only include the directory part of the bfd's filename | |
3012 | in search paths if include_dirs is true. Add a couple of extra | |
3013 | locations for looking for debug files. | |
3014 | ( bfd_follow_gnu_debuglink): Update invocation of | |
3015 | find_separate_debug_file. | |
3016 | (bfd_follow_gnu_debugaltlink): Likewise. | |
3017 | (get_build_id): New function: Finds the build-id of the given bfd. | |
3018 | (get_build_id_name): New function: Computes the name of the | |
3019 | separate debug info file for a bfd, based upon its build-id. | |
3020 | (check_build_id_file): New function: Checks to see if a separate | |
3021 | debug info file exists at the given location, and that its | |
3022 | build-id matches that of the original bfd. | |
3023 | (bfd_follow_build_id_debuglink): New function: Finds a separate | |
3024 | debug info file for a given bfd by using the build-id method. | |
3025 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id | |
3026 | method of locating a separate debug info file before using the | |
3027 | debuglink method. | |
3028 | * bfd-in2.h: Regenerate. | |
3029 | ||
9e659176 L |
3030 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
3031 | ||
3032 | PR ld/21038 | |
3033 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. | |
3034 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and | |
3035 | elf_x86_64_eh_frame_plt_got. | |
3036 | (elf_x86_64_size_dynamic_sections): Get unwind info from | |
3037 | elf_x86_64_bnd_arch_bed for the BND PLT. | |
3038 | ||
f2e2d2f5 JS |
3039 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
3040 | ||
3041 | * config.bfd: Add entries for i686-redox and x86_64-redox. | |
3042 | ||
52b232b3 L |
3043 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
3044 | ||
3045 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section | |
3046 | to 4 bytes. | |
3047 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
3048 | .eh_frame section to 4 bytes for x32. | |
3049 | (elf_x86_64_check_relocs): Likewise. | |
3050 | ||
fff53dae L |
3051 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
3052 | ||
3053 | PR ld/20830 | |
3054 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. | |
3055 | (PLT_GOT_FDE_LENGTH): Likewise. | |
3056 | (elf_i386_plt_layout): Add eh_frame_plt_got and | |
3057 | eh_frame_plt_got_size. | |
3058 | (elf_i386_plt): Updated. | |
3059 | (elf_i386_link_hash_table): Add plt_got_eh_frame. | |
3060 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. | |
3061 | (elf_i386_size_dynamic_sections): Allocate and initialize | |
3062 | .eh_frame section for .plt.got. | |
3063 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for | |
3064 | .plt.got. | |
3065 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and | |
3066 | eh_frame_plt_got_size. | |
3067 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. | |
3068 | (PLT_GOT_FDE_LENGTH): Likewise. | |
3069 | (elf_x86_64_backend_data): Add eh_frame_plt_got and | |
3070 | eh_frame_plt_got_size. | |
3071 | (elf_x86_64_arch_bed): Updated. | |
3072 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and | |
3073 | eh_frame_plt_got_size. | |
3074 | (elf_x86_64_nacl_arch_bed): Likewise. | |
3075 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. | |
3076 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. | |
3077 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
3078 | .eh_frame section for .plt.got. | |
3079 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
3080 | for .plt.got. | |
3081 | ||
f129e49f L |
3082 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
3083 | ||
3084 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
3085 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. | |
3086 | ||
cd6581da NC |
3087 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
3088 | ||
3089 | * dwarf2.c (lookup_address_in_function_table): Return early if | |
3090 | there are no functions in the given comp unit, or if the high | |
3091 | address of the last function in the comp unit is less than the | |
3092 | desired address. | |
3093 | ||
98f02962 NC |
3094 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
3095 | ||
3096 | PR binutils/21013 | |
3097 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error | |
3098 | message if there are too many symbols to load. | |
3099 | ||
ae4fda66 JC |
3100 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
3101 | ||
3102 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free | |
3103 | if relocs are cached. | |
3104 | ||
de1010f4 RF |
3105 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
3106 | ||
3107 | PR ld/21017 | |
3108 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry | |
3109 | for R_MICROBLAZE_GOTOFF_64. | |
3110 | ||
09fe2662 NC |
3111 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
3112 | ||
3113 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time | |
3114 | warning about using a possibly uninitialised variable. | |
3115 | ||
595e0a47 AM |
3116 | 2017-01-02 Alan Modra <amodra@gmail.com> |
3117 | ||
3118 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. | |
3119 | (allocate_plt_static, allocate_dynrelocs): Use it. | |
3120 | ||
7bd9df3b AM |
3121 | 2017-01-02 Alan Modra <amodra@gmail.com> |
3122 | ||
3123 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for | |
3124 | .PARISC.unwind section. | |
3125 | ||
5b86074c AM |
3126 | 2017-01-02 Alan Modra <amodra@gmail.com> |
3127 | ||
3128 | PR ld/20989 | |
3129 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. | |
3130 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT | |
3131 | indirect to GOT pointer relative code edit. | |
3132 | ||
2571583a AM |
3133 | 2017-01-02 Alan Modra <amodra@gmail.com> |
3134 | ||
3135 | Update year range in copyright notice of all files. | |
3136 | ||
5c1ad6b5 | 3137 | For older changes see ChangeLog-2016 |
3499769a | 3138 | \f |
5c1ad6b5 | 3139 | Copyright (C) 2017 Free Software Foundation, Inc. |
3499769a AM |
3140 | |
3141 | Copying and distribution of this file, with or without modification, | |
3142 | are permitted in any medium without royalty provided the copyright | |
3143 | notice and this notice are preserved. | |
3144 | ||
3145 | Local Variables: | |
3146 | mode: change-log | |
3147 | left-margin: 8 | |
3148 | fill-column: 74 | |
3149 | version-control: never | |
3150 | End: |