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