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