Commit | Line | Data |
---|---|---|
23ec1e32 MR |
1 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
2 | ||
3 | PR ld/21334 | |
4 | * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms' | |
5 | member. | |
6 | * elfxx-target.h [!elf_backend_always_renumber_dynsyms] | |
7 | (elf_backend_always_renumber_dynsyms): Define. | |
8 | (elfNN_bed): Initialize `always_renumber_dynsyms' member. | |
9 | * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define. | |
10 | * elflink.c (bfd_elf_size_dynamic_sections): Also call | |
11 | `_bfd_elf_link_renumber_dynsyms' if the backend has requested | |
12 | it. | |
13 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
14 | ||
c46cec3a MR |
15 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
16 | ||
17 | * elflink.c (bfd_elf_size_dynamic_sections): Only call | |
18 | `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic | |
19 | sections have been created. | |
20 | ||
e63d1232 NC |
21 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
22 | ||
23 | PR binutils/21431 | |
24 | * compress.c (bfd_init_section_compress_status): Check the return | |
25 | value from bfd_malloc. | |
26 | ||
9e9821dd L |
27 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
28 | ||
29 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add | |
30 | no_finish_dynamic_symbol. | |
31 | (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to | |
32 | 0. | |
33 | (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined | |
34 | weak symbol, don't make it dynamic. | |
35 | (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC, | |
36 | set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE | |
37 | relocation for GOT reference. | |
38 | (elf_x86_64_finish_dynamic_symbol): Abort if | |
39 | no_finish_dynamic_symbol isn't 0. | |
40 | ||
0dc9a308 L |
41 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
42 | ||
43 | PR ld/21402 | |
44 | * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't | |
45 | undefined weak symbol, don't make it dynamic. | |
46 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIC, | |
47 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
48 | relocation for R_386_GOT32. | |
49 | ||
1587442d L |
50 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
51 | ||
52 | PR ld/21425 | |
53 | * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks. | |
54 | ||
7eacd66b AM |
55 | 2017-04-23 Alan Modra <amodra@gmail.com> |
56 | ||
57 | PR 21414 | |
58 | * section.c (GLOBAL_SYM_INIT): Make available in bfd.h. | |
59 | * elf.c (lcomm_sym): New. | |
60 | (_bfd_elf_large_com_section): Use lcomm_sym section symbol. | |
61 | * bfd-in2.h: Regenerate. | |
62 | ||
bce964aa AM |
63 | 2017-04-23 Alan Modra <amodra@gmail.com> |
64 | ||
65 | PR 21412 | |
66 | * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change | |
67 | parameters and comment. | |
68 | (_bfd_elf_get_reloc_section): Delete. | |
69 | (_bfd_elf_plt_get_reloc_section): Declare. | |
70 | * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section): | |
71 | New functions. Don't blindly skip over assumed .rel/.rela prefix. | |
72 | Extracted from.. | |
73 | (_bfd_elf_get_reloc_section): ..here. Delete. | |
74 | (assign_section_numbers): Call elf_get_reloc_section. | |
75 | * elf64-ppc.c (elf_backend_get_reloc_section): Define. | |
76 | * elfxx-target.h (elf_backend_get_reloc_section): Update. | |
77 | ||
97e83a10 AM |
78 | 2017-04-23 Alan Modra <amodra@gmail.com> |
79 | ||
80 | PR 21409 | |
81 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when | |
82 | no symbols. | |
83 | ||
e133d005 L |
84 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
85 | ||
86 | PR ld/21402 | |
87 | * elf32-i386.c (elf_i386_link_hash_entry): Add | |
88 | no_finish_dynamic_symbol. | |
89 | (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0. | |
90 | (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak | |
91 | symbol, don't make it dynamic in PIE. | |
92 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIE, | |
93 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
94 | relocation for R_386_GOT32 | |
95 | (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol | |
96 | isn't 0. | |
97 | ||
3c5fce9b L |
98 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
99 | ||
100 | PR ld/19617 | |
101 | PR ld/21086 | |
102 | * elflink.c (elf_link_add_object_symbols): Require | |
103 | --no-dynamic-linker with -E/--dynamic-list when creating | |
104 | dynamic sections. | |
105 | ||
0fad2956 MR |
106 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
107 | ||
108 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE | |
109 | if forced local. | |
110 | ||
64575f78 MR |
111 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
112 | ||
113 | * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about | |
114 | dynamic symbol sorting. | |
115 | ||
59fa66c5 L |
116 | 2017-04-20 H.J. Lu <hongjiu.lu@intel.com> |
117 | ||
118 | PR ld/21382 | |
119 | * elflink.c (elf_link_add_object_symbols): Preserve | |
120 | dynamic_ref_after_ir_def when restoring the symbol table for | |
121 | unneeded dynamic object. | |
122 | ||
e492d2f8 L |
123 | 2017-04-19 H.J. Lu <hongjiu.lu@intel.com> |
124 | ||
125 | PR ld/21401 | |
126 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort | |
127 | on on undefined IFUNC symbol in the second PLT. | |
128 | ||
10169134 WAF |
129 | 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com> |
130 | ||
131 | * peXXigen.c (pe_print_reloc): Correct chunk_end. | |
132 | ||
954b63d4 AM |
133 | 2017-04-19 Alan Modra <amodra@gmail.com> |
134 | ||
135 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak | |
136 | or make dynamic for info->dynamic_undefined_weak 0 and 1. | |
137 | * elf32-ppc.c:Formatting. | |
138 | (ensure_undefweak_dynamic): Don't make dynamic when | |
139 | info->dynamic_undefined_weak is zero. | |
140 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
141 | info->dynamic_undefined_weak. Discard undef dyn_relocs when | |
142 | not default visibility. Discard undef and undefweak | |
143 | dyn_relocs earlier. | |
144 | (ppc_elf_relocate_section): Adjust to suit. | |
145 | * elf64-ppc.c: Formatting. | |
146 | (ensure_undefweak_dynamic): Don't make dynamic when | |
147 | info->dynamic_undefined_weak is zero. | |
148 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
149 | info->dynamic_undefined_weak. Discard them earlier. | |
150 | ||
e6699019 L |
151 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
152 | ||
153 | PR ld/21389 | |
154 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index | |
155 | before generating the version definition section. | |
156 | ||
c5d37467 AM |
157 | 2017-04-17 Alan Modra <amodra@gmail.com> |
158 | ||
159 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking | |
160 | state when a regular object file defines a symbol with | |
161 | incompatible type to that defined by an earlier shared lib. | |
162 | ||
63a5468a AM |
163 | 2017-04-13 Alan Modra <amodra@gmail.com> |
164 | ||
165 | * coffcode.h: Wrap some overly long _bfd_error_handler args. | |
166 | * elf.c: Likewise. | |
167 | * elf32-arm.c: Likewise. | |
168 | * elf32-i386.c: Likewise. | |
169 | * elf32-mep.c: Likewise. | |
170 | * elf64-ia64-vms.c: Likewise. | |
171 | * elf64-x86-64.c: Likewise. | |
172 | * elflink.c: Likewise. | |
173 | * elfnn-ia64.c: Likewise. | |
174 | * elfxx-mips.c: Likewise. | |
175 | ||
dae82561 AM |
176 | 2017-04-13 Alan Modra <amodra@gmail.com> |
177 | ||
178 | * aoutx.h: Use %B and %A in error messages throughout file. | |
179 | * aout-cris.c: Likewise. | |
180 | * archive.c: Likewise. | |
181 | * binary.c: Likewise. | |
182 | * coff-rs6000.c: Likewise. | |
183 | * coff-tic4x.c: Likewise. | |
184 | * coffcode.h: Likewise. | |
185 | * coffgen.c: Likewise. | |
186 | * cofflink.c: Likewise. | |
187 | * coffswap.h: Likewise. | |
188 | * cpu-arm.c: Likewise. | |
189 | * elf-eh-frame.c: Likewise. | |
190 | * elf-m10300.c: Likewise. | |
191 | * elf.c: Likewise. | |
192 | * elf32-arc.c: Likewise. | |
193 | * elf32-arm.c: Likewise. | |
194 | * elf32-bfin.c: Likewise. | |
195 | * elf32-frv.c: Likewise. | |
196 | * elf32-iq2000.c: Likewise. | |
197 | * elf32-m32c.c: Likewise. | |
198 | * elf32-microblaze.c: Likewise. | |
199 | * elf32-nds32.c: Likewise. | |
200 | * elf32-rl78.c: Likewise. | |
201 | * elf32-rx.c: Likewise. | |
202 | * elf32-score.c: Likewise. | |
203 | * elf32-score7.c: Likewise. | |
204 | * elf32-sh64.c: Likewise. | |
205 | * elf32-v850.c: Likewise. | |
206 | * elf32-vax.c: Likewise. | |
207 | * elf32-visium.c: Likewise. | |
208 | * elf64-ia64-vms.c: Likewise. | |
209 | * elf64-mmix.c: Likewise. | |
210 | * elf64-sh64.c: Likewise. | |
211 | * elfcode.h: Likewise. | |
212 | * elfnn-aarch64.c: Likewise. | |
213 | * elfnn-ia64.c: Likewise. | |
214 | * elfxx-mips.c: Likewise. | |
215 | * hpux-core.c: Likewise. | |
216 | * ieee.c: Likewise. | |
217 | * ihex.c: Likewise. | |
218 | * linker.c: Likewise. | |
219 | * merge.c: Likewise. | |
220 | * mmo.c: Likewise. | |
221 | * oasys.c: Likewise. | |
222 | * pdp11.c: Likewise. | |
223 | * peXXigen.c: Likewise. | |
224 | * rs6000-core.c: Likewise. | |
225 | * vms-alpha.c: Likewise. | |
226 | * xcofflink.c: Likewise. | |
227 | ||
c08bb8dd AM |
228 | 2017-04-13 Alan Modra <amodra@gmail.com> |
229 | ||
230 | * bfd.c (PRINT_TYPE): Define. | |
231 | (_doprnt): New function. | |
232 | (error_handler_internal): Use _doprnt. | |
233 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler | |
234 | calls in their natural order, throughout file. | |
235 | * coff-mcore.c: Likewise. | |
236 | * coff-ppc.c: Likewise. | |
237 | * coff-tic80.c: Likewise. | |
238 | * cofflink.c: Likewise. | |
239 | * elf-s390-common.c: Likewise. | |
240 | * elf.c: Likewise. | |
241 | * elf32-arm.c: Likewise. | |
242 | * elf32-i386.c: Likewise. | |
243 | * elf32-m32r.c: Likewise. | |
244 | * elf32-msp430.c: Likewise. | |
245 | * elf32-spu.c: Likewise. | |
246 | * elf64-ia64-vms.c: Likewise. | |
247 | * elf64-sparc.c: Likewise. | |
248 | * elf64-x86-64.c: Likewise. | |
249 | * elflink.c: Likewise. | |
250 | * elfnn-aarch64.c: Likewise. | |
251 | * elfnn-ia64.c: Likewise. | |
252 | * elfxx-mips.c: Likewise. | |
253 | ||
10463f39 AM |
254 | 2017-04-13 Alan Modra <amodra@gmail.com> |
255 | ||
256 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long | |
257 | branch veneers" error. Fix double space and format message. | |
258 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. | |
259 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. | |
260 | ||
4af8774e AM |
261 | 2017-04-13 Alan Modra <amodra@gmail.com> |
262 | ||
263 | * bfd-in2.h: Regenerate. | |
264 | ||
e4097f5e L |
265 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
266 | ||
267 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the | |
268 | extra `\n' in warning/error messages. | |
269 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. | |
270 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
271 | ||
537616aa L |
272 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
273 | ||
274 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore | |
275 | processor-specific properties with generic ELF target vector. | |
276 | ||
bb1dd176 QZ |
277 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
278 | ||
279 | * elf32-sparc.c (elf_backend_fixup_symbol): New. | |
280 | * elf64-sparc.c (elf_backend_fixup_symbol): New. | |
281 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
282 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and | |
283 | has_non_got_reloc. | |
284 | (link_hash_newfunc): Initialize has_got_reloc and | |
285 | has_non_got_reloc. | |
286 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp | |
287 | section. | |
288 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and | |
289 | has_non_got_reloc. | |
290 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and | |
291 | has_non_got_reloc. | |
292 | (_bfd_sparc_elf_fixup_symbol): New function. | |
293 | (allocate_dynrelocs): Don't allocate space for dynamic | |
294 | relocations and discard relocations against resolved undefined | |
295 | weak symbols in executable. Don't make resolved undefined weak | |
296 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
297 | relocation against undefined weak symbols in PIE. | |
298 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic | |
299 | relocations against resolved undefined weak symbols in PIE | |
300 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries | |
301 | without ynamic PLT/GOT relocations for resolved undefined weak | |
302 | symbols. | |
303 | Don't generate dynamic relocation against resolved undefined | |
304 | weak symbol in executable. | |
305 | (pie_finish_undefweak_symbol): New function. | |
306 | (_bfd_sparc_elf_finish_dynamic_sections): Call | |
307 | pie_finish_undefweak_symbol on all symbols in PIE. | |
308 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. | |
309 | (_bfd_sparc_elf_fixup_symbol): New function. | |
310 | ||
d236cfd4 NC |
311 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
312 | ||
313 | * config.bfd: Remove ns32k from obsolete list. | |
314 | ||
6f9dbcd4 AM |
315 | 2017-04-10 Alan Modra <amodra@gmail.com> |
316 | ||
317 | PR 21287 | |
318 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. | |
319 | (special_sections_i): Likewise for .init_array. | |
320 | (special_sections_p): Likewise for .preinit_array. | |
321 | ||
8170f769 L |
322 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
323 | ||
324 | PR ld/19579 | |
325 | PR ld/21306 | |
326 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check | |
327 | ELF_COMMON_DEF_P for common symbols. | |
328 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
329 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
330 | * elflink.c (_bfd_elf_merge_symbol): Revert commits | |
331 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and | |
332 | 07492f668d2173da7a2bda3707ff0985e0f460b6. | |
333 | ||
49f4617b PA |
334 | 2017-04-07 Pedro Alves <palves@redhat.com> |
335 | ||
336 | * opncls.c (bfd_get_debug_link_info): Rename to... | |
337 | (bfd_get_debug_link_info_1): ... this. Change type of second | |
338 | parameter to void pointer. Adjust. | |
339 | (bfd_get_debug_link_info): Reimplement on top of | |
340 | bfd_get_debug_link_info_1. | |
341 | (separate_debug_file_exists, separate_alt_debug_file_exists): | |
342 | Change type of second parameter to void pointer. Adjust. | |
343 | (get_func_type, check_func_type): Change type of second parameter | |
344 | to void pointer. | |
345 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to | |
346 | the callback functions instead of passing the address of a local. | |
347 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to | |
348 | find_separate_debug_file. | |
349 | (get_alt_debug_link_info_shim): Change type of second parameter to | |
350 | void pointer. Adjust. | |
351 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to | |
352 | find_separate_debug_file. | |
353 | (get_build_id_name, bfd_boolean check_build_id_file): Change type | |
354 | of second parameter to void pointer. Adjust. | |
355 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id | |
356 | pointer local to find_separate_debug_file. | |
357 | ||
358 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> | |
1fd6d111 TG |
359 | |
360 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak | |
361 | external symbols with a definition. | |
362 | (_bfd_coff_gc_mark_extra_sections): Fix typo. | |
363 | ||
86abf93a AM |
364 | 2017-04-07 Alan Modra <amodra@gmail.com> |
365 | ||
366 | * po/SRC-POTFILES.in: Regenerate. | |
367 | ||
8dea77f0 AM |
368 | 2017-04-05 Alan Modra <amodra@gmail.com> |
369 | ||
370 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT | |
371 | reference counting. | |
372 | ||
477bdd39 JT |
373 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
374 | ||
375 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than | |
376 | numbers for DataDirectory entry indicies passed to | |
377 | add_data_entry(). | |
378 | ||
a91e1603 L |
379 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
380 | ||
381 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for | |
382 | each GNU_MBIND section and align GNU_MBIND section to page size. | |
383 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND | |
384 | segment for each GNU_MBIND section. | |
385 | (_bfd_elf_init_private_section_data): Copy sh_info from input | |
386 | for GNU_MBIND section. | |
387 | ||
b5292032 PD |
388 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
389 | ||
390 | * elfnn-riscv.c (GP_NAME): Delete. | |
391 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. | |
392 | (_bfd_riscv_relax_lui): Likewise. | |
393 | ||
ad32986f NC |
394 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
395 | ||
396 | PR binutils/21342 | |
397 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer | |
398 | dereference. | |
399 | (bfd_elf_final_link): Only initialize the extended symbol index | |
400 | section if there are extended symbol tables to list. | |
401 | ||
46bed679 L |
402 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
403 | ||
404 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. | |
405 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. | |
406 | * configure.ac (elf): Add elf-properties.lo. | |
407 | * Makefile.in: Regenerated. | |
408 | * configure: Likewise. | |
409 | * elf-bfd.h (elf_property_kind): New. | |
410 | (elf_property): Likewise. | |
411 | (elf_property_list): Likewise. | |
412 | (elf_properties): Likewise. | |
413 | (_bfd_elf_parse_gnu_properties): Likewise. | |
414 | (_bfd_elf_get_property): Likewise. | |
415 | (_bfd_elf_link_setup_gnu_properties): Likewise. | |
416 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties | |
417 | and setup_gnu_properties. | |
418 | (elf_obj_tdata): Add properties. | |
419 | * elf-properties.c: New file. | |
420 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. | |
421 | (elf_i386_merge_gnu_properties): Likewise. | |
422 | (elf_backend_parse_gnu_properties): Likewise. | |
423 | (elf_backend_merge_gnu_properties): Likewise. | |
424 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
425 | (elf_x86_64_merge_gnu_properties): Likewise. | |
426 | (elf_backend_parse_gnu_properties): Likewise. | |
427 | (elf_backend_merge_gnu_properties): Likewise. | |
428 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. | |
429 | (elf_backend_parse_gnu_properties): Likewise. | |
430 | (elf_backend_setup_gnu_properties): Likewise. | |
431 | (elfNN_bed): Add elf_backend_parse_gnu_properties, | |
432 | elf_backend_merge_gnu_properties and | |
433 | elf_backend_setup_gnu_properties. | |
434 | ||
f96bd6c2 PC |
435 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
436 | ||
437 | * elf32-wasm32.c: Add relocation code, two relocs. | |
438 | * reloc.c: Add wasm32 relocations. | |
439 | * libbfd.h: Regenerate. | |
440 | * bfd-in2.h: Regenerate. | |
441 | * bfd/po/bfd.pot: Regenerate. | |
442 | ||
e643cb45 NC |
443 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
444 | ||
445 | PR binutils/18025 | |
446 | * coff-bfd.h (struct coff_section_data): Add new fields: | |
447 | saved_bias and bias. | |
448 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias | |
449 | computed for PE binaries. | |
450 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each | |
451 | missing abbrev. | |
452 | ||
086554e8 HPN |
453 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
454 | ||
455 | PR ld/16044 | |
456 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT | |
457 | to handle a local symbol with a hash-symbol-entry; without PLT. | |
458 | Add BFD_ASSERT for an incidental case with GOT entry present. | |
459 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol | |
460 | isn't forced-or-set local. | |
461 | ||
a6be0538 PC |
462 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
463 | ||
464 | * wasm-module.c: New file to support WebAssembly modules. | |
465 | * wasm-module.h: New file to support WebAssembly modules. | |
466 | * doc/webassembly.texi: Start documenting wasm-module.c. | |
467 | * config.bfd: Add wasm_vec. | |
468 | * targets.c: Likewise. | |
469 | * configure.ac: Likewise. | |
470 | * Makefile.am: Add entries for wasm-module.c. | |
471 | * Makefile.in: Regenerate. | |
472 | * configure: Regenerate. | |
473 | * po/SRC-POTFILES.in: Regenerate. | |
474 | ||
79b1d3cb PC |
475 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
476 | ||
477 | * cpu-wasm32.c: New file to support wasm32 architecture. | |
478 | * elf32-wasm32.c: New file to support wasm32 architecture. | |
479 | * Makefile.am: Add wasm32 architecture. | |
480 | * archures.c: Likewise. | |
481 | * config.bfd: Likewise. | |
482 | * configure.ac: Likewise. | |
483 | * targets.c: Likewise. | |
484 | * Makefile.in: Regenerate. | |
485 | * bfd-in2.h: Regenerate. | |
486 | * configure: Regenerate. | |
487 | * po/SRC-POTFILES.in: Regenerate. | |
488 | ||
aaed6f5b AM |
489 | 2017-03-20 Alan Modra <amodra@gmail.com> |
490 | ||
491 | PR 21266 | |
492 | * elf64-ppc.c (compare_symbols): Stabilize sort. | |
493 | ||
82e66161 AM |
494 | 2017-03-18 Alan Modra <amodra@gmail.com> |
495 | ||
496 | * elf64-ppc.c (struct ppc_link_hash_table): Add | |
497 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
498 | (ppc_build_one_stub): Set flags on emitting dynamic | |
499 | relocation to ifunc. | |
500 | (ppc64_elf_relocate_section): Likewise. | |
501 | (ppc64_elf_finish_dynamic_symbol): Likewise. | |
502 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with | |
503 | local dynamic relocs to ifuncs. | |
504 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add | |
505 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
506 | (ppc_elf_relocate_section): Set flag on emitting dynamic | |
507 | relocation to ifuncs. | |
508 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
509 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local | |
510 | dynamic relocs to ifuncs. | |
511 | ||
f955cccf NC |
512 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
513 | ||
514 | PR binutils/21202 | |
515 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to | |
516 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. | |
517 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to | |
518 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. | |
519 | * bfd-in2.h: Regenerate. | |
520 | * libbfd.h: Regenerate. | |
521 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc | |
522 | names. | |
523 | (IS_AARCH64_TLSDESC_RELOC): Likewise. | |
524 | (elfNN_aarch64_howto_table): Likewise. | |
525 | (aarch64_tls_transition_without_check): Likewise. | |
526 | (aarch64_reloc_got_type): Likewise. | |
527 | (elfNN_aarch64_final_link_relocate): Likewise. | |
528 | (elfNN_aarch64_tls_relax): Likewise. | |
529 | (elfNN_aarch64_relocate_section): Likewise. | |
530 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
531 | (elfNN_aarch64_check_relocs): Likewise. | |
532 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
533 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
534 | ||
4aef7643 AM |
535 | 2017-03-11 Alan Modra <amodra@gmail.com> |
536 | ||
537 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function | |
538 | parameter is in fact used. Whitespace fixes. | |
539 | * elf64-ppc.c: Likewise. | |
540 | ||
f03265d9 ST |
541 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
542 | ||
543 | * rs6000-core.c (CORE_NEW): Simplify macro when | |
544 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. | |
545 | ||
b1b07054 AM |
546 | 2017-03-07 Alan Modra <amodra@gmail.com> |
547 | ||
548 | PR 21224 | |
549 | PR 20519 | |
550 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing | |
551 | dyn_relocs check. | |
552 | ||
2e0ce1c8 AM |
553 | 2017-03-05 Alan Modra <amodra@gmail.com> |
554 | ||
555 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. | |
556 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. | |
557 | (next_cie_fde_offset): New function. | |
558 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. | |
559 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to | |
560 | four bytes. Align CIEs to four or eight bytes depending on | |
561 | per_encoding_aligned8. Align FDEs according to their encoding. | |
562 | Pad last FDE to output section alignment. | |
563 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove | |
564 | assertion. | |
565 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. | |
566 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. | |
567 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. | |
568 | ||
f98450c6 NC |
569 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
570 | ||
571 | PR ld/21212 | |
572 | * elf.c (rewrite_elf_program_header): Do not issue a warning for | |
d20928fa | 573 | empty segments which have a zero filesz, but a non-zero memsz. |
f98450c6 | 574 | |
673cff9b AM |
575 | 2017-03-02 Alan Modra <amodra@gmail.com> |
576 | ||
577 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. | |
578 | ||
3de43e7b AM |
579 | 2017-02-28 Alan Modra <amodra@gmail.com> |
580 | ||
581 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. | |
582 | (ppc64_elf_relocate_section): Likewise. | |
583 | ||
4ef97a1b AM |
584 | 2017-02-28 Alan Modra <amodra@gmail.com> |
585 | ||
586 | PR 20995 | |
587 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab | |
588 | rather than elf32_nios2_hash_table or elf_hash_table. | |
589 | (create_got_section): Likewise. | |
590 | (nios2_elf32_finish_dynamic_symbol): Likewise. | |
591 | (nios2_elf32_adjust_dynamic_symbol): Likewise. | |
592 | (nios2_elf32_size_dynamic_sections): Likewise. | |
593 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot | |
594 | vars. Use htab equivalents directly instead. Don't create | |
595 | all dynamic sections on needing just the GOT. Use a goto | |
596 | rather than a fall-through with reloc test. Ensure | |
597 | htab->dynobj is set when making dynamic sreloc section. | |
598 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab | |
599 | equivalent directly instead. Don't segfault on looking for | |
600 | .dynamic when dynamic sections have not been created. Don't | |
601 | segfault on .got.plt being discarded. | |
602 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. | |
603 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete | |
604 | fixme and another not so relevant comment. | |
605 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not | |
606 | already set, set hash table dynobj on creating .sbss. | |
607 | ||
7ba71655 AM |
608 | 2017-02-28 Alan Modra <amodra@gmail.com> |
609 | ||
610 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. | |
611 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. | |
612 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. | |
613 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. | |
614 | (ppc64_elf_relocate_section): Likewise. | |
615 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. | |
616 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. | |
617 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. | |
618 | * libbfd.h: Regenerate. | |
619 | * bfd-in2.h: Regenerate. | |
620 | ||
afbf7e8e AM |
621 | 2017-02-28 Alan Modra <amodra@gmail.com> |
622 | ||
623 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make | |
624 | dynamic .data.rel.ro read-only. | |
625 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section | |
626 | rather than section flags when deciding where copy reloc goes. | |
627 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
628 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
629 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
630 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. | |
631 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. | |
632 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. | |
633 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. | |
634 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. | |
635 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
636 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. | |
637 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. | |
638 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. | |
639 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
640 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
641 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. | |
642 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. | |
643 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
644 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
645 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. | |
646 | ||
0e392101 MR |
647 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
648 | ||
649 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the | |
650 | `jalr $0, $25' instruction encoding. | |
651 | ||
bd757ca7 NC |
652 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
653 | ||
654 | PR ld/21180 | |
655 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid | |
656 | generating a seg-fault when encountering a symbol that has been | |
657 | deleted by garbage collection. | |
658 | ||
034fed0b AM |
659 | 2017-02-25 Alan Modra <amodra@gmail.com> |
660 | ||
661 | * elf32-arc.c (struct dynamic_sections): Delete. | |
662 | (enum dyn_section_types): Delete. | |
663 | (dyn_section_names): Delete. | |
664 | (arc_create_dynamic_sections): Delete. | |
665 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't | |
666 | segfault on discarded .rela.plt section. | |
667 | (elf_arc_size_dynamic_sections): Formatting. Don't call | |
668 | arc_create_dynamic_sections. Don't allocate memory for sections | |
669 | handled by the generic linker. Correct code finding relocs in | |
670 | read-only sections. Set SEC_EXCLUDE on zero size .got, | |
671 | .got.plt, and .dynbss sections. Do set .interp for pies. | |
672 | ||
d0f744f9 AW |
673 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
674 | ||
675 | * elfnn-riscv.c (GP_NAME): New macro. | |
676 | (riscv_global_pointer_value): Use it. | |
677 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same | |
678 | output section, consider only that section's alignment. | |
679 | ||
5d58c733 MR |
680 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
681 | ||
682 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. | |
683 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. | |
684 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. | |
685 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. | |
686 | ||
c1556ecd MR |
687 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
688 | ||
689 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> | |
690 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' | |
691 | or misaligned. | |
692 | ||
5499c7c7 AM |
693 | 2017-02-23 Alan Modra <amodra@gmail.com> |
694 | ||
695 | PR 20744 | |
696 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE | |
697 | 16D relocations. | |
698 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. | |
699 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL | |
700 | relocs. | |
701 | ||
902e9fc7 MR |
702 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
703 | ||
704 | PR ld/20828 | |
705 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version | |
706 | processing ahead of the call to `elf_gc_sweep_symbol'. | |
707 | ||
758d96d8 NC |
708 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
709 | ||
710 | PR binutils/21193 | |
711 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly | |
712 | created section 4-byte alignment. | |
713 | ||
6528b6eb AM |
714 | 2017-02-22 Alan Modra <amodra@gmail.com> |
715 | ||
716 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault | |
717 | on .got or .plt output section being discarded by script. | |
718 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move | |
719 | vxworks splt temp. | |
720 | ||
24f1a751 AM |
721 | 2017-02-21 Alan Modra <amodra@gmail.com> |
722 | ||
723 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit | |
724 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. | |
725 | ||
64487780 AM |
726 | 2017-02-20 Alan Modra <amodra@gmail.com> |
727 | ||
728 | PR 21181 | |
729 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero | |
730 | if DT_RELSZ/DT_RELASZ is zero. | |
731 | ||
6438d1be NC |
732 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
733 | ||
734 | * compress.c (bfd_get_full_section_contents): Remember to reduce | |
735 | compressed size by the sizeof the compression header when | |
736 | decompressing the contents. | |
737 | ||
4bc26c69 PA |
738 | 2017-02-17 Pedro Alves <palves@redhat.com> |
739 | ||
740 | * srec.c (Chunk): Rename to ... | |
741 | (_bfd_srec_len): ... this. | |
742 | (S3Forced): Rename to ... | |
743 | (_bfd_srec_forceS3): ... this. | |
744 | * objcopy.c: Adjust all references. | |
745 | ||
7ec22e0f PA |
746 | 2017-02-17 Pedro Alves <palves@redhat.com> |
747 | ||
748 | * archive.c (bsd_write_armap): Rename to ... | |
749 | (_bfd_bsd_write_armap): ... this. | |
750 | (coff_write_armap): Rename to ... | |
751 | (_bfd_coff_write_armap): ... this. | |
752 | * libbfd-in.h (bsd_write_armap): Rename to ... | |
753 | (_bfd_bsd_write_armap): ... this. | |
754 | (coff_write_armap): Rename to ... | |
755 | (_bfd_coff_write_armap): ... this. | |
756 | * aout-target.h, aout-tic30.c: Adjust all users. | |
757 | * libbfd.h: Regenerate. | |
758 | ||
8c8402cc PA |
759 | 2017-02-17 Pedro Alves <palves@redhat.com> |
760 | ||
761 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. | |
762 | (warn_deprecated): Rename to ... | |
763 | (_bfd_warn_deprecated): ... this. | |
764 | * libbfd.c (warn_deprecated): Rename to ... | |
765 | (_bfd_warn_deprecated): ... this. | |
766 | * bfd-in2.h: Regenerate. | |
767 | ||
c7c3d11b PA |
768 | 2017-02-17 Pedro Alves <palves@redhat.com> |
769 | ||
770 | * bfdio.c (real_ftell): Rename to ... | |
771 | (_bfd_real_ftell): ... this. | |
772 | (real_fseek): Rename to ... | |
773 | (_bfd_real_fseek): ... this. | |
774 | (real_fopen): Rename to ... | |
775 | (_bfd_real_fopen): ... this. | |
776 | * libbfd-in.h (real_ftell): Rename to ... | |
777 | (_bfd_real_ftell): ... this. | |
778 | (real_fseek): Rename to ... | |
779 | (_bfd_real_fseek): ... this. | |
780 | (real_fopen): Rename to ... | |
781 | (_bfd_real_fopen): ... this. | |
782 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. | |
783 | * libbfd.h: Regenerate. | |
784 | ||
4265548c PA |
785 | 2017-02-17 Pedro Alves <palves@redhat.com> |
786 | ||
787 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. | |
788 | * libbfd.c (read_unsigned_leb128): Rename to ... | |
789 | (_bfd_read_unsigned_leb128): ... this. | |
790 | (read_signed_leb128): Rename to ... | |
791 | (_bfd_read_signed_leb128): ... this. | |
792 | (safe_read_leb128): Rename to ... | |
793 | (_bfd_safe_read_leb128): ... this. | |
794 | * libbfd-in.h (read_unsigned_leb128): Rename to ... | |
795 | (_bfd_read_unsigned_leb128): ... this. | |
796 | (read_signed_leb128): Rename to ... | |
797 | (_bfd_read_signed_leb128): ... this. | |
798 | (safe_read_leb128): Rename to ... | |
799 | (_bfd_safe_read_leb128): ... this. | |
800 | * libbfd.h: Renegerate. | |
801 | ||
3239a423 AB |
802 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
803 | ||
804 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup | |
805 | before trying to fine matching file and line information. | |
806 | ||
90ed9b8b AB |
807 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
808 | ||
809 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. | |
810 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does | |
811 | not match current bfd, then reload debug information. Record bfd | |
812 | we're loading debug info for in the stash. If we have debug | |
813 | informatin in the cache then perform section placement before | |
814 | returning. | |
815 | ||
a8c75b76 AM |
816 | 2017-02-16 Alan Modra <amodra@gmail.com> |
817 | ||
818 | PR 21000 | |
819 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. | |
820 | * elfxx-target.h (elf_backend_no_page_alias): Define. | |
821 | (elfNN_bed): Init new field. | |
822 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias | |
823 | ensure PT_LOAD segment starts on a new page. | |
824 | * elf32-hppa.c (elf_backend_no_page_alias): Define. | |
825 | ||
247d6c4c AM |
826 | 2017-02-16 Alan Modra <amodra@gmail.com> |
827 | ||
828 | PR 21132 | |
829 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs | |
830 | if pic. | |
831 | ||
90571206 JW |
832 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
833 | ||
834 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. | |
835 | * bfd-in2.h: Regenerated. | |
836 | ||
2a568401 L |
837 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
838 | ||
839 | PR ld/21168 | |
840 | * elf32-i386.c (elf_i386_relocate_section): Allow | |
841 | "lea foo@GOT, %reg" in PIC. | |
842 | ||
a5def14f L |
843 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
844 | ||
845 | PR ld/20244 | |
846 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC | |
847 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation | |
848 | error against local IFUNC symbol without a base register for | |
849 | PIC. | |
850 | ||
174d0a74 MR |
851 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
852 | ||
853 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than | |
854 | `%P: %H:' with `info->callbacks->einfo'. | |
855 | (ppc_elf_relocate_section): Likewise. | |
856 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
857 | (ppc64_elf_edit_toc): Likewise. | |
858 | (ppc64_elf_relocate_section): Likewise. | |
859 | ||
e278ae05 AM |
860 | 2017-02-14 Alan Modra <amodra@gmail.com> |
861 | ||
862 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
863 | --gc-keep-exported, and test versioned field of sym rather than | |
864 | looking for @ in name. | |
865 | ||
10ddfe62 PD |
866 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
867 | ||
868 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to | |
869 | __global_pointer$. | |
870 | ||
d11135f5 NC |
871 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
872 | ||
873 | PR binutils/21151 | |
874 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid | |
875 | unit length field. | |
876 | ||
cc162427 AW |
877 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
878 | ||
879 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT | |
880 | entry size if PLT header is written. | |
881 | ||
3d044c0c SL |
882 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
883 | ||
884 | Fix sparc64 dynamic relocation processing to use the dynamic | |
885 | symbol count. | |
886 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' | |
887 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() | |
888 | should be used. | |
889 | ||
1b7e3d2f NC |
890 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
891 | ||
892 | PR 21096 | |
893 | * coffcode.h (coff_write_object_contents): Enlarge size of | |
894 | s_name_buf in order to avoid compile time warning about possible | |
895 | integer truncation. | |
896 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower | |
897 | 32-bits of insn value before printing into buffer. | |
898 | ||
e17b0c35 MR |
899 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
900 | ||
901 | * elfxx-mips.c (mips_elf_hash_sort_data): Add | |
902 | `max_local_dynindx'. | |
903 | (mips_elf_sort_hash_table): Handle it. | |
904 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local | |
905 | symbols bump up `max_local_dynindx' rather than | |
906 | `max_non_got_dynindx'. | |
907 | ||
55f8b9d2 MR |
908 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
909 | ||
910 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the | |
911 | `min_got_dynindx', `max_unref_got_dynindx' and | |
912 | `max_non_got_dynindx' members to the `bfd_size_type' data type. | |
913 | (mips_elf_sort_hash_table): Adjust accordingly. | |
914 | ||
0f8c4b60 MR |
915 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
916 | ||
917 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout | |
918 | to access the hash table. | |
919 | ||
17a80fa8 MR |
920 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
921 | ||
922 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on | |
923 | non-NULL `htab' to the beginning. | |
924 | ||
8f56d4fd MR |
925 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
926 | ||
927 | * elflink.c (elf_gc_sweep): Wrap overlong line. | |
928 | ||
8b10b0b3 MR |
929 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
930 | ||
931 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... | |
932 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. | |
933 | * elfxx-mips.c (mips_elf_link_hash_table): Add | |
934 | `ignore_branch_isa' member. | |
935 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch | |
936 | in branch relocation calculation as an error if | |
937 | `ignore_branch_isa' has been set. | |
938 | (_bfd_mips_elf_insn32): Rename to... | |
939 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' | |
940 | parameter to `insn32' and add an `ignore_branch_isa' parameter. | |
941 | Handle the new parameter. | |
942 | ||
1fbd05e1 HPN |
943 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
944 | ||
22d9a0de HPN |
945 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
946 | local variable dynobj. | |
947 | ||
1fbd05e1 HPN |
948 | PR ld/20995 |
949 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. | |
950 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the | |
951 | executable from read-only sections into sdynrelro. | |
952 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for | |
953 | dynamic relocs in sdynrelro. | |
954 | (elf_backend_want_dynrelro): Define. | |
955 | ||
4a7324e1 SH |
956 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
957 | ||
958 | * config.bfd (*-*-rtemsaout*): Mark as removed. | |
959 | ||
c75b4ebd SH |
960 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
961 | ||
962 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. | |
963 | (arm-*-rtems*): Move to (arm*-*-eabi*). | |
964 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). | |
965 | (m68-*-rtems*): Move to (m68*-*-elf*). | |
966 | ||
850d84f6 SH |
967 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
968 | ||
969 | * config.bfd (*-*-rtemscoff*): Mark as removed. | |
970 | ||
b531344c MR |
971 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
972 | ||
973 | PR ld/20828 | |
974 | * elflink.c (bfd_elf_record_link_assignment): Revert last | |
975 | change and don't ever clear `forced_local'. Set `mark' | |
976 | unconditionally. | |
977 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within | |
978 | file. | |
979 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... | |
980 | (bfd_elf_size_dynamic_sections): ... here. | |
981 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' | |
982 | and set `mark' instead in `__tls_get_addr_opt' processing. | |
983 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. | |
984 | ||
f0158f44 AM |
985 | 2017-01-24 Alan Modra <amodra@gmail.com> |
986 | ||
987 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases | |
988 | where dynamic relocs are preferable. Allow ifunc too. | |
989 | (ensure_undefweak_dynamic): New function. | |
990 | (allocate_dynrelocs): Use it here. Move plt handling last and | |
991 | don't make symbols dynamic, simplifying loop. Only make undef | |
992 | weak symbols with GOT entries dynamic. Correct condition | |
993 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct | |
994 | comments. Remove goto. | |
995 | (ppc_elf_relocate_section): Correct test for using dynamic | |
996 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
997 | to suit. Set up explicit tls_index entries and implicit GOT | |
998 | tls_index entries resolvable at link time for | |
999 | __tls_get_addr_opt. Simplify test to clear mem for prelink. | |
1000 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. | |
1001 | (ensure_undefweak_dynamic): New function. | |
1002 | (allocate_dynrelocs): Use it here. Only make undef weak symbols | |
1003 | with GOT entries dynamic. Remove unnecessary test of | |
1004 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. | |
1005 | (ppc64_elf_relocate_section): Correct test for using dynamic | |
1006 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
1007 | to suit. Set up explicit tls_index entries and implicit GOT | |
1008 | tls_index entries resolvable at link time for __tls_get_addr_opt. | |
1009 | Simplify expression to clear mem for prelink. | |
1010 | ||
2d0ca824 YN |
1011 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
1012 | ||
1013 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. | |
1014 | ||
7f784814 JW |
1015 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
1016 | ||
1017 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. | |
1018 | (elf_backend_hash_symbol): Define. | |
1019 | ||
81ff47b3 MR |
1020 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
1021 | ||
1022 | PR ld/20828 | |
1023 | * elflink.c (bfd_elf_record_link_assignment): Clear any | |
1024 | `forced_local' marking for DSO symbols that are not being | |
1025 | provided. | |
1026 | ||
640d6bfd KLC |
1027 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
1028 | ||
1029 | * elfnn-riscv.c (riscv_elf_object_p): New function. | |
1030 | ||
8361ed4d L |
1031 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
1032 | ||
1033 | PR ld/21038 | |
1034 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
1035 | plt_bnd_eh_frame. | |
1036 | (elf_x86_64_check_relocs): Create .eh_frame section for the | |
1037 | .plt.bnd section. | |
1038 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
1039 | .eh_frame section for the .plt.bnd section. | |
1040 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
1041 | for the .plt.bnd section. | |
1042 | ||
2425a30e NC |
1043 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
1044 | ||
1045 | PR binutils/20876 | |
1046 | * opncls.c (find_separate_debug_file): Add include_dirs | |
1047 | parameter. Only include the directory part of the bfd's filename | |
1048 | in search paths if include_dirs is true. Add a couple of extra | |
1049 | locations for looking for debug files. | |
1050 | ( bfd_follow_gnu_debuglink): Update invocation of | |
1051 | find_separate_debug_file. | |
1052 | (bfd_follow_gnu_debugaltlink): Likewise. | |
1053 | (get_build_id): New function: Finds the build-id of the given bfd. | |
1054 | (get_build_id_name): New function: Computes the name of the | |
1055 | separate debug info file for a bfd, based upon its build-id. | |
1056 | (check_build_id_file): New function: Checks to see if a separate | |
1057 | debug info file exists at the given location, and that its | |
1058 | build-id matches that of the original bfd. | |
1059 | (bfd_follow_build_id_debuglink): New function: Finds a separate | |
1060 | debug info file for a given bfd by using the build-id method. | |
1061 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id | |
1062 | method of locating a separate debug info file before using the | |
1063 | debuglink method. | |
1064 | * bfd-in2.h: Regenerate. | |
1065 | ||
9e659176 L |
1066 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1067 | ||
1068 | PR ld/21038 | |
1069 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. | |
1070 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and | |
1071 | elf_x86_64_eh_frame_plt_got. | |
1072 | (elf_x86_64_size_dynamic_sections): Get unwind info from | |
1073 | elf_x86_64_bnd_arch_bed for the BND PLT. | |
1074 | ||
f2e2d2f5 JS |
1075 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
1076 | ||
1077 | * config.bfd: Add entries for i686-redox and x86_64-redox. | |
1078 | ||
52b232b3 L |
1079 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1080 | ||
1081 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section | |
1082 | to 4 bytes. | |
1083 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
1084 | .eh_frame section to 4 bytes for x32. | |
1085 | (elf_x86_64_check_relocs): Likewise. | |
1086 | ||
fff53dae L |
1087 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1088 | ||
1089 | PR ld/20830 | |
1090 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. | |
1091 | (PLT_GOT_FDE_LENGTH): Likewise. | |
1092 | (elf_i386_plt_layout): Add eh_frame_plt_got and | |
1093 | eh_frame_plt_got_size. | |
1094 | (elf_i386_plt): Updated. | |
1095 | (elf_i386_link_hash_table): Add plt_got_eh_frame. | |
1096 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. | |
1097 | (elf_i386_size_dynamic_sections): Allocate and initialize | |
1098 | .eh_frame section for .plt.got. | |
1099 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for | |
1100 | .plt.got. | |
1101 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and | |
1102 | eh_frame_plt_got_size. | |
1103 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. | |
1104 | (PLT_GOT_FDE_LENGTH): Likewise. | |
1105 | (elf_x86_64_backend_data): Add eh_frame_plt_got and | |
1106 | eh_frame_plt_got_size. | |
1107 | (elf_x86_64_arch_bed): Updated. | |
1108 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and | |
1109 | eh_frame_plt_got_size. | |
1110 | (elf_x86_64_nacl_arch_bed): Likewise. | |
1111 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. | |
1112 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. | |
1113 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
1114 | .eh_frame section for .plt.got. | |
1115 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
1116 | for .plt.got. | |
1117 | ||
f129e49f L |
1118 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1119 | ||
1120 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
1121 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. | |
1122 | ||
cd6581da NC |
1123 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
1124 | ||
1125 | * dwarf2.c (lookup_address_in_function_table): Return early if | |
1126 | there are no functions in the given comp unit, or if the high | |
1127 | address of the last function in the comp unit is less than the | |
1128 | desired address. | |
1129 | ||
98f02962 NC |
1130 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
1131 | ||
1132 | PR binutils/21013 | |
1133 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error | |
1134 | message if there are too many symbols to load. | |
1135 | ||
ae4fda66 JC |
1136 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
1137 | ||
1138 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free | |
1139 | if relocs are cached. | |
1140 | ||
de1010f4 RF |
1141 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
1142 | ||
1143 | PR ld/21017 | |
1144 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry | |
1145 | for R_MICROBLAZE_GOTOFF_64. | |
1146 | ||
09fe2662 NC |
1147 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
1148 | ||
1149 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time | |
1150 | warning about using a possibly uninitialised variable. | |
1151 | ||
595e0a47 AM |
1152 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1153 | ||
1154 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. | |
1155 | (allocate_plt_static, allocate_dynrelocs): Use it. | |
1156 | ||
7bd9df3b AM |
1157 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1158 | ||
1159 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for | |
1160 | .PARISC.unwind section. | |
1161 | ||
5b86074c AM |
1162 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1163 | ||
1164 | PR ld/20989 | |
1165 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. | |
1166 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT | |
1167 | indirect to GOT pointer relative code edit. | |
1168 | ||
2571583a AM |
1169 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1170 | ||
1171 | Update year range in copyright notice of all files. | |
1172 | ||
5c1ad6b5 | 1173 | For older changes see ChangeLog-2016 |
3499769a | 1174 | \f |
5c1ad6b5 | 1175 | Copyright (C) 2017 Free Software Foundation, Inc. |
3499769a AM |
1176 | |
1177 | Copying and distribution of this file, with or without modification, | |
1178 | are permitted in any medium without royalty provided the copyright | |
1179 | notice and this notice are preserved. | |
1180 | ||
1181 | Local Variables: | |
1182 | mode: change-log | |
1183 | left-margin: 8 | |
1184 | fill-column: 74 | |
1185 | version-control: never | |
1186 | End: |