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