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