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