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