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