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