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