]>
Commit | Line | Data |
---|---|---|
25eb8346 JW |
1 | 2018-06-21 Jim Wilson <[email protected]> |
2 | ||
3 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment. | |
4 | Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset. | |
5 | ||
d388f643 AM |
6 | 2018-06-21 Alan Modra <[email protected]> |
7 | ||
8 | * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign". | |
9 | * doc/Makefile.in: Regenerate. | |
10 | ||
b939d8a0 RL |
11 | 2018-06-20 Renlin Li <[email protected]> |
12 | ||
13 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET | |
14 | to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC, | |
15 | BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC, | |
16 | BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC, | |
17 | BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC, | |
18 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, | |
19 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, | |
20 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, | |
21 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. | |
22 | ||
6077de06 NC |
23 | 2018-06-20 Nick Clifton <[email protected]> |
24 | ||
25 | PR 23316 | |
26 | * opncls.c (get_build_id): Check for a negative or excessive data | |
27 | size in the build-id note. | |
28 | ||
c6643fcc NC |
29 | 2018-06-20 Nick Clifton <[email protected]> |
30 | ||
31 | PR 23299 | |
32 | * mach-o.c (cputype): New function. | |
33 | (cpusubtype): New function. | |
34 | (bfd_mach_o_bfd_print_private_data): New function. Dispalys the | |
35 | values in the MACH-O file header. | |
36 | (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and | |
37 | cpusubtype fields from the input bfd's mach-o header to the output | |
38 | bfd. | |
39 | * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data): | |
40 | Redefine to bfd_mach_o_bfd_print_private_data. | |
41 | * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype. | |
42 | ||
789ff5b6 MR |
43 | 2018-06-19 Maciej W. Rozycki <[email protected]> |
44 | ||
45 | PR ld/22966 | |
46 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the | |
47 | `.got.plt' entry referred is in range. | |
48 | (mips_finish_exec_plt): Correct the range check for `.got.plt' | |
49 | start. Replace the assertion used for that with a proper error | |
50 | message. | |
51 | ||
6a382bce MR |
52 | 2018-06-19 Maciej W. Rozycki <[email protected]> |
53 | ||
54 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix | |
55 | formatting. | |
56 | ||
d0ac1c44 SM |
57 | 2018-06-19 Simon Marchi <[email protected]> |
58 | ||
59 | * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11. | |
60 | (INCLUDES): Rename to ... | |
61 | (AM_CPPFLAGS): ... this. | |
62 | * configure.ac: Remove AC_PREREQ. | |
63 | * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add | |
64 | info-in-builddir no-texinfo.tex. | |
65 | (info_TEXINFOS): Rename bfd.texinfo to bfd.texi. | |
66 | * doc/bfd.texinfo: Rename to ... | |
67 | * doc/bfd.texi: ... this. | |
68 | * Makefile.in: Re-generate. | |
69 | * aclocal.m4: Re-generate. | |
70 | * config.in: Re-generate. | |
71 | * configure: Re-generate. | |
72 | * doc/Makefile.in: Re-generate. | |
73 | ||
ed1299fe M |
74 | 2018-06-18 Mephi <[email protected]> |
75 | ||
76 | PR 23297 | |
77 | * mach-o-x86-64.c (x86_64_howto_table): Add entry for | |
78 | BFD_RELOC_MACH_O_X86_64_RELOC_TLV. | |
79 | (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc. | |
80 | (bfd_mach_o_x86_64_swap_reloc_out): Likewise. | |
81 | * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry. | |
82 | * bfd-in2.h: Regenerate. | |
83 | * libbfd.h: Regenerate. | |
84 | ||
6f20c942 FS |
85 | 2018-06-14 Faraz Shahbazker <[email protected]> |
86 | ||
87 | * elfxx-mips.c (print_mips_ases): Add GINV extension. | |
88 | ||
1f6f5dba L |
89 | 2018-06-14 H.J. Lu <[email protected]> |
90 | ||
91 | PR binutils/23267 | |
92 | * elf.c (_bfd_elf_get_symbol_version_string): Check if the first | |
93 | symbol version is base version. | |
94 | ||
7f923b7f AM |
95 | 2018-06-14 Alan Modra <[email protected]> |
96 | ||
97 | * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs". | |
98 | * elflink.c (_bfd_elf_init_2_index_sections): Comment fix. | |
99 | (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs". | |
100 | (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when | |
101 | "dynamic_relocs" is not set. | |
102 | * elfxx-mips.c (count_section_dynsyms): Likewise. | |
103 | ||
ff91d2f0 AM |
104 | 2018-06-14 Alan Modra <[email protected]> |
105 | ||
106 | PR 23282 | |
107 | * bfdio.c (bfd_seek): Optimize away seeks to current position. | |
108 | ||
730c3174 SE |
109 | 2018-06-13 Scott Egerton <[email protected]> |
110 | Faraz Shahbazker <[email protected]> | |
111 | ||
112 | * elfxx-mips.c (print_mips_ases): Add CRC. | |
113 | ||
ecf99cc0 L |
114 | 2018-06-08 H.J. Lu <[email protected]> |
115 | ||
116 | PR ld/23161 | |
117 | * elfxx-x86.c (elf_x86_hide_linker_defined): New function. | |
118 | (_bfd_x86_elf_link_check_relocs): Use it to hide hidden | |
119 | __bss_start, _end and _edata in shared libraries. | |
120 | ||
527278f3 AM |
121 | 2018-06-07 Alan Modra <[email protected]> |
122 | ||
123 | * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference | |
124 | __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs. | |
125 | ||
5c4ce239 AM |
126 | 2018-06-05 Alan Modra <[email protected]> |
127 | ||
128 | * bfd.c (struct bfd): Update comment on "where" usage. | |
129 | * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec", | |
130 | "iostream", and "where" from containing archive file. Return | |
131 | error on NULL iovec. | |
132 | (bfd_bread): Similarly, and return error attempted out of | |
133 | bounds archive element access. | |
134 | (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and | |
135 | "where" from containing archive file. | |
136 | (bfd_seek): Likewise. Return error on NULL iovec. Don't | |
137 | attempt to optimize away seeks. Don't paper over errors by | |
138 | calling bfd_tell. | |
139 | (bfd_get_mtime): Call bfd_stat rather than iovec->bstat. | |
140 | (bfd_get_size): Likewise. | |
141 | (bfd_mmap): Operate on and use iovec of containing archive | |
142 | file. Return error on NULL iovec. | |
143 | * cache.c (bfd_cache_lookup_worker): Abort if working on | |
144 | archive element bfd. | |
145 | (cache_bread_1): Delete bfd parameter, add FILE* parameter. | |
146 | Don't ignore zero byte reads. | |
147 | (cache_bread): Look up FILE* in cache here. Error on NULL | |
148 | lookup. | |
149 | (cache_bwrite): Rename "where" to "from". | |
150 | (cache_bmmap): Don't handle archive elements. | |
151 | * coffcode.h (coff_slurp_line_table): Exit early on zero | |
152 | lineno count. | |
153 | * bfd-in2.h: Regenerate. | |
154 | ||
27b07675 AM |
155 | 2018-06-05 Alan Modra <[email protected]> |
156 | ||
157 | PR 23254 | |
158 | * plugin.c (bfd_plugin_open_input): Allow for possibility of | |
159 | nested archives. Open file again for plugin. | |
160 | (try_claim): Don't save and restore file position. Close file | |
161 | if not claimed. | |
162 | * sysdep.h (O_BINARY): Define. | |
163 | ||
4b8e28c7 MF |
164 | 2018-06-04 Max Filippov <[email protected]> |
165 | ||
166 | * elf32-xtensa.c (xtensa_read_table_entries): Make global. | |
167 | (compute_fill_extra_space): Drop declaration. Rename function to | |
168 | xtensa_compute_fill_extra_space. | |
169 | (compute_ebb_actions, remove_dead_literal): Update references to | |
170 | compute_fill_extra_space. | |
171 | ||
8255c61b MF |
172 | 2018-06-04 Volodymyr Arbatov <[email protected]> |
173 | ||
174 | * elf32-xtensa.c (elf32xtensa_separate_props): New global | |
175 | variable. | |
176 | (xtensa_add_names): New function. | |
177 | (xtensa_property_section_name): Add new parameter | |
178 | separate_sections, use it to choose property section name. | |
179 | (xtensa_get_separate_property_section): New function. | |
180 | (xtensa_get_property_section): Invoke | |
181 | xtensa_get_separate_property_section to get individual property | |
182 | section if it exists, common property section otherwise. | |
183 | (xtensa_make_property_section): Pass elf32xtensa_separate_props | |
184 | to xtensa_property_section_name. | |
185 | ||
95da9854 L |
186 | 2018-06-04 H.J. Lu <[email protected]> |
187 | ||
188 | PR binutils/23146 | |
189 | * bfd-in.h: Include "diagnostics.h". | |
190 | * bfd-in2.h: Regenerated. | |
191 | * elf32-arm.c (elf32_arm_nabi_write_core_note): Use | |
192 | DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and | |
193 | DIAGNOSTIC_POP to silence GCC 8.1 warnings with | |
194 | -Wstringop-truncation. | |
195 | * elf32-ppc.c (ppc_elf_write_core_note): Likewse. | |
196 | * elf32-s390.c (elf_s390_write_core_note): Likewse. | |
197 | * elf64-ppc.c (ppc64_elf_write_core_note): Likewse. | |
198 | * elf64-s390.c (elf_s390_write_core_note): Likewse. | |
199 | * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse. | |
200 | ||
137b5cbd JW |
201 | 2018-06-03 Jim Wilson <[email protected]> |
202 | ||
cf7a5066 JW |
203 | PR ld/23244 |
204 | * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check | |
205 | for and handle an undefined weak with no PLT. | |
206 | ||
137b5cbd JW |
207 | PR ld/22756 |
208 | * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check | |
209 | to code that ignores duplicate symbols. | |
210 | ||
55e99962 L |
211 | 2018-06-01 H.J. Lu <[email protected]> |
212 | ||
213 | * version.m4: Bump version to 2.30.52 | |
214 | * configure: Regenerated. | |
215 | ||
030157d8 AM |
216 | 2018-06-01 Alan Modra <[email protected]> |
217 | ||
218 | * bfd.c (_bfd_error_handler): Arrange for this function to be | |
219 | declared in bfd-in2.h. | |
220 | * libbfd-in.h (_bfd_error_handler): Don't declare. | |
221 | * libbfd.h: Regenerate. | |
222 | * bfd-in2.h: Regenerate. | |
223 | ||
421acf18 AC |
224 | 2018-05-30 Amaan Cheval <[email protected]> |
225 | ||
226 | * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems* | |
227 | This is needed to generate UEFI application image files from ELFs. | |
228 | ||
92e68c1d L |
229 | 2018-05-28 H.J. Lu <[email protected]> |
230 | ||
231 | * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry, | |
232 | plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset, | |
233 | plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and | |
234 | plt_tlsdesc_got2_insn_end for TLSDESC entry. | |
235 | (elf_i386_lazy_ibt_plt): Likewise. | |
236 | (elf_i386_nacl_plt): Likewise. | |
237 | * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ... | |
238 | (elf_x86_64_tlsdesc_plt_entry): This. | |
239 | (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry, | |
240 | plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset, | |
241 | plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and | |
242 | plt_tlsdesc_got2_insn_end for TLSDESC entry. | |
243 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
244 | (elf_x86_64_lazy_ibt_plt): Likewise. | |
245 | (elf_x32_lazy_ibt_plt): Likewise. | |
246 | (elf_x86_64_nacl_plt): Likewise. | |
247 | (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry, | |
248 | plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset, | |
249 | plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and | |
250 | plt_tlsdesc_got2_insn_end to update TLSDESC entry. | |
251 | * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments. | |
252 | Add plt_tlsdesc_entry, plt_tlsdesc_entry_size, | |
253 | plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset, | |
254 | plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end. | |
255 | (elf_x86_non_lazy_plt_layout): Update comments. | |
256 | (elf_x86_plt_layout): Likewise. | |
257 | ||
ac98f9e2 L |
258 | 2018-05-28 H.J. Lu <[email protected]> |
259 | ||
260 | PR ld/23238 | |
261 | * elf-s390-common.c (elf_s390_add_symbol_hook): Removed. | |
262 | * elf32-arc.c (elf_arc_add_symbol_hook): Likewise. | |
263 | (elf_backend_add_symbol_hook): Likewise. | |
264 | * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise. | |
265 | (elf_backend_add_symbol_hook): Likewise. | |
266 | * elf32-s390.c (elf_backend_add_symbol_hook): Likewise. | |
267 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise. | |
268 | (elf_backend_add_symbol_hook): Likewise. | |
269 | * elf64-s390.c (elf_backend_add_symbol_hook): Likewise. | |
270 | * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise. | |
271 | * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise. | |
272 | (elf_backend_add_symbol_hook): Likewise. | |
273 | * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC | |
274 | handling. | |
275 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. | |
276 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise. | |
277 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise. | |
278 | * elflink.c (elf_link_add_object_symbols): Set | |
279 | elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols. | |
280 | ||
099bb8fb L |
281 | 2018-05-26 H.J. Lu <[email protected]> |
282 | ||
283 | PR ld/23194 | |
284 | * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New. | |
285 | * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function. | |
286 | Extracted from _bfd_elf_link_assign_sym_version. | |
287 | (_bfd_elf_link_hide_sym_by_version): New function. | |
288 | (_bfd_elf_link_assign_sym_version): Use | |
289 | _bfd_elf_link_hide_versioned_symbol. | |
290 | * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call | |
291 | _bfd_elf_link_hide_sym_by_version instead of | |
292 | bfd_hide_sym_by_version. Don't check unversioned symbol. | |
293 | ||
277eb7f6 AM |
294 | 2018-05-25 Alan Modra <[email protected]> |
295 | ||
296 | * Makefile.in: Regenerate. | |
297 | * po/SRC-POTFILES.in: Regenerate. | |
298 | ||
629dabe3 AM |
299 | 2018-05-25 Alan Modra <[email protected]> |
300 | ||
301 | * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS. | |
302 | * configure: Regenerate. | |
303 | ||
9ef6d1e3 L |
304 | 2018-05-23 H.J. Lu <[email protected]> |
305 | ||
306 | * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING | |
307 | to data. | |
308 | ||
215f5271 AM |
309 | 2018-05-22 Alan Modra <[email protected]> |
310 | ||
311 | PR 23207 | |
312 | * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec | |
313 | is NULL. | |
314 | (elf32_hppa_size_stubs): Only create stubs for load, alloc, code | |
315 | sections. | |
316 | (final_link_relocate): Revert last change. | |
317 | ||
7455c018 AM |
318 | 2018-05-22 Alan Modra <[email protected]> |
319 | ||
320 | PR 23207 | |
321 | * elf32-hppa.c (final_link_relocate): Don't look for plt call | |
322 | stubs in non-alloc sections. | |
323 | ||
34a87bb0 L |
324 | 2018-05-21 H.J. Lu <[email protected]> |
325 | ||
326 | PR ld/23201 | |
327 | * aout-target.h (MY_bfd_link_hide_symbol): New. | |
328 | * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise. | |
329 | * binary.c (binary_bfd_link_hide_symbol): Likewise. | |
330 | * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise. | |
331 | * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise. | |
332 | * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise. | |
333 | * coffcode.h (coff_bfd_link_hide_symbol): Likewise. | |
334 | * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise. | |
335 | * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise. | |
336 | * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise. | |
337 | * ihex.c (ihex_bfd_link_hide_symbol): Likewise. | |
338 | * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise. | |
339 | * linker.c (_bfd_generic_link_hide_symbol): Likewise. | |
340 | (bfd_link_hide_symbol): Likewise. | |
341 | * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise. | |
342 | * mmo.c (mmo_bfd_link_hide_symbol): Likewise. | |
343 | * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise. | |
344 | * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise. | |
345 | * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise. | |
346 | * som.c (som_bfd_link_hide_symbol): Likewise. | |
347 | * srec.c (srec_bfd_link_hide_symbol): Likewise. | |
348 | * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise. | |
349 | * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise. | |
350 | (alpha_vms_bfd_link_hide_symbol): Likewise. | |
351 | * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise. | |
352 | * coff64-rs6000.c (rs6000_xcoff64_vec): Add | |
353 | _bfd_generic_link_hide_symbol. | |
354 | (rs6000_xcoff64_aix_vec): Likewise. | |
355 | * elflink.c (bfd_elf_record_link_assignment): Don't make forced | |
356 | local symbol dynamic. | |
357 | (_bfd_elf_link_hide_symbol): New function. | |
358 | * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't | |
359 | check root.ldscript_def. | |
360 | * targets.c (bfd_target): Add _bfd_link_hide_symbol. | |
361 | (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol. | |
362 | * bfd-in2.h: Regenerated. | |
363 | * libbfd.h: Likewise. | |
364 | ||
bae363f1 L |
365 | 2018-05-21 H.J. Lu <[email protected]> |
366 | ||
367 | PR binutils/23199 | |
368 | * elf.c (setup_group): Mark section in a section group with | |
369 | SHF_GROUP. | |
370 | ||
97373b2e L |
371 | 2018-05-18 H.J. Lu <[email protected]> |
372 | ||
373 | PR ld/23194 | |
374 | * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't | |
375 | set eh->local_ref to 1 if a symbol is versioned and there is a | |
376 | version script. | |
377 | ||
7f999549 JW |
378 | 2018-05-18 Kito Cheng <[email protected]> |
379 | ||
380 | * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle | |
381 | EF_RISCV_RVE. | |
382 | ||
6487709f JW |
383 | 2018-05-18 Jim Wilson <[email protected]> |
384 | ||
385 | * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if | |
386 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. | |
387 | (riscv_elf_relocate_section): Don't generate dynamic relocation if | |
388 | UNDEFWEAK_NO_DYNAMIC_RELOC is true. | |
389 | (riscv_elf_finish_dynamic_symbol): Likewise. | |
390 | ||
7b4ae824 JD |
391 | 2018-05-18 John Darrington <[email protected]> |
392 | ||
393 | * Makefile.am: Add s12z files. | |
394 | * Makefile.in: Regenerate. | |
395 | * archures.c: Add bfd_s12z_arch. | |
396 | * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24. | |
397 | * bfd-in2.h: Regenerate. | |
398 | * config.bfd: Add s12z target. | |
399 | * configure.ac: Add s12z target. | |
400 | * configure: Regenerate. | |
401 | * cpu-s12z.c: New file. | |
402 | * elf32-s12z.c: New file. | |
403 | * libbfd.c (bfd_putb24): New function. | |
404 | (bfd_putl24): New function. | |
405 | * libbfd.h: Regenerate. | |
406 | * reloc.c: Add s12z relocations. | |
407 | (bfd_get_reloc_size): Handle size 5 relocs. | |
408 | * targets.c: Add s12z_elf32_vec. | |
409 | ||
011b32fd L |
410 | 2018-05-18 H.J. Lu <[email protected]> |
411 | ||
412 | PR ld/23189 | |
413 | * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X | |
414 | like R_386_GOT32. | |
415 | * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't | |
416 | set eh->local_ref to 1 for linker defined symbols. | |
417 | ||
4bba0fb1 AM |
418 | 2018-05-18 Alan Modra <[email protected]> |
419 | ||
420 | PR 23199 | |
421 | * elf.c (setup_group): Formatting. Check that SHT_GROUP entries | |
422 | don't point at other SHT_GROUP sections. Set shdr corresponding | |
423 | to invalid entry, to NULL rather than section 0. Identify | |
424 | SHT_GROUP section index when reporting an error. Cope with NULL | |
425 | shdr pointer. | |
426 | ||
8722de9c AM |
427 | 2018-05-18 Alan Modra <[email protected]> |
428 | ||
429 | * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout. | |
430 | * configure.ac (HAVE_HIDDEN): Check compiler support for hidden | |
431 | visibility. | |
432 | * libbfd.h: Regenerate. | |
433 | * configure: Regenerate. | |
434 | * config.in: Regenerate. | |
435 | ||
0b439543 AM |
436 | 2018-05-18 Alan Modra <[email protected]> |
437 | ||
438 | * libbfd-in.h: Add include guard. | |
439 | * libcoff-in.h: Likewise. | |
440 | * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif. | |
441 | * doc/Makefile.in: Regenerate. | |
442 | * libbfd.h: Regenerate. | |
443 | * libcoff.h: Regenerate. | |
444 | ||
1624c9ca MR |
445 | 2018-05-16 Maciej W. Rozycki <[email protected]> |
446 | ||
447 | * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'. | |
448 | ||
7cf7fcc8 AM |
449 | 2018-05-16 Alan Modra <[email protected]> |
450 | ||
451 | PR 22458 | |
452 | * format.c (struct bfd_preserve): Add section_id. | |
453 | (bfd_preserve_save, bfd_preserve_restore): Save and restore | |
454 | _bfd_section_id. | |
455 | (bfd_reinit): Set _bfd_section_id. | |
456 | (bfd_check_format_matches): Put all matches of any priority into | |
457 | matching_vector. Save initial section id and start each attempted | |
458 | match at that section id. | |
459 | * libbfd-in.h (_bfd_section_id): Declare. | |
460 | * section.c (_bfd_section_id): Rename from section_id and make | |
461 | global. Adjust uses. | |
462 | (bfd_get_next_section_id): Delete. | |
463 | * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of | |
464 | bfd_get_section_id with _bfd_section_id. | |
465 | * libbfd.h: Regenerate. | |
466 | * bfd-in2.h: Regenerate. | |
467 | ||
810ed4db CG |
468 | 2018-05-15 Christophe Guillon <[email protected]> |
469 | ||
470 | * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields | |
471 | of the aux structure are initialised. | |
472 | ||
1678bd35 FT |
473 | 2018-05-15 Francois H. Theron <[email protected]> |
474 | ||
475 | * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef. | |
476 | ||
293b4d4f NC |
477 | 2018-05-15 Nick Clifton <[email protected]> |
478 | ||
479 | * po/pt.po: New Portuguese translation. | |
480 | * configure.ac (ALL_LINGUAS): Add pt. | |
481 | * configure: Regenerate. | |
482 | ||
4ec09950 L |
483 | 2018-05-14 H.J. Lu <[email protected]> |
484 | ||
485 | PR ld/23169 | |
486 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue | |
487 | an error on IFUNC pointer defined in PDE. | |
488 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call | |
489 | _bfd_x86_elf_link_fixup_ifunc_symbol. | |
490 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
491 | * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New | |
492 | function. | |
493 | * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New. | |
494 | ||
9bc935ef L |
495 | 2018-05-14 H.J. Lu <[email protected]> |
496 | ||
497 | PR ld/23162 | |
498 | * elfxx-x86.c (elf_x86_linker_defined): New function. | |
499 | (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start, | |
500 | _end and _edata locally defined within executables. | |
501 | ||
9933dc52 AM |
502 | 2018-05-12 Alan Modra <[email protected]> |
503 | ||
504 | PR 20659 | |
505 | * elf.c (rewrite_elf_program_header): Use segment_mark only for | |
506 | PT_LOAD headers. Delete first_matching_lma and first_suggested_lma. | |
507 | Instead make matching_lma and suggested_lma pointers to the | |
508 | sections. Align section vma and lma calculated from segment. | |
509 | Don't clear includes_phdrs or includes_filehdr based on p_paddr | |
510 | test. Try to handle alignment padding before first section by | |
511 | adjusting new segment lma down. Adjust PT_PHDR map p_paddr. | |
512 | ||
493ffac5 DD |
513 | 2018-05-09 Dimitar Dimitrov <[email protected]> |
514 | ||
515 | * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation | |
516 | conformant to TI ABI. | |
517 | (pru_elf32_relax_section): Likewise. | |
518 | (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code. | |
519 | * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend. | |
520 | (pru_elf32_pmem_relocate): Trap - should not get here. | |
521 | (pru_elf32_relocate_section): Add support for REL relocations. | |
522 | (elf_info_to_howto_rel): Enable REL. | |
523 | (elf_backend_may_use_rel_p): Likewise. | |
524 | (elf_backend_may_use_rela_p): Likewise. | |
525 | (elf_backend_default_use_rela_p): Likewise. | |
526 | ||
b4560c7d AM |
527 | 2018-05-09 Alan Modra <[email protected]> |
528 | ||
529 | PR 23148 | |
530 | * peXXigen.c (pe_print_edata): Correct minimum size. | |
531 | ||
53db9cf9 AM |
532 | 2018-05-09 Alan Modra <[email protected]> |
533 | ||
534 | PR 23147 | |
535 | * peXXigen.c (pe_print_idata): Bound check hint_addr. | |
536 | ||
95a6d235 NC |
537 | 2018-05-08 Nick Clifton <[email protected]> |
538 | ||
539 | PR 22809 | |
540 | * elf.c (bfd_elf_get_str_section): Check for an excessively large | |
541 | string section. | |
542 | * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the | |
543 | attribute section is larger than the size of the file. | |
544 | ||
7bd8862c AM |
545 | 2018-05-07 Alan Modra <[email protected]> |
546 | ||
547 | * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than | |
548 | strncmp when checking for ".bf" special symbol. | |
549 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags | |
550 | section name a char array, remove sentinal known_sections entry, | |
551 | and adjust loop over known_sections to suit. Use memcmp rather | |
552 | than strncmp. | |
553 | ||
602f1657 AM |
554 | 2018-05-04 Alan Modra <[email protected]> |
555 | ||
556 | * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32), | |
557 | (struct elf_external_linux_prpsinfo32_ugid16), | |
558 | (struct elf_external_linux_prpsinfo64_ugid32), | |
559 | (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING | |
560 | to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas. | |
561 | Move comment to.. | |
562 | * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor | |
563 | directives. | |
564 | * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING | |
565 | to data. | |
566 | * elf32-ppc.c (ppc_elf_write_core_note): Likewise. | |
567 | * elf32-s390.c (elf_s390_write_core_note): Likewise. | |
568 | * elf64-s390.c (elf_s390_write_core_note): Likewise. | |
569 | * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise. | |
570 | * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic | |
571 | pragmas. | |
572 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid | |
573 | false positive gcc-8 warning. | |
7bd8862c | 574 | * cofflink.c (_bfd_coff_link_input_bfd): Likewise. |
602f1657 | 575 | |
a27ca19c TMQMF |
576 | 2018-05-04 Tulio Magno Quites Machado Filho <[email protected]> |
577 | ||
578 | * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order | |
579 | of arguments when warning about different long double types. | |
580 | ||
3be08ea4 SA |
581 | 2018-05-03 Simon Atanasyan <[email protected]> |
582 | ||
583 | * elf32-mips.c: (elf32_mips_fixup_symbol): New function. | |
584 | (elf_backend_fixup_symbol): New macro. | |
585 | * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp | |
586 | handling. | |
587 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
588 | ||
fe944acf FT |
589 | 2018-04-30 Francois H. Theron <[email protected]> |
590 | ||
591 | * Makefile.am: Added NFP files to build. | |
592 | * archures.c: Added bfd_arch_nfp | |
593 | * config.bfd: Added NFP support. | |
594 | * configure.ac: Added NFP support. | |
595 | * cpu-nfp.c: New, for NFP support. | |
596 | * elf-bfd.h: Added elf_section_info() | |
597 | * elf64-nfp.c: New, for NFP support. | |
598 | * po/SRC-POTFILES.in: Added NFP source files. | |
599 | * targets.c: Added nfp_elf64_vec | |
600 | * bfd-in2.h: Regenerate. | |
601 | * Makefile.in: Regenerate. | |
602 | * configure: Regenerate. | |
603 | ||
ffa389a3 AM |
604 | 2018-04-27 Alan Modra <[email protected]> |
605 | ||
606 | * bfd-in2.h: Regenerate. | |
607 | * libbfd.h: Regenerate. | |
608 | ||
04383fd1 AM |
609 | 2018-04-27 Alan Modra <[email protected]> |
610 | ||
611 | PR 23123 | |
612 | PR 22374 | |
613 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt | |
614 | relocs for ifuncs. | |
615 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes. | |
616 | ||
bfa5bd2a PA |
617 | 2018-04-26 Pedro Alves <[email protected]> |
618 | ||
619 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider | |
620 | ifunc and non-ifunc symbols duplicates. | |
621 | ||
59029f57 CL |
622 | 2018-04-25 Christophe Lyon <[email protected]> |
623 | Mickaël Guêné <[email protected]> | |
624 | ||
625 | * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New. | |
626 | (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case. | |
627 | (elf32_arm_populate_plt_entry): Likewise. | |
628 | (elf32_arm_output_plt_map_1): Likewise. | |
629 | (elf32_arm_output_arch_local_syms): Likewise. | |
630 | ||
fac7bd64 CL |
631 | 2018-04-25 Christophe Lyon <[email protected]> |
632 | Mickaël Guêné <[email protected]> | |
633 | ||
634 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle | |
635 | _GLOBAL_OFFSET_TABLE_ in FDPIC mode. | |
636 | ||
29e9b073 CL |
637 | 2018-04-25 Christophe Lyon <[email protected]> |
638 | Mickaël Guêné <[email protected]> | |
639 | ||
640 | * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case | |
641 | for R_ARM_TARGET2. | |
642 | ||
cb10292c CL |
643 | 2018-04-25 Christophe Lyon <[email protected]> |
644 | Mickaël Guêné <[email protected]> | |
645 | ||
646 | * elf32-arm.c (DEFAULT_STACK_SIZE): New. | |
647 | (elf32_arm_always_size_sections): Create stack segment. | |
648 | ||
5c5a4843 CL |
649 | 2018-04-25 Christophe Lyon <[email protected]> |
650 | Mickaël Guêné <[email protected]> | |
651 | ||
652 | * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC) | |
653 | (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New | |
654 | relocations. | |
655 | * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC, | |
656 | R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations. | |
657 | (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC, | |
658 | R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC. | |
659 | (struct elf32_arm_link_hash_table): Update comment. | |
660 | (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations. | |
661 | (IS_ARM_TLS_RELOC): Likewise. | |
662 | (elf32_arm_check_relocs): Likewise. | |
663 | (allocate_dynrelocs_for_symbol): Likewise. | |
664 | (elf32_arm_size_dynamic_sections): Update comment. | |
665 | * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC, | |
666 | BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC. | |
667 | ||
7801f98f CL |
668 | 2018-04-25 Christophe Lyon <[email protected]> |
669 | Mickaël Guêné <[email protected]> | |
670 | ||
671 | * elf32-arm.c (elf32_arm_fdpic_plt_entry): New. | |
672 | (elf32_arm_create_dynamic_sections): Handle FDPIC. | |
673 | (elf32_arm_allocate_plt_entry): Likewise. | |
674 | (elf32_arm_populate_plt_entry): Likewise. | |
675 | (elf32_arm_output_plt_map_1): Likewise. | |
676 | ||
e8b09b87 CL |
677 | 2018-04-25 Christophe Lyon <[email protected]> |
678 | Mickaël Guêné <[email protected]> | |
679 | ||
680 | * elf32-arm.c (struct fdpic_local): New. | |
681 | (elf_arm_obj_tdata): Add local_fdpic_cnts field. | |
682 | (elf32_arm_local_fdpic_cnts): New. | |
683 | (struct fdpic_global): New. | |
684 | (elf32_arm_link_hash_entry): Add fdpic_cnts field. | |
685 | (elf32_arm_link_hash_table): Add srofixup field. | |
686 | (arm_elf_add_rofixup): New. | |
687 | (arm_elf_fill_funcdesc): New. | |
688 | (elf32_arm_link_hash_newfunc): Handle fdpic_cnts. | |
689 | (elf32_arm_allocate_local_sym_info): Likewise. | |
690 | (create_got_section): Create .rofixup section. | |
691 | (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts. | |
692 | (bfd_elf32_arm_set_target_params): Handle FDPIC. | |
693 | (elf32_arm_final_link_relocate): Likewise. | |
694 | (elf32_arm_check_relocs): Likewise. | |
695 | (allocate_dynrelocs_for_symbol): Likewise. | |
696 | (elf32_arm_size_dynamic_sections): Likewise. | |
697 | (elf32_arm_finish_dynamic_sections): Likewise. | |
698 | (elf32_arm_output_arch_local_syms): Likewise. | |
699 | (elf32_arm_fdpic_omit_section_dynsym): New. | |
700 | ||
188fd7ae CL |
701 | 2018-04-25 Christophe Lyon <[email protected]> |
702 | Mickaël Guêné <[email protected]> | |
703 | ||
704 | * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC) | |
705 | (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC) | |
706 | (BFD_RELOC_ARM_FUNCDESC_VALUE): New. | |
707 | * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC, | |
708 | R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE. | |
709 | (elf32_arm_howto_from_type): Take new members of | |
710 | elf32_arm_howto_table_2 into account. | |
711 | (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC, | |
712 | BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC, | |
713 | BFD_RELOC_ARM_FUNCDESC_VALUE. | |
714 | * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC, | |
715 | BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC, | |
716 | BFD_RELOC_ARM_FUNCDESC_VALUE. | |
717 | ||
18a20338 CL |
718 | 2018-04-25 Christophe Lyon <[email protected]> |
719 | Mickaël Guêné <[email protected]> | |
720 | ||
721 | * elf32-arm.c (elf32_arm_print_private_bfd_data): Support | |
722 | EF_ARM_PIC and ELFOSABI_ARM_FDPIC. | |
723 | (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC. | |
724 | (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC. | |
725 | ||
617a5ada CL |
726 | 2018-04-25 Christophe Lyon <[email protected]> |
727 | Mickaël Guêné <[email protected]> | |
728 | ||
729 | * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and | |
730 | arm_elf32_fdpic_le_vec to targ_selvecs. Accept | |
731 | arm*-*-uclinuxfdpiceabi. | |
732 | * configure.ac: Add support for arm_elf32_fdpic_be_vec and | |
733 | arm_elf32_fdpic_le_vec. | |
734 | * configure: Regenerate. | |
735 | * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p. | |
736 | (elf32_arm_link_hash_table_create): Initialize fdpic_p. | |
737 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM) | |
738 | (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets. | |
739 | (elf32_arm_fdpic_link_hash_table_create): New. | |
740 | * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and | |
741 | arm_elf32_fdpic_le_vec. | |
742 | ||
d99b4b92 AM |
743 | 2018-04-25 Alan Modra <[email protected]> |
744 | ||
745 | * elf-linux-core.h: Disable gcc-8 string truncation warning. | |
746 | * elf.c (elfcore_write_prpsinfo): Likewise. | |
747 | ||
748 | 2018-04-25 Alan Modra <[email protected]> | |
2ac93be7 AM |
749 | |
750 | * Makefile.am: Remove arm-aout and arm-coff support. | |
751 | * config.bfd: Likewise. | |
752 | * configure.ac: Likewise. | |
753 | * targets.c: Likewise. | |
754 | * aout-arm.c: Delete. | |
755 | * armnetbsd.c: Delete. | |
756 | * riscix.c: Delete. | |
757 | * Makefile.in: Regenerate. | |
758 | * configure: Regenerate. | |
759 | * po/SRC-POTFILES.in: Regenerate. | |
760 | ||
aa4a8c2a NC |
761 | 2018-04-24 Nick Clifton <[email protected]> |
762 | ||
db0c309f NC |
763 | PR 23113 |
764 | * elf.c (ignore_section_sym): Check for the output_section pointer | |
765 | being NULL before dereferencing it. | |
766 | ||
aa4a8c2a NC |
767 | PR 23110 |
768 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for | |
769 | a negative PE_DEBUG_DATA size before iterating over the debug data. | |
770 | ||
b9f26d2e AM |
771 | 2018-04-23 Alan Modra <[email protected]> |
772 | ||
773 | * elf-linux-core.h: Revert last change. | |
774 | * elf.c: Likewise. | |
775 | ||
bf82069d NC |
776 | 2018-04-23 Nick Clifton <[email protected]> |
777 | ||
778 | PR 23056 | |
779 | * aoutx.h (aout_get_external_symbols): Allocate an extra byte at | |
780 | the end of the string table, and zero it. | |
781 | ||
5a6312e8 AM |
782 | 2018-04-23 Alan Modra <[email protected]> |
783 | ||
784 | * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable | |
785 | gcc-8 string truncation warning. | |
786 | (swap_linux_prpsinfo32_ugid16_out): Likewise. | |
787 | (swap_linux_prpsinfo64_ugid32_out): Likewise. | |
788 | (swap_linux_prpsinfo64_ugid16_out): Likewise. | |
789 | * elf.c (elfcore_write_prpsinfo): Likewise. | |
790 | ||
bf82069d NC |
791 | 2018-04-23 Nick Clifton <[email protected]> |
792 | ||
793 | PR 23056 | |
794 | * aoutx.h (aout_get_external_symbols): Allocate an extra byte at | |
795 | the end of the string table, and zero it. | |
796 | ||
4352556b AM |
797 | 2018-04-20 Alan Modra <[email protected]> |
798 | ||
799 | PR 22978 | |
800 | * elf32-hppa.c (got_relocs_needed): Add extra param to special | |
801 | case both dtprel and tprel relocs. | |
802 | (allocate_dynrelocs): Adjust conditions for got relocs. | |
803 | (elf32_hppa_relocate_section): Likewise for local sym got relocs. | |
804 | Emit dynamic relocs on TLS GOT entries for shared libraries, | |
805 | not when pic. Omit dynamic reloc on dtprel entry when local, | |
806 | and on tprel entry when local and executable. | |
807 | ||
f6a8b8c7 AM |
808 | 2018-04-19 Alan Modra <[email protected]> |
809 | ||
810 | PR 22537 | |
811 | * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1. | |
812 | (hppa_type_of_stub): Don't return a long branch stub for | |
813 | symbols other than those defined statically. | |
814 | ||
8e415ce8 AM |
815 | 2018-04-19 Alan Modra <[email protected]> |
816 | ||
817 | * Makefile.am: Revert 2018-04-18 coff-mips changes. | |
818 | * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec | |
819 | to selvecs for mips targets change 2018-04-18. | |
820 | * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec | |
821 | and mips_ecoff_bele_vec. | |
822 | * targets.c: Likewise. | |
823 | * coff-mips.c: Resurrect. | |
824 | * Makefile.in: Regenerate. | |
825 | * configure: Regenerate. | |
826 | * po/SRC-POTFILES.in: Regenerate. | |
827 | ||
3596d8ce AM |
828 | 2018-04-18 Alan Modra <[email protected]> |
829 | ||
830 | * Makefile.am: Remove mips aout and coff support. | |
831 | * config.bfd: Likewise. | |
832 | * configure.ac: Likewise. | |
833 | * targets.c: Likewise. | |
834 | * coff-mips.c: Delete | |
835 | * mipsbsd.c: Delete | |
836 | * pe-mips.c: Delete | |
837 | * pei-mips.c: Delete | |
838 | * Makefile.in: Regenerate. | |
839 | * configure: Regenerate. | |
840 | * po/SRC-POTFILES.in: Regenerate. | |
841 | ||
d9dd2045 L |
842 | 2018-04-17 H.J. Lu <[email protected]> |
843 | ||
844 | * elf32-i386.c (elf32_bed): Define before including | |
845 | "elf32-target.h". | |
846 | * elf64-x86-64.c (elf64_bed): Define before including | |
847 | "elf64-target.h". | |
848 | (elf32_bed): Define before including "elf32-target.h". | |
849 | ||
e4e6a73d L |
850 | 2018-04-17 H.J. Lu <[email protected]> |
851 | ||
852 | PR ld/23055 | |
853 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a | |
854 | normal input file with compatible relocation. | |
855 | ||
c65c21e1 AM |
856 | 2018-04-18 Alan Modra <[email protected]> |
857 | ||
858 | * Makefile.am: Remove support for assorted i386 aout and coff targets. | |
859 | * config.bfd: Likewise. | |
860 | * configure.ac: Likewise. | |
861 | * doc/bfdint.texi: Likewise. | |
862 | * targets.c: Likewise. | |
863 | * freebsd.h: Delete. | |
864 | * i386dynix.c: Delete. | |
865 | * i386freebsd.c: Delete. | |
866 | * i386linux.c: Delete. | |
867 | * i386mach3.c: Delete. | |
868 | * i386netbsd.c: Delete. | |
869 | * i386os9k.c: Delete. | |
870 | * Makefile.in: Regenerate. | |
871 | * configure: Regenerate. | |
872 | * po/SRC-POTFILES.in: Regenerate. | |
873 | ||
884d4d8a | 874 | 2018-04-17 Andrew Sadek <[email protected]> |
3f0a5f17 ME |
875 | |
876 | Microblaze Target: PIC data text relative | |
877 | ||
878 | * bfd/reloc.c (2 new BFD relocations): | |
879 | BFD_RELOC_MICROBLAZE_64_TEXTPCREL & | |
880 | BFD_RELOC_MICROBLAZE_64_TEXTPCREL | |
881 | * bfd/bfd-in2.h: Regenerate | |
882 | * bfd/libbfd.h: Regenerate | |
883 | * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3 | |
884 | new relocs and handle them in both relocate and relax functions. | |
885 | (microblaze_elf_reloc_type_lookup): add mapping between for new | |
886 | bfd relocs. | |
887 | (microblaze_elf_relocate_section): Handle new relocs in case of | |
888 | elf relocation. | |
889 | (microblaze_elf_relax_section): Handle new relocs for elf relaxation. | |
890 | ||
6327533b NC |
891 | 2018-04-17 Nick Clifton <[email protected]> |
892 | ||
808346fc NC |
893 | PR 23055 |
894 | * aoutx.h (find_nearest_line): Check that the symbol name exists | |
895 | and is long enough, before attempting to see if it is for a .o | |
896 | file. | |
897 | * hash.c (bfd_hash_hash): Add an assertion that the string is not | |
898 | NULL. | |
899 | * linker.c (bfd_link_hash_lookup): Fail if the table or string are | |
900 | NULL. | |
901 | (_bfd_generic_link_add_archive_symbols): Fail if an archive entry | |
902 | has no name. | |
903 | ||
6327533b NC |
904 | PR 23065 |
905 | * dwarf2.c (concat_filename): Check for a NULL table pointer. | |
906 | ||
e9af4700 NC |
907 | 2018-04-16 Nick Clifton <[email protected]> |
908 | ||
909 | PR 23061 | |
910 | * coffgen.c (coff_pointerize_aux): Check for an out of range | |
911 | fixup. | |
912 | ||
ddb00039 AM |
913 | 2018-04-16 Alan Modra <[email protected]> |
914 | ||
915 | * Makefile.am: Remove arm-epoc-pe support. | |
916 | * coff-arm.c: Likewise. | |
917 | * config.bfd: Likewise. | |
918 | * configure.ac: Likewise. | |
919 | * targets.c: Likewise. | |
920 | * epoc-pe-arm.c: Delete. | |
921 | * epoc-pei-arm.c: Delete. | |
922 | * Makefile.in: Regenerate. | |
923 | * configure: Regenerate. | |
924 | * po/SRC-POTFILES.in: Regenerate. | |
925 | ||
c9098af4 AM |
926 | 2018-04-16 Alan Modra <[email protected]> |
927 | ||
928 | * Makefile.am: Remove sparc-aout and sparc-coff support. | |
929 | * config.bfd: Likewise. | |
930 | * configure.ac: Likewise. | |
931 | * targets.c: Likewise. | |
932 | * aout-sparcle.c: Delete. | |
933 | * aoutf1.h: Delete. | |
934 | * cf-sparclynx.c: Delete. | |
935 | * coff-sparc.c: Delete. | |
936 | * demo64.c: Delete. | |
937 | * sparclinux.c: Delete. | |
938 | * sparclynx.c: Delete. | |
939 | * sparcnetbsd.c: Delete. | |
940 | * sunos.c: Delete. | |
941 | * Makefile.in: Regenerate. | |
942 | * configure: Regenerate. | |
943 | * po/SRC-POTFILES.in: Regenerate. | |
944 | ||
dc12032b AM |
945 | 2018-04-16 Alan Modra <[email protected]> |
946 | ||
947 | * Makefile.am: Remove m68k-aout and m68k-coff support. | |
948 | * aoutf1.h: Likewise. | |
949 | * aoutx.h: Likewise. | |
950 | * archive.c: Likewise. | |
951 | * bfd-in.h: Likewise. | |
952 | * bfd.c: Likewise. | |
953 | * coffcode.h: Likewise. | |
954 | * coffswap.h: Likewise. | |
955 | * config.bfd: Likewise. | |
956 | * configure.ac: Likewise. | |
957 | * configure.host: Likewise. | |
958 | * doc/bfd.texinfo: Likewise. | |
959 | * doc/bfdint.texi: Likewise. | |
960 | * freebsd.h: Likewise. | |
961 | * gen-aout.c: Likewise. | |
962 | * hpux-core.c: Likewise. | |
963 | * libaout.h: Likewise. | |
964 | * libbfd-in.h: Likewise. | |
965 | * pdp11.c: Likewise. | |
966 | * peicode.h: Likewise. | |
967 | * riscix.c: Likewise. | |
968 | * targets.c: Likewise. | |
969 | * aout0.c: Delete. | |
970 | * coff-apollo.c: Delete. | |
971 | * coff-aux.c: Delete. | |
972 | * coff-m68k.c: Delete. | |
973 | * coff-svm68k.c: Delete. | |
974 | * coff-u68k.c: Delete. | |
975 | * hosts/delta68.h: Delete. | |
976 | * hosts/hp300bsd.h: Delete. | |
977 | * hosts/m68kaux.h: Delete. | |
978 | * hosts/news.h: Delete. | |
979 | * hp300bsd.c: Delete. | |
980 | * hp300hpux.c: Delete. | |
981 | * liboasys.h: Delete. | |
982 | * m68k4knetbsd.c: Delete. | |
983 | * m68klinux.c: Delete. | |
984 | * m68knetbsd.c: Delete. | |
985 | * oasys.c: Delete. | |
986 | * versados.c: Delete. | |
987 | * Makefile.in: Regenerate. | |
988 | * bfd-in2.h: Regenerate. | |
989 | * configure: Regenerate. | |
990 | * libbfd.h: Regenerate. | |
991 | * po/SRC-POTFILES.in: Regenerate. | |
992 | ||
211dc24b AM |
993 | 2018-04-16 Alan Modra <[email protected]> |
994 | ||
995 | * Makefile.am: Remove sh5 and sh64 support. | |
996 | * archures.c: Likewise. | |
997 | * config.bfd: Likewise. | |
998 | * configure.ac: Likewise. | |
999 | * cpu-sh.c: Likewise. | |
1000 | * elf32-sh-relocs.h: Likewise. | |
1001 | * elf32-sh.c: Likewise. | |
1002 | * targets.c: Likewise. | |
1003 | * elf32-sh64-com.c: Delete. | |
1004 | * elf32-sh64.c: Delete. | |
1005 | * elf32-sh64.h: Delete. | |
1006 | * elf64-sh64.c: Delete. | |
1007 | * Makefile.in: Regenerate. | |
1008 | * bfd-in2.h: Regenerate. | |
1009 | * configure: Regenerate. | |
1010 | * po/SRC-POTFILES.in: Regenerate. | |
1011 | ||
4db9937a AM |
1012 | 2018-04-16 Alan Modra <[email protected]> |
1013 | ||
1014 | * Makefile.am: Remove sh-symbianelf support. | |
1015 | * config.bfd: Likewise. | |
1016 | * configure.ac: Likewise. | |
1017 | * targets.c: Likewise. | |
1018 | * elf32-sh-symbian.c: Delete. | |
1019 | * Makefile.in: Regenerate. | |
1020 | * configure: Regenerate. | |
1021 | * po/SRC-POTFILES.in: Regenerate. | |
1022 | ||
9f5d1593 AM |
1023 | 2018-04-16 Alan Modra <[email protected]> |
1024 | ||
1025 | * Makefile.am: Remove vax-bsd and vax-ultrix support. | |
1026 | * config.bfd: Likewise. | |
1027 | * configure.ac: Likewise. | |
1028 | * targets.c: Likewise. | |
1029 | * vaxbsd.c: Delete. | |
1030 | * Makefile.in: Regenerate. | |
1031 | * configure: Regenerate. | |
1032 | * po/SRC-POTFILES.in: Regenerate. | |
1033 | ||
a9a4b302 AM |
1034 | 2018-04-16 Alan Modra <[email protected]> |
1035 | ||
1036 | * Makefile.am: Remove w65 support. | |
1037 | * archures.c: Likewise. | |
1038 | * coffcode.h: Likewise. | |
1039 | * config.bfd: Likewise. | |
1040 | * configure.ac: Likewise. | |
1041 | * targets.c: Likewise. | |
1042 | * coff-w65.c: Delete. | |
1043 | * cpu-w65.c: Delete. | |
1044 | * Makefile.in: Regenerate. | |
1045 | * bfd-in2.h: Regenerate. | |
1046 | * configure: Regenerate. | |
1047 | * po/SRC-POTFILES.in: Regenerate. | |
1048 | ||
04cb01fd AM |
1049 | 2018-04-16 Alan Modra <[email protected]> |
1050 | ||
1051 | * Makefile.am: Remove we32k support. | |
1052 | * archures.c: Likewise. | |
1053 | * coffcode.h: Likewise. | |
1054 | * config.bfd: Likewise. | |
1055 | * configure.ac: Likewise. | |
1056 | * targets.c: Likewise. | |
1057 | * coff-we32k.c: Delete. | |
1058 | * cpu-we32k.c: Delete. | |
1059 | * Makefile.in: Regenerate. | |
1060 | * bfd-in2.h: Regenerate. | |
1061 | * configure: Regenerate. | |
1062 | * po/SRC-POTFILES.in: Regenerate. | |
1063 | ||
c2bf1eec AM |
1064 | 2018-04-16 Alan Modra <[email protected]> |
1065 | ||
1066 | * Makefile.am: Remove m88k support. | |
1067 | * aoutx.h: Likewise. | |
1068 | * archures.c: Likewise. | |
1069 | * coffcode.h: Likewise. | |
1070 | * coffswap.h: Likewise. | |
1071 | * config.bfd: Likewise. | |
1072 | * configure.ac: Likewise. | |
1073 | * cpu-ns32k.c: Likewise. | |
1074 | * elf32-nds32.c: Likewise. | |
1075 | * mach-o.c: Likewise. | |
1076 | * netbsd-core.c: Likewise. | |
1077 | * reloc.c: Likewise. | |
1078 | * targets.c: Likewise. | |
1079 | * coff-m88k.c: Delete. | |
1080 | * cpu-m88k.c: Delete. | |
1081 | * elf32-m88k.c: Delete. | |
1082 | * hosts/m88kmach3.h: Delete. | |
1083 | * m88kmach3.c: Delete. | |
1084 | * m88kopenbsd.c: Delete. | |
1085 | * Makefile.in: Regenerate. | |
1086 | * bfd-in2.h: Regenerate. | |
1087 | * configure: Regenerate. | |
1088 | * po/SRC-POTFILES.in: Regenerate. | |
1089 | ||
6793974d AM |
1090 | 2018-04-16 Alan Modra <[email protected]> |
1091 | ||
1092 | * Makefile.am: Remove i370 support. | |
1093 | * archures.c: Likewise. | |
1094 | * config.bfd: Likewise. | |
1095 | * configure.ac: Likewise. | |
1096 | * targets.c: Likewise. | |
1097 | * cpu-i370.c: Delete. | |
1098 | * elf32-i370.c: Delete. | |
1099 | * Makefile.in: Regenerate. | |
1100 | * bfd-in2.h: Regenerate. | |
1101 | * configure: Regenerate. | |
1102 | * po/SRC-POTFILES.in: Regenerate. | |
1103 | ||
e82aa794 AM |
1104 | 2018-04-16 Alan Modra <[email protected]> |
1105 | ||
1106 | * Makefile.am: Remove h8500 support. | |
1107 | * archures.c: Likewise. | |
1108 | * coffcode.h: Likewise. | |
1109 | * config.bfd: Likewise. | |
1110 | * configure.ac: Likewise. | |
1111 | * targets.c: Likewise. | |
1112 | * coff-h8500.c: Delete. | |
1113 | * cpu-h8500.c: Delete. | |
1114 | * Makefile.in: Regenerate. | |
1115 | * bfd-in2.h: Regenerate. | |
1116 | * configure: Regenerate. | |
1117 | * po/SRC-POTFILES.in: Regenerate. | |
1118 | ||
fe0bf0fd AM |
1119 | 2018-04-16 Alan Modra <[email protected]> |
1120 | ||
1121 | * Makefile.am: Remove h8300-coff support. | |
1122 | * coffcode.h: Likewise. | |
1123 | * config.bfd: Likewise. | |
1124 | * configure.ac: Likewise. | |
1125 | * reloc16.c: Likewise. | |
1126 | * targets.c: Likewise. | |
1127 | * coff-h8300.c: Delete. | |
1128 | * Makefile.in: Regenerate. | |
1129 | * configure: Regenerate. | |
1130 | * po/SRC-POTFILES.in: Regenerate. | |
1131 | ||
fdef3943 AM |
1132 | 2018-04-16 Alan Modra <[email protected]> |
1133 | ||
1134 | * Makefile.am: Remove IEEE 695 support. | |
1135 | * archures.c: Likewise. | |
1136 | * bfd.c: Likewise. | |
1137 | * config.bfd: Likewise. | |
1138 | * configure.ac: Likewise. | |
1139 | * doc/bfd.texinfo: Likewise. | |
1140 | * doc/bfdint.texi: Likewise. | |
1141 | * doc/bfdsumm.texi: Likewise. | |
1142 | * section.c: Likewise. | |
1143 | * targets.c: Likewise. | |
1144 | * ieee.c: Delete. | |
1145 | * libieee.h: Delete. | |
1146 | * Makefile.in: Regenerate. | |
1147 | * bfd-in2.h: Regenerate. | |
1148 | * configure: Regenerate. | |
1149 | * po/SRC-POTFILES.in: Regenerate. | |
1150 | ||
de96689e AM |
1151 | 2018-04-16 Alan Modra <[email protected]> |
1152 | ||
1153 | * config.bfd: Remove tandem support. | |
1154 | ||
5972ac73 AM |
1155 | 2018-04-16 Alan Modra <[email protected]> |
1156 | ||
1157 | * Makefile.am: Remove newsos3 support. | |
1158 | * aoutx.h: Likewise. | |
1159 | * config.bfd: Likewise. | |
1160 | * configure.ac: Likewise. | |
1161 | * targets.c: Likewise. | |
1162 | * newsos3.c: Delete. | |
1163 | * Makefile.in: Regenerate. | |
1164 | * configure: Regenerate. | |
1165 | * po/SRC-POTFILES.in: Regenerate. | |
1166 | ||
b4b594e3 AM |
1167 | 2018-04-16 Alan Modra <[email protected]> |
1168 | ||
1169 | * Makefile.am: Remove netware support. | |
1170 | * bfd-in.h: Likewise. | |
1171 | * bfd.c: Likewise. | |
1172 | * config.bfd: Likewise. | |
1173 | * configure.ac: Likewise. | |
1174 | * doc/bfdint.texi: Likewise. | |
1175 | * ecoff.c: Likewise. | |
1176 | * targets.c: Likewise. | |
1177 | * libnlm.h: Delete. | |
1178 | * nlm-target.h: Delete. | |
1179 | * nlm.c: Delete. | |
1180 | * nlm32-alpha.c: Delete. | |
1181 | * nlm32-i386.c: Delete. | |
1182 | * nlm32-ppc.c: Delete. | |
1183 | * nlm32-sparc.c: Delete. | |
1184 | * nlm32.c: Delete. | |
1185 | * nlm64.c: Delete. | |
1186 | * nlmcode.h: Delete. | |
1187 | * nlmswap.h: Delete. | |
1188 | * Makefile.in: Regenerate. | |
1189 | * bfd-in2.h: Regenerate. | |
1190 | * configure: Regenerate. | |
1191 | * po/SRC-POTFILES.in: Regenerate. | |
1192 | ||
fceadf09 AM |
1193 | 2018-04-16 Alan Modra <[email protected]> |
1194 | ||
1195 | * archures.c: Remove tahoe support. | |
1196 | * config.bfd: Likewise. | |
1197 | * configure.ac: Likewise. | |
1198 | * hosts/tahoe.h: Delete. | |
1199 | * bfd-in2.h: Regenerate. | |
1200 | * configure: Regenerate. | |
1201 | ||
702d1671 AM |
1202 | 2018-04-14 Alan Modra <[email protected]> |
1203 | ||
1204 | * elf-bfd.h (struct elf_backend_data): Add relropagesize. | |
1205 | * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and | |
1206 | sanity test. | |
1207 | (elfNN_bed): Init relropagesize. | |
1208 | * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to | |
1209 | select relropagesize. | |
1210 | * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000. | |
1211 | (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE. | |
1212 | (ELF_MINPAGESIZE): Don't define. | |
1213 | * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000. | |
1214 | (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE. | |
1215 | * bfd-in2.h: Regenerate. | |
1216 | ||
03aa9684 AM |
1217 | 2018-04-14 Alan Modra <[email protected]> |
1218 | ||
1219 | * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend | |
1220 | on __QNXTARGET__ define. | |
1221 | ||
24acfe5e AM |
1222 | 2018-04-14 Alan Modra <[email protected]> |
1223 | ||
1224 | * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss* | |
1225 | to obsolete list. | |
1226 | ||
a8eb42a8 AM |
1227 | 2018-04-11 Alan Modra <[email protected]> |
1228 | ||
1229 | * aout-adobe.c: Delete. | |
1230 | * bout.c: Delete. | |
1231 | * coff-i860.c: Delete. | |
1232 | * coff-i960.c: Delete. | |
1233 | * cpu-i860.c: Delete. | |
1234 | * cpu-i960.c: Delete. | |
1235 | * elf32-i860.c: Delete. | |
1236 | * elf32-i960.c: Delete. | |
1237 | * hosts/i860mach3.h: Delete. | |
1238 | * Makefile.am: Remove i860, i960, bout, and adobe support. | |
1239 | * archures.c: Remove i860 and i960 support. | |
1240 | * coffcode.h: Likewise. | |
1241 | * reloc.c: Likewise. | |
1242 | * aoutx.h: Comment updates. | |
1243 | * archive.c: Remove BOUT and i960 support. | |
1244 | * bfd.c: Remove BOUT support. | |
1245 | * coffswap.h: Remove i960 support. | |
1246 | * config.bfd: Remove i860, i960 and adobe targets. | |
1247 | * configure.ac: Remove adode, bout, i860, i960, icoff targets. | |
1248 | * targets.c: Likewise. | |
1249 | * ieee.c: Remove i960 support. | |
1250 | * mach-o.c: Remove i860 support. | |
1251 | * Makefile.in: Regenerate. | |
1252 | * bfd-in2.h: Regenerate. | |
1253 | * configure: Regenerate. | |
1254 | * libbfd.h: Regenerate. | |
1255 | * po/SRC-POTFILES.in: Regenerate. | |
1256 | ||
aec2e0d2 MR |
1257 | 2018-04-09 Maciej W. Rozycki <[email protected]> |
1258 | ||
1259 | * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer | |
1260 | in the BFD symbol referred by the relocation. | |
1261 | (mips_elf64_write_rela): Likewise. | |
1262 | ||
9ccfa98b MR |
1263 | 2018-04-09 Maciej W. Rozycki <[email protected]> |
1264 | ||
1265 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an | |
1266 | error for out-of-range `r_sym' values. | |
1267 | ||
3e04d765 AM |
1268 | 2018-04-09 Alan Modra <[email protected]> |
1269 | ||
1270 | * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field. | |
1271 | (struct ppc_link_hash_table): Add can_convert_all_inline_plt. | |
1272 | (ppc64_elf_check_relocs): Set has_pltcall. | |
1273 | (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries. | |
1274 | (ppc64_elf_inline_plt): New function. | |
1275 | (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals. | |
1276 | * elf64-ppc.h (ppc64_elf_inline_plt): Declare. | |
1277 | * elf32-ppc.c (has_pltcall): Define. | |
1278 | (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt. | |
1279 | (ppc_elf_check_relocs): Set has_pltcall. | |
1280 | (ppc_elf_inline_plt): New function. | |
1281 | (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries. | |
1282 | (ppc_elf_size_dynamic_sections): Likewise. | |
1283 | * elf32-ppc.h (ppc_elf_inline_plt): Declare. | |
1284 | ||
23cedd1d AM |
1285 | 2018-04-09 Alan Modra <[email protected]> |
1286 | ||
1287 | * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos. | |
1288 | (is_plt_seq_reloc): New function. | |
1289 | (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs. | |
1290 | (ppc_elf_tls_optimize): Handle inline plt call sequence. | |
1291 | (ppc_elf_relax_section): Handle PLTCALL reloc. | |
1292 | (ppc_elf_relocate_section): Nop out inline plt call sequence when | |
1293 | resolving locally. | |
1294 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and | |
1295 | R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE. | |
1296 | (has_tls_get_addr_call): Correct comment. | |
1297 | (is_branch_reloc): Add PLTCALL. | |
1298 | (is_plt_seq_reloc): New function. | |
1299 | (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set | |
1300 | has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt | |
1301 | entry for R_PPC64_PLTCALL. | |
1302 | (ppc64_elf_tls_optimize): Handle inline plt call sequence. | |
1303 | (ppc_type_of_stub): Handle PLTCALL reloc. | |
1304 | (toc_adjusting_stub_needed): Likewise. | |
1305 | (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL | |
1306 | reloc insn. Nop out inline plt call sequence when resolving | |
1307 | locally. Handle __tls_get_addr inline plt call optimization. | |
1308 | ||
2d7ad24e AM |
1309 | 2018-04-09 Alan Modra <[email protected]> |
1310 | ||
1311 | * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define. | |
1312 | (struct ppc_stub_hash_entry): Add symtype field. | |
1313 | (PLT_KEEP): Define. | |
1314 | (struct ppc_link_hash_table): Add pltlocal and relpltlocal. | |
1315 | (create_linkage_sections): Create pltlocal and relpltlocal. | |
1316 | (ppc64_elf_check_relocs): Allow PLT relocs on local symbols. | |
1317 | Set PLT_KEEP. | |
1318 | (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls. | |
1319 | (allocate_dynrelocs): Allocate pltlocal and relpltlocal. | |
1320 | (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal. | |
1321 | Keep PLT entries for inline calls against locals. | |
1322 | (ppc_build_one_stub): Use pltlocal as appropriate. | |
1323 | (ppc_size_one_stub): Likewise. | |
1324 | (ppc64_elf_size_stubs): Set symtype. | |
1325 | (build_global_entry_stubs_and_plt): Init pltlocal and write | |
1326 | relpltlocal for globals. | |
1327 | (write_plt_relocs_for_local_syms): Likewise for local syms. | |
1328 | (ppc64_elf_relocate_section): Support PLT for local syms. | |
1329 | * elf32-ppc.c (PLT_KEEP): Define. | |
1330 | (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal. | |
1331 | (ppc_elf_create_glink): Create pltlocal and relpltlocal. | |
1332 | (ppc_elf_check_relocs): Allow PLT relocs on local symbols. | |
1333 | Set PLT_KEEP. Adjust update_local_sym_info call. | |
1334 | (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls. | |
1335 | (allocate_dynrelocs): Allocate pltlocal and relpltlocal. | |
1336 | (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal. | |
1337 | (ppc_elf_relocate_section): Support PLT16 relocs for local syms. | |
1338 | (write_global_sym_plt): Init pltlocal and write relpltlocal. | |
1339 | (ppc_finish_symbols): Likewise for locals. | |
1340 | ||
49c09209 AM |
1341 | 2018-04-09 Alan Modra <[email protected]> |
1342 | ||
1343 | * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs | |
1344 | for local symbols to.. | |
1345 | (write_plt_relocs_for_local_syms): ..here. New function. | |
1346 | (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for | |
1347 | global symbols to.. | |
1348 | (build_global_entry_stubs_and_plt): ..here. Rename from | |
1349 | build_global_entry_stubs. | |
1350 | (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt. | |
1351 | Call write_plt_relocs_for_local_syms. | |
1352 | * elf32-ppc.c (get_sym_h): New function. | |
1353 | (ppc_elf_relax_section): Use get_sym_h. | |
1354 | (ppc_elf_relocate_section): Move output of PLT relocs and glink | |
1355 | stubs for local symbols to.. | |
1356 | (ppc_finish_symbols): ..here. New function. | |
1357 | (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for | |
1358 | global syms to.. | |
1359 | (write_global_sym_plt): ..here. New function. | |
1360 | * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute. | |
1361 | (ppc_finish_symbols): Declare. | |
1362 | ||
08be3224 AM |
1363 | 2018-04-09 Alan Modra <[email protected]> |
1364 | ||
1365 | * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs. | |
1366 | (ppc_elf_relocate_section): Likewise. | |
1367 | * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS. | |
1368 | (ppc64_elf_relocate_section): Likewise. Correct PLT16 | |
1369 | resolution to plt entry relative to toc pointer. | |
1370 | ||
37da22e5 AM |
1371 | 2018-04-09 Alan Modra <[email protected]> |
1372 | ||
1373 | * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, | |
1374 | TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout | |
1375 | file when other TLS flags are tested in a mask. | |
1376 | (TLS_MARK, NON_GOT): Define. | |
1377 | (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well. | |
1378 | (update_local_sym_info): Don't create got entry when NON_GOT. | |
1379 | (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC. | |
1380 | Set TLS_MARK. | |
1381 | (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK. | |
1382 | (ppc64_elf_relocate_section): Likewise. | |
1383 | (ppc64_elf_tls_optimize): Don't attempt to optimize indirect | |
1384 | __tls_get_addr calls lacking a marker reloc. | |
1385 | * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, | |
1386 | TLS_TPRELGD): Renumber. Update comment. | |
1387 | (TLS_MARK, NON_GOT): Define. | |
1388 | (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well. | |
1389 | (update_local_sym_info): Don't create got entry when NON_GOT. | |
1390 | (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC. | |
1391 | Set TLS_MARK. | |
1392 | (ppc_elf_tls_optimize): Don't attempt to optimize indirect | |
1393 | __tls_get_addr calls lacking a marker reloc. | |
1394 | ||
a6fd92b0 L |
1395 | 2018-04-06 H.J. Lu <[email protected]> |
1396 | ||
1397 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out | |
1398 | R_X86_64_converted_reloc_bit. | |
1399 | ||
3cba8b6c L |
1400 | 2018-04-05 H.J. Lu <[email protected]> |
1401 | ||
1402 | PR gas/22318 | |
1403 | * configure: Regenerated. | |
1404 | ||
0e8452bb AM |
1405 | 2018-04-05 Alan Modra <[email protected]> |
1406 | ||
1407 | * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL. | |
1408 | (elf_hppa_info_to_howto_rel): Likewise. | |
1409 | ||
8ee55178 MR |
1410 | 2018-04-04 Maciej W. Rozycki <[email protected]> |
1411 | ||
1412 | * elf-hppa.h (elf_hppa_info_to_howto): Also return | |
1413 | unsuccessfully for unimplemented relocations. | |
1414 | (elf_hppa_info_to_howto_rel): Likewise. | |
1415 | ||
5d7c8b80 MR |
1416 | 2018-04-04 Maciej W. Rozycki <[email protected]> |
1417 | ||
1418 | * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the | |
1419 | `bfd_error_bad_value' error and call `_bfd_error_handler' on a | |
1420 | howto lookup failure. | |
1421 | (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call | |
1422 | accordingly. | |
1423 | (elf32_i860_info_to_howto_rela): Likewise. | |
1424 | (elf32_i860_relocate_splitn): Likewise. | |
1425 | (elf32_i860_relocate_pc16): Likewise. | |
1426 | (elf32_i860_relocate_pc26): Likewise. | |
1427 | (elf32_i860_relocate_section): Likewise. | |
1428 | ||
707bad1b MR |
1429 | 2018-04-04 Maciej W. Rozycki <[email protected]> |
1430 | ||
1431 | * elf32-visium.c (visium_info_to_howto_rela): Correct the range | |
1432 | check for `visium_elf_howto_table' table access. | |
1433 | ||
0cc919dc MR |
1434 | 2018-04-04 Maciej W. Rozycki <[email protected]> |
1435 | ||
1436 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range | |
1437 | check for `iq2000_elf_howto_table' table access. | |
1438 | ||
f428698e MR |
1439 | 2018-04-04 Maciej W. Rozycki <[email protected]> |
1440 | ||
1441 | * elf32-frv.c (frv_info_to_howto_rela): Correct the range check | |
1442 | for `elf32_frv_howto_table' table access. | |
1443 | ||
7ed6f92a MR |
1444 | 2018-04-04 Maciej W. Rozycki <[email protected]> |
1445 | ||
1446 | * elf32-mips.c (mips_elf32_rtype_to_howto): Also return | |
1447 | unsuccessfully for placeholder howtos. | |
1448 | * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise. | |
1449 | * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise. | |
1450 | ||
75def2ab MR |
1451 | 2018-03-29 Maciej W. Rozycki <[email protected]> |
1452 | ||
1453 | * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to | |
1454 | `_bfd_error_handler' and to set the `bfd_error_bad_value' error. | |
1455 | ||
8b6a949a MR |
1456 | 2018-03-28 Maciej W. Rozycki <[email protected]> |
1457 | ||
1458 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove | |
1459 | ATTRIBUTE_UNUSED from `abfd'. | |
1460 | ||
d81270c3 MR |
1461 | 2018-03-28 Maciej W. Rozycki <[email protected]> |
1462 | ||
1463 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct | |
1464 | `_bfd_error_handler' call formatting. | |
1465 | ||
60dceb8d | 1466 | 2018-03-28 Maciej W. Rozycki <[email protected]> |
8205a328 MR |
1467 | |
1468 | * elf32-mips.c (mips_info_to_howto_rel): Call | |
1469 | `mips_elf32_rtype_to_howto' directly rather than via | |
1470 | `->elf_backend_mips_rtype_to_howto'. | |
1471 | ||
e04ef022 RL |
1472 | 2018-03-28 Renlin Li <[email protected]> |
1473 | ||
1474 | PR ld/22970 | |
1475 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for | |
1476 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, | |
1477 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, | |
1478 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, | |
1479 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, | |
1480 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, | |
1481 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, | |
1482 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, | |
1483 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. | |
1484 | (elfNN_aarch64_final_link_relocate): Support new relocations. | |
1485 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new | |
1486 | relocations. | |
1487 | (_bfd_aarch64_elf_resolve_relocation): Support new relocations. | |
1488 | ||
84f1b9fb RL |
1489 | 2018-03-28 Renlin Li <[email protected]> |
1490 | ||
1491 | PR ld/22970 | |
1492 | * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12 | |
1493 | BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC, | |
1494 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12, | |
1495 | BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC, | |
1496 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12, | |
1497 | BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC, | |
1498 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12, | |
1499 | BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC, | |
1500 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12, | |
1501 | BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC. | |
1502 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for | |
1503 | TLSLE_LDST16_TPREL_LO12, | |
1504 | TLSLE_LDST16_TPREL_LO12_NC, | |
1505 | TLSLE_LDST32_TPREL_LO12, | |
1506 | TLSLE_LDST32_TPREL_LO12_NC, | |
1507 | TLSLE_LDST64_TPREL_LO12, | |
1508 | TLSLE_LDST64_TPREL_LO12_NC, | |
1509 | TLSLE_LDST8_TPREL_LO12, | |
1510 | TLSLE_LDST8_TPREL_LO12_NC. | |
1511 | * bfd-in2.h: Regenerated. | |
1512 | * libbfd.h: Regenerated. | |
1513 | ||
f8745e1c EB |
1514 | 2018-03-28 Eric Botcazou <[email protected]> |
1515 | ||
1516 | PR ld/22972 | |
1517 | * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag | |
1518 | has_old_style_got_reloc. | |
1519 | (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style | |
1520 | relocations. Fix a couple of long lines. | |
1521 | (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate | |
1522 | a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style | |
1523 | GOT relocations. | |
1524 | ||
bf54968b L |
1525 | 2018-03-25 H.J. Lu <[email protected]> |
1526 | ||
1527 | PR ld/23000 | |
1528 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add | |
1529 | ENDBR64 to the TLSDESC PLT entry. | |
1530 | ||
0ccf57bd AM |
1531 | 2018-03-21 Alan Modra <[email protected]> |
1532 | ||
1533 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting | |
1534 | symbols. Use size_t counts. Delete redundant opd test. | |
1535 | ||
4bad6366 AM |
1536 | 2018-03-21 Alan Modra <[email protected]> |
1537 | ||
1538 | * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms. | |
1539 | ||
bac3c8c5 AM |
1540 | 2018-03-21 Alan Modra <[email protected]> |
1541 | ||
1542 | * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask | |
1543 | field unsigned. | |
1544 | (update_local_sym_info): Likewise for local_got_tls_masks. | |
1545 | (ppc_elf_tls_optimize): Likewise for lgot_masks. | |
1546 | ||
6a3858a6 AM |
1547 | 2018-03-21 Alan Modra <[email protected]> |
1548 | ||
1549 | * elf64-ppc.c (ppc_size_one_stub): Fix comment typo. | |
1550 | (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we | |
1551 | do in size_dynamic_sections. | |
1552 | ||
675e2809 AM |
1553 | 2018-03-21 Alan Modra <[email protected]> |
1554 | ||
1555 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1] | |
1556 | without first checking array bounds. | |
1557 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
1558 | ||
416c34d6 L |
1559 | 2018-03-20 H.J. Lu <[email protected]> |
1560 | ||
1561 | PR ld/22983 | |
1562 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set | |
1563 | non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list. | |
1564 | ||
315aa1cf NC |
1565 | 2018-03-19 Nick Clifton <[email protected]> |
1566 | ||
1567 | * po/es.po: Updated Spanish translation. | |
1568 | ||
0854d504 MF |
1569 | 2018-03-15 Max Filippov <[email protected]> |
1570 | ||
1571 | * elf32-xtensa.c (xlate_map_entry): Change types of address | |
1572 | fields from 'unsigned' to 'bfd_vma'. | |
1573 | (xlate_offset_with_removed_text): Use struct xlate_map_entry as | |
1574 | the key argument to bsearch. Allow offsets past the end of a | |
1575 | section, use the last map entry for translation of such offsets. | |
1576 | ||
f9671640 KLC |
1577 | 2018-03-15 Kuan-Lin Chen <[email protected]> |
1578 | ||
1579 | * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed. | |
1580 | Not support the target feature. | |
1581 | (nds32_elf_ex9_itb_base): Likewise. | |
1582 | (nds32_elf_ex9_import_table): Likewise. | |
1583 | (nds32_elf_ex9_finish): Likewise. | |
1584 | (nds32_elf_ex9_reloc_jmp): Likewise. | |
1585 | (nds32_elf_get_insn_with_reg): Likewise. | |
1586 | (nds32_get_local_syms): Likewise. | |
1587 | (nds32_elf_ex9_replace_instruction): Likewise. | |
1588 | (nds32_elf_ifc_calc): Likewise. | |
1589 | (nds32_elf_ifc_finish): Likewise. | |
1590 | (nds32_elf_ifc_replace): Likewise. | |
1591 | (nds32_elf_ifc_reloc): Likewise. | |
1592 | ||
7dda8d3c AM |
1593 | 2018-03-14 Alan Modra <[email protected]> |
1594 | ||
1595 | * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having | |
1596 | sfpr size added before defining alias symbols. | |
1597 | (ppc64_elf_build_stubs): Add stub section padding before | |
1598 | copying sfpr contents and defining save/restore alias symbols. | |
1599 | ||
9e223787 L |
1600 | 2018-03-14 H.J. Lu <[email protected]> |
1601 | ||
1602 | PR ld/20882 | |
1603 | * elflink.c (elf_gc_mark_debug_section): Also check the local | |
1604 | debug definition section. | |
1605 | ||
3e33b239 NC |
1606 | 2018-03-13 Nick Clifton <[email protected]> |
1607 | ||
1608 | PR 22113 | |
1609 | * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean | |
1610 | function. Add an end address parameter. Check access of the data | |
1611 | pointer to make sure that they do not extend beyond the end | |
1612 | address. Return FALSE if any check fails. Add the end address | |
1613 | pointer to the ui structure. | |
1614 | (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind | |
1615 | codes to make sure that they do not extend beyond the end address | |
1616 | pointer. Print an error message and return immediately if any | |
1617 | check fails. | |
1618 | ||
f657f8c4 NC |
1619 | 2018-03-09 Nick Clifton <[email protected]> |
1620 | ||
1621 | * elf64-s390.c (elf_s390_relocate_section): Move check for | |
1622 | relocations against non-allocated sections to before the code that | |
1623 | handles ifunc relocations. | |
1624 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
1625 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat | |
1626 | relocs against IFUNC symbols in non-allocated sections as relocs | |
1627 | against FUNC symbols. | |
1628 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
1629 | ||
347a8774 L |
1630 | 2018-03-08 H.J. Lu <[email protected]> |
1631 | ||
1632 | PR ld/22929 | |
1633 | * elf32-i386.c (elf_i386_relocate_section): Treat relocation | |
1634 | against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as | |
1635 | relocation against FUNC symbol. | |
1636 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
1637 | ||
0c1ded8d RL |
1638 | 2018-03-07 Renlin Li <[email protected]> |
1639 | ||
1640 | PR ld/20402 | |
1641 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute | |
1642 | symbol, and don't emit relocation in specific case. | |
1643 | ||
0118219e AM |
1644 | 2018-03-07 Alan Modra <[email protected]> |
1645 | ||
1646 | * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error. | |
1647 | (mips_elf64_slurp_one_reloc_table): Pass on error. | |
1648 | ||
dfb93f11 JC |
1649 | 2018-03-03 James Cowgill <[email protected]> |
1650 | Maciej W. Rozycki <[email protected]> | |
1651 | ||
1652 | PR ld/21900 | |
1653 | * elfxx-mips.c (mips_elf_calculate_relocation): Only return | |
1654 | after calling `undefined_symbol' hook if this is an error | |
1655 | condition. Assume the value of 0 for the symbol requested | |
1656 | otherwise. | |
1657 | ||
9a2ebffd JW |
1658 | 2018-03-02 Jim Wilson <[email protected]> |
1659 | ||
1660 | PR 22903 | |
1661 | * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch | |
1662 | and nop instead of 4. | |
1663 | (elfNN_arch64_build_stubs): Add nop after branch. Increase size by | |
1664 | 8 instead of 4. | |
1665 | ||
788af978 JW |
1666 | 2018-03-01 Jim Wilson <[email protected]> |
1667 | ||
1668 | PR 22756 | |
1669 | * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use | |
1670 | else if instead of if. | |
1671 | ||
5224fa03 AM |
1672 | 2018-03-01 Alan Modra <[email protected]> |
1673 | ||
1674 | * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test. | |
1675 | ||
116acb2c AM |
1676 | 2018-02-28 Alan Modra <[email protected]> |
1677 | ||
1678 | PR 22887 | |
1679 | * aoutx.h (swap_std_reloc_in): Correct r_index bound check. | |
1680 | ||
eef10466 NC |
1681 | 2018-02-28 Nick Clifton <[email protected]> |
1682 | ||
12c96342 NC |
1683 | PR 22895 |
1684 | PR 22893 | |
1685 | * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block | |
1686 | pointer. Drop unused abfd parameter. Check the size of the block | |
1687 | before initialising the data field. Return the end pointer if the | |
1688 | size is invalid. | |
1689 | (read_attribute_value): Adjust invocations of read_n_bytes. | |
1690 | ||
eef10466 NC |
1691 | PR 22894 |
1692 | * dwarf1.c (parse_die): Check the length of form blocks before | |
1693 | advancing the data pointer. | |
1694 | ||
0d329c0a AM |
1695 | 2018-02-28 Alan Modra <[email protected]> |
1696 | ||
1697 | PR 22887 | |
1698 | * aoutx.h (translate_symbol_table): Print an error message and set | |
1699 | bfd_error on finding an invalid name string offset. | |
1700 | ||
f6aec96d L |
1701 | 2018-02-27 H.J. Lu <[email protected]> |
1702 | ||
1703 | * config.in: Regenerated. | |
1704 | * configure: Likewise. | |
1705 | * configure.ac: Add --enable-separate-code. | |
1706 | (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default | |
1707 | to 1 for Linux/x86 targets, | |
1708 | * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if | |
1709 | DEFAULT_LD_Z_SEPARATE_CODE is 1. | |
1710 | ||
f3185997 NC |
1711 | 2018-02-27 Nick Clifton <[email protected]> |
1712 | ||
e8f5af78 NC |
1713 | * aout-cris.c (swap_ext_reloc_out): Standadize error/warning |
1714 | message. | |
1715 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise. | |
1716 | * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise. | |
1717 | * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise. | |
1718 | * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise. | |
1719 | * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. | |
1720 | * elf64-sh64.c (sh_elf64_info_to_howto): Likewise. | |
1721 | * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. | |
1722 | * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise. | |
1723 | * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise. | |
1724 | ||
f3185997 NC |
1725 | PR 22875 |
1726 | * elf-bfd.h (struct elf_backend_data): Change the return type of | |
1727 | the elf_info_to_howto and elf_info_to_howto_rel function pointers | |
1728 | to bfd_boolean. | |
1729 | * elfcode.h (elf_slurp_reloc_table_from_section): Check the return | |
1730 | value from the info_to_howto function and fail if that function | |
1731 | failed. | |
1732 | * elf32-h8300.c (elf32_h8_relocate_section): Check return value | |
1733 | from the info_to_howto function. | |
1734 | (elf32_h8_relax_section): Likewise. | |
1735 | * elf32-lm32.c (lm32_elf_relocate_section): Likewise. | |
1736 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. | |
1737 | * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. | |
1738 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
1739 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. | |
1740 | * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise. | |
1741 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise. | |
1742 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. | |
1743 | * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
1744 | * elfnn-riscv.c (riscv_elf_check_relocs): Likewise. | |
1745 | (riscv_elf_relocate_section): Likewise. | |
1746 | * elf-hppa.h (elf_hppa_info_to_howto): Change return type to | |
1747 | bfd_boolean. Issue an error message, set an error value and | |
1748 | return FALSE if the reloc is not recognized. | |
1749 | (elf_hppa_info_to_howto_rel): Likewise. | |
1750 | * elf-m10200.c (mn10200_info_to_howto): Likewise. | |
1751 | * elf-m10300.c (mn10300_info_to_howto): Likewise. | |
1752 | * elf.c (_bfd_elf_no_info_to_howto): Likewise. | |
1753 | * elf32-arc.c (arc_info_to_howto_rel): Likewise. | |
1754 | * elf32-arm.c (elf32_arm_info_to_howto): Likewise. | |
1755 | * elf32-avr.c (avr_info_to_howto_rela): Likewise. | |
1756 | * elf32-bfin.c (bfin_info_to_howto): Likewise. | |
1757 | * elf32-cr16.c (elf_cr16_info_to_howto): Likewise. | |
1758 | * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise. | |
1759 | * elf32-cris.c (elf_cr16c_info_to_howto_rel) | |
1760 | (cris_info_to_howto_rela): Likewise. | |
1761 | * elf32-crx.c (elf_crx_info_to_howto): Likewise. | |
1762 | * elf32-d10v.c (d10v_info_to_howto_rel): Likewise. | |
1763 | * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela): | |
1764 | Likewise. | |
1765 | * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto) | |
1766 | (elf32_dlx_info_to_howto_rel): Likewise. | |
1767 | * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise. | |
1768 | * elf32-fr30.c (fr30_info_to_howto_rela): Likewise. | |
1769 | * elf32-frv.c (frv_info_to_howto_rela) | |
1770 | (frvfdpic_info_to_howto_rel): Likewise. | |
1771 | * elf32-ft32.c (ft32_info_to_howto_rela): Likewise. | |
1772 | * elf32-gen.c (elf_generic_info_to_howto) | |
1773 | (elf_generic_info_to_howto_rel): Likewise. | |
1774 | * elf32-h8300.c (elf32_h8_info_to_howto) | |
1775 | (elf32_h8_info_to_howto_rel): Likewise. | |
1776 | * elf32-i370.c (i370_elf_info_to_howto): Likewise. | |
1777 | * elf32-i386.c (elf_i386_reloc_type_lookup) | |
1778 | (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise. | |
1779 | * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela): | |
1780 | Likewise. | |
1781 | * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise. | |
1782 | * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise. | |
1783 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise. | |
1784 | * elf32-lm32.c (lm32_info_to_howto_rela): Likewise. | |
1785 | * elf32-m32c.c (m32c_info_to_howto_rela): Likewise. | |
1786 | * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto): | |
1787 | Likewise. | |
1788 | * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise. | |
1789 | * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise. | |
1790 | * elf32-m68k.c (rtype_to_howto): Likewise. | |
1791 | * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. | |
1792 | * elf32-mep.c (mep_info_to_howto_rela): Likewise. | |
1793 | * elf32-metag.c (metag_info_to_howto_rela): Likewise. | |
1794 | * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. | |
1795 | * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): | |
1796 | Likewise. | |
1797 | * elf32-moxie.c (moxie_info_to_howto_rela): Likewise. | |
1798 | * elf32-msp430.c (msp430_info_to_howto_rela): Likewise. | |
1799 | * elf32-mt.c (mt_info_to_howto_rela): Likewise. | |
1800 | * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto): | |
1801 | Likewise. | |
1802 | * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise. | |
1803 | * elf32-or1k.c (or1k_info_to_howto_rela): Likewise. | |
1804 | * elf32-pj.c (pj_elf_info_to_howto): Likewise. | |
1805 | * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. | |
1806 | * elf32-pru.c (pru_elf32_info_to_howto): Likewise. | |
1807 | * elf32-rl78.c (rl78_info_to_howto_rela): Likewise. | |
1808 | * elf32-rx.c (rx_info_to_howto_rela): Likewise. | |
1809 | * elf32-s390.c (elf_s390_info_to_howto): Likewise. | |
1810 | * elf32-score.c (s3_bfd_score_info_to_howto) | |
1811 | (_bfd_score_info_to_howto): Likewise. | |
1812 | * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise. | |
1813 | * elf32-sh.c (sh_elf_info_to_howto): Likewise. | |
1814 | * elf32-spu.c (spu_elf_info_to_howto): Likewise. | |
1815 | * elf32-tic6x.c (elf32_tic6x_info_to_howto) | |
1816 | (elf32_tic6x_info_to_howto_rel): Likewise. | |
1817 | * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise. | |
1818 | * elf32-v850.c (v850_elf_info_to_howto_rel) | |
1819 | (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise. | |
1820 | * elf32-vax.c (rtype_to_howto): Likewise. | |
1821 | * elf32-visium.c (visium_info_to_howto_rela): Likewise. | |
1822 | * elf32-wasm32.c (elf32_wasm32_rtype_to_howto) | |
1823 | (elf32_wasm32_info_to_howto_rela): Likewise. | |
1824 | * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise. | |
1825 | * elf32-xgate.c (xgate_info_to_howto_rel): Likewise. | |
1826 | * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise. | |
1827 | * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise. | |
1828 | * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. | |
1829 | * elf64-gen.c (elf_generic_info_to_howto) | |
1830 | (elf_generic_info_to_howto_rel): Likewise. | |
1831 | * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise. | |
1832 | * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise. | |
1833 | * elf64-mmix.c (mmix_info_to_howto_rela): Likewise. | |
1834 | * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise. | |
1835 | * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. | |
1836 | * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto): | |
1837 | Likewise. | |
1838 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise. | |
1839 | * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): | |
1840 | Likewise. | |
1841 | * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise. | |
1842 | * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise. | |
1843 | * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise. | |
1844 | * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. | |
1845 | * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise. | |
1846 | * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise. | |
1847 | * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype. | |
1848 | * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype. | |
1849 | * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype. | |
1850 | * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel): | |
1851 | Default to NULL. | |
1852 | ||
1f4bace8 JW |
1853 | 2018-02-26 Jim Wilson <[email protected]> |
1854 | Stephan Schreiber <[email protected]> | |
1855 | ||
1856 | PR 15904 | |
1857 | * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl | |
1858 | call, set changed_contents and changed_relocs. Likewise after | |
1859 | successful ia64_elf_relax_br call. | |
1860 | ||
6838f2be AM |
1861 | 2018-02-26 Alan Modra <[email protected]> |
1862 | ||
1863 | * elf.c (assign_file_positions_except_relocs): Don't segfault | |
1864 | when actual number of phdrs is less than allocated. Delete | |
1865 | outdated comment. Formatting. | |
1866 | ||
38f14ab8 AM |
1867 | 2018-02-26 Alan Modra <[email protected]> |
1868 | ||
1869 | * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c, | |
1870 | * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c, | |
1871 | * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, | |
1872 | * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c, | |
1873 | * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c, | |
1874 | * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c, | |
1875 | * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c, | |
1876 | * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c, | |
1877 | * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c, | |
1878 | * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize | |
1879 | error/warning messages. | |
1880 | ||
6e05870c AM |
1881 | 2018-02-26 Alan Modra <[email protected]> |
1882 | ||
1883 | * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c, | |
1884 | * syms.c: Standardize error/warning messages. | |
1885 | ||
59d08d6c AM |
1886 | 2018-02-26 Alan Modra <[email protected]> |
1887 | ||
1888 | * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c, | |
1889 | * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c, | |
1890 | * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c, | |
1891 | * peXXigen.c, * peicode.h: Standardize error/warning messages. | |
1892 | ||
90b6238f AM |
1893 | 2018-02-26 Alan Modra <[email protected]> |
1894 | ||
1895 | * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages. | |
1896 | ||
2c1c9679 AM |
1897 | 2018-02-26 Alan Modra <[email protected]> |
1898 | ||
1899 | * elfxx-mips.c: Standardize error/warning messages. | |
1900 | ||
9793eb77 AM |
1901 | 2018-02-26 Alan Modra <[email protected]> |
1902 | ||
1903 | * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c, | |
1904 | * elflink.c: Standardize error/warning messages. Replace use of | |
1905 | linker callback einfo with _bfd_error_handler when possible. | |
1906 | ||
0aa13fee AM |
1907 | 2018-02-26 Alan Modra <[email protected]> |
1908 | ||
1909 | * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c, | |
1910 | * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, | |
1911 | * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c, | |
1912 | * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c, | |
1913 | * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, | |
1914 | * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c, | |
1915 | * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c, | |
1916 | * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, | |
1917 | * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, | |
1918 | * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c, | |
1919 | * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c, | |
1920 | * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c, | |
1921 | * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c, | |
1922 | * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c, | |
1923 | * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c, | |
1924 | * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c, | |
1925 | * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, | |
1926 | * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c, | |
1927 | * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c, | |
1928 | * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h, | |
1929 | * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize | |
1930 | unrecognized/unsupported reloc message. | |
1931 | ||
cf97bcb0 AM |
1932 | 2018-02-26 Alan Modra <[email protected]> |
1933 | ||
1934 | * elf32-ppc.c: Standardize error/warning messages. Use | |
1935 | _bfd_error_handler rather than einfo when einfo features not used. | |
1936 | * elf64-ppc.c: Likewise. | |
1937 | ||
01f7e10c AM |
1938 | 2018-02-23 Alan Modra <[email protected]> |
1939 | ||
1940 | PR 22881 | |
1941 | * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO | |
1942 | segment if no matching LOAD segment. | |
1943 | ||
e859f655 KLC |
1944 | 2018-02-23 Kuan-Lin Chen <[email protected]> |
1945 | ||
1946 | * elf32-nds32.h: Define mask for ict_model. | |
1947 | ||
6e8d06db JD |
1948 | 2018-02-20 Jason Duerstock <[email protected]> |
1949 | ||
1950 | * elfnn-ia64.c (elf_backend_can_gc_sections): Enable. | |
1951 | ||
b248d650 MR |
1952 | 2018-02-19 Maciej W. Rozycki <[email protected]> |
1953 | ||
1954 | Revert | |
1955 | 2018-01-12 Vlad Ivanov <[email protected]> | |
1956 | ||
1957 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
1958 | .reginfo section has wrong size. | |
1959 | ||
6798f8bf MR |
1960 | 2018-02-19 Maciej W. Rozycki <[email protected]> |
1961 | ||
1962 | * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set | |
1963 | SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and | |
1964 | `.MIPS.abiflags' sections. | |
1965 | (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo' | |
1966 | section's end. | |
1967 | ||
8772de11 MR |
1968 | 2018-02-19 Maciej W. Rozycki <[email protected]> |
1969 | ||
1970 | * section.c (SEC_FIXED_SIZE): New macro. | |
1971 | * bfd-in2.h: Regenerate. | |
1972 | ||
4f7fd351 MR |
1973 | 2018-02-19 Maciej W. Rozycki <[email protected]> |
1974 | ||
1975 | * section.c (SEC_HAS_GOT_REF): Remove macro. | |
1976 | * bfd-in2.h: Regenerate. | |
1977 | ||
f2b740ac AM |
1978 | 2018-02-19 Alan Modra <[email protected]> |
1979 | ||
1980 | * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler | |
1981 | arguments. | |
1982 | * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise. | |
1983 | * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise. | |
1984 | (_bfd_riscv_relax_pc): Likewise and fix typos. | |
1985 | * libbfd-in.h (_bfd_error_handler): Add attribute printf. | |
1986 | * libbfd.h: Regenerate. | |
1987 | ||
8979927a AM |
1988 | 2018-02-19 Alan Modra <[email protected]> |
1989 | ||
1990 | * dwarf2.c (read_section): Don't use 'll' format modifier. | |
1991 | (find_abstract_instance): Likewise. | |
1992 | * elfcore.h (elf_core_file_p): Likewise. | |
1993 | ||
2dcf00ce AM |
1994 | 2018-02-19 Alan Modra <[email protected]> |
1995 | ||
1996 | * bfd-in.h: Include inttypes.h or if not available define | |
1997 | PRId64, PRIu64 and PRIx64. | |
1998 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L | |
1999 | modifier to print bfd_vma. | |
2000 | * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, | |
2001 | * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c, | |
2002 | * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c, | |
2003 | * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c, | |
2004 | * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c, | |
2005 | * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c, | |
2006 | * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c, | |
2007 | * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c, | |
2008 | * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, | |
2009 | * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c, | |
2010 | * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c, | |
2011 | * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c, | |
2012 | * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c, | |
2013 | * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c, | |
2014 | * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64, | |
2015 | and cast input to uint64_t, and similarly for Ld and Lu. | |
2016 | * bfd-in2.h: Regenerate. | |
2017 | ||
c1c8c1ef AM |
2018 | 2018-02-19 Alan Modra <[email protected]> |
2019 | ||
2020 | * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c, | |
2021 | * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c, | |
2022 | * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c, | |
2023 | * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c, | |
2024 | * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c, | |
2025 | * reloc.c: Replace use of %R and %T in format strings passed to | |
2026 | einfo and friends by %pR and %pT. | |
2027 | ||
871b3ab2 AM |
2028 | 2018-02-19 Alan Modra <[email protected]> |
2029 | ||
2030 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place | |
2031 | of %A and %B. | |
2032 | * aout-adobe.c: Update all messages using %A and %B. | |
2033 | * aout-cris.c: Likewise. | |
2034 | * aoutx.h: Likewise. | |
2035 | * archive.c: Likewise. | |
2036 | * binary.c: Likewise. | |
2037 | * cache.c: Likewise. | |
2038 | * coff-alpha.c: Likewise. | |
2039 | * coff-arm.c: Likewise. | |
2040 | * coff-i860.c: Likewise. | |
2041 | * coff-mcore.c: Likewise. | |
2042 | * coff-ppc.c: Likewise. | |
2043 | * coff-rs6000.c: Likewise. | |
2044 | * coff-sh.c: Likewise. | |
2045 | * coff-tic4x.c: Likewise. | |
2046 | * coff-tic54x.c: Likewise. | |
2047 | * coff-tic80.c: Likewise. | |
2048 | * coff64-rs6000.c: Likewise. | |
2049 | * coffcode.h: Likewise. | |
2050 | * coffgen.c: Likewise. | |
2051 | * cofflink.c: Likewise. | |
2052 | * coffswap.h: Likewise. | |
2053 | * compress.c: Likewise. | |
2054 | * cpu-arm.c: Likewise. | |
2055 | * ecoff.c: Likewise. | |
2056 | * elf-attrs.c: Likewise. | |
2057 | * elf-eh-frame.c: Likewise. | |
2058 | * elf-ifunc.c: Likewise. | |
2059 | * elf-m10300.c: Likewise. | |
2060 | * elf-properties.c: Likewise. | |
2061 | * elf-s390-common.c: Likewise. | |
2062 | * elf.c: Likewise. | |
2063 | * elf32-arc.c: Likewise. | |
2064 | * elf32-arm.c: Likewise. | |
2065 | * elf32-avr.c: Likewise. | |
2066 | * elf32-bfin.c: Likewise. | |
2067 | * elf32-cr16.c: Likewise. | |
2068 | * elf32-cr16c.c: Likewise. | |
2069 | * elf32-cris.c: Likewise. | |
2070 | * elf32-crx.c: Likewise. | |
2071 | * elf32-d10v.c: Likewise. | |
2072 | * elf32-d30v.c: Likewise. | |
2073 | * elf32-epiphany.c: Likewise. | |
2074 | * elf32-fr30.c: Likewise. | |
2075 | * elf32-frv.c: Likewise. | |
2076 | * elf32-gen.c: Likewise. | |
2077 | * elf32-hppa.c: Likewise. | |
2078 | * elf32-i370.c: Likewise. | |
2079 | * elf32-i386.c: Likewise. | |
2080 | * elf32-i960.c: Likewise. | |
2081 | * elf32-ip2k.c: Likewise. | |
2082 | * elf32-iq2000.c: Likewise. | |
2083 | * elf32-lm32.c: Likewise. | |
2084 | * elf32-m32c.c: Likewise. | |
2085 | * elf32-m32r.c: Likewise. | |
2086 | * elf32-m68hc11.c: Likewise. | |
2087 | * elf32-m68hc12.c: Likewise. | |
2088 | * elf32-m68hc1x.c: Likewise. | |
2089 | * elf32-m68k.c: Likewise. | |
2090 | * elf32-mcore.c: Likewise. | |
2091 | * elf32-mep.c: Likewise. | |
2092 | * elf32-metag.c: Likewise. | |
2093 | * elf32-microblaze.c: Likewise. | |
2094 | * elf32-moxie.c: Likewise. | |
2095 | * elf32-msp430.c: Likewise. | |
2096 | * elf32-mt.c: Likewise. | |
2097 | * elf32-nds32.c: Likewise. | |
2098 | * elf32-nios2.c: Likewise. | |
2099 | * elf32-or1k.c: Likewise. | |
2100 | * elf32-pj.c: Likewise. | |
2101 | * elf32-ppc.c: Likewise. | |
2102 | * elf32-rl78.c: Likewise. | |
2103 | * elf32-rx.c: Likewise. | |
2104 | * elf32-s390.c: Likewise. | |
2105 | * elf32-score.c: Likewise. | |
2106 | * elf32-score7.c: Likewise. | |
2107 | * elf32-sh-symbian.c: Likewise. | |
2108 | * elf32-sh.c: Likewise. | |
2109 | * elf32-sh64.c: Likewise. | |
2110 | * elf32-sparc.c: Likewise. | |
2111 | * elf32-spu.c: Likewise. | |
2112 | * elf32-tic6x.c: Likewise. | |
2113 | * elf32-tilepro.c: Likewise. | |
2114 | * elf32-v850.c: Likewise. | |
2115 | * elf32-vax.c: Likewise. | |
2116 | * elf32-visium.c: Likewise. | |
2117 | * elf32-wasm32.c: Likewise. | |
2118 | * elf32-xgate.c: Likewise. | |
2119 | * elf32-xtensa.c: Likewise. | |
2120 | * elf64-alpha.c: Likewise. | |
2121 | * elf64-gen.c: Likewise. | |
2122 | * elf64-hppa.c: Likewise. | |
2123 | * elf64-ia64-vms.c: Likewise. | |
2124 | * elf64-mmix.c: Likewise. | |
2125 | * elf64-ppc.c: Likewise. | |
2126 | * elf64-s390.c: Likewise. | |
2127 | * elf64-sh64.c: Likewise. | |
2128 | * elf64-sparc.c: Likewise. | |
2129 | * elf64-x86-64.c: Likewise. | |
2130 | * elfcode.h: Likewise. | |
2131 | * elfcore.h: Likewise. | |
2132 | * elflink.c: Likewise. | |
2133 | * elfnn-aarch64.c: Likewise. | |
2134 | * elfnn-ia64.c: Likewise. | |
2135 | * elfnn-riscv.c: Likewise. | |
2136 | * elfxx-mips.c: Likewise. | |
2137 | * elfxx-sparc.c: Likewise. | |
2138 | * elfxx-tilegx.c: Likewise. | |
2139 | * elfxx-x86.c: Likewise. | |
2140 | * hpux-core.c: Likewise. | |
2141 | * ieee.c: Likewise. | |
2142 | * ihex.c: Likewise. | |
2143 | * libbfd.c: Likewise. | |
2144 | * linker.c: Likewise. | |
2145 | * mach-o.c: Likewise. | |
2146 | * merge.c: Likewise. | |
2147 | * mmo.c: Likewise. | |
2148 | * oasys.c: Likewise. | |
2149 | * pdp11.c: Likewise. | |
2150 | * pe-mips.c: Likewise. | |
2151 | * peXXigen.c: Likewise. | |
2152 | * peicode.h: Likewise. | |
2153 | * reloc.c: Likewise. | |
2154 | * rs6000-core.c: Likewise. | |
2155 | * srec.c: Likewise. | |
2156 | * stabs.c: Likewise. | |
2157 | * vms-alpha.c: Likewise. | |
2158 | * xcofflink.c: Likewise. | |
2159 | ||
dbc88fc1 AM |
2160 | 2018-02-19 Alan Modra <[email protected]> |
2161 | ||
2162 | PR 22845 | |
2163 | * elf.c (IS_TBSS): Define. | |
2164 | (_bfd_elf_map_sections_to_segments): Use IS_TBSS. | |
2165 | (assign_file_positions_for_non_load_sections): Revert last change. | |
2166 | Properly calculate load segment limits to compare against relro limits. | |
2167 | ||
325ba6fb AM |
2168 | 2018-02-17 Alan Modra <[email protected]> |
2169 | ||
2170 | PR 22845 | |
2171 | * elf.c (assign_file_positions_for_non_load_sections): Ignore | |
2172 | degenerate zero size PT_LOAD segments when finding one overlapping | |
2173 | the PT_GNU_RELRO segment. | |
2174 | ||
d00dd7dc AM |
2175 | 2018-02-16 Alan Modra <[email protected]> |
2176 | ||
2177 | * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false. | |
2178 | (_bfd_bool_bfd_true): Rename from bfd_true. | |
2179 | (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr. | |
2180 | (_bfd_int_bfd_0): Rename from bfd_0. | |
2181 | (_bfd_uint_bfd_0): Rename from bfd_0u. | |
2182 | (_bfd_long_bfd_0): Rename from bfd_0l. | |
2183 | (_bfd_long_bfd_n1_error): Rename from _bfd_n1. | |
2184 | (_bfd_void_bfd): Rename from bfd_void. | |
2185 | (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false), | |
2186 | (_bfd_bool_bfd_link_false_error), | |
2187 | (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true), | |
2188 | (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true), | |
2189 | (_bfd_bool_bfd_asection_bfd_asection_true), | |
2190 | (_bfd_bool_bfd_asymbol_bfd_asymbol_true), | |
2191 | (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions. | |
2192 | * archive.c (_bfd_noarchive_get_elt_at_index), | |
2193 | (_bfd_noarchive_openr_next_archived_file), | |
2194 | (_bfd_noarchive_construct_extended_name_table), | |
2195 | (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname), | |
2196 | (_bfd_noarchive_write_armap): New functions. | |
2197 | * archures.c (_bfd_nowrite_set_arch_mach): New function. | |
2198 | * coff-alpha.c (alpha_ecoff_swap_coff_aux_in), | |
2199 | (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in), | |
2200 | (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out), | |
2201 | (alpha_ecoff_swap_coff_lineno_out), | |
2202 | (alpha_ecoff_swap_coff_reloc_out): New functions. | |
2203 | * coff-mips.c (mips_ecoff_swap_coff_aux_in), | |
2204 | (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in), | |
2205 | (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out), | |
2206 | (mips_ecoff_swap_coff_lineno_out), | |
2207 | (mips_ecoff_swap_coff_reloc_out): New functions. | |
2208 | * coffcode.h (coff_set_alignment_hook): Replace define with | |
2209 | new function. | |
2210 | (symname_in_debug_hook): Likewise. | |
2211 | * ecoff.c (_bfd_ecoff_set_alignment_hook): New function. | |
2212 | * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0. | |
2213 | * elf.c (assign_file_positions_except_relocs): Test | |
2214 | elf_backend_allow_non_load_phdr for NULL. | |
2215 | * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from | |
2216 | _bfd_elf_link_omit_section_dynsym. Update uses. | |
2217 | (_bfd_elf_omit_section_dynsym_all): New function. | |
2218 | * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete. | |
2219 | (_bfd_elf_omit_section_dynsym_default): Declare. | |
2220 | (_bfd_elf_omit_section_dynsym_all): Declare. | |
2221 | * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section), | |
2222 | (_bfd_nolink_bfd_get_relocated_section_contents), | |
2223 | (_bfd_nolink_bfd_lookup_section_flags), | |
2224 | (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group), | |
2225 | (_bfd_nolink_bfd_link_hash_table_create), | |
2226 | (_bfd_nolink_bfd_link_just_syms), | |
2227 | (_bfd_nolink_bfd_copy_link_hash_symbol_type), | |
2228 | (_bfd_nolink_bfd_link_split_section), | |
2229 | (_bfd_nolink_section_already_linked), | |
2230 | (_bfd_nolink_bfd_define_common_symbol), | |
2231 | (_bfd_nolink_bfd_define_start_stop): New functions. | |
2232 | * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup), | |
2233 | (_bfd_norelocs_bfd_reloc_name_lookup), | |
2234 | (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions. | |
2235 | * section.c (_bfd_nowrite_set_section_contents): New function. | |
2236 | * syms.c (_bfd_nosymbols_canonicalize_symtab), | |
2237 | (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info), | |
2238 | (_bfd_nosymbols_get_symbol_version_string), | |
2239 | (_bfd_nosymbols_bfd_is_local_label_name), | |
2240 | (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line), | |
2241 | (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info), | |
2242 | (_bfd_nosymbols_bfd_make_debug_symbol), | |
2243 | ( _bfd_nosymbols_read_minisymbols), | |
2244 | ( _bfd_nosymbols_minisymbol_to_symbol), | |
2245 | (_bfd_nodynamic_get_synthetic_symtab): New functions. | |
2246 | * libbfd-in.h: Declare new functions. Update existing defines, | |
2247 | removing casts. | |
2248 | * aix386-core.c: Update to use new hooks. Formatting. | |
2249 | * aout-adobe.c: Likewise. | |
2250 | * aout-arm.c: Likewise. | |
2251 | * aout-target.h: Likewise. | |
2252 | * aout-tic30.c: Likewise. | |
2253 | * aoutf1.h: Likewise. | |
2254 | * binary.c: Likewise. | |
2255 | * bout.c: Likewise. | |
2256 | * cisco-core.c: Likewise. | |
2257 | * coff-alpha.c: Likewise. | |
2258 | * coff-i386.c: Likewise. | |
2259 | * coff-i860.c: Likewise. | |
2260 | * coff-i960.c: Likewise. | |
2261 | * coff-ia64.c: Likewise. | |
2262 | * coff-mips.c: Likewise. | |
2263 | * coff-ppc.c: Likewise. | |
2264 | * coff-rs6000.c: Likewise. | |
2265 | * coff-sh.c: Likewise. | |
2266 | * coff-tic30.c: Likewise. | |
2267 | * coff-tic54x.c: Likewise. | |
2268 | * coff-x86_64.c: Likewise. | |
2269 | * coff64-rs6000.c: Likewise. | |
2270 | * coffcode.h: Likewise. | |
2271 | * elf-m10300.c: Likewise. | |
2272 | * elf32-cr16.c: Likewise. | |
2273 | * elf32-lm32.c: Likewise. | |
2274 | * elf32-m32r.c: Likewise. | |
2275 | * elf32-metag.c: Likewise. | |
2276 | * elf32-score.c: Likewise. | |
2277 | * elf32-score7.c: Likewise. | |
2278 | * elf32-tilepro.c: Likewise. | |
2279 | * elf32-xstormy16.c: Likewise. | |
2280 | * elf32-xtensa.c: Likewise. | |
2281 | * elf64-alpha.c: Likewise. | |
2282 | * elf64-hppa.c: Likewise. | |
2283 | * elf64-ia64-vms.c: Likewise. | |
2284 | * elf64-mmix.c: Likewise. | |
2285 | * elf64-sh64.c: Likewise. | |
2286 | * elfnn-ia64.c: Likewise. | |
2287 | * elfxx-sparc.c: Likewise. | |
2288 | * elfxx-target.h: Likewise. | |
2289 | * elfxx-tilegx.c: Likewise. | |
2290 | * elfxx-x86.h: Likewise. | |
2291 | * hp300hpux.c: Likewise. | |
2292 | * hppabsd-core.c: Likewise. | |
2293 | * hpux-core.c: Likewise. | |
2294 | * i386msdos.c: Likewise. | |
2295 | * i386os9k.c: Likewise. | |
2296 | * ieee.c: Likewise. | |
2297 | * ihex.c: Likewise. | |
2298 | * irix-core.c: Likewise. | |
2299 | * libaout.h: Likewise. | |
2300 | * libecoff.h: Likewise. | |
2301 | * mach-o-target.c: Likewise. | |
2302 | * mach-o.c: Likewise. | |
2303 | * mipsbsd.c: Likewise. | |
2304 | * mmo.c: Likewise. | |
2305 | * netbsd-core.c: Likewise. | |
2306 | * nlm-target.h: Likewise. | |
2307 | * oasys.c: Likewise. | |
2308 | * osf-core.c: Likewise. | |
2309 | * pdp11.c: Likewise. | |
2310 | * pe-mips.c: Likewise. | |
2311 | * pe-x86_64.c: Likewise. | |
2312 | * pef.c: Likewise. | |
2313 | * plugin.c: Likewise. | |
2314 | * ppcboot.c: Likewise. | |
2315 | * ptrace-core.c: Likewise. | |
2316 | * sco5-core.c: Likewise. | |
2317 | * som.c: Likewise. | |
2318 | * sparclynx.c: Likewise. | |
2319 | * srec.c: Likewise. | |
2320 | * tekhex.c: Likewise. | |
2321 | * trad-core.c: Likewise. | |
2322 | * verilog.c: Likewise. | |
2323 | * versados.c: Likewise. | |
2324 | * vms-alpha.c: Likewise. | |
2325 | * vms-lib.c: Likewise. | |
2326 | * wasm-module.c: Likewise. | |
2327 | * xsym.c: Likewise. | |
2328 | * libbfd.h: Regenerate. | |
2329 | ||
2a0d9853 JW |
2330 | 2018-02-15 Jim Wilson <[email protected]> |
2331 | ||
09ca4b9d JW |
2332 | * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore |
2333 | symbols whose section address is zero. | |
2334 | ||
2a0d9853 JW |
2335 | * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous |
2336 | when pcrel_lo reloc has an addend. Use reloc_dangerous callback for | |
2337 | bfd_reloc_dangerous. Use einfo instead of warning callback for errors. | |
2338 | Add %X%P to error messages. | |
2339 | ||
e513bd38 EB |
2340 | 2018-02-15 Eric Botcazou <[email protected]> |
2341 | ||
2342 | PR ld/22832 | |
2343 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
2344 | Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup | |
2345 | and assert that the result of the call is not NULL. | |
2346 | ||
12ef3f5a NC |
2347 | 2018-02-14 Nick Clifton <[email protected]> |
2348 | ||
2349 | PR 22823 | |
2350 | Revert previous delta. Add extra casts to avoid compile time | |
2351 | warnings instead. | |
2352 | * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra | |
2353 | cast to avoid warning from gcc v8 compiler. | |
2354 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
2355 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
2356 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
2357 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
2358 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
2359 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
2360 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
2361 | (_bfd_noarchive_truncate_arname): Likewise. | |
2362 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
2363 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
2364 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
2365 | (_bfd_nosymbols_print_symbol): Likewise. | |
2366 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
2367 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
2368 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
2369 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
2370 | (_bfd_nosymbols_get_lineno): Likewise. | |
2371 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
2372 | (_bfd_nosymbols_find_line): Likewise. | |
2373 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
2374 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
2375 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
2376 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
2377 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
2378 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
2379 | (_bfd_nowrite_set_arch_mach): Likewise. | |
2380 | (_bfd_nowrite_set_section_contents): Likewise. | |
2381 | (_bfd_nolink_sizeof_headers): Likewise. | |
2382 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
2383 | (_bfd_nolink_bfd_relax_section): Likewise. | |
2384 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
2385 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
2386 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
2387 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
2388 | (_bfd_nolink_bfd_discard_group): Likewise. | |
2389 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
2390 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
2391 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
2392 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
2393 | (_bfd_nolink_bfd_final_link): Likewise. | |
2394 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
2395 | (_bfd_nolink_section_already_linked): Likewise. | |
2396 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
2397 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
2398 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
2399 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
2400 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
2401 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
2402 | * libbfd.c (bfd_false_any): Delete. | |
2403 | (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete. | |
2404 | (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete. | |
2405 | * libbfd.h (extern): Regenerate | |
2406 | * aout-target.h (MY_bfd_is_target_special_symbol): Add extra | |
2407 | cast to avoid warning from gcc v8 compiler. | |
2408 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
2409 | * binary.c (binary_get_symbol_info): Likewise. | |
2410 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
2411 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
2412 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
2413 | (symname_in_debug_hook): Likewise. | |
2414 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
2415 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
2416 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
2417 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
2418 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
2419 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
2420 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
2421 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
2422 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
2423 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
2424 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
2425 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
2426 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
2427 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
2428 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
2429 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
2430 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
2431 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
2432 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
2433 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
2434 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
2435 | (elf_backend_init_index_section): Likewise. | |
2436 | (elf_backend_allow_non_load_phdr): Likewise. | |
2437 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
2438 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
2439 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
2440 | (ieee_write_armap): Likewise. | |
2441 | (ieee_write_ar_hdr): Likewise. | |
2442 | (ieee_bfd_is_target_special_symbol): Likewise. | |
2443 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
2444 | (ihex_bfd_is_target_special_symbol): Likewise. | |
2445 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
2446 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
2447 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
2448 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
2449 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
2450 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
2451 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
2452 | (oasys_write_armap): Likewise. | |
2453 | (oasys_write_ar_hdr): Likewise. | |
2454 | (oasys_bfd_is_target_special_symbol): Likewise. | |
2455 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
2456 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
2457 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
2458 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
2459 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
2460 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
2461 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
2462 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
2463 | (versados_bfd_reloc_name_lookup): Likewise. | |
2464 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
2465 | (vms_bfd_define_start_stop): Likewise. | |
2466 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
2467 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
2468 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
2469 | ||
451875b4 L |
2470 | 2018-02-14 H.J. Lu <[email protected]> |
2471 | ||
2472 | PR ld/22842 | |
2473 | * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non | |
2474 | PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
2475 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for | |
2476 | R_X86_64_PC32 reloc against dynamic function in data section. | |
2477 | Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
2478 | (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc | |
2479 | against dynamic function in data section. | |
2480 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as | |
2481 | function address only if pcrel_plt is true. | |
2482 | (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt. | |
2483 | * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for | |
2484 | PC-relative PLT. If PLT is PC-relative, don't generate dynamic | |
2485 | PC-relative relocation against a function definition in data | |
2486 | secton in PIE. Remove the obsolete comments. | |
2487 | (elf_x86_link_hash_table): Add pcrel_plt. | |
2488 | ||
1031c264 L |
2489 | 2018-02-13 H.J. Lu <[email protected]> |
2490 | ||
2491 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll, | |
2492 | instead of bfd_link_pic, for building shared library. | |
2493 | ||
bd7ab16b L |
2494 | 2018-02-13 H.J. Lu <[email protected]> |
2495 | ||
2496 | PR gas/22791 | |
2497 | * elf64-x86-64.c (is_32bit_relative_branch): Removed. | |
2498 | (elf_x86_64_relocate_section): Check PIC relocations in PIE. | |
2499 | Remove is_32bit_relative_branch usage. Disallow PC32 reloc | |
2500 | against protected function in shared object. | |
2501 | ||
80c96350 ST |
2502 | 2018-02-13 Sergei Trofimovich <[email protected]> |
2503 | ||
2504 | PR 22828 | |
2505 | * po/ru.po: Fix typo in Russian translation. | |
2506 | ||
87993319 MR |
2507 | 2018-02-13 Maciej W. Rozycki <[email protected]> |
2508 | ||
2509 | * wasm-module.c (wasm_scan_name_function_section): Rename | |
2510 | `index' local variable to `idx'. | |
2511 | ||
68d20676 NC |
2512 | 2018-02-13 Nick Clifton <[email protected]> |
2513 | ||
2514 | PR 22823 | |
2515 | Fix compile time warnings generated by gcc version 8. | |
2516 | * libbfd-in.h: Remove extraneous text from prototypes. | |
2517 | Add prototypes for bfd_false_any, bfd_true_any, | |
2518 | bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any, | |
2519 | bfd_n1_any, bfd_void_any. | |
2520 | (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy | |
2521 | function. | |
2522 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
2523 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
2524 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
2525 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
2526 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
2527 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
2528 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
2529 | (_bfd_noarchive_truncate_arname): Likewise. | |
2530 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
2531 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
2532 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
2533 | (_bfd_nosymbols_print_symbol): Likewise. | |
2534 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
2535 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
2536 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
2537 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
2538 | (_bfd_nosymbols_get_lineno): Likewise. | |
2539 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
2540 | (_bfd_nosymbols_find_line): Likewise. | |
2541 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
2542 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
2543 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
2544 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
2545 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
2546 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
2547 | (_bfd_nowrite_set_arch_mach): Likewise. | |
2548 | (_bfd_nowrite_set_section_contents): Likewise. | |
2549 | (_bfd_nolink_sizeof_headers): Likewise. | |
2550 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
2551 | (_bfd_nolink_bfd_relax_section): Likewise. | |
2552 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
2553 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
2554 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
2555 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
2556 | (_bfd_nolink_bfd_discard_group): Likewise. | |
2557 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
2558 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
2559 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
2560 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
2561 | (_bfd_nolink_bfd_final_link): Likewise. | |
2562 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
2563 | (_bfd_nolink_section_already_linked): Likewise. | |
2564 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
2565 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
2566 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
2567 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
2568 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
2569 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
2570 | * libbfd.c (bfd_false_any): New function. Like bfd_false but | |
2571 | accepts one or more arguments. | |
2572 | (bfd_true_any): Likewise. | |
2573 | (bfd_nullvoidptr_any): Likewise. | |
2574 | (bfd_0_any): Likewise. | |
2575 | (bfd_0u_any): Likewise. | |
2576 | (bfd_0l_any): Likewise. | |
2577 | (_bfd_n1_any): Likewise. | |
2578 | (bfd_void_any): Likewise. | |
2579 | * libbfd.h (extern): Regenerate | |
2580 | * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg | |
2581 | based dummy function. | |
2582 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
2583 | * binary.c (binary_get_symbol_info): Likewise. | |
2584 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
2585 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
2586 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
2587 | (symname_in_debug_hook): Likewise. | |
2588 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
2589 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
2590 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
2591 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
2592 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
2593 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
2594 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
2595 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
2596 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
2597 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
2598 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
2599 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
2600 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
2601 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
2602 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
2603 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
2604 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
2605 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
2606 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
2607 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
2608 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
2609 | (elf_backend_init_index_section): Likewise. | |
2610 | (elf_backend_allow_non_load_phdr): Likewise. | |
2611 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
2612 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
2613 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
2614 | (ieee_write_armap): Likewise. | |
2615 | (ieee_write_ar_hdr): Likewise. | |
2616 | (ieee_bfd_is_target_special_symbol): Likewise. | |
2617 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
2618 | (ihex_bfd_is_target_special_symbol): Likewise. | |
2619 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
2620 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
2621 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
2622 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
2623 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
2624 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
2625 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
2626 | (oasys_write_armap): Likewise. | |
2627 | (oasys_write_ar_hdr): Likewise. | |
2628 | (oasys_bfd_is_target_special_symbol): Likewise. | |
2629 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
2630 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
2631 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
2632 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
2633 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
2634 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
2635 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
2636 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
2637 | (versados_bfd_reloc_name_lookup): Likewise. | |
2638 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
2639 | (vms_bfd_define_start_stop): Likewise. | |
2640 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
2641 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
2642 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
2643 | * elf32-arc.c (get_replace_function): Assign replacement function | |
2644 | to func pointer. | |
2645 | * elf32-i370.c (i370_noop): Update prototype. | |
2646 | ||
6e5e9d58 AM |
2647 | 2018-02-13 Alan Modra <[email protected]> |
2648 | ||
2649 | PR 22836 | |
2650 | * elf.c (_bfd_elf_fixup_group_sections): Account for removed | |
2651 | relocation sections. If size reduces to just the flag word, | |
2652 | remove that too and mark with SEC_EXCLUDE. | |
2653 | * elflink.c (bfd_elf_final_link): Strip empty group sections. | |
2654 | ||
f2731e0c AM |
2655 | 2018-02-13 Alan Modra <[email protected]> |
2656 | ||
2657 | PR 22829 | |
2658 | * elf.c (assign_file_positions_for_non_load_sections): Rewrite | |
2659 | PT_GNU_RELRO setup. | |
2660 | ||
830db048 ZF |
2661 | 2018-02-12 Zebediah Figura <[email protected]> |
2662 | ||
2663 | * i386msdos.c (msdos_mkobject); New function. | |
2664 | (msdos_object_p): New function. | |
2665 | (i386_msdos_vec): Use msdos_object_p as the check_format | |
2666 | function. | |
2667 | * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and | |
2668 | NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and | |
2669 | IMAGE_NT_SIGNATURE. | |
2670 | * peXXigen.c: Likewise. | |
2671 | * coff-ia64.c: Likewise. | |
2672 | ||
94fe5757 NC |
2673 | 2018-02-12 Nick Clifton <[email protected]> |
2674 | ||
2675 | * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant | |
2676 | assignment. | |
0b8683b7 | 2677 | * elf32-arc.c (elf_arc_relocate_section): Likewise. |
94fe5757 | 2678 | |
d805612e | 2679 | 2018-02-09 Eric Botcazou <[email protected]> |
a8735c82 EB |
2680 | |
2681 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions. | |
2682 | (sparc_elf_append_rela): Assert that there is enough room in section. | |
2683 | (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting. | |
2684 | (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak. | |
2685 | (allocate_dynrelocs): Remove outdated comments and reorder conditions. | |
2686 | For a symbol subject to a GOT relocation, reserve a slot in the | |
2687 | relocation section if the symbol isn't dynamic and we are in PIC mode. | |
2688 | (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation | |
2689 | is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation. | |
2690 | <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments. | |
2691 | <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion. | |
2692 | (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into | |
2693 | resolved_to_zero. Do not generate a dynamic GOT relocation for an | |
2694 | undefined weak symbol with non-default visibility. Remove superfluous | |
2695 | 'else' and fix formatting. | |
2696 | ||
3b4c3844 L |
2697 | 2018-02-09 H.J. Lu <[email protected]> |
2698 | ||
2699 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle | |
2700 | is_solaris. | |
2701 | (i386_elf32_sol2_vec): Don't declare. | |
2702 | (elf_i386_link_setup_gnu_properties): Also handle is_solaris. | |
2703 | Don't set need_global_offset_table. | |
2704 | (elf_i386_solaris_arch_bed): New. | |
2705 | (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for | |
2706 | Solaris. | |
2707 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check | |
2708 | target_os != is_nacl instead of target_os == is_normal. | |
2709 | (x86_64_elf64_sol2_vec): Don't declare. | |
2710 | (elf_x86_64_link_setup_gnu_properties): Check target_os != | |
2711 | is_nacl instead of target_os == is_normal. Don't set | |
2712 | need_global_offset_table. | |
2713 | (elf_x86_64_solaris_arch_bed): New. | |
2714 | (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for | |
2715 | Solaris. | |
2716 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep | |
2717 | _GLOBAL_OFFSET_TABLE_ for Solaris. | |
2718 | (_bfd_x86_elf_link_setup_gnu_properties): Don't copy | |
2719 | need_global_offset_table. | |
2720 | * elfxx-x86.h (elf_x86_target_os): Add is_solaris. | |
2721 | (elf_x86_link_hash_table): Remove need_global_offset_table. | |
2722 | (elf_x86_init_table): Likewise. | |
2723 | ||
15b23f36 L |
2724 | 2018-02-08 H.J. Lu <[email protected]> |
2725 | ||
2726 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
2727 | Remove prototype. | |
2728 | (i386_elf32_sol2_vec): Declared. | |
2729 | (elf_i386_link_setup_gnu_properties): Set | |
2730 | need_global_offset_table with info->output_bfd->xvec. | |
2731 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
2732 | Remove prototype. | |
2733 | (x86_64_elf64_sol2_vec): Declared. | |
2734 | (elf_x86_64_link_setup_gnu_properties): Set | |
2735 | need_global_offset_table with info->output_bfd->xvec. | |
2736 | ||
dc11dea2 L |
2737 | 2018-02-08 H.J. Lu <[email protected]> |
2738 | ||
2739 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
2740 | New prototype. | |
2741 | (elf_i386_link_setup_gnu_properties): Set need_global_offset_table | |
2742 | for Solaris. | |
2743 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
2744 | New prototype. | |
2745 | (elf_x86_64_link_setup_gnu_properties): Set | |
2746 | need_global_offset_table for Solaris. | |
2747 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the | |
2748 | unused _GLOBAL_OFFSET_TABLE_ for Solaris. | |
2749 | (_bfd_x86_elf_link_setup_gnu_properties): Copy | |
2750 | need_global_offset_table. | |
2751 | * elfxx-x86.h (elf_x86_link_hash_table): Add | |
2752 | need_global_offset_table. | |
2753 | (elf_x86_init_table): Likewise. | |
2754 | ||
3f48fe4a JW |
2755 | 2018-02-08 Jim Wilson <[email protected]> |
2756 | ||
2757 | * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous | |
2758 | change. | |
2759 | ||
ef135d43 NC |
2760 | 2018-02-08 Nick Clifton <[email protected]> |
2761 | ||
2762 | PR 22788 | |
2763 | * elf.c (elf_parse_notes): Reject notes with excessuively large | |
2764 | alignments. | |
2765 | ||
407aa07c AM |
2766 | 2018-02-07 Alan Modra <[email protected]> |
2767 | ||
2768 | Revert 2018-01-17 Alan Modra <[email protected]> | |
2769 | * elf32-ppc.c: Remove speculation barrier support. | |
2770 | * elf32-ppc.h: Likewise. | |
2771 | * elf64-ppc.c: Likewise. | |
2772 | * elf64-ppc.h: Likewise. | |
2773 | ||
ed01220c JW |
2774 | 2018-02-06 Jim Wilson <[email protected]> |
2775 | ||
2776 | * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used | |
2777 | callback to report an error. | |
2778 | ||
c20c30f6 EB |
2779 | 2018-02-06 Eric Botcazou <[email protected]> |
2780 | ||
2781 | PR ld/22263 | |
2782 | * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic | |
2783 | into call to !bfd_link_executable and tidy up. | |
2784 | (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up. | |
2785 | <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to | |
2786 | !bfd_link_executable. | |
2787 | <R_SPARC_TLS_IE_HI22>: Likewise. | |
2788 | <GOT relocations>: Remove useless code, tidy and merge related blocks. | |
2789 | <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to | |
2790 | !bfd_link_executable. | |
2791 | <R_SPARC_WPLT30>: Tidy up. | |
2792 | (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to | |
2793 | !bfd_link_executable. | |
2794 | (allocate_dynrelocs): Likewise. | |
2795 | (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up. | |
2796 | <R_SPARC_TLS_GD_HI22>: Merge into... | |
2797 | <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to | |
2798 | sparc_elf_tls_transition and remove redundant code. | |
2799 | <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to | |
2800 | !bfd_link_executable. | |
2801 | <R_SPARC_TLS_LDO_HIX22>: Likewise. | |
2802 | <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up. | |
2803 | <R_SPARC_TLS_LDM_CALL>: Likewise. | |
2804 | <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up. | |
2805 | <R_SPARC_TLS_GD_ADD>: Likewise. | |
2806 | <R_SPARC_TLS_LDM_ADD>: Likewise. | |
2807 | <R_SPARC_TLS_LDO_ADD>: Likewise. | |
2808 | <R_SPARC_TLS_IE_LD>: Likewise. | |
2809 | ||
46d09186 NC |
2810 | 2018-02-06 Miloš Stojanović <[email protected]> |
2811 | ||
2812 | PR 22789 | |
2813 | * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf | |
2814 | functions failed to find the function name, try the generic elf | |
2815 | find function instead. | |
2816 | ||
8278e7ce SDJ |
2817 | 2018-02-06 Sergio Durigan Junior <[email protected]> |
2818 | ||
2819 | * coff-rs6000.c (xcoff_write_archive_contents_old): Use | |
2820 | 'memcpy' instead of 'strncpy' when writing the magic number. | |
2821 | ||
64e234d4 NC |
2822 | 2018-02-06 Nick Clifton <[email protected]> |
2823 | ||
2824 | PR 22794 | |
2825 | * opncls.c (bfd_get_debug_link_info_1): Check the size of the | |
2826 | section before attempting to read it in. | |
2827 | (bfd_get_alt_debug_link_info): Likewise. | |
2828 | ||
422f3d3d PC |
2829 | 2018-02-06 Paul Carroll <[email protected]> |
2830 | ||
2831 | * bfd/dwarf2.c (find_abstract_name): Modified to return file and | |
2832 | line information in addition to name, if they can be found. | |
2833 | ||
279b2f94 RL |
2834 | 2018-02-05 Renlin Li <[email protected]> |
2835 | ||
2836 | PR ld/22764 | |
2837 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the | |
2838 | R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the | |
2839 | check for writeable section as well. | |
2840 | ||
cd048363 L |
2841 | 2018-02-05 H.J. Lu <[email protected]> |
2842 | ||
2843 | PR ld/22782 | |
2844 | * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if | |
2845 | _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve | |
2846 | undefined weak symbol to 0. | |
2847 | * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced | |
2848 | if _GLOBAL_OFFSET_TABLE_ is referenced. | |
2849 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check | |
2850 | got_referenced instead of ref_regular_nonweak. Remove the | |
2851 | unused _GLOBAL_OFFSET_TABLE_ from symbol table. | |
2852 | * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced. | |
2853 | ||
e65b1a78 MR |
2854 | 2018-02-05 Maciej W. Rozycki <[email protected]> |
2855 | ||
2856 | * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to | |
2857 | initialize `hi_reloc'. | |
2858 | ||
2d6dda71 MR |
2859 | 2018-02-05 Maciej W. Rozycki <[email protected]> |
2860 | ||
2861 | * elfxx-mips.c (_bfd_mips_elf_section_processing): For | |
2862 | SHT_MIPS_REGINFO sections don't assert the correct size and | |
2863 | report an error instead. | |
2864 | ||
75506100 MR |
2865 | 2018-02-05 Maciej W. Rozycki <[email protected]> |
2866 | ||
2867 | * elf.c (_bfd_elf_write_object_contents): Propagate a failure | |
2868 | status from `->elf_backend_section_processing'. | |
2869 | ||
7f02625e JW |
2870 | 2018-02-02 Jim Wilson <[email protected]> |
2871 | ||
2872 | PR ld/22756 | |
2873 | * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info. | |
2874 | If link_info->wrap_hash, check for a duplicate symbol and ignore. | |
2875 | (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le): | |
2876 | Pass new argument to riscv_relax_delete_bytes. | |
2877 | (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove | |
2878 | ATTRIBUTE_UNUSED from link_info parameter. | |
2879 | ||
d830549d AM |
2880 | 2018-02-02 Alan Modra <[email protected]> |
2881 | ||
2882 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops | |
2883 | emitted for toc sequence optimization. Set and use "howto" later. | |
2884 | ||
e99955cd SM |
2885 | 2018-02-01 Simon Marchi <[email protected]> |
2886 | ||
2887 | * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer | |
2888 | arithmetic on NULL pointer. | |
2889 | * elflink.c (_bfd_elf_archive_symbol_lookup, | |
2890 | elf_link_add_archive_symbols): Likewise. | |
2891 | ||
bf3077a6 MM |
2892 | 2018-01-31 Michael Matz <[email protected]> |
2893 | ||
2894 | * elflink.c (bfd_elf_define_start_stop): Fix check of | |
2895 | def_dynamic. | |
2896 | ||
823143c6 L |
2897 | 2018-01-31 H.J. Lu <[email protected]> |
2898 | ||
2899 | PR ld/21964 | |
2900 | * elflink.c (bfd_elf_define_start_stop): Check if __start and | |
2901 | __stop symbols are referenced by shared objects. | |
2902 | ||
76cb3a89 AM |
2903 | 2018-01-30 Alan Modra <[email protected]> |
2904 | ||
2905 | PR 22758 | |
2906 | * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new | |
2907 | segment when demand paged with lma on the same page. Test this | |
2908 | before load/non-load, executable/non-executable, | |
2909 | writable/non-writable tests and simplify. Delete bogus relro | |
2910 | condition in writable/non-writable test. Delete outdated | |
2911 | comment. Formatting. | |
2912 | ||
36b8fda5 AM |
2913 | 2018-01-30 Alan Modra <[email protected]> |
2914 | ||
2915 | * elflink.c (bfd_elf_define_start_stop): Make __start and __stop | |
2916 | symbols dynamic. | |
2917 | ||
eb77f6a4 AM |
2918 | 2018-01-29 Alan Modra <[email protected]> |
2919 | ||
2920 | PR 22741 | |
2921 | * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in | |
2922 | range before converting to a symbol table pointer. | |
2923 | ||
7d73b4c8 NC |
2924 | 2018-01-27 Nick Clifton <[email protected]> |
2925 | ||
2926 | * po/ru.po: Updated Russian translation. | |
2927 | ||
32253bb7 AM |
2928 | 2018-01-26 Alan Modra <[email protected]> |
2929 | ||
2930 | * elflink.c (bfd_elf_define_start_stop): Override symbols when | |
2931 | they are defined dynamically. | |
2932 | ||
ba21f564 AM |
2933 | 2018-01-26 Alan Modra <[email protected]> |
2934 | ||
2935 | * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when | |
2936 | .branch_lt changes size. | |
2937 | ||
38e64b0e AM |
2938 | 2018-01-25 Alan Modra <[email protected]> |
2939 | ||
2940 | PR 22746 | |
2941 | * elfcode.h (elf_object_p): Avoid integer overflow. | |
2942 | ||
bb363086 EB |
2943 | 2018-01-25 Eric Botcazou <[email protected]> |
2944 | ||
2945 | PR ld/22727 | |
2946 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
2947 | Do a mere lookup of the __tls_get_addr symbol instead of adding it. | |
2948 | ||
2949 | Revert | |
2950 | 2017-10-19 H.J. Lu <[email protected]> | |
2951 | ||
2952 | PR ld/22263 | |
2953 | * elfxx-sparc.c (sparc_elf_tls_transition): Replace | |
2954 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with | |
2955 | bfd_link_executable for TLS check. | |
2956 | (_bfd_sparc_elf_check_relocs): Likewise. | |
2957 | (allocate_dynrelocs): Likewise. | |
2958 | (_bfd_sparc_elf_relocate_section): Likewise. | |
2959 | ||
1daf502a RL |
2960 | 2018-01-24 Renlin Li <[email protected]> |
2961 | ||
2962 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for | |
2963 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
2964 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
2965 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
2966 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
2967 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
2968 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
2969 | ||
32247401 RL |
2970 | 2018-01-24 Renlin Li <[email protected]> |
2971 | ||
2972 | * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0, | |
2973 | BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1, | |
2974 | BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2, | |
2975 | BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
2976 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for | |
2977 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
2978 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
2979 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
2980 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
2981 | * bfd-in2.h: Regenerate. | |
2982 | * libbfd.h: Regenerate. | |
2983 | ||
1c5e4ee9 MR |
2984 | 2018-01-23 Maciej W. Rozycki <[email protected]> |
2985 | ||
2986 | * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale | |
2987 | `mips_elf32_section_processing' comment reference. | |
2988 | ||
8a1b824a L |
2989 | 2018-01-20 H.J. Lu <[email protected]> |
2990 | ||
2991 | PR ld/22721 | |
2992 | * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the | |
2993 | versioned __tls_get_addr symbol. | |
2994 | ||
ee3fbc1e NC |
2995 | 2018-01-19 Nick Clifton <[email protected]> |
2996 | ||
2997 | * po/fr.po: Updated French translation. | |
2998 | ||
691d2e9a AM |
2999 | 2018-01-18 Alan Modra <[email protected]> |
3000 | ||
3001 | * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink. | |
3002 | * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align. | |
3003 | (ppc64_elf_build_stubs): Likewise. | |
3004 | ||
4bfce128 NC |
3005 | 2018-01-17 Nick Clifton <[email protected]> |
3006 | ||
3007 | * po/ru.po: Updated Russian translation. | |
3008 | * po/uk/po: Updated Ukranian translation. | |
3009 | ||
c75bc4f7 AM |
3010 | 2018-01-17 Alan Modra <[email protected]> |
3011 | ||
3012 | * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. | |
3013 | ||
1be5d8d3 AM |
3014 | 2018-01-17 Alan Modra <[email protected]> |
3015 | ||
3016 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier. | |
3017 | (CRSETEQ, BEQCTRM): Define. | |
3018 | (is_nonpic_glink_stub): Don't check bctr. | |
3019 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
3020 | (ppc_elf_relax_section): Size speculation barrier. | |
3021 | (output_bctr): New function. | |
3022 | (write_glink_stub): Use output_bctr. | |
3023 | (ppc_elf_relocate_section): Use output_bctr for long branch stub. | |
3024 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
3025 | (ppc_elf_finish_dynamic_sections): Use output_bctr. | |
3026 | * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps. | |
3027 | * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define. | |
3028 | (GLINK_PLTRESOLVE_SIZE): Size speculation barrier. | |
3029 | (size_global_entry_stubs): Handle speculation barrier sizing. | |
3030 | (plt_stub_size): Likewise. | |
3031 | (output_bctr): New function. | |
3032 | (build_plt_stub, build_tls_get_addr_stub): Output speculation | |
3033 | barrier. | |
3034 | (ppc_build_one_stub): Likewise for ppc_stub_plt_branch. | |
3035 | (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch. | |
3036 | (build_global_entry_stubs): Output speculation barrier. | |
3037 | (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub. | |
3038 | * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps. | |
3039 | ||
9e390558 AM |
3040 | 2018-01-17 Alan Modra <[email protected]> |
3041 | ||
3042 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle | |
3043 | __tls_get_addr_opt, and alignment sizing. | |
3044 | (TLS_GET_ADDR_GLINK_SIZE): Delete. | |
3045 | (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE. | |
3046 | (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6, | |
3047 | or 8 insns. | |
3048 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
3049 | (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE. | |
3050 | (ppc_elf_size_dynamic_sections): Likewise. Size branch table | |
3051 | by PLT reloc count. | |
3052 | (write_glink_stub): Handle __tls_get_addr_opt stub. | |
3053 | Pad out to size given by GLINK_ENTRY_SIZE. | |
3054 | (ppc_elf_relocate_section): Adjust write_glink_stub call. | |
3055 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
3056 | (ppc_elf_finish_dynamic_sections): Write PLTresolve without using | |
3057 | insn array since so many need rewriting. | |
3058 | * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align. | |
3059 | * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from | |
3060 | GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without | |
3061 | nops. Adjust all uses. | |
3062 | (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE | |
3063 | in glink_vma calculation. | |
3064 | (struct ppc_link_hash_table): Add global_entry section pointer. | |
3065 | (create_linkage_sections): Create separate section for global | |
3066 | entry stubs. | |
3067 | (PPC_LO, PPC_HI, PPC_HA): Move earlier. | |
3068 | (size_global_entry_stubs): Handle sizing for aligned stubs. | |
3069 | (ppc64_elf_size_dynamic_sections): Handle global_entry alloc, | |
3070 | and don't stash end of glink branch table in rawsize. | |
3071 | (ppc_build_one_stub): Rewrite stub size calculations. | |
3072 | (build_global_entry_stubs): Use new section. | |
3073 | (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops. | |
3074 | Build lazy link stubs out to end of section. Build global entry | |
3075 | stubs in new section. | |
3076 | ||
616dcb87 NC |
3077 | 2018-01-15 Nick Clifton <[email protected]> |
3078 | ||
3079 | * po/uk.po: Updated Ukranian translation. | |
3080 | ||
3957a496 NC |
3081 | 2018-01-13 Nick Clifton <[email protected]> |
3082 | ||
3083 | * po/bfd.pot: Regenerated. | |
3084 | ||
769c7ea5 NC |
3085 | 2018-01-13 Nick Clifton <[email protected]> |
3086 | ||
3087 | * version.m4: Bump version to 2.30.51 | |
3088 | * configure: Regenerate. | |
3089 | ||
faf766e3 NC |
3090 | 2018-01-13 Nick Clifton <[email protected]> |
3091 | ||
3092 | 2.30 branch created. | |
3093 | ||
564e11c9 JW |
3094 | 2018-01-12 Jens Widell <[email protected]> |
3095 | ||
3096 | * elf.c (setup_group): Optimize search for group by remembering | |
3097 | last found group and restarting search at that index. | |
3098 | * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field. | |
3099 | ||
a78eea16 AM |
3100 | 2018-01-12 Gunther Nikl <[email protected]> |
3101 | ||
3102 | * aoutx.h (aout_link_check_ar_symbols): Remove default and handle | |
3103 | bfd_link_common_skip_none in switch. | |
3104 | ||
87e79a65 AM |
3105 | 2018-01-12 Alan Modra <[email protected]> |
3106 | ||
3107 | PR ld/22649 | |
3108 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic | |
3109 | references on forced local symbols. | |
3110 | ||
58807c48 VI |
3111 | 2018-01-12 Vlad Ivanov <[email protected]> |
3112 | ||
3113 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
3114 | .reginfo section has wrong size. | |
3115 | ||
2888249f L |
3116 | 2018-01-11 H.J. Lu <[email protected]> |
3117 | ||
3118 | PR ld/22393 | |
3119 | * elf.c (_bfd_elf_map_sections_to_segments): When generating | |
3120 | separate code and read-only data LOAD segments, create a new | |
3121 | LOAD segment if the previous section contains text and the | |
3122 | current section doesn't or vice versa. Don't put a writable | |
3123 | section in a read-only segment if there is a RELRO segment. | |
3124 | ||
d664fd41 L |
3125 | 2018-01-11 H.J. Lu <[email protected]> |
3126 | ||
3127 | PR ld/22649 | |
3128 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic | |
3129 | references on forced local symbols. | |
3130 | ||
8b6f4cd3 L |
3131 | 2018-01-11 H.J. Lu <[email protected]> |
3132 | ||
3133 | PR ld/22677 | |
3134 | * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY, | |
3135 | INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section. | |
3136 | ||
9c70c522 | 3137 | 2018-01-09 Kuan-Lin Chen <[email protected]> |
6cef73f9 KLC |
3138 | |
3139 | PR 22662 | |
3140 | * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error. | |
3141 | ||
ddb2bbcf JB |
3142 | 2018-01-03 John Baldwin <[email protected]> |
3143 | ||
3144 | * elf.c (elfcore_grok_freebsd_note): Handle | |
3145 | NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and | |
3146 | NT_FREEBSD_PROCSTAT_VMMAP. | |
3147 | ||
219d1afa AM |
3148 | 2018-01-03 Alan Modra <[email protected]> |
3149 | ||
3150 | Update year range in copyright notice of all files. | |
3151 | ||
1e563868 | 3152 | For older changes see ChangeLog-2017 |
3499769a | 3153 | \f |
1e563868 | 3154 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
3155 | |
3156 | Copying and distribution of this file, with or without modification, | |
3157 | are permitted in any medium without royalty provided the copyright | |
3158 | notice and this notice are preserved. | |
3159 | ||
3160 | Local Variables: | |
3161 | mode: change-log | |
3162 | left-margin: 8 | |
3163 | fill-column: 74 | |
3164 | version-control: never | |
3165 | End: |