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