]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/ChangeLog
Silence a build-time warning about constant comparisons when building with clang,
[thirdparty/binutils-gdb.git] / ld / ChangeLog
1 2019-09-25 Nick Clifton <nickc@redhat.com>
2
3 * emultempl/avrelf.em (_before_allocation): Silence build warning
4 using clang.
5
6 2019-09-23 H.J. Lu <hongjiu.lu@intel.com>
7
8 * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
9 to read.
10
11 2019-09-23 Alan Modra <amodra@gmail.com>
12
13 * deffilep.y: Include bfdlink.h.
14 * ldelf.c: Likewise.
15 * ldelfgen.c: Likewise.
16 * ldver.c: Likewise.
17 * mri.c: Likewise.
18 * emultempl/irix.em: Don't include ld.h, ldmain.h, libiberty.h.
19 Comment.
20
21 2019-09-23 Alan Modra <amodra@gmail.com>
22
23 * emultempl/m68kelf.em: Include elf32-m68k.h.
24
25 2019-09-23 Alan Modra <amodra@gmail.com>
26
27 * emultempl/bfin.em: Include elf32-bfin.h.
28
29 2019-09-23 Alan Modra <amodra@gmail.com>
30
31 * emultempl/cr16elf.em: Include elf32-cr16.h.
32
33 2019-09-23 Alan Modra <amodra@gmail.com>
34
35 * emultempl/aix.em: Include xcofflink.h.
36
37 2019-09-23 Alan Modra <amodra@gmail.com>
38
39 * emultempl/armelf.em: Include elf32-arm.h.
40 * emultempl/pe.em: Move func defines later and include coff-arm.h.
41
42 2019-09-23 Alan Modra <amodra@gmail.com>
43
44 * emultempl/aarch64elf.em: Include elfxx-aarch64.h.
45
46 2019-09-23 Alan Modra <amodra@gmail.com>
47
48 * emultempl/ia64elf.em: Include elfxx-ia64.h.
49
50 2019-09-23 Alan Modra <amodra@gmail.com>
51
52 * emultempl/v850elf.em: Include elf32-v850.h.
53
54 2019-09-23 Alan Modra <amodra@gmail.com>
55
56 * emultempl/cskyelf.em: Include elf32-csky.h.
57
58 2019-09-22 Alan Modra <amodra@gmail.com>
59
60 * testsuite/ld-srec/sr3.cc (FOO_MSG_LEN): Set to 4.
61
62 2019-09-20 Nelson Chu <nelson.chu@sifive.com>
63
64 * testsuite/ld-riscv-elf/weakref32.s: Add relaxable undef weak code.
65 * testsuite/ld-riscv-elf/weakref64.s: Likewise.
66 * testsuite/ld-riscv-elf/weakref32.d: Updated.
67 * testsuite/ld-riscv-elf/weakref64.d: Updated.
68
69 2019-09-20 Alan Modra <amodra@gmail.com>
70
71 * emultempl/xtensaelf.em (xtensa_get_section_deps): Comment.
72 Use bfd_section_userdata.
73 (xtensa_set_section_deps): Use bfd_set_section_userdata.
74 * ldlang.c (lang_output_section_get): Use bfd_section_userdata.
75 (sort_def_symbol): Likewise, and bfd_set_section_userdata.
76 (init_os): Use bfd_set_section_userdata.
77 (print_all_symbols): Use bfd_section_userdata.
78 * ldlang.h (get_userdata): Delete.
79
80 2019-09-20 Alan Modra <amodra@gmail.com>
81
82 * ldelf.c (ldelf_after_open, ldelf_place_orphan
83 * ldlang.c (walk_wild_file, lang_process): Use bfd_usrdata.
84 (load_symbols, ldlang_add_file): Use bfd_set_usrdata.
85 * ldmain.c (add_archive_element): Use bfd_usrdata.
86 * ldlang.h (bfd_input_just_syms): New inline function.
87 * emultempl/aarch64elf.em (build_section_lists): Use it.
88 * emultempl/mmo.em (mmo_place_orphan): Likewise.
89 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
90 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
91 * emultempl/ppc64elf.em (build_section_lists): Likewise.
92
93 2019-09-18 Alan Modra <amodra@gmail.com>
94
95 * ldcref.c, * ldctor.c, * ldelf.c, * ldlang.c, * pe-dll.c,
96 * emultempl/aarch64elf.em, * emultempl/aix.em,
97 * emultempl/armcoff.em, * emultempl/armelf.em,
98 * emultempl/cr16elf.em, * emultempl/cskyelf.em,
99 * emultempl/m68hc1xelf.em, * emultempl/m68kelf.em,
100 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
101 * emultempl/mmo.em, * emultempl/msp430.em,
102 * emultempl/nios2elf.em, * emultempl/pe.em, * emultempl/pep.em,
103 * emultempl/ppc64elf.em, * emultempl/xtensaelf.em: Update
104 throughout for bfd section macro and function changes.
105
106 2019-09-18 Alan Modra <amodra@gmail.com>
107
108 * ldcref.c (check_reloc_refs): Update bfd_get_section to
109 bfd_asymbol_section.
110
111 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * Makefile.in: Re-generate.
114 * configure: Re-generate.
115
116 2019-09-18 Alan Modra <amodra@gmail.com>
117
118 * ldlang.c (stricpy, strcut, name_compare): Constify params.
119 (get_first_input_target): Make return and "target" const.
120
121 2019-09-18 Alan Modra <amodra@gmail.com>
122
123 * emultempl/pe.em (after_open): Use bfd_set_filename.
124 * emultempl/pep.em (after_open): Use bfd_set_filename.
125
126 2019-09-16 Alan Modra <amodra@gmail.com>
127
128 PR 25002
129 * ldelf.c: Include safe-ctype.h.
130
131 2019-09-16 Phil Blundell <pb@pbcl.net>
132
133 * Makefile.in, configure: Regenerated.
134
135 2019-09-13 Alan Modra <amodra@gmail.com>
136
137 * ldlang.c (new_afile): Remove add_to_list parameter.
138 (lang_add_input_file): Update new_afile calls.
139 (lookup_name): Splice input_statement added by new_afile into
140 statement_list after current input_file_chain entry.
141 (lang_process): Update comment.
142
143 2019-09-12 Alan Modra <amodra@gmail.com>
144
145 * ldlang.c (print_input_statement): Do not exclude linker created
146 BFDs.
147
148 2019-09-12 Alan Modra <amodra@gmail.com>
149
150 PR 24981
151 * ldlang.c (lang_process): Remove assertion. Comment.
152
153 2019-09-11 Alan Modra <amodra@gmail.com>
154
155 * emultempl/elf32.em: Remove "misnamed" comment. Rename to..
156 * emultempl/elf.em: ..this.
157 * configure.ac (elf_list_options): Adjust TEMPLATE_NAME grep.
158 * emulparams/aarch64cloudabi.sh (TEMPLATE_NAME): Set to elf.
159 * emulparams/aarch64elf.sh: Likewise.
160 * emulparams/aarch64elf32.sh: Likewise.
161 * emulparams/aarch64fbsd.sh: Likewise.
162 * emulparams/aarch64linux.sh: Likewise.
163 * emulparams/aarch64linux32.sh: Likewise.
164 * emulparams/arcelf.sh: Likewise.
165 * emulparams/arcelf_prof.sh: Likewise.
166 * emulparams/arclinux.sh: Likewise.
167 * emulparams/arclinux_prof.sh: Likewise.
168 * emulparams/arcv2elf.sh: Likewise.
169 * emulparams/arcv2elfx.sh: Likewise.
170 * emulparams/armelf.sh: Likewise.
171 * emulparams/armelf_fuchsia.sh: Likewise.
172 * emulparams/armelf_linux.sh: Likewise.
173 * emulparams/armelf_phoenix.sh: Likewise.
174 * emulparams/armnto.sh: Likewise.
175 * emulparams/avr1.sh: Likewise.
176 * emulparams/avr2.sh: Likewise.
177 * emulparams/avr25.sh: Likewise.
178 * emulparams/avr3.sh: Likewise.
179 * emulparams/avr31.sh: Likewise.
180 * emulparams/avr35.sh: Likewise.
181 * emulparams/avr4.sh: Likewise.
182 * emulparams/avr5.sh: Likewise.
183 * emulparams/avr51.sh: Likewise.
184 * emulparams/avr6.sh: Likewise.
185 * emulparams/avrtiny.sh: Likewise.
186 * emulparams/avrxmega1.sh: Likewise.
187 * emulparams/avrxmega2.sh: Likewise.
188 * emulparams/avrxmega3.sh: Likewise.
189 * emulparams/avrxmega4.sh: Likewise.
190 * emulparams/avrxmega5.sh: Likewise.
191 * emulparams/avrxmega6.sh: Likewise.
192 * emulparams/avrxmega7.sh: Likewise.
193 * emulparams/criself.sh: Likewise.
194 * emulparams/crislinux.sh: Likewise.
195 * emulparams/cskyelf.sh: Likewise.
196 * emulparams/d10velf.sh: Likewise.
197 * emulparams/elf32_sparc.sh: Likewise.
198 * emulparams/elf32_spu.sh: Likewise.
199 * emulparams/elf32_tic6x_le.sh: Likewise.
200 * emulparams/elf32_x86_64.sh: Likewise.
201 * emulparams/elf32am33lin.sh: Likewise.
202 * emulparams/elf32bfin.sh: Likewise.
203 * emulparams/elf32bfinfd.sh: Likewise.
204 * emulparams/elf32bmip.sh: Likewise.
205 * emulparams/elf32bmipn32-defs.sh: Likewise.
206 * emulparams/elf32cr16.sh: Likewise.
207 * emulparams/elf32cr16c.sh: Likewise.
208 * emulparams/elf32crx.sh: Likewise.
209 * emulparams/elf32epiphany.sh: Likewise.
210 * emulparams/elf32epiphany_4x4.sh: Likewise.
211 * emulparams/elf32frvfd.sh: Likewise.
212 * emulparams/elf32ip2k.sh: Likewise.
213 * emulparams/elf32lm32.sh: Likewise.
214 * emulparams/elf32lm32fd.sh: Likewise.
215 * emulparams/elf32lriscv-defs.sh: Likewise.
216 * emulparams/elf32m32c.sh: Likewise.
217 * emulparams/elf32mb_linux.sh: Likewise.
218 * emulparams/elf32mbel_linux.sh: Likewise.
219 * emulparams/elf32mcore.sh: Likewise.
220 * emulparams/elf32mep.sh: Likewise.
221 * emulparams/elf32metag.sh: Likewise.
222 * emulparams/elf32microblaze.sh: Likewise.
223 * emulparams/elf32mipswindiss.sh: Likewise.
224 * emulparams/elf32or1k.sh: Likewise.
225 * emulparams/elf32ppccommon.sh: Likewise.
226 * emulparams/elf32rl78.sh: Likewise.
227 * emulparams/elf32rx.sh: Likewise.
228 * emulparams/elf32tilegx.sh: Likewise.
229 * emulparams/elf32tilepro.sh: Likewise.
230 * emulparams/elf32vax.sh: Likewise.
231 * emulparams/elf32visium.sh: Likewise.
232 * emulparams/elf32xc16x.sh: Likewise.
233 * emulparams/elf32xc16xl.sh: Likewise.
234 * emulparams/elf32xc16xs.sh: Likewise.
235 * emulparams/elf32xstormy16.sh: Likewise.
236 * emulparams/elf32xtensa.sh: Likewise.
237 * emulparams/elf64_aix.sh: Likewise.
238 * emulparams/elf64_ia64.sh: Likewise.
239 * emulparams/elf64_s390.sh: Likewise.
240 * emulparams/elf64_sparc.sh: Likewise.
241 * emulparams/elf64alpha.sh: Likewise.
242 * emulparams/elf64bpf.sh: Likewise.
243 * emulparams/elf64hppa.sh: Likewise.
244 * emulparams/elf64mmix.sh: Likewise.
245 * emulparams/elf64rdos.sh: Likewise.
246 * emulparams/elf64tilegx.sh: Likewise.
247 * emulparams/elf_i386.sh: Likewise.
248 * emulparams/elf_i386_be.sh: Likewise.
249 * emulparams/elf_i386_ldso.sh: Likewise.
250 * emulparams/elf_i386_vxworks.sh: Likewise.
251 * emulparams/elf_iamcu.sh: Likewise.
252 * emulparams/elf_k1om.sh: Likewise.
253 * emulparams/elf_l1om.sh: Likewise.
254 * emulparams/elf_s390.sh: Likewise.
255 * emulparams/elf_x86_64.sh: Likewise.
256 * emulparams/h8300elf.sh: Likewise.
257 * emulparams/h8300elf_linux.sh: Likewise.
258 * emulparams/hppa64linux.sh: Likewise.
259 * emulparams/hppaelf.sh: Likewise.
260 * emulparams/hppalinux.sh: Likewise.
261 * emulparams/i386lynx.sh: Likewise.
262 * emulparams/i386moss.sh: Likewise.
263 * emulparams/i386nto.sh: Likewise.
264 * emulparams/m32relf.sh: Likewise.
265 * emulparams/m32relf_linux.sh: Likewise.
266 * emulparams/m68hc11elf.sh: Likewise.
267 * emulparams/m68hc11elfb.sh: Likewise.
268 * emulparams/m68hc12elf.sh: Likewise.
269 * emulparams/m68hc12elfb.sh: Likewise.
270 * emulparams/m68kelf.sh: Likewise.
271 * emulparams/mn10300.sh: Likewise.
272 * emulparams/nds32elf.sh: Likewise.
273 * emulparams/nds32elf16m.sh: Likewise.
274 * emulparams/nds32elf_linux.sh: Likewise.
275 * emulparams/nios2elf.sh: Likewise.
276 * emulparams/nios2linux.sh: Likewise.
277 * emulparams/pruelf.sh: Likewise.
278 * emulparams/score3_elf.sh: Likewise.
279 * emulparams/shelf.sh: Likewise.
280 * emulparams/shelf_nto.sh: Likewise.
281 * emulparams/shelf_vxworks.sh: Likewise.
282 * emulparams/shlelf_linux.sh: Likewise.
283 * emulparams/shlelf_nto.sh: Likewise.
284 * emulparams/v850.sh: Likewise.
285 * emulparams/v850_rh850.sh: Likewise.
286 * ldelf.c: Update comment.
287 * ldelf.h: Likewise.
288 * emultempl/aarch64elf.em: Likewise.
289 * emultempl/alphaelf.em: Likewise.
290 * emultempl/arclinux.em: Likewise.
291 * emultempl/armelf.em: Likewise.
292 * emultempl/avrelf.em: Likewise.
293 * emultempl/bfin.em: Likewise.
294 * emultempl/cr16elf.em: Likewise.
295 * emultempl/crxelf.em: Likewise.
296 * emultempl/cskyelf.em: Likewise.
297 * emultempl/elf-generic.em: Likewise.
298 * emultempl/elf-x86.em: Likewise.
299 * emultempl/epiphanyelf_4x4.em: Likewise.
300 * emultempl/hppaelf.em: Likewise.
301 * emultempl/ia64elf.em: Likewise.
302 * emultempl/m68hc1xelf.em: Likewise.
303 * emultempl/m68kelf.em: Likewise.
304 * emultempl/metagelf.em: Likewise.
305 * emultempl/mmix-elfnmmo.em: Likewise.
306 * emultempl/mmixelf.em: Likewise.
307 * emultempl/mmo.em: Likewise.
308 * emultempl/needrelax.em: Likewise.
309 * emultempl/nios2elf.em: Likewise.
310 * emultempl/ppc32elf.em: Likewise.
311 * emultempl/ppc64elf.em: Likewise.
312 * emultempl/pruelf.em: Likewise.
313 * emultempl/rxelf.em: Likewise.
314 * emultempl/scoreelf.em: Likewise.
315 * emultempl/spuelf.em: Likewise.
316 * emultempl/tic6xdsbt.em: Likewise.
317 * emultempl/v850elf.em: Likewise.
318 * emultempl/vms.em: Likewise.
319 * emultempl/vxworks.em: Likewise.
320 * emultempl/xtensaelf.em: Likewise.
321 * scripttempl/arclinux.sc: Likewise.
322 * scripttempl/armbpabi.sc: Likewise.
323 * scripttempl/elf.sc: Likewise.
324 * scripttempl/elf64bpf.sc: Likewise.
325 * scripttempl/elf64hppa.sc: Likewise.
326 * scripttempl/elf_chaos.sc: Likewise.
327 * scripttempl/elfarc.sc: Likewise.
328 * scripttempl/elfarcv2.sc: Likewise.
329 * scripttempl/elfd10v.sc: Likewise.
330 * scripttempl/elfm68hc11.sc: Likewise.
331 * scripttempl/elfm68hc12.sc: Likewise.
332 * scripttempl/elfm9s12z.sc: Likewise.
333 * scripttempl/elfxgate.sc: Likewise.
334 * scripttempl/elfxtensa.sc: Likewise.
335 * scripttempl/epiphany_4x4.sc: Likewise.
336 * scripttempl/iq2000.sc: Likewise.
337 * scripttempl/mep.sc: Likewise.
338 * scripttempl/nds32elf.sc: Likewise.
339 * scripttempl/v850.sc: Likewise.
340 * scripttempl/v850_rh850.sc: Likewise.
341 * scripttempl/xstormy16.sc: Likewise.
342 * testsuite/ld-arm/arm-dyn.ld: Likewise.
343 * testsuite/ld-arm/arm-lib.ld: Likewise.
344 * testsuite/ld-arm/arm-no-rel-plt.ld: Likewise.
345 * testsuite/ld-arm/fdpic-main.ld: Likewise.
346 * testsuite/ld-arm/fdpic-shared.ld: Likewise.
347 * testsuite/ld-elf/elf.exp: Likewise.
348 * testsuite/ld-elf/orphan-region.d: Likewise.
349 * testsuite/ld-elf/orphan.d: Likewise.
350 * testsuite/ld-elf/pr349.d: Likewise.
351 * testsuite/ld-elf/warn2.d: Likewise.
352 * testsuite/ld-elfvsb/elf-offset.ld: Likewise.
353 * testsuite/ld-mips-elf/mips-dyn.ld: Likewise.
354 * testsuite/ld-mips-elf/mips-lib.ld: Likewise.
355 * testsuite/ld-scripts/dynamic-sections.t: Likewise.
356 * testsuite/ld-shared/elf-offset.ld: Likewise.
357 * configure: Regenerate.
358
359 2019-09-11 Alan Modra <amodra@gmail.com>
360
361 * Makefile.am (ALL_EMUL_EXTRA_OFILES): Add ldelf and ldelfgen.
362 (CFILES, HFILES, EXTRA_ld_new_SOURCES): Likewise.
363 * configure.tgt: Formatting.
364 (targ_extra_ofiles): Init to ldelf.o ldelfgen.o, reset to just
365 ldelfgen.o for generic ELF targets, and empty for non-ELF.
366 * emultempl/aarch64elf.em (gldaarch64_layout_sections_again): Use
367 ldelf_map_segments.
368 (gld${EMULATION_NAME}_after_allocation): Likewise.
369 (real_func, aarch64_for_each_input_file_wrapper),
370 (aarch64_lang_for_each_input_file): Delete.
371 (lang_for_each_input_file): Don't define.
372 * emultempl/alphaelf.em (alpha_after_parse): Use ldelf_map_segments.
373 * emultempl/armelf.em (gldarm_layout_sections_again): Likewise.
374 (gld${EMULATION_NAME}_after_allocation): Likewise.
375 (real_func, arm_for_each_input_file_wrapper),
376 (arm_lang_for_each_input_file): Delete.
377 (lang_for_each_input_file): Don't define.
378 * emultempl/cr16elf.em (cr16elf_after_parse): Use ldelf_map_segments.
379 * emultempl/crxelf.em (crxelf_after_parse): Likewise. Delete
380 declaration.
381 * emultempl/cskyelf.em (gldcsky_layout_sections_again): Use
382 ldelf_map_segments.
383 (gld${EMULATION_NAME}_after_allocation): Likewise.
384 (real_func, csky_for_each_input_file_wrapper),
385 (csky_lang_for_each_input_file): Delete.
386 (lang_for_each_input_file): Don't define.
387 * emultempl/genelf.em: Include ldelfgen.h.
388 (gld${EMULATION_NAME}_before_allocation): Use ldelf_map_segments.
389 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
390 (hppaelf_layout_sections_again): Likewise.
391 (gld${EMULATION_NAME}_after_allocation): Likewise.
392 (real_func, hppa_for_each_input_file_wrapper),
393 (hppa_lang_for_each_input_file): Delete.
394 (lang_for_each_input_file): Don't define.
395 * emultempl/ia64elf.em (ia64elf_after_parse): Use ldelf_map_segments.
396 * emultempl/m68hc1xelf.em (real_func),
397 (m68hc11_for_each_input_file_wrapper),
398 (m68hc11_lang_for_each_input_file): Delete.
399 (lang_for_each_input_file): Don't define.
400 * emultempl/metagelf.em (metagelf_layout_sections_again): Use
401 ldelf_map_segments.
402 (gld${EMULATION_NAME}_after_allocation): Likewise.
403 (real_func, metag_for_each_input_file_wrapper),
404 (metag_lang_for_each_input_file): Delete.
405 (lang_for_each_input_file): Don't define.
406 * emultempl/mipself.em (real_func),
407 (mips_for_each_input_file_wrapper),
408 (mips_lang_for_each_input_file): Delete.
409 (lang_for_each_input_file): Don't define.
410 * emultempl/mmo.em: Don't include elf-bfd.h, do include ldelfgen.h.
411 (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
412 * emultempl/nds32elf.em (nds32_elf_after_parse): Use ldelf_after_parse.
413 (nds32_elf_after_allocation): Comment fix.
414 * emultempl/nios2elf.em (nios2elf_layout_sections_again): Use
415 ldelf_map_segments.
416 (gld${EMULATION_NAME}_after_allocation): Likewise.
417 (real_func, nios2_for_each_input_file_wrapper),
418 (nios2_lang_for_each_input_file): Delete.
419 (lang_for_each_input_file): Don't define.
420 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_load_symbols): Delete
421 declaration.
422 (ppc_recognized_file): Call ldelf_load_symbols.
423 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
424 (gld${EMULATION_NAME}_after_allocation): Likewise.
425 (real_func, ppc_for_each_input_file_wrapper),
426 (ppc_lang_for_each_input_file): Delete.
427 (lang_for_each_input_file): Don't define.
428 (gld${EMULATION_NAME}_load_symbols): Don't declare.
429 (ppc64_recognized_file): Call ldelf_load_symbols.
430 * emultempl/riscvelf.em (gld${EMULATION_NAME}_after_allocation):
431 Use ldelf_map_segments.
432 * emultempl/spuelf.em (spu_place_special_section): Use
433 ldelf_place_orphan.
434 * emultempl/tic6xdsbt.em (gld${EMULATION_NAME}_after_allocation):
435 Use ldelf_map_segments.
436 * emultempl/vms.em: Include ldelfgen.h.
437 (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
438 * emultempl/elf32.em: Remove unnecessary headers, include ldelf.h
439 and ldelfgen.h. Move much of file content to..
440 * ldelf.c: ..here. New file.
441 * ldelf.h: New file.
442 * emultempl/elf-generic.em: Move gld${EMULATION_NAME}_map_segments..
443 * ldelfgen.c: ..to here.
444 * ldelfgen.h: New file.
445 * ldlang.c (lang_for_each_input_file): Adjust to only call func
446 on real files.
447 (lang_for_each_file): Likewise.
448 * po/SRC-POTFILES.in: Regenerate.
449 * Makefile.in: Regenerate.
450
451 2019-09-11 Alan Modra <amodra@gmail.com>
452
453 * ldmisc.c: Don't #include elf-bfd.h or coff-bfd.h.
454 (vfinfo): Use bfd_group_name.
455
456 2019-09-11 Alan Modra <amodra@gmail.com>
457
458 * plugin.c (asymbol_from_plugin_symbol): Move code handling
459 ELF common symbols to block handling ELF visibility. Simplify
460 visibility setting.
461
462 2019-09-09 H.J. Lu <hongjiu.lu@intel.com>
463
464 PR binutils/24887
465 * testsuite/ld-i386/property-1.r: Adjust for new output format
466 from readelf.
467 * testsuite/ld-i386/property-1a.r: Likewise.
468 * testsuite/ld-i386/property-2.r: Likewise.
469 * testsuite/ld-i386/property-2a.r: Likewise.
470 * testsuite/ld-i386/property-3.r: Likewise.
471 * testsuite/ld-i386/property-3a.r: Likewise.
472 * testsuite/ld-i386/property-4.r: Likewise.
473 * testsuite/ld-i386/property-4a.r: Likewise.
474 * testsuite/ld-i386/property-5.r: Likewise.
475 * testsuite/ld-i386/property-5a.r: Likewise.
476 * testsuite/ld-i386/property-6.r: Likewise.
477 * testsuite/ld-i386/property-7.r: Likewise.
478 * testsuite/ld-i386/property-7a.r: Likewise.
479 * testsuite/ld-i386/property-1.r: Likewise.
480 * testsuite/ld-i386/property-1a.r: Likewise.
481 * testsuite/ld-i386/property-2.r: Likewise.
482 * testsuite/ld-i386/property-2a.r: Likewise.
483 * testsuite/ld-i386/property-3.r: Likewise.
484 * testsuite/ld-i386/property-3a.r: Likewise.
485 * testsuite/ld-i386/property-4.r: Likewise.
486 * testsuite/ld-i386/property-4a.r: Likewise.
487 * testsuite/ld-i386/property-5.r: Likewise.
488 * testsuite/ld-i386/property-5a.r: Likewise.
489 * testsuite/ld-i386/property-6.r: Likewise.
490 * testsuite/ld-i386/property-7.r: Likewise.
491 * testsuite/ld-i386/property-7a.r: Likewise.
492
493 2019-09-09 Phil Blundell <pb@pbcl.net>
494
495 binutils 2.33 branch created.
496
497 2019-09-06 Alan Modra <amodra@gmail.com>
498
499 * emultempl/beos.em (sort_by_file_name): Use appropriate
500 intermediary variables.
501 (sort_by_section_name): Likewise.
502
503 2019-09-06 Alan Modra <amodra@gmail.com>
504
505 * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Constify
506 variable.
507 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
508 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
509
510 2019-09-05 Eric Botcazou <ebotcazou@adacore.com>
511
512 PR ld/24574
513 * pe-dll.c (pe_find_data_imports): Replace again the original name of
514 the undefined symbol with the __imp_ prefixed one after it is resolved.
515
516 2019-09-05 Alan Modra <amodra@gmail.com>
517
518 * testsuite/ld-powerpc/pcrelopt.s,
519 * testsuite/ld-powerpc/pcrelopt.d: Test offset and prefix in
520 second instruction.
521
522 2019-08-29 Alan Modra <amodra@gmail.com>
523
524 PR ld/24406
525 * plugin.c (get_symbols): Test link_info.wrap_hash before calling
526 unwrap_hash_lookup.
527
528 2019-08-22 Tamar Christina <tamar.christina@arm.com>
529
530 PR ld/24601
531 * testsuite/ld-aarch64/aarch64-elf.exp (undef-tls, weak-tls): New.
532 * testsuite/ld-aarch64/undef-tls.d: New test.
533 * testsuite/ld-aarch64/undef-tls.s: New test.
534 * testsuite/ld-aarch64/weak-tls.d: New test.
535 * testsuite/ld-aarch64/weak-tls.s: New test.
536
537 2019-08-20 Tamar Christina <tamar.christina@arm.com>
538
539 * testsuite/ld-arm/cortex-a8-fix-b-plt.d: Update Testcase.
540 * testsuite/ld-arm/cortex-a8-fix-b-rel-arm.d: Likewise.
541 * testsuite/ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
542 * testsuite/ld-arm/farcall-cond-thumb-arm.d: Likewise.
543 * testsuite/ld-arm/farcall-mixed-app.d: Likewise.
544 * testsuite/ld-arm/farcall-mixed-app2.d: Likewise.
545 * testsuite/ld-arm/farcall-mixed-lib-v4t.d: Likewise.
546 * testsuite/ld-arm/farcall-thumb-arm-pic-veneer.d: Likewise.
547 * testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
548 * testsuite/ld-arm/farcall-thumb-arm.d: Likewise.
549 * testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
550 * testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
551 * testsuite/ld-arm/fix-arm1176-on.d: Likewise.
552 * testsuite/ld-arm/ifunc-10.dd: Likewise.
553 * testsuite/ld-arm/ifunc-2.dd: Likewise.
554 * testsuite/ld-arm/ifunc-4.dd: Likewise.
555 * testsuite/ld-arm/ifunc-6.dd: Likewise.
556 * testsuite/ld-arm/ifunc-8.dd: Likewise.
557 * testsuite/ld-arm/jump-reloc-veneers-long.d: Likewise.
558 * testsuite/ld-arm/mixed-app.d: Likewise.
559 * testsuite/ld-arm/thumb2-b-interwork.d: Likewise.
560 * testsuite/ld-arm/tls-longplt.d: Likewise.
561 * testsuite/ld-arm/tls-thumb1.d: Likewise.
562
563 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
564
565 PR ld/24905
566 * testsuite/ld-x86-64/pr24905-x32.d: New file.
567 * testsuite/ld-x86-64/pr24905.d: Likewise.
568 * testsuite/ld-x86-64/pr24905.s: Likewise.
569 * testsuite/ld-x86-64/pr24905.t: Likewise.
570 * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
571
572 2019-08-16 Christophe Lyon <christophe.lyon@linaro.org>
573
574 * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
575 section.
576
577 2019-08-16 Alan Modra <amodra@gmail.com>
578
579 * emultempl/ppc32elf.em (ppc_before_allocation): Force running
580 prelim_size_sections before deciding whether branch trampolines
581 might be needed.
582
583 2019-08-15 Jim Wilson <jimw@sifive.com>
584
585 * testsuite/ld-riscv-elf/c-lui-2.d: New.
586 * testsuite/ld-riscv-elf/c-lui-2.ld: New.
587 * testsuite/ld-riscv-elf/c-lui-2.s: New.
588 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
589
590 2019-08-10 Alan Modra <amodra@gmail.com>
591
592 * ldlang.h (enum statement_enum): Sort.
593 (union lang_statement_union): Sort.
594
595 2019-08-10 Alan Modra <amodra@gmail.com>
596
597 * ldlang.h (lang_common_statement_type): Delete.
598 (lang_object_symbols_statement_type): Delete.
599 (union lang_statement_union): Remove common_statement and
600 object_symbols_statement.
601
602 2019-08-10 Alan Modra <amodra@gmail.com>
603
604 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
605 (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
606 stat_alloc return value.
607 * ldlang.c (new_statement, new_afile, sort_def_symbol),
608 (lang_memory_region_lookup, lang_memory_region_alias),
609 (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
610 (lang_add_gc_name, lang_new_phdr): Likewise.
611 * lexsup.c (set_segment_start): Likewise.
612
613 2019-08-10 Alan Modra <amodra@gmail.com>
614
615 * ldlang.h (lang_input_statement_type): Make next
616 and next_real_file a lang_input_statement_type pointer.
617 (lang_statement_append): Delete prototype.
618 (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
619 change.
620 * ldmain.c (add_archive_element): Likewise.
621 * ldlang.c: Likewise throughout.
622 (lang_statement_append): Make static. Make element and field
623 void pointers. Remove casts in calls.
624 (lang_check): Use a lang_input_statement_type pointer for "file".
625 (find_rescan_insertion): Similarly for "iter" and return value.
626 (lang_process): Similarly for "insert", "iter" and "temp".
627 * emultempl/spuelf.em (embedded_spu_file): Likewise.
628 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
629 lang_statment_append call.
630
631 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
632
633 * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
634 * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
635 * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
636 * emultempl/mipself.em: Remove mips_after_parse function.
637 * testsuite/ld-elf/hash.d: Update comment.
638 * testsuite/ld-mips-elf/hash1.d: New test.
639 * testsuite/ld-mips-elf/hash1.s: Ditto.
640 * testsuite/ld-mips-elf/hash1a.d: Remove.
641 * testsuite/ld-mips-elf/hash1b.d: Ditto.
642 * testsuite/ld-mips-elf/hash1c.d: Ditto
643 * testsuite/ld-mips-elf/hash2.d: New test.
644 * testsuite/ld-mips-elf/mips-elf.exp: New tests.
645 * testsuite/ld-mips-elf/start.s: New test.
646
647 2019-08-08 Nick Clifton <nickc@redhat.com>
648
649 PR 24887
650 * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
651 from readelf.
652 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
653 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
654 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
655 * testsuite/ld-aarch64/bti-warn.d: Likewise.
656 * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
657 * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
658 * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
659 * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
660 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
661 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
662 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
663 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
664 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
665 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
666 * testsuite/ld-i386/pr23372a.d: Likewise.
667 * testsuite/ld-i386/pr23372c.d: Likewise.
668 * testsuite/ld-i386/pr23486a.d: Likewise.
669 * testsuite/ld-i386/pr23486b.d: Likewise.
670 * testsuite/ld-i386/pr23486c.d: Likewise.
671 * testsuite/ld-i386/pr23486d.d: Likewise.
672 * testsuite/ld-i386/pr24322a.d: Likewise.
673 * testsuite/ld-i386/pr24322b.d: Likewise.
674 * testsuite/ld-i386/property-x86-3.d: Likewise.
675 * testsuite/ld-i386/property-x86-4a.d: Likewise.
676 * testsuite/ld-i386/property-x86-5.d: Likewise.
677 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
678 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
679 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
680 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
681 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
682 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
683 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
684 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
685 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
686 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
687 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
688 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
689 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
690 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
691 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
692 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
693 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
694 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
695 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
696 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
697 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
698 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
699 * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
700 * testsuite/ld-x86-64/pr23372a.d: Likewise.
701 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
702 * testsuite/ld-x86-64/pr23372c.d: Likewise.
703 * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
704 * testsuite/ld-x86-64/pr23486a.d: Likewise.
705 * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
706 * testsuite/ld-x86-64/pr23486b.d: Likewise.
707 * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
708 * testsuite/ld-x86-64/pr23486c.d: Likewise.
709 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
710 * testsuite/ld-x86-64/pr23486d.d: Likewise.
711 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
712 * testsuite/ld-x86-64/pr24322a.d: Likewise.
713 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
714 * testsuite/ld-x86-64/pr24322b.d: Likewise.
715 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
716 * testsuite/ld-x86-64/pr24458a.d: Likewise.
717 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
718 * testsuite/ld-x86-64/pr24458b.d: Likewise.
719 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
720 * testsuite/ld-x86-64/pr24458c.d: Likewise.
721 * testsuite/ld-x86-64/property-1.r: Likewise.
722 * testsuite/ld-x86-64/property-1a.r: Likewise.
723 * testsuite/ld-x86-64/property-2.r: Likewise.
724 * testsuite/ld-x86-64/property-2a.r: Likewise.
725 * testsuite/ld-x86-64/property-3.r: Likewise.
726 * testsuite/ld-x86-64/property-3a.r: Likewise.
727 * testsuite/ld-x86-64/property-4.r: Likewise.
728 * testsuite/ld-x86-64/property-4a.r: Likewise.
729 * testsuite/ld-x86-64/property-5.r: Likewise.
730 * testsuite/ld-x86-64/property-5a.r: Likewise.
731 * testsuite/ld-x86-64/property-6.r: Likewise.
732 * testsuite/ld-x86-64/property-7.r: Likewise.
733 * testsuite/ld-x86-64/property-7a.r: Likewise.
734 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
735 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
736 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
737 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
738 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
739 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
740 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
741 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
742 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
743 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
744 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
745 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
746 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
747 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
748 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
749 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
750 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
751 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
752 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
753 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
754 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
755 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
756 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
757 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
758 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
759 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
760 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
761 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
762 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
763 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
764 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
765 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
766 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
767 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
768 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
769 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
770 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
771 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
772 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
773 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
774 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
775 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
776
777 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
778
779 * scripttempl/elf64bpf.sc: Adapted from elf.sc.
780 * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
781 (EMBEDDED): Define.
782 * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
783 undefined entry symbol.
784 * testsuite/ld-bpf/jump-1.d: Likewise.
785 * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
786 ld in BPF targets, and do not expect line number information.
787 * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
788 in BPF targets.
789
790 2019-08-06 Alan Modra <amodra@gmail.com>
791
792 PR 24873
793 * ldlang.c (find_replacements_insert_point): Return "before" flag.
794 (find_next_input_statement): New function.
795 (lang_process): When placing recompiled LTO objects before a
796 claimed archive, place them immediately before in the statement
797 list.
798
799 2019-08-06 Alan Modra <amodra@gmail.com>
800
801 PR 24873
802 * ldlang.c (plugin_undefs): New static var.
803 (open_input_bfds <lang_group_statement_enum>): Loop on
804 plugin_undefs and hitting plugin_insert point.
805 (lang_process <lto_plugin_active>): Set plugin_undefs.
806
807 2019-08-02 Alan Modra <amodra@gmail.com>
808
809 * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
810
811 2019-08-01 Alan Modra <amodra@gmail.com>
812
813 PR 24806
814 * ldlang.c (process_insert_statements): Add start of list
815 parameter. Use rather than lang_os_list.head. Process insert
816 statements inside group statements with a recursive call.
817 (lang_process): Adjust process_insert_statements call.
818 * lexsup.c (parse_args): Warn when adding missing --end-group.
819
820 2019-08-01 Alan Modra <amodra@gmail.com>
821
822 * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
823 * ldlang.c: Likewise throughout file.
824 * emultempl/alphaelf.em: Likewise.
825 * emultempl/elf32.em: Likewise.
826 * emultempl/mmo.em: Likewise.
827 * emultempl/pe.em: Likewise.
828 * emultempl/pep.em: Likewise.
829 * emultempl/ppc32elf.em: Likewise.
830 * emultempl/spuelf.em: Likewise.
831
832 2019-07-26 Alan Modra <amodra@gmail.com>
833
834 * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
835 * testsuite/ld-plugin/lto-5r.d: Likewise.
836
837 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
838
839 * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
840 of __gnu_lto_v.*.
841 * testsuite/ld-plugin/lto-5r.d: Likewise.
842 * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
843
844 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
845
846 * ld-arc/relax-local-pic.d: New test.
847 * ld-arc/relax-local-pic.s: New file.
848
849 2019-07-22 Martin Liska <mliska@suse.cz>
850
851 * testsuite/ld-plugin/lto-3r.d: Remove.
852 * testsuite/ld-plugin/lto-5r.d: Remove.
853 * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
854 tests.
855
856 2019-07-23 Alan Modra <amodra@gmail.com>
857
858 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
859 SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
860
861 2019-07-23 Alan Modra <amodra@gmail.com>
862
863 * testsuite/ld-elf/size-1.d,
864 * testsuite/ld-elf/size-1.s,
865 * testsuite/ld-elf/size-1.t: New test.
866 * testsuite/ld-elf/size-2.d,
867 * testsuite/ld-elf/size-2.s,
868 * testsuite/ld-elf/size-2.t: New test.
869 * testsuite/ld-scripts/size-1.d,
870 * testsuite/ld-scripts/size-1.s,
871 * testsuite/ld-scripts/size-1.t,
872 * testsuite/ld-scripts/size-2.s,
873 * testsuite/ld-scripts/size-2.d,
874 * testsuite/ld-scripts/size-2.t,
875 * testsuite/ld-scripts/size.exp: Delete.
876
877 2019-07-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
878
879 * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
880 allow for output from a arm-none-linux-gnueabihf target.
881
882 2019-07-20 Alan Modra <amodra@gmail.com>
883
884 PR 24827
885 * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
886
887 2019-07-19 Alan Modra <amodra@gmail.com>
888
889 * testsuite/ld-powerpc/tlsgd.d,
890 * testsuite/ld-powerpc/tlsgd.s,
891 * testsuite/ld-powerpc/tlsie.d,
892 * testsuite/ld-powerpc/tlsie.s,
893 * testsuite/ld-powerpc/tlsld.d,
894 * testsuite/ld-powerpc/tlsld.s: New tests.
895 * testsuite/ld-powerpc/powerpc.exp: Run them.
896
897 2019-07-19 Alan Modra <amodra@gmail.com>
898
899 * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
900 * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
901 * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
902 * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
903 * testsuite/ld-powerpc/powerpc.exp: Update.
904
905 2019-07-19 Alan Modra <amodra@gmail.com>
906
907 PR 24819
908 * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
909
910 2019-07-18 H.J. Lu <hongjiu.lu@intel.com>
911
912 PR ld/24819
913 * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
914 member of output section group when doing a relocatable link.
915 * testsuite/ld-elf/pr24819.d: New file.
916 * testsuite/ld-elf/pr24819.s: Likewise.
917
918 2019-07-13 Alan Modra <amodra@gmail.com>
919
920 * testsuite/ld-powerpc/tlsso.r: Update.
921 * testsuite/ld-powerpc/tlsso32.g: Update.
922 * testsuite/ld-powerpc/tlsso32.r: Update.
923 * testsuite/ld-powerpc/tlstocso.r: Update.
924 * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
925 * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
926 * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
927 * testsuite/ld-cris/tls-gd-1.d: Update.
928 * testsuite/ld-cris/tls-gd-1h.d: Update.
929 * testsuite/ld-cris/tls-gd-2.d: Update.
930 * testsuite/ld-cris/tls-gd-2h.d: Update.
931 * testsuite/ld-cris/tls-ie-10.d: Update.
932 * testsuite/ld-cris/tls-ie-11.d: Update.
933 * testsuite/ld-cris/tls-ie-8.d: Update.
934 * testsuite/ld-cris/tls-ie-9.d: Update.
935 * testsuite/ld-cris/tls-js1.d: Update.
936 * testsuite/ld-cris/tls-ld-4.d: Update.
937 * testsuite/ld-cris/tls-ld-5.d: Update.
938 * testsuite/ld-cris/tls-ld-6.d: Update.
939 * testsuite/ld-cris/tls-ld-7.d: Update.
940 * testsuite/ld-cris/tls-ldgd-14.d: Update.
941 * testsuite/ld-cris/tls-ldgd-15.d: Update.
942 * testsuite/ld-cris/tls-ldgdx-14.d: Update.
943 * testsuite/ld-cris/tls-ldgdx-15.d: Update.
944 * testsuite/ld-cris/tls-local-54.d: Update.
945 * testsuite/ld-cris/tls-local-60.d: Update.
946 * testsuite/ld-cris/tls-local-61.d: Update.
947 * testsuite/ld-cris/tls-local-63.d: Update.
948 * testsuite/ld-cris/tls-local-64.d: Update.
949 * testsuite/ld-cris/tls-ok-30.d: Update.
950 * testsuite/ld-cris/tls-ok-32.d: Update.
951 * testsuite/ld-cris/tls-ok-34.d: Update.
952 * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
953 * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
954 * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
955 * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
956 * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
957 * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
958 * testsuite/ld-mips-elf/tlslib-o32.got: Update.
959 * testsuite/ld-s390/tlspic.rd: Update.
960 * testsuite/ld-s390/tlspic_64.rd: Update.
961 * testsuite/ld-sparc/tlssunnopic32.rd: Update.
962 * testsuite/ld-sparc/tlssunnopic64.rd: Update.
963 * testsuite/ld-sparc/tlssunpic32.rd: Update.
964 * testsuite/ld-sparc/tlssunpic64.rd: Update.
965
966 2019-07-13 Alan Modra <amodra@gmail.com>
967
968 PR 24786
969 * ldlang.h (enum section_type): Add first_overlay_section.
970 * ldlang.c (lang_add_section): Adjust switch statement.
971 (map_input_to_output_sections): Likewise.
972 (lang_size_sections_1): Always set last_os for first overlay section.
973 (lang_leave_overlay): Set sectype to first_overlay_section.
974
975 2019-07-08 Alan Modra <amodra@gmail.com>
976
977 * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
978 * testsuite/ld-powerpc/callstub-2.d: Likewise.
979
980 2019-07-04 Jan Beulich <jbeulich@suse.com>
981
982 * testsuite/ld-elf/group9.s: Correct argument of .type.
983
984 2019-07-02 Nick Clifton <nickc@redhat.com>
985
986 PR 24753
987 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
988 LINKER_CREATED section flag when creating the stub section.
989
990 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
991
992 * testsuite/ld-arm/arm-elf.exp: Add tests.
993 * testsuite/ld-arm/cmse_main.s: New test.
994 * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
995 * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
996
997 2019-07-01 Nick Clifton <nickc@redhat.com>
998
999 PR 23839
1000 * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
1001 exidx relocs.
1002
1003 2019-06-28 Alan Modra <amodra@gmail.com>
1004
1005 * testsuite/ld-powerpc/callstub-1.d,
1006 * testsuite/ld-powerpc/callstub-1.s: New test.
1007 * testsuite/ld-powerpc/callstub-2.d,
1008 * testsuite/ld-powerpc/callstub-2.s: New test.
1009 * testsuite/ld-powerpc/powerpc.exp: Run them.
1010
1011 2019-06-25 Jan Beulich <jbeulich@suse.com>
1012
1013 * plugin.c (get_lto_kind, get_lto_resolution,
1014 get_lto_visibility): Rename "index" to "idx".
1015
1016 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
1017
1018 PR ld/24721
1019 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
1020 * testsuite/ld-x86-64/pr24721-x32.d: New file.
1021 * testsuite/ld-x86-64/pr24721.d: Likewise.
1022 * testsuite/ld-x86-64/pr24721.map: Likewise.
1023 * testsuite/ld-x86-64/pr24721a.s: Likewise.
1024 * testsuite/ld-x86-64/pr24721b.s: Likewise.
1025
1026 2019-06-23 Alan Modra <amodra@gmail.com>
1027
1028 PR 24704
1029 * testsuite/ld-powerpc/elfv2exe.d: Update.
1030 * testsuite/ld-powerpc/elfv2so.d: Update.
1031
1032 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
1033
1034 * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
1035 * testsuite/ld-aarch64/emit-relocs-22.d: New test.
1036 * testsuite/ld-aarch64/emit-relocs-22.s: New test.
1037 * testsuite/ld-aarch64/emit-relocs-23.d: New test.
1038 * testsuite/ld-aarch64/emit-relocs-23.s: New test.
1039
1040 2019-06-14 Alan Modra <amodra@gmail.com>
1041
1042 * Makefile.in: Regenerate.
1043 * configure: Regenerate.
1044
1045 2019-06-14 Alan Modra <amodra@gmail.com>
1046
1047 PR 24662
1048 * testsuite/ld-alpha/tlsbin.rd: Update.
1049 * testsuite/ld-alpha/tlsbinr.rd: Update.
1050 * testsuite/ld-alpha/tlspic.rd: Update.
1051
1052 2019-06-07 Maciej W. Rozycki <macro@wdc.com>
1053
1054 * ld.texi (Options): Also document `-rpath' option restrictions
1055 in the description of the option itself.
1056
1057 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1058
1059 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
1060 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
1061 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
1062 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
1063
1064 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1065
1066 * NEWS: Update options names.
1067 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
1068 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
1069 (PARSE_AND_LIST_OPTIONS): Update to -z.
1070 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
1071 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
1072 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
1073 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
1074 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
1075 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
1076 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
1077 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
1078 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
1079 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
1080 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1081 * testsuite/ld-aarch64/bti-warn.d: Likewise.
1082 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
1083 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
1084
1085 2019-05-30 Nick Clifton <nickc@redhat.com>
1086
1087 PR 24627
1088 * testsuite/ld-elf/ver_def.vd: Update expected output.
1089
1090 2019-05-30 Alan Modra <amodra@gmail.com>
1091
1092 PR 24596
1093 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
1094 (EXTRA_EM_FILE): Define to genelf.
1095 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
1096
1097 2019-05-30 Alan Modra <amodra@gmail.com>
1098
1099 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
1100 calls in optional "xfail" args.
1101 (run_ld_link_exec_tests): Likewise.
1102 (is_generic): New.
1103 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
1104 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
1105 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
1106 xfail_implib var.
1107 * testsuite/ld-elf/sec64k.exp: Use is_generic.
1108 * testsuite/ld-elf/shared.exp: Likewise.
1109 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
1110 * testsuite/ld-discard/start.d: Likewise.
1111 * testsuite/ld-discard/static.d: Likewise.
1112 * testsuite/ld-elf/attributes.d: Likewise.
1113 * testsuite/ld-elf/group1.d: Likewise.
1114 * testsuite/ld-elf/group3b.d: Likewise.
1115 * testsuite/ld-elf/group8a.d: Likewise.
1116 * testsuite/ld-elf/group8b.d: Likewise.
1117 * testsuite/ld-elf/group9a.d: Likewise.
1118 * testsuite/ld-elf/group9b.d: Likewise.
1119 * testsuite/ld-elf/linkonce2.d: Likewise.
1120 * testsuite/ld-elf/merge2.d: Likewise.
1121 * testsuite/ld-elf/merge3.d: Likewise.
1122 * testsuite/ld-elf/pr12851.d: Likewise.
1123 * testsuite/ld-elf/pr12975.d: Likewise.
1124 * testsuite/ld-elf/pr13177.d: Likewise.
1125 * testsuite/ld-elf/pr13195.d: Likewise.
1126 * testsuite/ld-elf/pr17550c.d: Likewise.
1127 * testsuite/ld-elf/pr17550d.d: Likewise.
1128 * testsuite/ld-elf/pr17615.d: Likewise.
1129 * testsuite/ld-elf/pr21562a.d: Likewise.
1130 * testsuite/ld-elf/pr21562b.d: Likewise.
1131 * testsuite/ld-elf/pr21562c.d: Likewise.
1132 * testsuite/ld-elf/pr21562d.d: Likewise.
1133 * testsuite/ld-elf/pr21562i.d: Likewise.
1134 * testsuite/ld-elf/pr21562j.d: Likewise.
1135 * testsuite/ld-elf/pr21562k.d: Likewise.
1136 * testsuite/ld-elf/pr21562l.d: Likewise.
1137 * testsuite/ld-elf/pr21562m.d: Likewise.
1138 * testsuite/ld-elf/pr21562n.d: Likewise.
1139 * testsuite/ld-elf/pr22677.d: Likewise.
1140 * testsuite/ld-elf/pr22836-1a.d: Likewise.
1141 * testsuite/ld-elf/pr22836-1b.d: Likewise.
1142 * testsuite/ld-elf/warn3.d: Likewise.
1143 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
1144 targets rather than notarget.
1145 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
1146 * testsuite/ld-elf/orphan-10.d: Likewise.
1147 * testsuite/ld-elf/orphan-9.d: Likewise.
1148 * testsuite/ld-elf/orphan-region.d: Likewise.
1149 * testsuite/ld-elf/orphan.d: Likewise.
1150 * testsuite/ld-elf/orphan3.d: Likewise.
1151 * testsuite/ld-elf/pr20528a.d: Likewise.
1152 * testsuite/ld-elf/pr20528b.d: Likewise.
1153 * testsuite/ld-elf/pr23658-1a.d: Likewise.
1154 * testsuite/ld-elf/pr23658-1b.d: Likewise.
1155 * testsuite/ld-elf/pr349.d: Likewise.
1156 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
1157 targets rather than notarget.
1158 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
1159
1160 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
1161
1162 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
1163 for pcrel_hi/pcrel_lo.
1164 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
1165 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
1166 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
1167 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
1168 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1169
1170 2019-05-28 Alan Modra <amodra@gmail.com>
1171
1172 PR 24596
1173 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
1174 the output is coff before accessing coff tdata.
1175 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
1176
1177 2019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
1178
1179 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
1180 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
1181
1182 2019-05-27 Alan Modra <amodra@gmail.com>
1183
1184 PR 24596
1185 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
1186 BFS_KEEP on group signature symbol.
1187
1188 2019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1189
1190 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
1191 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
1192 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
1193 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
1194 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
1195 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
1196 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
1197
1198 2019-05-24 Alan Modra <amodra@gmail.com>
1199
1200 * po/BLD-POTFILES.in: Regenerate.
1201
1202 2019-05-24 Alan Modra <amodra@gmail.com>
1203
1204 * testsuite/ld-powerpc/notoc2.d,
1205 * testsuite/ld-powerpc/notoc2.s: New test.
1206 * testsuite/ld-powerpc/powerpc.exp: Run it.
1207
1208 2019-05-24 Alan Modra <amodra@gmail.com>
1209
1210 * testsuite/ld-powerpc/pcrelopt.s,
1211 * testsuite/ld-powerpc/pcrelopt.d,
1212 * testsuite/ld-powerpc/pcrelopt.sec: New test.
1213 * testsuite/ld-powerpc/powerpc.exp: Run it.
1214
1215 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1216
1217 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
1218 * Makefile.in (prefix): Regenerate.
1219 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
1220 * emulparams/elf64bpf.sh: New file.
1221 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
1222 bpf-*-* to the list of targets not supporting gc-sections.
1223 * testsuite/ld-bpf/bar.s: New file.
1224 * testsuite/ld-bpf/jump-1.d: Likewise.
1225 * testsuite/ld-bpf/foo.s: Likewise.
1226 * testsuite/ld-bpf/call-1.d: Likewise.
1227 * testsuite/ld-bpf/bpf.exp: Likewise.
1228 * testsuite/ld-bpf/baz.s: Likewise.
1229
1230 2019-05-23 Alan Modra <amodra@gmail.com>
1231
1232 PR 24576
1233 * ldfile.c (enum script_open_style): New.
1234 (struct script_name_list): New.
1235 (ldfile_open_command_file_1): Take a script_open_style param
1236 rather than booleans. Adjust callers. Only fail when -T or
1237 default -T script is invoked twice.
1238 (ldfile_try_open_bfd): Revert last change.
1239
1240 2019-05-22 Julius Werner <jwerner@chromium.org>
1241 Nick Clifton <nickc@redhat.com>
1242
1243 PR 24576
1244 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
1245 is_script. If true check that the file has not already been
1246 parsed as a linker script.
1247 (ldfile_open_script_file): New function.
1248 (ldfile_try_open_bfd): Use the new function in place of
1249 ldfile_open_command_line.
1250 * ldmain.c (main): Likewise.
1251 * lexsup.c (parse_args): Use the new function for opening linker
1252 scripts with the -T option.
1253 * ldfile.h (ldfile_open_script_file): Add prototype.
1254
1255 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1256
1257 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
1258 %tprel_hi and %tprel_lo relocations.
1259 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
1260 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
1261 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
1262 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
1263 script file.
1264
1265 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1266
1267 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
1268 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
1269 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
1270 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
1271 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
1272 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
1273 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1274
1275 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
1276 Faraz Shahbazker <fshahbazker@wavecomp.com>
1277
1278 * emultempl/mipself.em (compact_branches): New static variable.
1279 (mips_create_output_section_statements): Call
1280 _bfd_mips_elf_compact_branches.
1281 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
1282 OPTION_NO_COMPACT_BRANCHES.
1283 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
1284 no-compact-branches.
1285 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
1286 --no-compact-branches.
1287 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
1288 * ld.texinfo: Document --compact-branches, --no-compact-branches.
1289 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
1290 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
1291 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
1292 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
1293 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
1294 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
1295 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1296
1297 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1298
1299 * testsuite/ld-arm/arm-elf.exp: Add tests
1300 * testsuite/ld-arm/bfs-0.s: New test.
1301 * testsuite/ld-arm/bfs-1.s: New test.
1302 * testsuite/ld-arm/branch-futures.d: New test.
1303
1304 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1305
1306 PR ld/24373
1307 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
1308 to flags.
1309 * NEWS: Add changes to flag.
1310 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
1311 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
1312 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
1313 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
1314 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
1315 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
1316 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
1317 * testsuite/ld-aarch64/erratum843419-far.s: New test.
1318 * testsuite/ld-aarch64/erratum843419-full.d: New test.
1319 * testsuite/ld-aarch64/erratum843419-near.s: New test.
1320 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
1321
1322 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1323
1324 PR ld/24571
1325 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
1326 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
1327
1328 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1329
1330 PR ld/24564
1331 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
1332 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
1333
1334 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
1335
1336 PR 14798
1337 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
1338 global code symbols.
1339 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
1340
1341 2019-05-17 Alan Modra <amodra@gmail.com>
1342
1343 PR 24567
1344 * plugin.c (plugin_notice): Do not let a common symbol override
1345 a non-common definition in IR.
1346
1347 2019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
1348
1349 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
1350 Rename.
1351
1352 2019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
1353
1354 PR 24536
1355 * ldbuildid.c (generate_build_id): Cast return value from
1356 GetProcAddress in order to avoid a compile time warning.
1357
1358 2019-05-06 Alan Modra <amodra@gmail.com>
1359
1360 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
1361
1362 2019-05-04 Alan Modra <amodra@gmail.com>
1363
1364 * testsuite/ld-scripts/fill.d: Don't xfail m32c
1365 * testsuite/ld-scripts/fill16.d: Likewise.
1366
1367 2019-05-04 Alan Modra <amodra@gmail.com>
1368
1369 PR 24511
1370 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
1371 data section on hppa64.
1372 * testsuite/ld-elf/pr14156b.d: Likewise.
1373 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
1374 output section flags.
1375 * testsuite/ld-scripts/sane1.t: Likewise.
1376 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
1377 and __fini_array_start. Define __start et al.
1378 * testsuite/ld-elf/pr24511.d: New test.
1379
1380 2019-04-30 Alan Modra <amodra@gmail.com>
1381
1382 * testsuite/ld-powerpc/elfv2exe.d: Update.
1383 * testsuite/ld-powerpc/elfv2so.d: Update.
1384 * testsuite/ld-powerpc/tocopt.d: Update.
1385 * testsuite/ld-powerpc/tocopt.s: Update.
1386 * testsuite/ld-powerpc/tocopt5.d: Update.
1387 * testsuite/ld-powerpc/tocopt5.s: Update.
1388 * testsuite/ld-powerpc/tocopt7.d: Update.
1389 * testsuite/ld-powerpc/tocopt7.s: Update.
1390 * testsuite/ld-powerpc/tocopt8.d: Update.
1391 * testsuite/ld-powerpc/tocopt8.s: Update.
1392
1393 2019-04-30 Alan Modra <amodra@gmail.com>
1394
1395 * ld.texi (How GNU properties are merged): Avoid pod2man error.
1396 Correct example.
1397
1398 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1399
1400 PR ld/24486
1401 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
1402 * testsuite/ld-plugin/pr24486a.c: New file.
1403 * testsuite/ld-plugin/pr24486b.c: Likewise.
1404 * testsuite/ld-plugin/pr24486c.c: Likewise.
1405
1406 2019-04-26 Nick Clifton <nickc@redhat.com>
1407
1408 * po/ru.po: Updated Russian translation.
1409
1410 2019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
1411
1412 * ld.texi: Properly hyphenate the word "specific".
1413
1414 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
1415
1416 PR ld/24406
1417 * ld.texi: Remove LTO warning from --wrap.
1418 * plugin.c (get_symbols): Update resolution for wrapper and
1419 wrapped symbols.
1420 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
1421 * testsuite/ld-plugin/pr24406-1.c: New file.
1422 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
1423 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
1424
1425 2019-04-25 Sudakshina Das <sudi.das@arm.com>
1426
1427 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
1428 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
1429 * testsuite/ld-aarch64/bti-plt-1.d: Update.
1430 * testsuite/ld-aarch64/bti-plt-3.d: Update.
1431 * testsuite/ld-aarch64/bti-plt-5.d: Update.
1432 * testsuite/ld-aarch64/pac-plt-1.d: Update.
1433 * testsuite/ld-aarch64/pac-plt-2.d: Update.
1434
1435 2019-04-24 Sandra Loosemore <sandra@codesourcery.com>
1436
1437 * testsuite/config/default.exp: Use [check_compiler_available]
1438 instead of [which $CC].
1439 * testsuite/ld-auto-import/auto-import.exp: Likewise.
1440 * testsuite/ld-cygwin/exe-export.exp: Likewise.
1441 * testsuite/ld-elf/audit.exp: Likewise.
1442 * testsuite/ld-elf/compress.exp: Likewise.
1443 * testsuite/ld-elf/dwarf.exp: Likewise.
1444 * testsuite/ld-elf/elf.exp: Likewise.
1445 * testsuite/ld-elf/indirect.exp: Likewise.
1446 * testsuite/ld-elf/linux-x86.exp: Likewise.
1447 * testsuite/ld-elf/shared.exp: Likewise.
1448 * testsuite/ld-elf/tls.exp: Likewise.
1449 * testsuite/ld-elf/wrap.exp: Likewise.
1450 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1451 * testsuite/ld-elfvers/vers.exp: Likewise.
1452 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1453 * testsuite/ld-elfweak/elfweak.exp: Likewise.
1454 * testsuite/ld-gc/gc.exp: Likewise.
1455 * testsuite/ld-i386/i386.exp: Likewise.
1456 * testsuite/ld-i386/no-plt.exp: Likewise.
1457 * testsuite/ld-i386/tls.exp: Likewise.
1458 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1459 * testsuite/ld-mn10300/mn10300.exp: Likewise.
1460 * testsuite/ld-pe/pe-compile.exp: Likewise.
1461 * testsuite/ld-pe/pe-run.exp: Likewise.
1462 * testsuite/ld-pe/pe-run2.exp: Likewise.
1463 * testsuite/ld-pie/pie.exp: Likewise.
1464 * testsuite/ld-plugin/lto.exp: Likewise.
1465 * testsuite/ld-plugin/plugin.exp: Likewise.
1466 * testsuite/ld-scripts/crossref.exp: Likewise.
1467 * testsuite/ld-sh/sh.exp: Likewise.
1468 * testsuite/ld-shared/shared.exp: Likewise.
1469 * testsuite/ld-size/size.exp: Likewise.
1470 * testsuite/ld-srec/srec.exp: Likewise.
1471 * testsuite/ld-undefined/undefined.exp: Likewise.
1472 * testsuite/ld-unique/unique.exp: Likewise.
1473 * testsuite/ld-x86-64/mpx.exp: Likewise.
1474 * testsuite/ld-x86-64/no-plt.exp: Likewise.
1475 * testsuite/ld-x86-64/tls.exp: Likewise.
1476 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1477 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
1478 check_compiler_available before trying to use the compiler.
1479 (run_cc_link_tests): Likewise.
1480 (check_compiler_available): New. Use it instead of [which $CC].
1481
1482 2019-04-23 Alan Modra <amodra@gmail.com>
1483
1484 * Makefile.am (GENDEPDIR): New var, used..
1485 (GENSCRIPTS): ..here.
1486 * Makefile.in: Regenerate.
1487 * genscripts.sh: Test for $DEPDIR set before every use.
1488
1489 2019-04-22 Matthew Fortune <matthew.fortune@mips.com>
1490
1491 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
1492 for M5100.
1493
1494 2019-04-19 Alan Modra <amodra@gmail.com>
1495
1496 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
1497 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
1498 s12z to list of targets not supporting --gc-sections.
1499
1500 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1501
1502 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
1503 of pr18801.
1504 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1505 * testsuite/ld-i386/pr18801.d: Removed.
1506 * testsuite/ld-x86-64/pr18801.d: Likewise.
1507 * testsuite/ld-i386/pr18801a.d: New file.
1508 * testsuite/ld-i386/pr18801b.d: Likewise.
1509 * testsuite/ld-x86-64/pr18801a.d: Likewise.
1510 * testsuite/ld-x86-64/pr18801b.d: Likewise.
1511 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
1512 * testsuite/ld-x86-64/pie2.d: Likewise.
1513 * testsuite/ld-x86-64/pr19719.d: Likewise.
1514 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1515 * testsuite/ld-x86-64/pr19969.d: Likewise.
1516 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
1517 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
1518 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
1519 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
1520 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
1521
1522 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1523
1524 PR ld/24458
1525 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
1526 * testsuite/ld-x86-64/pr24458.s: New file.
1527 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
1528 * testsuite/ld-x86-64/pr24458a.d: Likewise.
1529 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
1530 * testsuite/ld-x86-64/pr24458b.d: Likewise.
1531 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
1532 * testsuite/ld-x86-64/pr24458c.d: Likewise.
1533
1534 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1535
1536 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
1537 symbol when .lower.bss or .either.bss sections exist.
1538 Define __crt0_movedata when .lower.data or .either.data sections exist.
1539 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
1540 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
1541 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
1542 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
1543 * testsuite/gas/msp430/msp430.exp: Run new tests.
1544 Enable large code model when running -mdata-region={upper,either}
1545 tests.
1546
1547 2019-04-16 Alan Modra <amodra@gmail.com>
1548
1549 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
1550 * testsuite/ld-scripts/section-match-1.d: Likewise.
1551 * testsuite/ld-undefined/require-defined.exp: Likewise.
1552
1553 2019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
1554
1555 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
1556 targets.
1557
1558 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1559
1560 * testsuite/ld-arm/bfcsel.s: New.
1561 * testsuite/ld-arm/bfcsel.d: New.
1562 * testsuite/ld-arm/arm-elf.exp: Add above test.
1563
1564 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1565
1566 * testsuite/ld-arm/bfl.s: New.
1567 * testsuite/ld-arm/bfl.d: New.
1568 * testsuite/ld-arm/arm-elf.exp: Add above test.
1569
1570 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1571
1572 * testsuite/ld-arm/bf.s: New.
1573 * testsuite/ld-arm/bf.d: New.
1574 * testsuite/ld-arm/arm-elf.exp: Add above test.
1575
1576 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1577
1578 * testsuite/ld-arm/attr-merge-13.attr: New test.
1579 * testsuite/ld-arm/attr-merge-13a.s: New test.
1580 * testsuite/ld-arm/attr-merge-13b.s: New test.
1581
1582 2019-04-13 Alan Modra <amodra@gmail.com>
1583
1584 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
1585 DEPDIR parameter.
1586 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
1587 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
1588 $GEN_DEPENDS.
1589 (e*.c): Delete all dependencies, instead include dependencies
1590 from $DEPDIR/*.Pc.
1591 * Makefile.in: Regenerate.
1592 * configure.ac (source_sh): Define and use function.
1593 * configure: Regenerate.
1594 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
1595 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
1596 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
1597 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
1598 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
1599 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
1600 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
1601 * emulparams/armelf_linux_eabi.sh,
1602 * emulparams/armelf_linux_fdpiceabi.sh,
1603 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
1604 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
1605 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
1606 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
1607 * emulparams/armelfb_linux_fdpiceabi.sh,
1608 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
1609 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
1610 * emulparams/elf32_sparc_sol2.sh,
1611 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
1612 * emulparams/elf32_tic6x_elf_be.sh,
1613 * emulparams/elf32_tic6x_elf_le.sh,
1614 * emulparams/elf32_tic6x_linux_be.sh,
1615 * emulparams/elf32_tic6x_linux_le.sh,
1616 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
1617 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
1618 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
1619 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
1620 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
1621 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
1622 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
1623 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
1624 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
1625 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
1626 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
1627 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1628 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
1629 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
1630 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
1631 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
1632 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
1633 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
1634 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
1635 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
1636 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
1637 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
1638 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
1639 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
1640 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
1641 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
1642 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
1643 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
1644 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
1645 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
1646 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
1647 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
1648 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
1649 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
1650 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
1651 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
1652 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
1653 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
1654 * emulparams/elf_x86_64_cloudabi.sh,
1655 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
1656 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
1657 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
1658 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
1659 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
1660 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
1661 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
1662 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
1663 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
1664 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
1665 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
1666 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
1667 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
1668 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
1669 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
1670 * emulparams/shl.sh, * emulparams/shlelf.sh,
1671 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
1672 * emulparams/shlelf_vxworks.sh: Use source_sh.
1673 * genscripts.sh: Adjust for changed parameters. Emit dependencies
1674 for e*.c to .deps/*.Pc.
1675 (source_sh): New function, use it throughout to source scripts.
1676 * genscrba.sh (source_em): Use source_sh.
1677
1678 2019-04-13 Alan Modra <amodra@gmail.com>
1679
1680 * configure.ac (TDIRS): Build up tdirs in this variable and
1681 AC_SUBST, also using AM_SUBST_NOTMAKE.
1682 * configure: Regenerate.
1683 * Makefile.am (DISTCLEANFILES): Remove tdirs.
1684 * Makefile.in: Regenerate.
1685
1686 2019-04-12 Nick Clifton <nickc@redhat.com>
1687
1688 PR 24450
1689 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
1690 example of section attributes.
1691
1692 2019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
1693
1694 * NEWS: Mention new option --no-print-map-discarded.
1695 * ld.h (ld_config_type) <print_map_discarded>: New field.
1696 * ldlang.c (lang_map): Conditionally output discarded sections
1697 in map files based on configuration option.
1698 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
1699 OPTION_NO_PRINT_MAP_DISCARDED>: New.
1700 * ldmain.c (main): Enabled print_map_discarded by default.
1701 * lexsup.c (ld_options): Add new command-line options.
1702 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
1703 OPTION_PRINT_MAP_DISCARDED>: New cases.
1704 * ld.texi: Document new options.
1705 * testsuite/ld-gc/gc.exp: Add new test.
1706 * testsuite/ld-gc/skip-map-discarded.s: New file.
1707 * testsuite/ld-gc/skip-map-discarded.d: New file.
1708 * testsuite/ld-gc/skip-map-discarded.map: New file.
1709
1710 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1711
1712 * ld.texi: Document -z cet-report=[none|warning|error].
1713 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
1714 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
1715 tests.
1716 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1717 * testsuite/ld-i386/property-x86-cet1.d: New file.
1718 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
1719 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
1720 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
1721 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
1722 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
1723 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
1724 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
1725 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
1726 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
1727 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
1728 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
1729 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
1730 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
1731 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
1732 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
1733 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
1734 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
1735 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
1736 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
1737 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
1738 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
1739 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
1740 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
1741 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
1742 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
1743 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
1744 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
1745 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
1746 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
1747 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
1748
1749 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1750
1751 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
1752 to "-static-pie" if target compiler supports it.
1753 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
1754 $STATIC_PIE_LDFLAGS isn't empty.
1755 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1756
1757 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1758
1759 PR ld/24302
1760 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1761 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
1762
1763 2019-04-10 H.J. Lu <hongjiu.lu@intel.com>
1764
1765 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
1766 CREATE_PIE.
1767 (__rel_iplt_start): Don't define for CREATE_PIC.
1768 (__rel_iplt_end): Likewise.
1769 (__rela_iplt_start): Likewise.
1770 (__rela_iplt_end): Likewise.
1771
1772 2019-04-10 Alan Modra <amodra@gmail.com>
1773
1774 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
1775 powerpc-nto.
1776
1777 2019-04-10 Alan Modra <amodra@gmail.com>
1778
1779 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
1780 setting use_branch_stub false for linux.
1781 (csky_elf_create_output_section_statements): Do emit this
1782 function and all others in the file for linux, plus the branch
1783 option control. Disable branch stubs when non-ELF.
1784
1785 2019-04-10 Alan Modra <amodra@gmail.com>
1786
1787 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
1788 (ecskyelf_linux.c): Depend on cskyelf.sh.
1789 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
1790 * Makefile.in: Regenerate.
1791 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
1792 (PAGE_SIZE): Don't define.
1793 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
1794 the differing variable defs/undefs.
1795 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
1796 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
1797 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
1798 (PAGE_SIZE): Don't define.
1799 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
1800 leaving just the differing OUTPUT_FORMAT.
1801
1802 2019-04-10 Alan Modra <amodra@gmail.com>
1803
1804 * po/BLD-POTFILES.in: Regenerate.
1805
1806 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1807
1808 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
1809 lynxos and nto targets.
1810
1811 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1812
1813 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
1814 (eelf_i386_chaos.c): Removed.
1815 * Makefile.in: Regenerated.
1816 * configure.tgt: Remove i[3-7]86-*-kaos*.
1817 * emulparams/elf_i386_chaos.sh: Removed.
1818
1819 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1820
1821 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
1822 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
1823
1824 2019-04-08 Alan Modra <amodra@gmail.com>
1825
1826 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
1827 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
1828 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
1829
1830 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1831
1832 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
1833 (eelf_i386_sol2.c): Also depend on
1834 $(srcdir)/emultempl/solaris2-x86.em.
1835 (eelf_x86_64_sol2.c): Likewise.
1836 * Makefile.in: Regenerated.
1837 * emulparams/call_nop.sh: Set x86-specific linker options via
1838 params.
1839 * emulparams/cet.sh: Likewise.
1840 * emulparams/reloc_overflow.sh: Likewise.
1841 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
1842 "elf-x86".
1843 * emulparams/elf_i386.sh: Likewise.
1844 * emulparams/elf_i386_be.sh: Likewise.
1845 * emulparams/elf_i386_chaos.sh: Likewise.
1846 * emulparams/elf_i386_ldso.sh: Likewise.
1847 * emulparams/elf_i386_vxworks.sh: Likewise.
1848 * emulparams/elf_iamcu.sh: Likewise.
1849 * emulparams/elf_k1om.sh: Likewise.
1850 * emulparams/elf_l1om.sh: Likewise.
1851 * emulparams/elf_x86_64.sh: Likewise.
1852 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
1853 "solaris2-x86".
1854 * emulparams/elf_x86_64_sol2.sh: Likewise.
1855 * emultempl/elf-x86.em: New file.
1856 * emultempl/solaris2-x86.em: Likewise.
1857 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1858 set link_info.call_nop_byte.
1859
1860 2019-04-05 Alan Modra <amodra@gmail.com>
1861
1862 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
1863 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1864 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1865
1866 2019-04-03 Alan Modra <amodra@gmail.com>
1867
1868 PR 24411
1869 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
1870 (<EXPRESSION>"/DISCARD/"): New.
1871
1872 2019-04-03 Alan Modra <amodra@gmail.com>
1873
1874 * ldlex.l: Formatting.
1875 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
1876 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
1877 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
1878 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
1879 (<INPUTLIST>"$SYSROOT"..): Delete rule.
1880
1881 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1882
1883 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
1884 test definition.
1885 * testsuite/ld-xtensa/xtensa.exp
1886 (relax-undef-weak-pie-export-dynamic): Add new test.
1887
1888 2019-03-26 Martin Liska <mliska@suse.cz>
1889
1890 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
1891 lto_visibility_str and use then to inform about plugin-symbols.
1892 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
1893
1894 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1895
1896 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
1897 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
1898
1899 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1900
1901 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1902 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
1903 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
1904 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1905 * testsuite/ld-aarch64/bti-warn.d: New test.
1906
1907 2019-03-21 Alan Modra <amodra@gmail.com>
1908
1909 * testsuite/ld-elf/fini2.s: Reduce alignment.
1910 * testsuite/ld-elf/fini3.s: Likewise.
1911 * testsuite/ld-elf/finin.s: Likewise.
1912 * testsuite/ld-elf/init2.s: Likewise.
1913 * testsuite/ld-elf/init3.s: Likewise.
1914 * testsuite/ld-elf/initn.s: Likewise.
1915 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
1916 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
1917
1918 2019-03-21 Alan Modra <amodra@gmail.com>
1919
1920 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
1921 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
1922 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
1923 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
1924 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
1925 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
1926 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
1927 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
1928 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
1929 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
1930 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
1931 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
1932 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
1933 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
1934 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
1935 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
1936 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
1937 SORT_NONE to .init and .fini wildcards.
1938 * scripttempl/elf32xc16x.sc,
1939 * scripttempl/elf32xc16xl.sc,
1940 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
1941 * scripttempl/elf_chaos.sc: Add .init output section.
1942 * scripttempl/elfd30v.sc: Remove duplicate .init.
1943 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
1944 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
1945 duplicate .init, and add .fini wildcard.
1946 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
1947 * ldlang.c (update_wild_statements): Special case .init and
1948 .fini in the wildcard, not the output section.
1949
1950 2019-03-21 Alan Modra <amodra@gmail.com>
1951
1952 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
1953
1954 2019-03-21 Alan Modra <amodra@gmail.com>
1955
1956 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
1957 create_object_symbols_section.
1958 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
1959
1960 2019-03-18 Alan Modra <amodra@gmail.com>
1961
1962 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
1963 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
1964 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
1965 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
1966
1967 2019-03-15 Nick Clifton <nickc@redhat.com>
1968
1969 PR 24262
1970 * ld.texi (-plugin): Correct the path used to locate linker
1971 plugins.
1972
1973 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1974
1975 * NEWS: Document --pac-plt.
1976 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
1977 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
1978 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
1979 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
1980 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
1981 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
1982 * testsuite/ld-aarch64/pac-plt-1.d: New test.
1983 * testsuite/ld-aarch64/pac-plt-2.d: New test.
1984 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
1985
1986 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1987 Szabolcs Nagy <szabolcs.nagy@arm.com>
1988
1989 * NEWS: Document --force-bti.
1990 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
1991 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
1992 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
1993 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
1994 * testsuite/ld-aarch64/bti-plt-1.d: New test.
1995 * testsuite/ld-aarch64/bti-plt-1.s: New test.
1996 * testsuite/ld-aarch64/bti-plt-2.d: New test.
1997 * testsuite/ld-aarch64/bti-plt-3.d: New test.
1998 * testsuite/ld-aarch64/bti-plt-4.d: New test.
1999 * testsuite/ld-aarch64/bti-plt-5.d: New test.
2000 * testsuite/ld-aarch64/bti-plt-6.d: New test.
2001 * testsuite/ld-aarch64/bti-plt-7.d: New test.
2002 * testsuite/ld-aarch64/bti-plt-so.s: New test.
2003 * testsuite/ld-aarch64/bti-plt.ld: New test.
2004
2005 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2006
2007 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
2008 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
2009 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
2010 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
2011 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
2012 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
2013 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
2014 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
2015
2016 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
2017
2018 PR ld/24322
2019 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
2020 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2021 * testsuite/ld-i386/pr24322a.d: New file.
2022 * testsuite/ld-i386/pr24322b.d: Likewise.
2023 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
2024 * testsuite/ld-x86-64/pr24322a.d: Likewise.
2025 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
2026 * testsuite/ld-x86-64/pr24322b.d: Likewise.
2027 * testsuite/ld-x86-64/pr24322a.s: Likewise.
2028 * testsuite/ld-x86-64/pr24322b.s: Likewise.
2029 * testsuite/ld-x86-64/pr24322c.s: Likewise.
2030
2031 2019-03-06 Nick Bowler <nbowler@draconx.ca>
2032
2033 PR 24289
2034 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
2035 attributes during the first phase.
2036
2037 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
2038
2039 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
2040 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2041
2042 PR 20113
2043 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
2044 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
2045 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
2046 * testsuite/ld-s390/tlsbin.dd: Likewise.
2047 * testsuite/ld-s390/tlsbin.rd: Likewise.
2048 * testsuite/ld-s390/tlsbin.sd: Likewise.
2049 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
2050 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
2051 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
2052 * testsuite/ld-s390/tlspic.dd: Likewise.
2053 * testsuite/ld-s390/tlspic.rd: Likewise.
2054 * testsuite/ld-s390/tlspic.sd: Likewise.
2055 * testsuite/ld-s390/tlspic_64.dd: Likewise.
2056 * testsuite/ld-s390/tlspic_64.rd: Likewise.
2057 * testsuite/ld-s390/tlspic_64.sd: Likewise.
2058 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
2059
2060 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2061
2062 PR ld/24276
2063 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
2064 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2065 * testsuite/ld-i386/pr24276.dso: New file.
2066 * testsuite/ld-i386/pr24276.warn: Likewise.
2067 * testsuite/ld-x86-64/pr24276.dso: Likewise.
2068 * testsuite/ld-x86-64/pr24276.warn: Likewise.
2069
2070 2019-02-20 Eric Tsai <erictsai@cadence.com>
2071
2072 * testsuite/ld-xtensa/call_overflow.d: New test definition.
2073 * testsuite/ld-xtensa/call_overflow1.s: New test source.
2074 * testsuite/ld-xtensa/call_overflow2.s: New test source.
2075 * testsuite/ld-xtensa/call_overflow3.s: New test source.
2076 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
2077
2078 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
2079
2080 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
2081
2082 2019-02-12 Nick Clifton <nickc@redhat.com>
2083
2084 * po/fr.po: Updated French translation.
2085
2086 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
2087
2088 * emultempl/arclinux.em: Delete special INIT/FINI handling.
2089
2090 2019-02-07 Nick Clifton <nickc@redhat.com>
2091
2092 PR 24175
2093 * ld.texi (Options): Add missing word to the description of the
2094 --start-group option.
2095
2096 2019-02-06 Alan Modra <amodra@gmail.com>
2097
2098 PR ld/24008
2099 * testsuite/ld-scripts/pr24008.d: Pass with extra target
2100 defined symbols.
2101
2102 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
2103
2104 PR ld/24151
2105 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
2106 * testsuite/ld-x86-64/pr24151a.d: Likewise.
2107 * testsuite/ld-x86-64/pr24151a.s: Likewise.
2108 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
2109
2110 2019-01-31 Alan Modra <amodra@gmail.com>
2111
2112 * NEWS: Mention -t change.
2113 * ld.texi (--trace/-t): Expand documentation a little.
2114
2115 2019-01-29 H.J. Lu <hongjiu.lu@intel.com>
2116
2117 PR ld/24008
2118 * testsuite/ld-scripts/defined.exp: Run pr24008.
2119 * testsuite/ld-scripts/pr24008.d: New file.
2120 * testsuite/ld-scripts/pr24008.map: Likewise.
2121 * testsuite/ld-scripts/pr24008.s: Likewise.
2122 * testsuite/ld-scripts/pr24008.t: Likewise.
2123
2124 2019-01-29 Eric Botcazou <ebotcazou@adacore.com>
2125
2126 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
2127
2128 2019-01-28 Alan Modra <amodra@gmail.com>
2129
2130 PR 24008
2131 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
2132 * ldexp.c (fold_name): Move expld.assign_name check later to
2133 avoid an extra lookup.
2134 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
2135 values, and don't clear expld.assign_name.
2136 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
2137 (print_assignment): Resolve entire assignment expression.
2138 Don't access symbol u.def unless symbol is defined.
2139
2140 2019-01-25 Nick Clifton <nickc@redhat.com>
2141
2142 * po/bg.po: Updated Bulgarian translation.
2143
2144 2019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
2145
2146 * ld.texi (--wrap): Add warning that LTO may make this feature
2147 ineffective.
2148
2149 2019-01-21 Nick Clifton <nickc@redhat.com>
2150
2151 * po/uk.po: Updated Ukranian translation.
2152 * po/pr_BR.po: Updated Brazilian Portuguese translation.
2153
2154 2019-01-21 Nick Clifton <nickc@redhat.com>
2155
2156 PR 24108
2157 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
2158 expected error message.
2159
2160 2019-01-19 Nick Clifton <nickc@redhat.com>
2161
2162 * configure: Regenerate.
2163 * po/ld.pot: Regenerate.
2164
2165 2018-06-24 Nick Clifton <nickc@redhat.com>
2166
2167 2.32 branch created.
2168
2169 2019-01-16 Kito Cheng <kito@andestech.com>
2170
2171 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
2172 section.
2173 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
2174 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
2175 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
2176 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
2177 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2178 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
2179 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
2180 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2181 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
2182 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
2183 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2184 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
2185 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
2186 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
2187 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
2188 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
2189 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
2190 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
2191 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
2192 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
2193 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
2194 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
2195 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
2196 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
2197 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
2198 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
2199 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
2200 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
2201 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
2202 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
2203 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
2204 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
2205 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
2206 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
2207 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
2208 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
2209 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
2210
2211 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2212
2213 PR 20113
2214 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
2215 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
2216 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
2217 * testsuite/ld-s390/tlsbin.dd: Likewise.
2218 * testsuite/ld-s390/tlsbin.rd: Likewise.
2219 * testsuite/ld-s390/tlsbin.sd: Likewise.
2220 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
2221 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
2222 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
2223 * testsuite/ld-s390/tlspic.dd: Likewise.
2224 * testsuite/ld-s390/tlspic.rd: Likewise.
2225 * testsuite/ld-s390/tlspic.sd: Likewise.
2226 * testsuite/ld-s390/tlspic_64.dd: Likewise.
2227 * testsuite/ld-s390/tlspic_64.rd: Likewise.
2228 * testsuite/ld-s390/tlspic_64.sd: Likewise.
2229 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
2230
2231 2019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
2232
2233 * ld.texi (--wrap): Add example to emphasise that only undefined
2234 references are replaced by the linker.
2235
2236 2019-01-09 Nick Clifton <nickc@redhat.com>
2237
2238 * po/es.po: Updated Spanish translation.
2239
2240 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
2241
2242 * configure: Regenerate.
2243
2244 2019-01-08 Alan Modra <amodra@gmail.com>
2245
2246 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
2247 generated source file names.
2248 * testsuite/ld-m68k/m68k-got.exp: Likewise.
2249
2250 2019-01-01 Alan Modra <amodra@gmail.com>
2251
2252 Update year range in copyright notice of all files.
2253
2254 For older changes see ChangeLog-2018
2255 \f
2256 Copyright (C) 2019 Free Software Foundation, Inc.
2257
2258 Copying and distribution of this file, with or without modification,
2259 are permitted in any medium without royalty provided the copyright
2260 notice and this notice are preserved.
2261
2262 Local Variables:
2263 mode: change-log
2264 left-margin: 8
2265 fill-column: 74
2266 version-control: never
2267 End: