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