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