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