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