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