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